/// <summary>
        /// 统计收费员工作量统计报表发票数(按姓名分组,如果收费员同名则补准,暂时与主报表一致稍后需要同一更改) @@@@@
        /// </summary>
        /// <param name="BeginDate"></param>
        /// <param name="EndDate"></param>
        /// <param name="dt"></param>
        /// <returns></returns>
        public long m_lngGetCheckinvoicenums(string BeginDate, string EndDate, out DataTable dt)
        {
            com.digitalwave.iCare.middletier.HIS.clsWaitDiagListManageSvc objSvc =
                (com.digitalwave.iCare.middletier.HIS.clsWaitDiagListManageSvc)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.iCare.middletier.HIS.clsWaitDiagListManageSvc));
            long lngRes = objSvc.m_lngGetCheckinvoicenums(BeginDate, EndDate, out dt);

            objSvc.Dispose();
            return(lngRes);
        }
        public long m_mthGetSingleWorkLoad(string strID, DateTime strBeginDate, DateTime strEndDate, int flag, out clsSingleWorkLoadSubItem_VO[] objSubArr)
        {
            objSubArr = null;
            com.digitalwave.iCare.middletier.HIS.clsWaitDiagListManageSvc objSvc =
                (com.digitalwave.iCare.middletier.HIS.clsWaitDiagListManageSvc)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.iCare.middletier.HIS.clsWaitDiagListManageSvc));
            long lngRes = objSvc.m_mthGetSingleWorkLoad(strID, strBeginDate, strEndDate, flag, out objSubArr);

            objSvc.Dispose();
            return(lngRes);
        }
        public long m_mthGetDocByDepID(string ID, out DataTable p_dt)
        {
            p_dt = null;
            com.digitalwave.iCare.middletier.HIS.clsWaitDiagListManageSvc objSvc =
                (com.digitalwave.iCare.middletier.HIS.clsWaitDiagListManageSvc)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.iCare.middletier.HIS.clsWaitDiagListManageSvc));
            long lngRes = objSvc.m_mthGetDocByDepID(objPrincipal, ID, out p_dt);

            objSvc.Dispose();
            return(lngRes);
        }
        public long m_mthGetUsingMedicine(int Flag, out DataTable dt, string strID, DateTime date, DateTime date2, string strEx)
        {
            dt = null;
            com.digitalwave.iCare.middletier.HIS.clsWaitDiagListManageSvc objSvc =
                (com.digitalwave.iCare.middletier.HIS.clsWaitDiagListManageSvc)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.iCare.middletier.HIS.clsWaitDiagListManageSvc));
            long lngRes = objSvc.m_mthGetUsingMedicine(Flag, out dt, strID, date, date2, strEx);

            objSvc.Dispose();
            return(lngRes);
        }
        public long m_mthReportColumns(out DataTable dt, string strEx)
        {
            dt = null;
            com.digitalwave.iCare.middletier.HIS.clsWaitDiagListManageSvc objSvc =
                (com.digitalwave.iCare.middletier.HIS.clsWaitDiagListManageSvc)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.iCare.middletier.HIS.clsWaitDiagListManageSvc));
            long lngRes = objSvc.m_mthReportColumns(out dt, strEx);

            objSvc.Dispose();
            return(lngRes);
        }
        /// <summary>
        /// 根据结帐时间统计专业组->医生就诊人数
        /// </summary>
        /// <param name="BeginDate"></param>
        /// <param name="EndDate"></param>
        /// <param name="dt"></param>
        /// <returns></returns>
        public long m_lngGetSeeDoctorPersonNums(string BeginDate, string EndDate, int intflag, out DataTable dt)
        {
            dt = null;
            com.digitalwave.iCare.middletier.HIS.clsWaitDiagListManageSvc objSvc =
                (com.digitalwave.iCare.middletier.HIS.clsWaitDiagListManageSvc)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.iCare.middletier.HIS.clsWaitDiagListManageSvc));
            long lngRes = objSvc.m_lngGetSeeDoctorPersonNums(BeginDate, EndDate, intflag, out dt);

            objSvc.Dispose();
            return(lngRes);
        }
        /// <summary>
        /// 统计收费员工作量报表
        /// </summary>
        /// <param name="strBeginDate"></param>
        /// <param name="strEndDate"></param>
        /// <param name="objSubArr"></param>
        /// <returns></returns>
        public long m_mthGetCheckManWorkLoad(DateTime strBeginDate, DateTime strEndDate, out DataTable dt)
        {
            com.digitalwave.iCare.middletier.HIS.clsWaitDiagListManageSvc objSvc =
                (com.digitalwave.iCare.middletier.HIS.clsWaitDiagListManageSvc)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.iCare.middletier.HIS.clsWaitDiagListManageSvc));

            long lngRes = objSvc.m_mthGetCheckManWorkLoad(strBeginDate, strEndDate, out dt);

            objSvc.Dispose();
            return(lngRes);
        }
        /// <summary>
        /// 根据员工ID和日期获取正方数和副方数
        /// </summary>
        /// <param name="m_strID"></param>
        /// <param name="m_strBeginDate"></param>
        /// <param name="m_strEndDate"></param>
        /// <param name="m_objTable"></param>
        /// <returns></returns>
        public long m_lngGetRecipeCountByIDAndDate(string m_strID, DateTime m_strBeginDate, DateTime m_strEndDate, out DataTable m_objTable)
        {
            long lngRes = -1;

            com.digitalwave.iCare.middletier.HIS.clsWaitDiagListManageSvc objSvc =
                (com.digitalwave.iCare.middletier.HIS.clsWaitDiagListManageSvc)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.iCare.middletier.HIS.clsWaitDiagListManageSvc));
            lngRes = objSvc.m_lngGetRecipeCountByIDAndDate(objPrincipal, m_strID, m_strBeginDate, m_strEndDate, out m_objTable);
            objSvc.Dispose();
            return(lngRes);
        }