/// <summary> /// 初始化历史病人记录 /// </summary> /// <param name="dateBegin"></param> /// <param name="dateEnd"></param> private void InitDataHistory(string dateBegin, string dateEnd) { try { DateTime?dtBegin = null, dtEnd = null; if (null != dateBegin && !string.IsNullOrEmpty(dateBegin.Trim())) { dtBegin = DateTime.Parse(dateBegin); } if (null != dateEnd && !string.IsNullOrEmpty(dateEnd.Trim())) { dtEnd = DateTime.Parse(dateEnd); } m_HistoryEmrBll = new HistoryEMRBLLNew(m_App, m_CurrentInpatient); DataTable dt = DS_SqlService.GetHistoryInpatients((int)m_CurrentInpatient.NoOfFirstPage, 1, dtBegin, dtEnd); gridControlInpatientList.DataSource = dt; } catch (Exception ex) { throw ex; } }