目标仓库 ${dorado.getDataProvider("depotPR#getAllCache").getResult()} id name 设备类型 ${dorado.getDataProvider("dicTriggerPR#dicTrigger").getResult("DEVICE_IOT_TYPE")} code name 所属分机 ${dorado.getDataProvider("deviceSerPR#getAllSerCache").getResult()} id name view.get("#dataSetC").insert(); font-awesome,css-common deviceIotPR#loadDeviceIotByContion 20 lazy [dtDeviceIot] dataTypeC *,*,*,*,* 100 bg-color dataSetC depotId depotId autoOpenMappingDropDown2 serId serId autoOpenMappingDropDown2 type type autoOpenMappingDropDown2 view.get("#actionDeviceIotUpdate").execute(); dsDeviceIot true companyId false center depotId center name center serId center passCode center type center remark center dsDeviceIot pageSize,pages view.id("dsDeviceIot").getData().cancel(); 编辑页面 800 300 dsDeviceIot *,* 100 depotId depotId name name passCode passCode serId serId type type remark remark 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"); 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("#dialogDeviceIot"); var visible = dialog.get("actualVisible"); var dsDeviceIot=view.get("#dsDeviceIot"); var actionDeviceIotSave=view.get("#actionDeviceIotSave"); if(!visible){ if(!dsDeviceIot.getData("#")){ dorado.MessageBox.alert("请先选择要操作的数据!"); return; }else{ dorado.MessageBox.confirm("确定要删除这条记录吗?",{ detailCallback: function(button,text){ if("yes"==button){ dsDeviceIot.getData("#").remove(); actionDeviceIotSave.execute(); } }}); } } if(arg.error){ dorado.MessageBox.alert(arg.error,{ title: '系统提示信息' }); arg.processDefault = false; } view.get("#dialogDeviceIot").close(); deviceIotPR#saveAll dsDeviceIot deviceIotPR#saveData deviceIotPR#refreshCache 刷新成功! 确定要刷新缓存么?