/// <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_objPatient = p_objPatient;
            m_dtInHos    = p_dtmInPatientDate;
            //获取所有没删除的数据
            com.digitalwave.clsRecordsService.clsICUNurseRecord_GXMainService m_objInRoomSvc =
                (com.digitalwave.clsRecordsService.clsICUNurseRecord_GXMainService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.clsRecordsService.clsICUNurseRecord_GXMainService));

            m_objInRoomSvc.m_lngGetAllMainRecord(m_objPatient.m_StrInPatientID, p_dtmInPatientDate.ToString("yyyy-MM-dd HH:mm:ss"), out m_objValue);
            m_blnIsFromDataSource = true;//表明是从数据库读取
            //clsPatient m_objPatient = p_objPatient;
            //m_objPrintInfo = new clsPrintInfo_ICUNurseRecord();
            //m_objPrintInfo.m_strInPatentID = m_objPatient != null ? m_objPatient.m_StrInPatientID : "";
            //m_objPrintInfo.m_strPatientName = m_objPatient != null ? m_objPatient.m_ObjPeopleInfo.m_StrFirstName : "";
            //m_objPrintInfo.m_strSex = m_objPatient != null ? m_objPatient.m_ObjPeopleInfo.m_StrSex : "";
            //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_ObjLastDeptInfo.m_ObjDept.m_StrDeptName : "";
            //m_objPrintInfo.m_dtmInPatientDate = p_dtmInPatientDate;
            //m_objPrintInfo.m_strHISInPatientID = m_objPatient != null ? m_objPatient.m_StrHISInPatientID : "";
            //m_objPrintInfo.m_dtmHISInDate = m_objPatient != null ? m_objPatient.m_DtmSelectedHISInDate : DateTime.MinValue;
        }
Exemple #2
0
        /// <summary>
        /// 获取指定特殊记录的领域层。
        /// </summary>
        /// <param name="p_enmRecordsType"></param>
        /// <returns></returns>
        public static clsRecordsService s_objGetRecordsDomain(enmRecordsType p_enmRecordsType)
        {
            switch (p_enmRecordsType)
            {
            case enmRecordsType.DiseaseTrack:
            {
                clsMainDiseaseTrackService objServ =
                    (clsMainDiseaseTrackService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsMainDiseaseTrackService));
                return(objServ);
            }
            //return new clsMainDiseaseTrackService();

            case enmRecordsType.WatchItem:
            {
                com.digitalwave.clsWatchItemTrackService.clsWatchItemTrackService objServ =
                    (com.digitalwave.clsWatchItemTrackService.clsWatchItemTrackService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.clsWatchItemTrackService.clsWatchItemTrackService));
                return(objServ);
            }
            //return new com.digitalwave.clsWatchItemTrackService.clsWatchItemTrackService();

            case enmRecordsType.IntensiveTend:
            {
                com.digitalwave.clsRecordsService.clsIntensiveTendMainService objServ =
                    (com.digitalwave.clsRecordsService.clsIntensiveTendMainService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.clsRecordsService.clsIntensiveTendMainService));
                return(objServ);
            }
            //return new com.digitalwave.clsRecordsService.clsIntensiveTendMainService();

            case enmRecordsType.GeneralNurseRecord:
            {
                com.digitalwave.clsMainGeneralNurseRecordService.clsMainGeneralNurseRecordService objServ =
                    (com.digitalwave.clsMainGeneralNurseRecordService.clsMainGeneralNurseRecordService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.clsMainGeneralNurseRecordService.clsMainGeneralNurseRecordService));
                return(objServ);
            }
            //return new com.digitalwave.clsMainGeneralNurseRecordService.clsMainGeneralNurseRecordService();

            case enmRecordsType.ICUIntensiveTend:
            {
                com.digitalwave.clsICUIntensiveTrackService.clsICUIntensiveTrackService objServ =
                    (com.digitalwave.clsICUIntensiveTrackService.clsICUIntensiveTrackService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.clsICUIntensiveTrackService.clsICUIntensiveTrackService));
                return(objServ);
            }
            //return new com.digitalwave.clsICUIntensiveTrackService.clsICUIntensiveTrackService();

            case enmRecordsType.ICUBreath:
            {
                com.digitalwave.clsICUBreathTrackService.clsICUBreathTrackService objServ =
                    (com.digitalwave.clsICUBreathTrackService.clsICUBreathTrackService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.clsICUBreathTrackService.clsICUBreathTrackService));
                return(objServ);
            }
            //return new com.digitalwave.clsICUBreathTrackService.clsICUBreathTrackService();

            case enmRecordsType.FirstIllnessNote:
            {
                clsMainDiseaseTrackService objServ =
                    (clsMainDiseaseTrackService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsMainDiseaseTrackService));
                return(objServ);
            }
            //return new clsMainDiseaseTrackService();

            case enmRecordsType.FirstIllnessNote_ZY:
            {
                clsMainDiseaseTrackService objServ =
                    (clsMainDiseaseTrackService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsMainDiseaseTrackService));
                return(objServ);
            }
            //return new clsMainDiseaseTrackService();

            case enmRecordsType.GeneralNurseRecord_GXRec:
            {
                com.digitalwave.clsRecordsService.clsGeneralNurseRecord_GXMainService objServ =
                    (com.digitalwave.clsRecordsService.clsGeneralNurseRecord_GXMainService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.clsRecordsService.clsGeneralNurseRecord_GXMainService));
                return(objServ);
            }
            //return new com.digitalwave.clsRecordsService.clsGeneralNurseRecord_GXMainService();

            case enmRecordsType.ICUNurseRecord_GX:
            {
                com.digitalwave.clsRecordsService.clsICUNurseRecord_GXMainService objServ =
                    (com.digitalwave.clsRecordsService.clsICUNurseRecord_GXMainService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.clsRecordsService.clsICUNurseRecord_GXMainService));
                return(objServ);
            }
            //return new com.digitalwave.clsRecordsService.clsICUNurseRecord_GXMainService();

            case enmRecordsType.SURGERYICUWARDSHIP:
            {
                com.digitalwave.clsRecordsService.clsSURGERYICUWARDSHIPMainService objServ =
                    (com.digitalwave.clsRecordsService.clsSURGERYICUWARDSHIPMainService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.clsRecordsService.clsSURGERYICUWARDSHIPMainService));
                return(objServ);
            }
            //return new com.digitalwave.clsRecordsService.clsSURGERYICUWARDSHIPMainService();

            case enmRecordsType.IntensiveTendRecord_GX:
            {
                com.digitalwave.clsRecordsService.clsIntensiveTendRecord_GXMainService objServ =
                    (com.digitalwave.clsRecordsService.clsIntensiveTendRecord_GXMainService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.clsRecordsService.clsIntensiveTendRecord_GXMainService));
                return(objServ);
            }
            //return new com.digitalwave.clsRecordsService.clsIntensiveTendRecord_GXMainService();

            case enmRecordsType.CardiovascularTend_GX:
            {
                com.digitalwave.clsRecordsService.clsCardiovascularTend_GXMainService objServ =
                    (com.digitalwave.clsRecordsService.clsCardiovascularTend_GXMainService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.clsRecordsService.clsCardiovascularTend_GXMainService));
                return(objServ);
            }
            //return new com.digitalwave.clsRecordsService.clsCardiovascularTend_GXMainService();

            //候产记录服务(需要改动)
            case enmRecordsType.WaitLayRecord_Acad:
            {
                com.digitalwave.clsRecordsService.clsWaitLayRecord_AcadMainService objServ =
                    (com.digitalwave.clsRecordsService.clsWaitLayRecord_AcadMainService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.clsRecordsService.clsWaitLayRecord_AcadMainService));
                return(objServ);
            }
            //return new com.digitalwave.clsRecordsService.clsWaitLayRecord_AcadMainService();

            //产后记录服务
            case enmRecordsType.PostPartum_Acad:
            {
                com.digitalwave.clsRecordsService.clsPostPartumRecord_MainService objServ =
                    (com.digitalwave.clsRecordsService.clsPostPartumRecord_MainService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.clsRecordsService.clsPostPartumRecord_MainService));
                return(objServ);
            }
            //return new com.digitalwave.clsRecordsService.clsPostPartumRecord_MainService();

            case enmRecordsType.HurryVeinRecord:
            {
                com.digitalwave.clsRecordsService.clsHurryVeinRecord_MainService objServ =
                    (com.digitalwave.clsRecordsService.clsHurryVeinRecord_MainService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.clsRecordsService.clsHurryVeinRecord_MainService));
                return(objServ);
            }
            //return new com.digitalwave.clsRecordsService.clsHurryVeinRecord_MainService();

            //胎动监护表
            case enmRecordsType.QuickeningTutelar_Acad:
            {
                com.digitalwave.clsRecordsService.clsQuickeningTutelar_AcadMainService objServ =
                    (com.digitalwave.clsRecordsService.clsQuickeningTutelar_AcadMainService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.clsRecordsService.clsQuickeningTutelar_AcadMainService));
                return(objServ);
            }
            //return new com.digitalwave.clsRecordsService.clsQuickeningTutelar_AcadMainService();

            //中期妊娠引产后观察记录
            case enmRecordsType.PostartumSeeRecord:
            {
                com.digitalwave.clsRecordsService.clsPostartumSeeRecordMainService objServ =
                    (com.digitalwave.clsRecordsService.clsPostartumSeeRecordMainService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.clsRecordsService.clsPostartumSeeRecordMainService));
                return(objServ);
            }
            //return new com.digitalwave.clsRecordsService.clsPostartumSeeRecordMainService();

            //静脉特殊化疗用药观察记录表(广西)
            case enmRecordsType.VeinSpecialUseDrug:
            {
                com.digitalwave.clsRecordsService.clsVeinSpecialUseDrug_MainService objServ =
                    (com.digitalwave.clsRecordsService.clsVeinSpecialUseDrug_MainService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.clsRecordsService.clsVeinSpecialUseDrug_MainService));
                return(objServ);
            }

            //return new com.digitalwave.clsRecordsService.clsVeinSpecialUseDrug_MainService();

            //产程记录
            case enmRecordsType.EMR_WAITLAYRECORD_GX:
            {
                com.digitalwave.clsRecordsService.clsEMR_WAITLAYRECORD_GXMainServ objServ =
                    (com.digitalwave.clsRecordsService.clsEMR_WAITLAYRECORD_GXMainServ)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.clsRecordsService.clsEMR_WAITLAYRECORD_GXMainServ));
                return(objServ);
            }
            //return new com.digitalwave.clsRecordsService.clsEMR_WAITLAYRECORD_GXMainServ();

            //催产素静脉点滴观察表
            case enmRecordsType.EMR_OXTIntravenousDrip:
            {
                com.digitalwave.clsRecordsService.clsEMR_OXTIntravenousDripMainService objServ =
                    (com.digitalwave.clsRecordsService.clsEMR_OXTIntravenousDripMainService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.clsRecordsService.clsEMR_OXTIntravenousDripMainService));
                return(objServ);
            }
            //return new com.digitalwave.clsRecordsService.clsEMR_OXTIntravenousDripMainService();

            //出入量登记表
            case enmRecordsType.EMR_IntakeAndOutputVolume:
            {
                com.digitalwave.clsRecordsService.clsEMR_IntakeAndOutputVolumeMainServ objServ =
                    (com.digitalwave.clsRecordsService.clsEMR_IntakeAndOutputVolumeMainServ)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.clsRecordsService.clsEMR_IntakeAndOutputVolumeMainServ));
                return(objServ);
            }
            //return new com.digitalwave.clsRecordsService.clsEMR_IntakeAndOutputVolumeMainServ();

            case enmRecordsType.EMR_MicroBooldSugarCheck:
            {
                com.digitalwave.clsRecordsService.clsEMR_MicroBooldSugarCheckMainServ objServ =
                    (com.digitalwave.clsRecordsService.clsEMR_MicroBooldSugarCheckMainServ)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.clsRecordsService.clsEMR_MicroBooldSugarCheckMainServ));
                return(objServ);
            }
            //return new com.digitalwave.clsRecordsService.clsEMR_MicroBooldSugarCheckMainServ();

            case enmRecordsType.FirstIllnessNote_F2:
            {
                clsMainDiseaseTrackService objServ =
                    (clsMainDiseaseTrackService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsMainDiseaseTrackService));
                return(objServ);
            }

            //危重患者护理记录茶山版(内科、妇产科、普儿科、急诊科、手术室)
            case enmRecordsType.GeneralNurseRecord_CSRec:
            {
                com.digitalwave.clsRecordsService.clsGeneralNurseRecord_CSMainService objServ =
                    (com.digitalwave.clsRecordsService.clsGeneralNurseRecord_CSMainService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.clsRecordsService.clsGeneralNurseRecord_CSMainService));
                return(objServ);
            }

            //新生儿科一般患者护理记录(茶山)
            case enmRecordsType.NewBorthBabyGeneralNurseRecord_CSRec:
            {
                com.digitalwave.clsRecordsService.clsNewBrothGeneralNurseRecord_CSMainService objServ =
                    (com.digitalwave.clsRecordsService.clsNewBrothGeneralNurseRecord_CSMainService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.clsRecordsService.clsNewBrothGeneralNurseRecord_CSMainService));
                return(objServ);
            }

            //一般患者护理记录(茶山,外科)
            case enmRecordsType.GeneralNurseRecordWK_CSRec:
            {
                com.digitalwave.clsRecordsService.clsGeneralNurseRecordWK_CSMainService objServ =
                    (com.digitalwave.clsRecordsService.clsGeneralNurseRecordWK_CSMainService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.clsRecordsService.clsGeneralNurseRecordWK_CSMainService));
                return(objServ);
            }

            //新生儿科危重患者护理记录(茶山)
            case enmRecordsType.IntensivetendRecord_CSRec:
            {
                com.digitalwave.clsRecordsService.clsIntensivetendRecord_CSMainService objServ =
                    (com.digitalwave.clsRecordsService.clsIntensivetendRecord_CSMainService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.clsRecordsService.clsIntensivetendRecord_CSMainService));
                return(objServ);
            }

            //危重患者护理记录(茶山,外科)
            case enmRecordsType.IntensiveTendMain_CSWKRec:
            {
                com.digitalwave.clsRecordsService.clsIntensiveTendMain_CSWKMainService objServ =
                    (com.digitalwave.clsRecordsService.clsIntensiveTendMain_CSWKMainService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.clsRecordsService.clsIntensiveTendMain_CSWKMainService));
                return(objServ);
            }

            //一般患者护理记录茶山版(内科、妇产科、普儿科)
            case enmRecordsType.GeneralNurseRecord_DGCSRec:
            {
                com.digitalwave.clsRecordsService.clsGeneralNurseRecord_DGCSMainService objServ =
                    (com.digitalwave.clsRecordsService.clsGeneralNurseRecord_DGCSMainService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.clsRecordsService.clsGeneralNurseRecord_DGCSMainService));
                return(objServ);
            }

            //一般患者护理记录茶山版(产科新生儿)
            case enmRecordsType.GeneralNurseRecord_ObstetricNewChildRec:
            {
                com.digitalwave.clsRecordsService.clsGeneralNurseRecord_CSObstetricNewChildMainService objServ =
                    (com.digitalwave.clsRecordsService.clsGeneralNurseRecord_CSObstetricNewChildMainService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.clsRecordsService.clsGeneralNurseRecord_CSObstetricNewChildMainService));
                return(objServ);
            }

            //内分泌科血糖观察表
            case enmRecordsType.EMR_IntBloodSugarWatch:
            {
                com.digitalwave.clsRecordsService.clsEMR_intbloodsugarwatchMainServ objServ =
                    (com.digitalwave.clsRecordsService.clsEMR_intbloodsugarwatchMainServ)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.clsRecordsService.clsEMR_intbloodsugarwatchMainServ));
                return(objServ);
            }

            //肾内风湿科血液净化记录表
            case enmRecordsType.frmBloodCleanseRecord:
            {
                com.digitalwave.clsRecordsService.clsBloodCleanseRecord_MainService objServ =
                    (com.digitalwave.clsRecordsService.clsBloodCleanseRecord_MainService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.clsRecordsService.clsBloodCleanseRecord_MainService));
                return(objServ);
            }

            case enmRecordsType.EMR_GestationDiabetesCure:
            {
                com.digitalwave.clsRecordsService.clsEMR_GestationDiabetesCureMainServ objServ =
                    (com.digitalwave.clsRecordsService.clsEMR_GestationDiabetesCureMainServ)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.clsRecordsService.clsEMR_GestationDiabetesCureMainServ));
                return(objServ);
            }
                //return new clsMainDiseaseTrackService();
            }

            return(null);
        }