Pārlūkot izejas kodu

学籍异动 转专业提交事件2

新疆警官学校中职
ndbs pirms 1 gada
vecāks
revīzija
dd8387f011
2 mainītis faili ar 14 papildinājumiem un 11 dzēšanām
  1. +12
    -11
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/MajorIndex.js
  2. +2
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuTransferInfo/StuTransferInfoService.cs

+ 12
- 11
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/MajorIndex.js Parādīt failu

@@ -413,18 +413,19 @@ var bootstrap = function ($, learun) {
mainId: 'AAIId', mainId: 'AAIId',
}); });
$('#subbtn').on('click', function () { $('#subbtn').on('click', function () {
//if (!$('body').lrValidform()) {
// return false;
//}
if (!$('body').lrValidform()) {
return false;
}
var entity = $('body').lrGetFormData(); var entity = $('body').lrGetFormData();
var strStuEntity = $('#selgridtab').jfGridGet('rowdatas');

$.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/StuTransferInfo/SaveForm?entity=' + entity, strStuEntity, function (res) {
// 保存成功后才回调
if (!!callBack) {
callBack();
}
});
var selgridtab = $('#selgridtab').jfGridGet('rowdatas');
$.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/StuTransferInfo/SaveForm', { entity: entity, strStuEntity: JSON.stringify(selgridtab) },
//function (res) {
// // 保存成功后才回调
// if (!!callBack) {
// callBack(res);
// }
//}
);
}) })
}, },
// 初始化列表 // 初始化列表


+ 2
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuTransferInfo/StuTransferInfoService.cs Parādīt failu

@@ -226,6 +226,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
{ {
var InsertEntity = new StuTransferInfoEntity(); var InsertEntity = new StuTransferInfoEntity();
//历史数据 //历史数据
//InsertEntity.ID = Guid.NewGuid().ToString();
InsertEntity.StuId = item.StuId; InsertEntity.StuId = item.StuId;
InsertEntity.StuNo = item.StuNo; InsertEntity.StuNo = item.StuNo;
InsertEntity.StuName = item.StuName; InsertEntity.StuName = item.StuName;
@@ -249,6 +250,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
InsertEntity.StuStatus = entity.StuStatus; InsertEntity.StuStatus = entity.StuStatus;
InsertEntity.F_WriteMark = entity.F_WriteMark; InsertEntity.F_WriteMark = entity.F_WriteMark;


InsertEntity.Create();
//添加数据 //添加数据
entitylist.Add(InsertEntity); entitylist.Add(InsertEntity);
} }


Notiek ielāde…
Atcelt
Saglabāt