/// <summary> /// 产品出行目的地 /// </summary> /// <param name="model"></param> /// <returns></returns> public ProductCXDestinationResp ProductDestinations(ProductDestinationReq model) { try { string methodName = "productDestinations"; 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); ProductCXDestinationResp outModel = new ProductCXDestinationResp(); outModel = SerializerHelper.FromJsonTo <ProductCXDestinationResp>(retrunStr); if (outModel.respstat != "0000") { ReceivedLog(model.transNo, "ProductDestinations", outModel.respmsg); } return(outModel); } catch (Exception ex) { ExceptionLogBLL.WriteExceptionLogToDB(ex.ToString()); Log.WriteLog(" " + ex); return(null); } }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { UsersBLL oUsersBLL = new UsersBLL(); MachineBLL oMachineBLL = new MachineBLL(); userId = MerchantFrontCookieBLL.GetMerchantFrontUserId(); if (userId > 0) { Machine oMachine = new Machine(); oMachine = oMachineBLL.GetModelByUserId(userId); if (oMachine != null) { MachineID = oMachine.MachineID; } } TransNo = BWJSCommonHelper.SafeString(Request["transNo"], ""); TransNo = string.IsNullOrEmpty(TransNo) ? "" : TransNo.Trim(); CaseCode = BWJSCommonHelper.SafeString(Request["CaseCode"], ""); CaseCode = string.IsNullOrEmpty(CaseCode) ? "" : CaseCode.Trim(); protectitemid = BWJSCommonHelper.SafeString(Request["protectitemid"], ""); protectitemid = string.IsNullOrEmpty(protectitemid) ? "" : protectitemid.Trim(); priceArgsId = BWJSCommonHelper.SafeString(Request["priceArgsId"], ""); priceArgsId = string.IsNullOrEmpty(priceArgsId) ? "" : priceArgsId.Trim(); price = BWJSCommonHelper.SafeString(Request["price"], ""); price = string.IsNullOrEmpty(price) ? "" : price.Trim(); SinglePrice = BWJSCommonHelper.SafeString(Request["SinglePrice"], ""); SinglePrice = string.IsNullOrEmpty(SinglePrice) ? "" : SinglePrice.Trim(); buyCount = BWJSCommonHelper.SafeString(Request["buyCount"], ""); buyCount = string.IsNullOrEmpty(buyCount) ? "" : buyCount.Trim(); healthId = BWJSCommonHelper.SafeString(Request["healthId"], ""); healthId = string.IsNullOrEmpty(healthId) ? "" : healthId.Trim(); productId = DNTRequest.GetInt("productId", 0); insurantDateLimitVal = BWJSCommonHelper.SafeString(Request["hdinsurantDateLimitVal"], ""); //承保值 insurantDateLimitUnit = BWJSCommonHelper.SafeString(Request["hdinsurantDateLimitUnit"], ""); //承保单位 CardTypeBLL oCardTypeBLL = new CardTypeBLL(); oCardTypeList = oCardTypeBLL.GetCardTypeList(CaseCode); RelationBLL oRelationBLL = new RelationBLL(); listRelationViewMode = oRelationBLL.GetRelationViewModelList(CaseCode); switch (CaseCode) { case "0000052178002133": isShowProvince = true; isoneSelf = true;//被保人必须是投保人本人 break; case "0001075211202628": isShowcaichansuozaidi = true; isShowrelatedPersonHouse = true; isoneSelf = true; break; case "0000076164701939": isluyouxianCXMDD = true; oTravelDestinationList = oTravelDestinationBLL.GetTravelDestinationList(CaseCode); ProductDestinationReq oProductDestinationReqModel = new ProductDestinationReq(); oProductDestinationReqModel.caseCode = CaseCode; oProductDestinationReqModel.transNo = TransNo; ProductCXDestinationResp oProductCXDestinationResp = oBaoxianDataBLL.ProductDestinations(oProductDestinationReqModel); CXMDDStr = GetCXMDDStr(oProductCXDestinationResp); // isShowrelatedPersonHouse = true; break; case "0000052067400588": isShowcaichansuozaidi = true; isoneSelf = true; break; case "0001077178502139": typeMen = true; break; case "0001077178602140": typeWomen = true; break; case "0001076209802609": //一起慧99-百万医疗保险 无门诊计划 isHaveJob = true; break; case "0001076211102627": //一起慧99-百万医疗保险 有门诊计划 isHaveJob = true; break; case "0001075190802342": //少儿住院宝 isOnlyOthers = true; StartDateParame = 3; // 这个产品要求(起保日期只能为投保日起第三天) break; } List <Products> oProductsList = bll.ProductsByCaseCode(CaseCode); if (oProductsList != null) { ProModel = oProductsList.FirstOrDefault(); } } }