Beispiel #1
0
        public Boolean LoginChk(string userid, string userpwd)
        {
            try
            {
                member = new ProMember();
                //member = new OraMember();
                dataSet = member.SelectLogin(userid);

                DataTable dt = dataSet.Tables[0];

                DataRow dr = dt.Rows[0];

                if (dr["userpwd"].ToString() == userpwd)
                {
                    isLoginChk = true;
                }
                else
                {
                    isLoginChk = false;
                }
            }
            catch
            {
                txtClear();
                MessageBox.Show("아이디 또는 비밀번호가 다릅니다.", "오류", MessageBoxButtons.OK, MessageBoxIcon.Error);
                isLoginChk = false;
            }
            return(isLoginChk);
        }
Beispiel #2
0
        private void Form4_Load(object sender, EventArgs e)
        {
            member = new ProMember();
            //member = new OraMember();
            isValidIDCheck = false;

            txtId.Select();
        }
Beispiel #3
0
        private void Form2_Load(object sender, EventArgs e)
        {
            member  = new ProMember();
            subject = new ProSubject();

            //member = new OraMember();
            //subject = new OraSubject();

            DataLoad();
            SubjectLoad();
        }
Beispiel #4
0
        private void Form3_Load(object sender, EventArgs e)
        {
            member = new ProMember();
            //member = new OraMember();

            txtBirth.Select();

            dataSet = member.SelectUserInfo(UserId);

            DataTable dt = dataSet.Tables[0];

            DataRow dr = dt.Rows[0];

            this.txtName.Text   = dr["name"].ToString();
            this.txtEduNum.Text = dr["edunum"].ToString();
            this.txtBirth.Text  = dr["birth"].ToString();
            this.txtEmail.Text  = dr["email"].ToString();
            this.txtPhone.Text  = dr["phone"].ToString();
        }
Beispiel #5
0
 private void Form6_Load(object sender, EventArgs e)
 {
     member = new ProMember();
     //member = new OraMember();
 }