コード例 #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_srv, string id_mm, Ent4BannerDTO patinfo)
        {
            if (string.IsNullOrEmpty(id_srv) || 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.getBdHpIndicationDTO(id_srv, id_mm, contextdto);

            if (bdhpindic != null)
            {
                BdHpIndicationDTO bdHpIndication = new BdHpIndicationDTO();
                LogicEx.GetInstance().CopyTo(bdhpindic, bdHpIndication);
                return(bdHpIndication);
            }
            else
            {
                return(null);
            }
        }