} //满分值。通过配置中取得 ywk 2012年6月12日 14:43:29 /// <summary> /// 按科室查询病人信息 /// </summary> /// <param name="p"></param> private void BindDataSouce(string deptid) { //新加个参数,计算总分 //SumPoint = Int32.Parse(m_SqlManager.GetConfigValueByKey("EmrPointConfig")); //SumPoint = m_SqlManager.GetSumPoint(m_NoOfInpat, m_app); m_patID = textEditPatID.Text.Trim(); m_name = textEditName.Text.Trim(); m_status = lookUpEditorStatus.CodeValue.Trim(); m_beginInTime = Convert.ToDateTime(dateEditBeginInTime.EditValue).ToString("yyyy-MM-dd HH:mm:ss").Trim(); m_endInTime = Convert.ToDateTime(dateEditEndInTime.EditValue).ToString("yyyy-MM-dd HH:mm:ss").Trim(); DataTable dt = m_SqlManager.GetPatientPinFen(deptid, m_patID, m_name, m_status, m_beginInTime, m_endInTime); DataColumn colREDPOINT = new DataColumn(); colREDPOINT.ColumnName = "REDPOINT"; DataColumn colKOUFENLIYOU = new DataColumn(); colKOUFENLIYOU.ColumnName = "KOUFENLIYOU"; dt.Columns.Add(colREDPOINT); dt.Columns.Add(colKOUFENLIYOU); for (int i = 0; i < dt.Rows.Count; i++) { //先在此处给空值,后面就要根据病人的Noofinpat来进行向相应的位置填值 dt.Rows[i]["REDPOINT"] = ""; dt.Rows[i]["KOUFENLIYOU"] = ""; } DataTable newtable = OperatePatPoint(dt); gridControl1.DataSource = newtable; }