Example #1
0
        //////////////////////////////////////////////////
        //値取得用フォーマット                          //
        //////////////////////////////////////////////////
        public string Showminiform(string strHumanNo)
        {
            //変数定義
            CTPASSCHANGE frmSearch = new CTPASSCHANGE();

            frmSearch.strPublicHumanNo = strHumanNo;
            frmSearch.ShowDialog();
            frmSearch.strReciveValue = txtNewPass.Text.Trim();
            return(strReciveValue);
        }
Example #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);
            }
        }