Ejemplo n.º 1
0
        public static bool updata(string name, string newname, string lou, int lei)
        {
            int b = TablesDAL.updata(name, newname, lou, lei);

            if (b >= 1)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Ejemplo n.º 2
0
        public static bool database(string id)
        {
            int b = TablesDAL.database(id);

            if (b >= 1)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Ejemplo n.º 3
0
        public static bool insert(string name, string qu, int lei)
        {
            int b = TablesDAL.insert(name, qu, lei);

            if (b >= 1)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Ejemplo n.º 4
0
 public static List <Tables> selectall()
 {
     return(TablesDAL.selectall());
 }
Ejemplo n.º 5
0
 /// <summary>
 /// 查询剩余的桌子数
 /// </summary>
 /// <param name="RTID">房间类型</param>
 /// <returns>剩余的桌子数</returns>
 public static int GetTableCount(int RTID)
 {
     return(TablesDAL.GetTableCount(RTID));
 }
Ejemplo n.º 6
0
 public static int deletetb(TablesMDL tb)
 {
     return(TablesDAL.deletetb(tb));
 }
Ejemplo n.º 7
0
 public static int updatetb(TablesMDL tb)
 {
     return(TablesDAL.updatetb(tb));
 }
Ejemplo n.º 8
0
 public static void Update(TablesDTO employeesTypes)
 {
     TablesDAL.Update(TablesCast.ToDAL(employeesTypes));
 }
Ejemplo n.º 9
0
 public static string GetCBID(int TableID)
 {
     return(TablesDAL.GetCBID(TableID));
 }
Ejemplo n.º 10
0
 public static int UpdateTables(int TableID, int State)
 {
     return(TablesDAL.UpdateTables(TableID, State));
 }
Ejemplo n.º 11
0
 public static List <TablesMDL> selectTable(int RTID)
 {
     return(TablesDAL.selectTable(RTID));
 }
Ejemplo n.º 12
0
 public static void Add(TablesDTO employeesTypes)
 {
     TablesDAL.Add(TablesCast.ToDAL(employeesTypes));
 }
Ejemplo n.º 13
0
 public static TablesDTO GetById(int id)
 {
     return(TablesCast.ToDTO(TablesDAL.GetById(id)));
 }
Ejemplo n.º 14
0
 public static void Delete(TablesDTO employeesTypes)
 {
     TablesDAL.Delete(TablesCast.ToDAL(employeesTypes));
 }
Ejemplo n.º 15
0
 //更换餐台,可替换“1:可用”餐台
 public static List <RoomType> ChangeTable(int rtId, string tableArea)
 {
     return(TablesDAL.ChangeTable(rtId, tableArea));
 }
Ejemplo n.º 16
0
 public static List <Tables> selectid(int id)
 {
     return(TablesDAL.selectid(id));
 }
Ejemplo n.º 17
0
 //梁晨煜
 public static List <TablesMDL> getlist(RoomTypeMDL rt)
 {
     return(TablesDAL.getlist(rt));
 }
Ejemplo n.º 18
0
 public static int inserttb(TablesMDL tb)
 {
     return(TablesDAL.inserttb(tb));
 }
Ejemplo n.º 19
0
 public static List <TablesDTO> GetAll()
 {
     return(TablesCast.ListToDTO(TablesDAL.GetAll()));
 }