Пример #1
0
 /// <summary>
 ///
 /// </summary>
 void DoCmd()
 {
     if (!string.IsNullOrEmpty(this.cmd) && this.ItemID > 0 && this.UserId > 0)
     {
         usersIdImageInfo update = new usersIdImageInfo();
         update.id = this.ItemID;
         if (cmd == "ok")
         {
             update.status = IdImageStatus.审核成功;
         }
         if (cmd == "fail")
         {
             update.status = IdImageStatus.审核失败;
         }
         update.why       = string.Empty;
         update.checktime = DateTime.Now;
         update.admin     = this.ManageId;
         update.userId    = this.UserId;
         viviapi.BLL.User.usersIdImage bll = new viviapi.BLL.User.usersIdImage();
         if (bll.Check(update))
         {
             AlertAndRedirect("操作成功", "UserIdImgList.aspx?s=1");
         }
         else
         {
             AlertAndRedirect("操作失败");
         }
     }
 }
Пример #2
0
        protected void btnDelete_Click(object sender, EventArgs e)
        {
            string ids = Request.Form["chkItem"];

            foreach (string id in ids.Split(','))
            {
                viviapi.BLL.User.usersIdImage bll = new viviapi.BLL.User.usersIdImage();
                bll.Delete(int.Parse(id));
            }
            this.LoadData();
        }