Esempio n. 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         CheckAdminPower("ReadShipping", PowerCheckType.Single);
         string action     = RequestHelper.GetQueryString <string>("Action");
         int    shippingId = RequestHelper.GetQueryString <int>("Id");
         if (shippingId != 0 && action != string.Empty)
         {
             CheckAdminPower("UpdateShipping", PowerCheckType.Single);
             ChangeAction changeAction = ChangeAction.Up;
             if (action == "Down")
             {
                 changeAction = ChangeAction.Down;
             }
             ShippingBLL.Move(changeAction, shippingId);
             AdminLogBLL.Add(ShopLanguage.ReadLanguage("MoveRecord"), ShopLanguage.ReadLanguage("Shipping"), shippingId);
         }
         BindControl(ShippingBLL.ReadList(), RecordList);
     }
 }