Example #1
0
        private void SetControl_EqpGroup()
        {
            List<string> list = new List<string>();

            var table = _modelContext.StdStep;
            if (table == null)
                return;

            string targetArea = this.TargetAreaID;

            foreach (var item in table)
            {
                string bal = item.BALANCE_TO_STEP;
                if (string.IsNullOrEmpty(bal) || CommonHelper.IsEmptyID(bal))
                    continue;

                if (item.AREA_ID != targetArea)
                    continue;

                string dispEqpGroup = item.DSP_EQP_GROUP_ID;
                if (list.Contains(dispEqpGroup))
                    continue;

                list.Add(dispEqpGroup);
            }

            ComboHelper.SetCheckedComboEdit(this.EqpGroupsCheckedBox, list);
        }