예제 #1
0
        /// <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>
 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();//无论有否打印数据,即使在打印空白表时,此行也必须执行.
 }
예제 #3
0
        /// <summary>
        /// 特殊记录内容格式Xml的获取
        /// </summary>
        public override string m_strGetTrackXml()
        {
            if (m_objRecordContent == null)
            {
                return("");
            }

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

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

            if (objEmployee != null)
            {
                strCreateUserName = objEmployee.m_StrLastName;
            }

            string strXML1 = ctlRichTextBox.clsXmlTool.s_strMakeTextXml(strText, objContent.m_strCreateUserID, strCreateUserName, System.Drawing.Color.White);
            // string strXML2 = ctlRichTextBox.clsXmlTool.s_strMakeTextXml("\n    死亡时间:" + objContent.m_dtmDeadDate.ToString("yyyy年MM月dd日HH时mm分"), objContent.m_strCreateUserID, strCreateUserName, System.Drawing.Color.White);
            string strXML2 = ctlRichTextBox.clsXmlTool.s_strMakeTextXml("\n    时间:" + objContent.m_dtmDiscussDate.ToString("yyyy年MM月dd日HH时mm分"), objContent.m_strCreateUserID, strCreateUserName, System.Drawing.Color.White);
            string strXML3 = ctlRichTextBox.clsXmlTool.s_strMakeTextXml("\n    术前诊断:" + objContent.m_strShuQian, objContent.m_strCreateUserID, strCreateUserName, System.Drawing.Color.White);
            string strXML4 = ctlRichTextBox.clsXmlTool.s_strMakeTextXml("\n  麻醉医师:" + objContent.m_strCompereName, objContent.m_strCreateUserID, strCreateUserName, System.Drawing.Color.White);
            string strXML5 = ctlRichTextBox.clsXmlTool.s_strMakeTextXml("\n  手术者:" + m_strGetName(objContent.m_strAttendeeNameArr), objContent.m_strCreateUserID, strCreateUserName, System.Drawing.Color.White);
            string strXML6 = ctlRichTextBox.clsXmlTool.s_strMakeTextXml("\n  麻醉方式:", objContent.m_strCreateUserID, strCreateUserName, System.Drawing.Color.White);
            string strXML7 = ctlRichTextBox.clsXmlTool.s_strMakeTextXml("\n   主管医师:" + objContent.m_strRecordName, objContent.m_strCreateUserID, strCreateUserName, System.Drawing.Color.White);
            //  string strXML14 = ctlRichTextBox.clsXmlTool.s_strMakeTextXml("\n   主持人审阅签名:" + objContent.m_strCompereName, objContent.m_strCreateUserID, strCreateUserName, System.Drawing.Color.White);

            string strXML = ctlRichTextBox.s_strCombineXml(new string[] { strXML1, strXML2, strXML3, objContent.m_strShuQianXML, strXML4, strXML5, strXML6, objContent.m_strMaZuiXML, strXML7 });

            return(strXML);
        }
 /// <summary>
 /// 设置打印内容。(当数据已经存在时使用。)
 /// </summary>
 /// <param name="p_objPrintContent">打印内容</param>
 public void m_mthSetPrintContent(object p_objPrintContent)
 {
     m_blnWantInit = false;
     if (p_objPrintContent.GetType().Name != "clsPrintInfo_FuqiangOperationyes_xj")
     {
         clsPublicFunction.ShowInformationMessageBox("参数错误");
         return;
     }
     m_blnIsFromDataSource = false;//表明是从文件直接提取信息
     m_objPrintInfo        = (clsPrintInfo_FuqiangOperationyes_xj)p_objPrintContent;
     m_objRecordContent    = m_objPrintInfo.m_objRecordContent;
     m_mthSetPrintValue();
 }
예제 #5
0
        /// <summary>
        /// 提取表头基本信息
        /// </summary>
        /// <returns></returns>
        private string m_strGetHeaderText()
        {
            if (m_objRecordContent == null)
            {
                return("");
            }

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

            strText = objContent.m_dtmCreateDate.ToString(MDIParent.s_ObjRecordDateTimeInfo.m_strGetRecordTimeFormat("frmFuqiangOperationyes_xj")) + "   " + "腹腔镜手术同意书";
            return(strText);
        }
예제 #6
0
        protected override bool m_blnSubReuse(clsInactiveRecordInfo_VO p_objSelectedValue)
        {
            bool blnIsOK = false;

            if (p_objSelectedValue != null)
            {
                clsTrackRecordContent m_objContent = new clsFuqiangOperationyesContent_xj();

                long lngRes = m_objGetDiseaseTrackDomain().m_lngGetDeleteRecordContent(p_objSelectedValue.m_StrInpatientId, p_objSelectedValue.m_DtmInpatientDate.ToString("yyyy-MM-dd HH:mm:ss"), p_objSelectedValue.m_DtmOpenDate.ToString("yyyy-MM-dd HH:mm:ss"), out m_objContent);
                if (lngRes <= 0 || m_objContent == null)
                {
                    switch (lngRes)
                    {
                    case (long)(iCareData.enmOperationResult.Not_permission):
                        m_mthShowNotPermitted(); break;

                    case (long)(iCareData.enmOperationResult.DB_Fail):
                        m_mthShowDBError(); break;
                    }
                    return(blnIsOK);
                }
                clsFuqiangOperationyesContent_xj p_objContent = (clsFuqiangOperationyesContent_xj)m_objContent;

                this.m_dtpDiscussTime.Text = p_objContent.m_dtmDiscussDate.ToString("yyyy-MM-dd hh:mm:ss");
                //   this.m_txtDiscussAddress.Text = p_objContent.m_strDiscussAddress;
                this.m_txtCompere.Text = p_objContent.m_strCompereName;
                //this.m_lsvAttendeeList= p_objContent.m_strAttendeeNameArr
                this.m_lsvAttendeeList.Items.Clear();
                string[]     strAttendeeName = p_objContent.m_strAttendeeNameArr;
                ListViewItem lviAttendeeName = null;
                foreach (string i in strAttendeeName)
                {
                    lviAttendeeName      = new ListViewItem();
                    lviAttendeeName.Text = i.ToString();
                    this.m_lsvAttendeeList.Items.Add(lviAttendeeName);
                }
                this.m_txtInHospitalDiagnose.Text = p_objContent.m_strShuQian;
                this.m_txtSpeakRecord.Text        = p_objContent.m_strNiShi;
                this.m_txtYiJian.Text             = p_objContent.m_strMaZui;

                this.m_txtRecorder.Text = p_objContent.m_strRecordName;

                //clsEmrSignToolCollection m_objSign = new clsEmrSignToolCollection();
                m_txtYiBao.Text = p_objContent.m_strYiBao;


                blnIsOK = true;
            }
            return(blnIsOK);
        }
예제 #7
0
        /// <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 签名
        }
예제 #8
0
        //infPrintRecord objPrintTool;
        protected override void m_mthSubPreviewInactiveRecord(IWin32Window p_infOwner, clsInactiveRecordInfo_VO p_objSelectedValue)
        {
            if (p_objSelectedValue == null)
            {
                return;
            }
            objPrintTool = new clsFuqiangOperationyesPrintTool_xj();

            if (m_objBaseCurrentPatient != null)
            {
                objPrintTool.m_mthInitPrintTool(null);
                objPrintTool.m_mthSetPrintInfo(m_objBaseCurrentPatient,
                                               p_objSelectedValue.m_DtmInpatientDate,
                                               p_objSelectedValue.m_DtmOpenDate);
                clsPrintInfo_FuqiangOperationyes_xj objPrintInfo = new clsPrintInfo_FuqiangOperationyes_xj();


                //objPrintInfo.m_dtmHISInDate = p_objSelectedValue.m_DtmInpatientDate;  //???BEFOREOPERATION
                objPrintInfo.m_dtmInPatientDate = p_objSelectedValue.m_DtmInpatientDate;
                objPrintInfo.m_dtmOpenDate      = p_objSelectedValue.m_DtmOpenDate;
                //objPrintInfo.m_strAge = p_objSelectedValue;
                //objPrintInfo.m_strAreaName
                //objPrintInfo.m_strBedName
                //objPrintInfo.m_strDeptName=
                //objPrintInfo.m_strHISInPatientID=
                objPrintInfo.m_strInPatentID = p_objSelectedValue.m_StrInpatientId;
                //objPrintInfo.m_strPatientName =
                //objPrintInfo.m_strSex=


                clsTrackRecordContent p_objContent = new clsFuqiangOperationyesContent_xj();
                long lngRes = m_objGetDiseaseTrackDomain().m_lngGetDeleteRecordContent(p_objSelectedValue.m_StrInpatientId, p_objSelectedValue.m_DtmInpatientDate.ToString("yyyy-MM-dd HH:mm:ss"), p_objSelectedValue.m_DtmOpenDate.ToString("yyyy-MM-dd HH:mm:ss"), out p_objContent);
                clsFuqiangOperationyesContent_xj objContent = (clsFuqiangOperationyesContent_xj)p_objContent;
                //objPrintInfo.m_objContent = objContent;
                objPrintInfo.m_objRecordContent = objContent;
                //objPrintInfo.m_blnIsFirstPrint = false;

                objPrintTool.m_mthSetPrintContent(objPrintInfo);



                m_mthStartPrint();
                //ppdPrintPreview.Document = m_pdcPrintDocument;
                //ppdPrintPreview.ShowDialog(p_infOwner);
            }
        }
예제 #9
0
        /// <summary>
        /// 特殊记录内容文本的获取。
        /// </summary>
        /// <returns></returns>
        public override string m_strGetTrackText()
        {
            if (m_objRecordContent == null)
            {
                return("");
            }

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

            // strText += "\n    死亡时间:" + objContent.m_dtmDeadDate.ToString("yyyy年MM月dd日HH时mm分");
            strText += "\n    时间:" + objContent.m_dtmDiscussDate.ToString("yyyy年MM月dd日HH时mm分");
            strText += "\n  术前诊断:" + objContent.m_strShuQian;
            strText += "\n  麻醉医师:" + objContent.m_strCompereName;
            strText += "\n  手术者:" + m_strGetName(objContent.m_strAttendeeNameArr);
            strText += "\n    麻醉方式:" + objContent.m_strMaZui;
            strText += "\n    主管医师:" + objContent.m_strRecordName;
            //strText += "\n    记录者:" + objContent.m_strRecorderName;
            //strText += "\n    主持人审阅签名:" + objContent.m_strCompereName;
            return(strText);
        }
예제 #10
0
        protected override void m_mthSetDeletedGUIFromContent(clsTrackRecordContent p_objContent)
        {
            if (p_objContent == null)
            {
                return;
            }
            clsFuqiangOperationyesContent_xj objContent = (clsFuqiangOperationyesContent_xj)p_objContent;

            //把表单值赋值到界面,由子窗体重载实现
            //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.Text = com.digitalwave.controls.ctlRichTextBox.s_strGetRightText(objContent.m_strShuQian, objContent.m_strShuQianXML);
            m_txtSpeakRecord.Text        = com.digitalwave.controls.ctlRichTextBox.s_strGetRightText(objContent.m_strNiShi, objContent.m_strNiShiXML);
            m_txtYiJian.Text             = com.digitalwave.controls.ctlRichTextBox.s_strGetRightText(objContent.m_strMaZui, objContent.m_strMaZuiXML);
            //m_txtDeadReason.Text = com.digitalwave.controls.ctlRichTextBox.s_strGetRightText(objContent.m_strDeadReason, objContent.m_strDeadReasonXML);

            //   m_txtExperience.Text = com.digitalwave.controls.ctlRichTextBox.s_strGetRightText(objContent.m_strExperience, objContent.m_strExperienceXML);
            m_txtYiBao.Text = objContent.m_strYiBao;
        }
예제 #11
0
        private string m_strFormat(ArrayList p_arlFormatInfo, string p_strText, string p_strOldXml, int p_intWhiteSpaceCount, ArrayList p_arlXml)
        {
            clsFuqiangOperationyesContent_xj objContent = ((clsFuqiangOperationyesContent_xj)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());
        }
예제 #12
0
        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();

            clsFuqiangOperationyesContent_xj objContent = ((clsFuqiangOperationyesContent_xj)m_objRecordContent);

            p_strText = strHeaderText;


            //   p_strText += "\n    死亡时间:" + objContent.m_dtmDeadDate.ToString("yyyy年MM月dd日HH时mm分");
            //p_strText += "\n    讨论时间:" + objContent.m_dtmDiscussDate.ToString("yyyy年MM月dd日HH时mm分");
            //p_strText += "\n  讨论地点:" + objContent.m_strDiscussAddress;
            //p_strText += "\n  主持人:" + objContent.m_strCompereName;
            //p_strText += "\n  参加人员:" + m_strGetName(objContent.m_strAttendeeNameArr);

            p_strText += "\n    时间:" + objContent.m_dtmDiscussDate.ToString("yyyy年MM月dd日HH时mm分");
            p_strText += "\n  术前诊断:" + objContent.m_strShuQian;
            p_strText += "\n  麻醉医师:" + objContent.m_strCompereName;
            p_strText += "\n  手术者:" + m_strGetName(objContent.m_strAttendeeNameArr);


            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_dtmDeadDate.ToString("yyyy年MM月dd日HH时mm分"), objContent.m_strCreateUserID, strCreateUserName, System.Drawing.Color.White);
            //string strXML3 = ctlRichTextBox.clsXmlTool.s_strMakeTextXml("\n    讨论时间:" + objContent.m_dtmDiscussDate.ToString("yyyy年MM月dd日HH时mm分"), objContent.m_strCreateUserID, strCreateUserName, System.Drawing.Color.White);
            //string strXML4 = ctlRichTextBox.clsXmlTool.s_strMakeTextXml("\n    讨论地点:" + objContent.m_strDiscussAddress, objContent.m_strCreateUserID, strCreateUserName, System.Drawing.Color.White);
            //string strXML5 = ctlRichTextBox.clsXmlTool.s_strMakeTextXml("\n  主持人:" + objContent.m_strCompereName, objContent.m_strCreateUserID, strCreateUserName, System.Drawing.Color.White);
            //string strXML6 = ctlRichTextBox.clsXmlTool.s_strMakeTextXml("\n  参加人员:" + m_strGetName(objContent.m_strAttendeeNameArr), objContent.m_strCreateUserID, strCreateUserName, System.Drawing.Color.White);
            //string strXML7 = ctlRichTextBox.clsXmlTool.s_strMakeTextXml("\n  入院诊断:", objContent.m_strCreateUserID, strCreateUserName, System.Drawing.Color.White);
            //string strXML8 = ctlRichTextBox.clsXmlTool.s_strMakeTextXml("\n  发言记录:", objContent.m_strCreateUserID, strCreateUserName, System.Drawing.Color.White);
            //string strXML9 = ctlRichTextBox.clsXmlTool.s_strMakeTextXml("\n  结论:", objContent.m_strCreateUserID, strCreateUserName, System.Drawing.Color.White);
            //string strXML10 = ctlRichTextBox.clsXmlTool.s_strMakeTextXml("\n  死亡诊断:", objContent.m_strCreateUserID, strCreateUserName, System.Drawing.Color.White);
            //string strXML11 = ctlRichTextBox.clsXmlTool.s_strMakeTextXml("\n  死亡原因:", objContent.m_strCreateUserID, strCreateUserName, System.Drawing.Color.White);
            //string strXML12 = ctlRichTextBox.clsXmlTool.s_strMakeTextXml("\n  经验教训:", objContent.m_strCreateUserID, strCreateUserName, System.Drawing.Color.White);
            //string strXML13 = ctlRichTextBox.clsXmlTool.s_strMakeTextXml("\n   记录者:" + objContent.m_strRecorderName, objContent.m_strCreateUserID, strCreateUserName, System.Drawing.Color.White);
            //string strXML14 = ctlRichTextBox.clsXmlTool.s_strMakeTextXml("\n   主持人审阅签名:" + objContent.m_strCompereName, objContent.m_strCreateUserID, strCreateUserName, System.Drawing.Color.White);

            string strXML1 = ctlRichTextBox.clsXmlTool.s_strMakeTextXml(strHeaderText, objContent.m_strCreateUserID, strCreateUserName, System.Drawing.Color.White);
            // string strXML2 = ctlRichTextBox.clsXmlTool.s_strMakeTextXml("\n    死亡时间:" + objContent.m_dtmDeadDate.ToString("yyyy年MM月dd日HH时mm分"), objContent.m_strCreateUserID, strCreateUserName, System.Drawing.Color.White);
            string strXML2 = ctlRichTextBox.clsXmlTool.s_strMakeTextXml("\n    时间:" + objContent.m_dtmDiscussDate.ToString("yyyy年MM月dd日HH时mm分"), objContent.m_strCreateUserID, strCreateUserName, System.Drawing.Color.White);
            string strXML3 = ctlRichTextBox.clsXmlTool.s_strMakeTextXml("\n    术前诊断:" + objContent.m_strShuQian, objContent.m_strCreateUserID, strCreateUserName, System.Drawing.Color.White);
            string strXML4 = ctlRichTextBox.clsXmlTool.s_strMakeTextXml("\n  麻醉医师:" + objContent.m_strCompereName, objContent.m_strCreateUserID, strCreateUserName, System.Drawing.Color.White);
            string strXML5 = ctlRichTextBox.clsXmlTool.s_strMakeTextXml("\n  手术者:" + m_strGetName(objContent.m_strAttendeeNameArr), objContent.m_strCreateUserID, strCreateUserName, System.Drawing.Color.White);

            string strXML6 = ctlRichTextBox.clsXmlTool.s_strMakeTextXml("\n  麻醉方式:", objContent.m_strCreateUserID, strCreateUserName, System.Drawing.Color.White);

            string strXML7 = ctlRichTextBox.clsXmlTool.s_strMakeTextXml("\n   主管医师:" + objContent.m_strRecordName, objContent.m_strCreateUserID, strCreateUserName, System.Drawing.Color.White);
            //  string strXML14 = ctlRichTextBox.clsXmlTool.s_strMakeTextXml("\n   主持人审阅签名:" + objContent.m_strCompereName, objContent.m_strCreateUserID, strCreateUserName, System.Drawing.Color.White);

            ArrayList arlXml = new ArrayList();

            arlXml.AddRange(new string[] { strXML1, strXML2, strXML3, objContent.m_strShuQianXML, strXML4, strXML5, strXML6, objContent.m_strMaZuiXML, strXML7 });

            //p_strText += "\n  入院诊断:" + objContent.m_strInHospitalDiagnose;
            //p_strText += "\n    发言记录:" + objContent.m_strSpeakRecord;
            //p_strText += "\n    结论:" + objContent.m_strVerdict;
            //p_strText += "\n    死亡诊断:" + objContent.m_strDeadDiagnose;
            //p_strText += "\n    死亡原因:" + objContent.m_strDeadReason;
            //p_strText += "\n    经验教训:" + objContent.m_strExperience;
            //p_strText += "\n    记录者:" + objContent.m_strRecorderName;
            //p_strText += "\n    主持人审阅签名:" + objContent.m_strCompereName;


            //p_strText += "\n  病史汇报:" + objContent.m_strHuiBao;
            //p_strText += "\n    讨论意见:" + objContent.m_strTaoLunYiJian;
            //p_strText += "\n    讨论小结:" + objContent.m_strTaoLunXiaoJie;
            //p_strText += "\n    科主任:" + objContent.m_strZhuRenName;
            //p_strText += "\n    管床医师:" + objContent.m_strGuanChuangName;
            //p_strText += "\n    记录者:" + objContent.m_strRecordName;

            //arlXml.AddRange(new string[]{strXML7,objContent.m_strHuiBaoXML,strXML8,objContent.m_strTaoLunYiJianXML,strXML9,objContent.m_strTaoLunXiaoJieXML,
            //                                                        strXML10,strXML11,strXML12 });

            p_strXml = ctlRichTextBox.s_strCombineXml((string[])arlXml.ToArray(typeof(string)));
        }
예제 #13
0
        /// <summary>
        /// 从界面获取特殊记录的值。如果界面值出错,返回null。
        /// </summary>
        /// <returns></returns>
        protected override clsTrackRecordContent m_objGetContentFromGUI()
        {
            //界面参数校验
            if (m_objCurrentPatient == null || m_ObjCurrentEmrPatientSession == null)
            {
                return(null);
            }

            //从界面获取表单值
            clsFuqiangOperationyesContent_xj objContent = new clsFuqiangOperationyesContent_xj();

            objContent.m_dtmCreateDate   = m_dtpCreateDate.Value;
            objContent.m_strModifyUserID = clsEMRLogin.LoginInfo.m_strEmpNo;
            #region 是否可以无痕迹修改
            if (chkModifyWithoutMatk.Checked)
            {
                objContent.m_intMarkStatus = 0;
            }
            else
            {
                objContent.m_intMarkStatus = 1;
            }
            #endregion
            //   objContent.m_dtmDeadDate = m_dtpDeadDate.Value;
            objContent.m_dtmDiscussDate = m_dtpDiscussTime.Value;
            objContent.m_dtmDoctorDate  = dtpriqi.Value;
            objContent.m_dtmHuanzheDate = dtprihuan.Value;

            //objContent.m_strDiscussAddress = m_txtDiscussAddress.Text;
            objContent.m_strShuQian    = m_txtInHospitalDiagnose.Text;
            objContent.m_strShuQianXML = m_txtInHospitalDiagnose.m_strGetXmlText();
            objContent.m_strNiShi      = m_txtSpeakRecord.Text;
            objContent.m_strNiShiXML   = m_txtSpeakRecord.m_strGetXmlText();

            objContent.m_strMaZui    = m_txtYiJian.Text;
            objContent.m_strMaZuiXML = m_txtYiJian.m_strGetXmlText();

            objContent.m_strYiBao = m_txtYiBao.Text;

            //objContent.m_strDeadReason = m_txtDeadReason.Text;
            //objContent.m_strDeadReasonXML = m_txtDeadReason.m_strGetXmlText();
            //objContent.m_strExperience = m_txtExperience.Text;
            //objContent.m_strExperienceXML = m_txtExperience.m_strGetXmlText();

            //参加人员
            if (m_lsvAttendeeList.Items.Count > 0)
            {
                objContent.m_strAttendeeIDArr   = new string[m_lsvAttendeeList.Items.Count];
                objContent.m_strAttendeeNameArr = new string[m_lsvAttendeeList.Items.Count];
                for (int i = 0; i < m_lsvAttendeeList.Items.Count; i++)
                {
                    objContent.m_strAttendeeIDArr[i]   = ((clsEmrEmployeeBase_VO)m_lsvAttendeeList.Items[i].Tag).m_strEMPNO_CHR.Trim();
                    objContent.m_strAttendeeNameArr[i] = ((clsEmrEmployeeBase_VO)m_lsvAttendeeList.Items[i].Tag).m_strLASTNAME_VCHR.Trim() + ((clsEmrEmployeeBase_VO)m_lsvAttendeeList.Items[i].Tag).m_strTECHNICALRANK_CHR.Trim();
                }
            }
            else
            {
                clsPublicFunction.ShowInformationMessageBox("请至少一个参加人员签名!");
                return(null);
            }

            //麻醉医师
            if (m_txtCompere.Tag != null && m_txtCompere.Text.Trim() != "")
            {
                objContent.m_strCompereID = ((clsEmrEmployeeBase_VO)m_txtCompere.Tag).m_strEMPNO_CHR;

                clsEmrEmployeeBase_VO objEmpVO = new clsEmrEmployeeBase_VO();
                objEmployeeSign.m_lngGetEmpByNO(objContent.m_strCompereID, out objEmpVO);
                // m_txtDoctorSign.Text = objEmpVO.ToString();
                objContent.m_strCompereName = objEmpVO.ToString();

                // objContent.m_strCompereName=m_txtCompere.Text;
            }
            else
            {
                clsPublicFunction.ShowInformationMessageBox("请麻醉医师签名!");
                return(null);
            }
            //记录者
            if (m_txtRecorder.Tag != null && m_txtRecorder.Text.Trim() != "")
            {
                objContent.m_strRecordID = ((clsEmrEmployeeBase_VO)m_txtRecorder.Tag).m_strEMPNO_CHR.Trim();
                clsEmrEmployeeBase_VO objEmpVO = new clsEmrEmployeeBase_VO();
                objEmployeeSign.m_lngGetEmpByNO(objContent.m_strRecordID, out objEmpVO);
                // m_txtDoctorSign.Text = objEmpVO.ToString();
                objContent.m_strRecordName = objEmpVO.ToString();

                //objContent.m_strRecorderName = m_txtRecorder.Text.Trim();
            }
            else
            {
                clsPublicFunction.ShowInformationMessageBox("请主管医师签名!");
                return(null);
            }

            return(objContent);
        }