|
@@ -17,7 +17,13 @@ var bootstrap = function ($, learun) { |
|
|
page.initSelect(); |
|
|
page.initSelect(); |
|
|
}, |
|
|
}, |
|
|
bind: function () { |
|
|
bind: function () { |
|
|
$('#BuildType').lrDataItemSelect({ code: 'BuildType' }); |
|
|
|
|
|
|
|
|
$('#BuildType').lrselect({ |
|
|
|
|
|
allowSearch: true, |
|
|
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataItem/GetDetailList', |
|
|
|
|
|
param: { itemCode: 'BuildType' }, |
|
|
|
|
|
value: 'F_ItemValue', |
|
|
|
|
|
text: 'F_ItemName', |
|
|
|
|
|
}); |
|
|
// 上级 |
|
|
// 上级 |
|
|
$('#ParentID').lrselect({ |
|
|
$('#ParentID').lrselect({ |
|
|
url: top.$.rootUrl + '/LogisticsManagement/Accommodation/GetClassifyTree', |
|
|
url: top.$.rootUrl + '/LogisticsManagement/Accommodation/GetClassifyTree', |
|
@@ -25,7 +31,7 @@ var bootstrap = function ($, learun) { |
|
|
allowSearch: true, |
|
|
allowSearch: true, |
|
|
maxHeight: 225, |
|
|
maxHeight: 225, |
|
|
select: function (item) { |
|
|
select: function (item) { |
|
|
if (item&&item.id!='-1') { |
|
|
|
|
|
|
|
|
if (item && item.id != '-1') { |
|
|
$('#BuildType').lrselectSet(item.title); |
|
|
$('#BuildType').lrselectSet(item.title); |
|
|
$('#BuildType').attr('readonly', 'readonly'); |
|
|
$('#BuildType').attr('readonly', 'readonly'); |
|
|
} else { |
|
|
} else { |
|
@@ -43,7 +49,7 @@ var bootstrap = function ($, learun) { |
|
|
type: 'radio', |
|
|
type: 'radio', |
|
|
code: 'HasToilet', |
|
|
code: 'HasToilet', |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//$('#StudentID').lrDataSourceSelect({ code: 'StuInfoBasic', value: 'stuid', text: 'stuname' }); |
|
|
//$('#StudentID').lrDataSourceSelect({ code: 'StuInfoBasic', value: 'stuid', text: 'stuname' }); |
|
|
//$('#StudentID').lrDataSourceSelect({ code: 'StuInfoTwo', value: 'stuid', text: 'stuname' }); |
|
|
//$('#StudentID').lrDataSourceSelect({ code: 'StuInfoTwo', value: 'stuid', text: 'stuname' }); |
|
|
$('#StudentID').lrselect({ |
|
|
$('#StudentID').lrselect({ |
|
@@ -51,7 +57,7 @@ var bootstrap = function ($, learun) { |
|
|
text: "stuname", |
|
|
text: "stuname", |
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=StuInfoBasic' |
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=StuInfoBasic' |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$('#Class').lrselect({ |
|
|
$('#Class').lrselect({ |
|
|
value: "classno", |
|
|
value: "classno", |
|
|
text: "classname" |
|
|
text: "classname" |
|
@@ -115,7 +121,7 @@ var bootstrap = function ($, learun) { |
|
|
|
|
|
|
|
|
if (!!keyValue) { |
|
|
if (!!keyValue) { |
|
|
$.lrSetForm(top.$.rootUrl + '/LogisticsManagement/Accommodation/GetFormData?keyValue=' + keyValue, |
|
|
$.lrSetForm(top.$.rootUrl + '/LogisticsManagement/Accommodation/GetFormData?keyValue=' + keyValue, |
|
|
function(data) { |
|
|
|
|
|
|
|
|
function (data) { |
|
|
for (var id in data) { |
|
|
for (var id in data) { |
|
|
if (!!data[id].length && data[id].length > 0) { |
|
|
if (!!data[id].length && data[id].length > 0) { |
|
|
$('#' + id).jfGridSet('refreshdata', data[id]); |
|
|
$('#' + id).jfGridSet('refreshdata', data[id]); |
|
|