public DataListSearch(string str) { InitializeComponent(); RecordsName = str; if (this.RecordsName == "接诊记录") { archive_baseinfo = new ReceiveTreatBaseInfoBLL(); this.ckCheckDate.Text = "接诊日期"; this.dgvData.Columns[7].HeaderText = "接诊日期"; } else if (this.RecordsName == "会诊记录") { archive_baseinfo = new ConsulationBaseInfoBLL(); this.ckCheckDate.Text = "会诊日期"; this.dgvData.Columns[7].HeaderText = "会诊日期"; } else if (this.RecordsName == "转诊记录") { archive_baseinfo = new ReferraBaseInfoBLL(); this.ckCheckDate.Text = "转诊日期"; this.dgvData.Columns[7].HeaderText = "转诊日期"; } this.dgvData.AutoGenerateColumns = false; this.EveryThingIsOk = false; }
private string SignPath = ConfigurationManager.AppSettings["SignPath"] == null ? @"Sign/" : ConfigurationManager.AppSettings["SignPath"].ToString(); //签名保存路径 public GroupDataListsSearch(string str) { InitializeComponent(); RecordsName = str; switch (RecordsName) { case "老年人记录": archive_baseinfo = new OlderSelfCareabilityBLL(); this.strcheckdate = "FollowUpDate"; break; case "高血压记录": archive_baseinfo = new ChronicHypertensionVisitBLL(); this.strcheckdate = "FollowUpDate"; break; case "糖尿病记录": archive_baseinfo = new ChronicDiadetesVisitBLL(); this.strcheckdate = "VisitDate"; break; case "冠心病记录": archive_baseinfo = new ChronicChdVisitBLL(); this.strcheckdate = "VisitDate"; break; case "脑卒中记录": archive_baseinfo = new ChronicStrokeVisitBLL(); this.strcheckdate = "FollowupDate"; break; case "精神病记录": archive_baseinfo = new ChronicMentalDiseaseVisitBLL(); this.strcheckdate = "FollowUpDate"; break; case "肺结核记录": archive_baseinfo = new ChronicLungerFirstVisitBLL(); this.strcheckdate = "FollowupDate"; break; case "": break; default: break; } this.strorderby = this.strcheckdate + " desc,C.ID ASC "; this.dgvData.AutoGenerateColumns = false; this.EveryThingIsOk = false; this.HaveToSave = false; }