Пример #1
0
        private void InitCom()
        {
            PSPDEV psp = new PSPDEV();

            psp.SvgUID = UID;
            psp.Lable  = "母线节点";
            psp.Type   = "Use";
            IList list = Services.BaseService.GetList("SelectPSPDEVBySvgUIDandLableandType", psp);

            foreach (PSPDEV dev in list)
            {
                busclass bus = new busclass(dev.Number, dev.Name);
                comboBoxEdit1.Properties.Items.Add(bus);
                // comboBoxEdit2.Properties.Items.Add(bus);
            }
            PSPDEV pspDev = new PSPDEV();

            pspDev.Type   = "Polyline";
            pspDev.SvgUID = UID;
            pspDev.Lable  = "支路";
            IList list1 = Services.BaseService.GetList("SelectPSPDEVBySvgUIDandLableandType", pspDev);

            foreach (PSPDEV dev in list1)
            {
                busclass bus = new busclass(dev.Number, dev.Name);
                comboBoxEdit6.Properties.Items.Add(bus);
                // comboBoxEdit2.Properties.Items.Add(bus);
            }
            //psp.SvgUID=UID;
            //psp.Type = "";
        }
Пример #2
0
        private void InitCom()
        {
            PSPDEV psp = new PSPDEV();
            psp.SvgUID = UID;
            psp.Lable = "ĸ�߽ڵ�";
            psp.Type = "Use";
            IList list = Services.BaseService.GetList("SelectPSPDEVBySvgUIDandLableandType", psp);
            foreach (PSPDEV dev in list)
            {
                busclass bus = new busclass(dev.Number, dev.Name);
                comboBoxEdit1.Properties.Items.Add(bus);
               // comboBoxEdit2.Properties.Items.Add(bus);

            }
            PSPDEV pspDev = new PSPDEV();
            pspDev.Type = "Polyline";
            pspDev.SvgUID = UID;
            pspDev.Lable = "֧·";
            IList list1 = Services.BaseService.GetList("SelectPSPDEVBySvgUIDandLableandType", pspDev);
            foreach (PSPDEV dev in list1)
            {
                busclass bus = new busclass(dev.Number, dev.Name);
                comboBoxEdit6.Properties.Items.Add(bus);
                // comboBoxEdit2.Properties.Items.Add(bus);

            }
            //psp.SvgUID=UID;
            //psp.Type = "";
        }