|
|
@@ -78,14 +78,14 @@ var bootstrap = function ($, learun) { |
|
|
|
$('#lr_cancel').on('click', function () { |
|
|
|
var keyValue = $('#gridtable').jfGridValue('Id'); |
|
|
|
if (learun.checkrow(keyValue)) { |
|
|
|
var RStatus = $('#gridtable').jfGridValue('State'); |
|
|
|
if (RStatus == 1) { |
|
|
|
var State = $('#gridtable').jfGridValue('State'); |
|
|
|
if (State !== 1 && State !== 2 && State !== 0) { |
|
|
|
learun.alert.warning("已提交!"); |
|
|
|
return false; |
|
|
|
} |
|
|
|
learun.layerConfirm('是否确认提交该项!', function (res) { |
|
|
|
learun.layerConfirm('是否确认撤回该项!', function (res) { |
|
|
|
if (res) { |
|
|
|
learun.deleteForm(top.$.rootUrl + '/AssetManagementSystem/Ass_Repair/DoSubmit', { keyValue: keyValue }, function () { |
|
|
|
learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/FillinFrom/DoCancel', { keyValue: keyValue }, function () { |
|
|
|
refreshGirdData(); |
|
|
|
}); |
|
|
|
} |
|
|
@@ -135,16 +135,12 @@ var bootstrap = function ($, learun) { |
|
|
|
$('#lr_hide').on('click', function () { |
|
|
|
var keyValue = $('#gridtable').jfGridValue('Id'); |
|
|
|
if (learun.checkrow(keyValue)) { |
|
|
|
var RStatus = $('#gridtable').jfGridValue('State'); |
|
|
|
if (RStatus == 1) { |
|
|
|
learun.alert.warning("已提交!"); |
|
|
|
return false; |
|
|
|
} |
|
|
|
learun.layerConfirm('是否确认提交该项!', function (res) { |
|
|
|
learun.layerConfirm('是否确认隐藏该项!', function (res) { |
|
|
|
if (res) { |
|
|
|
learun.deleteForm(top.$.rootUrl + '/AssetManagementSystem/Ass_Repair/DoSubmit', { keyValue: keyValue }, function () { |
|
|
|
refreshGirdData(); |
|
|
|
}); |
|
|
|
param = param || {}, |
|
|
|
learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/FillinFrom/HideLis', { keyValue: keyValue, queryJson: JSON.stringify(param) }, function () { |
|
|
|
refreshGirdData(); |
|
|
|
}); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|