Kaynağa Gözat

座位接口

娄底高职分支
ndbs 1 ay önce
ebeveyn
işleme
84f7fcda73
4 değiştirilmiş dosya ile 53 ekleme ve 10 silme
  1. +4
    -7
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/Exam_ExamRoomController.cs
  2. +19
    -2
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Exam_ExamRoomDetail/Exam_ExamRoomDetailBLL.cs
  3. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Exam_ExamRoomDetail/Exam_ExamRoomDetailIBLL.cs
  4. +29
    -1
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Exam_ExamRoomDetail/Exam_ExamRoomDetailService.cs

+ 4
- 7
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/Exam_ExamRoomController.cs Dosyayı Görüntüle

@@ -103,13 +103,10 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
public ActionResult GetClassRoomDetailData(string classroomNo, string AcademicYearNo, int? Semester)
{
var Exam_ExamRoomData = exam_ExamRoomIBLL.GetEntityByClassroomNo(classroomNo, AcademicYearNo, Semester);
var Exam_ExamRoomDetailData = exam_ExamRoomDetailIBLL.GetList("").Where(x => x.ClassRoomNo == classroomNo && x.AcademicYearNo == AcademicYearNo && x.Semester == Semester).OrderBy(x => x.ECOrder);
var jsonData = new
{
Exam_ExamRoomDetailData = Exam_ExamRoomDetailData,
Exam_ExamRoomData = Exam_ExamRoomData
};
return Success(jsonData);
var Exam_ExamRoomDetailData = exam_ExamRoomDetailIBLL.GetList().Where(x => x.ClassRoomNo == classroomNo && x.AcademicYearNo == AcademicYearNo && x.Semester == Semester).OrderBy(x => x.ECOrder);
var data = new { Exam_ExamRoomData, Exam_ExamRoomDetailData };
return Success(data);

}
#endregion



+ 19
- 2
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Exam_ExamRoomDetail/Exam_ExamRoomDetailBLL.cs Dosyayı Görüntüle

@@ -61,7 +61,24 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
}
}
}

public IEnumerable<Exam_ExamRoomDetailEntity> GetList()
{
try
{
return exam_ExamRoomDetailService.GetList();
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
/// <summary>
/// 获取实体数据
/// </summary>
@@ -148,7 +165,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
{
try
{
exam_ExamRoomDetailService.SaveSaveDetailEntity(ClassroomNo, AcademicYearNo, Semester,entity);
exam_ExamRoomDetailService.SaveSaveDetailEntity(ClassroomNo, AcademicYearNo, Semester, entity);
}
catch (Exception ex)
{


+ 1
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Exam_ExamRoomDetail/Exam_ExamRoomDetailIBLL.cs Dosyayı Görüntüle

@@ -23,6 +23,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
IEnumerable<Exam_ExamRoomDetailEntity> GetPageList(Pagination pagination, string queryJson);

IEnumerable<Exam_ExamRoomDetailEntity> GetList(string queryJson);
IEnumerable<Exam_ExamRoomDetailEntity> GetList();
/// <summary>
/// 获取实体数据
/// </summary>


+ 29
- 1
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Exam_ExamRoomDetail/Exam_ExamRoomDetailService.cs Dosyayı Görüntüle

@@ -99,7 +99,35 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
}
}
}

/// <summary>
/// 获取页面显示列表数据
/// </summary>
/// <param name="pagination">查询参数</param>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
public IEnumerable<Exam_ExamRoomDetailEntity> GetList()
{
try
{
var strSql = new StringBuilder();
strSql.Append("SELECT ");
strSql.Append(@" t.* ");
strSql.Append(" FROM Exam_ExamRoomDetail t ");
strSql.Append(" WHERE 1=1 ");
return this.BaseRepository("CollegeMIS").FindList<Exam_ExamRoomDetailEntity>(strSql.ToString());
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}
/// <summary>
/// 获取Exam_ExamPlanLesson表实体数据
/// </summary>


Yükleniyor…
İptal
Kaydet