资源简介

附件数据库后需修改 数据库连接串为本地数据库的密码(在DAL/DBHelper.cs中修改即可),vs2017已测试通过

登录默认用户名:admin;默认密码:admin

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


namespace BLL
{
    /*图书业务逻辑层*/
    public class bllBook
    {
        /*添加图书*/
        public static bool AddBook(Model.Book book)
        {
            return DAL.dalBook.AddBook(book);
        }

        /*根据barcode获取某条图书记录*/
        public static Model.Book getSomeBook(string barcode)
        {
            return DAL.dalBook.getSomeBook(barcode);
        }

        /*更新图书*/
        public static bool EditBook(Model.Book book)
        {
            return DAL.dalBook.EditBook(book);
        }

        /*删除图书*/
        public static bool DelBook(string p)
        {
            return DAL.dalBook.DelBook(p);
        }

        /*根据条件分页查询图书*/
        public static Sys

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-01-09 00:10  .vs\
     目录           0  2018-01-09 00:10  .vs\Loginframe\
     目录           0  2018-01-09 00:11  .vs\Loginframe\v15\
     文件       88064  2018-01-09 00:20  .vs\Loginframe\v15\.suo
     目录           0  2018-01-09 00:10  .vs\Loginframe\v15\Server\
     目录           0  2018-01-09 00:20  .vs\Loginframe\v15\Server\sqlite3\
     文件           0  2018-01-09 00:10  .vs\Loginframe\v15\Server\sqlite3\db.lock
     文件     1064960  2018-01-09 00:20  .vs\Loginframe\v15\Server\sqlite3\storage.ide
     目录           0  2013-12-05 08:49  BLL\
     目录           0  2013-02-25 10:36  BLL\bin\
     目录           0  2013-12-05 08:49  BLL\bin\Debug\
     文件        6656  2018-01-09 00:12  BLL\bin\Debug\BLL.dll
     文件       24064  2018-01-09 00:12  BLL\bin\Debug\BLL.pdb
     文件       24576  2018-01-09 00:12  BLL\bin\Debug\DAL.dll
     文件       44544  2018-01-09 00:12  BLL\bin\Debug\DAL.pdb
     文件        8704  2018-01-09 00:12  BLL\bin\Debug\Model.dll
     文件       36352  2018-01-09 00:12  BLL\bin\Debug\Model.pdb
     文件        2786  2018-01-09 00:09  BLL\BLL.csproj
     文件        1264  2013-08-08 14:27  BLL\bllBook.cs
     文件        1391  2013-02-25 11:44  BLL\bllBookType.cs
     文件         434  2012-04-02 10:30  BLL\BP_Provience.cs
     文件        3115  2012-04-02 08:52  BLL\BU_UserInfo.cs
     目录           0  2013-02-25 10:36  BLL\obj\
     目录           0  2018-01-09 00:12  BLL\obj\Debug\
     文件           0  2018-01-09 00:12  BLL\obj\Debug\BLL.csproj.CopyComplete
     文件          42  2018-01-09 00:10  BLL\obj\Debug\BLL.csproj.CoreCompileInputs.cache
     文件        4032  2018-01-09 00:12  BLL\obj\Debug\BLL.csproj.FileListAbsolute.txt
     文件       31824  2018-01-09 00:12  BLL\obj\Debug\BLL.csprojResolveAssemblyReference.cache
     文件        6656  2018-01-09 00:12  BLL\obj\Debug\BLL.dll
     文件       24064  2018-01-09 00:12  BLL\obj\Debug\BLL.pdb
     文件        6075  2013-12-05 09:01  BLL\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
............此处省略242个文件信息

评论

共有 条评论