示例#1
0
        /// <summary>
        /// 获取健康告知题目
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public HealthNotifyQuesResp GetHealthNotifyQues(HealthNotifyQuesReq model)
        {
            try
            {
                string methodName = "getHealthNotifyQues";
                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);
                HealthNotifyQuesResp outModel = new HealthNotifyQuesResp();
                outModel = SerializerHelper.FromJsonTo <HealthNotifyQuesResp>(retrunStr);
                if (outModel.respstat != "0000")
                {
                    ReceivedLog(model.transNo, "GetHealthNotifyQues", outModel.respmsg);
                }
                return(outModel);
            }
            catch (Exception ex)
            {
                ExceptionLogBLL.WriteExceptionLogToDB(ex.ToString());

                return(null);
            }
        }
示例#2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            BaoxianDataBLL      bll = new BaoxianDataBLL();
            HealthNotifyQuesReq req = new HealthNotifyQuesReq();

            TransNo  = UtilityHelper.BWJSCommonHelper.SafeString(Request["transNo"], "");
            CaseCode = UtilityHelper.BWJSCommonHelper.SafeString(Request["CaseCode"], "");

            priceArgsId = UtilityHelper.BWJSCommonHelper.SafeString(Request["priceArgsId"], "");
            price       = UtilityHelper.BWJSCommonHelper.SafeString(Request["price"], "");
            SinglePrice = UtilityHelper.BWJSCommonHelper.SafeString(Request["SinglePrice"], "");
            buyCount    = UtilityHelper.BWJSCommonHelper.SafeString(Request["buyCount"], "");
            //strPriceArgs = UtilityHelper.BWJSCommonHelper.SafeString(Request["priceArgs"], "");
            protectitemid         = UtilityHelper.BWJSCommonHelper.SafeString(Request["protectitemid"], "");
            insurantDateLimitVal  = BWJSCommonHelper.SafeString(Request["hdinsurantDateLimitVal"], "");  //承保值
            insurantDateLimitUnit = BWJSCommonHelper.SafeString(Request["hdinsurantDateLimitUnit"], ""); //承保单位
            req.priceArgsId       = priceArgsId;
            req.transNo           = TransNo;
            req.caseCode          = CaseCode;
            resp         = bll.GetHealthNotifyQues(req);
            strPriceArgs = SerializerHelper.ToJson(resp.priceArgs);
        }