Beispiel #1
0
        private void SetControl_StepID()
        {
            SortedSet <string> list = new SortedSet <string>();
            var table = _modelContext.StdStep;

            if (table == null)
            {
                return;
            }

            string targetAreaID = this.TargetAreaID;

            foreach (var item in table)
            {
                string areaID = item.AREA_ID;
                if (areaID != targetAreaID)
                {
                    continue;
                }

                if (ComboHelper.Equals(item.IS_USE_MASK, "Y") == false)
                {
                    continue;
                }

                if (list.Contains(item.STEP_ID))
                {
                    continue;
                }

                list.Add(item.STEP_ID);
            }

            ComboHelper.SetComboEdit(this.StepComboEdit, list);
        }