• 大小: 670KB
    文件类型: .rar
    金币: 2
    下载: 1 次
    发布日期: 2021-06-17
  • 语言: C#
  • 标签: C#  窗体  

资源简介

以C#为开发语言,利用三层架构思想开发的学生信息管理系统。实现登录模块 以及可进行增删查改功能

资源截图

代码片段和文件信息

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

namespace StudentScore.ShanXi10.Bll
{
    using StudentScore.ShanXi10.Model;
    using StudentScore.ShanXi10.Dal;
     public class ClassBll
    {
         ClassDal dal = new ClassDal();

         #region 新增
         /// 
         /// 新增
         /// 

         /// 
         /// 
         public int Add(Class model)
         {
             return dal.Add(model);
         } 
         #endregion

         #region 根据班级编号删除数据
         /// 
         /// 根据班级编号删除数据
         /// 

         /// 
         /// 是否删除成功
         public bool Delete(int classId)
         {
             //1.0先删除成绩
             StudentBll bllStudent = new StudentBll();
             List listStudent=bllStudent.GetList(
                 where: “ClassId=“+classId
                 fields: “StudentId“
                 );
             //非空判断
             if (listStudent != null && listStudent.Count > 0)
             {
                 string strStudentIds = string.Empty;//学生编号 以分隔
                 foreach(Student stu in listStudent)
                 {
                     strStudentIds += stu.StudentId + ““;
                 }
                 strStudentIds = strStudentIds.TrimEnd(new char[] { ‘‘ });//去除尾部的 
                 ResultBll bllResult = new ResultBll();
                 bllStudent.Delete(“StudentId in(“ + strStudentIds + “)“);

             }
             //2.0再删除学生
             bllStudent.Delete(“ClassId=“ + classId);//不需要判断返回值,为什么?因为可能不存在该班级的学生


             //3.0最后删除班级


             int count = dal.Delete(classId);
             if(count>0)//受影响的行数
             {
                 return true;
             }
             return false;
         }
         #endregion

         #region 根据条件删除班级
         /// 
         /// 根据条件删除班级
         /// 

         /// 
         /// 是否删除成功
         public bool Delete(string where)
         {
             int count = dal.Delete(where);
             if(count>0)
             {
                 return true;
             }
             return false;
         }
         #endregion

         #region 修改
         /// 
         /// 修改
         /// 

         /// 
         /// 是否删除成功
         public bool Update(Class model)
         {
            int count =dal.Update(model);
             if(count>0)
             {
                 return true;
             }
             return false;
         }
         #endregion

         #region 获取班级集合
         /// 
         ///  获取班级集合
         /// 

         /// 
         /// <

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

     文件       9216  2018-04-03 13:23  StudentScore.ShanXi10\StudentScore.ShanXi10.Bll\bin\Debug\StudentScore.Shanxi10.Bll.dll

     文件      34304  2018-04-03 13:23  StudentScore.ShanXi10\StudentScore.ShanXi10.Bll\bin\Debug\StudentScore.Shanxi10.Bll.pdb

     文件       5632  2018-04-03 13:23  StudentScore.ShanXi10\StudentScore.ShanXi10.Bll\bin\Debug\StudentScore.Shanxi10.Common.dll

     文件      13824  2018-04-03 13:23  StudentScore.ShanXi10\StudentScore.ShanXi10.Bll\bin\Debug\StudentScore.Shanxi10.Common.pdb

     文件      22016  2018-04-03 13:23  StudentScore.ShanXi10\StudentScore.ShanXi10.Bll\bin\Debug\StudentScore.Shanxi10.Dal.dll

     文件      50688  2018-04-03 13:23  StudentScore.ShanXi10\StudentScore.ShanXi10.Bll\bin\Debug\StudentScore.Shanxi10.Dal.pdb

     文件       7680  2018-04-03 13:23  StudentScore.ShanXi10\StudentScore.ShanXi10.Bll\bin\Debug\StudentScore.Shanxi10.Model.dll

     文件      34304  2018-04-03 13:23  StudentScore.ShanXi10\StudentScore.ShanXi10.Bll\bin\Debug\StudentScore.Shanxi10.Model.pdb

     文件       8192  2016-11-27 13:23  StudentScore.ShanXi10\StudentScore.ShanXi10.Bll\bin\Release\StudentScore.Shanxi10.Bll.dll

     文件      30208  2016-11-27 13:23  StudentScore.ShanXi10\StudentScore.ShanXi10.Bll\bin\Release\StudentScore.Shanxi10.Bll.pdb

     文件       5632  2016-11-27 13:23  StudentScore.ShanXi10\StudentScore.ShanXi10.Bll\bin\Release\StudentScore.Shanxi10.Common.dll

     文件      13824  2016-11-27 13:23  StudentScore.ShanXi10\StudentScore.ShanXi10.Bll\bin\Release\StudentScore.Shanxi10.Common.pdb

     文件      20480  2016-11-27 13:23  StudentScore.ShanXi10\StudentScore.ShanXi10.Bll\bin\Release\StudentScore.Shanxi10.Dal.dll

     文件      44544  2016-11-27 13:23  StudentScore.ShanXi10\StudentScore.ShanXi10.Bll\bin\Release\StudentScore.Shanxi10.Dal.pdb

     文件       7168  2016-11-27 13:23  StudentScore.ShanXi10\StudentScore.ShanXi10.Bll\bin\Release\StudentScore.Shanxi10.Model.dll

     文件      32256  2016-11-27 13:23  StudentScore.ShanXi10\StudentScore.ShanXi10.Bll\bin\Release\StudentScore.Shanxi10.Model.pdb

     文件       4887  2016-11-27 10:14  StudentScore.ShanXi10\StudentScore.ShanXi10.Bll\ClassBll.cs

     文件       6708  2016-10-28 17:49  StudentScore.ShanXi10\StudentScore.ShanXi10.Bll\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件       4001  2018-04-03 13:23  StudentScore.ShanXi10\StudentScore.ShanXi10.Bll\obj\Debug\StudentScore.ShanXi10.Bll.csproj.FileListAbsolute.txt

     文件      12488  2018-04-03 13:23  StudentScore.ShanXi10\StudentScore.ShanXi10.Bll\obj\Debug\StudentScore.ShanXi10.Bll.csprojResolveAssemblyReference.cache

     文件       9216  2018-04-03 13:23  StudentScore.ShanXi10\StudentScore.ShanXi10.Bll\obj\Debug\StudentScore.Shanxi10.Bll.dll

     文件      34304  2018-04-03 13:23  StudentScore.ShanXi10\StudentScore.ShanXi10.Bll\obj\Debug\StudentScore.Shanxi10.Bll.pdb

     文件       6716  2016-11-27 13:23  StudentScore.ShanXi10\StudentScore.ShanXi10.Bll\obj\Release\DesignTimeResolveAssemblyReferencesInput.cache

     文件       1319  2016-11-27 13:23  StudentScore.ShanXi10\StudentScore.ShanXi10.Bll\obj\Release\StudentScore.ShanXi10.Bll.csproj.FileListAbsolute.txt

     文件      12500  2016-11-27 13:23  StudentScore.ShanXi10\StudentScore.ShanXi10.Bll\obj\Release\StudentScore.ShanXi10.Bll.csprojResolveAssemblyReference.cache

     文件       8192  2016-11-27 13:23  StudentScore.ShanXi10\StudentScore.ShanXi10.Bll\obj\Release\StudentScore.Shanxi10.Bll.dll

     文件      30208  2016-11-27 13:23  StudentScore.ShanXi10\StudentScore.ShanXi10.Bll\obj\Release\StudentScore.Shanxi10.Bll.pdb

     文件       1374  2016-10-21 13:49  StudentScore.ShanXi10\StudentScore.ShanXi10.Bll\Properties\AssemblyInfo.cs

     文件       4252  2016-11-27 12:24  StudentScore.ShanXi10\StudentScore.ShanXi10.Bll\ResultBll.cs

     文件       4582  2016-11-26 16:05  StudentScore.ShanXi10\StudentScore.ShanXi10.Bll\StudentBll.cs

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

评论

共有 条评论