/// <summary> /// 把选择时间记录内容重新整理为完全正确的内容 /// </summary> /// <param name="p_objRecordContent"></param> protected override void m_mthReAddNewRecord(clsTrackRecordContent p_objRecordContent) { //把选择时间记录内容重新整理为完全正确的内容,由子窗体重载实现 clsEMR_GestationDiabetesCureValue objContent = (clsEMR_GestationDiabetesCureValue)p_objRecordContent; }
/// <summary> /// 把特殊记录的值显示到界面上 /// </summary> /// <param name="p_objContent">VO</param> protected override void m_mthSetGUIFromContent(iCareData.clsTrackRecordContent p_objContent) { clsEMR_GestationDiabetesCureValue objContent = p_objContent as clsEMR_GestationDiabetesCureValue; if (objContent == null) { return; } this.m_mthClearRecordInfo(); m_dtpCreateDate.Value = objContent.m_dtmRecordDate; //////////////////////////////////////// this.m_txtGestationWeeks_vchr.m_mthSetNewText(objContent.m_strGestationWeeks_vchr.ToString(), objContent.m_strGestationWeeks_XML); this.m_txtAvoirdupois_vchr.m_mthSetNewText(objContent.m_strAvoirdupois_vchr.ToString(), objContent.m_strAvoirdupois_XML); this.m_txtStapleMeasure_vchr.m_mthSetNewText(objContent.m_strStapleMeasure_vchr.ToString(), objContent.m_strStapleMeasure_XML); this.m_txtInsulinLong_vchr.m_mthSetNewText(objContent.m_strInsulinLong_vchr, objContent.m_strInsulinLong_XML); this.m_txtInsulinShortMorning_vchr.m_mthSetNewText(objContent.m_strInsulinShortMorning_vchr, objContent.m_strInsulinShortMorning_XML); this.m_txtInsulinShortNoon_vchr.m_mthSetNewText(objContent.m_strInsulinShortNoon_vchr, objContent.m_strInsulinShortNoon_XML); this.m_txtInsulinShortNight_vchr.m_mthSetNewText(objContent.m_strInsulinShortNight_vchr, objContent.m_strInsulinShortNight_XML); this.m_txtBloodSugarLimosis_vchr.m_mthSetNewText(objContent.m_strBloodSugarLimosis_vchr, objContent.m_strBloodSugarLimosis_XML); this.m_txtBloodSugarBe_BF_vchr.m_mthSetNewText(objContent.m_strBloodSugarBe_BF_vchr, objContent.m_strBloodSugarBe_BF_XML); this.m_txtBloodSugarAf_BF_vchr.m_mthSetNewText(objContent.m_strBloodSugarAf_BF_vchr, objContent.m_strBloodSugarAf_BF_XML); this.m_txtBloodSugarBe_Lun_vchr.m_mthSetNewText(objContent.m_strBloodSugarBe_Lun_vchr, objContent.m_strBloodSugarBe_Lun_XML); this.m_txtBloodSugarAf_Lun_vchr.m_mthSetNewText(objContent.m_strBloodSugarAf_Lun_vchr, objContent.m_strBloodSugarAf_Lun_XML); this.m_txtBloodSugarBe_Sup_vchr.m_mthSetNewText(objContent.m_strBloodSugarBe_Sup_vchr, objContent.m_strBloodSugarBe_Sup_XML); this.m_txtBloodSugarAf_Sup_vchr.m_mthSetNewText(objContent.m_strBloodSugarAf_Sup_vchr, objContent.m_strBloodSugarAf_Sup_XML); this.m_txtUreaketone_vchr.m_mthSetNewText(objContent.m_strUreaketone_vchr, objContent.m_strUreaketone_XML); //m_txtCheckResult.m_mthSetNewText(objContent.m_strCHECKRESULT_VCHR,objContent.m_strCHECKRESULT_XML); //m_cboCheckTime.Text = objContent.m_strCHECKTIME_RIGHT; #region 签名集合 if (objContent.objSignerArr != null) { m_mthAddSignToListView(lsvSign, objContent.objSignerArr); } else { lsvSign.Items.Clear(); clsEmrEmployeeBase_VO objEMP = null; clsHospitalManagerDomain objDomain = new clsHospitalManagerDomain(); long lngRes = objDomain.m_lngGetEmpByID(objContent.m_strCreateUserID, out objEMP); if (objEMP != null) { ListViewItem lviNewItem = new ListViewItem(objEMP.m_strGetTechnicalRankAndName); lviNewItem.SubItems.Add(objEMP.m_strEMPID_CHR); lviNewItem.SubItems.Add(objEMP.m_StrHistroyLevel); lviNewItem.Tag = objEMP; lsvSign.Items.Add(lviNewItem); } objDomain = null; } #endregion 签名 this.lsvSign.Enabled = false; this.m_cmdSign.Enabled = false; }
/// <summary> /// 获取记录的主要信息(必须获取的是CreateDate,LastModifyDate) /// </summary> /// <param name="p_intRecordType"></param> /// <param name="p_objDataArr"></param> /// <returns></returns> protected override clsTrackRecordContent m_objGetRecordMainContent(int p_intRecordType, object[] p_objDataArr) { //根据 p_intRecordType 获取对应的 clsTrackRecordContent clsTrackRecordContent objContent = null; switch ((enmDiseaseTrackType)p_intRecordType) { case enmDiseaseTrackType.EMR_GestationDiabetesCure: objContent = new clsEMR_GestationDiabetesCureValue(); break; } if (objContent == null) { objContent = new clsEMR_GestationDiabetesCureValue(); } if (m_objCurrentPatient != null) { objContent.m_strInPatientID = m_objCurrentPatient.m_StrInPatientID; } else { clsPublicFunction.ShowInformationMessageBox("当前病人为空!"); return(null); } int intSelectedRecordStartRow = m_dtgRecordDetail.CurrentCell.RowNumber; objContent.m_dtmInPatientDate = m_objCurrentPatient.m_DtmSelectedInDate; objContent.m_dtmCreateDate = DateTime.Parse((string)p_objDataArr[2]); objContent.m_dtmModifyDate = DateTime.Parse((string)p_objDataArr[3]); objContent.m_strCreateUserID = (string)p_objDataArr[21]; if (frmHRPExplorer.objpCurrentPatient == null) { objContent.m_strRegisterID = frmHRPExplorer.objpCurrentPatient.m_strREGISTERID_CHR; } return(objContent); }
/// <summary> /// 从界面获取记录内容 /// </summary> /// <returns></returns> protected override iCareData.clsTrackRecordContent m_objGetContentFromGUI() { //界面参数校验 if (m_objCurrentPatient == null || m_ObjCurrentEmrPatientSession == null) { return(null); } //从界面获取表单值 clsEMR_GestationDiabetesCureValue objContent = new clsEMR_GestationDiabetesCureValue(); try { string StrNow = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); objContent.m_dtmCreateDate = Convert.ToDateTime(StrNow); objContent.m_strCreateUserID = clsEMRLogin.LoginInfo.m_strEmpID; objContent.m_dtmModifyDate = Convert.ToDateTime(StrNow); objContent.m_strModifyUserID = clsEMRLogin.LoginInfo.m_strEmpID; objContent.m_strRegisterID = frmHRPExplorer.objpCurrentPatient.m_strREGISTERID_CHR; objContent.m_dtmRecordDate = Convert.ToDateTime(m_dtpCreateDate.Value.ToString("yyyy-MM-dd HH:mm:ss")); //孕周 objContent.m_strGestationWeeks_right = this.m_txtGestationWeeks_vchr.m_strGetRightText(); objContent.m_strGestationWeeks_vchr = m_txtGestationWeeks_vchr.Text; objContent.m_strGestationWeeks_XML = m_txtGestationWeeks_vchr.m_strGetXmlText(); //体重 单位kg objContent.m_strAvoirdupois_right = this.m_txtAvoirdupois_vchr.m_strGetRightText(); objContent.m_strAvoirdupois_vchr = m_txtAvoirdupois_vchr.Text; objContent.m_strAvoirdupois_XML = m_txtAvoirdupois_vchr.m_strGetXmlText(); //主食量 (两) objContent.m_strStapleMeasure_right = this.m_txtStapleMeasure_vchr.m_strGetRightText(); objContent.m_strStapleMeasure_vchr = m_txtStapleMeasure_vchr.Text; objContent.m_strStapleMeasure_XML = m_txtStapleMeasure_vchr.m_strGetXmlText(); //胰岛素用量IU(长效) objContent.m_strInsulinLong_right = this.m_txtInsulinLong_vchr.m_strGetRightText(); objContent.m_strInsulinLong_vchr = m_txtInsulinLong_vchr.Text; objContent.m_strInsulinLong_XML = m_txtInsulinLong_vchr.m_strGetXmlText(); //胰岛素用量IU(短效) 早 objContent.m_strInsulinShortMorning_right = this.m_txtInsulinShortMorning_vchr.m_strGetRightText(); objContent.m_strInsulinShortMorning_vchr = m_txtInsulinShortMorning_vchr.Text; objContent.m_strInsulinShortMorning_XML = m_txtInsulinShortMorning_vchr.m_strGetXmlText(); //胰岛素用量IU(短效) 中 objContent.m_strInsulinShortNoon_right = this.m_txtInsulinShortNoon_vchr.m_strGetRightText(); objContent.m_strInsulinShortNoon_vchr = m_txtInsulinShortNoon_vchr.Text; objContent.m_strInsulinShortNoon_XML = m_txtInsulinShortNoon_vchr.m_strGetXmlText(); //胰岛素用量IU(短效) 晚 objContent.m_strInsulinShortNight_right = this.m_txtInsulinShortNight_vchr.m_strGetRightText(); objContent.m_strInsulinShortNight_vchr = m_txtInsulinShortNight_vchr.Text; objContent.m_strInsulinShortNight_XML = m_txtInsulinShortNight_vchr.m_strGetXmlText(); //血糖定量 mmol/L(空腹) objContent.m_strBloodSugarLimosis_right = this.m_txtBloodSugarLimosis_vchr.m_strGetRightText(); objContent.m_strBloodSugarLimosis_vchr = m_txtBloodSugarLimosis_vchr.Text; objContent.m_strBloodSugarLimosis_XML = m_txtBloodSugarLimosis_vchr.m_strGetXmlText(); //血糖定量 mmol/L(早饭 前) objContent.m_strBloodSugarBe_BF_right = this.m_txtBloodSugarBe_BF_vchr.m_strGetRightText(); objContent.m_strBloodSugarBe_BF_vchr = m_txtBloodSugarBe_BF_vchr.Text; objContent.m_strBloodSugarBe_BF_XML = m_txtBloodSugarBe_BF_vchr.m_strGetXmlText(); //血糖定量 mmol/L(早饭 后) objContent.m_strBloodSugarAf_BF_right = this.m_txtBloodSugarAf_BF_vchr.m_strGetRightText(); objContent.m_strBloodSugarAf_BF_vchr = m_txtBloodSugarAf_BF_vchr.Text; objContent.m_strBloodSugarAf_BF_XML = m_txtBloodSugarAf_BF_vchr.m_strGetXmlText(); //血糖定量 mmol/L(午饭 前) objContent.m_strBloodSugarBe_Lun_right = this.m_txtBloodSugarBe_Lun_vchr.m_strGetRightText(); objContent.m_strBloodSugarBe_Lun_vchr = m_txtBloodSugarBe_Lun_vchr.Text; objContent.m_strBloodSugarBe_Lun_XML = m_txtBloodSugarBe_Lun_vchr.m_strGetXmlText(); //血糖定量 mmol/L(午饭 后) objContent.m_strBloodSugarAf_Lun_right = this.m_txtBloodSugarAf_Lun_vchr.m_strGetRightText(); objContent.m_strBloodSugarAf_Lun_vchr = m_txtBloodSugarAf_Lun_vchr.Text; objContent.m_strBloodSugarAf_Lun_XML = m_txtBloodSugarAf_Lun_vchr.m_strGetXmlText(); //血糖定量 mmol/L(晚饭 前) objContent.m_strBloodSugarBe_Sup_right = this.m_txtBloodSugarBe_Sup_vchr.m_strGetRightText(); objContent.m_strBloodSugarBe_Sup_vchr = m_txtBloodSugarBe_Sup_vchr.Text; objContent.m_strBloodSugarBe_Sup_XML = m_txtBloodSugarBe_Sup_vchr.m_strGetXmlText(); //血糖定量 mmol/L(晚饭 后) objContent.m_strBloodSugarAf_Sup_right = this.m_txtBloodSugarAf_Sup_vchr.m_strGetRightText(); objContent.m_strBloodSugarAf_Sup_vchr = m_txtBloodSugarAf_Sup_vchr.Text; objContent.m_strBloodSugarAf_Sup_XML = m_txtBloodSugarAf_Sup_vchr.m_strGetXmlText(); //尿酮 objContent.m_strUreaketone_right = this.m_txtUreaketone_vchr.m_strGetRightText(); objContent.m_strUreaketone_vchr = m_txtUreaketone_vchr.Text; objContent.m_strUreaketone_XML = "<root />"; //objContent.m_strCHECKTIME_RIGHT = m_cboCheckTime.Text; //objContent.m_strCHECKTIME_VCHR = m_cboCheckTime.Text; //objContent.m_strCHECKTIME_XML = "<root />"; #region 获取签名 objContent.objSignerArr = null; strUserIDList = ""; strUserNameList = ""; m_mthGetSignArr(new Control[] { lsvSign }, ref objContent.objSignerArr, ref strUserIDList, ref strUserNameList); objContent.m_strRecordUserID = strUserIDList; #endregion } catch (Exception ex) { MessageBox.Show(ex.Message); return(null); } return(objContent); }
/// <summary> /// 获取显示到DataGrid的数据 /// </summary> /// <param name="p_objTransDataInfo"></param> /// <returns></returns> protected override object[][] m_objGetRecordsValueArr(clsTransDataInfo p_objTransDataInfo) { #region 显示记录到DataGrid try { object[] objData; ArrayList objReturnData = new ArrayList(); clsEMR_GestationDiabetesCureDataInfo objInfo = null; objInfo = p_objTransDataInfo as clsEMR_GestationDiabetesCureDataInfo; if (objInfo == null || objInfo.m_objRecordArr == null) { return(null); } int intRecordCount = objInfo.m_objRecordArr.Length; clsDSTRichTextBoxValue objclsDSTRichTextBoxValue; string strText, strXml; #region 获取修改限定时间 int intCanModifyTime = 0; try { intCanModifyTime = int.Parse(m_strCanModifyTime); } catch { intCanModifyTime = 6; } #endregion for (int i = 0; i < intRecordCount; i++) { objData = new object[22]; clsEMR_GestationDiabetesCureValue objCurrent = objInfo.m_objRecordArr[i]; clsEMR_GestationDiabetesCureValue objNext = new clsEMR_GestationDiabetesCureValue();//下一条记录 if (i < intRecordCount - 1) { objNext = objInfo.m_objRecordArr[i + 1]; } //如果该护理记录是修改前的记录且是在指定时间内修改的,修改者与创建者为同一人,则不显示 if (objNext != null && objNext.m_dtmCreateDate == objCurrent.m_dtmCreateDate && objNext.m_strModifyUserID.Trim() == objCurrent.m_strCreateUserID.Trim()) { TimeSpan tsModify = objNext.m_dtmModifyDate - objCurrent.m_dtmModifyDate; if ((int)tsModify.TotalHours < intCanModifyTime) { continue; } } #region 存放关键字段 if (objCurrent.m_dtmCreateDate != DateTime.MinValue) { objData[0] = objCurrent.m_dtmRecordDate; //存放记录时间的字符串 objData[1] = (int)enmRecordsType.EMR_GestationDiabetesCure; //存放记录类型的int值 objData[2] = objCurrent.m_dtmCreateDate; //存放记录的OpenDate字符串 objData[3] = objCurrent.m_dtmModifyDate; //存放记录的ModifyDate字符串 //同一个则只在第一行显示日期 if (objCurrent.m_dtmRecordDate.Date.ToString() != m_dtmPreRecordDate.Date.ToString()) { objData[4] = objCurrent.m_dtmRecordDate.Date.ToString("yyyy-MM-dd"); //日期字符串 } objData[21] = objCurrent.m_strCreateUserID; //存放记录的createUserid字符串 } m_dtmPreRecordDate = objCurrent.m_dtmRecordDate; #endregion ; #region 存放单项信息 //妊周 strText = objCurrent.m_strGestationWeeks_right.ToString(); strXml = "<root />"; if (objNext != null && objNext.m_dtmCreateDate == objCurrent.m_dtmCreateDate && objNext.m_strGestationWeeks_right != objCurrent.m_strGestationWeeks_right) /*objNext的记录内容与objCurrent的记录内容不一致,文本需要加双划线*/ { strXml = m_strGetDSTTextXML(objCurrent.m_strGestationWeeks_right.ToString(), objCurrent.m_strModifyUserID, objCurrent.m_strModifyUserName); } objclsDSTRichTextBoxValue = new clsDSTRichTextBoxValue(); objclsDSTRichTextBoxValue.m_strText = strText; objclsDSTRichTextBoxValue.m_strDSTXml = strXml; objData[5] = objclsDSTRichTextBoxValue; //体重 单位kg strText = objCurrent.m_strAvoirdupois_right.ToString(); strXml = "<root />"; if (objNext != null && objNext.m_dtmCreateDate == objCurrent.m_dtmCreateDate && objNext.m_strAvoirdupois_right != objCurrent.m_strAvoirdupois_right) /*objNext的记录内容与objCurrent的记录内容不一致,文本需要加双划线*/ { strXml = m_strGetDSTTextXML(objCurrent.m_strAvoirdupois_right.ToString(), objCurrent.m_strModifyUserID, objCurrent.m_strModifyUserName); } objclsDSTRichTextBoxValue = new clsDSTRichTextBoxValue(); objclsDSTRichTextBoxValue.m_strText = strText; objclsDSTRichTextBoxValue.m_strDSTXml = strXml; objData[6] = objclsDSTRichTextBoxValue; //主食量 (两) strText = objCurrent.m_strStapleMeasure_right.ToString(); strXml = "<root />"; if (objNext != null && objNext.m_dtmCreateDate == objCurrent.m_dtmCreateDate && objNext.m_strStapleMeasure_right != objCurrent.m_strStapleMeasure_right) /*objNext的记录内容与objCurrent的记录内容不一致,文本需要加双划线*/ { strXml = m_strGetDSTTextXML(objCurrent.m_strStapleMeasure_right.ToString(), objCurrent.m_strModifyUserID, objCurrent.m_strModifyUserName); } objclsDSTRichTextBoxValue = new clsDSTRichTextBoxValue(); objclsDSTRichTextBoxValue.m_strText = strText; objclsDSTRichTextBoxValue.m_strDSTXml = strXml; objData[7] = objclsDSTRichTextBoxValue; //胰岛素用量IU(长效) strText = objCurrent.m_strInsulinLong_right.ToString(); strXml = "<root />"; if (objNext != null && objNext.m_dtmCreateDate == objCurrent.m_dtmCreateDate && objNext.m_strInsulinLong_right != objCurrent.m_strInsulinLong_right) /*objNext的记录内容与objCurrent的记录内容不一致,文本需要加双划线*/ { strXml = m_strGetDSTTextXML(objCurrent.m_strInsulinLong_right.ToString(), objCurrent.m_strModifyUserID, objCurrent.m_strModifyUserName); } objclsDSTRichTextBoxValue = new clsDSTRichTextBoxValue(); objclsDSTRichTextBoxValue.m_strText = strText; objclsDSTRichTextBoxValue.m_strDSTXml = strXml; objData[8] = objclsDSTRichTextBoxValue; //胰岛素用量IU(短效) 早 strText = objCurrent.m_strInsulinShortMorning_right.ToString(); strXml = "<root />"; if (objNext != null && objNext.m_dtmCreateDate == objCurrent.m_dtmCreateDate && objNext.m_strInsulinShortMorning_right != objCurrent.m_strInsulinShortMorning_right) /*objNext的记录内容与objCurrent的记录内容不一致,文本需要加双划线*/ { strXml = m_strGetDSTTextXML(objCurrent.m_strInsulinShortMorning_right.ToString(), objCurrent.m_strModifyUserID, objCurrent.m_strModifyUserName); } objclsDSTRichTextBoxValue = new clsDSTRichTextBoxValue(); objclsDSTRichTextBoxValue.m_strText = strText; objclsDSTRichTextBoxValue.m_strDSTXml = strXml; objData[9] = objclsDSTRichTextBoxValue; //胰岛素用量IU(短效) 中 strText = objCurrent.m_strInsulinShortNoon_right.ToString(); strXml = "<root />"; if (objNext != null && objNext.m_dtmCreateDate == objCurrent.m_dtmCreateDate && objNext.m_strInsulinShortNoon_right != objCurrent.m_strInsulinShortNoon_right) /*objNext的记录内容与objCurrent的记录内容不一致,文本需要加双划线*/ { strXml = m_strGetDSTTextXML(objCurrent.m_strInsulinShortNoon_right.ToString(), objCurrent.m_strModifyUserID, objCurrent.m_strModifyUserName); } objclsDSTRichTextBoxValue = new clsDSTRichTextBoxValue(); objclsDSTRichTextBoxValue.m_strText = strText; objclsDSTRichTextBoxValue.m_strDSTXml = strXml; objData[10] = objclsDSTRichTextBoxValue; //胰岛素用量IU(短效) 晚 strText = objCurrent.m_strInsulinShortNight_right.ToString(); strXml = "<root />"; if (objNext != null && objNext.m_dtmCreateDate == objCurrent.m_dtmCreateDate && objNext.m_strInsulinShortNight_right != objCurrent.m_strInsulinShortNight_right) /*objNext的记录内容与objCurrent的记录内容不一致,文本需要加双划线*/ { strXml = m_strGetDSTTextXML(objCurrent.m_strInsulinShortNight_right.ToString(), objCurrent.m_strModifyUserID, objCurrent.m_strModifyUserName); } objclsDSTRichTextBoxValue = new clsDSTRichTextBoxValue(); objclsDSTRichTextBoxValue.m_strText = strText; objclsDSTRichTextBoxValue.m_strDSTXml = strXml; objData[11] = objclsDSTRichTextBoxValue; //血糖定量 mmol/L (空腹) strText = objCurrent.m_strBloodSugarLimosis_right.ToString(); strXml = "<root />"; if (objNext != null && objNext.m_dtmCreateDate == objCurrent.m_dtmCreateDate && objNext.m_strBloodSugarLimosis_right != objCurrent.m_strBloodSugarLimosis_right) /*objNext的记录内容与objCurrent的记录内容不一致,文本需要加双划线*/ { strXml = m_strGetDSTTextXML(objCurrent.m_strBloodSugarLimosis_right.ToString(), objCurrent.m_strModifyUserID, objCurrent.m_strModifyUserName); } objclsDSTRichTextBoxValue = new clsDSTRichTextBoxValue(); objclsDSTRichTextBoxValue.m_strText = strText; objclsDSTRichTextBoxValue.m_strDSTXml = strXml; objData[12] = objclsDSTRichTextBoxValue; //血糖定量 mmol/L (早饭 前) strText = objCurrent.m_strBloodSugarBe_BF_right.ToString(); strXml = "<root />"; if (objNext != null && objNext.m_dtmCreateDate == objCurrent.m_dtmCreateDate && objNext.m_strBloodSugarBe_BF_right != objCurrent.m_strBloodSugarBe_BF_right) /*objNext的记录内容与objCurrent的记录内容不一致,文本需要加双划线*/ { strXml = m_strGetDSTTextXML(objCurrent.m_strBloodSugarBe_BF_right.ToString(), objCurrent.m_strModifyUserID, objCurrent.m_strModifyUserName); } objclsDSTRichTextBoxValue = new clsDSTRichTextBoxValue(); objclsDSTRichTextBoxValue.m_strText = strText; objclsDSTRichTextBoxValue.m_strDSTXml = strXml; objData[13] = objclsDSTRichTextBoxValue; //血糖定量 mmol/L (早饭 后) strText = objCurrent.m_strBloodSugarAf_BF_right.ToString(); strXml = "<root />"; if (objNext != null && objNext.m_dtmCreateDate == objCurrent.m_dtmCreateDate && objNext.m_strBloodSugarAf_BF_right != objCurrent.m_strBloodSugarAf_BF_right) /*objNext的记录内容与objCurrent的记录内容不一致,文本需要加双划线*/ { strXml = m_strGetDSTTextXML(objCurrent.m_strBloodSugarAf_BF_right.ToString(), objCurrent.m_strModifyUserID, objCurrent.m_strModifyUserName); } objclsDSTRichTextBoxValue = new clsDSTRichTextBoxValue(); objclsDSTRichTextBoxValue.m_strText = strText; objclsDSTRichTextBoxValue.m_strDSTXml = strXml; objData[14] = objclsDSTRichTextBoxValue; //血糖定量 mmol/L (午饭 前) strText = objCurrent.m_strBloodSugarBe_Lun_right.ToString(); strXml = "<root />"; if (objNext != null && objNext.m_dtmCreateDate == objCurrent.m_dtmCreateDate && objNext.m_strBloodSugarBe_Lun_right != objCurrent.m_strBloodSugarBe_Lun_right) /*objNext的记录内容与objCurrent的记录内容不一致,文本需要加双划线*/ { strXml = m_strGetDSTTextXML(objCurrent.m_strBloodSugarBe_Lun_right.ToString(), objCurrent.m_strModifyUserID, objCurrent.m_strModifyUserName); } objclsDSTRichTextBoxValue = new clsDSTRichTextBoxValue(); objclsDSTRichTextBoxValue.m_strText = strText; objclsDSTRichTextBoxValue.m_strDSTXml = strXml; objData[15] = objclsDSTRichTextBoxValue; //血糖定量 mmol/L (午饭 后) strText = objCurrent.m_strBloodSugarAf_Lun_right.ToString(); strXml = "<root />"; if (objNext != null && objNext.m_dtmCreateDate == objCurrent.m_dtmCreateDate && objNext.m_strBloodSugarAf_Lun_right != objCurrent.m_strBloodSugarAf_Lun_right) /*objNext的记录内容与objCurrent的记录内容不一致,文本需要加双划线*/ { strXml = m_strGetDSTTextXML(objCurrent.m_strBloodSugarAf_Lun_right.ToString(), objCurrent.m_strModifyUserID, objCurrent.m_strModifyUserName); } objclsDSTRichTextBoxValue = new clsDSTRichTextBoxValue(); objclsDSTRichTextBoxValue.m_strText = strText; objclsDSTRichTextBoxValue.m_strDSTXml = strXml; objData[16] = objclsDSTRichTextBoxValue; //血糖定量 mmol/L (晚饭 前) strText = objCurrent.m_strBloodSugarBe_Sup_right.ToString(); strXml = "<root />"; if (objNext != null && objNext.m_dtmCreateDate == objCurrent.m_dtmCreateDate && objNext.m_strBloodSugarBe_Sup_right != objCurrent.m_strBloodSugarBe_Sup_right) /*objNext的记录内容与objCurrent的记录内容不一致,文本需要加双划线*/ { strXml = m_strGetDSTTextXML(objCurrent.m_strBloodSugarBe_Sup_right.ToString(), objCurrent.m_strModifyUserID, objCurrent.m_strModifyUserName); } objclsDSTRichTextBoxValue = new clsDSTRichTextBoxValue(); objclsDSTRichTextBoxValue.m_strText = strText; objclsDSTRichTextBoxValue.m_strDSTXml = strXml; objData[17] = objclsDSTRichTextBoxValue; //血糖定量 mmol/L (晚饭 后) strText = objCurrent.m_strBloodSugarAf_Sup_right.ToString(); strXml = "<root />"; if (objNext != null && objNext.m_dtmCreateDate == objCurrent.m_dtmCreateDate && objNext.m_strBloodSugarAf_Sup_right != objCurrent.m_strBloodSugarAf_Sup_right) /*objNext的记录内容与objCurrent的记录内容不一致,文本需要加双划线*/ { strXml = m_strGetDSTTextXML(objCurrent.m_strBloodSugarAf_Sup_right.ToString(), objCurrent.m_strModifyUserID, objCurrent.m_strModifyUserName); } objclsDSTRichTextBoxValue = new clsDSTRichTextBoxValue(); objclsDSTRichTextBoxValue.m_strText = strText; objclsDSTRichTextBoxValue.m_strDSTXml = strXml; objData[18] = objclsDSTRichTextBoxValue; //尿酮 strText = objCurrent.m_strUreaketone_right.ToString(); strXml = "<root />"; if (objNext != null && objNext.m_dtmCreateDate == objCurrent.m_dtmCreateDate && objNext.m_strUreaketone_right != objCurrent.m_strUreaketone_right) /*objNext的记录内容与objCurrent的记录内容不一致,文本需要加双划线*/ { strXml = m_strGetDSTTextXML(objCurrent.m_strUreaketone_right.ToString(), objCurrent.m_strModifyUserID, objCurrent.m_strModifyUserName); } objclsDSTRichTextBoxValue = new clsDSTRichTextBoxValue(); objclsDSTRichTextBoxValue.m_strText = strText; objclsDSTRichTextBoxValue.m_strDSTXml = strXml; objData[19] = objclsDSTRichTextBoxValue; if (objCurrent.objSignerArr != null) { //签名 strText = string.Empty; for (int j = 0; j < objCurrent.objSignerArr.Length; j++) { strText += objCurrent.objSignerArr[j].objEmployee.m_strGetTechnicalRankAndName + " "; } strXml = "<root />"; objclsDSTRichTextBoxValue = new clsDSTRichTextBoxValue(); objclsDSTRichTextBoxValue.m_strText = strText; objclsDSTRichTextBoxValue.m_strDSTXml = strXml; objData[20] = objclsDSTRichTextBoxValue; } else //从旧表导过来的数据没有电子签名 { clsEmrEmployeeBase_VO objEMP = null; clsHospitalManagerDomain objDomain = new clsHospitalManagerDomain(); long lngRes = objDomain.m_lngGetEmpByID(objCurrent.m_strCreateUserID, out objEMP); if (objEMP != null) { strText = objEMP.m_strLASTNAME_VCHR; strXml = "<root />"; objclsDSTRichTextBoxValue = new clsDSTRichTextBoxValue(); objclsDSTRichTextBoxValue.m_strText = strText; objclsDSTRichTextBoxValue.m_strDSTXml = strXml; objData[20] = objclsDSTRichTextBoxValue; } objDomain = null; } #endregion objReturnData.Add(objData); } object[][] m_objRe = new object[objReturnData.Count][]; for (int m = 0; m < objReturnData.Count; m++) { m_objRe[m] = (object[])objReturnData[m]; } return(m_objRe); } catch (Exception ex) { MessageBox.Show(ex.Message); return(null); } #endregion }