Esempio n. 1
0
        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] + ":");
                }
            }
        }
Esempio n. 2
0
 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));
 }