public void DeleteSystemUserBatch(IEnumerable <int> sysNos)
 {
     if (sysNos == null || sysNos.Count() == 0)
     {
         throw new BusinessException("请传入要批量操作的编号");
     }
     if (sysNos.Any(x => x == 1))
     {
         throw new BusinessException("传入的要批量删除的用户中含有编号为1的超级用户,不能执行删除");
     }
     SystemUserDA.DeleteSystemUserBatch(sysNos);
 }
        public void DeleteSystemUserBatch(IEnumerable <int> sysNos, string ApplicationID)
        {
            if (sysNos == null || sysNos.Count() == 0)
            {
                throw new BusinessException("请传入要批量操作的编号");
            }
            if (sysNos.Any(x => x == 1))
            {
                throw new BusinessException("传入的要批量删除的用户中含有编号为1的超级用户,不能执行删除");
            }
            int    EditUserSysNo = DataContext.GetContextItemInt("UserSysNo", 0);
            string EditUserName  = DataContext.GetContextItemString("UserDisplayName");

            SystemUserDA.DeleteSystemUserBatch(sysNos, ApplicationID, EditUserSysNo, EditUserName);
        }