Esempio n. 1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        IDAL.IAuthor ia = BllFactory.BllAccess.CreateIAuthorBLL();

        string userID = Request["ids"].ToString();

        userID = userID.Remove(userID.Length - 1, 1); //移掉最后一个逗号

        string[] uidstring = userID.Split(',');
        int[]    UserSID   = new int[uidstring.Length];

        for (int i = 0; i < UserSID.Length; i++)
        {
            UserSID[i] = Convert.ToInt32(uidstring[i]);
        }

        int count = ia.AuthorCheckYes(UserSID);

        if (count > 0)
        {
            Response.Write("{success:true,msg:'操作成功'}");
        }
        else
        {
            Response.Write("{success:false,msg:'操作失败'}");
        }
    }
Esempio n. 2
0
 //作者审核通过
 public int AuthorCheckYes(int userId)
 {
     return(IA.AuthorCheckYes(userId));
 }