public frm_BangGiaCuoc() { InitializeComponent(); bgc = new BangGiaCuoc(); lBgc = new List <BangGiaCuoc>(); dxp = new DiemXuatPhat(); ttb = new DMTuyenThueBao(); chaytuyen = new THUEBAO_T_ChayTuyen(); td = new TuDien_LoaiXe(); lLoaiXe = new List <TuDien_LoaiXe>(); pnTuyen2.Visible = false; pnTuyen1.Visible = false; pnTuyen3.Visible = false; lueDiemXuatPhat.Properties.DataSource = dxp.getListDiemXP(); lueDiemXuatPhat.Properties.DisplayMember = "TenDiemXuatPhat"; lueDiemXuatPhat.Properties.ValueMember = "ID"; lueChayTuyen.Properties.DataSource = new THUEBAO_T_ChayTuyen().GetAllChayTuyen(); lueChayTuyen.Properties.DisplayMember = "ChayTuyen"; lueChayTuyen.Properties.ValueMember = "Id"; lueLoaiXe.DataSource = td.GetDanhSachXe(); lueLoaiXe.DisplayMember = "TenLoaiXe"; lueLoaiXe.ValueMember = "LoaiXeID"; }
//public st//ic void LoadStaxiLoaiXe() //{ //// ListS//xiLoaiXe.Count(); //} public static void LoadTuyenDuongDai() { ListKieuTuyen = new THUEBAO_T_KIEUTUYEN().GetAll().ToList <THUEBAO_T_KIEUTUYEN>(); ListHangXe = new TuDien_LoaiXe().GetListAll(); ListTuyenDuong = new DMTuyenThueBao().GetAll().ToList <DMTuyenThueBao>(); ListDanhMucVuotGio = new VuotGioQuyDinh().GetListAll(); }
public frm_VuotGioQuyDinh() { InitializeComponent(); TuDien_LoaiXe td = new TuDien_LoaiXe(); lueXe.DataSource = td.GetDanhSachXe(); lueXe.DisplayMember = "TenLoaiXe"; lueXe.ValueMember = "LoaiXeID"; vgqd = new VuotGioQuyDinh(); }
private void LoadLoaiXeByFastTaxi() { try { DataTable data = new TuDien_LoaiXe().LayDanhSachXeTheoIDFastTaxi(LoaiXeID); if (data.Rows.Count > 0 && CuocGoi.Long_LoaiXeID.To <int>() == 0) { cboLoaiXe.EditValue = data.Rows[0]["LoaiXeID"].To <int>(); } } catch (Exception ex) { LogError.WriteLogError("LoadLoaiXeByFastTaxi: ", ex); } }
public ctrl_LoaiXe_Combobox() { InitializeComponent(); _tuDienLoaiXe = new TuDien_LoaiXe(); LoadData(); }