Exemplo n.º 1
0
        public bool DeleteUser(int userID)
        {
            bool flag = false;

            try {
                Model.T_UsersInfo_MDL userMDL = userBLL.GetModel(userID);
                if (userMDL != null && !userMDL.IsSuperAdmin)
                {
                    userBLL.Delete(userID);

                    PublicModel.writeLog(SystemSet.EumLogType.DelData.ToString(), string.Concat("T_UsersInfo;key=", userMDL.UserID,
                                                                                                ";CompanyID=", userMDL.CompanyID, ";UserName="******";LoginName=", userMDL.LoginName, ";删除档案馆用户"));
                    flag = true;
                }
            } catch (Exception ex) {
                Common.LogUtil.Debug(this, "档案馆用户删除失败", ex);
            }
            return(flag);
        }