|
@ -336,7 +336,7 @@ namespace SunlightCentralizedControlManagement_SCCM_.ViewModel |
|
|
/**染机用户信息**/ |
|
|
/**染机用户信息**/ |
|
|
try |
|
|
try |
|
|
{ |
|
|
{ |
|
|
if ((int)Selet_Machines(Machines, "UserInfoStart", "ID='" + i + "'") == 901) |
|
|
if ((int)Selet_Machines(Machines, "UserInfoStart", "ID='" + i + "'") == 901)//打开用户提示信息
|
|
|
{ |
|
|
{ |
|
|
MainWindow.InfData.Rows.Add(new object[] { |
|
|
MainWindow.InfData.Rows.Add(new object[] { |
|
|
Selet_Machines(Machines, "Name", "ID='" + i + "'"), |
|
|
Selet_Machines(Machines, "Name", "ID='" + i + "'"), |
|
@ -345,7 +345,7 @@ namespace SunlightCentralizedControlManagement_SCCM_.ViewModel |
|
|
Selet_Machines(Machines, "ID", "ID='" + i + "'")}); |
|
|
Selet_Machines(Machines, "ID", "ID='" + i + "'")}); |
|
|
Updata_Machines(Machines, "UserInfoStart", "ID='" + i + "'", "900"); |
|
|
Updata_Machines(Machines, "UserInfoStart", "ID='" + i + "'", "900"); |
|
|
} |
|
|
} |
|
|
if (Selet_Machines(Machines, "UserInfoStart", "ID='" + i + "'").ToString() == "902") |
|
|
if (Selet_Machines(Machines, "UserInfoStart", "ID='" + i + "'").ToString() == "902")//删除用户提示信息
|
|
|
{ |
|
|
{ |
|
|
MainWindow.InfData.Select("ID='" + i + "'").First().Delete(); |
|
|
MainWindow.InfData.Select("ID='" + i + "'").First().Delete(); |
|
|
} |
|
|
} |
|
@ -449,7 +449,7 @@ namespace SunlightCentralizedControlManagement_SCCM_.ViewModel |
|
|
dataRow["Redye"] + "' AND Step = '" + dataRow["Step"] + "'")) |
|
|
dataRow["Redye"] + "' AND Step = '" + dataRow["Step"] + "'")) |
|
|
{ |
|
|
{ |
|
|
Row.BeginEdit(); |
|
|
Row.BeginEdit(); |
|
|
Row["State"] = 301; |
|
|
Row["State"] = 309; |
|
|
Row["Amount"] = 0; |
|
|
Row["Amount"] = 0; |
|
|
Row["DispenseEndTime"] = DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss"); |
|
|
Row["DispenseEndTime"] = DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss"); |
|
|
Row.EndEdit(); |
|
|
Row.EndEdit(); |
|
@ -501,13 +501,13 @@ namespace SunlightCentralizedControlManagement_SCCM_.ViewModel |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
else if (dt.Select("DyeState = 309").Count() > 0) |
|
|
else if (dt.Select("PowderState = 309").Count() > 0) |
|
|
{ |
|
|
{ |
|
|
foreach (DataRow Row in Dyelot_CALL.Select("Dyelot='" + dataRow["Dyelot"] + "' and Redye ='" + |
|
|
foreach (DataRow Row in Dyelot_CALL.Select("Dyelot='" + dataRow["Dyelot"] + "' and Redye ='" + |
|
|
dataRow["Redye"] + "' AND Step = '" + dataRow["Step"] + "'")) |
|
|
dataRow["Redye"] + "' AND Step = '" + dataRow["Step"] + "'")) |
|
|
{ |
|
|
{ |
|
|
Row.BeginEdit(); |
|
|
Row.BeginEdit(); |
|
|
Row["State"] = 301; |
|
|
Row["State"] = 309; |
|
|
Row["Amount"] = 0; |
|
|
Row["Amount"] = 0; |
|
|
Row["DispenseEndTime"] = DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss"); |
|
|
Row["DispenseEndTime"] = DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss"); |
|
|
Row.EndEdit(); |
|
|
Row.EndEdit(); |
|
@ -552,13 +552,13 @@ namespace SunlightCentralizedControlManagement_SCCM_.ViewModel |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
else if (dt.Select("DyeState = 309").Count() > 0) |
|
|
else if (dt.Select("ChemicalState = 309").Count() > 0) |
|
|
{ |
|
|
{ |
|
|
foreach (DataRow Row in Dyelot_CALL.Select("Dyelot='" + dataRow["Dyelot"] + "' and Redye ='" + |
|
|
foreach (DataRow Row in Dyelot_CALL.Select("Dyelot='" + dataRow["Dyelot"] + "' and Redye ='" + |
|
|
dataRow["Redye"] + "' AND Step = '" + dataRow["Step"] + "'")) |
|
|
dataRow["Redye"] + "' AND Step = '" + dataRow["Step"] + "'")) |
|
|
{ |
|
|
{ |
|
|
Row.BeginEdit(); |
|
|
Row.BeginEdit(); |
|
|
Row["State"] = 301; |
|
|
Row["State"] = 309; |
|
|
Row["Amount"] = 0; |
|
|
Row["Amount"] = 0; |
|
|
Row["DispenseEndTime"] = DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss"); |
|
|
Row["DispenseEndTime"] = DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss"); |
|
|
Row.EndEdit(); |
|
|
Row.EndEdit(); |
|
@ -591,6 +591,13 @@ namespace SunlightCentralizedControlManagement_SCCM_.ViewModel |
|
|
DAT = "SC828" + MainWindowViewModel.Selet_Machines(MainWindowViewModel.Machines, |
|
|
DAT = "SC828" + MainWindowViewModel.Selet_Machines(MainWindowViewModel.Machines, |
|
|
"SYSKEY", "Name='" + row.Field<string>("Machine") + "'") + Product_.ToJsonString() |
|
|
"SYSKEY", "Name='" + row.Field<string>("Machine") + "'") + Product_.ToJsonString() |
|
|
}); |
|
|
}); |
|
|
|
|
|
if (row["State"].ToString() == "309") |
|
|
|
|
|
{ |
|
|
|
|
|
MainWindow.InfData.Rows.Add(new object[] { row["Machine"], |
|
|
|
|
|
Resources.Step + row["Step"]+ Resources.DispenseException, |
|
|
|
|
|
Selet_Machines(Machines, "SYSKEY", "Name='" + row["Machine"] + "'"), |
|
|
|
|
|
Selet_Machines(Machines, "ID", "Name='" + row["Machine"] + "'")}); |
|
|
|
|
|
} |
|
|
Dyelot_CALL.Rows.Remove(row); |
|
|
Dyelot_CALL.Rows.Remove(row); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|