Browse Source

处理学籍异动 转班提示错误的问题

新疆影视学院高职^2
zhangli 2 years ago
parent
commit
882a669ec6
3 changed files with 28 additions and 13 deletions
  1. +3
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StuInfoBasicChangeController.cs
  2. +21
    -11
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasicChange/Form.js
  3. +4
    -1
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasicChange/StuInfoBasicChangeEntity.cs

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

@@ -17,6 +17,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
public class StuInfoBasicChangeController : MvcControllerBase
{
private StuInfoBasicChangeIBLL stuInfoBasicChangeIBLL = new StuInfoBasicChangeBLL();
private StuInfoBasicIBLL stuInfoBasicIBLL = new StuInfoBasicBLL();

#region 视图功能

@@ -80,6 +81,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
public ActionResult GetFormData(string keyValue)
{
var StuInfoBasicChangeData = stuInfoBasicChangeIBLL.GetStuInfoBasicChangeEntity(keyValue);
StuInfoBasicChangeData.Grade = stuInfoBasicIBLL.GetStuInfoBasicEntityByStuNo(StuInfoBasicChangeData.StuNo)?.Grade;
var jsonData = new
{
StuInfoBasicChange = StuInfoBasicChangeData,
@@ -122,7 +124,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
stuInfoBasicChangeIBLL.SaveEntity(keyValue, entity);
return Success("保存成功!");
}
/// <summary>
/// 审核实体数据
/// <param name="keyValue">主键</param>


+ 21
- 11
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasicChange/Form.js View File

@@ -5,6 +5,7 @@
* 描 述:学籍异动
*/
var acceptClick;
var Grade;
var keyValue = request('keyValue');
var bootstrap = function ($, learun) {
"use strict";
@@ -65,29 +66,36 @@ var bootstrap = function ($, learun) {
param: { strWhere: "deptno='" + item.deptno + "' AND CheckMark=1 order by majorno" }
});
} else {
$('#NewMajorNo').lrselectRefresh({
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo',
param: { strWhere: "CheckMark=1 order by majorno" }
});
//$('#NewMajorNo').lrselectRefresh({
// url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo',
// param: { strWhere: "CheckMark=1 order by majorno" }
//});
}
}
});
$('#NewMajorNo').lrDataSourceSelect({
code: 'CdMajorInfo', value: 'majorno', text: 'majorname', select: function (item) {
if (item != null && item != undefined) {
var gradeWhere = '';
if (!!Grade) {
gradeWhere = " and Grade='" + Grade + "'";
}
$('#NewClassNo').lrselectRefresh({
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj',
param: { strWhere: "MajorNo='" + item.majorno + "' AND CheckMark=1 order by classno" }
param: { strWhere: "MajorNo='" + item.majorno + "' AND CheckMark=1" + gradeWhere+" order by classno" }
});
} else {
$('#NewClassNo').lrselectRefresh({
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj',
param: { strWhere: "CheckMark=1 order by classno" }
});
//$('#NewClassNo').lrselectRefresh({
// url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj',
// param: { strWhere: "CheckMark=1 order by classno" }
//});
}
}
});
$('#NewClassNo').lrDataSourceSelect({ code: 'bjsj', value: 'classno', text: 'classname' });
$('#NewClassNo').lrselect({
value: 'classno', text: 'classname'
});
//$('#NewClassNo').lrDataSourceSelect({ code: 'bjsj', value: 'classno', text: 'classname' });
//监听学号
$("#StuNo").on('blur', function () {
var StuNo = $(this).val();
@@ -99,6 +107,7 @@ var bootstrap = function ($, learun) {
$("#DeptNo").lrselectSet(data.DeptNo);
$("#MajorNo").lrselectSet(data.MajorNo);
$("#ClassNo").lrselectSet(data.ClassNo);
Grade = data.Grade;
} else {
learun.alert.warning("学生不存在!");
//return false;
@@ -117,6 +126,7 @@ var bootstrap = function ($, learun) {
$("#DeptNo").lrselectSet(data.DeptNo);
$("#MajorNo").lrselectSet(data.MajorNo);
$("#ClassNo").lrselectSet(data.ClassNo);
Grade = data.Grade;
} else {
learun.alert.warning("学生不存在!");
return false;
@@ -139,7 +149,7 @@ var bootstrap = function ($, learun) {
}
else {
$('[data-table="' + id + '"]').lrSetFormData(data[id]);
Grade = data[id].Grade;
$(".NewContainer").find('.contentDiv').attr("isvalid", "yes");
$(".NewContainer").find('.contentDiv').attr("checkexpession", "NotNull");
$(".NewContainer").find('.contentDiv').attr('readonly', 'readonly');


+ 4
- 1
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasicChange/StuInfoBasicChangeEntity.cs View File

@@ -11,7 +11,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
/// 日 期:2019-10-28 11:48
/// 描 述:学籍异动
/// </summary>
public class StuInfoBasicChangeEntity
public class StuInfoBasicChangeEntity
{
#region 实体成员
/// <summary>
@@ -119,6 +119,9 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
}
#endregion
#region 扩展字段
[NotMapped]
public string Grade { get; set; }

#endregion
}
}


Loading…
Cancel
Save