diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TeachingCompetition/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TeachingCompetition/Index.js index 184323123..2d1fed0d9 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TeachingCompetition/Index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TeachingCompetition/Index.js @@ -76,7 +76,7 @@ var bootstrap = function ($, learun) { var keyValue = $('#gridtable').jfGridValue('ID'); selectedRow = $('#gridtable').jfGridGet('rowdata'); if (learun.checkrow(keyValue)) { - if (selectedRow[0].State != 0) { + if (selectedRow.State != 0) { learun.alert.warning("数据异常!"); return; } @@ -96,7 +96,7 @@ var bootstrap = function ($, learun) { $('#lr_school').on('click', function () { var keyValue = $('#gridtable').jfGridValue('ID'); if (learun.checkrow(keyValue)) { - if (selectedRow[0].State != 1) { + if (selectedRow.State != 1) { learun.alert.warning("数据异常!"); return; } @@ -116,7 +116,7 @@ var bootstrap = function ($, learun) { $('#lr_check').on('click', function () { var keyValue = $('#gridtable').jfGridValue('ID'); if (learun.checkrow(keyValue)) { - if (selectedRow[0].State != 2) { + if (selectedRow.State != 2) { learun.alert.warning("请等待审核"); return; } diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/SRPaper/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/SRPaper/Index.js index cc4f350ee..61b8f5a57 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/SRPaper/Index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/SRPaper/Index.js @@ -79,7 +79,7 @@ var bootstrap = function ($, learun) { var keyValue = $('#gridtable').jfGridValue('ID'); selectedRow = $('#gridtable').jfGridGet('rowdata'); if (learun.checkrow(keyValue)) { - if (selectedRow[0].State != 2) { + if (selectedRow.State != 2) { learun.alert.warning("请等待审核"); return; } @@ -105,7 +105,7 @@ var bootstrap = function ($, learun) { learun.alert.warning("只能选择一条记录!"); return; } - if (selectedRow[0].State !=0) { + if (selectedRow.State !=0) { learun.alert.warning("数据异常!"); return; } @@ -131,7 +131,7 @@ var bootstrap = function ($, learun) { return; } - if (selectedRow[0].State != 1) { + if (selectedRow.State != 1) { learun.alert.warning("数据异常!"); return; } diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/SRProject/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/SRProject/Index.js index 3da47cc48..9de4b12a2 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/SRProject/Index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/SRProject/Index.js @@ -79,7 +79,7 @@ var bootstrap = function ($, learun) { var keyValue = $('#gridtable').jfGridValue('ID'); selectedRow = $('#gridtable').jfGridGet('rowdata'); if (learun.checkrow(keyValue)) { - if (selectedRow[0].State != 2) { + if (selectedRow.State != 2) { learun.alert.warning("请等待审核"); return; } @@ -104,7 +104,7 @@ var bootstrap = function ($, learun) { learun.alert.warning("只能选择一条记录!"); return; } - if (selectedRow[0].State != 0) { + if (selectedRow.State != 0) { learun.alert.warning("数据异常!"); return; } @@ -129,7 +129,7 @@ var bootstrap = function ($, learun) { learun.alert.warning("只能选择一条记录!"); return; } - if (selectedRow[0].State != 1) { + if (selectedRow.State != 1) { learun.alert.warning("数据异常!"); return; } diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/SRWork/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/SRWork/Index.js index 81dee1923..0de168707 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/SRWork/Index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/SRWork/Index.js @@ -79,7 +79,7 @@ var bootstrap = function ($, learun) { var keyValue = $('#gridtable').jfGridValue('ID'); selectedRow = $('#gridtable').jfGridGet('rowdata'); if (learun.checkrow(keyValue)) { - if (selectedRow[0].State != 2) { + if (selectedRow.State != 2) { learun.alert.warning("请等待审核"); return; } @@ -104,7 +104,7 @@ var bootstrap = function ($, learun) { learun.alert.warning("只能选择一条记录!"); return; } - if (selectedRow[0].State != 0) { + if (selectedRow.State != 0) { learun.alert.warning("数据异常!"); return; } @@ -129,7 +129,7 @@ var bootstrap = function ($, learun) { learun.alert.warning("只能选择一条记录!"); return; } - if (selectedRow[0].State != 1) { + if (selectedRow.State != 1) { learun.alert.warning("数据异常!"); return; }