瀏覽代碼

班级信息管理 排除部分异动学生

临城职教中职
ndbs 2 年之前
父節點
當前提交
3d3b63588c
共有 4 個文件被更改,包括 47 次插入2 次删除
  1. +2
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/ClassInfoController.cs
  2. +18
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicBLL.cs
  3. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicIBLL.cs
  4. +26
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicService.cs

+ 2
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/ClassInfoController.cs 查看文件

@@ -19,7 +19,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
private ClassInfoIBLL classInfoIBLL = new ClassInfoBLL();
private ArrangeLessonSyncIBLL arrangeLessonSyncIBLL = new ArrangeLessonSyncBLL();
private StuInfoBasicIBLL stuInfoBasicIBLL = new StuInfoBasicBLL();
#region 视图功能

/// <summary>
@@ -69,7 +69,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
{
Pagination paginationobj = pagination.ToObject<Pagination>();
var data = classInfoIBLL.GetPageList(paginationobj, queryJson);
var studata = stuInfoBasicIBLL.GetAllList();
var studata = stuInfoBasicIBLL.GetAllList("1");
foreach (var item in data)
{
item.StuNum = studata.Where(o =>


+ 18
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicBLL.cs 查看文件

@@ -296,6 +296,24 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
}
}
}
public IEnumerable<StuInfoBasicEntity> GetAllList(string ChangeType)
{
try
{
return stuInfoBasicService.GetAllList(ChangeType);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
public IEnumerable<StuInfoBasicEntity> GetStuInfoByClassNo(string classNo)
{
try


+ 1
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicIBLL.cs 查看文件

@@ -75,6 +75,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
void GenerateAccout();
bool GetAny();
IEnumerable<StuInfoBasicEntity> GetAllList();
IEnumerable<StuInfoBasicEntity> GetAllList(string ChangeType);
IEnumerable<StuInfoBasicEntity> GetStuInfoByClassNo(string classNo);
}
}

+ 26
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicService.cs 查看文件

@@ -893,6 +893,32 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
}
}
}
/// <summary>
/// 班级不看学籍异动
/// </summary>
/// <param name="ChangeType"></param>
/// <returns></returns>
public IEnumerable<StuInfoBasicEntity> GetAllList(string ChangeType)
{
try
{
StringBuilder sb = new StringBuilder();
sb.Append(@"select * from StuInfoBasic
where stuNo not in (select Stuno from StuInfoBasicChange where StuChangeType in ('02', '05', '06'))");
return this.BaseRepository("CollegeMIS").FindList<StuInfoBasicEntity>(sb.ToString());
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}
public IEnumerable<StuInfoBasicEntity> GetStuInfoByClassNo(string classNo)
{
try


Loading…
取消
儲存