• 大小: 6.32MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-11-12
  • 语言: C#
  • 标签:

资源简介

含3层架构的图书管理系统使用Dotnetbar控件进行美化 Dotnetbar下载地址链接:http://pan.baidu.com/s/1jGEF2To 密码:0apu 欢迎

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Model;
using DAL;
using System.Data;

namespace BLL
{
    public class AdminInfoBLL
    {
        AdminInfoAccess adminInfo;

        public AdminInfoBLL()
        {
            adminInfo = new AdminInfoAccess();
        }

        public string Login(string adminID string psw) //对账号及密码进行判断
        {
            string resultStr = ““;
            if (!adminInfo.Exist(adminID))
            {
                resultStr = “NotFound“;
            }
            else
            {
                string str = adminInfo.GetPassWord(adminID);
                if (str == psw)
                    resultStr = “Success“;
                else
                    resultStr = “PasswordWrong“;
            }

            return resultStr;
        }

        public string GetIDCardTypeAndIDCard(string adminID)//获取证件类型和证件号
        {
            string str = adminInfo.GetIDCardTypeAndIDCard(adminID);
            return str;
        }

        public string GetPassWord(string adminID)//获取密码
        {
            string psw = adminInfo.GetPassWord(adminID);
            return psw;
        }

        public string GetAdminName(string adminID)//获取姓名
        {
            string name = adminInfo.GetadminName(adminID);
            return name;
        }

        public AdminInfo GetAdminInfo(string adminID)//获取信息
        {
            AdminInfo admin;
            admin = adminInfo.GetAdminInfo(adminID);
            return admin;
        }

        public string AddadminInfo(AdminInfo admin)//添加管理员信息
        {
            if (adminInfo.AddadminInfo(admin))
            {
                return “管理员信息添加成功“;
            }
            else
                return “管理员信息添加失败“;
        }

        public string UpdateAdminInfo(AdminInfo admin)//修改信息
        {
            if (adminInfo.UpdateAdminInfo(admin))
            {
                return “信息修改成功“;
            }
            else
                return “信息修改失败“;
        }

        public DataTable GetAllAdminInfo(string where)//获取AdminInfo表
        {
            return adminInfo.GetallAdminInfo(where);
        }

        public string DeleteAdminInfo(string adminID)//删除管理员
        {
            if (adminInfo.DeleteAdminInfo(adminID))
                return “删除管理员成功“;
            else
                return “删除管理员失败“;
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2015-02-07 14:19  BMS\
     目录           0  2015-02-07 14:18  BMS\BLL\
     文件        2677  2014-12-25 14:36  BMS\BLL\AdminInfoBLL.cs
     文件        1591  2014-12-25 20:48  BMS\BLL\AuthManagementBLL.cs
     目录           0  2015-02-07 14:18  BMS\BLL\bin\
     目录           0  2015-02-07 14:18  BMS\BLL\bin\Debug\
     文件        8704  2015-02-07 14:21  BMS\BLL\bin\Debug\BLL.dll
     文件       48640  2015-02-07 14:21  BMS\BLL\bin\Debug\BLL.pdb
     文件        5632  2015-02-07 14:21  BMS\BLL\bin\Debug\Common.dll
     文件       15872  2015-02-07 14:21  BMS\BLL\bin\Debug\Common.pdb
     文件       24064  2015-02-07 14:21  BMS\BLL\bin\Debug\DAL.dll
     文件       56832  2015-02-07 14:21  BMS\BLL\bin\Debug\DAL.pdb
     文件       14336  2015-02-07 14:21  BMS\BLL\bin\Debug\Model.dll
     文件        7680  2015-02-07 14:21  BMS\BLL\bin\Debug\Model.pdb
     目录           0  2015-02-07 14:18  BMS\BLL\bin\Release\
     文件        6144  2014-12-29 15:17  BMS\BLL\bin\Release\BLL.dll
     文件       19968  2014-12-29 15:17  BMS\BLL\bin\Release\BLL.pdb
     文件        5120  2014-12-29 15:17  BMS\BLL\bin\Release\Common.dll
     文件       13824  2014-12-29 15:17  BMS\BLL\bin\Release\Common.pdb
     文件       11776  2014-12-29 15:17  BMS\BLL\bin\Release\DAL.dll
     文件       22016  2014-12-29 15:17  BMS\BLL\bin\Release\DAL.pdb
     文件        8704  2014-12-29 15:17  BMS\BLL\bin\Release\Model.dll
     文件        7680  2014-12-29 15:17  BMS\BLL\bin\Release\Model.pdb
     文件        2927  2015-01-05 10:46  BMS\BLL\BLL.csproj
     文件        1520  2014-12-29 11:07  BMS\BLL\BookInfoBLL.cs
     文件        1568  2015-01-04 11:30  BMS\BLL\BorrowInfoBLL.cs
     文件         458  2015-01-05 10:49  BMS\BLL\ExcelBLL.cs
     文件        1119  2015-01-04 16:46  BMS\BLL\InitSysBLL.cs
     目录           0  2015-02-07 14:18  BMS\BLL\obj\
     目录           0  2015-02-07 14:21  BMS\BLL\obj\Debug\
     文件        2153  2015-02-07 14:21  BMS\BLL\obj\Debug\BLL.csproj.FileListAbsolute.txt
............此处省略290个文件信息

评论

共有 条评论