private void button4_Click(object sender, EventArgs e) { List <RDJ> RDJList = BL_GetRDJList.GetRDJList(BL_DeviceInfo.GetDeviceInfoList(DeviceType.ROSO_RDJ), 502, 10000, 100, BL_DeviceTemplate.GetDeviceTemplateList(DeviceType.ROSO_RDJ)); Console.WriteLine("RDJ:"); foreach (RDJ rdj in RDJList) { Console.WriteLine(rdj.SBBH); Console.WriteLine(rdj.SBZDXX); for (int i = 0; i < rdj.PLCZT.Length; i++) { Console.Write(rdj.PLCZT[i] + ":"); } Console.WriteLine(rdj.KH); } Console.WriteLine("DXJ:"); List <DXJ> DXJList = BL_GetDXJList.GetDXJList(BL_DeviceInfo.GetDeviceInfoList(DeviceType.ROSO_DXJ), 502, 10000, 100, BL_DeviceTemplate.GetDeviceTemplateList(DeviceType.ROSO_DXJ)); foreach (DXJ dxj in DXJList) { Console.WriteLine(dxj.SBBH); Console.WriteLine(dxj.SBZDXX); for (int i = 0; i < dxj.PLCZT.Length; i++) { Console.Write(dxj.PLCZT[i] + ":"); } } Console.WriteLine("BZJ:"); List <BZJ> BZJList = BL_GetBZJList.GetBZJList(BL_DeviceInfo.GetDeviceInfoList(DeviceType.ROSO_BZJ), 502, 10000, 100, BL_DeviceTemplate.GetDeviceTemplateList(DeviceType.ROSO_BZJ)); foreach (BZJ bzj in BZJList) { Console.WriteLine(bzj.SBBH); Console.WriteLine(bzj.SBZDXX); for (int i = 0; i < bzj.PLCZT.Length; i++) { Console.Write(bzj.PLCZT[i] + ":"); } } }
private void button1_Click(object sender, EventArgs e) { List <DeviceInfo> devicelist = BL_DeviceInfo.GetDeviceInfoList(DeviceType.ROSO_RDJ); List <RDJ> list = BL_GetRDJList.GetRDJList(devicelist, 502, 10000, 200, BL_DeviceTemplate.GetDeviceTemplateList(DeviceType.ROSO_RDJ)); }
private void button5_Click(object sender, EventArgs e) { List <DeviceInfo> devicelist = BL_DeviceInfo.GetDeviceInfoList(DeviceType.ROSO_RSJ); List <RSJ> list = BL_GetRSJList.GetRSJList(devicelist, 502, 10000, 200, BL_DeviceTemplate.GetDeviceTemplateList(DeviceType.ROSO_RSJ)); foreach (RSJ rsj in list) { if (rsj.SBZDXX == "网络错误") { continue; } Console.WriteLine("CZRBH: " + rsj.CZRBH); if (rsj.PLCZT != null) { for (int i = 0; i < rsj.PLCZT.Length; i++) { Console.WriteLine("PLCZT: " + rsj.PLCZT[i]); } } Console.WriteLine("RGSL:" + rsj.RGSL); Console.WriteLine("SBBH: " + rsj.SBBH); Console.WriteLine("SBGG: " + rsj.SBGG); Console.WriteLine("SBXH: " + rsj.SBXH); Console.WriteLine("SBZDXX: " + rsj.SBZDXX); foreach (RG rg in rsj.RGS) { Console.WriteLine("BSD: " + rg.BSD); Console.WriteLine("GYBH: " + rg.GYBH); Console.WriteLine("GYDH: " + rg.GYDH); Console.WriteLine("GYMC: " + rg.GYMC); Console.WriteLine("JTBH: " + rg.JTBH); Console.WriteLine("KZZ1: " + rg.KZZ1); Console.WriteLine("KZZ2: " + rg.KZZ2); Console.WriteLine("KZZ3: " + rg.KZZ3); Console.WriteLine("RGBH:" + rg.RGBH); Console.WriteLine("SBYXZT:" + rg.SBYXZT); Console.WriteLine("SBZDXX:" + rg.SBZDXX); Console.WriteLine("WD:" + rg.WD); Console.WriteLine("YL:" + rg.YL); Console.WriteLine("YXSJ: " + rg.YXSJ); } } }