public CatalogForm(DataTable template, DataTable templatePerson, RecordDal recordDal, Employee doctorEmployee, IEmrHost app, string sortID, Inpatient currentInpatient) { InitializeComponent(); SetShowType(); Bind(template, templatePerson); m_RecordDal = recordDal; m_DoctorEmployee = doctorEmployee; m_app = app; CurrentInpatient = currentInpatient; m_HistoryEMRBLL = new HistoryEMRBLL(app, currentInpatient, recordDal, sortID); xtraTabPageHistoryEMR.PageVisible = false; }
/// <summary> /// 加载病人信息 /// </summary> /// <param name="dt"></param> private void LoadHistoryPat(int noofinpat) { try { HistoryEMRBLL hisBLL = new HistoryEMRBLL(m_app, m_CurrentInpatient, m_RecordDal); //此处在改历史病历列表查询时没相应改掉 edit by ywk 2013年1月17日13:48:03 DataTable dt = hisBLL.GetHistoryInpatient(noofinpat, "", ""); foreach (DataRow dr in dt.Rows) { string noofinpatHistory = dr["noofinpat"].ToString(); string nameHistory = dr["name"].ToString(); string admitdateHistory = dr["admitdate"].ToString(); TreeListNode node = treeListHistory.AppendNode(new object[] { "入院时间:" + admitdateHistory }, null); node.Tag = new HistoryInpatient { NoOfInpat = noofinpatHistory, Name = nameHistory }; } } catch (Exception ex) { m_app.CustomMessageBox.MessageShow("LoadHistoryPat方法出错" + ex.Message); } }