示例#1
0
        private void txtMaDeadThem_Load(object sender, EventArgs e)
        {
            TTGiaoVien max = new TTGiaoVien();
            int        x   = max.GetMaxOrderIDDEAD();

            x++;
            txtMaDeadThem.Text = Convert.ToString(x);
        }
示例#2
0
        private void GDChinhGiaoVien_Load_1(object sender, EventArgs e)
        {
            //ComboxLop_Load(sender, e);
            TTGiaoVien orders1 = new TTGiaoVien();
            DataTable  dt      = orders1.LayDSChuyeDeDuocMo();

            dataGridViewChuyenDe.DataSource = dt;
        }
示例#3
0
        private void ComboxDead_Load(object sender, EventArgs e)
        {
            TTGiaoVien orders = new TTGiaoVien();
            DataTable  dt     = orders.DeadCombobox(cbLopCapNhatDead.Text);

            dt.Columns.Add("madead", typeof(string));
            dt.Dispose();
            cbMaDead.ValueMember = "madead";
            cbMaDead.DataSource  = dt;
        }
示例#4
0
        private void ComboxLop_Load(object sender, EventArgs e)
        {
            TTGiaoVien orders = new TTGiaoVien();
            DataTable  dt     = orders.LopCombobox(IDChuyenDe);

            dt.Columns.Add("malop", typeof(string));
            dt.Dispose();
            cbLopCapNhatDead.ValueMember  = "malop";
            cbChonLopThemDead.ValueMember = "malop";
            cbLopCapNhatDead.DataSource   = dt;
            cbChonLopThemDead.DataSource  = dt;
        }
示例#5
0
        private void btnUpdateDead_Click(object sender, EventArgs e)
        {
            string   malop           = cbChonLopThemDead.Text;
            int      id              = Convert.ToInt32(cbMaDead.Text);
            string   tendead         = txtTenDead.Text;
            DateTime thoihanThemDead = Convert.ToDateTime(dtThoiHanCapNhat.Text);

            if (malop == "")
            {
                MessageBox.Show("Bạn chưa nhập đủ thông tin!");
            }
            else
            {
                TTGiaoVien addDead = new TTGiaoVien();
                addDead.UpdateDead(id, tendead, thoihanThemDead);
                MessageBox.Show("Đã Cập Nhật Deadline thành công!");
            }
        }