Пример #1
0
        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"));
        }
Пример #2
0
        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"));
        }
Пример #3
0
 public void CopyProvider(VBus b)
 {
     daoNguyenLieu.Copy(b.Provider);
 }
Пример #4
0
 public void CopyProvider(VBus b)
 {
     daoNhaCungCap.Copy(b.Provider);
 }
Пример #5
0
 public void CopyProvider(VBus b)
 {
     daoNhaCungCap.Copy(b.Provider);
 }
Пример #6
0
 public void CopyProvider(VBus b)
 {
     daoNguyenLieu.Copy(b.Provider);
 }
Пример #7
0
 public void CopyProvider(VBus b)
 {
     daoChiTietNCC.Copy(b.Provider);
 }
Пример #8
0
 public void CopyProvider(VBus b)
 {
     daoChiTietNCC.Copy(b.Provider);
 }
Пример #9
0
 public void CopyProvider(VBus b)
 {
     daoDatHang.Copy(b.Provider);
 }
Пример #10
0
 public void CopyProvider(VBus b)
 {
     daoDatHang.Copy(b.Provider);
 }