Exemple #1
0
        }// function TopicApply

        /// <summary>
        /// 判断选择时间内是否有会议
        /// </summary>
        /// <param name="boardroom">会议室实体类</param>
        /// <param name="start">开始时间</param>
        /// <param name="end">结束时间</param>
        /// <returns>有会议返回true,无会议返回false</returns>
        public bool IsExistCon(BoardroomModel boardroom, DateTime start, DateTime end)
        {
            try
            {
                //判断会议结束时间>当前时间并且会议室ID=boardroom.BrdId 是否存在
                BoardroomDAL BdrDAL = new BoardroomDAL();
                if (BdrDAL.IsConExist(boardroom.BdrId, start, end))
                {
                    return(true);
                }
                else
                {
                    return(false);
                }
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
        }//function  IsExistCon
Exemple #2
0
        }// function DelBoardroom

        /// <summary>
        /// 会议管理员修改会议室
        /// </summary>
        /// <param name="boardroom">会议实体类的实例化对象</param>
        /// <returns>true:修改成功;false:修改失败</returns>
        /// 作者:王宇昊
        /// 创建时间:2014-09-18
        /// 修改时间:
        public bool UpdateBoardroom(BoardroomModel boardroom)
        {
            try
            {
                //判断会议结束时间>当前时间并且会议室ID=boardroom.BrdId 是否存在
                BoardroomDAL BdrDAL = new BoardroomDAL();
                if (BdrDAL.IsConExist(boardroom.BdrId))
                {
                    BdrDAL.UpdateARecord(boardroom);
                    return(true);
                }
                else
                {
                    return(false);
                }
            }
            catch
            {
                return(false);
            }
        }// function UpdateBoardroom