BusinessLogicLayer/ProfessionalCourseBLL.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CheckOnWork.IDAL;
using CheckOnWork.Model;
using CheckOnWork.DALFactory;
using CheckOnWork.WebConfig;
namespace CheckOnWork.BusinessLogicLayer
{
public class ProfessionalCourseBLL
{
private static readonly IProfessionalCourse dal = DataAccess.CreateProfessionalCourse();
#region 添加专业课表
/// <summary>
/// 添加专业课表
/// </summary>
/// <param name="course"></param>
/// <returns></returns>
public int Insert(ProfessionalCourse course)
{
return dal.Insert(course);
}
#endregion
#region 根据专业号的集合得到已经考勤的专业
public IList<int> GetCheckedProfessional(IList<int> proList, int annualID, string teacherID, string week, string section)
{
IList<int> checkedProfessioanlList=new List<int>();
//根据专业号的集合得到系别的集合
IList<int> departmentIdList=new List<int>();
ProfessionalBLL proBll = new ProfessionalBLL();
for (int i = 0; i < proList.Count; i++)
{
int id=proBll.GetProfessionalById(proList[i]).departmentID;
if (departmentIdList.Count != 0)
{
foreach (int int1 in departmentIdList)
{
if (int1 != id)
{
departmentIdList.Add(id);
}
}
}
else
{
departmentIdList.Add(id);
}
}
//根据系别的集合得到全部的按教师及上课时间来决定的考勤完毕的专业
for (int j = 0; j < departmentIdList.Count; j++)
{
后面还有 85 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。