Ejemplo n.º 1
0
 //批量删除
 protected void btnDelete_Click(object sender, EventArgs e)
 {
     ChkAdminLevel("sys_goods_spec", DTEnums.ActionEnum.Delete.ToString()); //检查权限
     BLL.article_spec bll = new BLL.article_spec();
     for (int i = 0; i < rptList.Items.Count; i++)
     {
         int      id = Convert.ToInt32(((HiddenField)rptList.Items[i].FindControl("hidId")).Value);
         CheckBox cb = (CheckBox)rptList.Items[i].FindControl("chkId");
         if (cb.Checked)
         {
             bll.Delete(id);
         }
     }
     AddAdminLog(DTEnums.ActionEnum.Delete.ToString(), "删除商品规格"); //记录日志
     JscriptMsg("删除规格成功!", Utils.CombUrlTxt("spec_list.aspx", "keywords={0}", this.keywords));
 }
Ejemplo n.º 2
0
 //批量删除
 protected void btnDelete_Click(object sender, EventArgs e)
 {
     ChkAdminLevel("sys_goods_spec", DTEnums.ActionEnum.Delete.ToString()); //检查权限
     BLL.article_spec bll = new BLL.article_spec();
     for (int i = 0; i < rptList.Items.Count; i++)
     {
         int id = Convert.ToInt32(((HiddenField)rptList.Items[i].FindControl("hidId")).Value);
         CheckBox cb = (CheckBox)rptList.Items[i].FindControl("chkId");
         if (cb.Checked)
         {
             bll.Delete(id);
         }
     }
     AddAdminLog(DTEnums.ActionEnum.Delete.ToString(), "删除商品规格"); //记录日志
     JscriptMsg("删除规格成功!", Utils.CombUrlTxt("spec_list.aspx", "keywords={0}", this.keywords));
 }