BLL/DeptBLL.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Model;
using DAL;
using System.Data;
namespace BLL
{
public class DeptBLL
{
#region //获取系别信息
public DataTable getDept()
{
DeptDAL deptdal = new DeptDAL();
return deptdal.getDept();
}
#endregion
#region //添加系别信息
public bool DeptADD(Dept dept)
{
if (dept.CdeptNo =="")
{
throw new System.Exception("系别编号不能为空");
}
if (dept.CdeptName =="")
{
throw new System.Exception("系别名称不能为空");
}
DeptDAL deptDal = new DeptDAL();
Dept deptModel = deptDal.DeptCheck(dept.CdeptNo );
if (deptModel != null)
{
throw new System.Exception(" 系别已存在!");
}
else
{
return (deptDal.DeptADD(dept));
}
}
#endregion
#region //修改系别信息
public bool DeptChange(Dept dept,string cdeptName)
{
if (dept.CdeptNo == "")
{
throw new System.Exception("系别编号不能为空");
}
DeptDAL deptDal = new DeptDAL();
Dept deptModel = deptDal.DeptCheck(dept.CdeptNo);
if (deptModel == null)
{
throw new System.Exception(" 系别不存在!");
后面还有 26 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。