Пример #1
0
 private void DeleteManager()
 {
     string Id = Public.FilterSql(Request.Params["Id"]);
     HD.Model.Admin user = new HD.Model.Admin();
     user.Id = Convert.ToInt32(Id);
     if (user.Delete(Id) == 1)
     {
         Response.Write("{\"returnval\":\"1\"}");
     }
     else
     {
         Response.Write("{\"returnval\":\"0\"}");
     }
     Response.End();
 }
Пример #2
0
 private void UpdateManager()
 {
     string Id = Public.FilterSql(Request.Params["Id"]);
     string UserEmail = Request.Params["UserEmail"];
     string TrueName = Request.Params["TrueName"];
     string UserTel = Request.Params["UserTel"];
     string UserUnit = Request.Params["UserUnit"];
     HD.Model.Admin user = new HD.Model.Admin();
     user.Id = Convert.ToInt32(Id);
     user.UserEmail = UserEmail;
     user.TrueName = TrueName;
     user.UserTel = UserTel;
     user.UserUnit = UserUnit;
     if (user.Update() == 1)
     {
         Response.Write("{\"returnval\":\"1\"}");
     }
     else
     {
         Response.Write("{\"returnval\":\"0\"}");
     }
     Response.End();
 }
Пример #3
0
 private void ResetManagerPass()
 {
     string Id = Public.FilterSql(Request.Params["Id"]);
     string userPass = Request.Params["UserPass"];
     HD.Model.Admin user = new HD.Model.Admin();
     user.Id = Convert.ToInt32(Id);
     user.UserPass = Encrypt.Md5(userPass);
     if (user.Update() == 1)
     {
         Response.Write("{\"returnval\":\"1\"}");
     }
     else
     {
         Response.Write("{\"returnval\":\"0\"}");
     }
     Response.End();
 }