Ejemplo n.º 1
0
 void SelectData()
 {
     Server_Client.Client cl = new Server_Client.Client();
     this.client1 = cl.Connect(Luu.IP, Luu.Ports);
     Entities.CheckRefer ctxh = new Entities.CheckRefer("BCXuatNhapTonNhomHang", new Common.Utilities().CaiDatKho("View", "", "").Giatritruyen);
     clientstrem            = cl.SerializeObj(this.client1, "Select", ctxh);
     selectall              = (Entities.SelectAll)cl.DeserializeHepper(clientstrem, selectall);
     phieuxuathuy           = selectall.PhieuXuatHuy;
     chitietxuathuy         = selectall.ChiTietXuatHuy;
     hdbanhang              = selectall.HDBanHang;
     chitiethdbanhang       = selectall.ChiTietHDBanHang;
     tralaincc              = selectall.TraLaiNCC;
     chitiettralaincc       = selectall.ChiTietTraLaiNhaCungCap;
     hoadonnhap             = selectall.HoaDonNhap;
     chitiethoadonnhap      = selectall.ChiTietHoaDonNhap;
     khachhangtralai        = selectall.KhachHangTraLai;
     chitietkhachhangtralai = selectall.ChiTietKhachHangTraLai;
     tralaincc              = selectall.TraLaiNCC;
     chitiettralaincc       = selectall.ChiTietTraLaiNhaCungCap;
     hanghoa        = selectall.HangHoa;
     nhomhang       = selectall.NhomHang;
     khohang        = selectall.KhoHang;
     sodukho        = selectall.SoDuKho;
     goihang        = selectall.GoiHang;
     chitietgoihang = selectall.ChiTietGoiHang;
 }
Ejemplo n.º 2
0
 public Entities.SelectAll TimKiemChungTu()
 {
     temp = new Entities.SelectAll();
     temp.PhieuXuatHuy              = new BizLogic.CheckRefer().PhieuXuatHuy();
     temp.ChiTietXuatHuy            = new BizLogic.CheckRefer().ChiTietXuatHuy();
     temp.HDBanHang                 = new BizLogic.CheckRefer().HDBanHang();
     temp.ChiTietHDBanHang          = new BizLogic.CheckRefer().ChiTietHDBanHang();
     temp.ChiTietTraLaiNhaCungCap   = new BizLogic.CheckRefer().ChiTietTraLaiNCC();
     temp.HoaDonNhap                = new BizLogic.CheckRefer().HoaDonNhap();
     temp.ChiTietHoaDonNhap         = new BizLogic.CheckRefer().ChiTietHoaDonNhap();
     temp.KhachHangTraLai           = new BizLogic.CheckRefer().KhachHangTraLai();
     temp.ChiTietKhachHangTraLai    = new BizLogic.CheckRefer().ChiTietKhachHangTraLai();
     temp.PhieuDieuChuyenKhoNoiBo   = new BizLogic.CheckRefer().PhieuDieuChuyenKhoNoiBo();
     temp.ChiTietPhieuDieuChuyenKho = new BizLogic.CheckRefer().ChiTietPhieuDieuChuyenKho();
     temp.PhieuThu                = new BizLogic.CheckRefer().PhieuThu();
     temp.PhieuTTCuaKH            = new BizLogic.CheckRefer().PhieuTTCuaKH();
     temp.ChiTietPhieuTTCuaKH     = new BizLogic.CheckRefer().ChiTietPhieuTTCuaKH();
     temp.PhieuTTNCC              = new BizLogic.CheckRefer().PhieuTTNCC();
     temp.ChiTietPhieuTTNCC       = new BizLogic.CheckRefer().ChiTietPhieuTTNCC();
     temp.HangHoa                 = new BizLogic.CheckRefer().HangHoa();
     temp.NhomHang                = new BizLogic.CheckRefer().NhomHang();
     temp.TraLaiNCC               = new BizLogic.CheckRefer().TraLaiNCC();
     temp.ChiTietTraLaiNhaCungCap = new BizLogic.CheckRefer().ChiTietTraLaiNCC();
     return(temp);
 }
Ejemplo n.º 3
0
 void SelectData()
 {
     Server_Client.Client cl = new Server_Client.Client();
     this.client1 = cl.Connect(Luu.IP, Luu.Ports);
     Entities.CheckRefer ctxh = new Entities.CheckRefer("TimKiemChungTu");
     clientstrem               = cl.SerializeObj(this.client1, "Select", ctxh);
     selectall                 = (Entities.SelectAll)cl.DeserializeHepper(clientstrem, selectall);
     phieuxuathuy              = selectall.PhieuXuatHuy;
     chitietxuathuy            = selectall.ChiTietXuatHuy;
     hdbanhang                 = selectall.HDBanHang;
     chitiethdbanhang          = selectall.ChiTietHDBanHang;
     tralaincc                 = selectall.TraLaiNCC;
     chitiettralaincc          = selectall.ChiTietTraLaiNhaCungCap;
     hoadonnhap                = selectall.HoaDonNhap;
     chitiethoadonnhap         = selectall.ChiTietHoaDonNhap;
     khachhangtralai           = selectall.KhachHangTraLai;
     chitietkhachhangtralai    = selectall.ChiTietKhachHangTraLai;
     phieudieuchuyenkhonoibo   = selectall.PhieuDieuChuyenKhoNoiBo;
     chitietphieudieuchuyenkho = selectall.ChiTietPhieuDieuChuyenKho;
     phieuthu            = selectall.PhieuThu;
     phieuttcuakh        = selectall.PhieuTTCuaKH;
     chitietphieuttcuakh = selectall.ChiTietPhieuTTCuaKH;
     phieuttncc          = selectall.PhieuTTNCC;
     chitietphieuttncc   = selectall.ChiTietPhieuTTNCC;
     hanghoa             = selectall.HangHoa;
     nhomhang            = selectall.NhomHang;
     tralaincc           = selectall.TraLaiNCC;
     chitiettralaincc    = selectall.ChiTietTraLaiNhaCungCap;
 }
Ejemplo n.º 4
0
 public Entities.SelectAll BanBuon()
 {
     temp                 = new Entities.SelectAll();
     temp.GoiHang         = GoiHang();
     temp.ChiTietGoiHang  = ChiTietGoiHang();
     temp.QuyDoiDonViTinh = QuyDoiDonViTinh();
     return(temp);
 }
Ejemplo n.º 5
0
 public Entities.SelectAll BanBuon()
 {
     temp = new Entities.SelectAll();
     temp.GoiHang = GoiHang();
     temp.ChiTietGoiHang = ChiTietGoiHang();
     temp.QuyDoiDonViTinh = QuyDoiDonViTinh();
     return temp;
 }
Ejemplo n.º 6
0
 public Entities.SelectAll frmBCXuatHangTheoTungKho(string makho)
 {
     temp                = new Entities.SelectAll();
     temp.GoiHang        = GoiHang();
     temp.ChiTietGoiHang = ChiTietGoiHang();
     temp.HangHoaTheoKho = HangHoaTheoKho(makho);
     return(temp);
 }
Ejemplo n.º 7
0
 public Entities.SelectAll BCXuatHuyHangHoa(string makho)
 {
     temp = new Entities.SelectAll();
     temp.HangHoaTheoKho = HangHoaTheoKho(makho);
     temp.PhieuXuatHuy   = new CheckRefer().PhieuXuatHuy();
     temp.ChiTietXuatHuy = new CheckRefer().ChiTietXuatHuy();
     temp.Thue           = new CheckRefer().Thue();
     return(temp);
 }
Ejemplo n.º 8
0
 public Entities.SelectAll BCTraLaiNCC(string makho)
 {
     temp = new Entities.SelectAll();
     temp.HangHoaTheoKho          = HangHoaTheoKho(makho);
     temp.TraLaiNCC               = new CheckRefer().TraLaiNCC();
     temp.ChiTietTraLaiNhaCungCap = new CheckRefer().ChiTietTraLaiNCC();
     temp.Thue = new CheckRefer().Thue();
     return(temp);
 }
Ejemplo n.º 9
0
 public Entities.SelectAll BCThue(string makho)
 {
     temp = new Entities.SelectAll();
     temp.HangHoaTheoKho   = HangHoaTheoKho(makho);
     temp.Thue             = Thue();
     temp.HDBanHang        = HDBanHang();
     temp.ChiTietHDBanHang = ChiTietHDBanHang();
     return(temp);
 }
Ejemplo n.º 10
0
 public Entities.SelectAll frmBCXuatHangTheoNhomHang(string makho)
 {
     temp                = new Entities.SelectAll();
     temp.GoiHang        = GoiHang();
     temp.ChiTietGoiHang = ChiTietGoiHang();
     temp.HangHoa        = new CheckRefer().HangHoa();
     temp.NhomHang       = new CheckRefer().NhomHang();
     return(temp);
 }
Ejemplo n.º 11
0
 public Entities.SelectAll BCKhachHangTraHang(string makho)
 {
     temp = new Entities.SelectAll();
     temp.HangHoaTheoKho = HangHoaTheoKho(makho);
     temp.KhachHangTraLai = new CheckRefer().KhachHangTraLai();
     temp.ChiTietKhachHangTraLai = new CheckRefer().ChiTietKhachHangTraLai();
     temp.Thue = new CheckRefer().Thue();
     temp.HDBanHang = HDBanHang();
     return temp;
 }
Ejemplo n.º 12
0
 public Entities.SelectAll BCKhachHangTraHang(string makho)
 {
     temp = new Entities.SelectAll();
     temp.HangHoaTheoKho         = HangHoaTheoKho(makho);
     temp.KhachHangTraLai        = new CheckRefer().KhachHangTraLai();
     temp.ChiTietKhachHangTraLai = new CheckRefer().ChiTietKhachHangTraLai();
     temp.Thue      = new CheckRefer().Thue();
     temp.HDBanHang = HDBanHang();
     return(temp);
 }
Ejemplo n.º 13
0
 public Entities.SelectAll SoQuy()
 {
     temp                 = new Entities.SelectAll();
     temp.SoDuSoQuy       = new CheckRefer().SoDuSoQuy();
     temp.PhieuThu        = new CheckRefer().PhieuThu();
     temp.HDBanHang       = new CheckRefer().HDBanHang();
     temp.HoaDonNhap      = new CheckRefer().HoaDonNhap();
     temp.KhachHangTraLai = new CheckRefer().KhachHangTraLai();
     temp.TraLaiNCC       = new CheckRefer().TraLaiNCC();
     return(temp);
 }
Ejemplo n.º 14
0
 void SelectData()
 {
     Server_Client.Client cl = new Server_Client.Client();
     this.client1 = cl.Connect(Luu.IP, Luu.Ports);
     Entities.CheckRefer ctxh = new Entities.CheckRefer("BCXuatHuyHangHoa", new Common.Utilities().CaiDatKho("View", "", "").Giatritruyen);
     clientstrem         = cl.SerializeObj(this.client1, "Select", ctxh);
     selectall           = (Entities.SelectAll)cl.DeserializeHepper(clientstrem, selectall);
     hanghoa             = selectall.HangHoaTheoKho;
     phieuxuathuy        = selectall.PhieuXuatHuy;
     chitietphieuxuathuy = selectall.ChiTietXuatHuy;
 }
Ejemplo n.º 15
0
 public Entities.SelectAll BCCongNoKhachHang()
 {
     temp                     = new Entities.SelectAll();
     temp.KhachHang           = KhachHang();
     temp.PhieuTTCuaKH        = PhieuTTCuaKH();
     temp.ChiTietPhieuTTCuaKH = ChiTietPhieuTTCuaKH();
     temp.HDBanHang           = HDBanHang();
     temp.KhachHangTraLai     = KhachHangTraLai();
     temp.SoDuCongNo          = SoDuCongNo();
     temp.PhieuThu            = PhieuThuChi();
     return(temp);
 }
Ejemplo n.º 16
0
 void SelectData()
 {
     Server_Client.Client cl = new Server_Client.Client();
     this.client1 = cl.Connect(Luu.IP, Luu.Ports);
     Entities.CheckRefer ctxh = new Entities.CheckRefer("BCTraLaiNCC", new Common.Utilities().CaiDatKho("View", "", "").Giatritruyen);
     clientstrem      = cl.SerializeObj(this.client1, "Select", ctxh);
     selectall        = (Entities.SelectAll)cl.DeserializeHepper(clientstrem, selectall);
     tralaincc        = selectall.TraLaiNCC;
     chitiettralaincc = selectall.ChiTietTraLaiNhaCungCap;
     thue             = selectall.Thue;
     hanghoa          = selectall.HangHoaTheoKho;
 }
Ejemplo n.º 17
0
 public Entities.SelectAll BCCongNoNhaCungCap()
 {
     temp                   = new Entities.SelectAll();
     temp.SoDuCongNo        = SoDuCongNo();
     temp.NhaCungCap        = NhaCungCap();
     temp.PhieuTTNCC        = PhieuTTNCC();
     temp.ChiTietPhieuTTNCC = ChiTietPhieuTTNCC();
     temp.HoaDonNhap        = HoaDonNhap();
     temp.TraLaiNCC         = TraLaiNCC();
     temp.PhieuThu          = PhieuThuChi();
     return(temp);
 }
Ejemplo n.º 18
0
 public Entities.SelectAll BCCongNoKhachHang()
 {
     temp = new Entities.SelectAll();
     temp.KhachHang = KhachHang();
     temp.PhieuTTCuaKH = PhieuTTCuaKH();
     temp.ChiTietPhieuTTCuaKH = ChiTietPhieuTTCuaKH();
     temp.HDBanHang = HDBanHang();
     temp.KhachHangTraLai = KhachHangTraLai();
     temp.SoDuCongNo = SoDuCongNo();
     temp.PhieuThu = PhieuThuChi();
     return temp;
 }
Ejemplo n.º 19
0
 public Entities.SelectAll BCCongNoNhaCungCap()
 {
     temp = new Entities.SelectAll();
     temp.SoDuCongNo = SoDuCongNo();
     temp.NhaCungCap = NhaCungCap();
     temp.PhieuTTNCC = PhieuTTNCC();
     temp.ChiTietPhieuTTNCC = ChiTietPhieuTTNCC();
     temp.HoaDonNhap = HoaDonNhap();
     temp.TraLaiNCC = TraLaiNCC();
     temp.PhieuThu = PhieuThuChi();
     return temp;
 }
Ejemplo n.º 20
0
 public Entities.SelectAll BCDoanhThuMatHang(string makho)
 {
     temp                  = new Entities.SelectAll();
     temp.GoiHang          = GoiHang();
     temp.ChiTietGoiHang   = ChiTietGoiHang();
     temp.HDBanHang        = new CheckRefer().HDBanHang();
     temp.ChiTietHDBanHang = new CheckRefer().ChiTietHDBanHang();
     temp.HangHoaTheoKho   = HangHoaTheoKho(makho);
     temp.NhomHang         = new CheckRefer().NhomHang();
     temp.Thue             = new CheckRefer().Thue();
     return(temp);
 }
Ejemplo n.º 21
0
 public Entities.SelectAll BCDoanhThuNhomHang(string makho)
 {
     temp = new Entities.SelectAll();
     temp.GoiHang = GoiHang();
     temp.ChiTietGoiHang = ChiTietGoiHang();
     temp.HDBanHang = new CheckRefer().HDBanHang();
     temp.ChiTietHDBanHang = new CheckRefer().ChiTietHDBanHang();
     temp.HangHoaTheoKho = HangHoaTheoKho(makho);
     temp.NhomHang = new CheckRefer().NhomHang();
     temp.Thue = new CheckRefer().Thue();
     return temp;
 }
Ejemplo n.º 22
0
 void SelectData()
 {
     Server_Client.Client cl = new Server_Client.Client();
     this.client1 = cl.Connect(Luu.IP, Luu.Ports);
     Entities.CheckRefer ctxh = new Entities.CheckRefer("BCKhachHangTraHang", new Common.Utilities().CaiDatKho("View", "", "").Giatritruyen);
     clientstrem            = cl.SerializeObj(this.client1, "Select", ctxh);
     selectall              = (Entities.SelectAll)cl.DeserializeHepper(clientstrem, selectall);
     khachhangtralai        = selectall.KhachHangTraLai;
     chitietkhachhangtralai = selectall.ChiTietKhachHangTraLai;
     thue      = selectall.Thue;
     hanghoa   = selectall.HangHoaTheoKho;
     hdbanhang = selectall.HDBanHang;
 }
Ejemplo n.º 23
0
 void SelectAll()
 {
     cl           = new Server_Client.Client();
     this.client1 = cl.Connect(Luu.IP, Luu.Ports);
     Entities.CheckRefer ctxh = new Entities.CheckRefer("BCDoanhThuMatHang", new Common.Utilities().CaiDatKho("View", "", "").Giatritruyen);
     clientstrem      = cl.SerializeObj(this.client1, "Select", ctxh);
     selectall        = (Entities.SelectAll)cl.DeserializeHepper(clientstrem, selectall);
     goihang          = selectall.GoiHang;
     chitietgoihang   = selectall.ChiTietGoiHang;
     hdbanhang        = selectall.HDBanHang;
     chitiethdbanhang = selectall.ChiTietHDBanHang;
     nv   = selectall.HangHoaTheoKho;
     thue = selectall.Thue;
 }
Ejemplo n.º 24
0
 void SelectData()
 {
     Server_Client.Client cl = new Server_Client.Client();
     this.client1 = cl.Connect(Luu.IP, Luu.Ports);
     Entities.CheckRefer ctxh = new Entities.CheckRefer("BCThue", new Common.Utilities().CaiDatKho("View", "", "").Giatritruyen);
     clientstrem      = cl.SerializeObj(this.client1, "Select", ctxh);
     selectall        = (Entities.SelectAll)cl.DeserializeHepper(clientstrem, selectall);
     hdbanhang        = selectall.HDBanHang;
     chitiethdbanhang = selectall.ChiTietHDBanHang;
     thue             = selectall.Thue;
     hanghoa          = selectall.HangHoaTheoKho;
     if (thue.Length != 0)
     {
         cbbThue.DataSource    = thue;
         cbbThue.DisplayMember = "GiaTriThue";
         cbbThue.ValueMember   = "MaThue";
         cbbThue.SelectedIndex = -1;
     }
 }
Ejemplo n.º 25
0
 void SelectData()
 {
     Server_Client.Client cl = new Server_Client.Client();
     this.client1 = cl.Connect(Luu.IP, Luu.Ports);
     Entities.CheckRefer ctxh = new Entities.CheckRefer("BCCongNoNhaCungCap");
     clientstrem       = cl.SerializeObj(this.client1, "Select", ctxh);
     selectall         = (Entities.SelectAll)cl.DeserializeHepper(clientstrem, selectall);
     hienthi1          = selectall.SoDuCongNo;
     ncc               = selectall.NhaCungCap;
     hdn               = selectall.HoaDonNhap;
     tl                = selectall.TraLaiNCC;
     phieuttncc        = selectall.PhieuTTNCC;
     chitietphieuttncc = selectall.ChiTietPhieuTTNCC;
     phieuThuChi       = selectall.PhieuThu;
     SelectNhaCungCap();
     SelectNhapKho();
     SelectTLNCC();
     SelectPhieuTTNCC();
     SelectChiTietPhieuTTNCC();
     SelectSoDuCongNo();
 }
Ejemplo n.º 26
0
 void SelectData()
 {
     Server_Client.Client cl = new Server_Client.Client();
     this.client1 = cl.Connect(Luu.IP, Luu.Ports);
     Entities.CheckRefer ctxh = new Entities.CheckRefer("BCCongNoKhachHang");
     clientstrem         = cl.SerializeObj(this.client1, "Select", ctxh);
     selectall           = (Entities.SelectAll)cl.DeserializeHepper(clientstrem, selectall);
     kh                  = selectall.KhachHang;
     bb                  = selectall.HDBanHang;
     soducongno          = selectall.SoDuCongNo;
     khtl                = selectall.KhachHangTraLai;
     phieuttcuakh        = selectall.PhieuTTCuaKH;
     chitietphieuttcuakh = selectall.ChiTietPhieuTTCuaKH;
     phieuThuChi         = selectall.PhieuThu;
     SelectKhachHang();
     SelectKHTL();
     SelectBanBuonLe();
     SelectPhieuTTCuaKH();
     SelectChiTietPhieuTTCuaKH();
     SelectSoDuCongNo();
 }
Ejemplo n.º 27
0
 public Entities.SelectAll BCXuatNhapTonNhomHang(string makho)
 {
     temp = new Entities.SelectAll();
     temp.PhieuXuatHuy            = new BizLogic.CheckRefer().PhieuXuatHuy();
     temp.ChiTietXuatHuy          = new BizLogic.CheckRefer().ChiTietXuatHuy();
     temp.HDBanHang               = new BizLogic.CheckRefer().HDBanHang();
     temp.ChiTietHDBanHang        = new BizLogic.CheckRefer().ChiTietHDBanHang();
     temp.ChiTietTraLaiNhaCungCap = new BizLogic.CheckRefer().ChiTietTraLaiNCC();
     temp.HoaDonNhap              = new BizLogic.CheckRefer().HoaDonNhap();
     temp.ChiTietHoaDonNhap       = new BizLogic.CheckRefer().ChiTietHoaDonNhap();
     temp.TraLaiNCC               = new BizLogic.CheckRefer().TraLaiNCC();
     temp.ChiTietTraLaiNhaCungCap = new BizLogic.CheckRefer().ChiTietTraLaiNCC();
     temp.KhachHangTraLai         = new BizLogic.CheckRefer().KhachHangTraLai();
     temp.ChiTietKhachHangTraLai  = new BizLogic.CheckRefer().ChiTietKhachHangTraLai();
     temp.GoiHang        = GoiHang();
     temp.ChiTietGoiHang = ChiTietGoiHang();
     temp.HangHoa        = HangHoaTheoKho(makho);
     temp.NhomHang       = new BizLogic.CheckRefer().NhomHang();
     temp.KhoHang        = new BizLogic.CheckRefer().KhoHang();
     temp.SoDuKho        = new BizLogic.CheckRefer().SoDuKho();
     return(temp);
 }
Ejemplo n.º 28
0
        void SelectSoQuy()
        {
            try
            {
                cl           = new Server_Client.Client();
                this.client1 = cl.Connect(Luu.IP, Luu.Ports);
                Entities.CheckRefer ctxh = new Entities.CheckRefer("SoQuy");
                clientstrem = cl.SerializeObj(this.client1, "Select", ctxh);
                selectall   = (Entities.SelectAll)cl.DeserializeHepper(clientstrem, selectall);
                // gói hàng
                sodu = selectall.SoDuSoQuy;

                // chi tiết gói hàng
                thuchi = selectall.PhieuThu;
                if (thuchi == null)
                {
                    thuchi = pt = pc = new Entities.PhieuThu[0];
                }
                SelectPhieuThuChi();    //Chọn phiếu thu chi
                SelectPhieuThanhToan(); //Chọn phiếu thanh toán
                buonle = selectall.HDBanHang;
                if (buonle == null)
                {
                    buonle = bb = bl = new Entities.HDBanHang[0];
                    return;
                }
                SelectBanBuonLe();               //Hóa đơn bán buôn bán lẻ
                hdn = selectall.HoaDonNhap;      //Hóa đơn nhập
                kh  = selectall.KhachHangTraLai; //Khách hàng trả lại
                tl  = selectall.TraLaiNCC;       //Trả lại NCC
                SelectNhapKho();
                SelectKHTL();
                SelectTLNCC();
            }
            catch { MessageBox.Show("Có lỗi xảy ra, có thể do đường truyền mạng, xin vui lòng thử lại!"); }
        }
Ejemplo n.º 29
0
 public Entities.SelectAll BCThue(string makho)
 {
     temp = new Entities.SelectAll();
     temp.HangHoaTheoKho = HangHoaTheoKho(makho);
     temp.Thue = Thue();
     temp.HDBanHang = HDBanHang();
     temp.ChiTietHDBanHang = ChiTietHDBanHang();
     return temp;
 }
Ejemplo n.º 30
0
 public Entities.SelectAll BCTraLaiNCC(string makho)
 {
     temp = new Entities.SelectAll();
     temp.HangHoaTheoKho = HangHoaTheoKho(makho);
     temp.TraLaiNCC = new CheckRefer().TraLaiNCC();
     temp.ChiTietTraLaiNhaCungCap = new CheckRefer().ChiTietTraLaiNCC();
     temp.Thue = new CheckRefer().Thue();
     return temp;
 }
Ejemplo n.º 31
0
 void SelectAll()
 {
     cl = new Server_Client.Client();
     this.client1 = cl.Connect(Luu.IP, Luu.Ports);
     Entities.CheckRefer ctxh = new Entities.CheckRefer("BCDoanhThuMatHang", new Common.Utilities().CaiDatKho("View", "", "").Giatritruyen);
     clientstrem = cl.SerializeObj(this.client1, "Select", ctxh);
     selectall = (Entities.SelectAll)cl.DeserializeHepper(clientstrem, selectall);
     goihang = selectall.GoiHang;
     chitietgoihang = selectall.ChiTietGoiHang;
     hdbanhang = selectall.HDBanHang;
     chitiethdbanhang = selectall.ChiTietHDBanHang;
     nv = selectall.HangHoaTheoKho;
     thue = selectall.Thue;
 }
Ejemplo n.º 32
0
 public Entities.SelectAll frmBCXuatHangTheoTungKho(string makho)
 {
     temp = new Entities.SelectAll();
     temp.GoiHang = GoiHang();
     temp.ChiTietGoiHang = ChiTietGoiHang();
     temp.HangHoaTheoKho = HangHoaTheoKho(makho);
     return temp;
 }
Ejemplo n.º 33
0
        void SelectSoQuy()
        {
            try
            {
                cl = new Server_Client.Client();
                this.client1 = cl.Connect(Luu.IP, Luu.Ports);
                Entities.CheckRefer ctxh = new Entities.CheckRefer("SoQuy");
                clientstrem = cl.SerializeObj(this.client1, "Select", ctxh);
                selectall = (Entities.SelectAll)cl.DeserializeHepper(clientstrem, selectall);
                // gói hàng
                sodu = selectall.SoDuSoQuy;

                // chi tiết gói hàng
                thuchi = selectall.PhieuThu;
                if (thuchi == null)
                    thuchi = pt = pc = new Entities.PhieuThu[0];
                SelectPhieuThuChi();    //Chọn phiếu thu chi
                SelectPhieuThanhToan(); //Chọn phiếu thanh toán
                buonle = selectall.HDBanHang;
                if (buonle == null)
                {
                    buonle = bb = bl = new Entities.HDBanHang[0];
                    return;
                }
                SelectBanBuonLe();  //Hóa đơn bán buôn bán lẻ
                hdn = selectall.HoaDonNhap; //Hóa đơn nhập
                kh = selectall.KhachHangTraLai; //Khách hàng trả lại
                tl = selectall.TraLaiNCC;   //Trả lại NCC
                SelectNhapKho();
                SelectKHTL();
                SelectTLNCC();
            }
            catch { MessageBox.Show("Có lỗi xảy ra, có thể do đường truyền mạng, xin vui lòng thử lại!"); }
        }
Ejemplo n.º 34
0
 void SelectDataKH()
 {
     Server_Client.Client cl = new Server_Client.Client();
     this.client1 = cl.Connect(Luu.IP, Luu.Ports);
     Entities.CheckRefer ctxh = new Entities.CheckRefer("BCCongNoKhachHang");
     clientstrem = cl.SerializeObj(this.client1, "Select", ctxh);
     selectall = (Entities.SelectAll)cl.DeserializeHepper(clientstrem, selectall);
     kh = selectall.KhachHang;
     bb = selectall.HDBanHang;
     hienthi1 = selectall.SoDuCongNo;
     khtl = selectall.KhachHangTraLai;
     phieuttcuakh = selectall.PhieuTTCuaKH;
     chitietphieuttcuakh = selectall.ChiTietPhieuTTCuaKH;
     phieuThuChi = selectall.PhieuThu;
     SelectKhachHang();
     SelectKHTL();
     SelectPhieuTTCuaKH();
     SelectChiTietPhieuTTCuaKH();
     phieuttncc = new Entities.PhieuTTNCC[0];
     chitietphieuttncc = new Entities.ChiTietPhieuTTNCC[0];
     ncc = new Entities.NhaCungCap[0];
     hdn = new Entities.HoaDonNhap[0];
     tl = new Entities.TraLaiNCC[0];
     mangchitiet = new List<Entities.SoDuCongNo>();
 }
Ejemplo n.º 35
0
 void SelectData()
 {
     Server_Client.Client cl = new Server_Client.Client();
     this.client1 = cl.Connect(Luu.IP, Luu.Ports);
     Entities.CheckRefer ctxh = new Entities.CheckRefer("BCXuatHuyHangHoa", new Common.Utilities().CaiDatKho("View", "", "").Giatritruyen);
     clientstrem = cl.SerializeObj(this.client1, "Select", ctxh);
     selectall = (Entities.SelectAll)cl.DeserializeHepper(clientstrem, selectall);
     hanghoa = selectall.HangHoaTheoKho;
     phieuxuathuy = selectall.PhieuXuatHuy;
     chitietphieuxuathuy = selectall.ChiTietXuatHuy;
 }
Ejemplo n.º 36
0
 void SelectData()
 {
     Server_Client.Client cl = new Server_Client.Client();
     this.client1 = cl.Connect(Luu.IP, Luu.Ports);
     Entities.CheckRefer ctxh = new Entities.CheckRefer("BCCongNoKhachHang");
     clientstrem = cl.SerializeObj(this.client1, "Select", ctxh);
     selectall = (Entities.SelectAll)cl.DeserializeHepper(clientstrem, selectall);
     kh = selectall.KhachHang;
     bb = selectall.HDBanHang;
     soducongno = selectall.SoDuCongNo;
     khtl = selectall.KhachHangTraLai;
     phieuttcuakh = selectall.PhieuTTCuaKH;
     chitietphieuttcuakh = selectall.ChiTietPhieuTTCuaKH;
     phieuThuChi = selectall.PhieuThu;
     SelectKhachHang();
     SelectKHTL();
     SelectBanBuonLe();
     SelectPhieuTTCuaKH();
     SelectChiTietPhieuTTCuaKH();
     SelectSoDuCongNo();
 }
Ejemplo n.º 37
0
 public Entities.SelectAll BCXuatNhapTonNhomHang(string makho)
 {
     temp = new Entities.SelectAll();
     temp.PhieuXuatHuy = new BizLogic.CheckRefer().PhieuXuatHuy();
     temp.ChiTietXuatHuy = new BizLogic.CheckRefer().ChiTietXuatHuy();
     temp.HDBanHang = new BizLogic.CheckRefer().HDBanHang();
     temp.ChiTietHDBanHang = new BizLogic.CheckRefer().ChiTietHDBanHang();
     temp.ChiTietTraLaiNhaCungCap = new BizLogic.CheckRefer().ChiTietTraLaiNCC();
     temp.HoaDonNhap = new BizLogic.CheckRefer().HoaDonNhap();
     temp.ChiTietHoaDonNhap = new BizLogic.CheckRefer().ChiTietHoaDonNhap();
     temp.TraLaiNCC = new BizLogic.CheckRefer().TraLaiNCC();
     temp.ChiTietTraLaiNhaCungCap = new BizLogic.CheckRefer().ChiTietTraLaiNCC();
     temp.KhachHangTraLai = new BizLogic.CheckRefer().KhachHangTraLai();
     temp.ChiTietKhachHangTraLai = new BizLogic.CheckRefer().ChiTietKhachHangTraLai();
     temp.GoiHang = GoiHang();
     temp.ChiTietGoiHang = ChiTietGoiHang();
     temp.HangHoa = HangHoaTheoKho(makho);
     temp.NhomHang = new BizLogic.CheckRefer().NhomHang();
     temp.KhoHang = new BizLogic.CheckRefer().KhoHang();
     temp.SoDuKho = new BizLogic.CheckRefer().SoDuKho();
     return temp;
 }
Ejemplo n.º 38
0
 public Entities.SelectAll TimKiemChungTu()
 {
     temp = new Entities.SelectAll();
     temp.PhieuXuatHuy = new BizLogic.CheckRefer().PhieuXuatHuy();
     temp.ChiTietXuatHuy = new BizLogic.CheckRefer().ChiTietXuatHuy();
     temp.HDBanHang = new BizLogic.CheckRefer().HDBanHang();
     temp.ChiTietHDBanHang = new BizLogic.CheckRefer().ChiTietHDBanHang();
     temp.ChiTietTraLaiNhaCungCap = new BizLogic.CheckRefer().ChiTietTraLaiNCC();
     temp.HoaDonNhap = new BizLogic.CheckRefer().HoaDonNhap();
     temp.ChiTietHoaDonNhap = new BizLogic.CheckRefer().ChiTietHoaDonNhap();
     temp.KhachHangTraLai = new BizLogic.CheckRefer().KhachHangTraLai();
     temp.ChiTietKhachHangTraLai = new BizLogic.CheckRefer().ChiTietKhachHangTraLai();
     temp.PhieuDieuChuyenKhoNoiBo = new BizLogic.CheckRefer().PhieuDieuChuyenKhoNoiBo();
     temp.ChiTietPhieuDieuChuyenKho = new BizLogic.CheckRefer().ChiTietPhieuDieuChuyenKho();
     temp.PhieuThu = new BizLogic.CheckRefer().PhieuThu();
     temp.PhieuTTCuaKH = new BizLogic.CheckRefer().PhieuTTCuaKH();
     temp.ChiTietPhieuTTCuaKH = new BizLogic.CheckRefer().ChiTietPhieuTTCuaKH();
     temp.PhieuTTNCC = new BizLogic.CheckRefer().PhieuTTNCC();
     temp.ChiTietPhieuTTNCC = new BizLogic.CheckRefer().ChiTietPhieuTTNCC();
     temp.HangHoa = new BizLogic.CheckRefer().HangHoa();
     temp.NhomHang = new BizLogic.CheckRefer().NhomHang();
     temp.TraLaiNCC = new BizLogic.CheckRefer().TraLaiNCC();
     temp.ChiTietTraLaiNhaCungCap = new BizLogic.CheckRefer().ChiTietTraLaiNCC();
     return temp;
 }
Ejemplo n.º 39
0
 public Entities.SelectAll SoQuy()
 {
     temp = new Entities.SelectAll();
     temp.SoDuSoQuy = new CheckRefer().SoDuSoQuy();
     temp.PhieuThu = new CheckRefer().PhieuThu();
     temp.HDBanHang = new CheckRefer().HDBanHang();
     temp.HoaDonNhap = new CheckRefer().HoaDonNhap();
     temp.KhachHangTraLai = new CheckRefer().KhachHangTraLai();
     temp.TraLaiNCC = new CheckRefer().TraLaiNCC();
     return temp;
 }
Ejemplo n.º 40
0
 void SelectData()
 {
     Server_Client.Client cl = new Server_Client.Client();
     this.client1 = cl.Connect(Luu.IP, Luu.Ports);
     Entities.CheckRefer ctxh = new Entities.CheckRefer("BCThue", new Common.Utilities().CaiDatKho("View", "", "").Giatritruyen);
     clientstrem = cl.SerializeObj(this.client1, "Select", ctxh);
     selectall = (Entities.SelectAll)cl.DeserializeHepper(clientstrem, selectall);
     hdbanhang = selectall.HDBanHang;
     chitiethdbanhang = selectall.ChiTietHDBanHang;
     thue = selectall.Thue;
     hanghoa = selectall.HangHoaTheoKho;
     if (thue.Length != 0)
     {
         cbbThue.DataSource = thue;
         cbbThue.DisplayMember = "GiaTriThue";
         cbbThue.ValueMember = "MaThue";
         cbbThue.SelectedIndex = -1;
     }
 }
Ejemplo n.º 41
0
 public Entities.SelectAll frmBCXuatHangTheoNhomHang(string makho)
 {
     temp = new Entities.SelectAll();
     temp.GoiHang = GoiHang();
     temp.ChiTietGoiHang = ChiTietGoiHang();
     temp.HangHoa = new CheckRefer().HangHoa();
     temp.NhomHang = new CheckRefer().NhomHang();
     return temp;
 }
        void SelectSoQuy()
        {
            cl = new Server_Client.Client();
            this.client1 = cl.Connect(Luu.IP, Luu.Ports);
            Entities.CheckRefer ctxh = new Entities.CheckRefer("SoQuy");
            clientstrem = cl.SerializeObj(this.client1, "Select", ctxh);
            selectall = (Entities.SelectAll)cl.DeserializeHepper(clientstrem, selectall);
            // gói hàng
            sodu = selectall.SoDuSoQuy;

            // chi tiết gói hàng
            thuchi = selectall.PhieuThu;
            if (thuchi == null)
                thuchi = pt = pc = new Entities.PhieuThu[0];

            SelectPhieuThuChi();
            SelectPhieuThanhToan(); //Chọn phiếu thanh toán

            buonle = selectall.HDBanHang;
            if (buonle == null)
            {
                buonle = bb = bl = new Entities.HDBanHang[0];
                return;
            }
            SelectBanBuonLe();
            hdn = selectall.HoaDonNhap;
            kh = selectall.KhachHangTraLai;
            tl = selectall.TraLaiNCC;
            SelectNhapKho();
            SelectKHTL();
            SelectTLNCC();
        }
Ejemplo n.º 43
0
 void SelectData()
 {
     Server_Client.Client cl = new Server_Client.Client();
     this.client1 = cl.Connect(Luu.IP, Luu.Ports);
     Entities.CheckRefer ctxh = new Entities.CheckRefer("BCCongNoNhaCungCap");
     clientstrem = cl.SerializeObj(this.client1, "Select", ctxh);
     selectall = (Entities.SelectAll)cl.DeserializeHepper(clientstrem, selectall);
     hienthi1 = selectall.SoDuCongNo;
     ncc = selectall.NhaCungCap;
     hdn = selectall.HoaDonNhap;
     tl = selectall.TraLaiNCC;
     phieuttncc = selectall.PhieuTTNCC;
     chitietphieuttncc = selectall.ChiTietPhieuTTNCC;
     phieuThuChi = selectall.PhieuThu;
     SelectNhaCungCap();
     SelectNhapKho();
     SelectTLNCC();
     SelectPhieuTTNCC();
     SelectChiTietPhieuTTNCC();
     SelectSoDuCongNo();
 }
Ejemplo n.º 44
0
 void SelectData()
 {
     Server_Client.Client cl = new Server_Client.Client();
     this.client1 = cl.Connect(Luu.IP, Luu.Ports);
     Entities.CheckRefer ctxh = new Entities.CheckRefer("BCTraLaiNCC", new Common.Utilities().CaiDatKho("View", "", "").Giatritruyen);
     clientstrem = cl.SerializeObj(this.client1, "Select", ctxh);
     selectall = (Entities.SelectAll)cl.DeserializeHepper(clientstrem, selectall);
     tralaincc = selectall.TraLaiNCC;
     chitiettralaincc = selectall.ChiTietTraLaiNhaCungCap;
     thue = selectall.Thue;
     hanghoa = selectall.HangHoaTheoKho;
 }
 void SelectData()
 {
     Server_Client.Client cl = new Server_Client.Client();
     this.client1 = cl.Connect(Luu.IP, Luu.Ports);
     Entities.CheckRefer ctxh = new Entities.CheckRefer("BCXuatNhapTonNhomHang", new Common.Utilities().CaiDatKho("View", "", "").Giatritruyen);
     clientstrem = cl.SerializeObj(this.client1, "Select", ctxh);
     selectall = (Entities.SelectAll)cl.DeserializeHepper(clientstrem, selectall);
     phieuxuathuy = selectall.PhieuXuatHuy;
     chitietxuathuy = selectall.ChiTietXuatHuy;
     hdbanhang = selectall.HDBanHang;
     chitiethdbanhang = selectall.ChiTietHDBanHang;
     tralaincc = selectall.TraLaiNCC;
     chitiettralaincc = selectall.ChiTietTraLaiNhaCungCap;
     hoadonnhap = selectall.HoaDonNhap;
     chitiethoadonnhap = selectall.ChiTietHoaDonNhap;
     khachhangtralai = selectall.KhachHangTraLai;
     chitietkhachhangtralai = selectall.ChiTietKhachHangTraLai;
     tralaincc = selectall.TraLaiNCC;
     chitiettralaincc = selectall.ChiTietTraLaiNhaCungCap;
     hanghoa = selectall.HangHoa;
     nhomhang = selectall.NhomHang;
     khohang = selectall.KhoHang;
     sodukho = selectall.SoDuKho;
     goihang = selectall.GoiHang;
     chitietgoihang = selectall.ChiTietGoiHang;
 }
Ejemplo n.º 46
0
 void SelectData()
 {
     Server_Client.Client cl = new Server_Client.Client();
     this.client1 = cl.Connect(Luu.IP, Luu.Ports);
     Entities.CheckRefer ctxh = new Entities.CheckRefer("TimKiemChungTu");
     clientstrem = cl.SerializeObj(this.client1, "Select", ctxh);
     selectall = (Entities.SelectAll)cl.DeserializeHepper(clientstrem, selectall);
     phieuxuathuy = selectall.PhieuXuatHuy;
     chitietxuathuy = selectall.ChiTietXuatHuy;
     hdbanhang = selectall.HDBanHang;
     chitiethdbanhang = selectall.ChiTietHDBanHang;
     tralaincc = selectall.TraLaiNCC;
     chitiettralaincc = selectall.ChiTietTraLaiNhaCungCap;
     hoadonnhap = selectall.HoaDonNhap;
     chitiethoadonnhap = selectall.ChiTietHoaDonNhap;
     khachhangtralai = selectall.KhachHangTraLai;
     chitietkhachhangtralai = selectall.ChiTietKhachHangTraLai;
     phieudieuchuyenkhonoibo = selectall.PhieuDieuChuyenKhoNoiBo;
     chitietphieudieuchuyenkho = selectall.ChiTietPhieuDieuChuyenKho;
     phieuthu = selectall.PhieuThu;
     phieuttcuakh = selectall.PhieuTTCuaKH;
     chitietphieuttcuakh = selectall.ChiTietPhieuTTCuaKH;
     phieuttncc = selectall.PhieuTTNCC;
     chitietphieuttncc = selectall.ChiTietPhieuTTNCC;
     hanghoa = selectall.HangHoa;
     nhomhang = selectall.NhomHang;
     tralaincc = selectall.TraLaiNCC;
     chitiettralaincc = selectall.ChiTietTraLaiNhaCungCap;
 }
Ejemplo n.º 47
0
 void SelectData()
 {
     Server_Client.Client cl = new Server_Client.Client();
     this.client1 = cl.Connect(Luu.IP, Luu.Ports);
     Entities.CheckRefer ctxh = new Entities.CheckRefer("BCKhachHangTraHang", new Common.Utilities().CaiDatKho("View", "", "").Giatritruyen);
     clientstrem = cl.SerializeObj(this.client1, "Select", ctxh);
     selectall = (Entities.SelectAll)cl.DeserializeHepper(clientstrem, selectall);
     khachhangtralai = selectall.KhachHangTraLai;
     chitietkhachhangtralai = selectall.ChiTietKhachHangTraLai;
     thue = selectall.Thue;
     hanghoa = selectall.HangHoaTheoKho;
     hdbanhang = selectall.HDBanHang;
 }
Ejemplo n.º 48
0
 public Entities.SelectAll BCXuatHuyHangHoa(string makho)
 {
     temp = new Entities.SelectAll();
     temp.HangHoaTheoKho = HangHoaTheoKho(makho);
     temp.PhieuXuatHuy = new CheckRefer().PhieuXuatHuy();
     temp.ChiTietXuatHuy = new CheckRefer().ChiTietXuatHuy();
     temp.Thue = new CheckRefer().Thue();
     return temp;
 }