From dd8387f01153ba5a289493cc4dbe061f04845b46 Mon Sep 17 00:00:00 2001 From: ndbs Date: Mon, 30 Jan 2023 17:47:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=A6=E7=B1=8D=E5=BC=82=E5=8A=A8=20?= =?UTF-8?q?=E8=BD=AC=E4=B8=93=E4=B8=9A=E6=8F=90=E4=BA=A4=E4=BA=8B=E4=BB=B6?= =?UTF-8?q?2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Views/StuTransferInfo/MajorIndex.js | 23 ++++++++++--------- .../StuTransferInfo/StuTransferInfoService.cs | 2 ++ 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/MajorIndex.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/MajorIndex.js index 811d8bf3f..a719087ad 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/MajorIndex.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/MajorIndex.js @@ -413,18 +413,19 @@ var bootstrap = function ($, learun) { mainId: 'AAIId', }); $('#subbtn').on('click', function () { - //if (!$('body').lrValidform()) { - // return false; - //} + if (!$('body').lrValidform()) { + return false; + } 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); + // } + //} + ); }) }, // 初始化列表 diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuTransferInfo/StuTransferInfoService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuTransferInfo/StuTransferInfoService.cs index 31532efab..0cc74429f 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuTransferInfo/StuTransferInfoService.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuTransferInfo/StuTransferInfoService.cs @@ -226,6 +226,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration { var InsertEntity = new StuTransferInfoEntity(); //历史数据 + //InsertEntity.ID = Guid.NewGuid().ToString(); InsertEntity.StuId = item.StuId; InsertEntity.StuNo = item.StuNo; InsertEntity.StuName = item.StuName; @@ -249,6 +250,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration InsertEntity.StuStatus = entity.StuStatus; InsertEntity.F_WriteMark = entity.F_WriteMark; + InsertEntity.Create(); //添加数据 entitylist.Add(InsertEntity); }