public Entities.SoDuCongNo[] SoDuCongNo() { Entities.SoDuCongNo[] sodu = new BizLogic.CongNo().Select(); if (sodu == null) { sodu = new Entities.SoDuCongNo[0]; } return(sodu); }
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; } }
public Entities.SoDuCongNo[] SoDuCongNo() { Entities.SoDuCongNo[] sodu = new BizLogic.CongNo().Select(); if (sodu == null) sodu = new Entities.SoDuCongNo[0]; return sodu; }