Пример #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());
 }