Exemplo n.º 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         B_ARoleAuth.CheckEx(ZLEnum.Auth.content, "ContentMange");
         if (!string.IsNullOrEmpty(Request.QueryString["menu"]) && Request.QueryString["menu"] == "delete")
         {
             int id = DataConverter.CLng(Request.QueryString["id"]);
             bcourse.DeleteByGroupID(id);
         }
         MyBind();
         Call.SetBreadCrumb(Master, "<li><a href='" + CustomerPageAction.customPath2 + "I/Main.aspx'>工作台</a></li> <li><a href='Papers_System_Manage.aspx'>教育模块</a></li><li><a href='Papers_System_Manage.aspx'>考试管理</a></li><li>课程管理<a href='AddCoures.aspx'>[添加课程]</a></li>" + Call.GetHelp(75));
     }
 }
Exemplo n.º 2
0
 public int Course_Del(string ids)
 {
     if (!string.IsNullOrEmpty(ids))
     {
         if (ids.IndexOf(',') > -1)
         {
             string[] itemarr = ids.Split(',');
             for (int i = 0; i < itemarr.Length; i++)
             {
                 courBll.DeleteByGroupID(DataConverter.CLng(itemarr[i]));
             }
         }
         else
         {
             courBll.DeleteByGroupID(DataConverter.CLng(ids));
         }
     }
     return(Success);
 }
        // 批量删除
        protected void Button3_Click(object sender, EventArgs e)
        {
            string item = Request.Form["item"];

            if (item != null && item != "")
            {
                if (item.IndexOf(',') > -1)
                {
                    string[] itemarr = item.Split(',');
                    for (int i = 0; i < itemarr.Length; i++)
                    {
                        bcourse.DeleteByGroupID(DataConverter.CLng(itemarr[i]));
                    }
                }
                else
                {
                    bcourse.DeleteByGroupID(DataConverter.CLng(item));
                }
            }
            function.WriteSuccessMsg("操作成功!", "ExamPointManage.aspx");
        }