/// <summary> /// 初始化病种组合 /// <auth>Yanqiao.Cai</auth> /// <date>2013-01-10</date> /// </summary> private void InitDiseaseGroup() { try { this.lookUpWindowInDiagGroup.SqlHelper = sql_Helper; this.lookUpWindowOutDiagGroup.SqlHelper = sql_Helper; DataTable diseaseGroupDT = DS_BaseService.GetDiseaseGroupsByUserID(DS_Common.currentUser.Id); if (null == diseaseGroupDT || diseaseGroupDT.Rows.Count == 0) { if (!diseaseGroupDT.Columns.Contains("ID")) { diseaseGroupDT.Columns.Add("ID"); } if (!diseaseGroupDT.Columns.Contains("NAME")) { diseaseGroupDT.Columns.Add("NAME"); } if (!diseaseGroupDT.Columns.Contains("PY")) { diseaseGroupDT.Columns.Add("PY"); } if (!diseaseGroupDT.Columns.Contains("WB")) { diseaseGroupDT.Columns.Add("WB"); } } diseaseGroupDT.Columns["NAME"].Caption = "诊断组合"; Dictionary <string, int> cols = new Dictionary <string, int>(); cols.Add("NAME", lookUpEditorInDiagGroup.Width); SqlWordbook inGroupWordBook = new SqlWordbook("queryname", diseaseGroupDT, "ID", "NAME", cols, "NAME//PY//WB"); SqlWordbook outGroupWordBook = new SqlWordbook("queryname", diseaseGroupDT, "ID", "NAME", cols, "NAME//PY//WB"); this.lookUpEditorInDiagGroup.SqlWordbook = inGroupWordBook; this.lookUpEditorOutDiagGroup.SqlWordbook = outGroupWordBook; } catch (Exception ex) { throw new Exception(ex.Message); } }