领料单读写功能

This commit is contained in:
sc committed 2025-05-19 22:46:54 +08:00
commit fefbae106e
6 files changed
+142 -11

No files matched your search

+11 -6
View File
@@ -320,6 +320,7 @@ namespace DyeingComputer.ViewModel
STEP_RUN();
LOG_view();
IO_view();
TechnologicalProcess_view();
if (!string.IsNullOrEmpty(Name_err.ToString()))
{
@@ -336,8 +337,6 @@ namespace DyeingComputer.ViewModel
{
if(WORK_RUN !=0) Chart();//写入记录
TechnologicalProcess_view();
if (string.IsNullOrEmpty(Name_err.ToString()) && ((Selet_dtm("1010") < 1) || (Selet_dtm("1010") > 160)))
{ Name_err = Resources.Temperature + Resources.Sensor + Resources.Malfunction; } //温度故障提示
}
@@ -1727,14 +1726,20 @@ namespace DyeingComputer.ViewModel
});
}
}
public void TechnologicalProcess_view()//显示
public async void TechnologicalProcess_view()//显示
{
try
if (ViewID == 1)
{
if (ViewID == 1) TechnologicalProcess_View = ToObservableCollection<TechnologicalProcess>(dt_TP);
await Task.Run(() =>
{
try
{
TechnologicalProcess_View = ToObservableCollection<TechnologicalProcess>(dt_TP);
}
catch (Exception) { }
});
}
catch (Exception) { }
}
public static double Selet_dtm(string key)//M寄存器
{