|  |  |  | 
|---|
|  |  |  | </PropertyDef> | 
|---|
|  |  |  | <PropertyDef name="deviceName"> | 
|---|
|  |  |  | <Property></Property> | 
|---|
|  |  |  | <Property name="label">名称</Property> | 
|---|
|  |  |  | <Property name="label">设备名称</Property> | 
|---|
|  |  |  | <Property name="required">true</Property> | 
|---|
|  |  |  | </PropertyDef> | 
|---|
|  |  |  | <PropertyDef name="depotName"> | 
|---|
|  |  |  | <Property></Property> | 
|---|
|  |  |  | <Property name="label">仓库名称</Property> | 
|---|
|  |  |  | </PropertyDef> | 
|---|
|  |  |  | <PropertyDef name="depotId"> | 
|---|
|  |  |  | <Property></Property> | 
|---|
|  |  |  | <Property name="label">所属仓库编码</Property> | 
|---|
|  |  |  | </PropertyDef> | 
|---|
|  |  |  | <PropertyDef name="type"> | 
|---|
|  |  |  | <Property></Property> | 
|---|
|  |  |  | <Property name="label">设备类型</Property> | 
|---|
|  |  |  | </PropertyDef> | 
|---|
|  |  |  | <PropertyDef name="depotId"> | 
|---|
|  |  |  | <Property></Property> | 
|---|
|  |  |  | <Property name="label">所属仓库</Property> | 
|---|
|  |  |  | </PropertyDef> | 
|---|
|  |  |  | <PropertyDef name="depotName"> | 
|---|
|  |  |  | <Property></Property> | 
|---|
|  |  |  | <Property name="label">所属仓库</Property> | 
|---|
|  |  |  | <Property name="mapping"> | 
|---|
|  |  |  | <Property name="keyProperty">code</Property> | 
|---|
|  |  |  | <Property name="valueProperty">name</Property> | 
|---|
|  |  |  | <Property name="mapValues">${dorado.getDataProvider("apiTriggerService#triggerGatewayDeviceType").getResult()}</Property> | 
|---|
|  |  |  | </Property> | 
|---|
|  |  |  | </PropertyDef> | 
|---|
|  |  |  | <PropertyDef name="ip"> | 
|---|
|  |  |  | <Property></Property> | 
|---|
|  |  |  | 
|---|
|  |  |  | </PropertyDef> | 
|---|
|  |  |  | <PropertyDef name="pushProtocol"> | 
|---|
|  |  |  | <Property></Property> | 
|---|
|  |  |  | <Property name="label">系统网关通讯协议</Property> | 
|---|
|  |  |  | <Property name="label">上行协议</Property> | 
|---|
|  |  |  | <Property name="mapping"> | 
|---|
|  |  |  | <Property name="mapValues">${dorado.getDataProvider("apiTriggerService#triggerGatewayProtocol").getResult()}</Property> | 
|---|
|  |  |  | <Property name="mapValues">${dorado.getDataProvider("apiTriggerService#triggerPushProtocol").getResult()}</Property> | 
|---|
|  |  |  | <Property name="keyProperty">code</Property> | 
|---|
|  |  |  | <Property name="valueProperty">name</Property> | 
|---|
|  |  |  | </Property> | 
|---|
|  |  |  | 
|---|
|  |  |  | </PropertyDef> | 
|---|
|  |  |  | <PropertyDef name="syncProtocol"> | 
|---|
|  |  |  | <Property></Property> | 
|---|
|  |  |  | <Property name="label">网关与设备通讯协议</Property> | 
|---|
|  |  |  | <Property name="label">下行协议</Property> | 
|---|
|  |  |  | <Property name="mapping"> | 
|---|
|  |  |  | <Property name="keyProperty">code</Property> | 
|---|
|  |  |  | <Property name="valueProperty">name</Property> | 
|---|
|  |  |  | 
|---|
|  |  |  | <Property name="label">HTTP地址</Property> | 
|---|
|  |  |  | </PropertyDef> | 
|---|
|  |  |  | <PropertyDef name="deviceSn"> | 
|---|
|  |  |  | <Property/> | 
|---|
|  |  |  | <Property></Property> | 
|---|
|  |  |  | <Property name="label">设备序列号</Property> | 
|---|
|  |  |  | </PropertyDef> | 
|---|
|  |  |  | <PropertyDef name="serPort"> | 
|---|
|  |  |  | <Property name="dataType">int</Property> | 
|---|
|  |  |  | <Property name="label">TCP服务端口</Property> | 
|---|
|  |  |  | </PropertyDef> | 
|---|
|  |  |  | <PropertyDef name="userName"> | 
|---|
|  |  |  | <Property></Property> | 
|---|
|  |  |  | <Property name="label">设备用户名</Property> | 
|---|
|  |  |  | </PropertyDef> | 
|---|
|  |  |  | <PropertyDef name="password"> | 
|---|
|  |  |  | <Property></Property> | 
|---|
|  |  |  | <Property name="label">设备密码</Property> | 
|---|
|  |  |  | </PropertyDef> | 
|---|
|  |  |  | <PropertyDef name="depotIdSys"> | 
|---|
|  |  |  | <Property></Property> | 
|---|
|  |  |  | <Property name="label">自定义仓库编码</Property> | 
|---|
|  |  |  | </PropertyDef> | 
|---|
|  |  |  | <PropertyDef name="productId"> | 
|---|
|  |  |  | <Property></Property> | 
|---|
|  |  |  | <Property name="label">设备类型KEY</Property> | 
|---|
|  |  |  | </PropertyDef> | 
|---|
|  |  |  | <PropertyDef name="cableRule"> | 
|---|
|  |  |  | <Property></Property> | 
|---|
|  |  |  | <Property name="label">布线规则</Property> | 
|---|
|  |  |  | </PropertyDef> | 
|---|
|  |  |  | <PropertyDef name="cableCir"> | 
|---|
|  |  |  | <Property></Property> | 
|---|
|  |  |  | <Property name="label">筒仓层规则</Property> | 
|---|
|  |  |  | </PropertyDef> | 
|---|
|  |  |  | </DataType> | 
|---|
|  |  |  | <DataType name="dtParam" parent="Map"> | 
|---|
|  |  |  | <PropertyDef name="start"> | 
|---|
|  |  |  | <Property name="dataType">DateTime</Property> | 
|---|
|  |  |  | </PropertyDef> | 
|---|
|  |  |  | <PropertyDef name="end"> | 
|---|
|  |  |  | <Property name="dataType">DateTime</Property> | 
|---|
|  |  |  | </PropertyDef> | 
|---|
|  |  |  | <PropertyDef name="dayTime"> | 
|---|
|  |  |  | <Property name="dataType">Date</Property> | 
|---|
|  |  |  | <Property name="label">选择时间</Property> | 
|---|
|  |  |  | </PropertyDef> | 
|---|
|  |  |  | <PropertyDef name="weight"> | 
|---|
|  |  |  | <Property name="label">重量</Property> | 
|---|
|  |  |  | <Property name="dataType">Double</Property> | 
|---|
|  |  |  | <Property name="defaultValue">0.0</Property> | 
|---|
|  |  |  | </PropertyDef> | 
|---|
|  |  |  | <PropertyDef name="carNumber"> | 
|---|
|  |  |  | <Property name="label">车牌</Property> | 
|---|
|  |  |  | </PropertyDef> | 
|---|
|  |  |  | <PropertyDef name="deviceId"> | 
|---|
|  |  |  | <Property></Property> | 
|---|
|  |  |  | <Property name="label">设备ID</Property> | 
|---|
|  |  |  | <Property name="required">true</Property> | 
|---|
|  |  |  | </PropertyDef> | 
|---|
|  |  |  | </DataType> | 
|---|
|  |  |  | </Model> | 
|---|
|  |  |  | <View layout="regionPadding:10"> | 
|---|
|  |  |  | <Property name="packages">font-awesome,css-common</Property> | 
|---|
|  |  |  | <Property name="styleSheetFile">./static/lib/jquery/jquery-3.4.1.min.js</Property> | 
|---|
|  |  |  | <DataSet id="dsMain"> | 
|---|
|  |  |  | <Property name="dataType">[dtMain]</Property> | 
|---|
|  |  |  | <Property name="dataProvider">gatewayDeviceService#listAll</Property> | 
|---|
|  |  |  | </DataSet> | 
|---|
|  |  |  | <DataSet id="dsQuery"> | 
|---|
|  |  |  | <ClientEvent name="onReady">self.insert({
 | 
|---|
|  |  |  | weight:2500,
 | 
|---|
|  |  |  | carNumber:"川A15U7M"
 | 
|---|
|  |  |  | });</ClientEvent> | 
|---|
|  |  |  | <Property name="dataType">dtParam</Property> | 
|---|
|  |  |  | </DataSet> | 
|---|
|  |  |  | <ToolBar> | 
|---|
|  |  |  | <ToolBarLabel> | 
|---|
|  |  |  | 
|---|
|  |  |  | <Property name="width">90</Property> | 
|---|
|  |  |  | <Property name="exClassName">toolbar-button-warn</Property> | 
|---|
|  |  |  | </ToolBarButton> | 
|---|
|  |  |  | <Separator/> | 
|---|
|  |  |  | <ToolBarButton> | 
|---|
|  |  |  | <ClientEvent name="onClick">view.get("#dialogGrain").show();</ClientEvent> | 
|---|
|  |  |  | <Property name="caption">kafka粮情推送调试</Property> | 
|---|
|  |  |  | <Property name="iconClass">fa fa-wrench</Property> | 
|---|
|  |  |  | <Property name="exClassName">toolbar-button-push</Property> | 
|---|
|  |  |  | </ToolBarButton> | 
|---|
|  |  |  | <ToolBarButton> | 
|---|
|  |  |  | <ClientEvent name="onClick">var data = view.get("#dsMain.data:#");
 | 
|---|
|  |  |  | var param = {
 | 
|---|
|  |  |  | deviceId:data.get("deviceId"),
 | 
|---|
|  |  |  | bizType:"testGrain"
 | 
|---|
|  |  |  | }
 | 
|---|
|  |  |  | testDevice(param);</ClientEvent> | 
|---|
|  |  |  | <Property name="caption">粮情调试</Property> | 
|---|
|  |  |  | <Property name="iconClass">fa fa-wrench</Property> | 
|---|
|  |  |  | <Property name="exClassName">toolbar-button-push</Property> | 
|---|
|  |  |  | </ToolBarButton> | 
|---|
|  |  |  | <ToolBarButton> | 
|---|
|  |  |  | <ClientEvent name="onClick">view.get("#dialogWeight").show();</ClientEvent> | 
|---|
|  |  |  | <Property name="caption">地磅调试</Property> | 
|---|
|  |  |  | <Property name="iconClass">fa fa-wrench</Property> | 
|---|
|  |  |  | <Property name="exClassName">toolbar-button-push</Property> | 
|---|
|  |  |  | </ToolBarButton> | 
|---|
|  |  |  | <ToolBarButton> | 
|---|
|  |  |  | <ClientEvent name="onClick">view.get("#dialogLpr").show();
 | 
|---|
|  |  |  | </ClientEvent> | 
|---|
|  |  |  | <Property name="caption">车牌识别调试</Property> | 
|---|
|  |  |  | <Property name="iconClass">fa fa-wrench</Property> | 
|---|
|  |  |  | <Property name="exClassName">toolbar-button-push</Property> | 
|---|
|  |  |  | </ToolBarButton> | 
|---|
|  |  |  | </ToolBar> | 
|---|
|  |  |  | <DataGrid id="dgMain"> | 
|---|
|  |  |  | <Property name="dataSet">dsMain</Property> | 
|---|
|  |  |  | <Property name="selectionMode">multiRows</Property> | 
|---|
|  |  |  | <Property name="readOnly">true</Property> | 
|---|
|  |  |  | <RowNumColumn/> | 
|---|
|  |  |  | <DataColumn name="deviceName"> | 
|---|
|  |  |  | 
|---|
|  |  |  | </DataColumn> | 
|---|
|  |  |  | <DataColumn name="type"> | 
|---|
|  |  |  | <Property name="property">type</Property> | 
|---|
|  |  |  | <Property name="align">center</Property> | 
|---|
|  |  |  | </DataColumn> | 
|---|
|  |  |  | <DataColumn name="depotName"> | 
|---|
|  |  |  | <Property name="property">depotName</Property> | 
|---|
|  |  |  | <DataColumn name="productId"> | 
|---|
|  |  |  | <Property name="property">productId</Property> | 
|---|
|  |  |  | </DataColumn> | 
|---|
|  |  |  | <DataColumn name="deviceId"> | 
|---|
|  |  |  | <Property name="property">deviceId</Property> | 
|---|
|  |  |  | <Property name="align">center</Property> | 
|---|
|  |  |  | <Property name="width">550</Property> | 
|---|
|  |  |  | </DataColumn> | 
|---|
|  |  |  | <DataColumn name="syncProtocol"> | 
|---|
|  |  |  | <Property name="property">syncProtocol</Property> | 
|---|
|  |  |  | <Property name="align">center</Property> | 
|---|
|  |  |  | </DataColumn> | 
|---|
|  |  |  | <DataColumn name="pushProtocol"> | 
|---|
|  |  |  | <Property name="property">pushProtocol</Property> | 
|---|
|  |  |  | </DataColumn> | 
|---|
|  |  |  | <DataColumn name="remark"> | 
|---|
|  |  |  | <Property name="property">remark</Property> | 
|---|
|  |  |  | <Property name="align">center</Property> | 
|---|
|  |  |  | </DataColumn> | 
|---|
|  |  |  | </DataGrid> | 
|---|
|  |  |  | <Dialog id="dialogMain"> | 
|---|
|  |  |  | 
|---|
|  |  |  | <Property name="closeable">false</Property> | 
|---|
|  |  |  | <Buttons> | 
|---|
|  |  |  | <Button> | 
|---|
|  |  |  | <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 | 
|---|
|  |  |  | view.get("#updateSave").execute(function(){
 | 
|---|
|  |  |  | <ClientEvent name="onClick">view.get("#updateSave").execute(function(){
 | 
|---|
|  |  |  | self.get("parent").hide();
 | 
|---|
|  |  |  | });</ClientEvent> | 
|---|
|  |  |  | <Property name="caption">保存修改</Property> | 
|---|
|  |  |  | 
|---|
|  |  |  | <AutoForm> | 
|---|
|  |  |  | <Property name="dataSet">dsMain</Property> | 
|---|
|  |  |  | <Property name="cols">*,*,*</Property> | 
|---|
|  |  |  | <Property name="labelWidth">100</Property> | 
|---|
|  |  |  | <Property name="labelWidth">125</Property> | 
|---|
|  |  |  | <Property name="labelAlign">right</Property> | 
|---|
|  |  |  | <Property name="labelSeparator">:</Property> | 
|---|
|  |  |  | <Property name="labelPosition">left</Property> | 
|---|
|  |  |  | <AutoFormElement> | 
|---|
|  |  |  | <AutoFormElement layoutConstraint="colSpan:2"> | 
|---|
|  |  |  | <Property name="name">deviceId</Property> | 
|---|
|  |  |  | <Property name="property">deviceId</Property> | 
|---|
|  |  |  | <Editor/> | 
|---|
|  |  |  | </AutoFormElement> | 
|---|
|  |  |  | <AutoFormElement> | 
|---|
|  |  |  | <Property name="name">deviceSn</Property> | 
|---|
|  |  |  | <Property name="property">deviceSn</Property> | 
|---|
|  |  |  | <Editor/> | 
|---|
|  |  |  | </AutoFormElement> | 
|---|
|  |  |  | <AutoFormElement> | 
|---|
|  |  |  | 
|---|
|  |  |  | <Editor/> | 
|---|
|  |  |  | </AutoFormElement> | 
|---|
|  |  |  | <AutoFormElement> | 
|---|
|  |  |  | <Property name="name">productId</Property> | 
|---|
|  |  |  | <Property name="property">productId</Property> | 
|---|
|  |  |  | <Editor/> | 
|---|
|  |  |  | </AutoFormElement> | 
|---|
|  |  |  | <AutoFormElement> | 
|---|
|  |  |  | <Property name="name">orgId</Property> | 
|---|
|  |  |  | <Property name="property">orgId</Property> | 
|---|
|  |  |  | <Editor/> | 
|---|
|  |  |  | </AutoFormElement> | 
|---|
|  |  |  | <AutoFormElement> | 
|---|
|  |  |  | <Property name="name">depotId</Property> | 
|---|
|  |  |  | <Property name="property">depotId</Property> | 
|---|
|  |  |  | <Editor/> | 
|---|
|  |  |  | </AutoFormElement> | 
|---|
|  |  |  | <AutoFormElement> | 
|---|
|  |  |  | <Property name="name">depotIdSys</Property> | 
|---|
|  |  |  | <Property name="property">depotIdSys</Property> | 
|---|
|  |  |  | <Editor/> | 
|---|
|  |  |  | </AutoFormElement> | 
|---|
|  |  |  | <AutoFormElement> | 
|---|
|  |  |  | 
|---|
|  |  |  | <Editor/> | 
|---|
|  |  |  | </AutoFormElement> | 
|---|
|  |  |  | <AutoFormElement> | 
|---|
|  |  |  | <Property name="name">userName</Property> | 
|---|
|  |  |  | <Property name="property">userName</Property> | 
|---|
|  |  |  | <Editor/> | 
|---|
|  |  |  | </AutoFormElement> | 
|---|
|  |  |  | <AutoFormElement> | 
|---|
|  |  |  | <Property name="name">password</Property> | 
|---|
|  |  |  | <Property name="property">password</Property> | 
|---|
|  |  |  | <Editor/> | 
|---|
|  |  |  | </AutoFormElement> | 
|---|
|  |  |  | <AutoFormElement> | 
|---|
|  |  |  | <Property name="name">pushProtocol</Property> | 
|---|
|  |  |  | <Property name="property">pushProtocol</Property> | 
|---|
|  |  |  | <Editor/> | 
|---|
|  |  |  | 
|---|
|  |  |  | <Editor/> | 
|---|
|  |  |  | </AutoFormElement> | 
|---|
|  |  |  | <AutoFormElement> | 
|---|
|  |  |  | <Property name="name">orgId</Property> | 
|---|
|  |  |  | <Property name="property">orgId</Property> | 
|---|
|  |  |  | <Property name="name">serPort</Property> | 
|---|
|  |  |  | <Property name="property">serPort</Property> | 
|---|
|  |  |  | <Property name="labelWidth">150</Property> | 
|---|
|  |  |  | <Editor/> | 
|---|
|  |  |  | </AutoFormElement> | 
|---|
|  |  |  | <AutoFormElement layoutConstraint="colSpan:2"> | 
|---|
|  |  |  | 
|---|
|  |  |  | <Property name="editorType">TextArea</Property> | 
|---|
|  |  |  | <Editor/> | 
|---|
|  |  |  | </AutoFormElement> | 
|---|
|  |  |  | <AutoFormElement> | 
|---|
|  |  |  | <Property name="name">cableRule</Property> | 
|---|
|  |  |  | <Property name="property">cableRule</Property> | 
|---|
|  |  |  | <Editor/> | 
|---|
|  |  |  | </AutoFormElement> | 
|---|
|  |  |  | <AutoFormElement> | 
|---|
|  |  |  | <Property name="name">cableCir</Property> | 
|---|
|  |  |  | <Property name="property">cableCir</Property> | 
|---|
|  |  |  | <Editor/> | 
|---|
|  |  |  | </AutoFormElement> | 
|---|
|  |  |  | </AutoForm> | 
|---|
|  |  |  | </Container> | 
|---|
|  |  |  | </Children> | 
|---|
|  |  |  | 
|---|
|  |  |  | <UpdateItem> | 
|---|
|  |  |  | <Property name="dataPath">[#current]</Property> | 
|---|
|  |  |  | <Property name="dataSet">dsMain</Property> | 
|---|
|  |  |  | <Property name="alias">data</Property> | 
|---|
|  |  |  | </UpdateItem> | 
|---|
|  |  |  | </UpdateAction> | 
|---|
|  |  |  | <AjaxAction id="ajaxDel"> | 
|---|
|  |  |  | <Property name="service">gatewayDeviceService#delData</Property> | 
|---|
|  |  |  | <Property name="confirmMessage">确定要删除么?</Property> | 
|---|
|  |  |  | </AjaxAction> | 
|---|
|  |  |  | <Dialog id="dialogGrain"> | 
|---|
|  |  |  | <Property name="width">400</Property> | 
|---|
|  |  |  | <Property name="height">300</Property> | 
|---|
|  |  |  | <Property name="caption">选择条件</Property> | 
|---|
|  |  |  | <Buttons> | 
|---|
|  |  |  | <Button> | 
|---|
|  |  |  | <ClientEvent name="onClick">var data = view.get("#dsMain.data:#");
 | 
|---|
|  |  |  | var query = view.get("#dsQuery.data");
 | 
|---|
|  |  |  | var param = {
 | 
|---|
|  |  |  | deviceId:data.get("deviceId"),
 | 
|---|
|  |  |  | dayTime:query.get("dayTime"),
 | 
|---|
|  |  |  | bizType:"ajaxTestKafkaGrain"
 | 
|---|
|  |  |  | }
 | 
|---|
|  |  |  | testDevice(param);</ClientEvent> | 
|---|
|  |  |  | <Property name="caption">确定执行</Property> | 
|---|
|  |  |  | </Button> | 
|---|
|  |  |  | <Button> | 
|---|
|  |  |  | <ClientEvent name="onClick">view.get("#dialogGrain").hide();</ClientEvent> | 
|---|
|  |  |  | <Property name="caption">取消执行</Property> | 
|---|
|  |  |  | </Button> | 
|---|
|  |  |  | </Buttons> | 
|---|
|  |  |  | <Children> | 
|---|
|  |  |  | <AutoForm> | 
|---|
|  |  |  | <Property name="dataSet">dsQuery</Property> | 
|---|
|  |  |  | <Property name="cols">*</Property> | 
|---|
|  |  |  | <AutoFormElement> | 
|---|
|  |  |  | <Property name="name">dayTime</Property> | 
|---|
|  |  |  | <Property name="property">dayTime</Property> | 
|---|
|  |  |  | <Editor/> | 
|---|
|  |  |  | </AutoFormElement> | 
|---|
|  |  |  | </AutoForm> | 
|---|
|  |  |  | </Children> | 
|---|
|  |  |  | <Tools/> | 
|---|
|  |  |  | </Dialog> | 
|---|
|  |  |  | <Dialog id="dialogWeight"> | 
|---|
|  |  |  | <Property name="width">400</Property> | 
|---|
|  |  |  | <Property name="height">300</Property> | 
|---|
|  |  |  | <Property name="caption">输入重量</Property> | 
|---|
|  |  |  | <Buttons> | 
|---|
|  |  |  | <Button> | 
|---|
|  |  |  | <ClientEvent name="onClick">var data = view.get("#dsMain.data:#");
 | 
|---|
|  |  |  | var query = view.get("#dsQuery.data");
 | 
|---|
|  |  |  | var param = {
 | 
|---|
|  |  |  | deviceId:data.get("deviceId"),
 | 
|---|
|  |  |  | weight:query.get("weight"),
 | 
|---|
|  |  |  | bizType:"ajaxTestWeight"
 | 
|---|
|  |  |  | }
 | 
|---|
|  |  |  | testDevice(param);</ClientEvent> | 
|---|
|  |  |  | <Property name="caption">确定执行</Property> | 
|---|
|  |  |  | </Button> | 
|---|
|  |  |  | <Button> | 
|---|
|  |  |  | <ClientEvent name="onClick">view.get("#dialogWeight").hide();</ClientEvent> | 
|---|
|  |  |  | <Property name="caption">取消执行</Property> | 
|---|
|  |  |  | </Button> | 
|---|
|  |  |  | </Buttons> | 
|---|
|  |  |  | <Children> | 
|---|
|  |  |  | <AutoForm> | 
|---|
|  |  |  | <Property name="dataSet">dsQuery</Property> | 
|---|
|  |  |  | <Property name="cols">*</Property> | 
|---|
|  |  |  | <AutoFormElement> | 
|---|
|  |  |  | <Property name="name">weight</Property> | 
|---|
|  |  |  | <Property name="property">weight</Property> | 
|---|
|  |  |  | <Editor/> | 
|---|
|  |  |  | </AutoFormElement> | 
|---|
|  |  |  | </AutoForm> | 
|---|
|  |  |  | </Children> | 
|---|
|  |  |  | <Tools/> | 
|---|
|  |  |  | </Dialog> | 
|---|
|  |  |  | <Dialog id="dialogLpr"> | 
|---|
|  |  |  | <Property name="width">400</Property> | 
|---|
|  |  |  | <Property name="height">300</Property> | 
|---|
|  |  |  | <Property name="caption">输入车牌</Property> | 
|---|
|  |  |  | <Buttons> | 
|---|
|  |  |  | <Button> | 
|---|
|  |  |  | <ClientEvent name="onClick">var data = view.get("#dsMain.data:#");
 | 
|---|
|  |  |  | var query = view.get("#dsQuery.data");
 | 
|---|
|  |  |  | var param = {
 | 
|---|
|  |  |  | deviceId:data.get("deviceId"),
 | 
|---|
|  |  |  | carNumber:query.get("carNumber"),
 | 
|---|
|  |  |  | bizType:"ajaxTestLpr"
 | 
|---|
|  |  |  | }
 | 
|---|
|  |  |  | testDevice(param);</ClientEvent> | 
|---|
|  |  |  | <Property name="caption">确定执行</Property> | 
|---|
|  |  |  | <Property name="action">updateAction1</Property> | 
|---|
|  |  |  | </Button> | 
|---|
|  |  |  | <Button> | 
|---|
|  |  |  | <ClientEvent name="onClick">view.get("#dialogLpr").hide();</ClientEvent> | 
|---|
|  |  |  | <Property name="caption">取消执行</Property> | 
|---|
|  |  |  | </Button> | 
|---|
|  |  |  | </Buttons> | 
|---|
|  |  |  | <Children> | 
|---|
|  |  |  | <AutoForm> | 
|---|
|  |  |  | <Property name="dataSet">dsQuery</Property> | 
|---|
|  |  |  | <Property name="cols">*</Property> | 
|---|
|  |  |  | <AutoFormElement> | 
|---|
|  |  |  | <Property name="name">carNumber</Property> | 
|---|
|  |  |  | <Property name="property">carNumber</Property> | 
|---|
|  |  |  | <Editor/> | 
|---|
|  |  |  | </AutoFormElement> | 
|---|
|  |  |  | </AutoForm> | 
|---|
|  |  |  | </Children> | 
|---|
|  |  |  | <Tools/> | 
|---|
|  |  |  | </Dialog> | 
|---|
|  |  |  | </View> | 
|---|
|  |  |  | </ViewConfig> | 
|---|