示例#1
0
        /// <summary>
        /// 超过提交时限,获取应该提交的时间
        /// </summary>
        /// <param name="p_strRegisterID">入院登记号</param>
        /// <param name="p_strSetID">SetID</param>
        /// <param name="p_dtmMofifyDate">修改时间</param>
        /// <returns></returns>
        public long m_lngGetAboveTimeModifyDate(string p_strRegisterID, string p_strSetID, out DateTime p_dtmMofifyDate)
        {
            p_dtmMofifyDate = DateTime.MinValue;
            if (p_strRegisterID == null || p_strRegisterID == string.Empty ||
                p_strSetID == null || p_strSetID == string.Empty)
            {
                return(-1);
            }
            long lngRes = 0;

            try
            {
                clsPublicMiddleTier objMid =
                    (clsPublicMiddleTier)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsPublicMiddleTier));

                string strReturn = "";
                lngRes = objMid.m_lngGetConfigBySettingID(p_strSetID, out strReturn);

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

                DateTime dtOut = new DateTime(1900, 1, 1);
                lngRes = objServ.m_lngGetOutHospitalDate(p_strRegisterID, out dtOut);

                if (strReturn != "" && dtOut != new DateTime(1900, 1, 1))
                {
                    p_dtmMofifyDate = dtOut.AddHours(double.Parse(strReturn));
                }
            }
            catch
            {
                return(-1);
            }
            return(lngRes);
        }
        /// <summary>
        /// 获取病人出院时间,暂时先在各个窗体查询
        /// </summary>
        /// <returns></returns>
        private long m_mthGetSetlectedOutDate(out DateTime m_dtmOutHospitalDate)
        {
            m_dtmOutHospitalDate = new DateTime(1900, 1, 1);
            string strRegisterID             = "";
            long   lngRes                    = 0;
            clsPatientManagerService objServ =
                (clsPatientManagerService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsPatientManagerService));


            lngRes = objServ.m_lngGetRegisterIDByPatient(m_objPrintInfo.m_strInPatentID, m_objPrintInfo.m_dtmHISInDate.ToString("yyyy-MM-dd HH:mm:ss"), out strRegisterID);

            lngRes  = objServ.m_lngGetOutHospitalDate(strRegisterID, out m_dtmOutHospitalDate);
            objServ = null;
            return(lngRes);
        }
示例#3
0
        //protected override string m_StrRecorder_ID
        //{
        //    get
        //    {
        //        if (m_txtDoctorSign.Tag != null)
        //            return ((clsEmrEmployeeBase_VO)m_txtDoctorSign.Tag).m_strEMPNO_CHR.Trim();
        //        return "";
        //    }
        //}
        #endregion 属性

        /// <summary>
        /// 获取病人出院时间,暂时先在各个窗体查询
        /// </summary>
        /// <returns></returns>
        private long m_mthGetSetlectedOutDate()
        {
            m_dtmOutHospitalDate = new DateTime(1900, 1, 1);
            string strRegisterID             = "";
            long   lngRes                    = 0;
            clsPatientManagerService objServ =
                (clsPatientManagerService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsPatientManagerService));


            //lngRes = objServ.m_lngGetRegisterIDByPatient(m_objCurrentPatient.m_StrPatientID, m_objCurrentPatient.m_DtmSelectedHISInDate.ToString("yyyy-MM-dd HH:mm:ss"), out strRegisterID);

            lngRes = objServ.m_lngGetOutHospitalDate(MDIParent.m_objCurrentPatient.m_strREGISTERID_CHR, out m_dtmOutHospitalDate);

            if (m_dtmOutHospitalDate == DateTime.MinValue || m_dtmOutHospitalDate == new DateTime(1900, 1, 1))
            {
                lngRes = objServ.m_lngGetPrepOutHospitalDate(strRegisterID, out m_dtmOutHospitalDate);
            }
            objServ = null;
            return(lngRes);
        }