Пример #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!this.Page.IsPostBack)
     {
         int queryString = RequestHelper.GetQueryString <int>("ID");
         if (queryString != -2147483648)
         {
             base.CheckAdminPower("ReadShipping", PowerCheckType.Single);
             ShippingInfo info = ShippingBLL.ReadShippingCache(queryString);
             this.Name.Text         = info.Name;
             this.Description.Text  = info.Description;
             this.IsEnabled.Text    = info.IsEnabled.ToString();
             this.ShippingType.Text = info.ShippingType.ToString();
             if (info.ShippingType == 2)
             {
                 this.FirstWeight.Text = info.FirstWeight.ToString();
                 this.AgainWeight.Text = info.AgainWeight.ToString();
             }
         }
     }
 }
Пример #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!this.Page.IsPostBack)
     {
         base.CheckAdminPower("ReadShippingRegion", PowerCheckType.Single);
         this.RegionID.DataSource = RegionBLL.ReadRegionUnlimitClass();
         this.shippingID          = RequestHelper.GetQueryString <int>("ShippingID");
         this.shipping            = ShippingBLL.ReadShippingCache(this.shippingID);
         int queryString = RequestHelper.GetQueryString <int>("ID");
         if (queryString != -2147483648)
         {
             ShippingRegionInfo info = new ShippingRegionInfo();
             info                      = ShippingRegionBLL.ReadShippingRegion(queryString);
             this.Name.Text            = info.Name;
             this.RegionID.ClassIDList = info.RegionID;
             this.FixedMoeny.Text      = info.FixedMoeny.ToString();
             this.FirstMoney.Text      = info.FirstMoney.ToString();
             this.AgainMoney.Text      = info.AgainMoney.ToString();
             this.OneMoeny.Text        = info.OneMoeny.ToString();
             this.AnotherMoeny.Text    = info.AnotherMoeny.ToString();
         }
         base.BindControl(ShippingRegionBLL.ReadShippingRegionByShipping(this.shippingID.ToString()), this.RecordList);
     }
 }