private void txtPASWD_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter && !TextboxRequireCheck(txtPASWD, "パスワード")) { logininfo.CompanyCode = mopeData.KAICD = txtKAICD.Text.ToString(); logininfo.OperatorCode = mopeData.TANCD = txtTANCD.Text.ToString(); DataTable dt = loginbl.MOPE_SELECT(mopeData); if (dt.Rows.Count > 0) { mopeData.PASWD = dt.Rows[0][0].ToString(); mopeData.KNGCD = dt.Rows[0][1].ToString(); mopeData.MNUCD = dt.Rows[0][2].ToString(); logininfo.StoreCode = mopeData.TMPCD = dt.Rows[0][4].ToString(); logininfo.DepCode = mopeData.BMNCD = dt.Rows[0][5].ToString(); } if (mopeData.PASWD != string.Empty && mopeData.PASWD == txtPASWD.Text.ToString()) { bnF12.Enabled = true; //btnChange.Enabled = true; ////PanelFunction.Focus(); functionKeypress(12); } else { // btnF12.Enabled = false; bnF1.Enabled = false; com.DSP_MSG("E001", string.Empty, string.Empty, string.Empty, string.Empty, string.Empty).Equals("1"); } } bnF1.Enabled = true; //int d = Convert.ToInt32("ds"); }