From fc8f3ce02e8649eddb6c044313deebf69116991b Mon Sep 17 00:00:00 2001 From: ndbs Date: Tue, 7 Feb 2023 14:24:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=A6=E7=B1=8D=E7=A7=BB=E5=8A=A8=E5=AE=A1?= =?UTF-8?q?=E6=A0=B8=E6=9F=A5=E7=9C=8B=20=E5=8F=AA=E8=83=BD=E6=9F=A5?= =?UTF-8?q?=E7=9C=8B=E5=B7=B2=E5=AE=A1=E6=A0=B8=20=E5=8F=8B=E5=A5=BD?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Views/StuTransferInfo/CheckIndex.js | 7 ++++++- .../Views/StuTransferInfo/Index.js | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/CheckIndex.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/CheckIndex.js index bd8c60e57..add12ede2 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/CheckIndex.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/CheckIndex.js @@ -82,7 +82,12 @@ var bootstrap = function ($, learun) { var keyValue = $('#gridtable').jfGridValue('ID'); if (learun.checkrow(keyValue)) { if (keyValue.indexOf(',') != -1) { - learun.alert.warning("只能选择一条记录进行编辑!"); + learun.alert.warning("只能选择一条记录进行查看!"); + return; + } + var CheckMark = $('#gridtable').jfGridValue('F_EnabledMark'); + if (CheckMark.indexOf('0') != -1) { + learun.alert.warning("请选择已生效项进行查看!"); return; } learun.layerForm({ diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/Index.js index 261b8457c..0468871f7 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/Index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/Index.js @@ -106,7 +106,7 @@ var bootstrap = function ($, learun) { var keyValue = $('#gridtable').jfGridValue('ID'); if (learun.checkrow(keyValue)) { if (keyValue.indexOf(',') != -1) { - learun.alert.warning("只能选择一条记录进行编辑!"); + learun.alert.warning("只能选择一条记录进行查看!"); return; } learun.layerForm({