Explorar el Código

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

临城职教中职
ndbs hace 2 años
padre
commit
3d3b63588c
Se han modificado 4 ficheros con 47 adiciones y 2 borrados
  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 Ver fichero

@@ -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 Ver fichero

@@ -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 Ver fichero

@@ -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 Ver fichero

@@ -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


Cargando…
Cancelar
Guardar