예제 #1
0
        //

        void NewDieuXe()
        {
            DieuXe DX = new DieuXe(dGxe.CurrentRow.Cells[1].Value.ToString(), "Chờ", 0, Int16.Parse(dGKeHoach.CurrentRow.Cells[0].Value.ToString()), thuccho, 0, 0, 0, 0, ngaydi, ngayve);

            DieuXe.addDieuxe();
            dgNhomXe.DataSource = DieuXe.HienthiDieuxe(dGKeHoach.CurrentRow.Cells[0].Value.ToString());
            DonHang._addSoLuongXe(DieuXe.Madon);
            DonHang._updateKLuongConlai(DieuXe.Madon, klcl - thuccho);
            dGKeHoach.DataSource = DonHang.hienthi("Chờ");
            dGxe.DataSource      = Xe.HienThiDSTDieuXe(ngaydi);
        }
 private void dgDonHang_CellClick(object sender, DataGridViewCellEventArgs e)
 {
     dgDieuXe.DataSource = DieuXe.HienthiDieuxe(dgKhachHang.CurrentRow.Cells[0].Value.ToString());
 }