/// <summary>
        /// 特殊记录内容格式Xml的获取
        /// </summary>
        public override string m_strGetTrackXml()
        {
            if (m_objRecordContent == null)
            {
                return("");
            }

            clsBeforeOperationDiscussRecordContent objContent = ((clsBeforeOperationDiscussRecordContent)m_objRecordContent);
            string strText = m_strGetHeaderText();

            string      strCreateUserName = "";
            clsEmployee objEmployee       = new clsEmployee(m_objRecordContent.m_strCreateUserID);

            if (objEmployee != null)
            {
                strCreateUserName = objEmployee.m_StrLastName;
            }
            //须与m_strGetTrackText()项目保持一致,否则会导致修改痕迹移位
            string strXML1 = ctlRichTextBox.clsXmlTool.s_strMakeTextXml(strText, objContent.m_strCreateUserID, strCreateUserName, System.Drawing.Color.White);
            string strXML2 = ctlRichTextBox.clsXmlTool.s_strMakeTextXml("\n地点:", objContent.m_strCreateUserID, strCreateUserName, System.Drawing.Color.White);
            string strXML3 = ctlRichTextBox.clsXmlTool.s_strMakeTextXml("\n参加人员:" + m_strGetName(m_objRecordContent.objSignerArr, "lsvAttend"), objContent.m_strCreateUserID, strCreateUserName, System.Drawing.Color.White);
            string strXML4 = ctlRichTextBox.clsXmlTool.s_strMakeTextXml("\n主持人:" + m_strGetName(m_objRecordContent.objSignerArr, "lsvCompere"), 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 strXML = ctlRichTextBox.clsXmlTool.s_strCombineXml(new string[] { strXML1, strXML2, objContent.m_strAddressXML, strXML3, strXML4, strXML5, objContent.m_strDiscussContentXML });

            //string strXML=ctlRichTextBox.s_strCombineXml(new string[]{strXML1,strXML2,objContent.m_strAddressXML,strXML5,objContent.m_strDiscussContentXML});
            return(strXML);
        }
        /// <summary>
        /// 提取表头基本信息
        /// </summary>
        /// <returns></returns>
        private string m_strGetHeaderText()
        {
            if (m_objRecordContent == null)
            {
                return("");
            }

            clsBeforeOperationDiscussRecordContent objContent = ((clsBeforeOperationDiscussRecordContent)m_objRecordContent);
            string strText;

            strText = objContent.m_dtmCreateDate.ToString(MDIParent.s_ObjRecordDateTimeInfo.m_strGetRecordTimeFormat("frmBeforeOperationDiscuss")) + "   " + "术前讨论记录";
            return(strText);
        }
        /// <summary>
        /// 特殊记录内容文本的获取。
        /// </summary>
        /// <returns></returns>
        public override string m_strGetTrackText()
        {
            if (m_objRecordContent == null)
            {
                return("");
            }

            clsBeforeOperationDiscussRecordContent objContent = ((clsBeforeOperationDiscussRecordContent)m_objRecordContent);
            string strText = m_strGetHeaderText();

            strText += "\n地点:" + objContent.m_strAddress;
            strText += "\n参加人员:" + m_strGetName(m_objRecordContent.objSignerArr, "lsvAttend");
            strText += "\n主持人:" + m_strGetName(m_objRecordContent.objSignerArr, "lsvCompere");
            strText += "\n讨论内容:\n" + objContent.m_strDiscussContent;
            return(strText);
        }
示例#4
0
        // 获取记录的主要信息(必须获取的是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);
        }