public UCtrlTTDatHang() { InitializeComponent(); MyBus = new VBus(); busNhaCungCap = new VNhaCungCap_BUS(); busDatHang = new VDatHang_BUS(); busChiTietDatHang = new VChiTietDatHang_BUS(); busNguyenLieu = new VNguyenLieu_BUS(); lsDatHang = new List<VDatHang_DTO>(); dtDatHang = new DataTable(); dtDatHang.Columns.Add("STT", System.Type.GetType("System.Int16")); dtDatHang.Columns.Add("TenNCC", System.Type.GetType("System.String")); dtDatHang.Columns.Add("TongTien", System.Type.GetType("System.Double")); dtDatHang.Columns.Add("ThoiGianDat", System.Type.GetType("System.DateTime")); dtDatHang.Columns.Add("ThoiGianGiao", System.Type.GetType("System.DateTime")); dtDatHang.Columns.Add("TinhTrang", System.Type.GetType("System.String")); lsChiTietDH = new List<VChiTietDatHang_DTO>(); dtChiTietDH = new DataTable(); dtChiTietDH.Columns.Add("STT", System.Type.GetType("System.Int16")); dtChiTietDH.Columns.Add("TenNL", System.Type.GetType("System.String")); dtChiTietDH.Columns.Add("SoLuong", System.Type.GetType("System.Int16")); dtChiTietDH.Columns.Add("ThanhTien", System.Type.GetType("System.Double")); }
public UCtrlNhaCungCap() { busNguyenLieu = new VNguyenLieu_BUS(); busChiTietNCC = new VChiTietNCC_BUS(); busNhaCungCap = new VNhaCungCap_BUS(); Mybus = new VBus(); InitializeComponent(); lsNCC = new List<VNhaCungCap_DTO>(); dtNCC = new DataTable(); indexNCC = -1; dtNCC.Columns.Add("STT", System.Type.GetType("System.Int16")); dtNCC.Columns.Add("TenNCC", System.Type.GetType("System.String")); dtNCC.Columns.Add("sdt", System.Type.GetType("System.String")); dtNCC.Columns.Add("DiaChi", System.Type.GetType("System.String")); dtNCC.Columns.Add("DiemUuTien", System.Type.GetType("System.Int32")); dtNL = new DataTable(); indexNL = -1; dtNL.Columns.Add("STT", System.Type.GetType("System.Int16")); dtNL.Columns.Add("TenNL", System.Type.GetType("System.String")); dtNL.Columns.Add("Gia", System.Type.GetType("System.Double")); }
public void CopyProvider(VBus b) { daoNguyenLieu.Copy(b.Provider); }
public void CopyProvider(VBus b) { daoNhaCungCap.Copy(b.Provider); }
public void CopyProvider(VBus b) { daoChiTietNCC.Copy(b.Provider); }
public void CopyProvider(VBus b) { daoDatHang.Copy(b.Provider); }