• 大小: 197KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-06-10
  • 语言: C#
  • 标签: 三层架构  

资源简介

1个简单的三层B/S架构实例,C#语言编写,适合初学者

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Text;
using DataAccesslayer.DepartmentManage;
using System.Data;
using Modellayer;
using System.Collections;

namespace BusinessLogiclayer
{
    /// 
    /// 部门管理
    /// 

    public class DepartmentManageBll
    {
        /// 
        /// 获取部门列表
        /// 根据ID获取一条部门信息
        /// 

        /// 
        public DataSet GetdptList(Department dpt)
        {
            DepartmentManageDAL dm = new DepartmentManageDAL();
            return dm.GetDptList(dpt);
        }
        /// 
        /// 根据部门ID获取一条部门信息
        /// 

        /// 部门实体。保存一个部门ID
        /// 
        public DataSet GetOnedptInfo(Department dpt)
        {
            DepartmentManageDAL dm = new DepartmentManageDAL();
            return dm.GetOneDptInfo(dpt);
        }

        /// 
        /// 修改部门信息
        /// 

        /// 
        /// 
        public int DepartmentEdit(Department dpt)
        {
            DepartmentManageDAL dm = new DepartmentManageDAL();
            return dm.DepartmentEdit(dpt);
        }
        /// 
        /// 添加部门信息
        /// 

        /// 
        /// 
        public int DepartmentAdd(Department dpt)
        {
            DepartmentManageDAL dm = new DepartmentManageDAL();
            return dm.DepartmentAdd(dpt);
        }
        /// 
        /// 删除部门信息
        /// 

        /// 
        /// 
        public int DepartmentDelete(Department dpt)
        {
            DepartmentManageDAL dm = new DepartmentManageDAL();
            return dm.DepartmentDelete(dpt);
        }

        /// 
        /// 删除多个部门信息
        /// 

        /// 
        /// 
        public int DepartmentDeleteAll(ArrayList arr)
        {
            DepartmentManageDAL dm = new DepartmentManageDAL();
            return dm.DepartmentDeleteAll(arr);
        }

        /// 
        /// 判断部门名称是否已经存在
        /// 

        /// 
        /// 
        public int DepartmentNameIsExsit(Department dpt)
        {
            DepartmentManageDAL dm = new DepartmentManageDAL();
            return dm.DepartmentNameIsExsit(dpt);
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       5638  2010-12-09 15:33  xx\Schema\SCDXSchema.sln

    ..A..H.     51200  2011-08-06 09:22  xx\Schema\SCDXSchema.suo

     文件       4670  2010-12-09 15:14  xx\Schema\UpgradeLog.xml

     文件       3348  2010-12-09 15:14  xx\Schema\_UpgradeReport_Files\UpgradeReport.css

     文件      12505  2008-01-11 01:25  xx\Schema\_UpgradeReport_Files\UpgradeReport.xslt

     文件         69  2010-12-09 15:14  xx\Schema\_UpgradeReport_Files\UpgradeReport_Minus.gif

     文件         71  2010-12-09 15:14  xx\Schema\_UpgradeReport_Files\UpgradeReport_Plus.gif

     文件       1685  2010-12-09 15:33  xx\Schema\WebUI\Web.config

     文件        195  2007-10-25 09:21  xx\Schema\WebUI\Images\ArrowLeft.gif

     文件        197  2007-10-25 09:21  xx\Schema\WebUI\Images\ArrowRight.gif

     文件       1658  2009-12-31 17:58  xx\Schema\WebUI\Images\button1bj.gif

     文件       4712  2010-07-13 15:55  xx\Schema\WebUI\DepartmentManage\DepartmentAdd.aspx

     文件       1761  2010-07-14 16:23  xx\Schema\WebUI\DepartmentManage\DepartmentAdd.aspx.cs

     文件       2685  2010-07-06 12:44  xx\Schema\WebUI\DepartmentManage\DepartmentEdit.aspx

     文件       3546  2010-12-09 15:55  xx\Schema\WebUI\DepartmentManage\DepartmentEdit.aspx.cs

     文件       7171  2010-12-09 15:50  xx\Schema\WebUI\DepartmentManage\DepartmentList.aspx

     文件       8476  2010-12-09 15:49  xx\Schema\WebUI\DepartmentManage\DepartmentList.aspx.cs

     文件        817  2010-07-14 15:52  xx\Schema\WebUI\CSS\styleSheet.css

     文件       4608  2010-12-09 15:47  xx\Schema\WebUI\Bin\BusinessLogiclayer.dll

     文件      15872  2010-12-09 15:47  xx\Schema\WebUI\Bin\BusinessLogiclayer.pdb

     文件      15872  2010-12-09 15:47  xx\Schema\WebUI\Bin\DataAccesslayer.dll

     文件      48640  2010-12-09 15:47  xx\Schema\WebUI\Bin\DataAccesslayer.pdb

     文件       4608  2010-12-09 15:47  xx\Schema\WebUI\Bin\Modellayer.dll

     文件      15872  2010-12-09 15:47  xx\Schema\WebUI\Bin\Modellayer.pdb

     文件       1816  2010-12-09 15:39  xx\Schema\Modellayer\Department.cs

     文件       1981  2010-07-06 12:34  xx\Schema\Modellayer\Employee.cs

     文件       2132  2010-12-09 15:14  xx\Schema\Modellayer\Modellayer.csproj

     文件        168  2010-12-09 15:14  xx\Schema\Modellayer\Modellayer.csproj.user

     文件       1339  2010-07-03 10:33  xx\Schema\Modellayer\Properties\AssemblyInfo.cs

     文件        146  2010-07-28 09:10  xx\Schema\Modellayer\obj\Modellayer.csproj.FileList.txt

............此处省略129个文件信息

评论

共有 条评论