예제 #1
0
        /// <summary>
        /// 「接続テスト」ボタン押下時処理
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnCheckPass_Click(object sender, EventArgs e)
        {
            txtCheck.Text = "";
            JRDBMember Member = new JRDBMember();
            Member.UserID = txtUserID.Text;
            Member.PassWord = mtxtPassWord.Text;
            JRDBConnect con = new JRDBConnect();

            if (con.IsMemCheck(Member))
            {
                txtCheck.Text = "接続成功!";
            }
            else
            {
                txtCheck.Text = "接続失敗・・・";
            }
        }
예제 #2
0
        /// <summary>
        /// 「日付取得」ボタン押下時処理
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnSetDates_Click(object sender, EventArgs e)
        {
            settings = settings.ReadTmarkXML(Application.StartupPath);
            JRDBMember jrdbMem = new JRDBMember();
            jrdbMem.UserID = settings.UserID;
            jrdbMem.PassWord = settings.PassWord;

            JRDBConnect con = new JRDBConnect();

            if (con.IsMemCheck(jrdbMem))
            {
                lstDates = con.getDataDates(jrdbMem);
                for(int i = 0; i < lstDates.Count; i++)
                {
                    this.cmbStartDate.Items.Add(lstDates[i]);
                    this.cmbEndDate.Items.Add(lstDates[i]);
                }
                this.btnGetMarks.Enabled = true;
            }
            else
            {
                MessageBox.Show("JRDBのユーザーID、パスワードを設定してください。");
            }
        }