/// <summary> /// 特殊记录内容格式Xml的获取 /// </summary> public override string m_strGetTrackXml() { if (m_objRecordContent == null) { return(""); } clsCaseDiscussRecordContent objContent = ((clsCaseDiscussRecordContent)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讨论内容:", objContent.m_strCreateUserID, strCreateUserName, System.Drawing.Color.White); string strXML = ctlRichTextBox.s_strCombineXml(new string[] { strXML1, strXML2, objContent.m_strAddressXML, strXML3, strXML4, strXML5, objContent.m_strDiscussContentXML }); //string strXML=ctlRichTextBox.s_strCombineXml(new string[]{strXML5,objContent.m_strDiscussContentXML}); return(strXML); }
public void m_mthGetFormatTrackInfo(int p_intCharPerLine, bool p_blnIsPrintCall, DateTime p_dtmSeperateTime, out string p_strText, out string p_strXml) { p_strText = ""; p_strXml = ""; if (m_objRecordContent == null) { return; } string strHeaderText = m_strGetHeaderText(); clsCaseDiscussRecordContent objContent = ((clsCaseDiscussRecordContent)m_objRecordContent); p_strText = strHeaderText; p_strText += "\n地点:" + objContent.m_strAddress; p_strText += "\n参加人员:" + m_strGetName(m_objRecordContent.objSignerArr, "lsvAttend"); p_strText += "\n主持人:" + m_strGetName(m_objRecordContent.objSignerArr, "lsvCompere"); p_strText += "\n讨论内容:\n"; string strCreateUserName = ""; clsEmployee objEmployee = new clsEmployee(m_objRecordContent.m_strCreateUserID); if (objEmployee != null) { strCreateUserName = objEmployee.m_StrLastName; } //须与以上项目保持一致,否则会导致修改痕迹移位 string strXML1 = ctlRichTextBox.clsXmlTool.s_strMakeTextXml(strHeaderText, 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); ArrayList arlXml = new ArrayList(); arlXml.AddRange(new string[] { strXML1, strXML2, objContent.m_strAddressXML, strXML3, strXML4, strXML5 }); //arlXml.AddRange(new string[]{strXML1,strXML2,objContent.m_strAddressXML,strXML5}); //if(!p_blnIsPrintCall) //{ //p_strText += m_strFormatText(objContent.m_strDiscussContent,objContent.m_strDiscussContentXML,p_intCharPerLine-1,arlXml); p_strText += objContent.m_strDiscussContent; arlXml.Add(objContent.m_strDiscussContentXML); //} //else //{ // //string strTempXml; // //string strText = ctlRichTextBox.s_strGetRightText(objContent.m_strDiscussContent,objContent.m_strDiscussContentXML,p_dtmSeperateTime,out strTempXml); // //p_strText += m_strFormatText(strText,strTempXml,p_intCharPerLine-1,arlXml); // p_strText += ctlRichTextBox.s_strGetRightText(objContent.m_strDiscussContent, objContent.m_strDiscussContentXML); // arlXml.Add("<r><D /><S /></r>"); //} p_strXml = ctlRichTextBox.s_strCombineXml((string[])arlXml.ToArray(typeof(string))); }
/// <summary> /// 提取表头基本信息 /// </summary> /// <returns></returns> private string m_strGetHeaderText() { if (m_objRecordContent == null) { return(""); } clsCaseDiscussRecordContent objContent = ((clsCaseDiscussRecordContent)m_objRecordContent); string strText; strText = objContent.m_dtmCreateDate.ToString(MDIParent.s_ObjRecordDateTimeInfo.m_strGetRecordTimeFormat("frmCaseDiscuss")) + " " + "疑难病例讨论记录"; return(strText); }
/// <summary> /// 特殊记录内容文本的获取。 /// </summary> /// <returns></returns> public override string m_strGetTrackText() { if (m_objRecordContent == null) { return(""); } clsCaseDiscussRecordContent objContent = ((clsCaseDiscussRecordContent)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讨论内容:" + objContent.m_strDiscussContent; 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); }
private string m_strFormat(ArrayList p_arlFormatInfo, string p_strText, string p_strOldXml, int p_intWhiteSpaceCount, ArrayList p_arlXml) { clsCaseDiscussRecordContent objContent = ((clsCaseDiscussRecordContent)m_objRecordContent); string strCreateUserName = ""; clsEmployee objEmployee = new clsEmployee(m_objRecordContent.m_strCreateUserID); if (objEmployee != null) { strCreateUserName = objEmployee.m_StrLastName; } string strInsertTextWithEnterXml = ctlRichTextBox.clsXmlTool.s_strMakeTextXml(c_strInsertTextWithEnter, objContent.m_strCreateUserID, strCreateUserName, System.Drawing.Color.White); string strInsertTextXml = ctlRichTextBox.clsXmlTool.s_strMakeTextXml(c_strInsertText, objContent.m_strCreateUserID, strCreateUserName, System.Drawing.Color.White); ctlRichTextBox.clsUserXMLInfo objUserXmlInfo = ctlRichTextBox.s_objGetUserXMLInfo(p_strOldXml); StringBuilder sbValue = new StringBuilder(); int intPreIndex = 0; for (int i = 0; i < p_arlFormatInfo.Count; i++) { int intIndex = (int)p_arlFormatInfo[i]; if (intIndex < 10000) { sbValue.Append(p_strText.Substring(intPreIndex, intIndex - intPreIndex)); sbValue.Append(c_strInsertTextWithEnter); p_arlXml.Add(ctlRichTextBox.s_strGetSubXml(objUserXmlInfo, intPreIndex, intIndex - 1)); p_arlXml.Add(strInsertTextWithEnterXml); intPreIndex = intIndex; } else if (intIndex < 20000000) { intIndex %= 10000; sbValue.Append(p_strText.Substring(intPreIndex, intIndex - intPreIndex)); sbValue.Append(c_strInsertText); p_arlXml.Add(ctlRichTextBox.s_strGetSubXml(objUserXmlInfo, intPreIndex, intIndex - 1)); p_arlXml.Add(strInsertTextXml); intPreIndex = intIndex; } else { intIndex %= 20000000; int intWhiteCount = intIndex / 10000; intIndex %= 10000; string strWhiteSpace = " "; for (int j2 = 0; j2 < intWhiteCount; j2++) { strWhiteSpace += " "; } string strWhiteSpaceXml = ctlRichTextBox.clsXmlTool.s_strMakeTextXml(strWhiteSpace, objContent.m_strCreateUserID, strCreateUserName, System.Drawing.Color.White); if (intIndex > 0) { sbValue.Append(p_strText.Substring(intPreIndex, intIndex - intPreIndex)); sbValue.Append(strWhiteSpace); p_arlXml.Add(ctlRichTextBox.s_strGetSubXml(objUserXmlInfo, intPreIndex, intIndex - 1)); p_arlXml.Add(strWhiteSpaceXml); intPreIndex = intIndex; } else if (intIndex == 0) { sbValue.Append(strWhiteSpace); p_arlXml.Add(strWhiteSpaceXml); } } } sbValue.Append(p_strText.Substring(intPreIndex)); p_arlXml.Add(ctlRichTextBox.s_strGetSubXml(objUserXmlInfo, intPreIndex, p_strText.Length - 1)); return(sbValue.ToString()); }