|
|
@@ -9,6 +9,7 @@ var keyValue = request('keyValue'); |
|
|
|
var bootstrap = function ($, learun) { |
|
|
|
"use strict"; |
|
|
|
var selectedRow = learun.frameTab.currentIframe().selectedRow; |
|
|
|
console.log(selectedRow); |
|
|
|
var page = { |
|
|
|
init: function () { |
|
|
|
page.initData(); |
|
|
@@ -25,8 +26,21 @@ var bootstrap = function ($, learun) { |
|
|
|
$('#IssueMonth').lrDataItemSelect({ code: 'MPMonth' }); |
|
|
|
}, |
|
|
|
initData: function () { |
|
|
|
if (!!selectedRow) { |
|
|
|
$('#form').lrSetFormData(selectedRow); |
|
|
|
//if (!!selectedRow) { |
|
|
|
// $('#form').lrSetFormData(selectedRow); |
|
|
|
//} |
|
|
|
if (!!keyValue) { |
|
|
|
$.lrSetForm(top.$.rootUrl + '/EducationalAdministration/WageSchedule/GetFormData?keyValue=' + keyValue, function (data) { |
|
|
|
for (var id in data) { |
|
|
|
if (!!data[id].length && data[id].length > 0) { |
|
|
|
$('#' + id).jfGridSet('refreshdata', data[id]); |
|
|
|
} |
|
|
|
else { |
|
|
|
//$('[data-table="' + id + '"]').lrSetFormData(data[id]); |
|
|
|
$('#form').lrSetFormData(data[id]); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|