public void TonKho() { try { cl = new Server_Client.Client(); this.client1 = cl.Connect(Luu.IP, Luu.Ports); Entities.BCTonKhoTheoKho ctxh = new Entities.BCTonKhoTheoKho("Select"); tonkho = new Entities.BCTonKhoTheoKho[1]; clientstrem = cl.SerializeObj(this.client1, "BCTonKhoTheoKho", ctxh); tonkho = (Entities.BCTonKhoTheoKho[])cl.DeserializeHepper1(clientstrem, tonkho); if (tonkho == null) { tonkho = new Entities.BCTonKhoTheoKho[0]; } } catch { } }
void LayChiTietKhoHang() { try { cl = new Server_Client.Client(); this.client1 = cl.Connect(Luu.IP, Luu.Ports); Entities.BCTonKhoTheoKho ctxh = new Entities.BCTonKhoTheoKho("Select"); TONKHO = new Entities.BCTonKhoTheoKho[1]; clientstrem = cl.SerializeObj(this.client1, "BCTonKhoTheoKho", ctxh); TONKHO = (Entities.BCTonKhoTheoKho[])cl.DeserializeHepper1(clientstrem, TONKHO); if (TONKHO == null) { TONKHO = new Entities.BCTonKhoTheoKho[0]; } } catch { } }
void LayChiTietKhoHang() { try { cl = new Server_Client.Client(); this.client1 = cl.Connect(Luu.IP, Luu.Ports); Entities.BCTonKhoTheoKho ctxh = new Entities.BCTonKhoTheoKho("Select"); TONKHO = new Entities.BCTonKhoTheoKho[1]; clientstrem = cl.SerializeObj(this.client1, "BCTonKhoTheoKho", ctxh); TONKHO = (Entities.BCTonKhoTheoKho[])cl.DeserializeHepper1(clientstrem, TONKHO); if (TONKHO == null) TONKHO = new Entities.BCTonKhoTheoKho[0]; } catch { } }
public void TonKho() { try { cl = new Server_Client.Client(); this.client1 = cl.Connect(Luu.IP, Luu.Ports); Entities.BCTonKhoTheoKho ctxh = new Entities.BCTonKhoTheoKho("Select"); tonkho = new Entities.BCTonKhoTheoKho[1]; clientstrem = cl.SerializeObj(this.client1, "BCTonKhoTheoKho", ctxh); tonkho = (Entities.BCTonKhoTheoKho[])cl.DeserializeHepper1(clientstrem, tonkho); if (tonkho == null) tonkho = new Entities.BCTonKhoTheoKho[0]; } catch { } }