diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StuTransferInfoController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StuTransferInfoController.cs index ce2cb140d..d210bccf0 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StuTransferInfoController.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StuTransferInfoController.cs @@ -64,7 +64,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers { return View(); } - + /// /// 退学页 /// @@ -181,7 +181,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers /// 实体 /// [HttpPost] - [ValidateAntiForgeryToken] + //[ValidateAntiForgeryToken] [AjaxOnly] public ActionResult SaveForm(StuTransferInfoEntity entity, string strStuEntity) { diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/MajorIndex.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/MajorIndex.cshtml index 5222f8029..1c531168b 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/MajorIndex.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/MajorIndex.cshtml @@ -86,14 +86,14 @@
专业*
-
-
班级*
-
-
年级*
+
+
班级*
+
+
入班日期*
@@ -104,7 +104,7 @@
异动类型*
-
+
保留学籍*
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 06fd384ed..811d8bf3f 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 @@ -234,7 +234,8 @@ var bootstrap = function ($, learun) { value: "classno", text: "classname" }); - $('#AnomalousType').lrDataItemSelect({ code: 'StuChangeType'}); + $('#AnomalousType').lrDataItemSelect({ code: 'StuChangeType' }); + $('#AnomalousType').lrselectSet("01"); $('#StuStatus').lrDataItemSelect({ code: 'YesOrNoInt' }); // 刷新 @@ -412,7 +413,18 @@ var bootstrap = function ($, learun) { mainId: 'AAIId', }); $('#subbtn').on('click', function () { - console.log('123') + //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(); + } + }); }) }, // 初始化列表 @@ -807,7 +819,7 @@ var bootstrap = function ($, learun) { isPage: true, rows: 100, isMultiselect: true, - onSelectRow: function (rowdata,type) { + onSelectRow: function (rowdata, type) { console.log(rowdata) console.log(type) @@ -831,7 +843,7 @@ var bootstrap = function ($, learun) { $('#selgridtab').jfGridSet('refreshdata', tempdatra); } - + } });