/// <summary> /// Method to Get RoomType Entity /// </summary> /// <param name="argEn">RoomType Entity is an Input.SART_Code as Input Property.</param> /// <returns>Returns RoomType Entity</returns> public RoomTypeEn GetItem(RoomTypeEn argEn) { try { RoomTypeDAL loDs = new RoomTypeDAL(); return(loDs.GetItem(argEn)); } catch (Exception ex) { throw ex; } }
/// <summary> /// Method to Get List of RoomType by SART_Code /// </summary> /// <param name="argEn">SABK_Code as Input.</param> /// <returns>Returns List of RoomType</returns> public List <RoomTypeEn> GetRoomTypeList(string argEn) { try { RoomTypeDAL loDs = new RoomTypeDAL(); return(loDs.GetRoomTypeList(argEn)); } catch (Exception ex) { throw ex; } }
public static bool insert(string name, string shu) { int b = RoomTypeDAL.insert(name, shu); if (b >= 1) { return(true); } else { return(false); } }
public static bool database(string id) { int b = RoomTypeDAL.database(id); if (b >= 1) { return(true); } else { return(false); } }
public static bool update(string name, string id, string newname) { int b = RoomTypeDAL.update(name, id, newname); if (b >= 1) { return(true); } else { return(false); } }
/// <summary> /// Method to Insert RoomType /// </summary> /// <param name="argEn">RoomType Entity is an Input.</param> /// <returns>Returns Boolean</returns> public bool Insert(RoomTypeEn argEn) { bool flag; using (TransactionScope ts = new TransactionScope()) { try { RoomTypeDAL loDs = new RoomTypeDAL(); flag = loDs.Insert(argEn); ts.Complete(); } catch (Exception ex) { throw ex; } } return(flag); }
/// <summary> /// 分页 ///</summary> public static List <RoomType> PageSelectRoomType(int pageSize, int pageIndex, string WhereSrc, string PXzd, string PXType) { pageIndex = pageIndex - 1; return(RoomTypeDAL.PageSelectRoomType(pageSize, pageIndex, WhereSrc, PXzd, PXType)); }
/// <summary> /// 根据主键删除 ///</summary> public static int DeleteRoomType(int Id) { return(RoomTypeDAL.DeleteRoomType(Id)); }
/// <summary> /// 添加 ///</summary> public static int AddRoomType(RoomType RoomTypeModel) { return(RoomTypeDAL.AddRoomType(RoomTypeModel)); }
public override void SetDAL() { _dal = new RoomTypeDAL(); }
public static int deleteroom(RoomTypeMDL rt) { return(RoomTypeDAL.deleteroom(rt)); }
/// <summary> /// 查询条数 ///</summary> public static int CountNumber(string NewWHere) { return(RoomTypeDAL.CountNumber(NewWHere)); }
public static List <RoomTypeMDL> getlist() { return(RoomTypeDAL.getlist()); }
public static List <RoomTypeMDL> selectRoom() { return(RoomTypeDAL.selectRoom()); }
/// <summary> /// 修改 ///</summary> public static int UpdateRoomType(RoomType RoomTypeModel) { return(RoomTypeDAL.UpdateRoomType(RoomTypeModel)); }
public static int insertroom(RoomTypeMDL rt) { return(RoomTypeDAL.insertroom(rt)); }
/// <summary> /// 查询全部 ///</summary> public static List <RoomType> AllData(string NewWHere) { return(RoomTypeDAL.AllData(NewWHere)); }
public static int updateroom(RoomTypeMDL rt) { return(RoomTypeDAL.updateroom(rt)); }
/// <summary> /// 根据主键查询实体 ///</summary> public static RoomType GetIdByRoomType(int Id) { return(RoomTypeDAL.GetIdByRoomType(Id)); }
public static List <RoomType> selectall() { return(RoomTypeDAL.selectall()); }