/// <summary> /// 得到病历评分配置数据信息 (评分类别) /// </summary> private void LoadConfigData() { DataTable m_ConfigDt = new DataTable(); m_ConfigDt = m_SqlManager.GetConfigPoint(); gridControl1.DataSource = m_ConfigDt;//绑定数据源 }
/// <summary> /// 窗体加载事件查出该病人的信息 /// add ywk /// </summary> /// <param name="m_NoOfInpat"></param> private void BindGridData(string m_NoOfInpat) { try { #region old按用户的添加创建DataTable(现改为先取出Table结构再塞值) //DataTable dtpat = m_SqlManager.GetPainetData(m_NoOfInpat); //DataTable newtable = OperateDTData(dt); //gridControlPaint.DataSource = newtable; #endregion #region 各评分项先固定,根据用户数据进行填充扣分内容 //(***另种方法也可以把几个关于文件夹的评分项先加进Table结构中*) DataTable dt = m_SqlManager.GetConfigPoint(); 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 dtdetail = m_SqlManager.GetEmrPointByNoofinpat(m_NoOfInpat, m_recordid); //可在此,加上固定的那几个一项的大类评分项( 病历封面,出院小结,首次病程记录。。。。) //对应usp_GetPointClass中写为上面的几个大分类 DataTable newtable = OperatePatPoint(dt, m_NoOfInpat); //DataTable OutTable = GetResultTable(newtable);//对可能包含对文件夹评分的且多次评分的table再次处理 //gridControlPaint.DataSource = OutTable; gridControlPaint.DataSource = newtable; #endregion GetPanientData(); GetPoint();//此处要取此病人的分数 } catch (Exception) { throw; } }