|
|
@ -25,6 +25,7 @@ using System.Xml.Linq; |
|
|
|
using TouchSocket.Core; |
|
|
|
using TouchSocket.Sockets; |
|
|
|
using static SunlightCentralizedControlManagement_SCCM_.UserClass.SqliteHelper; |
|
|
|
using static SunlightCentralizedControlManagement_SCCM_.View.MachinesView; |
|
|
|
using static System.Windows.Forms.AxHost; |
|
|
|
using static System.Windows.Forms.VisualStyles.VisualStyleElement; |
|
|
|
using static System.Windows.Forms.VisualStyles.VisualStyleElement.TaskbarClock; |
|
|
@ -128,7 +129,7 @@ namespace SunlightCentralizedControlManagement_SCCM_.UserClass |
|
|
|
DataRow drEmployee = MainWindowViewModel.Machines.Select("IP='" + client.IP + "'").First(); |
|
|
|
drEmployee.BeginEdit(); |
|
|
|
drEmployee["SYSKEY"] = Chart_new.GetValue("SYSKEY").ToString(); |
|
|
|
// drEmployee["NAME"] = Chart_new.GetValue("MACHINE").ToString();
|
|
|
|
// drEmployee["NAME"] = Chart_new.GetValue("MACHINE").ToString();
|
|
|
|
drEmployee["Groups"] = Chart_new.GetValue("GROUP").ToString(); |
|
|
|
drEmployee["State"] = "802"; |
|
|
|
drEmployee.EndEdit(); |
|
|
@ -168,11 +169,21 @@ namespace SunlightCentralizedControlManagement_SCCM_.UserClass |
|
|
|
} |
|
|
|
catch (Exception ex) { LogGing.LogGingDATA("[ERR='" + ex + "']=Exception"); MainWindowViewModel.ERR_c++; } |
|
|
|
} |
|
|
|
else if (SYSAPI == "SC830") |
|
|
|
else if (SYSAPI == "SC827") |
|
|
|
{ |
|
|
|
try |
|
|
|
{ |
|
|
|
DAT = DAT.Substring(DAT.IndexOf("]") + 1); |
|
|
|
MainWindowViewModel.Dyelot_CALL = JsonConvert.DeserializeObject<DataTable>(DAT).Copy();//反序列化
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
catch (Exception ex) { LogGing.LogGingDATA("[ERR='" + ex + "']=Exception"); MainWindowViewModel.ERR_c++; } |
|
|
|
}//呼叫领料单
|
|
|
|
else if (SYSAPI == "SC830") |
|
|
|
{ |
|
|
|
try |
|
|
|
{ |
|
|
|
DAT = DAT.Substring(DAT.IndexOf("]") + 1); |
|
|
|
Dictionary<string, object> _new = new Dictionary<string, object>();//缓存函数
|
|
|
|
_new = JsonConvert.DeserializeObject<Dictionary<string, object>>(DAT);//反序列化
|
|
|
@ -246,7 +257,7 @@ namespace SunlightCentralizedControlManagement_SCCM_.UserClass |
|
|
|
{ |
|
|
|
DAT = DAT.Substring(DAT.IndexOf("]") + 1); |
|
|
|
MonitorView.Product_DAT = JsonConvert.DeserializeObject<DataTable>(DAT).Copy();//反序列化
|
|
|
|
MonitorView.Product_bool=true; |
|
|
|
MonitorView.Product_bool = true; |
|
|
|
} |
|
|
|
catch (Exception ex) { LogGing.LogGingDATA("[ERR='" + ex + "']=Exception"); MainWindowViewModel.ERR_c++; } |
|
|
|
}//当前领料单信息
|
|
|
|