예제 #1
0
 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 { }
 }
예제 #2
0
 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 { }
 }
예제 #3
0
 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 { }
 }
예제 #4
0
 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 { }
 }