protected override void m_mthSetDeletedGUIFromContent(clsTrackRecordContent p_objContent) { if (p_objContent == null) { return; } clsConveyRecordContent_XJ objContent = (clsConveyRecordContent_XJ)p_objContent; //把表单值赋值到界面,由子窗体重载实现 txtruyuanqingkuang.Text = com.digitalwave.Utility.Controls.ctlRichTextBox.s_strGetRightText(objContent.m_strRuYuanQingKuang, objContent.m_strRuYuanQingKuangXML); txtzhongyiruyuan.Text = com.digitalwave.Utility.Controls.ctlRichTextBox.s_strGetRightText(objContent.m_strZhongYiRuYuan, objContent.m_strZhongYiRuYuanXML); txtxiyiruyuan.Text = com.digitalwave.Utility.Controls.ctlRichTextBox.s_strGetRightText(objContent.m_strXiYiRuYuan, objContent.m_strXiYiRuYuanXML); txtzhenliaojingguo.Text = com.digitalwave.Utility.Controls.ctlRichTextBox.s_strGetRightText(objContent.m_strZhenLiaoJingGuo, objContent.m_strZhenLiaoJingGuoXML); txtmuqianqingkuang.Text = com.digitalwave.Utility.Controls.ctlRichTextBox.s_strGetRightText(objContent.m_strMuQianQingKuang, objContent.m_strMuQianQingKuangXML); txtzhongyimuqian.Text = com.digitalwave.Utility.Controls.ctlRichTextBox.s_strGetRightText(objContent.m_strZhongYiMuQian, objContent.m_strZhongYiMuQianXML); txtxiyimuqian.Text = com.digitalwave.Utility.Controls.ctlRichTextBox.s_strGetRightText(objContent.m_strXiYiMuQian, objContent.m_strXiYiMuQianXML); txtzhuyishixiang.Text = com.digitalwave.Utility.Controls.ctlRichTextBox.s_strGetRightText(objContent.m_strZhenLiaoJiHua, objContent.m_strZhenLiaoJiHuaXML); txtzhuankemudi.Text = com.digitalwave.Utility.Controls.ctlRichTextBox.s_strGetRightText(objContent.m_strZhuanKeMuDi, objContent.m_strZhuanKeMuDiXML); //txtzhenliaojingguo.Text = com.digitalwave.Utility.Controls.ctlRichTextBox.s_strGetRightText(objContent.m_strZhenLiaoJingGuo, objContent.m_strZhenLiaoJingGuoXML); if (objContent.objSignerArr != null) { m_mthAddSignToListView(lsvSign, objContent.objSignerArr); } #region 入院原因(主诉) clsInPatientCaseHisoryDefaultValue[] objInPatientCaseHisoryDefaultValueArr = new clsInPatientCaseHisoryDefaultDomain().lngGetAllInPatientCaseHisoryDefault(m_objCurrentPatient.m_StrInPatientID, m_ObjLastEmrPatientSession.m_dtmEMRInpatientDate.ToString("yyyy-MM-dd HH:mm:ss")); if (objInPatientCaseHisoryDefaultValueArr != null && objInPatientCaseHisoryDefaultValueArr.Length > 0) { m_lblInHospitalReason.Text = objInPatientCaseHisoryDefaultValueArr[0].m_strMainDescription; } #endregion 入院原因(主诉) }
/// <summary> /// 特殊记录内容格式Xml的获取 /// </summary> /// <returns></returns> public override string m_strGetTrackXml() { if (m_objRecordContent == null) { return(""); } clsConveyRecordContent_XJ objContent = ((clsConveyRecordContent_XJ)m_objRecordContent); string strText = m_strGetHeaderText(); string strCreateUserName = m_strGetSignText(); string strXML1 = ctlRichTextBox.clsXmlTool.s_strMakeTextXml(strText, objContent.m_strCreateUserID, strCreateUserName, System.Drawing.Color.White); string strXML2 = ctlRichTextBox.clsXmlTool.s_strMakeTextXml("\n入院情况:\n", objContent.m_strCreateUserID, strCreateUserName, System.Drawing.Color.White); string strXML3 = ctlRichTextBox.clsXmlTool.s_strMakeTextXml("\n中医入院诊断:\n", objContent.m_strCreateUserID, strCreateUserName, System.Drawing.Color.White); string strXML4 = ctlRichTextBox.clsXmlTool.s_strMakeTextXml("\n西医入院诊断:\n", objContent.m_strCreateUserID, strCreateUserName, System.Drawing.Color.White); string strXML5 = ctlRichTextBox.clsXmlTool.s_strMakeTextXml("\n诊疗经过:\n", objContent.m_strCreateUserID, strCreateUserName, System.Drawing.Color.White); string strXML6 = ctlRichTextBox.clsXmlTool.s_strMakeTextXml("\n目前情况:\n", objContent.m_strCreateUserID, strCreateUserName, System.Drawing.Color.White); string strXML7 = ctlRichTextBox.clsXmlTool.s_strMakeTextXml("\n中医目前诊断:\n", objContent.m_strCreateUserID, strCreateUserName, System.Drawing.Color.White); string strXML8 = ctlRichTextBox.clsXmlTool.s_strMakeTextXml("\n西医目前诊断:\n", objContent.m_strCreateUserID, strCreateUserName, System.Drawing.Color.White); string strXML9 = ctlRichTextBox.clsXmlTool.s_strMakeTextXml("\n转科目的:\n", objContent.m_strCreateUserID, strCreateUserName, System.Drawing.Color.White); string strXML10 = ctlRichTextBox.clsXmlTool.s_strMakeTextXml("\n主意事项:\n", objContent.m_strCreateUserID, strCreateUserName, System.Drawing.Color.White); string strXML = ctlRichTextBox.clsXmlTool.s_strCombineXml(new string[] { strXML1, strXML2, objContent.m_strRuYuanQingKuangXML, strXML3, objContent.m_strZhongYiRuYuanXML, strXML4, objContent.m_strXiYiRuYuanXML, strXML5, objContent.m_strZhenLiaoJingGuoXML, strXML6, objContent.m_strMuQianQingKuangXML, strXML7, objContent.m_strZhongYiMuQianXML, strXML8, objContent.m_strXiYiMuQianXML, strXML9, objContent.m_strZhuanKeMuDiXML, strXML10, objContent.m_strZhenLiaoJiHuaXML }); return(strXML); }
/// <summary> /// 把特殊记录的值显示到界面上。 /// </summary> /// <param name="p_objContent"></param> protected override void m_mthSetGUIFromContent(clsTrackRecordContent p_objContent) { if (p_objContent == null) { return; } clsConveyRecordContent_XJ objContent = (clsConveyRecordContent_XJ)p_objContent; //把表单值赋值到界面,由子窗体重载实现 txtruyuanqingkuang.m_mthSetNewText(objContent.m_strRuYuanQingKuang, objContent.m_strRuYuanQingKuangXML); txtzhongyiruyuan.m_mthSetNewText(objContent.m_strZhongYiRuYuan, objContent.m_strZhongYiRuYuanXML); txtxiyiruyuan.m_mthSetNewText(objContent.m_strXiYiRuYuan, objContent.m_strXiYiRuYuanXML); txtzhenliaojingguo.m_mthSetNewText(objContent.m_strZhenLiaoJingGuo, objContent.m_strZhenLiaoJingGuoXML); txtmuqianqingkuang.m_mthSetNewText(objContent.m_strMuQianQingKuang, objContent.m_strMuQianQingKuangXML); txtzhongyimuqian.m_mthSetNewText(objContent.m_strZhongYiMuQian, objContent.m_strZhongYiMuQianXML); txtxiyimuqian.m_mthSetNewText(objContent.m_strXiYiMuQian, objContent.m_strXiYiMuQianXML); txtzhuyishixiang.m_mthSetNewText(objContent.m_strZhenLiaoJiHua, objContent.m_strZhenLiaoJiHuaXML); txtzhuankemudi.m_mthSetNewText(objContent.m_strZhuanKeMuDi, objContent.m_strZhuanKeMuDiXML); // m_txtReferral.m_mthSetNewText(objContent.m_strReferral, objContent.m_strReferralXML); #region 签名集合 if (objContent.objSignerArr != null) { m_mthAddSignToListView(lsvSign, objContent.objSignerArr); //lsvSign.Items.Clear(); //for (int i = 0; i < objContent.objSignerArr.Length; i++) //{ // if (objContent.objSignerArr[i].controlName=="lsvSign") // { // ListViewItem lviNewItem=new ListViewItem(objContent.objSignerArr[i].objEmployee.m_strLASTNAME_VCHR); // //ID 检查重复用 // lviNewItem.SubItems.Add(objContent.objSignerArr[i].objEmployee.m_strEMPID_CHR); // //级别 排序用 // lviNewItem.SubItems.Add(objContent.objSignerArr[i].objEmployee.m_strLEVEL_CHR); // //tag均为对象 // lviNewItem.Tag=objContent.objSignerArr[i].objEmployee; // //是按顺序保存故获取顺序也一样 // lsvSign.Items.Add(lviNewItem); // } //} } #endregion 签名 #region 入院原因(主诉) clsInPatientCaseHisoryDefaultValue[] objInPatientCaseHisoryDefaultValueArr = new clsInPatientCaseHisoryDefaultDomain().lngGetAllInPatientCaseHisoryDefault(m_objCurrentPatient.m_StrInPatientID, m_ObjLastEmrPatientSession.m_dtmEMRInpatientDate.ToString("yyyy-MM-dd HH:mm:ss")); if (objInPatientCaseHisoryDefaultValueArr != null && objInPatientCaseHisoryDefaultValueArr.Length > 0) { m_lblInHospitalReason.Text = objInPatientCaseHisoryDefaultValueArr[0].m_strMainDescription; } #endregion 入院原因(主诉) }
/// <summary> /// 把选择时间记录内容重新整理为完全正确的内容。 /// </summary> /// <param name="p_objRecordContent"></param> protected override void m_mthReAddNewRecord(clsTrackRecordContent p_objRecordContent) { //把选择时间记录内容重新整理为完全正确的内容,由子窗体重载实现。 clsConveyRecordContent_XJ objContent = (clsConveyRecordContent_XJ)p_objRecordContent; //把表单值赋值到界面,由子窗体重载实现 txtruyuanqingkuang.Text = com.digitalwave.Utility.Controls.ctlRichTextBox.s_strGetRightText(objContent.m_strRuYuanQingKuang, objContent.m_strRuYuanQingKuangXML); txtzhongyiruyuan.Text = com.digitalwave.Utility.Controls.ctlRichTextBox.s_strGetRightText(objContent.m_strZhongYiRuYuan, objContent.m_strZhongYiRuYuanXML); txtxiyiruyuan.Text = com.digitalwave.Utility.Controls.ctlRichTextBox.s_strGetRightText(objContent.m_strXiYiRuYuan, objContent.m_strXiYiRuYuanXML); txtzhenliaojingguo.Text = com.digitalwave.Utility.Controls.ctlRichTextBox.s_strGetRightText(objContent.m_strZhenLiaoJingGuo, objContent.m_strZhenLiaoJingGuoXML); txtmuqianqingkuang.Text = com.digitalwave.Utility.Controls.ctlRichTextBox.s_strGetRightText(objContent.m_strMuQianQingKuang, objContent.m_strMuQianQingKuangXML); txtzhongyimuqian.Text = com.digitalwave.Utility.Controls.ctlRichTextBox.s_strGetRightText(objContent.m_strZhongYiMuQian, objContent.m_strZhongYiMuQianXML); txtxiyimuqian.Text = com.digitalwave.Utility.Controls.ctlRichTextBox.s_strGetRightText(objContent.m_strXiYiMuQian, objContent.m_strXiYiMuQianXML); txtzhuyishixiang.Text = com.digitalwave.Utility.Controls.ctlRichTextBox.s_strGetRightText(objContent.m_strZhenLiaoJiHua, objContent.m_strZhenLiaoJiHuaXML); txtzhuankemudi.Text = com.digitalwave.Utility.Controls.ctlRichTextBox.s_strGetRightText(objContent.m_strZhuanKeMuDi, objContent.m_strZhuanKeMuDiXML); }
/// <summary> /// 提取表头基本信息 /// </summary> /// <returns></returns> private string m_strGetHeaderText() { if (m_objRecordContent == null) { return(""); } clsConveyRecordContent_XJ objContent = ((clsConveyRecordContent_XJ)m_objRecordContent); string strText; strText = objContent.m_dtmCreateDate.ToString(MDIParent.s_ObjRecordDateTimeInfo.m_strGetRecordTimeFormat("frmConvey_XJ")) + " " + "转出记录\n"; clsPatient objPatient = new clsPatient(objContent.m_strInPatientID); string strInHospitalReason = ""; #region 入院原因(主诉) clsInPatientCaseHisoryDefaultValue[] objInPatientCaseHisoryDefaultValueArr = new clsInPatientCaseHisoryDefaultDomain().lngGetAllInPatientCaseHisoryDefault(objContent.m_strInPatientID, objContent.m_dtmInPatientDate.ToString("yyyy-MM-dd HH:mm:ss")); if (objInPatientCaseHisoryDefaultValueArr != null && objInPatientCaseHisoryDefaultValueArr.Length > 0) { strInHospitalReason = objInPatientCaseHisoryDefaultValueArr[0].m_strMainDescription; } #endregion 入院原因(主诉) string strLastChar = ""; if (strInHospitalReason != null && strInHospitalReason.Length > 0) { strLastChar = strInHospitalReason.Substring(strInHospitalReason.Length - 1, 1); } if (strLastChar == "." || strLastChar == "," || strLastChar == "," || strLastChar == "。")//去掉最后的标点 { strInHospitalReason = strInHospitalReason.Substring(0, strInHospitalReason.Length - 1); } if (strInHospitalReason != null && strInHospitalReason.Trim() != "") { strInHospitalReason = "因" + strInHospitalReason + ","; } strText += strInHospitalReason + (m_objCurrentPatient == null ? "" : (m_objCurrentPatient.m_DtmSelectedHISInDate.ToString("yyyy年MM月dd日") + "入院。")); return(strText); }
/// <summary> /// 特殊记录内容文本的获取。 /// </summary> /// <returns></returns> public override string m_strGetTrackText() { if (m_objRecordContent == null) { return(""); } clsConveyRecordContent_XJ objContent = ((clsConveyRecordContent_XJ)m_objRecordContent); string strText = m_strGetHeaderText(); strText += "\n入院情况:\n" + objContent.m_strRuYuanQingKuang; strText += "\n中医入院诊断:\n" + objContent.m_strZhongYiRuYuan; strText += "\n西医入院诊断:\n" + objContent.m_strXiYiRuYuan; strText += "\n诊疗经过:\n" + objContent.m_strZhenLiaoJingGuo; strText += "\n目前情况:\n" + objContent.m_strMuQianQingKuang; strText += "\n中医目前诊断:\n" + objContent.m_strZhongYiMuQian; strText += "\n西医目前诊断:\n" + objContent.m_strXiYiMuQian; strText += "\n转科目的:\n" + objContent.m_strZhuanKeMuDi; strText += "\n主意事项:\n" + objContent.m_strZhenLiaoJiHua; return(strText); }
// 获取记录的主要信息(必须获取的是CreateDate,OpenDate,LastModifyDate) protected override clsTrackRecordContent m_objGetRecordMainContent(int p_intRecordType, object[] p_objDataArr) { //根据 p_intRecordType 获取对应的 clsTrackRecordContent clsTrackRecordContent objContent = null; #region switch ((enmDiseaseTrackType)p_intRecordType) { case enmDiseaseTrackType.GeneralDisease: objContent = new clsGeneralDiseaseRecordContent(); break; case enmDiseaseTrackType.HandOver: objContent = new clsHandOverRecordContent(); break; case enmDiseaseTrackType.HandOver_XJ: objContent = new clsHandOverRecordContent_XJ(); break; case enmDiseaseTrackType.TakeOver: objContent = new clsTakeOverRecordContent(); break; case enmDiseaseTrackType.TakeOver_XJ: objContent = new clsTakeOverRecordContent_XJ(); break; case enmDiseaseTrackType.Consultation: objContent = new clsConsultationRecordContent(); break; case enmDiseaseTrackType.Convey: objContent = new clsConveyRecordContent(); break; case enmDiseaseTrackType.Convey_XJ: objContent = new clsConveyRecordContent_XJ(); break; case enmDiseaseTrackType.TurnIn: objContent = new clsTurnInRecordContent(); break; case enmDiseaseTrackType.TurnIn_XJ: objContent = new clsTurnInRecordContent_XJ(); break; case enmDiseaseTrackType.DiseaseSummary: objContent = new clsDiseaseSummaryRecordContent(); break; case enmDiseaseTrackType.DiseaseSummary_XJ: objContent = new clsDiseaseSummaryRecordContent_XJ(); break; case enmDiseaseTrackType.CheckRoom: objContent = new clsCheckRoomRecordContent(); break; case enmDiseaseTrackType.CaseDiscuss: objContent = new clsCaseDiscussRecordContent(); break; case enmDiseaseTrackType.BeforeOperationDiscuss: objContent = new clsBeforeOperationDiscussRecordContent(); break; case enmDiseaseTrackType.DeadCaseDiscuss: objContent = new clsDeadCaseDiscussRecordContent(); break; case enmDiseaseTrackType.DeathCaseDiscuss: objContent = new clsDeadCaseDiscussRecord_VO(); break; case enmDiseaseTrackType.AfterOperation: objContent = new clsAfterOperationRecordContent(); break; case enmDiseaseTrackType.Dead: objContent = new clsDeadRecordContent(); break; case enmDiseaseTrackType.Death: objContent = new clsDeadRecord_VO(); break; case enmDiseaseTrackType.OutHospital: objContent = new clsOutHospitalRecordContent(); break; case enmDiseaseTrackType.Save: objContent = new clsSaveRecordContent(); break; case enmDiseaseTrackType.FirstIllnessNote: objContent = new clsFirstIllnessNoteRecordContent(); break; case enmDiseaseTrackType.FirstIllnessNote_ZY: objContent = new clsFirstIllnessNote_ZYRecordContent(); break; case enmDiseaseTrackType.EMR_SummaryBeforeOP: objContent = new clsEMR_SummaryBeforeOPValue(); break; case enmDiseaseTrackType.FirstIllnessNote_F2: objContent = new clsFirstIllnessNoteRecordContent(); break; case enmDiseaseTrackType.FirstIllnessNote_XJ: objContent = new clsFirstIllnessNoteRecordContent_XJ(); break; } #endregion if (m_objCurrentPatient != null && m_ObjCurrentEmrPatientSession != null) { objContent.m_strInPatientID = m_objCurrentPatient.m_StrInPatientID; } else { clsPublicFunction.ShowInformationMessageBox("当前病人为空!"); return(null); } objContent.m_dtmInPatientDate = m_ObjLastEmrPatientSession.m_dtmEMRInpatientDate; objContent.m_dtmCreateDate = DateTime.Parse((string)p_objDataArr[0]); objContent.m_dtmOpenDate = DateTime.Parse((string)p_objDataArr[2]); objContent.m_dtmModifyDate = DateTime.Parse((string)p_objDataArr[3]); objContent.m_strCreateUserID = (string)p_objDataArr[6]; return(objContent); }
/// <summary> /// 从界面获取特殊记录的值。如果界面值出错,返回null。 /// </summary> /// <returns></returns> protected override clsTrackRecordContent m_objGetContentFromGUI() { //界面参数校验 int intSignCount = lsvSign.Items.Count; if (m_objCurrentPatient == null || m_ObjCurrentEmrPatientSession == null || intSignCount == 0) { return(null); } //从界面获取表单值 clsConveyRecordContent_XJ objContent = new clsConveyRecordContent_XJ(); //获取lsvsign签名 objContent.objSignerArr = new clsEmrSigns_VO[intSignCount]; strUserIDList = ""; strUserNameList = ""; m_mthGetSignArr(new Control[] { lsvSign }, ref objContent.objSignerArr, ref strUserIDList, ref strUserNameList); //for (int i = 0; i < intSignCount; i++) //{ // objContent.objSignerArr[i]=new clsEmrSigns_VO(); // objContent.objSignerArr[i].objEmployee=new clsEmrEmployeeBase_VO(); // objContent.objSignerArr[i].objEmployee=(clsEmrEmployeeBase_VO)( lsvSign.Items[i].Tag); // objContent.objSignerArr[i].controlName="lsvSign"; // objContent.objSignerArr[i].m_strFORMID_VCHR="frmHandOver";//注意大小写 // objContent.objSignerArr[i].m_strREGISTERID_CHR=com.digitalwave.emr.BEDExplorer.frmHRPExplorer.objpCurrentPatient.m_strREGISTERID_CHR; // //痕迹格式 0972,0324, // strUserIDList=strUserIDList+objContent.objSignerArr[i].objEmployee.m_strEMPID_CHR.Trim()+","; // strUserNameList=strUserNameList+objContent.objSignerArr[i].objEmployee.m_strLASTNAME_VCHR.Trim()+","; //} objContent.m_strModifyUserID = strUserIDList; //设置Richtextbox的modifyuserID 和modifyuserName m_mthSetRichTextBoxAttribInControlWithIDandName(this); #region 是否可以无痕迹修改 if (chkModifyWithoutMatk.Checked) { objContent.m_intMarkStatus = 0; } else { objContent.m_intMarkStatus = 1; } #endregion objContent.m_dtmCreateDate = m_dtpCreateDate.Value; objContent.m_strRuYuanQingKuang_Right = txtruyuanqingkuang.m_strGetRightText(); objContent.m_strRuYuanQingKuang = txtruyuanqingkuang.Text; objContent.m_strRuYuanQingKuangXML = txtruyuanqingkuang.m_strGetXmlText(); objContent.m_strZhongYiRuYuan_Right = txtzhongyiruyuan.m_strGetRightText(); objContent.m_strZhongYiRuYuan = txtzhongyiruyuan.Text; objContent.m_strZhongYiRuYuanXML = txtzhongyiruyuan.m_strGetXmlText(); objContent.m_strXiYiRuYuan_Right = txtxiyiruyuan.m_strGetRightText(); objContent.m_strXiYiRuYuan = txtxiyiruyuan.Text; objContent.m_strXiYiRuYuanXML = txtxiyiruyuan.m_strGetXmlText(); objContent.m_strZhenLiaoJingGuo_Right = txtzhenliaojingguo.m_strGetRightText(); objContent.m_strZhenLiaoJingGuo = txtzhenliaojingguo.Text; objContent.m_strZhenLiaoJingGuoXML = txtzhenliaojingguo.m_strGetXmlText(); objContent.m_strMuQianQingKuang_Right = txtmuqianqingkuang.m_strGetRightText(); objContent.m_strMuQianQingKuang = txtmuqianqingkuang.Text; objContent.m_strMuQianQingKuangXML = txtmuqianqingkuang.m_strGetXmlText(); objContent.m_strZhongYiMuQian_Right = txtzhongyimuqian.m_strGetRightText(); objContent.m_strZhongYiMuQian = txtzhongyimuqian.Text; objContent.m_strZhongYiMuQianXML = txtzhongyimuqian.m_strGetXmlText(); objContent.m_strXiYiMuQian_Right = txtxiyimuqian.m_strGetRightText(); objContent.m_strXiYiMuQian = txtxiyimuqian.Text; objContent.m_strXiYiMuQianXML = txtxiyimuqian.m_strGetXmlText(); objContent.m_strZhenLiaoJiHua_Right = txtzhuyishixiang.m_strGetRightText(); objContent.m_strZhenLiaoJiHua = txtzhuyishixiang.Text; objContent.m_strZhenLiaoJiHuaXML = txtzhuyishixiang.m_strGetXmlText(); objContent.m_strZhuanKeMuDi_Right = txtzhuankemudi.m_strGetRightText(); objContent.m_strZhuanKeMuDi = txtzhuankemudi.Text; objContent.m_strZhuanKeMuDiXML = txtzhuankemudi.m_strGetXmlText(); return(objContent); }