public static bool KhoiPhucLoaiMon(int maLoaiMon) { if (LoaiMonDAO.KhoiPhucLoaiMon(maLoaiMon)) { return(MonDAO.KhoiPhucMonTheoLoai(maLoaiMon)); } return(false); }
public static string LayMaMonLonNhat() { string maMonMax = MonDAO.LayMaMonLonNhat(); if (maMonMax != null) { int chuyenSo = int.Parse(maMonMax.Replace("MA", "")); return("MA" + (chuyenSo + 1).ToString("000")); } return("MA001"); }
public static DataTable LayDSMonAnBiXoa() { return(MonDAO.LayDSMonAnBiXoa()); }
public static bool KhoiPhuc(MonDTO mon) { return(MonDAO.KhoiPhuc(mon)); }
public static int LaySoLuongMonTheoLoai(int maLoaiMon) { return(MonDAO.LaySoLuongMonTheoLoai(maLoaiMon)); }
public static void UpdateRecord(MonDTO monDTO) { MonDAO.UpdateRecord(monDTO); }
public static MonDTO GetRecord(int maMon) { return(MonDAO.GetRecord(maMon)); }
public static DataTable GetTable(string tenMon) { return(MonDAO.GetTable(tenMon)); }
//Lấy DS món theo loại public static List <MonDTO> LayDSMonAnTheoLoai(string maLoai) { return(MonDAO.LayDSMonAnTheoLoai(maLoai)); }
public static List <MonDTO> LayDanhSachMon(string timKiem, bool trangThai = true) { return(MonDAO.LayDanhSachMon(timKiem, trangThai)); }
public static bool KhoiPhucMon(int maMon) { return(MonDAO.KhoiPhucMon(maMon)); }
public static bool XoaMon(int maMon) { return(MonDAO.XoaMon(maMon)); }
public static int LayMaMonMoiNhat() { return(MonDAO.LayMaMonMoiNhat()); }
public static bool XoaTatCaMonTheoLoai(int maLoaiMon) { return(MonDAO.XoaTatCaMonTheoLoai(maLoaiMon)); }
public static bool KiemTraMonLaNuocUong(int maLoaiMon) { return(MonDAO.KiemTraMonLaNuocUong(maLoaiMon)); }
//Lấy tên món ăn public static string LayTenMonAn(string maMon) { return(MonDAO.LayTenMonAn(maMon)); }
public static string LayTenHinhHienTai(string maMon) { return(MonDAO.LayTenHinhHienTai(maMon)); }
//Lấy đơn giá món ăn public static int LayDonGiaMonAn(string maMon) { return(MonDAO.LayDonGiaMonAn(maMon)); }
public static DataTable GetTable() { return(MonDAO.GetTable()); }
public static bool ThemMon(MonDTO mon) { return(MonDAO.ThemMon(mon)); }
public static IList GetList() { return(MonDAO.GetList()); }
public static bool XoaMon(string maMon) { return(MonDAO.XoaMon(maMon)); }
public static void Insert(MonDTO monDTO) { MonDAO.Insert(monDTO); }
public static bool SuaMon(MonDTO mon) { return(MonDAO.SuaMon(mon)); }
public static void Delete(int maMon) { MonDAO.Delete(maMon); }
public static List <MonDTO> LayDanhSachMon(int maLoaiMon = 0, string timkiem = "", bool trangThai = true) { return(MonDAO.LayDanhSachMon(maLoaiMon, timkiem, trangThai)); }