Beispiel #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         if (Request.QueryString["did"] != null)
         {
             //获取优惠券列表
             Z_CRM_LOY_WELFAREResponse Discount = SelectDiscount("", Request.QueryString["did"]);
             if (Discount.ET_LOY_WELFARE.Length > 0)
             {
                 DiscountName  = Discount.ET_LOY_WELFARE[0].ZCPTYPET;
                 DiscountMs    = Discount.ET_LOY_WELFARE[0].ZCPMS;
                 DiscountStore = GetStoreName(Discount.ET_LOY_WELFARE[0].ZCPSTORE);
                 DiscountPrice = Discount.ET_LOY_WELFARE[0].ZCPVALUE.ToString("0");
                 DiscountTime  = Discount.ET_LOY_WELFARE[0].ZCPEND;
                 DiscoutnNo    = Discount.ET_LOY_WELFARE[0].ZCPIDO;
                 COUPON_INFO info = mss.GetDiscountCode(DiscoutnNo);
                 if (info != null)
                 {
                     Qcode = info.QR_CODE;
                 }
             }
             ;
         }
     }
 }