Esempio n. 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     this.formData = this.Page.Request["formData"].ToNullString();
     this.btnAddCountDown.Click += this.btnAddCountDown_Click;
     this.productId              = this.Page.Request["productId"].ToInt(0);
     this.SetDateControl();
     if (!this.Page.IsPostBack)
     {
         if (!this.site.OpenMultStore)
         {
             this.pnlReMark.Visible      = false;
             this.hidOpenMultStore.Value = "0";
         }
         else
         {
             this.hidOpenMultStore.Value = "1";
         }
         this.BindProduct();
         this.ShowSKUOrDefault();
         this.BindFormData();
     }
     this.filterProductIds = (this.site.OpenMultStore ? "" : PromoteHelper.GetCountDownActiveProducts());
     if (this.productId > 0 && this.filterProductIds.Length > 0)
     {
         this.filterProductIds = this.filterProductIds + "," + this.productId;
     }
     else if (this.filterProductIds.Length == 0 && this.productId > 0)
     {
         this.filterProductIds = this.productId.ToString();
     }
 }