Browse Source

选修课程 初始化学生选课记录

新疆影视学院高职
zhangli 2 years ago
parent
commit
db7be2b000
6 changed files with 49 additions and 5 deletions
  1. +3
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/OpenLessonPlanOfElectiveController.cs
  2. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/OpenLessonPlanOfElective/MergeIndex.cshtml
  3. +2
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/OpenLessonPlanOfElective/MergeIndex.js
  4. +18
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/OpenLessonPlanOfElective/OpenLessonPlanOfElectiveBLL.cs
  5. +2
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/OpenLessonPlanOfElective/OpenLessonPlanOfElectiveIBLL.cs
  6. +23
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/OpenLessonPlanOfElective/OpenLessonPlanOfElectiveService.cs

+ 3
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/OpenLessonPlanOfElectiveController.cs View File

@@ -769,9 +769,10 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
/// 初始化学生选课记录
/// </summary>
/// <returns></returns>
public ActionResult InitStuMajor()
public ActionResult InitStuSelectLesson(string keyvalue)
{
return Success("初始化成功!");
openLessonPlanOfElectiveIBLL.InitStuSelectLesson(keyvalue);
return Success("操作成功!");
}
#endregion



+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/OpenLessonPlanOfElective/MergeIndex.cshtml View File

@@ -37,7 +37,7 @@
<div class=" btn-group btn-group-sm" learun-authorize="yes">
@*<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;新增</a>*@
<a id="lr_editMajor" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;管理选课专业</a>
@*<a id="lr_stuMajor" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;初始化学生选课记录</a>*@
@*<a id="lr_initStuSelectLesson" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;初始化学生选课记录</a>*@
<a id="lr_edit" class="btn btn-default"><i class="fa fa-group"></i>&nbsp;设置人数</a>
<a id="lr_modify" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;异动</a>
</div>


+ 2
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/OpenLessonPlanOfElective/MergeIndex.js View File

@@ -173,7 +173,7 @@ var bootstrap = function ($, learun) {
});
//初始化学生选课记录
$('#lr_stuMajor').on('click', function () {
$('#lr_initStuSelectLesson').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('Id');
if (learun.checkrow(keyValue)) {
//选课专业
@@ -183,7 +183,7 @@ var bootstrap = function ($, learun) {
}
learun.layerConfirm('是否确认初始化学生选课记录!', function (res) {
if (res) {
learun.postForm(top.$.rootUrl + '/EducationalAdministration/OpenLessonPlanOfElective/InitStuMajor', { keyValue: keyValue }, function () {
learun.postForm(top.$.rootUrl + '/EducationalAdministration/OpenLessonPlanOfElective/InitStuSelectLesson', { keyValue: keyValue }, function () {
refreshGirdData();
});
}


+ 18
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/OpenLessonPlanOfElective/OpenLessonPlanOfElectiveBLL.cs View File

@@ -230,6 +230,24 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
}
}

public void InitStuSelectLesson(string keyvalue)
{
try
{
openLessonPlanOfElectiveService.InitStuSelectLesson(keyvalue);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
#endregion

}


+ 2
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/OpenLessonPlanOfElective/OpenLessonPlanOfElectiveIBLL.cs View File

@@ -69,6 +69,8 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
/// <summary>
/// <returns></returns>
void DoElectiveChange(OpenLessonPlanOfElectiveChangeEntity entity);
void InitStuSelectLesson(string keyvalue);

#endregion



+ 23
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/OpenLessonPlanOfElective/OpenLessonPlanOfElectiveService.cs View File

@@ -510,6 +510,29 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
}
}

/// <summary>
/// 初始化学生选课情况
/// </summary>
/// <param name="keyvalue"></param>
public void InitStuSelectLesson(string keyvalue)
{
try
{

}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

#endregion
}
}

Loading…
Cancel
Save