/*
* 下拉框级联
*/
$('#input_add_checkfilehisotry_jz').combobox({
url:'${pageContext.request.contextPath}/machineType/getAllMachineTypelist',
panelHeight:'auto',
onChange:function(machineId){
$('#input_add_checkfilehisotry_gc').combobox({
url:'${pageContext.request.contextPath}/Engineering/getAllEngineeringlist?machineTypeId='+machineId,
panelHeight:'auto',
onLoadSuccess : function(){
var data = $('#input_add_checkfilehisotry_gc').combobox('getData');
$("#input_add_checkfilehisotry_gc ").combobox('select',data[0].id);
} ,
onChange:function(eneeringId){
$('#input_add_checkfilehisotry_processes').combobox({
url:'${pageContext.request.contextPath}/Processes/getAllProcesseslist?machineTypeId='+machineId + '&eneeringId='+ eneeringId,
panelHeight:'auto',
onLoadSuccess : function(){
var data = $('#input_add_checkfilehisotry_processes').combobox('getData');
$("#input_add_checkfilehisotry_processes ").combobox('select',data[0].id);
}
});
}
});
},
onLoadSuccess : function(){
var data = $('#input_add_checkfilehisotry_jz').combobox('getData');
$("#input_add_checkfilehisotry_jz ").combobox('select',data[0].id);
}
})
* 下拉框级联
*/
$('#input_add_checkfilehisotry_jz').combobox({
url:'${pageContext.request.contextPath}/machineType/getAllMachineTypelist',
panelHeight:'auto',
onChange:function(machineId){
$('#input_add_checkfilehisotry_gc').combobox({
url:'${pageContext.request.contextPath}/Engineering/getAllEngineeringlist?machineTypeId='+machineId,
panelHeight:'auto',
onLoadSuccess : function(){
var data = $('#input_add_checkfilehisotry_gc').combobox('getData');
$("#input_add_checkfilehisotry_gc ").combobox('select',data[0].id);
} ,
onChange:function(eneeringId){
$('#input_add_checkfilehisotry_processes').combobox({
url:'${pageContext.request.contextPath}/Processes/getAllProcesseslist?machineTypeId='+machineId + '&eneeringId='+ eneeringId,
panelHeight:'auto',
onLoadSuccess : function(){
var data = $('#input_add_checkfilehisotry_processes').combobox('getData');
$("#input_add_checkfilehisotry_processes ").combobox('select',data[0].id);
}
});
}
});
},
onLoadSuccess : function(){
var data = $('#input_add_checkfilehisotry_jz').combobox('getData');
$("#input_add_checkfilehisotry_jz ").combobox('select',data[0].id);
}
})