Beispiel #1
0
        //////////////////////////////////////////////////
        //変更前チェック処理                            //
        //////////////////////////////////////////////////
        private Boolean Check_Main()
        {
            //変数定義
            CheckClass CheckClass = new CheckClass();

            //現在のパスワードが合っているか確認
            if (false == CheckClass.Check_Password(strPublicHumanNo, txtCurrentPass.Text.Trim()))
            {
                MessageBox.Show("入力した現パスワードが正しくありません。 \r\n確認してください。", "エラー", MessageBoxButtons.OK, MessageBoxIcon.Warning); return(false);
            }

            //新パスワードが空欄でないか確認する
            if (txtNewPass.Text.Trim() == "")
            {
                MessageBox.Show("新パスワードが空白です。 \r\n確認してください。", "エラー", MessageBoxButtons.OK, MessageBoxIcon.Warning); return(false);
            }

            //新しいパスワードの両方に差異が無いか確認する
            if (txtNewPass.Text.Trim() != txtNewPass2.Text.Trim())
            {
                MessageBox.Show("新パスワードに差異があります。 \r\n確認してください。", "エラー", MessageBoxButtons.OK, MessageBoxIcon.Warning); return(false);
            }

            //問題なければ、TRUEを返す
            return(true);
        }
Beispiel #2
0
        //////////////////////////////////////////////////
        //ログイン ボタン処理                           //
        //////////////////////////////////////////////////
        private void smLogin()
        {
            //変数定義
            CheckClass CheckClass = new CheckClass();
            string     strReciveValue;

            //ログインチェック
            if (true == CheckClass.Check_HumanNo(txtHumanNo.Text.Trim(), txtPassword.Text.Trim()))
            {
                //変数定義
                CTMENU frmMain = new CTMENU();
                //管理者フラグを取得
                strReciveValue = CheckClass.Get_AdminFLG(txtHumanNo.Text.Trim(), txtPassword.Text.Trim());
                //メインメニュー表示
                frmMain.Showminiform(strReciveValue);
                frmMain.Dispose();
            }
        }
Beispiel #3
0
        //////////////////////////////////////////////////
        //パスワード変更ボタン処理                      //
        //////////////////////////////////////////////////
        private void smPassChange()
        {
            //変数定義
            CheckClass CheckClass = new CheckClass();

            //パスワード変更前にログインIDのチェック
            if (true == CheckClass.Check_HumanNo(txtHumanNo.Text.Trim(), txtPassword.Text.Trim()))
            {
                //変数定義
                CTPASSCHANGE CTPASSCHANGE = new CTPASSCHANGE();
                //ログインIDを準備
                string strReciveValue = txtHumanNo.Text.Trim();
                CTPASSCHANGE.Showminiform(strReciveValue);
                CTPASSCHANGE.Dispose();
            }
            else
            {
                MessageBox.Show("ログインIDかパスワードが誤っています。 \r\n確認してください。", "エラー", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }
        }