Ejemplo n.º 1
0
 public Entities.SoDuCongNo[] SoDuCongNo()
 {
     Entities.SoDuCongNo[] sodu = new BizLogic.CongNo().Select();
     if (sodu == null)
     {
         sodu = new Entities.SoDuCongNo[0];
     }
     return(sodu);
 }
Ejemplo n.º 2
0
        public void XuLy_CongNo(NetworkStream clientStream)
        {
            Entities.SoDuCongNo[] tkkt = (Entities.SoDuCongNo[])formatter.Deserialize(clientStream);
            // kiểm tra hành động được gửi đến
            switch (tkkt[0].HanhDong)
            {
                case "Insert":
                    {
                        bool sq = new BizLogic.CongNo().Insert(tkkt[0]);
                        formatter.Serialize(clientStream, sq);
                        break;
                    }
                case "Update":
                    {

                        break;
                    }
                case "UpdateTrangThai":
                    {
                        bool sq = new BizLogic.CongNo().Update(tkkt);
                        formatter.Serialize(clientStream, sq);
                        break;
                    }
                case "Delete":
                    {
                        bool sq = new BizLogic.CongNo().Delete(tkkt[0]);
                        formatter.Serialize(clientStream, sq);
                        break;
                    }
                case "Select":
                    {
                        Entities.SoDuCongNo[] sq = new BizLogic.CongNo().Select();
                        formatter.Serialize(clientStream, sq);
                        break;
                    }
                default:
                    break;
            }
        }
Ejemplo n.º 3
0
 public Entities.SoDuCongNo[] SoDuCongNo()
 {
     Entities.SoDuCongNo[] sodu = new BizLogic.CongNo().Select();
     if (sodu == null)
         sodu = new Entities.SoDuCongNo[0];
     return sodu;
 }