Exemplo n.º 1
0
 public void LayChiTietHoaDonNhap()
 {
     Entities.ChiTietHoaDonNhap[] ctHDN1 = new Entities.ChiTietHoaDonNhap[0];
     ctHDN1 = new BizLogic.ChiTietHoaDonNhap().Select();
     if (ctHDN1 == null)
     {
         ctHDN = new Entities.ChiTietHoaDonNhap[0];
         return;
     }
     else
     {
         ctHDN = ctHDN1;
     }
 }
Exemplo n.º 2
0
 public void LayChiTietHoaDonNhap()
 {
     Entities.ChiTietHoaDonNhap[] ctHDN1 = new Entities.ChiTietHoaDonNhap[0];
     ctHDN1 = new BizLogic.ChiTietHoaDonNhap().Select();
     if (ctHDN1 == null)
     {
         ctHDN = new Entities.ChiTietHoaDonNhap[0];
         return;
     }
     else
         ctHDN = ctHDN1;
 }
Exemplo n.º 3
0
 private void XuLy_ChiTietHoaDonNhap(NetworkStream clientStream)
 {
     Entities.ChiTietHoaDonNhap[] ddh = (Entities.ChiTietHoaDonNhap[])formatter.Deserialize(clientStream);
     switch (ddh[0].Hanhdong)
     {
         case "Insert":
             {
                 int i = new BizLogic.ChiTietHoaDonNhap().LuuLai(ddh);
                 formatter.Serialize(clientStream, i);
                 break;
             }
         case "Select":
             {
                 Entities.ChiTietHoaDonNhap[] hdn = (Entities.ChiTietHoaDonNhap[])new BizLogic.ChiTietHoaDonNhap().sp_LayBang_ChiTietHoaDonNhap();
                 formatter.Serialize(clientStream, hdn);
                 break;
             }
         default:
             break;
     }
 }