//判断当前用户是否是管理员 private bool IsSystemUser() { bool isadmin = false; //系统管理员 string strsql = "Groupno='SystemManage' and Userid='" + MIS.UserNumber + "'"; IList list = SysService.GetList("SelectSmugroupByWhere", strsql); if (list.Count > 0) { isadmin = true; } return(isadmin); }