所属仓库
${dorado.getDataProvider("depotPR#getAllCache").getResult()}
id
name
设备类型
${dorado.getDataProvider("dicPR#sysDictData").getResult("DEVICE_IOT_TYPE")}
dictValue
dictLabel
所属分机
${dorado.getDataProvider("deviceSerPR#getAllSerCache").getResult()}
id
name
view.get("#dataSetC").insert();
font-awesome,css-common
deviceIotPR#loadDeviceIotPage
20
lazy
[dtDeviceIot]
dataTypeC
c-param
*,*,*,90,90,*
100
right
dataSetC
depotId
depotId
autoOpenMappingDropDown2
serId
serId
autoOpenMappingDropDown2
type
type
autoOpenMappingDropDown2
c-data
新增
btn1
100
fa fa-plus
actionDeviceIotAdd
actionDeviceIotUpdate
修改
btn2
100
fa fa-pencil-square-o
actionDeviceIotDelete
删除
btn3
100
fa fa-times
刷新缓存
ajaxRefreshCache
btn4
fa fa-refresh
100
view.get("#gridDeviceIot").set("selection",arg.data);
dsDeviceIot
true
singleRow
depotId
center
name
center
serId
center
passCode
center
type
center
remark
center
updateBy
center
120
updateTime
center
160
pageSize,pages
dsDeviceIot
var entity = view.get("#dataSetC.data");
view.get("#dsDeviceIot").set("parameter",entity).flushAsync();
dorado.MessageBox.alert(arg.error,{
title: '系统提示信息'
});
arg.processDefault = false;
alt+q
var dialog=view.get("#dialogDeviceIot");
var visible=dialog.get("actualVisible");
if(!visible){
view.get("#dsDeviceIot").insert();
dialog.set("caption","新增设备");
dialog.show();
}
var entity = view.id("dsDeviceIot").getData("#");
var dialog=view.get("#dialogDeviceIot");
var visible = dialog.get("actualVisible");
var select = view.get("#gridDeviceIot").get("selection");
if(!visible){
dialog.set("caption","修改设备");
if(select){
dialog.show();
}else{
dorado.MessageBox.alert("请选择需要修改的数据……");
}
}
view.get("^isKey").each(function(item){
item.set("readOnly",true);
});
var dialog=view.get("#dialogDeviceIot");
var visible = dialog.get("actualVisible");
var dsDeviceIot=view.get("#dsDeviceIot");
var actionDeviceIotSave=view.get("#actionDeviceIotSave");
var select = view.get("#gridDeviceIot").get("selection");
if(!visible){
if(!select){
dorado.MessageBox.alert("请先选择要操作的数据!");
return;
}else{
dorado.MessageBox.confirm("确定要删除这条记录吗?",{
detailCallback: function(button,text){
if("yes"==button){
select.remove();
actionDeviceIotSave.execute();
}
}});
}
}
if(arg.error){
dorado.MessageBox.alert(arg.error,{
title: '系统提示信息'
});
arg.processDefault = false;
}
view.get("#dialogDeviceIot").close();
deviceIotPR#saveAll
dsDeviceIot
deviceIotPR#refreshCache
刷新成功!
确定要刷新缓存么?