|
|
@@ -26,6 +26,7 @@ namespace UAS_MES_NEW.Query
|
|
|
string checkno = "";
|
|
|
//拆分后的经过的步骤
|
|
|
Dictionary<int, string> Step;
|
|
|
+ Dictionary<int, string> StepName;
|
|
|
List<Brush> PaintColor = new List<Brush>();
|
|
|
//屏幕高度
|
|
|
int ScreenWidth;
|
|
|
@@ -161,18 +162,28 @@ namespace UAS_MES_NEW.Query
|
|
|
}
|
|
|
//查询执行过的步骤
|
|
|
sql.Clear();
|
|
|
- sql.Append("select CD_DETNO,CD_STEPCODE,cd_ifoqc,ms_makecode,ms_id from craft left join craftdetail on cd_crid = cr_id left join makeserial ");
|
|
|
+ sql.Append("select CD_DETNO,CD_STEPCODE,cd_ifoqc,ms_makecode,ms_id,cd_stepname from craft left join craftdetail on cd_crid = cr_id left join makeserial ");
|
|
|
sql.Append("on ms_craftcode=cr_code and ms_prodcode=cr_prodcode where ms_id in (" + ms_ids.ToString().Substring(0, ms_ids.ToString().Length - 1) + ") order by ms_id,cd_detno");
|
|
|
dt = (DataTable)dh.ExecuteSql(sql.GetString(), "select");
|
|
|
Step = new Dictionary<int, string>();
|
|
|
+ StepName = new Dictionary<int, string>();
|
|
|
for (int i = 0; i < dt.Rows.Count + 2; i++)
|
|
|
{
|
|
|
if (i == 0)
|
|
|
+ {
|
|
|
Step.Add(i, "开始");
|
|
|
+ StepName.Add(i, "开始");
|
|
|
+ }
|
|
|
else if (i == dt.Rows.Count + 1)
|
|
|
+ {
|
|
|
Step.Add(i, "结束");
|
|
|
+ StepName.Add(i, "开始");
|
|
|
+ }
|
|
|
else
|
|
|
+ {
|
|
|
Step.Add(i, dt.Rows[i - 1]["CD_STEPCODE"].ToString());
|
|
|
+ StepName.Add(i, dt.Rows[i - 1]["cd_stepname"].ToString());
|
|
|
+ }
|
|
|
}
|
|
|
//添加中间节点
|
|
|
bool passed = true;
|
|
|
@@ -346,7 +357,7 @@ namespace UAS_MES_NEW.Query
|
|
|
p.EndCap = LineCap.ArrowAnchor;
|
|
|
//方块内的信息
|
|
|
Label Param = new Label();
|
|
|
- Param.Text = j + " " + Step[j];
|
|
|
+ Param.Text = j + " " + StepName[j];
|
|
|
Param.Name = j + Step[j] + "_label";
|
|
|
Param.AutoSize = true;
|
|
|
Param.Margin = new Padding(0, 0, 0, 0);
|