Ejemplo n.º 1
0
        /// <summary>
        /// 创建新用户
        /// </summary>
        /// <param name="userSelfInfo">密码和在职状态会被覆盖</param>
        /// <returns></returns>
        public bool CreateNewEmployee(InfoUserSelf userSelfInfo)
        {
            bool IsSuccess = false;

            userSelfInfo.UserPassword = md5tool.GetMD5("123123");
            userSelfInfo.UserStatus   = "在职";
            userData.CreateEmployee(userSelfInfo);
            IsSuccess = true;
            return(IsSuccess);
        }