public UnitOfWork(QuanLyPhongMachEntities context) { this.context = context; Nhanviens = new NhanVienRepository(context); Thuocs = new ThuocRepository(context); VaiTroes = new VaiTroRepository(context); PhieuKhams = new PhieuKhamRepository(context); BenhNhans = new BenhNhanRepository(context); Benhs = new BenhRepository(context); ChiTietBenhs = new ChiTietBenhRepository(context); ChiTietDonThuocs = new ChiTietDonThuocRepository(context); DonThuocs = new DonThuocRepository(context); BaoCaos = new BaoCaoRepository(context); }
public static string ThongKe() { return(BenhNhanRepository.ThongKe()); }
public static bool XoaBenhNhan(string mabn) { return(BenhNhanRepository.XoaBenhNhan(mabn)); }
public static bool SuaThongTinBenhNhan(BenhNhan benhnhan) { return(BenhNhanRepository.SuaThongTinBenhNhan(benhnhan)); }
public static List <BenhNhan> ShowBenhNhan(string mabn) { return(BenhNhanRepository.ShowBenhNhanFromDB(mabn)); }
public static List <BenhNhan> ShowAllBenhNhan() { return(BenhNhanRepository.ShowAllBenhNhanFromDB()); }
public static string AddBenhNhan(BenhNhan benhnhan) { return(BenhNhanRepository.AddBenhNhanToDB(benhnhan)); }