init: 潍柴发动机线 中央控制程序 项目首次入库

This commit is contained in:
XingCheng3
2026-06-08 12:05:16 +08:00
commit 196c66b9ff
547 changed files with 379162 additions and 0 deletions

View File

@@ -0,0 +1,92 @@
using SlMesDbIterface;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Drawing;
using System.ComponentModel;
using System.Windows.Forms;
using static System.Windows.Forms.VisualStyles.VisualStyleElement;
namespace MesWork
{
/// <summary>
///
/// </summary>
public partial class Temp { }
/// <summary>
/// 布局
/// </summary>
public partial class MesWorkForm
{
/// <summary>
/// 添加布局
/// </summary>
public void ReLoadStationIcon()
{
ht_Station_Content = new Hashtable();
ht_Station_Label = new Hashtable();
G_DC_IP_OP = new Dictionary<String, List<String>>();
ExecuteDB.Select_Station(out DataTable dt);
for (int i = 0; i < dt.Rows.Count; i++)
{
var = dt.Rows[i]["工位号"].ToString();
var = dt.Rows[i]["工位名称"].ToString();
var PLC = dt.Rows[i]["PLC"].ToString();
var PLC代码 = dt.Rows[i]["PLC代码"].ToString();
var PX = Convert.ToInt32(dt.Rows[i]["PX"]);
var PY = Convert.ToInt32(dt.Rows[i]["PY"]);
var PX_T = Convert.ToInt32(dt.Rows[i]["PX_T"]);
var PY_T = Convert.ToInt32(dt.Rows[i]["PY_T"]);
var = dt.Rows[i]["控件启用"].ToString().ToLower();
if ( == "1" | == "true")
{
SetMember(, Release(new Panel()
{
Location = new System.Drawing.Point(PX, PY),
Size = new Size(30, 30),
BackColor = color_Bad,
Tag = ,
BorderStyle = BorderStyle.Fixed3D
}));
SetMember(, Release(new Label()
{
Location = new System.Drawing.Point(PX_T, PY_T),
Size = new Size(35, 25),
Text = .Replace("OP", "")
}));
}
try
{
if (G_DC_IP_OP.ContainsKey(PLC))
{
G_DC_IP_OP[PLC].Add();
}
else
{
var list = new List<String>();
list.Add();
G_DC_IP_OP.Add(PLC, list);
}
}
catch (Exception err)
{
}
}
}
}
}