Преглед изворни кода

考试课程新增判断同学期是否重复

西昌缴费二期
zhangli пре 2 година
родитељ
комит
4b94880cfa
4 измењених фајлова са 6 додато и 6 уклоњено
  1. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/Exam_ExamLessonController.cs
  2. +2
    -2
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Exam_ExamLesson/Exam_ExamLessonBLL.cs
  3. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Exam_ExamLesson/Exam_ExamLessonIBLL.cs
  4. +2
    -2
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Exam_ExamLesson/Exam_ExamLessonService.cs

+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/Exam_ExamLessonController.cs Прегледај датотеку

@@ -140,7 +140,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
{
Exam_ExamLessonEntity entity = strEntity.ToObject<Exam_ExamLessonEntity>();
//判断课程编号有无重复
var model = exam_ExamLessonIBLL.GetEntityByLessonNo(entity.LessonNo);
var model = exam_ExamLessonIBLL.GetEntityByLessonNo(entity.LessonNo,entity.AcademicYearNo,entity.Semester);
if (model != null && string.IsNullOrEmpty(keyValue))
{
return Fail("课程编号重复!");


+ 2
- 2
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Exam_ExamLesson/Exam_ExamLessonBLL.cs Прегледај датотеку

@@ -67,11 +67,11 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
}
}

public Exam_ExamLessonEntity GetEntityByLessonNo(string lessonNo)
public Exam_ExamLessonEntity GetEntityByLessonNo(string lessonNo, string AcademicYearNo, int? Semester)
{
try
{
return exam_ExamLessonService.GetEntityByLessonNo(lessonNo);
return exam_ExamLessonService.GetEntityByLessonNo(lessonNo, AcademicYearNo, Semester);
}
catch (Exception ex)
{


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Exam_ExamLesson/Exam_ExamLessonIBLL.cs Прегледај датотеку

@@ -27,7 +27,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
/// <param name="keyValue">主键</param>
/// <returns></returns>
Exam_ExamLessonEntity GetExam_ExamLessonEntity(string keyValue);
Exam_ExamLessonEntity GetEntityByLessonNo(string lessonNo);
Exam_ExamLessonEntity GetEntityByLessonNo(string lessonNo,string AcademicYearNo, int? Semester);
#endregion

#region 提交数据


+ 2
- 2
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Exam_ExamLesson/Exam_ExamLessonService.cs Прегледај датотеку

@@ -109,11 +109,11 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
/// </summary>
/// <param name="lessonNo"></param>
/// <returns></returns>
public Exam_ExamLessonEntity GetEntityByLessonNo(string lessonNo)
public Exam_ExamLessonEntity GetEntityByLessonNo(string lessonNo, string AcademicYearNo, int? Semester)
{
try
{
return this.BaseRepository("CollegeMIS").FindEntity<Exam_ExamLessonEntity>(x => x.LessonNo == lessonNo);
return this.BaseRepository("CollegeMIS").FindEntity<Exam_ExamLessonEntity>(x => x.LessonNo == lessonNo && x.AcademicYearNo == AcademicYearNo && x.Semester == Semester);
}
catch (Exception ex)
{


Loading…
Откажи
Сачувај