Quellcode durchsuchen

选修课课程列表按学年、学期、课程名称排序;查看已审学生页面增加“批量拒绝”按钮;

大厂分支
dyy vor 4 Jahren
Ursprung
Commit
766463cf31
15 geänderte Dateien mit 142 neuen und 18 gelöschten Zeilen
  1. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/OpenLessonPlanOfElectiveController.cs
  2. +28
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StuSelectLessonListOfElectiveController.cs
  3. +15
    -12
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/OpenLessonPlanOfElective/MergeIndex.js
  4. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuSelectLessonListOfElective/AuditIndex.cshtml
  5. +2
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuSelectLessonListOfElective/AuditIndex.js
  6. +3
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuSelectLessonListOfElective/FinishIndex.cshtml
  7. +15
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuSelectLessonListOfElective/FinishIndex.js
  8. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuSelectLessonListOfElectivePre/AuditIndex.cshtml
  9. +2
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuSelectLessonListOfElectivePre/AuditIndex.js
  10. +3
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuSelectLessonListOfElectivePre/FinishIndex.cshtml
  11. +15
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuSelectLessonListOfElectivePre/FinishIndex.js
  12. +0
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Views/LR_Content/plugin/grid/jfgrid.js
  13. +18
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuSelectLessonListOfElective/StuSelectLessonListOfElectiveBLL.cs
  14. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuSelectLessonListOfElective/StuSelectLessonListOfElectiveIBLL.cs
  15. +37
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuSelectLessonListOfElective/StuSelectLessonListOfElectiveService.cs

+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/OpenLessonPlanOfElectiveController.cs Datei anzeigen

@@ -108,7 +108,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
public ActionResult GetPageListOfMerge(string pagination, string queryJson)
{
Pagination paginationobj = pagination.ToObject<Pagination>();
var data = openLessonPlanOfElectiveIBLL.GetPageListOfMerge(paginationobj, queryJson).OrderByDescending(x => x.AcademicYearNo).ThenByDescending(x => x.Semester).ThenBy(x => x.LessonNo);
var data = openLessonPlanOfElectiveIBLL.GetPageListOfMerge(paginationobj, queryJson);
var jsonData = new
{
rows = data,


+ 28
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StuSelectLessonListOfElectiveController.cs Datei anzeigen

@@ -157,6 +157,12 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
}
return Success("操作成功!");
}
/// <summary>
/// 批量拒绝【审核学生页面】
/// </summary>
/// <param name="keyValue"></param>
/// <param name="OLPEId"></param>
/// <returns></returns>
[HttpPost]
[AjaxOnly]
public ActionResult UnPass(string keyValue, string OLPEId)
@@ -174,6 +180,28 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
return Success("操作成功!");
}
/// <summary>
/// 批量拒绝【已审学生页面】
/// </summary>
/// <param name="keyValue"></param>
/// <param name="OLPEId"></param>
/// <returns></returns>
[HttpPost]
[AjaxOnly]
public ActionResult UnPassOfFinish(string keyValue, string OLPEId)
{
var stulist = keyValue.Split(',');
var olpentity = openLessonPlanOfElectiveIBLL.GetOpenLessonPlanOfElectiveEntity(OLPEId);
if (olpentity != null)
{
stuSelectLessonListOfElectiveIBLL.UnPassOfFinish(stulist, olpentity);
}
else
{
return Fail("当前选课数据不存在!");
}
return Success("操作成功!");
}
/// <summary>
/// 保存实体数据(新增、修改)
/// <param name="keyValue">主键</param>
/// <summary>


+ 15
- 12
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/OpenLessonPlanOfElective/MergeIndex.js Datei anzeigen

@@ -162,18 +162,21 @@ var bootstrap = function ($, learun) {
{ label: "学年", name: "AcademicYearNo", width: 45, align: "left" },
{ label: "学期", name: "Semester", width: 35, align: "left" },
{ label: "课程号", name: "LessonNo", width: 70, align: "left" },
//{
// label: "课程名称", name: "LessonNo2", width: 170, align: "left",
// formatterAsync: function (callback, value, row, op, $cell) {
// learun.clientdata.getAsync('custmerData', {
// url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'LessonInfo',
// key: value,
// keyId: 'lessonno',
// callback: function (_data) {
// callback(_data['lessonname']);
// }
// });
// }
//},
{
label: "课程名称", name: "LessonNo2", width: 170, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('custmerData', {
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'LessonInfo',
key: value,
keyId: 'lessonno',
callback: function (_data) {
callback(_data['lessonname']);
}
});
}
label: "课程名称", name: "LessonName", width: 170, align: "left"
},
{
label: "上课节次", name: "LessonSection", width: 100, align: "left",
@@ -233,7 +236,7 @@ var bootstrap = function ($, learun) {
],
mainId: 'Id',
isPage: true,
sidx: 'AcademicYearNo,Semester',
sidx: 'AcademicYearNo DESC, Semester DESC, LessonName ASC',
sord: 'desc'
});
page.search();


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuSelectLessonListOfElective/AuditIndex.cshtml Datei anzeigen

@@ -28,7 +28,7 @@
</div>
<div class=" btn-group btn-group-sm" learun-authorize="">
<a id="lr_audit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;单个审核</a>
<a id="lr_auditpass" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;批量审核</a>
<a id="lr_auditpass" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;批量审核通过</a>
<a id="lr_auditunpass" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;批量拒绝</a>
</div>
</div>


+ 2
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuSelectLessonListOfElective/AuditIndex.js Datei anzeigen

@@ -46,7 +46,7 @@ var bootstrap = function ($, learun) {
});
}
});
//批量审核
//批量审核通过
$('#lr_auditpass').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('Id');
if (learun.checkrow(keyValue)) {
@@ -59,6 +59,7 @@ var bootstrap = function ($, learun) {
});
}
});
//批量拒绝
$('#lr_auditunpass').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('Id');
if (learun.checkrow(keyValue)) {


+ 3
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuSelectLessonListOfElective/FinishIndex.cshtml Datei anzeigen

@@ -26,6 +26,9 @@
<div class=" btn-group btn-group-sm">
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a>
</div>
<div class=" btn-group btn-group-sm" learun-authorize="">
<a id="lr_auditunpass" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;批量拒绝</a>
</div>
</div>
</div>
<div class="lr-layout-body" id="gridtable"></div>


+ 15
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuSelectLessonListOfElective/FinishIndex.js Datei anzeigen

@@ -21,6 +21,20 @@ var bootstrap = function ($, learun) {
$('#lr_refresh').on('click', function () {
location.reload();
});

//批量拒绝
$('#lr_auditunpass').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('Id');
if (learun.checkrow(keyValue)) {
learun.layerConfirm('是否确认拒绝?', function (res) {
if (res) {
learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/StuSelectLessonListOfElective/UnPassOfFinish', { keyValue: keyValue, OLPEId: OLPEId }, function () {
refreshGirdData();
});
}
});
}
});
},
// 初始化列表
initGird: function () {
@@ -71,6 +85,7 @@ var bootstrap = function ($, learun) {
],
mainId:'Id',
isPage: true,
isMultiselect: true,
sidx: 'StuNo',
sord:'asc'
});


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuSelectLessonListOfElectivePre/AuditIndex.cshtml Datei anzeigen

@@ -28,7 +28,7 @@
</div>
<div class=" btn-group btn-group-sm" learun-authorize="">
<a id="lr_audit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;单个审核</a>
<a id="lr_auditpass" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;批量审核</a>
<a id="lr_auditpass" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;批量审核通过</a>
<a id="lr_auditunpass" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;批量拒绝</a>
</div>
</div>


+ 2
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuSelectLessonListOfElectivePre/AuditIndex.js Datei anzeigen

@@ -46,7 +46,7 @@ var bootstrap = function ($, learun) {
});
}
});
//批量审核
//批量审核通过
$('#lr_auditpass').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('Id');
if (learun.checkrow(keyValue)) {
@@ -59,6 +59,7 @@ var bootstrap = function ($, learun) {
});
}
});
//批量拒绝
$('#lr_auditunpass').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('Id');
if (learun.checkrow(keyValue)) {


+ 3
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuSelectLessonListOfElectivePre/FinishIndex.cshtml Datei anzeigen

@@ -26,6 +26,9 @@
<div class=" btn-group btn-group-sm">
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a>
</div>
<div class=" btn-group btn-group-sm" learun-authorize="">
<a id="lr_auditunpass" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;批量拒绝</a>
</div>
</div>
</div>
<div class="lr-layout-body" id="gridtable"></div>


+ 15
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuSelectLessonListOfElectivePre/FinishIndex.js Datei anzeigen

@@ -21,6 +21,20 @@ var bootstrap = function ($, learun) {
$('#lr_refresh').on('click', function () {
location.reload();
});

//批量拒绝
$('#lr_auditunpass').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('Id');
if (learun.checkrow(keyValue)) {
learun.layerConfirm('是否确认拒绝?', function (res) {
if (res) {
learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/StuSelectLessonListOfElectivePre/UnPass', { keyValue: keyValue, OLPEId: OLPEId }, function () {
refreshGirdData();
});
}
});
}
});
},
// 初始化列表
initGird: function () {
@@ -71,6 +85,7 @@ var bootstrap = function ($, learun) {
],
mainId:'Id',
isPage: true,
isMultiselect: true,
sidx: 'StuNo',
sord:'asc'
});


+ 0
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Views/LR_Content/plugin/grid/jfgrid.js Datei anzeigen

@@ -1545,7 +1545,6 @@

}
}
console.log(head);
},
// 单击行
clickRow: function ($self, $et, op) {


+ 18
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuSelectLessonListOfElective/StuSelectLessonListOfElectiveBLL.cs Datei anzeigen

@@ -242,6 +242,24 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
}
}
}
public void UnPassOfFinish(string[] stulist, OpenLessonPlanOfElectiveEntity olpentity)
{
try
{
stuSelectLessonListOfElectiveService.UnPassOfFinish(stulist, olpentity);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}

public IEnumerable<StuSelectLessonListOfElectiveEntity> GetAllElectiveLesson(string academicYearNo, string semester)
{


+ 1
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuSelectLessonListOfElective/StuSelectLessonListOfElectiveIBLL.cs Datei anzeigen

@@ -70,6 +70,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
IEnumerable<StuSelectLessonListOfElectiveEntity> GetQueryStuSelectResultList(Pagination pagination, string queryJson);
void Pass(string[] stulist, OpenLessonPlanOfElectiveEntity olpentity);
void UnPass(string[] stulist, OpenLessonPlanOfElectiveEntity olpentity);
void UnPassOfFinish(string[] stulist, OpenLessonPlanOfElectiveEntity olpentity);
IEnumerable<StuSelectLessonListOfElectiveEntity> GetAllElectiveLesson(string academicYearNo, string semester);
}
}

+ 37
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuSelectLessonListOfElective/StuSelectLessonListOfElectiveService.cs Datei anzeigen

@@ -243,6 +243,43 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
}
}
}
public void UnPassOfFinish(string[] stulist, OpenLessonPlanOfElectiveEntity olpentity)
{
var db = BaseRepository("CollegeMIS");
try
{
db.BeginTrans();
int count = 0;//待拒绝学生数量
foreach (var item in stulist)
{
var model = db.FindEntity<StuSelectLessonListOfElectiveEntity>(item);
if (model != null)
{
count++;
db.ExecuteBySql("update StuSelectLessonListOfElective set Status=3 where Id='" + item + "'");
}
}
//修改OpenLessonPlanOfElective通过人数
if (count > 0)
{
olpentity.StuNum = olpentity.StuNum - count;
db.Update(olpentity);
}
db.Commit();
}
catch (Exception ex)
{
db.Rollback();
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

#endregion



Laden…
Abbrechen
Speichern