Example #1
0
        // 获取打印信息。

        // 1.获取打印内容:如果输入参数p_dtmModifyDate不是最新的ModifyDate,输出变量 p_objContent
        //   会存放最新的内容;否则,输出变量为null。

        // 2.获取打印时间:输出变量 p_dtmFirstPrintDate 存放首次打印时间。p_blnIsFirstPrint标记
        //   是否首次打印,如果是为true,客户端在打印后需要保存p_dtmFirstPrintDate到数据库。

        public long m_lngGetPrintInfo(string p_strInPatientID, string p_strInPatientDate, /*string p_strOpenDate,*/ DateTime p_dtmModifyDate,
                                      out clsBaseCaseHistoryInfo p_objContent,
                                      out clsPictureBoxValue[] p_objPicValueArr,
                                      out DateTime p_dtmFirstPrintDate,
                                      out bool p_blnIsFirstPrint)
        {
            p_dtmFirstPrintDate = DateTime.MinValue;
            p_blnIsFirstPrint   = false;
            p_objContent        = null;
            p_objPicValueArr    = null;

            if (p_strInPatientID == "" || p_strInPatientID == null || p_strInPatientDate == "" || p_strInPatientDate == null)//|| p_strOpenDate=="" || p_strOpenDate==null )
            {
                return((long)enmOperationResult.Parameter_Error);
            }


            clsGestationMisbirthsthreeRelationVOService objServ =
                (clsGestationMisbirthsthreeRelationVOService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsGestationMisbirthsthreeRelationVOService));

            long m_lngRes = 0;

            try
            {
                m_lngRes = objServ.m_lngGetPrintInfo(clsLoginContext.s_ObjLoginContext.m_ObjPrincial, p_strInPatientID, p_strInPatientDate, p_dtmModifyDate, out p_objContent, out p_objPicValueArr, out p_dtmFirstPrintDate, out p_blnIsFirstPrint);
            }
            finally
            {
                //objServ.Dispose();
            }
            return(m_lngRes);
        }
Example #2
0
        // 获取指定特殊记录的领域层。
        public static clsBaseCaseHistorySevice s_objGetDomain(enmBaseCaseHistoryTypeInfo p_enmProcessType)
        {
            switch (p_enmProcessType)
            {
            case enmBaseCaseHistoryTypeInfo.InPatientCaseHistory:
            {
                clsInPatientCaseHistoryServ objServ =
                    (clsInPatientCaseHistoryServ)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsInPatientCaseHistoryServ));
                return(objServ);
            }

            //return new clsInPatientCaseHistoryServ();
            case enmBaseCaseHistoryTypeInfo.NewBabyInRoomRecord:
            {
                clsNewBabyInRoomRecordService objServ =
                    (clsNewBabyInRoomRecordService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsNewBabyInRoomRecordService));
                return(objServ);
            }

            //return new clsNewBabyInRoomRecordService();
            case enmBaseCaseHistoryTypeInfo.RegisterQuantity_VO:
            {
                clsRegisterQuantityService objServ =
                    (clsRegisterQuantityService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsRegisterQuantityService));
                return(objServ);
            }

            //return new clsRegisterQuantityService();
            case enmBaseCaseHistoryTypeInfo.AYQBabyAssessmentRecord:
            {
                clsAYQBabyAssessmenEspRecordService objServ =
                    (clsAYQBabyAssessmenEspRecordService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsAYQBabyAssessmenEspRecordService));
                return(objServ);
            }

            case enmBaseCaseHistoryTypeInfo.BrothRecords_F2:
            {
                clsBrothRecords_F2Service objServ =
                    (clsBrothRecords_F2Service)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsBrothRecords_F2Service));
                return(objServ);
            }

            case enmBaseCaseHistoryTypeInfo.GestationMisbirthsthreeRec_CS:
            {
                clsGestationMisbirthsthreeRelationVOService objServ =
                    (clsGestationMisbirthsthreeRelationVOService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsGestationMisbirthsthreeRelationVOService));
                return(objServ);
            }
            }
            return(null);
        }
Example #3
0
        public long m_lngDeleteRecord(clsGestationMisbirthsthreeRelationVO p_objRecordContent, out clsPreModifyInfo p_objModifyInfo)
        {
            //参数判断

            clsGestationMisbirthsthreeRelationVOService objServ =
                (clsGestationMisbirthsthreeRelationVOService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsGestationMisbirthsthreeRelationVOService));

            long m_lngRes = 0;

            try
            {
                m_lngRes = objServ.m_lngDeleteRecord(clsLoginContext.s_ObjLoginContext.m_ObjPrincial, p_objRecordContent, out p_objModifyInfo);
            }
            finally
            {
                //objServ.Dispose();
            }
            return(m_lngRes);
        }
Example #4
0
        public long m_lngUpdateFirstPrintDate(string p_strInPatientID,
                                              string p_strInPatientDate,
                                              string p_strOpenDate,
                                              DateTime p_dtmFirstPrintDate)
        {
            clsGestationMisbirthsthreeRelationVOService objServ =
                (clsGestationMisbirthsthreeRelationVOService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsGestationMisbirthsthreeRelationVOService));

            long m_lngRes = 0;

            try
            {
                m_lngRes = objServ.m_lngUpdateFirstPrintDate(clsLoginContext.s_ObjLoginContext.m_ObjPrincial, p_strInPatientID, p_strInPatientDate, p_strOpenDate, p_dtmFirstPrintDate);
            }
            finally
            {
                objServ.Dispose();
            }
            return(m_lngRes);
        }
Example #5
0
        // 获取指定记录内容。

        public long m_lngGetRecordContent(string p_strInPatientID,
                                          string p_strInPatientDate,/*string p_strOpenRecordTime,*/
                                          out clsBaseCaseHistoryInfo p_objRecordContent,
                                          out clsPictureBoxValue[] p_objPicValueArr)
        {
            //参数判断
            p_objRecordContent = null;
            clsGestationMisbirthsthreeRelationVOService objServ =
                (clsGestationMisbirthsthreeRelationVOService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsGestationMisbirthsthreeRelationVOService));
            long m_lngRes = 0;

            try
            {
                m_lngRes = objServ.m_lngGetRecordContent(clsLoginContext.s_ObjLoginContext.m_ObjPrincial, p_strInPatientID, p_strInPatientDate, /*p_strOpenRecordTime,*/ out p_objRecordContent, out p_objPicValueArr);
            }
            finally
            {
                objServ.Dispose();
            }
            return(m_lngRes);
        }
Example #6
0
        // 添加新记录。

        public long m_lngAddNewRecord(clsBaseCaseHistoryInfo p_objRecordContent,
                                      clsPictureBoxValue[] p_objPicValueArr,
                                      string p_strDiseaseID, out clsPreModifyInfo p_objModifyInfo)
        {
            //参数判断
            p_objModifyInfo = null;

            clsGestationMisbirthsthreeRelationVOService objServ =
                (clsGestationMisbirthsthreeRelationVOService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsGestationMisbirthsthreeRelationVOService));

            long m_lngRes = 0;

            try
            {
                m_lngRes = objServ.m_lngAddNewRecord(clsLoginContext.s_ObjLoginContext.m_ObjPrincial, p_objRecordContent, p_objPicValueArr, p_strDiseaseID, MDIParent.m_objCurrentDepartment.m_strDEPTID_CHR, out p_objModifyInfo);
            }
            finally
            {
                //objServ.Dispose();
            }
            return(m_lngRes);
        }
Example #7
0
        public long m_lngReAddNewRecord(clsInPatientCaseHistoryContent m_objDelRecord,
                                        clsGestationMisbirthsthreeRelationVO m_objAddNewRecord,
                                        out clsPreModifyInfo p_objModifyInfo)
        {
            //参数判断
            p_objModifyInfo = null;

            clsGestationMisbirthsthreeRelationVOService objServ =
                (clsGestationMisbirthsthreeRelationVOService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsGestationMisbirthsthreeRelationVOService));

            long m_lngRes = 0;

            try
            {
                m_lngRes = objServ.m_lngReAddNewRecord(clsLoginContext.s_ObjLoginContext.m_ObjPrincial, m_objDelRecord, m_objAddNewRecord, out p_objModifyInfo);
            }
            finally
            {
                //objServ.Dispose();
            }
            return(m_lngRes);
        }
Example #8
0
        public long m_lngGetRecordTimeList(string p_strInPatientID,
                                           out string[] p_strInPatientDateArr,
                                           out string[] p_strCreateRecordTimeArr,
                                           out string[] p_strOpenRecordTimeArr)
        {
            //参数判断
            p_strCreateRecordTimeArr = null;
            p_strOpenRecordTimeArr   = null;
            clsGestationMisbirthsthreeRelationVOService objServ =
                (clsGestationMisbirthsthreeRelationVOService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsGestationMisbirthsthreeRelationVOService));

            long m_lngRes = 0;

            try
            {
                m_lngRes = objServ.m_lngGetRecordTimeList(clsLoginContext.s_ObjLoginContext.m_ObjPrincial, p_strInPatientID, out p_strInPatientDateArr, out p_strCreateRecordTimeArr, out p_strOpenRecordTimeArr);
            }
            finally
            {
                objServ.Dispose();
            }
            return(m_lngRes);
        }
Example #9
0
        /// <summary>
        /// 获取指定已经被删除记录的内容
        /// </summary>
        /// <param name="p_strInPatientID"></param>
        /// <param name="p_strInPatientDate"></param>
        /// <param name="p_strOpenRecordTime"></param>
        /// <param name="p_objRecordContent"></param>
        /// <returns></returns>
        public long m_lngGetDeleteRecordContent(string p_strInPatientID,
                                                string p_strInPatientDate,
                                                string p_strOpenRecordTime,
                                                out clsGestationMisbirthsthreeRelationVO p_objRecordContent)
        {
            p_objRecordContent = null;
            iCareData.clsBaseCaseHistoryInfo objRecordContent = null;

            clsGestationMisbirthsthreeRelationVOService objServ =
                (clsGestationMisbirthsthreeRelationVOService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsGestationMisbirthsthreeRelationVOService));

            long m_lngRes = 0;

            try
            {
                m_lngRes           = objServ.m_lngGetDeleteRecordContent(clsLoginContext.s_ObjLoginContext.m_ObjPrincial, p_strInPatientID, p_strInPatientDate, p_strOpenRecordTime, out objRecordContent);
                p_objRecordContent = (clsGestationMisbirthsthreeRelationVO)objRecordContent;
            }
            finally
            {
                //objServ.Dispose();
            }
            return(m_lngRes);
        }