예제 #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="sd_srvtp"></param>
        /// <param name="strWhere"></param>
        /// <param name="isHos">数据来源</param>
        /// <returns></returns>
        public XapDataList <EmsOrSrvSc> GetSrv(string sd_srvtp, string strWhere, string code_entp)
        {
            if (service == null)
            {
                service = XapServiceMgr.find <IMedsrvMDOCrudService>();
            }
            ScResultList = new XapDataList <EmsOrSrvSc>();

            ScResultList = qryService.getEmsOrSrvSc(sd_srvtp, strWhere.ToUpper(), "", code_entp);

            return(ScResultList);

            //if (EnDictCodeConst.SD_ENTP_OUTPATIENT.Equals(code_entp))
            //{
            //    return (XapDataList<EmsOrSrvSc>)(ScResultList.Where(p => p.MedSrvDO.Fg_use_op.Value).ToArray());
            //}
            //return (XapDataList<EmsOrSrvSc>)(ScResultList.Where(p => p.MedSrvDO.Fg_use_ip.Value).ToArray());
        }