细节页面的右键逻辑,添加语言

This commit is contained in:
sc committed 2025-08-27 01:21:32 +08:00
commit 435a54a61a
5 files changed
+56 -34

No files matched your search

+14 -7
View File
@@ -336,7 +336,7 @@ namespace SunlightCentralizedControlManagement_SCCM_.ViewModel
/**染机用户信息**/
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[] {
Selet_Machines(Machines, "Name", "ID='" + i + "'"),
@@ -345,7 +345,7 @@ namespace SunlightCentralizedControlManagement_SCCM_.ViewModel
Selet_Machines(Machines, "ID", "ID='" + i + "'")});
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();
}
@@ -449,7 +449,7 @@ namespace SunlightCentralizedControlManagement_SCCM_.ViewModel
dataRow["Redye"] + "' AND Step = '" + dataRow["Step"] + "'"))
{
Row.BeginEdit();
Row["State"] = 301;
Row["State"] = 309;
Row["Amount"] = 0;
Row["DispenseEndTime"] = DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss");
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 ='" +
dataRow["Redye"] + "' AND Step = '" + dataRow["Step"] + "'"))
{
Row.BeginEdit();
Row["State"] = 301;
Row["State"] = 309;
Row["Amount"] = 0;
Row["DispenseEndTime"] = DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss");
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 ='" +
dataRow["Redye"] + "' AND Step = '" + dataRow["Step"] + "'"))
{
Row.BeginEdit();
Row["State"] = 301;
Row["State"] = 309;
Row["Amount"] = 0;
Row["DispenseEndTime"] = DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss");
Row.EndEdit();
@@ -591,6 +591,13 @@ namespace SunlightCentralizedControlManagement_SCCM_.ViewModel
DAT = "SC828" + MainWindowViewModel.Selet_Machines(MainWindowViewModel.Machines,
"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);
}
}