Bläddra i källkod

排考课程审核

西昌缴费二期
zhangli 2 år sedan
förälder
incheckning
e345dc28cd
6 ändrade filer med 93 tillägg och 11 borttagningar
  1. +11
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/Exam_ExamPlanLessonController.cs
  2. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Exam_ExamPlanLesson/Index.cshtml
  3. +75
    -3
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Exam_ExamPlanLesson/Index.js
  4. +2
    -2
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Exam_ExamPlanLesson/Exam_ExamPlanLessonBLL.cs
  5. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Exam_ExamPlanLesson/Exam_ExamPlanLessonIBLL.cs
  6. +3
    -3
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Exam_ExamPlanLesson/Exam_ExamPlanLessonService.cs

+ 11
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/Exam_ExamPlanLessonController.cs Visa fil

@@ -191,9 +191,18 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
/// <returns></returns>
[HttpPost]
[AjaxOnly]
public ActionResult Check(string keyValue)
public ActionResult Check(string keyValue, int ELCheckMark)
{
exam_ExamPlanLessonIBLL.Check(keyValue);
if (ELCheckMark == 1)
{
var entity = exam_ExamPlanLessonIBLL.GetExam_ExamPlanLessonEntity(keyValue);
if (entity.SeatCount < entity.RealStuCount)
{
return Fail("考场座位数不足!");
}
}

exam_ExamPlanLessonIBLL.Check(keyValue, ELCheckMark);
return Success("审核成功!");
}
/// <summary>


+ 1
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Exam_ExamPlanLesson/Index.cshtml Visa fil

@@ -51,6 +51,7 @@
<div class=" btn-group btn-group-sm" learun-authorize="yes">
<a id="lr_ExamTime" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;设置考试时间</a>
<a id="lr_check" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;审核</a>
<a id="lr_nocheck" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;去审</a>
<a id="lr_print" class="btn btn-default"><i class="fa fa-print"></i>&nbsp;打印</a>
</div>
</div>


+ 75
- 3
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Exam_ExamPlanLesson/Index.js Visa fil

@@ -9,6 +9,7 @@ var refreshGirdData;
var EPId = request('EPId');
//安排课程表Id
var EPLId;
var ELCheckMark;
var bootstrap = function ($, learun) {
"use strict";
var page = {
@@ -23,8 +24,11 @@ var bootstrap = function ($, learun) {
nodeClick: function (item) {
//安排课程表ID(Exam_ExamPlanLesson)
EPLId = item.id;
//显示考试时间
page.show(EPLId);
page.search({ EPLId: item.id });

$('#titleinfo').html(item.text);
}
});
// 刷新
@@ -48,9 +52,43 @@ var bootstrap = function ($, learun) {
return learun.alert.warning("请选择考试课程!");
}
});
//审核
$('#lr_check').on('click', function () {
if (!!EPLId) {
if (ELCheckMark == 1) {
return learun.alert.warning('该项已审核!');
}
learun.layerConfirm('是否确认审核!', function (res) {
if (res) {
learun.postForm(top.$.rootUrl + '/EducationalAdministration/Exam_ExamPlanLesson/Check', { keyValue: EPLId, ELCheckMark: 1 }, function () {
refreshGirdData();
});
}
});
} else {
return learun.alert.warning("请选择考试课程!");
}
});
//去审核
$('#lr_nocheck').on('click', function () {
if (!!EPLId) {
learun.layerConfirm('是否确认去审核!', function (res) {
if (res) {
learun.postForm(top.$.rootUrl + '/EducationalAdministration/Exam_ExamPlanLesson/Check', { keyValue: EPLId, ELCheckMark: 0 }, function () {
refreshGirdData();
});
}
});
} else {
return learun.alert.warning("请选择考试课程!");
}
});
//班级 新增
$('#lr_add_Class').on('click', function () {
if (!!EPLId) {
if (ELCheckMark == 1) {
return learun.alert.warning("该项已审核!");
}
learun.layerForm({
id: 'formclass',
title: '新增班级',
@@ -69,6 +107,9 @@ var bootstrap = function ($, learun) {
$('#lr_delete_Class').on('click', function () {
var keyValue = $('#gridtable_Class').jfGridValue('EPCId');
if (learun.checkrow(keyValue)) {
if (ELCheckMark == 1) {
return learun.alert.warning("该项已审核!");
}
learun.layerConfirm('是否确认删除选中记录!', function (res) {
if (res) {
learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/Exam_ExamPlanLesson/DeleteClass', { keyValue: keyValue }, function () {
@@ -78,10 +119,13 @@ var bootstrap = function ($, learun) {
});
}
});
//考场 新增
$('#lr_add_Room').on('click', function () {
if (!!EPLId) {
if (ELCheckMark == 1) {
return learun.alert.warning("该项已审核!");
}
learun.layerForm({
id: 'formroom',
title: '新增考场',
@@ -101,6 +145,9 @@ var bootstrap = function ($, learun) {
$('#lr_delete_Room').on('click', function () {
var keyValue = $('#gridtable_Room').jfGridValue('EPRId');
if (learun.checkrow(keyValue)) {
if (ELCheckMark == 1) {
return learun.alert.warning("该项已审核!");
}
learun.layerConfirm('是否确认删除选中记录!', function (res) {
if (res) {
learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/Exam_ExamPlanLesson/DeleteRoom', { keyValue: keyValue }, function () {
@@ -158,8 +205,33 @@ var bootstrap = function ($, learun) {
var res = learun.httpGet(top.$.rootUrl + '/EducationalAdministration/Exam_ExamPlanLesson/GetFormData?keyValue=' + EPLId);

var data = res.data.Exam_ExamPlanLesson;
$('#examDate').html(learun.formatDate(data.ExamDate, 'yyyy-MM-dd'));
$('#examTime').html(data.ExamTime);
ELCheckMark = data.ELCheckMark;
if (!!data.ExamDate) {
$('#examDate').html(learun.formatDate(data.ExamDate, 'yyyy-MM-dd'));
$('#examTime').html(data.ExamTime);
} else {
$('#examDate').html('');
$('#examTime').html('');
//未设置考试时间
learun.layerConfirm('请先设置考试时间!', function (res) {
if (res) {
if (!!EPLId) {
learun.layerForm({
id: 'form',
title: '设置考试时间',
url: top.$.rootUrl + '/EducationalAdministration/Exam_ExamPlanLesson/Form?keyValue=' + EPLId,
width: 600,
height: 400,
callBack: function (id) {
return top[id].acceptClick(refreshGirdData);
}
});
} else {
return learun.alert.warning("请选择考试课程!");
}
}
});
}
}
}
};


+ 2
- 2
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Exam_ExamPlanLesson/Exam_ExamPlanLessonBLL.cs Visa fil

@@ -137,11 +137,11 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
/// 审核
/// </summary>
/// <param name="keyValue">主键</param>
public void Check(string keyValue)
public void Check(string keyValue,int ELCheckMark)
{
try
{
exam_ExamPlanLessonService.Check(keyValue);
exam_ExamPlanLessonService.Check(keyValue, ELCheckMark);
}
catch (Exception ex)
{


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Exam_ExamPlanLesson/Exam_ExamPlanLessonIBLL.cs Visa fil

@@ -41,7 +41,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
/// </summary>
/// <param name="keyValue">主键</param>
void DeleteEntity(string keyValue);
void Check(string keyValue);
void Check(string keyValue,int ELCheckMark);
void InitExamPlanLesson(string EPId);
/// <summary>
/// 保存实体数据(新增、修改)


+ 3
- 3
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Exam_ExamPlanLesson/Exam_ExamPlanLessonService.cs Visa fil

@@ -141,12 +141,12 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
/// 审核
/// </summary>
/// <param name="keyValue"></param>
public void Check(string keyValue)
public void Check(string keyValue, int ELCheckMark)
{
try
{
//未完成
//this.BaseRepository("CollegeMIS").Delete<Exam_ExamPlanLessonEntity>(t => t.EPLId == keyValue);
string sql = $"update Exam_ExamPlanLesson set ELCheckMark='{ELCheckMark}' where EPLId='{keyValue}'";
this.BaseRepository("CollegeMIS").ExecuteBySql(sql);
}
catch (Exception ex)
{


Laddar…
Avbryt
Spara