Exemple #1
0
 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);
 }
Exemple #2
0
 public static string ThongKe()
 {
     return(BenhNhanRepository.ThongKe());
 }
Exemple #3
0
 public static bool XoaBenhNhan(string mabn)
 {
     return(BenhNhanRepository.XoaBenhNhan(mabn));
 }
Exemple #4
0
 public static bool SuaThongTinBenhNhan(BenhNhan benhnhan)
 {
     return(BenhNhanRepository.SuaThongTinBenhNhan(benhnhan));
 }
Exemple #5
0
 public static List <BenhNhan> ShowBenhNhan(string mabn)
 {
     return(BenhNhanRepository.ShowBenhNhanFromDB(mabn));
 }
Exemple #6
0
 public static List <BenhNhan> ShowAllBenhNhan()
 {
     return(BenhNhanRepository.ShowAllBenhNhanFromDB());
 }
Exemple #7
0
 public static string AddBenhNhan(BenhNhan benhnhan)
 {
     return(BenhNhanRepository.AddBenhNhanToDB(benhnhan));
 }