|
|
@@ -15,17 +15,55 @@ var bootstrap = function ($, learun) { |
|
|
|
page.initData(); |
|
|
|
}, |
|
|
|
bind: function () { |
|
|
|
$('#FillingTime').lrDataItemSelect({ code: 'CycleTime' }); |
|
|
|
$('#FillingCycle').lrDataItemSelect({ code: 'ThisCycle' }); |
|
|
|
$('#FillingDept').lrDataSourceSelect({ code: 'classdata',value: 'id',text: 'name' }); |
|
|
|
$('#FillingPeople').lrDataSourceSelect({ code: 'teacheruserdata',value: 'f_userid',text: 'f_realname' }); |
|
|
|
$('#FillingDept').lrDataSourceSelect({ code: 'classdata', value: 'id', text: 'name' }); |
|
|
|
$('#FillingPeople').lrDataSourceSelect({ code: 'teacheruserdata', value: 'f_userid', text: 'f_realname' }); |
|
|
|
$('#FillingCycle').lrDataItemSelect({ |
|
|
|
code: 'ThisCycle', |
|
|
|
select: function (item) { |
|
|
|
var Cycles = $("#FillingCycle").lrselectGet(); |
|
|
|
if (Cycles != null && Cycles != "" && Cycles != undefined && Cycles == 2) { |
|
|
|
$('#FillingTime').lrDataItemSelect({ code: 'CycleTime' }); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
//$('#FillingTime').lrDataItemSelect({ code: 'CycleTime' }); |
|
|
|
|
|
|
|
//$('#City').lrselect({ |
|
|
|
// url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=' + 'DIC_CITY', |
|
|
|
// param: { strWhere: " cparent= 650000 " }, |
|
|
|
// value: 'ccode', |
|
|
|
// text: 'cname', |
|
|
|
// maxHeight: 200, |
|
|
|
// select: function (item) { |
|
|
|
// var Citys = $("#City").lrselectGet(); |
|
|
|
// if (Citys != null && Citys != "" && Citys != undefined) { |
|
|
|
// $('#Area').lrselectRefresh({ |
|
|
|
// url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=DIC_AREA', |
|
|
|
// param: { strWhere: " 1=1 and aparent in (" + Citys + ")" }, |
|
|
|
// value: "acode", |
|
|
|
// text: "aname", |
|
|
|
// maxHeight: 200 |
|
|
|
// }); |
|
|
|
// } else { |
|
|
|
// $('#Area').lrselectRefresh({ |
|
|
|
// url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=DIC_AREA', |
|
|
|
// param: { strWhere: " 1=1 and aparent ='' " }, |
|
|
|
// value: "acode", |
|
|
|
// text: "aname", |
|
|
|
// maxHeight: 200 |
|
|
|
// }); |
|
|
|
// } |
|
|
|
// } |
|
|
|
//}) |
|
|
|
//$("#Area").lrselect(); |
|
|
|
}, |
|
|
|
initData: function () { |
|
|
|
if (!!keyValue) { |
|
|
|
$.lrSetForm(top.$.rootUrl + '/EducationalAdministration/FillinFrom/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]); |
|
|
@@ -33,7 +71,7 @@ var bootstrap = function ($, learun) { |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
$('#State').val('0'); |
|
|
|
$('#State').val('0'); |
|
|
|
} |
|
|
|
}; |
|
|
|
// 保存数据 |
|
|
|