Example #1
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);
        }
Example #2
0
        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();
                }
            }
        }