示例#1
0
 protected void DeleteButton_Click(object sender, EventArgs e)
 {
     CheckAdminPower("DeleteUserGrade", PowerCheckType.Single);
     string[] ids = RequestHelper.GetIntsForm("SelectID").Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries);
     if (ids.Length > 0)
     {
         UserGradeBLL.Delete(Array.ConvertAll <string, int>(ids, k => Convert.ToInt32(k)));
         AdminLogBLL.Add(ShopLanguage.ReadLanguage("DeleteRecord"), ShopLanguage.ReadLanguage("UserGrade"), string.Join(",", ids));
         ScriptHelper.Alert(ShopLanguage.ReadLanguage("DeleteOK"), RequestHelper.RawUrl);
     }
 }