private string CheckBigLine() { string returnValue = string.Empty; SystemSettingFacade systemSettingFacade = new SystemSettingFacade(this.DataProvider); object[] bigLineList = systemSettingFacade.GetAllBIGSSCODE(); string[] textBigList = this.txtBigLineList.Text.ToUpper().Trim().Split(','); for (int i = 0; i < textBigList.Length; i++) { for (int j = 0; j < bigLineList.Length; j++) { if (((Parameter)bigLineList[j]).ParameterAlias.Trim().ToUpper() == textBigList[i].Trim().ToUpper()) { break; } if (j == bigLineList.Length - 1) { returnValue += textBigList[i].Trim().ToUpper() + ","; } } } if (returnValue.Length > 0) { returnValue = returnValue.Substring(0, returnValue.Length - 1); } return(returnValue); }
private void DoQuery() { SystemSettingFacade systemSettingFacade = new SystemSettingFacade(this.DataProvider); object[] bigLineList = systemSettingFacade.GetAllBIGSSCODE(); if (bigLineList != null) { DataRow rowNew; foreach (Parameter pm in bigLineList) { rowNew = this.m_BigLine.NewRow(); rowNew["Checked"] = false; rowNew["BigLine"] = pm.ParameterAlias; rowNew["BigLineDesc"] = pm.ParameterDescription; this.m_BigLine.Rows.Add(rowNew); } this.m_BigLine.AcceptChanges(); } this.ultraGridBigLines.ActiveRow = null; }