Esempio n. 1
0
        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/html";
            string username  = context.Request["username"];
            string statecode = context.Request["statecode"];

            string state = new BLL.UserManage().select_statecode(statecode);

            if (state == "超级管理员" && username != null)
            {
                if (new BLL.UserManage().delete(username))
                {
                    context.Response.Write("删除成功!");
                }
            }
        }
Esempio n. 2
0
        private void btnLogin_Click(object sender, EventArgs e)
        {
            Entity.UserInfo user = new Entity.UserInfo();
            user.UserName = txtUserName.Text.Trim();
            user.Pwd      = txtPwd.Text.Trim();
            BLL.UserManage um     = new BLL.UserManage();
            bool           result = um.JudgeUser(user);

            if (result == true)
            {
                MessageBox.Show("登录成功!");
            }
            else
            {
                MessageBox.Show("登录失败!");
            }
        }
        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/html";
            string statecode = context.Request["statecode"];
            string username  = context.Request["username"];
            string stateget  = context.Request["stateget"];

            string state = new BLL.UserManage().select_statecode(statecode);

            if (state == "超级管理员" && username != null && stateget != null)
            {
                if (new BLL.UserManage().modify_account(username, stateget))
                {
                    context.Response.Write("修改成功");
                }
            }
            else
            {
                context.Response.Write("修改失败");
            }
        }