private void dgLaiPhu_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { DieuXe._updateTaiXePhu(dgLaiPhu.CurrentRow.Cells[0].Value.ToString(), dgDieuXe.CurrentRow.Cells[0].Value.ToString()); // DieuXe._HienThiTaiXe(dgDieuXe.CurrentRow.Cells[0].Value.ToString()); dgDieuXe.CurrentRow.Cells[8].Value = dgLaiPhu.CurrentRow.Cells[1].Value.ToString(); getTaiXe(); }
private void button1_Click(object sender, EventArgs e) { DieuXe._ktDieuXe(DieuXe.Madon.ToString(), txtthoigiancho.Text, txtthoigiandi.Text, txtquadem.Text); DonHang._updateTrangThai(DieuXe.Madon.ToString(), txtquangduong.Text); MessageBox.Show("Hoàn thành!!"); DieuXe._thanhtien(DieuXe.Madon.ToString()); this.Close(); }
private void dgTaiXe_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { //MessageBox.Show(dgDieuXe.CurrentRow.Cells[0].Value.ToString()); DieuXe._updateTaiXe(dgTaiXe.CurrentRow.Cells[0].Value.ToString(), dgDieuXe.CurrentRow.Cells[0].Value.ToString()); // DieuXe._HienThiTaiXe(dgDieuXe.CurrentRow.Cells[0].Value.ToString()); dgDieuXe.CurrentRow.Cells[7].Value = dgTaiXe.CurrentRow.Cells[1].Value.ToString(); getTaiXe(); }
// 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 dGKeHoach_CellClick(object sender, DataGridViewCellEventArgs e) { ngaydi = DateTime.Parse(dGKeHoach.CurrentRow.Cells[5].Value.ToString()); ngayve = ngaydi.AddHours(Int16.Parse(dGKeHoach.CurrentRow.Cells[8].Value.ToString()) * 2 / 40); lbKhachHang.Text = "Khách Hàng :"; lbMadon.Text = ""; lbKhachHang.Text += dGKeHoach.CurrentRow.Cells[1].Value.ToString(); lbMadon.Text += dGKeHoach.CurrentRow.Cells[0].Value.ToString(); dGxe.DataSource = Xe.HienThiDSTDieuXe(ngaydi); dgNhomXe.DataSource = DieuXe.DSDieuXe(dGKeHoach.CurrentRow.Cells[0].Value.ToString()); }
private void dGxe_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { klcl = float.Parse(dGKeHoach.CurrentRow.Cells[4].Value.ToString()); tt = float.Parse(dGxe.CurrentRow.Cells[0].Value.ToString()); if (klcl != 0) { if (klcl > tt) { thuccho = tt; } else { thuccho = klcl; } NewDieuXe(); dgNhomXe.DataSource = DieuXe.DSDieuXe(dGKeHoach.CurrentRow.Cells[0].Value.ToString()); } else { MessageBox.Show("Đã đủ xe vận chuyển"); } }
private void dgDonHang_CellClick(object sender, DataGridViewCellEventArgs e) { dgDieuXe.DataSource = DieuXe.HienthiDieuxe(dgKhachHang.CurrentRow.Cells[0].Value.ToString()); }
private void button1_Click(object sender, EventArgs e) { dgDieuXe.DataSource = DieuXe._HienthiDieuxe_DinhVi(); }
private void textBox5_TextChanged(object sender, EventArgs e) { dgDieuXe.DataSource = DieuXe._TKDieuxe(txtTK.Text); }
private void DinhViDonHang_Load(object sender, EventArgs e) { dgDieuXe.DataSource = DieuXe._HienthiDieuxe_DinhVi(); cbTrangThai.Text = "Đang vận chuyển"; }