示例#1
0
        private void btn_check_Click(object sender, EventArgs e)
        {
            DataTable tb = applicationConfiguration.EXECUTE_PROCE(@"SELECT   [fldEmployeeID]
                                                                  ,[fldFirstName]
                                                                  ,[fldLastName]
                                                                  ,[fldGroupID]
                                                                  ,[fldSex]
                                                                  ,[fldBirth]
                                                                  ,[fldImage]
                                                              FROM [tblEmployee] where fldEmployeeID=" + txt_check.Text);

            if (tb != null && tb.Rows.Count > 0)

            {
                if (MessageBox.Show("Employee Found in Company. Are you sure Timekeeping?", "Alert", MessageBoxButtons.YesNo) == DialogResult.Yes)
                {
                    frmTimekeeping diemdanh = new frmTimekeeping(applicationConfiguration);
                    diemdanh.Show();
                    this.Hide();
                }
            }
            else
            {
                MessageBox.Show("Employee " + txt_check.Text + " not found!", "Alert", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }
示例#2
0
        private void btExit_Click(object sender, EventArgs e)
        {
            this.Close();
            frmTimekeeping tkp = new frmTimekeeping(applicationConfiguration);

            tkp.Show();
        }
示例#3
0
        private void button2_Click(object sender, EventArgs e)
        {
            frmTimekeeping diemdanh = new frmTimekeeping(applicationConfiguration);

            diemdanh.Show();
            diemdanh.FormClosed += new FormClosedEventHandler(diemdanh_FormClosed);
            this.Hide();
        }
示例#4
0
        private void button1_Click(object sender, EventArgs e)
        {
            DialogResult dr;

            dr = MessageBox.Show("Do You Want Exit Program ?", "Yes", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
            if (dr == DialogResult.Yes)
            {
                frmTimekeeping tkp = new frmTimekeeping(applicationConfiguration);
                tkp.Show();
                this.Close();
            }
            else
            {
            }
        }
示例#5
0
        private void button3_Click(object sender, EventArgs e)
        {
            frmTimekeeping diemdanh = new frmTimekeeping(applicationConfiguration);

            diemdanh.Show();
        }