Esempio n. 1
0
        private void InitDepartmentList()
        {
            this.drpDepartmentEdit.Items.Clear();
            BenQGuru.eMES.BaseSetting.SystemSettingFacade sysFacade = new BenQGuru.eMES.BaseSetting.SystemSettingFacade(this.DataProvider);
            ITreeObjectNode   node    = sysFacade.BuildParameterTree("DEPARTMENT");
            TreeObjectNodeSet nodeSet = node.GetSubLevelChildrenNodes();

            for (int i = 0; i < nodeSet.Count; i++)
            {
                AppendParentParameter((ITreeObjectNode)nodeSet[i], "");
            }
        }
Esempio n. 2
0
        private void InitParentParameterList()
        {
            this.drpParentParameter.Items.Clear();
            drpParentParameter.Items.Add("");
            if (drpParameterGroupCodeEdit.SelectedValue == string.Empty)
            {
                return;
            }
            if (_facade == null)
            {
                _facade = new SystemSettingFacade(base.DataProvider);
            }
            ITreeObjectNode   node    = _facade.BuildParameterTree(drpParameterGroupCodeEdit.SelectedValue);
            TreeObjectNodeSet nodeSet = node.GetSubLevelChildrenNodes();

            for (int i = 0; i < nodeSet.Count; i++)
            {
                AppendParentParameter((ITreeObjectNode)nodeSet[i], "");
            }
        }