|
|
@@ -24,7 +24,7 @@ var bootstrap = function ($, learun) { |
|
|
|
$.lrSetForm(top.$.rootUrl + '/EducationalAdministration/BookBorrow/GetFormData?keyValue=' + keyValue, function (data) { |
|
|
|
for (var id in data) { |
|
|
|
if (!!data[id].length && data[id].length > 0) { |
|
|
|
$('#' + id ).jfGridSet('refreshdata', data[id]); |
|
|
|
$('#' + id).jfGridSet('refreshdata', data[id]); |
|
|
|
} |
|
|
|
else { |
|
|
|
$('[data-table="' + id + '"]').lrSetFormData(data[id]); |
|
|
@@ -39,6 +39,11 @@ var bootstrap = function ($, learun) { |
|
|
|
if (!$('body').lrValidform()) { |
|
|
|
return false; |
|
|
|
} |
|
|
|
var Amount = $('#Amount').val(); |
|
|
|
if (Amount <= 0 || Math.floor(Amount) !== Amount) { |
|
|
|
learun.alert.warning('数量请输入大于0的整数!'); |
|
|
|
return false; |
|
|
|
} |
|
|
|
var postData = { |
|
|
|
strEntity: JSON.stringify($('body').lrGetFormData()) |
|
|
|
}; |
|
|
|