public void LayCTKHTL() { try { Entities.ChiTietKhachHangTraLai[] HDN = new Entities.ChiTietKhachHangTraLai[0]; HDN = new BizLogic.ChiTietKhachHangTraLai().Select(); if (HDN == null) { CTKHTL = new Entities.ChiTietKhachHangTraLai[0]; return; } CTKHTL = HDN; } catch { } }
public void LayCTKHTL() { try { Entities.ChiTietKhachHangTraLai[] HDN = new Entities.ChiTietKhachHangTraLai[0]; HDN = new BizLogic.ChiTietKhachHangTraLai().Select(); if (HDN == null) { CTKHTL = new Entities.ChiTietKhachHangTraLai[0]; return; } CTKHTL = HDN; } catch { } }
private void XuLy_ChiTietKhachHangTraLai(NetworkStream clientStream) { Entities.ChiTietKhachHangTraLai[] ddh = (Entities.ChiTietKhachHangTraLai[])formatter.Deserialize(clientStream); switch (ddh[0].Hanhdong) { case "Insert": { int i = new BizLogic.ChiTietKhachHangTraLai().LuuLai(ddh); formatter.Serialize(clientStream, i); break; } case "Select": { Entities.ChiTietKhachHangTraLai[] ctk = new BizLogic.ChiTietKhachHangTraLai().sp_LayBang_ChiTietKhachHangTraLai(); formatter.Serialize(clientStream, ctk); break; } default: break; } }