Beispiel #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;
 }
Beispiel #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);
 }
 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;
 }
Beispiel #4
0
 public Entities.SelectAll BanBuon()
 {
     temp                 = new Entities.SelectAll();
     temp.GoiHang         = GoiHang();
     temp.ChiTietGoiHang  = ChiTietGoiHang();
     temp.QuyDoiDonViTinh = QuyDoiDonViTinh();
     return(temp);
 }
Beispiel #5
0
 public Entities.SelectAll BanBuon()
 {
     temp = new Entities.SelectAll();
     temp.GoiHang = GoiHang();
     temp.ChiTietGoiHang = ChiTietGoiHang();
     temp.QuyDoiDonViTinh = QuyDoiDonViTinh();
     return temp;
 }
Beispiel #6
0
 public Entities.SelectAll frmBCXuatHangTheoTungKho(string makho)
 {
     temp                = new Entities.SelectAll();
     temp.GoiHang        = GoiHang();
     temp.ChiTietGoiHang = ChiTietGoiHang();
     temp.HangHoaTheoKho = HangHoaTheoKho(makho);
     return(temp);
 }
Beispiel #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);
 }
Beispiel #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);
 }
Beispiel #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);
 }
Beispiel #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);
 }
Beispiel #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;
 }
Beispiel #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);
 }
Beispiel #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);
 }
 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;
 }
Beispiel #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);
 }
 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;
 }
Beispiel #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);
 }
Beispiel #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;
 }
Beispiel #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;
 }
Beispiel #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);
 }
Beispiel #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;
 }
 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;
 }
 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;
 }
Beispiel #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;
     }
 }
 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();
 }
 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();
 }
Beispiel #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);
 }
Beispiel #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!"); }
        }
Beispiel #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;
 }
Beispiel #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;
 }
 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;
 }
Beispiel #32
0
 public Entities.SelectAll frmBCXuatHangTheoTungKho(string makho)
 {
     temp = new Entities.SelectAll();
     temp.GoiHang = GoiHang();
     temp.ChiTietGoiHang = ChiTietGoiHang();
     temp.HangHoaTheoKho = HangHoaTheoKho(makho);
     return temp;
 }
Beispiel #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!"); }
        }
Beispiel #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>();
 }
 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;
 }
 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();
 }
Beispiel #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;
 }
Beispiel #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;
 }
Beispiel #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;
 }
Beispiel #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;
     }
 }
Beispiel #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();
        }
 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();
 }
 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;
 }
 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;
 }
 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;
 }
Beispiel #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;
 }