Пример #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);
        }
Пример #2
0
        private void SetControl_AreaID()
        {
            List <string> list = new List <string>();

            var table = _modelContext.StdStep;

            if (table == null)
            {
                return;
            }

            foreach (var item in table)
            {
                //if (ComboHelper.Equals(item.IS_USE_MASK, "Y") == false)
                //    continue;

                string areaID = item.AREA_ID;
                if (list.Contains(areaID))
                {
                    continue;
                }

                list.Add(areaID);
            }

            list.Sort(Globals.Comparer_AreaID);

            ComboHelper.SetComboEdit(this.AreaComboEdit, list);
        }
Пример #3
0
        private void SetControl_ProductID()
        {
            SortedSet <string> list = new SortedSet <string>();

            var table = _modelContext.Product;

            if (table == null)
            {
                return;
            }

            string targetAreaID = this.TargetAreaID;

            foreach (var item in table)
            {
                string areaID = Globals.GetAreaIDByProductID(item.PRODUCT_ID, item.SHOP_ID);
                if (areaID != targetAreaID)
                {
                    continue;
                }

                list.Add(item.PRODUCT_ID);
            }

            ComboHelper.SetComboEdit(this.ProductComboEdit, list);
        }
Пример #4
0
        private void SetControl_AreaID()
        {
            List<string> list = new List<string>();

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

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

                string areaID = item.AREA_ID;
                if (list.Contains(areaID))
                    continue;

                list.Add(areaID);
            }

            list.Sort(Globals.Comparer_AreaID);

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