Exemplo n.º 1
0
 /// <summary>
 /// 添加管理员
 /// </summary>
 /// <param name="id"></param>
 /// <param name="name"></param>
 /// <param name="department"></param>
 /// <param name="major"></param>
 /// <returns></returns>
 public bool Addadmin(string id, string name, string pwd, string role)
 {
     if (!string.IsNullOrEmpty(id) && !string.IsNullOrEmpty(name) && !string.IsNullOrEmpty(pwd) && !string.IsNullOrEmpty(role))
     {
         if (std.Addadmin(id, name, pwd, role))
         {
             return(true);
         }
         else
         {
             return(false);
         }
     }
     else
     {
         MessageBox.Show("请完善信息");
         return(false);
     }
 }