|
|
@ -123,11 +123,19 @@ namespace SunlightCentralizedControlManagement_SCCM_.View |
|
|
|
int State_ = Convert.ToInt16(drEmployee.Field<object>("State")); |
|
|
|
int index = Convert.ToInt16(drEmployee.Field<object>("ID")); |
|
|
|
if ((State_ == 101) || (State_ == 201) || (State_ == 202) || (State_ == 309))//获得细节信息
|
|
|
|
{ |
|
|
|
if (machines_info == 0) |
|
|
|
{ |
|
|
|
MainWindowViewModel.MachiensTcpClient[index].SendAsync("SC832" + MainWindowViewModel.Selet_Machines(MainWindowViewModel.Machines, "SYSKEY", index)); |
|
|
|
if (machines_info == 0) { log.Text = Sys_log; }//信息
|
|
|
|
else if (machines_info == 1) { }//输送状态
|
|
|
|
else if (machines_info == 2) { }//单据
|
|
|
|
}//信息
|
|
|
|
else if (machines_info == 1) |
|
|
|
{ |
|
|
|
}//输送状态
|
|
|
|
else if (machines_info == 2) |
|
|
|
{ |
|
|
|
MainWindowViewModel.MachiensTcpClient[index].SendAsync("SC833" + MainWindowViewModel.Selet_Machines(MainWindowViewModel.Machines, "SYSKEY", index)); |
|
|
|
}//单据
|
|
|
|
log.Text = Sys_log; |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|