var
srmCombx = $(
"#txtShouName"
)combobox({
loader:
function
(param,success,error){
$ajax({
url: &
#39;${CTX_ROOT}/TEquipmentsController?method=getEquipmentByParId&id='+selectSgId+'',
dataType: &
#39;json',
success:
function
(data){
dataunshift({equipmentid:&
#39;',equipmentname:'全部'});
success(data);
},
error:
function
(){
errorapply(
this
, arguments);
}
});
},
onSelect:
function
(record){
piperowCombxcombobox({
loader:
function
(param,success,error){
$ajax({
url: &
#39;${CTX_ROOT}/TEquipmentsController?method=getEquipmentByParId&id='+$("#txtShouName")combobox("getValue")+'',
dataType: &
#39;json',
success:
function
(data){
dataunshift({equipmentid:&
#39;',equipmentname:'全部'});
success(data);
},
error:
function
(){
errorapply(
this
, arguments);
}
});
},
onSelect:
function
(record){
pipeCombxcombobox({
loader:
function
(param,success,error){
$ajax({
url: &
#39;${CTX_ROOT}/TEquipmentsController?method=getEquipmentByParId&id='+$("#txtPipeRowName")combobox("getValue")+'',
dataType: &
#39;json',
success:
function
(data){
dataunshift({equipmentid:&
#39;',equipmentname:'全部'});
success(data);
},
error:
function
(){
errorapply(
this
, arguments);
}
});
},
valueField: &
#39;equipmentid',
textField: &
#39;equipmentname',
value:&
#39;',
editable:
false
});
},
onLoadSuccess:
function
(){
pipeCombxcombobox(
"clear"
);
pipeCombxcombobox(&
#39;setValue', '全部'); //给combobox下拉框设置一个值,否则为空不好看
},
valueField: &
#39;equipmentid',
textField: &
#39;equipmentname',
value:&
#39;',
editable:
false
})combobox(
"clear"
);
},
valueField: &
#39;equipmentid',
textField: &
#39;equipmentname',
value:&
#39;',
editable:
false
});
var
piperowCombx = $(
"#txtPipeRowName"
)combobox({
loader:
function
(param,success,error){
$ajax({
url: &
#39;${CTX_ROOT}/TEquipmentsController?method=getEquipmentByParId&id='+$("#txtShouName")combobox("getValue")+'',
dataType: &
#39;json',
success:
function
(data){
dataunshift({equipmentid:&
#39;',equipmentname:'全部'});
success(data);
},
error:
function
(){
errorapply(
this
, arguments);
}
});
},
valueField: &
#39;equipmentid',
textField: &
#39;equipmentname',
value:&
#39;',
editable:
false
});
var
pipeCombx=$(
"#txtPipeName"
)combobox({
loader:
function
(param,success,error){
$ajax({
url: &
#39;${CTX_ROOT}/TEquipmentsController?method=getEquipmentByParId&id='+$("#txtPipeRowName")combobox("getValue")+'',
dataType: &
#39;json',
success:
function
(data){
dataunshift({equipmentid:&
#39;',equipmentname:'全部'});
success(data);
},
error:
function
(){
errorapply(
this
, arguments);
}
});
},
valueField: &
#39;equipmentid',
textField: &
#39;equipmentname',
value:&
#39;',
editable:
false
});