From 19860e76e91baf3cfce3c45bfa3ca886788c4ec8 Mon Sep 17 00:00:00 2001 From: jiazx0107@163.com <jiazx0107@163.com> Date: 星期四, 09 十一月 2023 11:59:59 +0800 Subject: [PATCH] 调整MQTT --- src/main/java/com/fzzy/gateway/view/GatewayConf.view.xml | 109 ++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 105 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/fzzy/gateway/view/GatewayConf.view.xml b/src/main/java/com/fzzy/gateway/view/GatewayConf.view.xml index 368136a..9b9ec87 100644 --- a/src/main/java/com/fzzy/gateway/view/GatewayConf.view.xml +++ b/src/main/java/com/fzzy/gateway/view/GatewayConf.view.xml @@ -83,15 +83,24 @@ </PropertyDef> </DataType> <DataType name="dtParam" parent="Map"> + <Property name="creationType">com.fzzy.gateway.hx2023.data.GateWayTestParam</Property> <PropertyDef name="start"> - <Property name="dataType">Date</Property> + <Property name="dataType">DateTime</Property> </PropertyDef> <PropertyDef name="end"> - <Property name="dataType">Date</Property> + <Property name="dataType">DateTime</Property> </PropertyDef> <PropertyDef name="dayTime"> - <Property name="dataType">Date</Property> + <Property name="dataType">DateTime</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> </DataType> </Model> @@ -154,6 +163,24 @@ <Property name="caption">绮儏鎺ㄩ�佹祴璇�</Property> <Property name="iconClass">fa fa-search</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-search</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-search</Property> + <Property name="exClassName">toolbar-button-push</Property> + </ToolBarButton> + <ToolBarButton> + <Property name="caption">缃戝叧鍒濆鍖�</Property> + <Property name="iconClass">fa fa-search</Property> + <Property name="exClassName">toolbar-button-push</Property> + <Property name="action">ajaxInit</Property> </ToolBarButton> </ToolBar> <DataGrid id="dgMain"> @@ -345,7 +372,7 @@ <Property name="caption">纭畾鎵ц</Property> </Button> <Button> - <ClientEvent name="onClick">view.get("parent").hide();</ClientEvent> + <ClientEvent name="onClick">view.get("#dialogGrain").hide();</ClientEvent> <Property name="caption">鍙栨秷鎵ц</Property> </Button> </Buttons> @@ -366,5 +393,79 @@ <Property name="service">gatewayDeviceService#ajaxTestGrain</Property> <Property name="executingMessage">鍦ㄥ姫鍔涙墽琛屼腑鈥︹��</Property> </AjaxAction> + <AjaxAction id="ajaxInit"> + <Property name="service">apiInitService#init</Property> + <Property name="executingMessage">鍦ㄥ姫鍔涙墽琛屼腑鈥︹��</Property> + </AjaxAction> + <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("#dsQuery.data");
 +view.get("#ajaxTestWeight").set("parameter",data.get("weight")).execute(function(result){
 + self.get("parent").hide();
 + $alert(result);
 +});</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> + <AjaxAction id="ajaxTestWeight"> + <Property name="service">gatewayDeviceService#ajaxTestWeight</Property> + <Property name="executingMessage">鍦ㄥ姫鍔涙墽琛屼腑鈥︹��</Property> + </AjaxAction> + <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("#dsQuery.data");
 +view.get("#ajaxTestLpr").set("parameter",data).execute(function(result){
 + self.get("parent").hide();
 + $alert(result);
 +});</ClientEvent> + <Property name="caption">纭畾鎵ц</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> + <AjaxAction id="ajaxTestLpr"> + <Property name="service">gatewayDeviceService#ajaxTestLpr</Property> + <Property name="executingMessage">鍦ㄥ姫鍔涙墽琛屼腑鈥︹��</Property> + </AjaxAction> </View> </ViewConfig> -- Gitblit v1.9.3