Example #1
0
        /// <summary>
        /// 设置打印内容。(当数据已经存在时使用。)
        /// </summary>
        /// <param name="p_objPrintContent">打印内容</param>
        public void m_mthSetPrintContent(object p_objPrintContent)
        {
            m_blnWantInit = false;
            if (p_objPrintContent.GetType().Name != "clsPrintInfo_InPatientCaseHistory")
            {
                MDIParent.ShowInformationMessageBox("参数错误");
            }
            m_blnIsFromDataSource = false;//表明是从文件直接提取信息
            m_objPrintInfo        = (clsPrintInfo_InPatientCaseHistory)p_objPrintContent;

            m_mthSetPrintContent((clsAYQBabyAssessmentContent_EspRecord)m_objPrintInfo.m_objContent, objRecordArr, m_objPrintInfo.m_dtmFirstPrintDate);
        }
Example #2
0
        //infPrintRecord objPrintTool;
        protected override void m_mthSubPreviewInactiveRecord(IWin32Window p_infOwner, clsInactiveRecordInfo_VO p_objSelectedValue)
        {
            if (p_objSelectedValue == null)
            {
                return;
            }
            objPrintTool = new clsInPatientCaseHistory_XJPrintTool();

            if (m_objBaseCurrentPatient != null)
            {
                objPrintTool.m_mthInitPrintTool(null);
                objPrintTool.m_mthSetPrintInfo(m_objBaseCurrentPatient,
                                               p_objSelectedValue.m_DtmInpatientDate,
                                               p_objSelectedValue.m_DtmOpenDate);
                clsPrintInfo_InPatientCaseHistory objPrintInfo = new clsPrintInfo_InPatientCaseHistory();
                objPrintInfo.m_strInPatentID    = m_objBaseCurrentPatient.m_StrInPatientID;
                objPrintInfo.m_strPatientName   = m_objBaseCurrentPatient.m_ObjPeopleInfo.m_StrFirstName;
                objPrintInfo.m_strSex           = m_objBaseCurrentPatient.m_ObjPeopleInfo.m_StrSex;
                objPrintInfo.m_strAge           = m_objBaseCurrentPatient.m_ObjPeopleInfo.m_StrAge;
                objPrintInfo.m_strBedName       = m_objBaseCurrentPatient.m_ObjInBedInfo.m_ObjLastBedInfo.m_ObjBed.m_StrBedName;
                objPrintInfo.m_strDeptName      = m_objBaseCurrentPatient.m_ObjInBedInfo.m_objGetSessionByInDate(p_objSelectedValue.m_DtmInpatientDate).m_ObjLastDept.m_ObjDept.m_StrDeptName;
                objPrintInfo.m_strAreaName      = m_objBaseCurrentPatient.m_ObjInBedInfo.m_objGetSessionByInDate(p_objSelectedValue.m_DtmInpatientDate).m_ObjLastDept.m_ObjLastArea.m_ObjArea.m_StrAreaName;
                objPrintInfo.m_dtmInPatientDate = p_objSelectedValue.m_DtmInpatientDate;
                objPrintInfo.m_dtmOpenDate      = p_objSelectedValue.m_DtmOpenDate;

                objPrintInfo.m_strHomeplace        = m_objBaseCurrentPatient.m_ObjPeopleInfo.m_StrHomeplace;        //出生地
                objPrintInfo.m_strNativePlace      = m_objBaseCurrentPatient.m_ObjPeopleInfo.m_StrNativePlace;      //籍贯
                objPrintInfo.m_strOccupation       = m_objBaseCurrentPatient.m_ObjPeopleInfo.m_StrOccupation;       //职业
                objPrintInfo.m_strMarried          = m_objBaseCurrentPatient.m_ObjPeopleInfo.m_StrMarried;          //婚否
                objPrintInfo.m_StrLinkManFirstName = m_objBaseCurrentPatient.m_ObjPeopleInfo.m_StrLinkManFirstName; //联系人
                objPrintInfo.m_strNationality      = m_objBaseCurrentPatient.m_ObjPeopleInfo.m_StrNation;           //民族
                objPrintInfo.m_strHomePhone        = m_objBaseCurrentPatient.m_ObjPeopleInfo.m_StrLinkManPhone;     //电话
                objPrintInfo.m_strHomeAddress      = m_objBaseCurrentPatient.m_ObjPeopleInfo.m_StrHomeAddress;      //地址

                objPrintInfo.m_strHISInPatientID   = m_objBaseCurrentPatient.m_StrHISInPatientID;
                objPrintInfo.m_dtmHISInPatientDate = m_objBaseCurrentPatient.m_DtmSelectedHISInDate;
                clsInPatientCaseHistoryContent objContent = null;
                long lngRes = m_objGetDomain().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 objContent);
                objPrintInfo.m_objContent      = objContent;
                objPrintInfo.m_blnIsFirstPrint = false;
                objPrintTool.m_mthSetPrintContent(objPrintInfo);

                ppdPrintPreview.Document = m_pdcPrintDocument;
                ppdPrintPreview.ShowDialog(p_infOwner);
            }
        }
Example #3
0
        /// <summary>
        /// 设置打印信息(当从数据库读取时要首先调用.)
        /// </summary>
        /// <param name="p_objPatient">病人</param>
        /// <param name="p_dtmInPatientDate">入院日期</param>
        /// <param name="p_dtmOpenDate">OpenDate,如果是一次打印多次记录表单的类型(如病案记录),忽略OpenDate</param>
        public void m_mthSetPrintInfo(clsPatient p_objPatient, DateTime p_dtmInPatientDate, DateTime p_dtmOpenDate)
        {
            m_blnIsFromDataSource = true;//表明是从数据库读取
            clsPatient m_objPatient = p_objPatient;

            m_objPrintInfo = new clsPrintInfo_InPatientCaseHistory();
            m_objPrintInfo.m_strInPatentID  = m_objPatient != null ? m_objPatient.m_StrInPatientID : "";
            m_objPrintInfo.m_strPatientName = m_objPatient != null ? m_objPatient.m_ObjPeopleInfo.m_StrLastName : "";
            m_objPrintInfo.m_strSex         = m_objPatient != null ? m_objPatient.m_ObjPeopleInfo.m_StrSex : "";
            //佛二病程记录及爱婴区婴儿评估表要求:当病人年龄小于一个月时,用“新”表示
            if (com.digitalwave.Emr.StaticObject.clsEMR_StaticObject.s_StrCurrentHospitalNO == "440605001")
            {
                string strAge = "";
                if (m_objPatient != null)
                {
                    strAge = m_objPatient.m_ObjPeopleInfo.m_StrAge;
                    if (strAge.IndexOf("月") == -1 && strAge.IndexOf("岁") == -1)
                    {
                        strAge = "新";
                    }
                }
                m_objPrintInfo.m_strAge = strAge;
            }
            else
            {
                m_objPrintInfo.m_strAge = m_objPatient != null ? m_objPatient.m_ObjPeopleInfo.m_StrAge : "";
            }
            m_objPrintInfo.m_strBedName  = m_objPatient != null ? m_objPatient.m_ObjInBedInfo.m_ObjLastBedInfo.m_ObjBed.m_StrBedName : "";
            m_objPrintInfo.m_strDeptName = m_objPatient != null?m_objPatient.m_ObjInBedInfo.m_objGetSessionByInDate(p_dtmInPatientDate).m_ObjLastDept.m_ObjDept.m_StrDeptName : "";

            m_objPrintInfo.m_strAreaName = m_objPatient != null?m_objPatient.m_ObjInBedInfo.m_objGetSessionByInDate(p_dtmInPatientDate).m_ObjLastDept.m_ObjLastArea.m_ObjArea.m_StrAreaName : "";

            m_objPrintInfo.m_dtmInPatientDate    = p_dtmInPatientDate;
            m_objPrintInfo.m_dtmOpenDate         = p_dtmOpenDate;
            m_objPrintInfo.m_strHISInPatientID   = m_objPatient != null ? p_objPatient.m_StrHISInPatientID : "";
            m_objPrintInfo.m_dtmHISInPatientDate = m_objPatient != null ? p_objPatient.m_DtmSelectedHISInDate : DateTime.MinValue;
            m_mthGetPrintMarkConfig();
        }