Merge branch 'master' of http://www.scserverddns.top:13000/sc/SunlightCentralizedControlManagement
This commit is contained in:
commit
35ea203af1
4 files changed
+59
-11
No files matched your search
@@ -96,7 +96,6 @@ namespace SunlightCentralizedControlManagement_SCCM_.ViewModel
|
||||
{
|
||||
MachiensTcpClient[i].SendAsync("SC800:SCCM[" + MachiensTcpClient[i].IP + ";" + MachiensTcpClient[i].Port + "]");
|
||||
}
|
||||
// MachiensTcpClient[1].SendAsync("SC851BED2E58B6EBB4BD4");
|
||||
|
||||
}
|
||||
}
|
||||
@@ -104,12 +103,11 @@ namespace SunlightCentralizedControlManagement_SCCM_.ViewModel
|
||||
{
|
||||
for (int i = 0; i < Machinesdata_Count; i++)
|
||||
{
|
||||
if (Selet_Machines(Machines, "State", i).ToString() == "101")
|
||||
string mac_s = Selet_Machines(Machines, "State", i).ToString();
|
||||
if ((mac_s == "101")|| (mac_s == "201") || (mac_s == "202")|| (mac_s == "309"))//获取信息
|
||||
{
|
||||
MachiensTcpClient[i].SendAsync("SC830" + Selet_Machines(Machines, "SYSKEY", i).ToString());
|
||||
|
||||
// DataRow dt = machinesdata[i];
|
||||
//Updata_Machines(Machines, Convert.ToInt16(dt["ID"]), "State", "800");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -129,7 +127,7 @@ namespace SunlightCentralizedControlManagement_SCCM_.ViewModel
|
||||
TcpClientNEW();
|
||||
}
|
||||
|
||||
private readonly TcpClient[] MachiensTcpClient = new TcpClient[999];
|
||||
public static TcpClient[] MachiensTcpClient = new TcpClient[999];
|
||||
public int Machinesdata_Count;
|
||||
public void TcpClientNEW()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user