// lấy danh sách chờ xét nghiệm public string GetListHoSoKhamByPhong(string MaPhong, out List <HoSoBenhAnDTO> listHoSoBenhAn) { // lấy xét nghiệm dựa vào phòng XetNghiemBUS xetNghiemBUS = new XetNghiemBUS(); HoSoBenhAnBUS hoSoBenhAnBUS = new HoSoBenhAnBUS(); XetNghiemDTO xetNghiemDTO = new XetNghiemDTO(); using (QLPHONGKHAMEntities db = new QLPHONGKHAMEntities()) { if (xetNghiemBUS.GetXetNghiemByPhong(db, MaPhong, ref xetNghiemDTO) == Constant.RES_FAI) { listHoSoBenhAn = new List <HoSoBenhAnDTO>(); return(Constant.RES_FAI); } if (hoSoBenhAnBUS.GetListHoSoXN(db, xetNghiemDTO.MaXetNghiem, out listHoSoBenhAn) == Constant.RES_FAI) { listHoSoBenhAn = new List <HoSoBenhAnDTO>(); return(Constant.RES_FAI); } } return(Constant.RES_SUC); }