/// <summary> /// 把特殊记录的值显示到界面上。 /// </summary> /// <param name="p_objContent"></param> protected override void m_mthSetGUIFromContent(clsTrackRecordContent p_objContent) { if (p_objContent == null) { return; } clsFuqiangOperationyesContent_xj objContent = (clsFuqiangOperationyesContent_xj)p_objContent; //把表单值赋值到界面,由子窗体重载实现 m_strCurrentOpenDate = objContent.m_dtmOpenDate.ToString("yyyy-MM-dd HH:mm:ss"); // m_dtpDeadDate.Value = objContent.m_dtmDeadDate; m_dtpDiscussTime.Value = objContent.m_dtmDiscussDate; dtpriqi.Value = objContent.m_dtmDoctorDate; dtprihuan.Value = objContent.m_dtmHuanzheDate; // m_txtDiscussAddress.Text = objContent.m_strDiscussAddress; m_txtInHospitalDiagnose.m_mthSetNewText(objContent.m_strShuQian, objContent.m_strShuQianXML); m_txtSpeakRecord.m_mthSetNewText(objContent.m_strNiShi, objContent.m_strNiShiXML); m_txtYiJian.m_mthSetNewText(objContent.m_strMaZui, objContent.m_strMaZuiXML); m_txtYiBao.Text = objContent.m_strYiBao; //m_txtDeadReason.m_mthSetNewText(objContent.m_strDeadReason, objContent.m_strDeadReasonXML); //m_txtExperience.m_mthSetNewText(objContent.m_strExperience, objContent.m_strExperienceXML); #region 签名 clsEmrEmployeeBase_VO objEmpVO = new clsEmrEmployeeBase_VO(); if (objContent.m_strAttendeeIDArr != null) { for (int i = 0; i < objContent.m_strAttendeeIDArr.Length; i++) { ListViewItem lviNewItem = new ListViewItem(new string[] { objContent.m_strAttendeeNameArr[i].Trim(), objContent.m_strAttendeeIDArr[i].Trim() }); //tag均为对象 objEmployeeSign.m_lngGetEmpByNO(objContent.m_strAttendeeIDArr[i].Trim(), out objEmpVO); lviNewItem.SubItems.Add(objEmpVO.m_strLEVEL_CHR); lviNewItem.Text = objEmpVO.m_strLASTNAME_VCHR + " " + objEmpVO.m_strTechnicalRank; lviNewItem.Tag = objEmpVO; //是按顺序保存故获取顺序也一样 m_lsvAttendeeList.Items.Add(lviNewItem); //m_lsvAttendeeList.Items.Add(objEmpVO.m_strLASTNAME_VCHR + " " + objEmpVO.m_strTechnicalRank); } } objEmployeeSign.m_lngGetEmpByNO(objContent.m_strCompereID, out objEmpVO); if (objEmpVO != null) { m_txtCompere.Tag = objEmpVO; // m_txtCompere.Text = objContent..m_strCompereName; m_txtCompere.Text = objEmpVO.m_strLASTNAME_VCHR + " " + objEmpVO.m_strTECHNICALRANK_CHR; } objEmployeeSign.m_lngGetEmpByNO(objContent.m_strRecordID, out objEmpVO); if (objEmpVO != null) { m_txtRecorder.Tag = objEmpVO; // m_txtRecorder.Text = objContent.m_strRecorderName; m_txtRecorder.Text = objEmpVO.m_strLASTNAME_VCHR + " " + objEmpVO.m_strTECHNICALRANK_CHR; } #endregion 签名 }
/// <summary> /// 删除记录。 /// </summary> /// <param name="p_objRecordContent">当前要删除的记录</param> /// <param name="p_objModifyInfo">若当前要删除的记录不是最新的记录,返回该最新记录的操作信息,否则为空</param> /// <returns></returns> public override long m_lngDeleteRecord(clsTrackRecordContent p_objRecordContent, out clsPreModifyInfo p_objModifyInfo) { p_objModifyInfo = null; //参数判断 if (p_objRecordContent == null) { return((long)enmOperationResult.Parameter_Error); } clsPICUShiftOutService m_objServ = (clsPICUShiftOutService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsPICUShiftOutService)); long lngRes = 0; try { lngRes = m_objServ.m_lngDeleteRecord(clsLoginContext.s_ObjLoginContext.m_ObjPrincial, p_objRecordContent, out p_objModifyInfo); } finally { //m_objServ.Dispose(); } return(lngRes); }
/// <summary> /// 从数据库初始化打印内容。如果没有记录,打印空报表。(当从数据库读取时要调用.) /// </summary> public void m_mthInitPrintContent() { m_blnWantInit = false;// if (m_objPrintInfo == null) { clsPublicFunction.ShowInformationMessageBox("调用m_mthInitPrintContent之前请首先调用m_mthSetPrintInfo函数"); return; } if (m_objPrintInfo.m_strInPatentID == "" || m_objPrintInfo.m_dtmOpenDate == DateTime.MinValue) { m_objRecordContent = null; } else { m_objRecordsDomain = new clsDeathRecordIn24HoursDomain(); clsTrackRecordContent objContent = new clsTrackRecordContent(); long lngRes = m_objRecordsDomain.m_lngGetRecordContent(m_objPrintInfo.m_strInPatentID, m_objPrintInfo.m_dtmInPatientDate.ToString("yyyy-MM-dd HH:mm:ss"), m_objPrintInfo.m_dtmOpenDate.ToString("yyyy-MM-dd HH:mm:ss"), out objContent); if (lngRes <= 0) { return; } m_objRecordContent = (clsEMR_DeathRecordIn24HoursValue)objContent; } //设置表单内容到打印中 m_objPrintInfo.m_objRecordContent = m_objRecordContent; m_mthSetPrintValue();//无论有否打印数据,即使在打印空白表时,此行也必须执行. }
/// <summary> /// 把选择时间记录内容重新整理为完全正确的内容 /// </summary> /// <param name="p_objRecordContent"></param> protected override void m_mthReAddNewRecord(clsTrackRecordContent p_objRecordContent) { //把选择时间记录内容重新整理为完全正确的内容,由子窗体重载实现 clsEMR_GestationDiabetesCureValue objContent = (clsEMR_GestationDiabetesCureValue)p_objRecordContent; }
/// <summary> /// 从数据库初始化打印内容。如果没有记录,打印空报表。(当从数据库读取时要调用.) /// </summary> public void m_mthInitPrintContent() { m_blnWantInit = false;// if (m_objPrintInfo == null) { clsPublicFunction.ShowInformationMessageBox("调用m_mthInitPrintContent之前请首先调用m_mthSetPrintInfo函数"); return; } clsEMR_OPInstrumentDomain m_objRecordsDomain = new clsEMR_OPInstrumentDomain(); long lngRes = m_objRecordsDomain.m_lngGetActiveItemsFromDict(out m_objDict); if (m_objPrintInfo.m_strInPatentID == "" || m_objPrintInfo.m_dtmOpenDate == DateTime.MinValue) { m_objRecordContent = null; } else { clsTrackRecordContent objContent = new clsTrackRecordContent(); lngRes = m_objRecordsDomain.m_lngGetRecordContent(m_objPrintInfo.m_strInPatentID, m_objPrintInfo.m_dtmInPatientDate.ToString("yyyy-MM-dd HH:mm:ss"), m_objPrintInfo.m_dtmOpenDate.ToString("yyyy-MM-dd HH:mm:ss"), out objContent); if (lngRes <= 0) { return; } m_objRecordContent = (clsEMR_OPInstrument)objContent; } m_objRecordsDomain = null; //设置表单内容到打印中 m_objPrintInfo.m_objRecordContent = m_objRecordContent; }
// 获取记录的主要信息(必须获取的是CreateDate,OpenDate,LastModifyDate) protected override clsTrackRecordContent m_objGetRecordMainContent(int p_intRecordType, object[] p_objDataArr) { //根据 p_intRecordType 获取对应的 clsTrackRecordContent clsTrackRecordContent objContent = null; //(需要改动) switch ((enmDiseaseTrackType)p_intRecordType) { case enmDiseaseTrackType.QuickeningTutelar_Acad: objContent = new clsQuickeningTutelarValue(); //(需要改动) break; } if (objContent == null) { objContent = new clsQuickeningTutelarValue(); //(需要改动) } if (m_objCurrentPatient != null) { objContent.m_strInPatientID = m_objCurrentPatient.m_StrInPatientID; } else { clsPublicFunction.ShowInformationMessageBox("当前病人为空!"); return(null); } objContent.m_dtmInPatientDate = m_objCurrentPatient.m_ObjInBedInfo.m_ObjLastSessionInfo.m_DtmEMRInDate; 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 = clsEMRLogin.LoginEmployee.m_strEMPNO_CHR; return(objContent); }
/// <summary> /// 把选择时间记录内容重新整理为完全正确的内容。 /// </summary> /// <param name="p_objRecordContent"></param> protected override void m_mthReAddNewRecord(clsTrackRecordContent p_objRecordContent) { //把选择时间记录内容重新整理为完全正确的内容,由子窗体重载实现。 clsOperationRecordContent_xj objContent = (clsOperationRecordContent_xj)p_objRecordContent; //把表单值赋值到界面,由子窗体重载实现 //m_txtHeartID.Text = com.digitalwave.controls.ctlRichTextBox.s_strGetRightText(objContent.m_strHeartID, objContent.m_strHeartIDXML); //m_txtXRayID.Text = com.digitalwave.controls.ctlRichTextBox.s_strGetRightText(objContent.m_strXRayID, objContent.m_strXRayIDXML); m_txtInHospitalDiagnose.Text = com.digitalwave.controls.ctlRichTextBox.s_strGetRightText(objContent.m_strInHospitalDiagnose, null); // m_txtInXiYiDiagnose.Text = com.digitalwave.controls.ctlRichTextBox.s_strGetRightText(objContent.m_strInHospitalDiagnoseXi, objContent.m_strInHospitalDiagnoseXiXML); m_txtOutHospitalDiagnose.Text = com.digitalwave.controls.ctlRichTextBox.s_strGetRightText(objContent.m_strOutHospitalDiagnose, objContent.m_strOutHospitalDiagnoseXML); // m_txtOutXiYiDiagnose.Text = com.digitalwave.controls.ctlRichTextBox.s_strGetRightText(objContent.m_strOutHospitalDiagnoseXi, objContent.m_strOutHospitalDiagnoseXiXML); m_txtInHospitalCase.Text = com.digitalwave.controls.ctlRichTextBox.s_strGetRightText(objContent.m_strInHospitalCase, null); //m_txtInHospitalBy.Text = com.digitalwave.controls.ctlRichTextBox.s_strGetRightText(objContent.m_strInHospitalBy, objContent.m_strInHospitalByXML); m_txtOutHospitalCase.Text = com.digitalwave.controls.ctlRichTextBox.s_strGetRightText(objContent.m_strOutHospitalCase, objContent.m_strOutHospitalCaseXML); m_txtOutHospitalAdvice.Text = com.digitalwave.controls.ctlRichTextBox.s_strGetRightText(objContent.m_strOutHospitalAdvice, objContent.m_strOutHospitalAdviceXML); m_txtYiBao.Text = objContent.m_strYiBao; }
/// <summary> /// 从数据库初始化打印内容。如果没有记录,打印空报表。(当从数据库读取时要调用.) /// </summary> public void m_mthInitPrintContent() { m_blnWantInit = false;// if (m_objPrintInfo == null) { clsPublicFunction.ShowInformationMessageBox("调用m_mthInitPrintContent之前请首先调用m_mthSetPrintInfo函数"); return; } if (m_objPrintInfo.m_strInPatentID == "" || m_objPrintInfo.m_dtmOpenDate == DateTime.MinValue) { m_objRecordContent = null; } else { //m_objRecordsDomain = new clsDiseaseTrackDomain(new com.digitalwave.DiseaseTrackService.clsDeathCaseDiscussService()); m_objRecordsDomain = new clsDiseaseTrackDomain(enmDiseaseTrackType.DeathCaseDiscuss); clsTrackRecordContent objContent = new clsTrackRecordContent(); long lngRes = m_objRecordsDomain.m_lngGetRecordContent(m_objPrintInfo.m_strInPatentID, m_objPrintInfo.m_dtmInPatientDate.ToString("yyyy-MM-dd HH:mm:ss"), m_objPrintInfo.m_dtmOpenDate.ToString("yyyy-MM-dd HH:mm:ss"), out objContent); if (lngRes <= 0) { return; } m_objRecordContent = (clsDeadCaseDiscussRecord_VO)objContent; } //设置表单内容到打印中 m_objPrintInfo.m_objRecordContent = m_objRecordContent; m_mthSetPrintValue();//无论有否打印数据,即使在打印空白表时,此行也必须执行. }
protected override void m_mthSetDeletedGUIFromContent(clsTrackRecordContent p_objContent) { if (p_objContent == null) { return; } clsFirstIllnessNoteRecordContent_XJ objContent = (clsFirstIllnessNoteRecordContent_XJ)p_objContent; //把表单值赋值到界面,由子窗体重载实现 //m_txtMostlyContent.Text = com.digitalwave.controls.ctlRichTextBox.s_strGetRightText(objContent.m_strMostlyContent, objContent.m_strMostlyContentXML); //m_txtOriginalDiagnose.Text = com.digitalwave.controls.ctlRichTextBox.s_strGetRightText(objContent.m_strOriginalDiagnose, objContent.m_strOriginalDiagnoseXML); //m_txtDiagnoseThe.Text = com.digitalwave.controls.ctlRichTextBox.s_strGetRightText(objContent.m_strDiagnoseDiffe, objContent.m_strDiagnoseDiffeXML); //m_txtCurePlan.Text = com.digitalwave.controls.ctlRichTextBox.s_strGetRightText(objContent.m_strCurePlan, objContent.m_strCurePlanXML); txtbingliteidian.Text = com.digitalwave.controls.ctlRichTextBox.s_strGetRightText(objContent.m_strBingLiTeDian, objContent.m_strBingLiTeDianXML); txtzhongyibianbingyiju.Text = com.digitalwave.controls.ctlRichTextBox.s_strGetRightText(objContent.m_strZhongYiBianBing, objContent.m_strZhongYiBianBingXML); txtxiyizhenduanyiju.Text = com.digitalwave.controls.ctlRichTextBox.s_strGetRightText(objContent.m_strXiYiZhenDuanYiJu, objContent.m_strXiYiZhenDuanYiJuXML); txtzhongyijianbiezhenduan.Text = com.digitalwave.controls.ctlRichTextBox.s_strGetRightText(objContent.m_strZhongYiJianBie, objContent.m_strZhongYiJianBieXML); txtxiyijianbiezhenduan.Text = com.digitalwave.controls.ctlRichTextBox.s_strGetRightText(objContent.m_strXiYiJianBie, objContent.m_strXiYiJianBieXML); txtzhongyichubu.Text = com.digitalwave.controls.ctlRichTextBox.s_strGetRightText(objContent.m_strZhongYiChuBu, objContent.m_strZhongYiChuBuXML); txtxiyichubu.Text = com.digitalwave.controls.ctlRichTextBox.s_strGetRightText(objContent.m_strXiYiChuBu, objContent.m_strXiYiChuBuXML); txtzhenliaojihua.Text = com.digitalwave.controls.ctlRichTextBox.s_strGetRightText(objContent.m_strZhenLiaoJiHua, objContent.m_strZhenLiaoJiHuaXML); if (objContent.objSignerArr != null) { m_mthAddSignToListView(lsvSign, objContent.objSignerArr); } }
/// <summary> /// 设置是否控制修改(修改留痕迹)。 /// </summary> /// <param name="p_objRecordContent">表单数据实体</param> /// <param name="p_blnReset"></param> protected override void m_mthSetModifyControl(clsTrackRecordContent p_objRecordContent, bool p_blnReset) { //根据书写规范设置具体窗体的书写控制,由子窗体重载实现 if (p_blnReset == true) { //加上麻醉的判断,会使部分电子病历表单的字体颜色变成白色 //if(MDIParent.s_bolIAnaSystem) // m_mthSetRichTextModifyColor(this,SystemColors.Info); //else m_mthSetRichTextModifyColor(this, com.digitalwave.Utility.Controls.clsHRPColor.s_ClrInputFore); m_mthSetRichTextCanModifyLast(this, true); } else if (m_obj_VO != null) { bool blnTempCanMoify = m_blnGetCanModifyLast(m_obj_VO.m_strMODIFYUSERID_CHR, m_obj_VO.m_dtmCREATEDATE_DAT, m_obj_VO.m_intMarkStatus); if (blnTempCanMoify && blnIsModifyWithoutMark)//如果可以无痕迹修改则不红字 { m_mthSetRichTextModifyColor(this, Color.Black); } else//如果不可以无痕迹修改则红字 { m_mthSetRichTextModifyColor(this, Color.Red); } m_mthSetRichTextCanModifyLast(this, blnTempCanMoify); } //继承窗体实现该方法,通常do nothing m_mthSetModifyControlSub(p_objRecordContent, p_blnReset); }
/// <summary> /// 把选择时间记录内容重新整理为完全正确的内容。 /// </summary> /// <param name="p_objRecordContent"></param> protected override void m_mthReAddNewRecord(clsTrackRecordContent p_objRecordContent) { //把选择时间记录内容重新整理为完全正确的内容,由子窗体重载实现。 clsEMR_OXTIntravenousDripCon objContent = (clsEMR_OXTIntravenousDripCon)p_objRecordContent; }
protected override void m_mthSetDeletedGUIFromContent(clsTrackRecordContent p_objContent) { if (p_objContent == null) { return; } clsTakeOverRecordContent_XJ objContent = (clsTakeOverRecordContent_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); //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> /// 从数据库初始化打印内容。如果没有记录,打印空报表。(当从数据库读取时要调用.) /// </summary> public void m_mthInitPrintContent() { m_blnWantInit = false;// if (m_objPrintInfo == null) { clsPublicFunction.ShowInformationMessageBox("调用m_mthInitPrintContent之前请首先调用m_mthSetPrintInfo函数"); return; } if (m_objPrintInfo.m_strInPatentID == "" || m_objPrintInfo.m_dtmOpenDate == DateTime.MinValue) { m_objRecordContent = null; } else { m_objRecordsDomain = new clsDiseaseTrackDomain(enmDiseaseTrackType.FuqiangOperationyes_xj); clsTrackRecordContent objContent = new clsTrackRecordContent(); long lngRes = m_objRecordsDomain.m_lngGetRecordContent(m_objPrintInfo.m_strInPatentID, m_objPrintInfo.m_dtmInPatientDate.ToString("yyyy-MM-dd HH:mm:ss"), m_objPrintInfo.m_dtmOpenDate.ToString("yyyy-MM-dd HH:mm:ss"), out objContent); if (lngRes <= 0) { return; } m_objRecordContent = (clsFuqiangOperationyesContent_xj)objContent; } //if (m_objRecordContent != null) // m_objRecordContent.m_dtmOutHospitalDate = m_dtmOutDate; //设置表单内容到打印中 m_objPrintInfo.m_objRecordContent = m_objRecordContent; m_mthSetPrintValue();//无论有否打印数据,即使在打印空白表时,此行也必须执行. }
/// <summary> /// 添加节点到时间列表树,并选中 /// </summary> /// <param name="p_objContent"></param> protected override void m_mthAddNode(clsTrackRecordContent p_objContent) { if (p_objContent == null) { return; } string strRecordDate = p_objContent.m_dtmRecordDate.ToString("yyyy-MM-dd HH:mm:ss"); TreeNode trnNode = new TreeNode(strRecordDate); trnNode.Tag = p_objContent.m_dtmCreateDate.ToString("yyyy-MM-dd HH:mm:ss"); m_blnCanTreeNodeAfterSelectEventTakePlace = false; if (m_trnRoot.Nodes.Count == 0 || trnNode.Text.CompareTo(m_trnRoot.LastNode.Text) < 0) { m_trnRoot.Nodes.Add(trnNode); m_trvCreateDate.SelectedNode = m_trnRoot.LastNode;// } else { for (int i = 0; i < m_trnRoot.Nodes.Count; i++) { if (trnNode.Text.CompareTo(m_trnRoot.Nodes[i].Text) > 0) { m_trnRoot.Nodes.Insert(i, trnNode); m_trvCreateDate.SelectedNode = m_trnRoot.Nodes[i];// break; } } } m_blnCanTreeNodeAfterSelectEventTakePlace = true; m_dtpCreateDate.Enabled = false; }
/// <summary> /// 获取指定记录内容。 /// </summary> /// <param name="p_strInPatientID">住院号</param> /// <param name="p_strInPatientDate">入院日期</param> /// <param name="p_strOpenDate">记录时间</param> /// <param name="p_objRecordContent">返回的记录内容</param> /// <returns></returns> public long m_lngGetRecordContent(string p_strInPatientID, string p_strInPatientDate, string p_strOpenDate, out clsTrackRecordContent p_objRecordContent) { p_objRecordContent = null; //参数判断 if (p_strInPatientID == null || p_strInPatientID == "" || p_strInPatientDate == null || p_strInPatientDate == "" || p_strOpenDate == null || p_strOpenDate == "") { return((long)enmOperationResult.Parameter_Error); } clsDiseaseTrackService m_objTrackServ = clsDiseaseTrackDomainFactory.s_objGetDiseaseTrackDomain(m_enmProcessType); long lngRes = 0; try { lngRes = m_objTrackServ.m_lngGetRecordContent(clsLoginContext.s_ObjLoginContext.m_ObjPrincial, p_strInPatientID, p_strInPatientDate, p_strOpenDate, out p_objRecordContent); } finally { //m_objTrackServ.Dispose(); } return(lngRes); }
/// <summary> /// 把选择时间记录内容重新整理为完全正确的内容。 /// </summary> /// <param name="p_objRecordContent"></param> protected override void m_mthReAddNewRecord(clsTrackRecordContent p_objRecordContent) { //把选择时间记录内容重新整理为完全正确的内容,由子窗体重载实现。 clsEMR_VaginalExaminationValue objContent = (clsEMR_VaginalExaminationValue)p_objRecordContent; }
protected override void m_mthSetDeletedGUIFromContent(clsTrackRecordContent p_objContent) { if (p_objContent == null) { return; } clsEMR_SummaryBeforeOPValue objContent = (clsEMR_SummaryBeforeOPValue)p_objContent; //把表单值赋值到界面,由子窗体重载实现 m_lngCurrentEMR_SEQ = objContent.m_lngEMR_SEQ; m_dtpCreateDate.Value = objContent.m_dtmRECORDDATE; m_txtDiseaseSummary.Text = com.digitalwave.controls.ctlRichTextBox.s_strGetRightText(objContent.m_strDISEASESUMMARY, objContent.m_strDISEASESUMMARYXML); m_txtDiagnoseBeforeOP.Text = com.digitalwave.controls.ctlRichTextBox.s_strGetRightText(objContent.m_strDIAGNOSISBEFOREOP, objContent.m_strDIAGNOSISBEFOREOPXML); m_txtDiagnosisGist.Text = com.digitalwave.controls.ctlRichTextBox.s_strGetRightText(objContent.m_strDIAGNOSISGIST, objContent.m_strDIAGNOSISGISTXML); m_txtOPIndication.Text = com.digitalwave.controls.ctlRichTextBox.s_strGetRightText(objContent.m_strOPINDICATION, objContent.m_strOPINDICATIONXML); m_txtOPMode.Text = com.digitalwave.controls.ctlRichTextBox.s_strGetRightText(objContent.m_strOPMODE, objContent.m_strOPMODEXML); m_txtAnaMode.Text = com.digitalwave.controls.ctlRichTextBox.s_strGetRightText(objContent.m_strANAMODE, objContent.m_strANAMODEXML); m_txtProceeding.Text = com.digitalwave.controls.ctlRichTextBox.s_strGetRightText(objContent.m_strPROCEEDING, objContent.m_strPROCEEDINGXML); m_txtPrepareBeforeOP.Text = com.digitalwave.controls.ctlRichTextBox.s_strGetRightText(objContent.m_strPREPAREBEFOREOP, objContent.m_strPREPAREBEFOREOPXML); if (objContent.objSignerArr != null) { m_mthAddSignToListView(lsvSign, objContent.objSignerArr); } }
protected override void m_mthSetDeletedGUIFromContent(clsTrackRecordContent p_objContent) { if (p_objContent == null) { return; } clsFetalCustodialRecordContent objContent = (clsFetalCustodialRecordContent)p_objContent; m_txtClinicalDiagnose.Text = ctlRichTextBox.s_strGetRightText(objContent.m_strClinicalDiagnose, objContent.m_strClinicalDiagnoseXml); m_txtCustodialIndication.Text = ctlRichTextBox.s_strGetRightText(objContent.m_strCustodialIndication, objContent.m_strCustodialIndicationXml); m_txtUltraSonicscanCue.Text = ctlRichTextBox.s_strGetRightText(objContent.m_strUltraSonicscanCue, objContent.m_strUltraSonicscanCueXml); m_txtManagementSuggestion.Text = ctlRichTextBox.s_strGetRightText(objContent.m_strManagementSuggestion, objContent.m_strManagementSuggestionXml); m_txtCustodialRecord.Text = ctlRichTextBox.s_strGetRightText(objContent.m_strCustodialRecord, objContent.m_strCustodialRecordXml); m_txtUltraSonicscanerType.Text = ctlRichTextBox.s_strGetRightText(objContent.m_strUltraSonicscanerType, objContent.m_strUltraSonicscanerTypeXml); m_txtOCT.Text = ctlRichTextBox.s_strGetRightText(objContent.m_strOCT, objContent.m_strOCTXml); m_txtCSF.Text = ctlRichTextBox.s_strGetRightText(objContent.m_strCSF, objContent.m_strCSFXml); m_txtHour.Text = ctlRichTextBox.s_strGetRightText(objContent.m_strAfterParturientHour, objContent.m_strAfterParturientHourXml); m_txtMinute.Text = ctlRichTextBox.s_strGetRightText(objContent.m_strAfterParturientMinute, objContent.m_strAfterParturientMinuteXml); m_txtOstiumUteri.Text = ctlRichTextBox.s_strGetRightText(objContent.m_strOstiumUteri, objContent.m_strOstiumUteriXml); m_txtNatalType.Text = ctlRichTextBox.s_strGetRightText(objContent.m_strNatalType, objContent.m_strNatalTypeXml); m_txtBirthHour.Text = ctlRichTextBox.s_strGetRightText(objContent.m_strBirthProcessHour, objContent.m_strBirthProcessHourXml); m_txtBirthMinute.Text = ctlRichTextBox.s_strGetRightText(objContent.m_strBirthProcessMinute, objContent.m_strBirthProcessMinuteXml); m_txtEvaluation.Text = ctlRichTextBox.s_strGetRightText(objContent.m_strEvaluation, objContent.m_strEvaluationXml); m_txtFetalWeight.Text = ctlRichTextBox.s_strGetRightText(objContent.m_strFetalWeight, objContent.m_strFetalWeightXml); m_txtFetalLength.Text = ctlRichTextBox.s_strGetRightText(objContent.m_strFetalLength, objContent.m_strFetalLengthXml); m_txtAmnioticFluid.Text = ctlRichTextBox.s_strGetRightText(objContent.m_strAmnioticFluid, objContent.m_strAmnioticFluidXml); m_txtColor.Text = ctlRichTextBox.s_strGetRightText(objContent.m_strColor, objContent.m_strColorXml); m_txtPlacenta.Text = ctlRichTextBox.s_strGetRightText(objContent.m_strPlacenta, objContent.m_strPlacentaXml); m_txtUmbilicalcord.Text = ctlRichTextBox.s_strGetRightText(objContent.m_strUmbilicalcord, objContent.m_strUmbilicalcordXml); m_txtRemark.Text = ctlRichTextBox.s_strGetRightText(objContent.m_strRemark, objContent.m_strRemarkXml); }
/// <summary> /// 打印 1 初始化打印内容 /// 打印从数据库读取得内容 /// </summary> public void m_mthInitPrintContent() { this.m_blnWantInit = false; if (this.m_objPrintInfo == null) { clsPublicFunction.ShowInformationMessageBox("在执行m_mthInitPrintContent之前请先执行m_mthSetPrintInfo函数"); return; } clsDiseaseTrackDomain m_objRecordsDomain = new clsDiseaseTrackDomain(enmDiseaseTrackType.EMR_VaginalExamination); //if (!string.IsNullOrEmpty(this.m_objPrintInfo.m_strInPatentID) && this.m_objPrintInfo.m_dtmOpenDate != DateTime.MinValue) if (!string.IsNullOrEmpty(this.m_objPrintInfo.m_strInPatentID)) { clsTrackRecordContent objContent = new clsTrackRecordContent(); //从数据库读取打印所需数据 long lngRes = m_objRecordsDomain.m_lngGetRecordContent(this.m_objPrintInfo.m_strInPatentID, this.m_objPrintInfo.m_dtmInPatientDate.ToString("yyyy-MM-dd HH:mm:ss"), this.m_objPrintInfo.m_dtmOpenDate.ToString("yyyy-MM-dd HH:mm:ss"), out objContent); if (lngRes <= 0) { return; } this.m_objPrintInfo.m_objRecordContent = objContent as clsEMR_VaginalExaminationValue; } //m_objRecordsDomain = null; //设置表单内容到打印中 this.m_mthSetPrintContent(this.m_objPrintInfo.m_objRecordContent, this.m_objPrintInfo.m_dtmFirstPrintDate); }
/// <summary> /// 将指定的记录数据load到窗体上 /// </summary> /// <param name="p_objContent"></param> protected override void m_mthSetGUIFromContent(clsTrackRecordContent p_objContent) { if (p_objContent == null) { return; } clsMiniBloodSugarChkValue_GX objContent = (clsMiniBloodSugarChkValue_GX)p_objContent; //把表单值赋值到界面,由子窗体重载实现 m_dtpCreateDate.Value = objContent.m_dtmOpenDate; cmbMealType.Text = objContent.m_strMeatType; m_txtValue.Text = objContent.m_strBloodSugar; m_txtValue.m_mthSetNewText(objContent.m_strBloodSugar, objContent.m_strBloodSugarXML); m_txtDesription.Text = objContent.m_strDescription; #region 签名集合 m_mthAddSignToTextBoxBase(new TextBoxBase[] { txtSign }, p_objContent.objSignerArr, new bool[] { true }, false); //txtSign.Clear(); //if (objContent.objSignerArr != null) //{ // for (int i = 0; i < objContent.objSignerArr.Length; i++) // { // if (objContent.objSignerArr[i].controlName == "txtSign") // { // txtSign.Text = objContent.objSignerArr[i].objEmployee.m_strLASTNAME_VCHR; // txtSign.Tag = objContent.objSignerArr[i].objEmployee; ; // } // } //} #endregion 签名 }
/// <summary> /// 把选择时间记录内容重新整理为完全正确的内容 /// </summary> /// <param name="p_objRecordContent"></param> protected override void m_mthReAddNewRecord(clsTrackRecordContent p_objRecordContent) { //把选择时间记录内容重新整理为完全正确的内容,由子窗体重载实现 clsEMR_WAITLAYRECORD_GX objContent = (clsEMR_WAITLAYRECORD_GX)p_objRecordContent; }
protected override void m_mthSetDeletedGUIFromContent(clsTrackRecordContent p_objContent) { clsGeneralNurseRecordContent objContent = (clsGeneralNurseRecordContent)p_objContent; //把表单值赋值到界面,由子窗体重载实现 m_txtRecordContent.m_mthClearText(); m_txtRecordContent.Text = com.digitalwave.controls.ctlRichTextBox.s_strGetRightText(objContent.m_strRecordContent, objContent.m_strRecordContentXml); }
/// <summary> /// 设置是否控制修改(修改留痕迹)。 /// </summary> /// <param name="p_objRecordContent"></param> /// <param name="p_blnReset">是否重置控制修改(修改留痕迹)。 ///如果为true,忽略记录内容,把界面控制设置为不控制; ///否则根据记录内容进行设置。 ///</param> protected override void m_mthSetModifyControlSub(clsTrackRecordContent p_objRecordContent, bool p_blnReset) { //根据书写规范设置具体窗体的书写控制 // m_dtpCreateDate.Enabled = true; }
/// <summary> /// 显示已删除记录 /// </summary> /// <param name="p_objContent"></param> protected override void m_mthSetDeletedGUIFromContent(clsTrackRecordContent p_objContent) { if (p_objContent == null) { return; } m_mthSetGUIFromContent(p_objContent); }
/// <summary> /// 把选择时间记录内容重新整理为完全正确的内容。 /// </summary> /// <param name="p_objRecordContent"></param> protected override void m_mthReAddNewRecord(clsTrackRecordContent p_objRecordContent) { //把选择时间记录内容重新整理为完全正确的内容,由子窗体重载实现。 clsGeneralNurseRecordContent objContent = (clsGeneralNurseRecordContent)p_objRecordContent; //把表单值赋值到界面,由子窗体重载实现 m_txtRecordContent.m_mthClearText(); m_txtRecordContent.Text = com.digitalwave.controls.ctlRichTextBox.s_strGetRightText(objContent.m_strRecordContent, objContent.m_strRecordContentXml); }
/// <summary> /// 把特殊记录的值显示到界面上。 /// </summary> /// <param name="p_objContent"></param> protected override void m_mthSetGUIFromContent(clsTrackRecordContent p_objContent) { clsGeneralNurseRecordContent objContent = (clsGeneralNurseRecordContent)p_objContent; //把表单值赋值到界面,由子窗体重载实现 m_txtRecordContent.m_mthClearText(); m_txtRecordContent.m_mthSetNewText(objContent.m_strRecordContent, objContent.m_strRecordContentXml); //m_txtEmpSign.Text = objContent.m_strSignName; m_mthAddSignToTextBoxByEmpNo(new TextBoxBase[] { txtSign }, new string[] { objContent.m_strCreateUserID }, new bool[] { false }); }
/// <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) { //把选择时间记录内容重新整理为完全正确的内容,由子窗体重载实现。 clsFirstIllnessNoteRecordContent objContent = (clsFirstIllnessNoteRecordContent)p_objRecordContent; //把表单值赋值到界面,由子窗体重载实现 m_txtMostlyContent.Text = com.digitalwave.controls.ctlRichTextBox.s_strGetRightText(objContent.m_strMostlyContent, objContent.m_strMostlyContentXML); m_txtOriginalDiagnose.Text = com.digitalwave.controls.ctlRichTextBox.s_strGetRightText(objContent.m_strOriginalDiagnose, objContent.m_strOriginalDiagnoseXML); m_txtDiagnoseThe.Text = com.digitalwave.controls.ctlRichTextBox.s_strGetRightText(objContent.m_strDiagnoseDiffe, objContent.m_strDiagnoseDiffeXML); m_txtCurePlan.Text = com.digitalwave.controls.ctlRichTextBox.s_strGetRightText(objContent.m_strCurePlan, objContent.m_strCurePlanXML); }
/// <summary> /// 把选择时间记录内容重新整理为完全正确的内容。 /// </summary> /// <param name="p_objRecordContent"></param> protected override void m_mthReAddNewRecord(clsTrackRecordContent p_objRecordContent) { //把选择时间记录内容重新整理为完全正确的内容,由子窗体重载实现。 clsFuqiangOperationyesContent_xj objContent = (clsFuqiangOperationyesContent_xj)p_objRecordContent; //把表单值赋值到界面,由子窗体重载实现 m_dtpDiscussTime.Value = objContent.m_dtmDiscussDate; dtpriqi.Value = objContent.m_dtmDoctorDate; dtprihuan.Value = objContent.m_dtmHuanzheDate; // m_txtDiscussAddress.Text = objContent.m_strDiscussAddress; m_txtInHospitalDiagnose.m_mthSetNewText(objContent.m_strShuQian, objContent.m_strShuQianXML); m_txtSpeakRecord.m_mthSetNewText(objContent.m_strNiShi, objContent.m_strNiShiXML); m_txtYiJian.m_mthSetNewText(objContent.m_strMaZui, objContent.m_strMaZuiXML); m_txtYiBao.Text = objContent.m_strYiBao; #region 签名 clsEmrEmployeeBase_VO objEmpVO = new clsEmrEmployeeBase_VO(); if (objContent.m_strAttendeeIDArr != null) { for (int i = 0; i < objContent.m_strAttendeeIDArr.Length; i++) { ListViewItem lviNewItem = new ListViewItem(new string[] { objContent.m_strAttendeeNameArr[i].Trim(), objContent.m_strAttendeeIDArr[i] }); //tag均为对象 objEmployeeSign.m_lngGetEmpByNO(objContent.m_strAttendeeIDArr[i], out objEmpVO); lviNewItem.SubItems.Add(objEmpVO.m_strLEVEL_CHR); lviNewItem.Tag = objEmpVO; //是按顺序保存故获取顺序也一样 m_lsvAttendeeList.Items.Add(lviNewItem); } } objEmployeeSign.m_lngGetEmpByNO(objContent.m_strCompereID, out objEmpVO); if (objEmpVO != null) { m_txtCompere.Tag = objEmpVO; m_txtCompere.Text = objContent.m_strCompereName; } objEmployeeSign.m_lngGetEmpByNO(objContent.m_strRecordID, out objEmpVO); if (objEmpVO != null) { m_txtRecorder.Tag = objEmpVO; m_txtRecorder.Text = objContent.m_strRecordName; } #endregion 签名 }
/// <summary> /// 获取指定记录的内容。 /// </summary> /// <param name="p_strInPatientID">住院号</param> /// <param name="p_strInPatientDate">入院日期</param> /// <param name="p_strOpenDate">记录时间</param> /// <param name="p_objRecordContent">返回的记录内容</param> /// <returns></returns> public long m_lngGetRecordContent(string p_strInPatientID, string p_strInPatientDate, string p_strOpenDate, out clsTrackRecordContent p_objRecordContent) { clsEMR_OPInstrumentService objService = (clsEMR_OPInstrumentService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsEMR_OPInstrumentService)); long lngRes = 0; lngRes = objService.m_lngGetRecordContent(clsLoginContext.s_ObjLoginContext.m_ObjPrincial, p_strInPatientID, p_strInPatientDate, p_strOpenDate, out p_objRecordContent); objService = null; return(lngRes); }