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); }
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); }
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); }
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); }