App_Code/BusinessLogicLayer/Department.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data;
using System.Collections;
using System.Data.SqlClient;
using OnLineExam.DataAccessLayer;
using OnLineExam.DataAccessHelper;
namespace OnLineExam.BusinessLogicLayer
{
public class Department
{
#region 私有成员
private int _departmentId; //部门ID
private string _departmentName; //部门名
#endregion 私有成员
#region 属性
public int DepartmentId
{
set
{
this._departmentId = value;
}
get
{
return this._departmentId;
}
}
public string DepartmentName
{
set
{
this._departmentName = value;
}
get
{
return this._departmentName;
}
}
#endregion 属性
#region 方法
/// <summary>
/// 根据参数departmentId,获取部门详细信息
/// </summary>
/// <param name="topicID">部门ID</param>
public bool LoadData(int DepartmentId)
{
SqlParameter[] Params = new SqlParameter[1];
DataBase DB = new DataBase();
Params[0] = DB.MakeInParam("@DepartmentId", SqlDbType.Int, 4, DepartmentId); //用户编号
DataSet ds = DB.GetDataSet("Proc_DepartmentDetail", Params);
后面还有 95 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。