コード例 #1
0
        // 打印页
        private void m_mthPrintPageSub(PrintPageEventArgs e)
        {
            e.HasMorePages = false;
            m_mthPrintTitleInfo(e);
            Font fntNormal = new Font("SimSun", 12);

            if (m_intPages == 1)
            {
                m_intYPos += (int)enmRectangleInfo.RowStep - 20;
            }

            e.Graphics.DrawLine(m_GridPen, (int)enmRectangleInfo.LeftX, (int)enmRectangleInfo.TopY, (int)enmRectangleInfo.RightX, (int)enmRectangleInfo.TopY);

            while (m_objPrintContext.m_BlnHaveMoreLine)
            {
                m_objPrintContext.m_mthPrintNextLine(ref m_intYPos, e.Graphics, fntNormal);

                if (m_intYPos >= (int)enmRectangleInfo.BottomY &&
                    m_objPrintContext.m_BlnHaveMoreLine)
                {
                    #region 换页处理
                    e.HasMorePages = true;

                    e.Graphics.DrawLine(m_GridPen, (int)enmRectangleInfo.LeftX, (int)enmRectangleInfo.TopY, (int)enmRectangleInfo.LeftX, m_intYPos);
                    e.Graphics.DrawLine(m_GridPen, (int)enmRectangleInfo.RightX, (int)enmRectangleInfo.TopY, (int)enmRectangleInfo.RightX, m_intYPos);
                    e.Graphics.DrawLine(m_GridPen, (int)enmRectangleInfo.LeftX, m_intYPos, (int)enmRectangleInfo.RightX, m_intYPos);

                    m_intPages++;
                    m_intYPos = (int)enmRectangleInfo.TopY + 10;

                    clsPrintLine2.m_blnSinglePage = false;
                    return;

                    #endregion 换页处理
                }
            }

            #region 最后一页处理
            //  m_intYPos += 20;

            string strRecordName    = "                 ";
            string strGuanChangName = "";
            string strZhuRenName    = "";
            if (m_objRecordContent != null)
            {
                com.digitalwave.emr.BEDExplorer.clsHospitalManagerDomain objEmployeeSign = new com.digitalwave.emr.BEDExplorer.clsHospitalManagerDomain();
                clsEmrEmployeeBase_VO objEmpVO = null;
                objEmployeeSign.m_lngGetEmpByNO(m_objRecordContent.m_strRecordID, out objEmpVO);
                if (objEmpVO != null)
                {
                    strRecordName = objEmpVO.ToString();
                }
            }
            e.Graphics.DrawString("主管医师签字:" + strRecordName, new Font("SimSun", 12), Brushes.Black, (int)enmRectangleInfo.LeftX + 5, m_intYPos);
            e.Graphics.DrawString(m_objRecordContent.m_dtmDoctorDate.ToString("yyyy-MM-dd"), new Font("SimSun", 12), Brushes.Black, (int)enmRectangleInfo.LeftX + 5, m_intYPos + 20);

            e.Graphics.DrawString("患者本人签字:", new Font("SimSun", 12), Brushes.Black, (int)enmRectangleInfo.LeftX + 290, m_intYPos);
            e.Graphics.DrawString("患者亲属代签:" + "              " + "与患者关系:             ", new Font("SimSun", 12), Brushes.Black, (int)enmRectangleInfo.LeftX + 290, m_intYPos + 20);
            e.Graphics.DrawString("患者单位主要负责人签字:", new Font("SimSun", 12), Brushes.Black, (int)enmRectangleInfo.LeftX + 290, m_intYPos + 40);
            e.Graphics.DrawString(m_objRecordContent.m_dtmHuanzheDate.ToString("yyyy-MM-dd"), new Font("SimSun", 12), Brushes.Black, (int)enmRectangleInfo.LeftX + 290, m_intYPos + 60);
            //			m_intYPos+=25;
            //			e.Graphics.DrawString("工  号:",new Font("SimSun",12) ,Brushes.Black,(int)enmRectangleInfo.LeftX+560,m_intYPos);
            //			if(m_objRecordContent!=null)
            //				e.Graphics.DrawString(m_objRecordContent.m_strDoctorID,new Font("SimSun",12) ,Brushes.Black,(int)enmRectangleInfo.LeftX+560+(int)(5f*17.5f),m_intYPos);
            /////////////////////////////////*******************************************
            m_intYPos += 50;
            if (m_intYPos < (int)enmRectangleInfo.BottomY)
            {
                m_intYPos = (int)enmRectangleInfo.BottomY;
            }
            e.Graphics.DrawLine(m_GridPen, (int)enmRectangleInfo.LeftX, (int)enmRectangleInfo.TopY, (int)enmRectangleInfo.LeftX, m_intYPos);
            e.Graphics.DrawLine(m_GridPen, (int)enmRectangleInfo.RightX, (int)enmRectangleInfo.TopY, (int)enmRectangleInfo.RightX, m_intYPos);
            e.Graphics.DrawLine(m_GridPen, (int)enmRectangleInfo.LeftX, m_intYPos, (int)enmRectangleInfo.RightX, m_intYPos);

            #endregion 最后一页处理

            m_intYPos += (int)enmRectangleInfo.RowStep + 15;
            Font fntSign = new Font("", 6);
            while (m_objPrintContext.m_BlnHaveMoreSign)
            {
                m_objPrintContext.m_mthPrintNextSign((int)enmRectangleInfo.LeftX, m_intYPos, e.Graphics, fntSign);

                m_intYPos += (int)enmRectangleInfo.RowStep - 10;
            }

            //全部打完
            m_objPrintContext.m_mthReset();
            m_intPages = 1;
            m_intYPos  = (int)enmRectangleInfo.TopY;
        }
コード例 #2
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);
        }
コード例 #3
0
        /// <summary>
        /// 从界面获取特殊记录的值。如果界面值出错,返回null。
        /// </summary>
        /// <returns></returns>
        protected override clsTrackRecordContent m_objGetContentFromGUI()
        {
            //界面参数校验
            if (m_objCurrentPatient == null || m_ObjCurrentEmrPatientSession == null)
            {
                return(null);
            }

            //从界面获取表单值
            clsDifficultCaseDiscussCountent_XJ objContent = new clsDifficultCaseDiscussCountent_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_strDiscussAddress = m_txtDiscussAddress.Text;
            objContent.m_strNiZheng    = m_txtInHospitalDiagnose.Text;
            objContent.m_strNiZhengXML = m_txtInHospitalDiagnose.m_strGetXmlText();
            objContent.m_strHuiBao     = m_txtSpeakRecord.Text;
            objContent.m_strHuiBaoXML  = m_txtSpeakRecord.m_strGetXmlText();

            objContent.m_strTaoLunYiJian    = m_txtYiJian.Text;
            objContent.m_strTaoLunYiJianXML = m_txtYiJian.m_strGetXmlText();

            objContent.m_strTaoLunXiaoJie    = m_txtVerdict.Text;
            objContent.m_strTaoLunXiaoJieXML = m_txtVerdict.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);
            }

            //科主任
            if (m_txtKeZhuRen.Tag != null && m_txtKeZhuRen.Text.Trim() != "")
            {
                objContent.m_strZhuRenID = ((clsEmrEmployeeBase_VO)m_txtKeZhuRen.Tag).m_strEMPNO_CHR;
                //objContent.m_strCompereSignName = m_txtCompereSign.Text.Trim();
                clsEmrEmployeeBase_VO objEmpVO = new clsEmrEmployeeBase_VO();
                objEmployeeSign.m_lngGetEmpByNO(objContent.m_strZhuRenID, out objEmpVO);
                // m_txtDoctorSign.Text = objEmpVO.ToString();
                objContent.m_strZhuRenName = objEmpVO.ToString();
            }
            else
            {
                if (!m_BlnIsAddNew)
                {
                    clsPublicFunction.ShowInformationMessageBox("请科主任签名!");
                    return(null);
                }
            }

            //管床医师
            if (m_txtCompereSign.Tag != null && m_txtCompereSign.Text.Trim() != "")
            {
                objContent.m_strGuanChuangID = ((clsEmrEmployeeBase_VO)m_txtCompereSign.Tag).m_strEMPNO_CHR.Trim();
                //objContent.m_strCompereSignName = m_txtCompereSign.Text.Trim();
                clsEmrEmployeeBase_VO objEmpVO = new clsEmrEmployeeBase_VO();
                objEmployeeSign.m_lngGetEmpByNO(objContent.m_strGuanChuangID, out objEmpVO);
                // m_txtDoctorSign.Text = objEmpVO.ToString();
                objContent.m_strGuanChuangName = objEmpVO.ToString();
            }
            else
            {
                if (!m_BlnIsAddNew)
                {
                    clsPublicFunction.ShowInformationMessageBox("请管床医师签名!");
                    return(null);
                }
            }

            //objContent.m_strGuanChuangID = ((clsEmrEmployeeBase_VO)m_txtCompereSign.Tag).m_strEMPNO_CHR.Trim();
            //objContent.m_strGuanChuangName = m_txtCompereSign.ToString();

            //病史汇报者
            if (m_txtHuiBao.Tag != null && m_txtHuiBao.Text.Trim() != "")
            {
                objContent.m_strHuiBaoID = ((clsEmrEmployeeBase_VO)m_txtHuiBao.Tag).m_strEMPNO_CHR.Trim();
                //objContent.m_strCompereSignName = m_txtCompereSign.Text.Trim();
                clsEmrEmployeeBase_VO objEmpVO = new clsEmrEmployeeBase_VO();
                objEmployeeSign.m_lngGetEmpByNO(objContent.m_strHuiBaoID, out objEmpVO);
                // m_txtDoctorSign.Text = objEmpVO.ToString();
                objContent.m_strHuiBaoName = objEmpVO.ToString();
            }
            else
            {
                if (!m_BlnIsAddNew)
                {
                    clsPublicFunction.ShowInformationMessageBox("病史汇报者签名!");
                    return(null);
                }
            }
            //objContent.m_strHuiBaoID = ((clsEmrEmployeeBase_VO)m_txtHuiBao.Tag).m_strEMPNO_CHR.Trim();
            //objContent.m_strHuiBaoName = m_txtHuiBao.ToString();

            //if (!string.IsNullOrEmpty(objContent.m_strCompereSignID)
            //    && objContent.m_strCompereSignID.Trim() != objContent.m_strCompereID.Trim())
            //{
            //    if (clsPublicFunction.ShowInformationMessageBox("填写的主持人与主持人审阅签名不同,是否继续保存?", MessageBoxButtons.YesNo) == DialogResult.No)
            //    {
            //        return null;
            //    }
            //}
            return(objContent);
        }
コード例 #4
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);
        }