Example #1
0
        /// <summary>
        /// 产品详细信息
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>

        public ProductDetailsResp GetProductDetails(ProductDetailsReq model)
        {
            try
            {
                string methodName = "getProductDetails";
                model.customkey = Customkey;
                string             strJson   = SerializerHelper.ToJson(model);
                string             sign      = UtilityHelper.Utils.MD5(VI + strJson);
                string             url       = URLBaseMoFang + methodName + ".html?sign=" + sign;
                string             retrunStr = UtilityHelper.HttpService.GetHttpWebResponseByRestSharp(url, strJson);
                ProductDetailsResp outModel  = new ProductDetailsResp();
                outModel = SerializerHelper.FromJsonTo <ProductDetailsResp>(retrunStr);
                if (outModel.respstat != "0000")
                {
                    ReceivedLog(model.transNo, "GetProductDetails", outModel.respmsg);
                }
                return(outModel);
            }
            catch (Exception ex)
            {
                ExceptionLogBLL.WriteExceptionLogToDB(ex.ToString());

                return(null);
            }
        }
Example #2
0
        public void ProductDetails()
        {
            BaoxianDataBLL    baoxianDataBLL = new BaoxianDataBLL();
            ProductDetailsReq model          = new ProductDetailsReq();

            model.transNo = UtilityHelper.CommonHelper.OrderNoOne();
            //model.customkey = "bowangjishi";
            model.caseCode = "0001077178502139";
            var res = baoxianDataBLL.GetProductDetails(model);
        }
Example #3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            BaoxianDataBLL bll = new BaoxianDataBLL();

            if (!Page.IsPostBack)
            {
                productId = DNTRequest.GetInt("productId", 0);
                //caseCode = UtilityHelper.BWJSCommonHelper.SafeString(Request["caseCode"], "0001077178502139");
                caseCode = DNTRequest.GetString("caseCode");
                if (!string.IsNullOrWhiteSpace(caseCode))
                {
                    try
                    {
                        ProductDetailsReq req = new ProductDetailsReq();

                        transNo      = req.transNo = UtilityHelper.CommonHelper.OrderNoOne();
                        req.caseCode = caseCode;


                        detailModel = bll.GetProductDetails(req);
                        if (detailModel == null)
                        {
                            detailModel = new ProductDetailsResp();
                        }
                    }
                    catch
                    { }
                    switch (caseCode)
                    {
                    case "0001077178502139":
                        isGotoNoticeInsurance = true;
                        isJBBERestrictGenes   = true;  //JBBE 有基本保额,首字母
                        break;

                    case "0001077178602140":
                        isGotoNoticeInsurance = true;
                        isJBBERestrictGenes   = true;  //JBBE 有基本保额,首字母
                        break;

                    case "0000052178002133":        //“账户保”个人账户资金安全险
                        isJBBERestrictGenes = true; //JBBE 有基本保额,首字母
                        break;

                    case "0001076209802609":          //一起慧99-百万医疗保险 无门诊计划
                        isGotoNoticeInsurance = true;
                        isYQHWMZRestrictGenes = true; //YQHWMZ 一起慧无门诊首字母
                        isJBBERestrictGenes   = true; //JBBE 有基本保额,首字母
                        break;

                    case "0001076211102627":          //一起慧99-百万医疗保险 无门诊计划
                        isGotoNoticeInsurance = true;
                        isYQHWMZRestrictGenes = true; //YQHWMZ 一起慧无门诊首字母
                        isJBBERestrictGenes   = true; //JBBE 有基本保额,首字母
                        break;

                    case "0001075190802342":    //少儿住院宝
                        isGotoNoticeInsurance = true;
                        break;
                    }
                }
                else
                {
                    Response.Redirect("/Product/Index.aspx?wd=0");
                }
            }
        }