|
|
@@ -58,6 +58,14 @@ var bootstrap = function ($, learun) { |
|
|
|
var keyValue = $('#gridtable').jfGridValue('Id'); |
|
|
|
if (learun.checkrow(keyValue)) { |
|
|
|
var CheckStatus = $('#gridtable').jfGridValue('CheckStatus'); |
|
|
|
if (CheckStatus == 2) { |
|
|
|
learun.alert.warning("当前项目已审批通过!"); |
|
|
|
return; |
|
|
|
} |
|
|
|
if (CheckStatus == 3) { |
|
|
|
learun.alert.warning("当前项目未审批通过!"); |
|
|
|
return; |
|
|
|
} |
|
|
|
if (CheckStatus != 0) { |
|
|
|
learun.alert.warning("当前项目已提交,无法编辑!"); |
|
|
|
return; |
|
|
@@ -88,6 +96,14 @@ var bootstrap = function ($, learun) { |
|
|
|
var keyValue = $('#gridtable').jfGridValue('Id'); |
|
|
|
if (learun.checkrow(keyValue)) { |
|
|
|
var CheckStatus = $('#gridtable').jfGridValue('CheckStatus'); |
|
|
|
if (CheckStatus == 2) { |
|
|
|
learun.alert.warning("当前项目已审批通过!"); |
|
|
|
return; |
|
|
|
} |
|
|
|
if (CheckStatus == 3) { |
|
|
|
learun.alert.warning("当前项目未审批通过!"); |
|
|
|
return; |
|
|
|
} |
|
|
|
if (CheckStatus != 0) { |
|
|
|
learun.alert.warning("当前项目已提交,无法删除!"); |
|
|
|
return; |
|
|
@@ -106,6 +122,14 @@ var bootstrap = function ($, learun) { |
|
|
|
var keyValue = $('#gridtable').jfGridValue('Id'); |
|
|
|
if (learun.checkrow(keyValue)) { |
|
|
|
var CheckStatus = $('#gridtable').jfGridValue('CheckStatus'); |
|
|
|
if (CheckStatus == 2) { |
|
|
|
learun.alert.warning("当前项目已审批通过!"); |
|
|
|
return; |
|
|
|
} |
|
|
|
if (CheckStatus == 3) { |
|
|
|
learun.alert.warning("当前项目未审批通过!"); |
|
|
|
return; |
|
|
|
} |
|
|
|
if (CheckStatus != 0) { |
|
|
|
learun.alert.warning("当前项目已提交,请耐心等待审批!"); |
|
|
|
return; |
|
|
|