예제 #1
0
        private void btnInsert_Click(object sender, EventArgs e)
        {
            frmThaoTacGV frmThem = new frmThaoTacGV(null, null, DateTime.Now, true, null, null, null, 1);

            frmThem.ShowDialog();
            Hienthi();
        }
예제 #2
0
파일: frmGaioVien.cs 프로젝트: seakBz/CShap
        private void btnThem_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            VGiaoVien.frmThaoTacGV frm = new frmThaoTacGV(null);
            frm.ShowDialog();
            DataTable dt = sqlHelper.Query(_Query);

            Hienthi(dt);
        }
예제 #3
0
파일: frmGaioVien.cs 프로젝트: seakBz/CShap
        private void btnSua_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            if (IDmember == null)
            {
                MessageBox.Show("No Select!!", "Thông tin", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }
            VGiaoVien.frmThaoTacGV frm = new frmThaoTacGV(IDmember);
            frm.ShowDialog();
            DataTable dt = sqlHelper.Query(_Query);

            Hienthi(dt);
        }
예제 #4
0
 private void btnUpdate_Click(object sender, EventArgs e)
 {
     if (IDmember == null)
     {
         MessageBox.Show("No Select!!", "Thông tin", MessageBoxButtons.OK, MessageBoxIcon.Error);
         return;
     }
     else
     {
         frmThaoTacGV frmSua = new frmThaoTacGV(MaGV, HoTen, NgaySinh, GioiTinh, Sdt, DiaChi, TenMon, 2);
         frmSua.ShowDialog();
         Hienthi();
     }
 }