目标仓库
${dorado.getDataProvider("depotPR#getAllCache").getResult()}
id
name
设备类型
${dorado.getDataProvider("dicTriggerPR#dicTrigger").getResult("DEVICE_TYPE")}
code
name
所属分机
${dorado.getDataProvider("deviceSerPR#getAllSerCache").getResult()}
id
name
view.get("#dataSetC").insert();
font-awesome,css-common
devicePR#loadDeviceByContion
20
lazy
[dtDevice]
dataTypeC
*,*,*,*,*
100
bg-color
dataSetC
depotId
depotId
autoOpenMappingDropDown2
serId
serId
autoOpenMappingDropDown2
type
type
autoOpenMappingDropDown2
view.get("#actionDeviceUpdate").execute();
dsDevice
true
passCode
center
name
typeName
center
typeName
depotId
center
location
center
location
link
关联设备
center
serId
center
remark
center
dsDevice
pageSize,pages
var entity = view.get("#dataSetC.data");
view.get("#dsDevice").set("parameter",entity).flushAsync();
dorado.MessageBox.alert(arg.error,{
title: '系统提示信息'
});
arg.processDefault = false;
alt+q
var dialog=view.get("#dialogDevice");
var visible=dialog.get("actualVisible");
if(!visible){
view.get("#dsDevice").insert();
dialog.set("caption","新增设备");
dialog.show();
}
var entity = view.id("dsDevice").getData("#");
var dialog=view.get("#dialogDevice");
var visible = dialog.get("actualVisible");
if(!visible){
dialog.set("caption","修改设备");
if(entity){
dialog.show();
}else{
dorado.MessageBox.alert("当前无可编辑数据!");
}
}
view.get("^isKey").each(function(item){
item.set("readOnly",true);
});
var dialog=view.get("#dialogDevice");
var visible = dialog.get("actualVisible");
var dsDevice=view.get("#dsDevice");
var actionDeviceSave=view.get("#actionDeviceSave");
if(!visible){
if(!dsDevice.getData("#")){
dorado.MessageBox.alert("请先选择要操作的数据!");
return;
}else{
dorado.MessageBox.confirm("确定要删除这条记录吗?",{
detailCallback: function(button,text){
if("yes"==button){
dsDevice.getData("#").remove();
actionDeviceSave.execute();
}
}});
}
}
if(arg.error){
dorado.MessageBox.alert(arg.error,{
title: '系统提示信息'
});
arg.processDefault = false;
}
view.get("#dialogDevice").close();
devicePR#saveAll
dsDevice
devicePR#saveDevice
devicePR#refreshCache
刷新成功!
确定要刷新缓存么?