Beispiel #1
0
        private void SearchLeafEA(int Id, List <int> leafEA_IDs)
        {
            Equip_Archis       EA     = new Equip_Archis();
            List <Equip_Archi> Childs = EA.getEA_Childs(Id);

            foreach (Equip_Archi item in Childs)
            {
                if (EA.getEA_Childs(item.EA_Id).Count == 0)
                {
                    leafEA_IDs.Add(item.EA_Id);
                }
                else
                {
                    SearchLeafEA(item.EA_Id, leafEA_IDs);
                }
            }
        }
Beispiel #2
0
        private List <int> Get_EquipArchi_Allleafs(List <int> EquipArchi_IDs)
        {
            Equip_Archis EA         = new Equip_Archis();
            List <int>   leafEA_IDs = new List <int>();

            foreach (int Id in EquipArchi_IDs)
            {
                if (EA.getEA_Childs(Id).Count == 0)
                {
                    leafEA_IDs.Add(Id);
                }
                else
                {
                    SearchLeafEA(Id, leafEA_IDs);
                }
            }
            return(leafEA_IDs);
        }
Beispiel #3
0
        private void BuildEquipArchiList_inter(TreeListNode parent, List <TreeListNode> list)
        {
            List <Equip_Archi> Childs = EA.getEA_Childs(parent.text);

            foreach (Equip_Archi item in Childs)
            {
                TreeListNode mn = new TreeListNode();
                mn.text = item.EA_Name;
                mn.id   = item.EA_Id;
                //if (EA.getEA_Childs(item.EA_Id).Count == 0)
                mn.selectable = true;
                parent.nodes.Add(mn);
                if (parent.text == "root")
                {
                    list.Add(mn);
                }
                BuildEquipArchiList_inter(mn, list);
            }
        }
Beispiel #4
0
        //功能:获取某车间的所有装置信息
        //参数:Cj_id 整型 车间Id
        //返回值:List<Equip_Archi>
        public List <Equip_Archi> getZzs_ofCj(int Cj_id)
        {
            List <Equip_Archi> r = EAs.getEA_Childs(Cj_id);

            return(r);
        }