示例#1
0
 /// <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;
     }
 }
示例#2
0
 /// <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;
     }
 }
示例#3
0
        public static bool insert(string name, string shu)
        {
            int b = RoomTypeDAL.insert(name, shu);

            if (b >= 1)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
示例#4
0
        public static bool database(string id)
        {
            int b = RoomTypeDAL.database(id);

            if (b >= 1)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
示例#5
0
        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);
            }
        }
示例#6
0
        /// <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);
        }
示例#7
0
 /// <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));
 }
示例#8
0
 /// <summary>
 /// 根据主键删除
 ///</summary>
 public static int DeleteRoomType(int Id)
 {
     return(RoomTypeDAL.DeleteRoomType(Id));
 }
示例#9
0
 /// <summary>
 /// 添加
 ///</summary>
 public static int AddRoomType(RoomType RoomTypeModel)
 {
     return(RoomTypeDAL.AddRoomType(RoomTypeModel));
 }
示例#10
0
 public override void SetDAL()
 {
     _dal = new RoomTypeDAL();
 }
示例#11
0
 public static int deleteroom(RoomTypeMDL rt)
 {
     return(RoomTypeDAL.deleteroom(rt));
 }
示例#12
0
 /// <summary>
 /// 查询条数
 ///</summary>
 public static int CountNumber(string NewWHere)
 {
     return(RoomTypeDAL.CountNumber(NewWHere));
 }
示例#13
0
 public static List <RoomTypeMDL> getlist()
 {
     return(RoomTypeDAL.getlist());
 }
示例#14
0
 public static List <RoomTypeMDL> selectRoom()
 {
     return(RoomTypeDAL.selectRoom());
 }
示例#15
0
 /// <summary>
 /// 修改
 ///</summary>
 public static int UpdateRoomType(RoomType RoomTypeModel)
 {
     return(RoomTypeDAL.UpdateRoomType(RoomTypeModel));
 }
示例#16
0
 public static int insertroom(RoomTypeMDL rt)
 {
     return(RoomTypeDAL.insertroom(rt));
 }
示例#17
0
 /// <summary>
 /// 查询全部
 ///</summary>
 public static List <RoomType> AllData(string NewWHere)
 {
     return(RoomTypeDAL.AllData(NewWHere));
 }
示例#18
0
 public static int updateroom(RoomTypeMDL rt)
 {
     return(RoomTypeDAL.updateroom(rt));
 }
示例#19
0
 /// <summary>
 /// 根据主键查询实体
 ///</summary>
 public static RoomType GetIdByRoomType(int Id)
 {
     return(RoomTypeDAL.GetIdByRoomType(Id));
 }
示例#20
0
 public static List <RoomType> selectall()
 {
     return(RoomTypeDAL.selectall());
 }