Пример #1
0
        /// <summary>
        /// 查询医保规则
        /// </summary>
        /// <param name="id_srv"></param>
        /// <param name="id_mm"></param>
        /// <param name="patinfo"></param>
        /// <returns></returns>
        public BdHpIndicationDTO[] getBdHpIndicationDTO(string[] id_srvs, string[] id_mms, Ent4BannerDTO patinfo)
        {
            if (id_srvs == null || patinfo == null || string.IsNullOrEmpty(patinfo.Id_hp) || true != patinfo.Fg_hpfundpay)
            {
                return(null);
            }
            CiEnContextDTO   contextdto = CiEnContextUtil.GetCiEnContext(patinfo);
            ICiOrdQryService service    = XapServiceMgr.find <ICiOrdQryService>();

            BdHpIndicDTO[] bdhpindic = service.getBdHpIndicationDTOs(id_srvs, id_mms, contextdto);
            if (bdhpindic != null)
            {
                BdHpIndicationDTO[] bdHpIndications = new BdHpIndicationDTO[bdhpindic.Length];
                for (int i = 0; i < bdhpindic.Length; i++)
                {
                    BdHpIndicationDTO bdHpIndication = new BdHpIndicationDTO();
                    LogicEx.GetInstance().CopyTo(bdhpindic[i], bdHpIndication);
                    bdHpIndications[i] = bdHpIndication;
                }
                return(bdHpIndications);
            }
            else
            {
                return(null);
            }
        }