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

            clsShuXueZhiLiaoyesContent_xj objContent = ((clsShuXueZhiLiaoyesContent_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_dtmDoctorDate.ToString("yyyy年MM月dd日HH时mm分"), objContent.m_strCreateUserID, strCreateUserName, System.Drawing.Color.White);
            string strXML3 = ctlRichTextBox.clsXmlTool.s_strMakeTextXml("\n    输血目的:" + objContent.m_strShuXueMuDi, objContent.m_strCreateUserID, strCreateUserName, System.Drawing.Color.White);
            string strXML4 = ctlRichTextBox.clsXmlTool.s_strMakeTextXml("\n  医师签字:" + objContent.m_strRecordName, 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 strXML5 = ctlRichTextBox.clsXmlTool.s_strMakeTextXml("\n  输血成分:" + objContent.m_strShuXueChengFen, objContent.m_strCreateUserID, strCreateUserName, System.Drawing.Color.White);
            string strXML6 = ctlRichTextBox.clsXmlTool.s_strMakeTextXml("\n   临床诊断:" + objContent.m_strZhenDuan, 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_strShuXueMuDiXML, strXML4, strXML5, objContent.m_strShuXueChengFenXML, strXML6, objContent.m_strZhenDuanXML });

            return(strXML);
        }
コード例 #2
0
 /// <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.ShuXueZhiLiaoyes_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 = (clsShuXueZhiLiaoyesContent_xj)objContent;
     }
     //if (m_objRecordContent != null)
     //    m_objRecordContent.m_dtmOutHospitalDate = m_dtmOutDate;
     //设置表单内容到打印中
     m_objPrintInfo.m_objRecordContent = m_objRecordContent;
     m_mthSetPrintValue();//无论有否打印数据,即使在打印空白表时,此行也必须执行.
 }
コード例 #3
0
 /// <summary>
 /// 设置打印内容。(当数据已经存在时使用。)
 /// </summary>
 /// <param name="p_objPrintContent">打印内容</param>
 public void m_mthSetPrintContent(object p_objPrintContent)
 {
     m_blnWantInit = false;
     if (p_objPrintContent.GetType().Name != "clsPrintInfo_ShuXueZhiLiaoyes_xj")
     {
         clsPublicFunction.ShowInformationMessageBox("参数错误");
         return;
     }
     m_blnIsFromDataSource = false;//表明是从文件直接提取信息
     m_objPrintInfo        = (clsPrintInfo_ShuXueZhiLiaoyes_xj)p_objPrintContent;
     m_objRecordContent    = m_objPrintInfo.m_objRecordContent;
     m_mthSetPrintValue();
 }
コード例 #4
0
        /// <summary>
        /// 提取表头基本信息
        /// </summary>
        /// <returns></returns>
        private string m_strGetHeaderText()
        {
            if (m_objRecordContent == null)
            {
                return("");
            }

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

            strText = objContent.m_dtmCreateDate.ToString(MDIParent.s_ObjRecordDateTimeInfo.m_strGetRecordTimeFormat("frmShuXueZhiLiaoyes_xj")) + "   " + "输血治疗同意书";
            return(strText);
        }
コード例 #5
0
ファイル: frmShuXueZhiLiaoyes_xj.cs プロジェクト: ewin66/HIS
        //infPrintRecord objPrintTool;
        protected override void m_mthSubPreviewInactiveRecord(IWin32Window p_infOwner, clsInactiveRecordInfo_VO p_objSelectedValue)
        {
            if (p_objSelectedValue == null)
            {
                return;
            }
            objPrintTool = new clsShuXueZhiLiaoyesPrintTool_xj();

            if (m_objBaseCurrentPatient != null)
            {
                objPrintTool.m_mthInitPrintTool(null);
                objPrintTool.m_mthSetPrintInfo(m_objBaseCurrentPatient,
                                               p_objSelectedValue.m_DtmInpatientDate,
                                               p_objSelectedValue.m_DtmOpenDate);
                clsPrintInfo_ShuXueZhiLiaoyes_xj objPrintInfo = new clsPrintInfo_ShuXueZhiLiaoyes_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 clsShuXueZhiLiaoyesContent_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);
                clsShuXueZhiLiaoyesContent_xj objContent = (clsShuXueZhiLiaoyesContent_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);
            }
        }
コード例 #6
0
ファイル: frmShuXueZhiLiaoyes_xj.cs プロジェクト: ewin66/HIS
        protected override void m_mthSetDeletedGUIFromContent(clsTrackRecordContent p_objContent)
        {
            if (p_objContent == null)
            {
                return;
            }
            clsShuXueZhiLiaoyesContent_xj objContent = (clsShuXueZhiLiaoyesContent_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;

            txt_mudi.Text     = com.digitalwave.controls.ctlRichTextBox.s_strGetRightText(objContent.m_strShuXueMuDi, objContent.m_strShuXueMuDiXML);
            txt_chengfen.Text = com.digitalwave.controls.ctlRichTextBox.s_strGetRightText(objContent.m_strShuXueChengFen, objContent.m_strShuXueChengFenXML);
            txt_zduan.Text    = com.digitalwave.controls.ctlRichTextBox.s_strGetRightText(objContent.m_strZhenDuan, objContent.m_strZhenDuanXML);
            txt_beizhu.Text   = com.digitalwave.controls.ctlRichTextBox.s_strGetRightText(objContent.m_strBeiZhu, objContent.m_strBeiZhuXML);

            if (objContent.m_strShuXueShi == "1")
            {
                rdb_wu.Checked = true;
            }
            if (objContent.m_strShuXueShi == "2")
            {
                rdb_you.Checked = true;
            }
            txt_yun.Text   = objContent.m_strYun;
            txt_chan.Text  = objContent.m_strChan;
            txt_alt.Text   = objContent.m_strALT;
            txt_hbsag.Text = objContent.m_strHBsAg;
            txt_hbs.Text   = objContent.m_strHBs;
            txt_hbc.Text   = objContent.m_strHBc;
            txt_hbeag.Text = objContent.m_strHBeAg;
            txt_hbe.Text   = objContent.m_strHBe;
            txt_hcv.Text   = objContent.m_strHCV;
            txt_hivi.Text  = objContent.m_strHIVI;
            txt_meidu.Text = objContent.m_strMeiDu;
            //   m_txtExperience.Text = com.digitalwave.controls.ctlRichTextBox.s_strGetRightText(objContent.m_strExperience, objContent.m_strExperienceXML);
            //m_txtYiBao.Text = objContent.m_strYiBao;
        }
コード例 #7
0
        /// <summary>
        /// 特殊记录内容文本的获取。
        /// </summary>
        /// <returns></returns>
        public override string m_strGetTrackText()
        {
            if (m_objRecordContent == null)
            {
                return("");
            }

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

            // strText += "\n    死亡时间:" + objContent.m_dtmDeadDate.ToString("yyyy年MM月dd日HH时mm分");
            strText += "\n    时间:" + objContent.m_dtmDoctorDate.ToString("yyyy年MM月dd日HH时mm分");
            strText += "\n  输血目的:" + objContent.m_strShuXueMuDi;
            strText += "\n  医师签字:" + objContent.m_strRecordName;
            //strText += "\n  手术者:" + m_strGetName(objContent.m_strAttendeeNameArr);
            strText += "\n    输血成分:" + objContent.m_strShuXueChengFen;
            strText += "\n    临床诊断:" + objContent.m_strZhenDuan;
            //strText += "\n    记录者:" + objContent.m_strRecorderName;
            //strText += "\n    主持人审阅签名:" + objContent.m_strCompereName;
            return(strText);
        }
コード例 #8
0
        private string m_strFormat(ArrayList p_arlFormatInfo, string p_strText, string p_strOldXml, int p_intWhiteSpaceCount, ArrayList p_arlXml)
        {
            clsShuXueZhiLiaoyesContent_xj objContent = ((clsShuXueZhiLiaoyesContent_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());
        }
コード例 #9
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();

            clsShuXueZhiLiaoyesContent_xj objContent = ((clsShuXueZhiLiaoyesContent_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_dtmDoctorDate.ToString("yyyy年MM月dd日HH时mm分");
            p_strText += "\n  输血目的:" + objContent.m_strShuXueMuDi;
            p_strText += "\n  医师签字:" + objContent.m_strRecordName;
            //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_dtmDoctorDate.ToString("yyyy年MM月dd日HH时mm分"), objContent.m_strCreateUserID, strCreateUserName, System.Drawing.Color.White);
            string strXML3 = ctlRichTextBox.clsXmlTool.s_strMakeTextXml("\n    输血目的:" + objContent.m_strShuXueMuDi, objContent.m_strCreateUserID, strCreateUserName, System.Drawing.Color.White);
            string strXML4 = ctlRichTextBox.clsXmlTool.s_strMakeTextXml("\n  医师签字:" + objContent.m_strRecordName, 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 strXML5 = ctlRichTextBox.clsXmlTool.s_strMakeTextXml("\n  输血成分:", objContent.m_strCreateUserID, strCreateUserName, System.Drawing.Color.White);

            string strXML6 = ctlRichTextBox.clsXmlTool.s_strMakeTextXml("\n   临床诊断:" + objContent.m_strZhenDuan, 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_strShuXueMuDiXML, strXML4, strXML5, objContent.m_strShuXueChengFenXML, strXML6, objContent.m_strZhenDuanXML });

            //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)));
        }
コード例 #10
0
ファイル: frmShuXueZhiLiaoyes_xj.cs プロジェクト: ewin66/HIS
        protected override bool m_blnSubReuse(clsInactiveRecordInfo_VO p_objSelectedValue)
        {
            bool blnIsOK = false;

            if (p_objSelectedValue != null)
            {
                clsTrackRecordContent m_objContent = new clsShuXueZhiLiaoyesContent_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);
                }
                clsShuXueZhiLiaoyesContent_xj p_objContent = (clsShuXueZhiLiaoyesContent_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);
                //}
                txt_yun.Text   = p_objContent.m_strYun;
                txt_chan.Text  = p_objContent.m_strChan;
                txt_alt.Text   = p_objContent.m_strALT;
                txt_hbsag.Text = p_objContent.m_strHBsAg;
                txt_hbs.Text   = p_objContent.m_strHBs;
                txt_hbeag.Text = p_objContent.m_strHBeAg;
                txt_hbe.Text   = p_objContent.m_strHBe;
                txt_hcv.Text   = p_objContent.m_strHCV;
                txt_hivi.Text  = p_objContent.m_strHIVI;
                txt_meidu.Text = p_objContent.m_strMeiDu;

                this.txt_mudi.Text     = p_objContent.m_strShuXueMuDi;
                this.txt_chengfen.Text = p_objContent.m_strShuXueChengFen;
                this.txt_zduan.Text    = p_objContent.m_strZhenDuan;
                this.txt_beizhu.Text   = p_objContent.m_strBeiZhu;
                clsEmrEmployeeBase_VO objEmpVO = new clsEmrEmployeeBase_VO();
                objEmployeeSign.m_lngGetEmpByNO(p_objContent.m_strRecordID, out objEmpVO);
                if (objEmpVO != null)
                {
                    m_txtRecorder.Tag  = objEmpVO;
                    m_txtRecorder.Text = objEmpVO.m_strLASTNAME_VCHR + " " + objEmpVO.m_strTECHNICALRANK_CHR;
                }
                if (p_objContent.m_strShuXueShi == "1")
                {
                    rdb_wu.Checked = true;
                }
                if (p_objContent.m_strShuXueShi == "2")
                {
                    rdb_you.Checked = true;
                }
                //  this.m_txtRecorder.Text = p_objContent.m_strRecordName;

                //clsEmrSignToolCollection m_objSign = new clsEmrSignToolCollection();

                blnIsOK = true;
            }
            return(blnIsOK);
        }
コード例 #11
0
ファイル: frmShuXueZhiLiaoyes_xj.cs プロジェクト: ewin66/HIS
        /// <summary>
        /// 把选择时间记录内容重新整理为完全正确的内容。
        /// </summary>
        /// <param name="p_objRecordContent"></param>
        protected override void m_mthReAddNewRecord(clsTrackRecordContent p_objRecordContent)
        {
            //把选择时间记录内容重新整理为完全正确的内容,由子窗体重载实现。
            clsShuXueZhiLiaoyesContent_xj objContent = (clsShuXueZhiLiaoyesContent_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;
            txt_mudi.m_mthSetNewText(objContent.m_strShuXueMuDi, objContent.m_strShuXueMuDiXML);
            txt_chengfen.m_mthSetNewText(objContent.m_strShuXueChengFen, objContent.m_strShuXueChengFenXML);
            txt_zduan.m_mthSetNewText(objContent.m_strZhenDuan, objContent.m_strZhenDuanXML);
            txt_beizhu.m_mthSetNewText(objContent.m_strBeiZhu, objContent.m_strBeiZhuXML);
            if (objContent.m_strShuXueShi == "1")
            {
                rdb_wu.Checked = true;
            }
            if (objContent.m_strShuXueShi == "2")
            {
                rdb_you.Checked = true;
            }
            txt_yun.Text   = objContent.m_strYun;
            txt_chan.Text  = objContent.m_strChan;
            txt_alt.Text   = objContent.m_strALT;
            txt_hbsag.Text = objContent.m_strHBsAg;
            txt_hbs.Text   = objContent.m_strHBs;
            txt_hbeag.Text = objContent.m_strHBeAg;
            txt_hbe.Text   = objContent.m_strHBe;
            txt_hbc.Text   = objContent.m_strHBc;
            txt_hcv.Text   = objContent.m_strHCV;
            txt_hivi.Text  = objContent.m_strHIVI;
            txt_meidu.Text = objContent.m_strMeiDu;

            #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_strRecorderName;
            //    m_txtRecorder.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 = objEmpVO.m_strLASTNAME_VCHR + " " + objEmpVO.m_strTECHNICALRANK_CHR;
            }


            #endregion 签名
        }
コード例 #12
0
ファイル: frmShuXueZhiLiaoyes_xj.cs プロジェクト: ewin66/HIS
        /// <summary>
        /// 把特殊记录的值显示到界面上。
        /// </summary>
        /// <param name="p_objContent"></param>
        protected override void m_mthSetGUIFromContent(clsTrackRecordContent p_objContent)
        {
            if (p_objContent == null)
            {
                return;
            }
            clsShuXueZhiLiaoyesContent_xj objContent = (clsShuXueZhiLiaoyesContent_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;

            txt_mudi.m_mthSetNewText(objContent.m_strShuXueMuDi, objContent.m_strShuXueMuDiXML);
            txt_chengfen.m_mthSetNewText(objContent.m_strShuXueChengFen, objContent.m_strShuXueChengFenXML);
            txt_zduan.m_mthSetNewText(objContent.m_strZhenDuan, objContent.m_strZhenDuanXML);
            txt_beizhu.m_mthSetNewText(objContent.m_strBeiZhu, objContent.m_strBeiZhuXML);
            if (objContent.m_strShuXueShi == "1")
            {
                rdb_wu.Checked = true;
            }
            if (objContent.m_strShuXueShi == "2")
            {
                rdb_you.Checked = true;
            }
            txt_yun.Text   = objContent.m_strYun;
            txt_chan.Text  = objContent.m_strChan;
            txt_alt.Text   = objContent.m_strALT;
            txt_hbsag.Text = objContent.m_strHBsAg;
            txt_hbc.Text   = objContent.m_strHBc;
            txt_hbs.Text   = objContent.m_strHBs;
            txt_hbeag.Text = objContent.m_strHBeAg;
            txt_hbe.Text   = objContent.m_strHBe;
            txt_hcv.Text   = objContent.m_strHCV;
            txt_hivi.Text  = objContent.m_strHIVI;
            txt_meidu.Text = objContent.m_strMeiDu;
            //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 签名
        }
コード例 #13
0
ファイル: frmShuXueZhiLiaoyes_xj.cs プロジェクト: ewin66/HIS
        /// <summary>
        /// 从界面获取特殊记录的值。如果界面值出错,返回null。
        /// </summary>
        /// <returns></returns>
        protected override clsTrackRecordContent m_objGetContentFromGUI()
        {
            //界面参数校验
            if (m_objCurrentPatient == null || m_ObjCurrentEmrPatientSession == null)
            {
                return(null);
            }

            //从界面获取表单值
            clsShuXueZhiLiaoyesContent_xj objContent = new clsShuXueZhiLiaoyesContent_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_strShuXueMuDi    = txt_mudi.Text;
            objContent.m_strShuXueMuDiXML = txt_mudi.m_strGetXmlText();
            objContent.m_strYun           = txt_yun.Text;
            objContent.m_strChan          = txt_chan.Text;
            if (rdb_wu.Checked == true)
            {
                objContent.m_strShuXueShi = "1";
            }

            if (rdb_you.Checked == true)
            {
                objContent.m_strShuXueShi = "2";
            }

            objContent.m_strShuXueChengFen    = txt_chengfen.Text;
            objContent.m_strShuXueChengFenXML = txt_chengfen.m_strGetXmlText();

            objContent.m_strZhenDuan    = txt_zduan.Text;
            objContent.m_strZhenDuanXML = txt_zduan.m_strGetXmlText();

            objContent.m_strBeiZhu    = txt_beizhu.Text;
            objContent.m_strBeiZhuXML = txt_beizhu.m_strGetXmlText();

            objContent.m_strALT   = txt_alt.Text;
            objContent.m_strHBsAg = txt_hbsag.Text;
            objContent.m_strHBs   = txt_hbs.Text;
            objContent.m_strHBeAg = txt_hbeag.Text;
            objContent.m_strHBe   = txt_hbe.Text;
            objContent.m_strHCV   = txt_hcv.Text;
            objContent.m_strHBc   = txt_hbc.Text;
            objContent.m_strHIVI  = txt_hivi.Text;
            objContent.m_strMeiDu = txt_meidu.Text;

            //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);
        }