⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 booklentinfo.cs

📁 网上那个书店开发系统论文,需要的朋友可以下载参考哦
💻 CS
字号:
using System;
using System.Collections.Generic;
using System.Text;
using System.Configuration;

namespace BookManage.Model
{
    /// <summary>
    /// 已借出图书的信息
    /// </summary>
    public class BookLentInfo
    {
        public BookLentInfo()
        {

        }

        public BookLentInfo(BookInfo bookInfo, EMUserProfile profile, int blId, DateTime endTime, DateTime startTime)
        {
            this._bookInfo = bookInfo;
            this._profile = profile;
            this._BLId = blId;
            this._EndTime = endTime;
            this._StartTime = startTime;
        }

        private BookInfo _bookInfo;

        public BookInfo BookInfo
        {
            get { return _bookInfo; }
            set { _bookInfo = value; }
        }

        private EMUserProfile _profile;
        public EMUserProfile EMUserProfile
        {
            get { return _profile; }
            set { _profile = value; }
        }

        private System.Int32 _BLId;
        /// <summary>
        /// 借阅记录的ID
        /// </summary>
        public System.Int32 BLId
        {
            get { return _BLId; }
            set { _BLId = value; }
        }

        private System.DateTime _EndTime;
        /// <summary>
        /// 最晚归还时间
        /// </summary>
        public System.DateTime EndTime
        {
            get { return _EndTime; }
            set { _EndTime = value; }
        }

        private System.DateTime _StartTime;
        /// <summary>
        /// 开始借阅时间
        /// </summary>
        public System.DateTime StartTime
        {
            get { return _StartTime; }
            set { _StartTime = value; }
        }

        /// <summary>
        /// 最多借阅数量
        /// </summary>
        public static int MostBorrowBooks
        {
            get
            {
                return Convert.ToInt32(ConfigurationManager.AppSettings["LendAmount"]);
            }
        }

        /// <summary>
        /// 最长借阅天数
        /// </summary>
        public static int MostBorrowDays
        {
            get
            {
                return Convert.ToInt32(ConfigurationManager.AppSettings["LendDays"]);
            }
        }

        /// <summary>
        /// 查询用户借阅情况的结果
        /// </summary>
        public enum BookLendResult
        {
            /// <summary>
            /// 已经借满
            /// </summary>
            FullBorrow=-1,
            /// <summary>
            /// 有超期图书未还
            /// </summary>
            HasExpiredBook = -2,
            /// <summary>
            /// 错误的用户名
            /// </summary>
            WrongUserName=-3
        }

       
    }

   /// <summary>
   /// 图书状态
   /// </summary>
    public class BookSatus
    {
        /// <summary>
        /// 已经借出
        /// </summary>
        public static bool Lent
        {
            get { return true; }
        }
        /// <summary>
        /// 未借出
        /// </summary>
        public static bool Free
        {
            get { return false; }
        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -