/// <summary> /// 查询该人借书超期数量构造器 /// </summary> /// <param name="bookguid">书di</param> public Getreturnbookinfo(Guid bookguid) { this.bookGuid = bookguid; this.loanInfoAccess = DALFactory.CreateLoanInfoAccess(); this.Connection = Better517Na.LibrayMgr.ConnectionFactory.ConnectionFactory.CreateConnect(); this.IsBeginTransaction = false; this.IsolationLevel = IsolationLevel.ReadCommitted; }
/// <summary> /// 通过ID获取图书信息 /// </summary> /// <param name="usernaem">借阅人姓名</param> public GetReturnInfo(string usernaem) { this.userName = usernaem; this.loanInfoAccess = DALFactory.CreateLoanInfoAccess(); this.Connection = Better517Na.LibrayMgr.ConnectionFactory.ConnectionFactory.CreateConnect(); this.IsBeginTransaction = false; this.IsolationLevel = IsolationLevel.ReadCommitted; }
/// <summary> /// 构造函数 /// </summary> /// <param name="name">借阅人</param> public CheckUserInfoMgr(string name) { this.username = name; this.loanInfoAccess = DALFactory.CreateLoanInfoAccess(); this.bookItemAccess = DALFactory.CreateBookItemAccess(); this.Connection = Better517Na.LibrayMgr.ConnectionFactory.ConnectionFactory.CreateConnect(); this.IsBeginTransaction = false; this.IsolationLevel = IsolationLevel.ReadCommitted; }
/// <summary> /// 获取BookItem构造器 /// </summary> /// <param name="isback">图书条形码</param> /// <param name="username">用户</param> public QueryBorrowBookMgr(bool isback, string username) { this.isBack = isback; this.userName = username; this.loanInfoAccess = DALFactory.CreateLoanInfoAccess(); this.Connection = Better517Na.LibrayMgr.ConnectionFactory.ConnectionFactory.CreateConnect(); this.IsBeginTransaction = false; this.IsolationLevel = IsolationLevel.ReadCommitted; }
/// <summary> /// 正常还书无罚款 /// </summary> /// <param name="booguid">图书条形码</param> public ReturnbookNomle(Guid booguid) { this.bookguid = booguid; this.loanInfoAccess = DALFactory.CreateLoanInfoAccess(); this.bookItemAccess = DALFactory.CreateBookItemAccess(); this.Connection = Better517Na.LibrayMgr.ConnectionFactory.ConnectionFactory.CreateConnect(); this.IsBeginTransaction = true; this.IsolationLevel = IsolationLevel.ReadCommitted; }
/// <summary> /// 借书管理器 /// </summary> /// <param name="name">借书人</param> /// <param name="orderNum">图书条形码</param> public BorrowBookMgr(string name, Guid orderNum) { this.ordernum = orderNum; this.userName = name; this.loanInfoAccess = DALFactory.CreateLoanInfoAccess(); this.bookItemAccess = DALFactory.CreateBookItemAccess(); this.Connection = Better517Na.LibrayMgr.ConnectionFactory.ConnectionFactory.CreateConnect(); this.IsBeginTransaction = true; this.IsolationLevel = IsolationLevel.ReadCommitted; }
/// <summary> /// 付款并借书 /// </summary> /// <param name="name">借书人</param> /// <param name="booguid">书本条形码</param> public PayMoneyAndBorrowMgr(string name, Guid booguid) { this.userName = name; this.bookguid = booguid; this.loanInfoAccess = DALFactory.CreateLoanInfoAccess(); this.bookItemAccess = DALFactory.CreateBookItemAccess(); this.Connection = Better517Na.LibrayMgr.ConnectionFactory.ConnectionFactory.CreateConnect(); this.IsBeginTransaction = true; this.IsolationLevel = IsolationLevel.ReadCommitted; }