Exemple #1
0
        private string InputErrorCheck()
        {
            string errorString = "";

            switch (this.cuUserPageType)
            {
            case CommonDef.CuUserPageType.New:
                errorString += ErrorController.IsNull(NewUser.Email, "Email");
                errorString += ErrorController.IsEmail(NewUser.Email, "Email");
                errorString += ErrorController.IsNull(NewUser.PUserName, "ユーザ名");
                errorString += ErrorController.IsNull(Password, "パスワード(新)");
                errorString += ErrorController.IsNull(ConfirmationPassword, "パスワード(確認用)");
                errorString += ErrorController.ConrfirmPassword(Password, ConfirmationPassword, "パスワード");
                break;

            case CommonDef.CuUserPageType.Change:
                errorString += ErrorController.IsNull(NewUser.PUserName, "ユーザ名");
                break;

            case CommonDef.CuUserPageType.ChangePassword:
                errorString += ErrorController.IsNull(OldPassword, "パスワード(旧)");
                errorString += ErrorController.IsNull(Password, "パスワード(新)");
                errorString += ErrorController.IsNull(ConfirmationPassword, "パスワード(確認用)");
                errorString += ErrorController.ConrfirmPassword(Password, ConfirmationPassword, "パスワード");
                break;

            default:
                break;
            }

            return(errorString);
        }