Beispiel #1
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 #2
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);
            }
        }