91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 670KB
    文件類型: .rar
    金幣: 2
    下載: 1 次
    發(fā)布日期: 2021-06-17
  • 語言: C#
  • 標(biāo)簽: C#??窗體??

資源簡介

以C#為開發(fā)語言,利用三層架構(gòu)思想開發(fā)的學(xué)生信息管理系統(tǒng)。實(shí)現(xiàn)登錄模塊 以及可進(jìn)行增刪查改功能

資源截圖

代碼片段和文件信息

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?根據(jù)班級(jí)編號(hào)刪除數(shù)據(jù)
?????????///?
?????????///?根據(jù)班級(jí)編號(hào)刪除數(shù)據(jù)
?????????///?

?????????///?
?????????///?是否刪除成功
?????????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;//學(xué)生編號(hào)?以分隔
?????????????????foreach(Student?stu?in?listStudent)
?????????????????{
?????????????????????strStudentIds?+=?stu.StudentId?+?““;
?????????????????}
?????????????????strStudentIds?=?strStudentIds.TrimEnd(new?char[]?{?‘‘?});//去除尾部的?
?????????????????ResultBll?bllResult?=?new?ResultBll();
?????????????????bllStudent.Delete(“StudentId?in(“?+?strStudentIds?+?“)“);

?????????????}
?????????????//2.0再刪除學(xué)生
?????????????bllStudent.Delete(“ClassId=“?+?classId);//不需要判斷返回值,為什么?因?yàn)榭赡懿淮嬖谠摪嗉?jí)的學(xué)生


?????????????//3.0最后刪除班級(jí)


?????????????int?count?=?dal.Delete(classId);
?????????????if(count>0)//受影響的行數(shù)
?????????????{
?????????????????return?true;
?????????????}
?????????????return?false;
?????????}
?????????#endregion

?????????#region?根據(jù)條件刪除班級(jí)
?????????///?
?????????///?根據(jù)條件刪除班級(jí)
?????????///?

?????????///?
?????????///?是否刪除成功
?????????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?獲取班級(jí)集合
?????????///?
?????????///??獲取班級(jí)集合
?????????///?

?????????///?
?????????///?<

?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----

?????文件???????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個(gè)文件信息

評(píng)論

共有 條評(píng)論