BLL/StuBLL.cs

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

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

namespace BLL
{
  public   class StuBLL
  {
      #region//获取系别
      public DataTable GetDept(string dept)
      {
          StuDAL stuDal = new StuDAL();
          return stuDal.GetDept(dept);
      }
      #endregion
      #region//获取班级
      public DataTable GetClass(string clas)
      {
          StuDAL stuDal = new StuDAL();
          return stuDal.GetClass(clas);
      }
      #endregion
      #region //获取学生信息
      public DataTable GetStu()
      {
          StuDAL stuDal = new StuDAL();
          return stuDal.GetStu( );
      }
      #endregion
      #region//获取民族
      public DataTable GetNation()
      {
          StuDAL stuDal = new StuDAL();
          return stuDal.GetNation();
      }
      #endregion
      #region//信息查询
      public DataTable GetXs(string sno)
      {
          StuDAL stuDal = new StuDAL();
          return stuDal.GetXs(sno );
      }
      #endregion
      #region//添加学生信息
      public bool StuADD(Stu stu)
      {
          if (stu.SNo == "" || stu.SName == "" || stu.SSex == "" || stu.Sbirthday == "" || stu.SPolitical == "" || stu.SNation == "" || stu.CNo == "")
          {
              throw new System.Exception("学生信息不完整");
          }
          StuDAL stuDal = new StuDAL();
          bool Model = stuDal.stuCheck(stu.SNo);
          if (Model == true)
          {
              throw new System.Exception("学号已存在!");
          }
后面还有 32 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。