| | |
| | | <DataType name="dtMain"> |
| | | <Property name="creationType">com.fzzy.gateway.entity.GatewayConf</Property> |
| | | <PropertyDef name="kqmc"> |
| | | <Property/> |
| | | <Property></Property> |
| | | <Property name="label">库区名称</Property> |
| | | <Property name="required">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="kqdm"> |
| | | <Property/> |
| | | <Property></Property> |
| | | <Property name="label">库区代码</Property> |
| | | <Property name="required">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="gatewayId"> |
| | | <Property></Property> |
| | | <Property name="label">网关ID</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="gatewayUsername"> |
| | | <Property></Property> |
| | | <Property name="label">网关用户名</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="gatewayPassword"> |
| | | <Property></Property> |
| | | <Property name="label">网关密码</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="gatewayIp"> |
| | | <Property></Property> |
| | | <Property name="label">网关IP</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="gatewayMac"> |
| | | <Property></Property> |
| | | <Property name="label">网关Mac</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="gatewayCPU"> |
| | | <Property></Property> |
| | | <Property name="label">网关CPU</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="gatewayMem"> |
| | | <Property></Property> |
| | | <Property name="label">网关内存</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="gatewayHardDisk"> |
| | | <Property></Property> |
| | | <Property name="label">网关硬盘</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="userName"> |
| | | <Property/> |
| | | <Property></Property> |
| | | <Property name="label">省平台帐号</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="password"> |
| | | <Property/> |
| | | <Property></Property> |
| | | <Property name="label">省平台密码</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="publicKey"> |
| | | <Property/> |
| | | <Property></Property> |
| | | <Property name="label">省平台公钥</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="apiUrl"> |
| | | <Property/> |
| | | <Property></Property> |
| | | <Property name="label">省平台接口地址</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="exeTag"> |
| | | <Property/> |
| | | <Property></Property> |
| | | <Property name="label">是否启用</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="pushProtocol"> |
| | | <Property></Property> |
| | | <Property name="label">上行协议</Property> |
| | | <Property name="label">省平台协议</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("apiTriggerService#triggerPushProtocol").getResult()}</Property> |
| | | <Property name="keyProperty">code</Property> |
| | |
| | | <Property name="required">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="deptId"> |
| | | <Property/> |
| | | <Property></Property> |
| | | <Property name="label">粮库系统中库区编码</Property> |
| | | </PropertyDef> |
| | | </DataType> |
| | | <DataType name="dtParam" parent="Map"> |
| | | <PropertyDef name="start"> |
| | | <Property name="dataType">Date</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="end"> |
| | | <Property name="dataType">Date</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="dayTime"> |
| | | <Property name="dataType">Date</Property> |
| | | <Property name="label">选择时间</Property> |
| | | </PropertyDef> |
| | | </DataType> |
| | | </Model> |
| | |
| | | <DataSet id="dsMain"> |
| | | <Property name="dataType">[dtMain]</Property> |
| | | <Property name="dataProvider">gatewayConfService#listAll</Property> |
| | | </DataSet> |
| | | <DataSet id="dsQuery"> |
| | | <ClientEvent name="onReady">self.insert({});</ClientEvent> |
| | | <Property name="dataType">dtParam</Property> |
| | | </DataSet> |
| | | <ToolBar> |
| | | <ToolBarLabel> |
| | |
| | | <Property name="iconClass">fa fa-plus</Property> |
| | | <Property name="width">90</Property> |
| | | <Property name="exClassName">toolbar-button</Property> |
| | | </ToolBarButton> |
| | | <ToolBarButton> |
| | | <ClientEvent name="onClick">view.get("#dsMain").flushAsync();
 |
| | | </ClientEvent> |
| | | <Property name="caption">刷新</Property> |
| | | <Property name="iconClass">fa fa-search</Property> |
| | | <Property name="width">100</Property> |
| | | <Property name="exClassName">toolbar-button-push</Property> |
| | | </ToolBarButton> |
| | | <ToolBarButton> |
| | | <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 |
| | |
| | | <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">粮情推送测试</Property> |
| | | <Property name="iconClass">fa fa-search</Property> |
| | | <Property name="exClassName">toolbar-button-push</Property> |
| | | </ToolBarButton> |
| | | </ToolBar> |
| | | <DataGrid id="dgMain"> |
| | | <Property name="dataSet">dsMain</Property> |
| | |
| | | <Property name="name">grade</Property> |
| | | <Property name="width">200</Property> |
| | | </DataColumn> |
| | | <DataColumn name="gatewayId"> |
| | | <Property name="property">gatewayId</Property> |
| | | <Property name="width">300</Property> |
| | | </DataColumn> |
| | | <DataColumn name="gatewayUsername"> |
| | | <Property name="property">gatewayUsername</Property> |
| | | </DataColumn> |
| | | <DataColumn name="userName"> |
| | | <Property name="property">userName</Property> |
| | | </DataColumn> |
| | |
| | | </DataColumn> |
| | | <DataColumn name="exeTag"> |
| | | <Property name="property">exeTag</Property> |
| | | </DataColumn> |
| | | <DataColumn name="deptId"> |
| | | <Property name="property">deptId</Property> |
| | | </DataColumn> |
| | | </DataGrid> |
| | | <Dialog id="dialogMain"> |
| | |
| | | <AutoFormElement> |
| | | <Property name="name">kqdm</Property> |
| | | <Property name="property">kqdm</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">gatewayId</Property> |
| | | <Property name="property">gatewayId</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">gatewayUsername</Property> |
| | | <Property name="property">gatewayUsername</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">gatewayPassword</Property> |
| | | <Property name="property">gatewayPassword</Property> |
| | | <Property name="editorType">PasswordEditor</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">gatewayIp</Property> |
| | | <Property name="property">gatewayIp</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">gatewayMac</Property> |
| | | <Property name="property">gatewayMac</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">gatewayCPU</Property> |
| | | <Property name="property">gatewayCPU</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">gatewayMem</Property> |
| | | <Property name="property">gatewayMem</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">gatewayHardDisk</Property> |
| | | <Property name="property">gatewayHardDisk</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | |
| | | <Property name="service">gatewayConfService#pushData</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("#dsQuery.data");
 |
| | | view.get("#ajaxTestGrain").set("parameter",data.toJSON()).execute(function(result){
 |
| | | self.get("parent").hide();
 |
| | | $alert(result);
 |
| | | });</ClientEvent> |
| | | <Property name="caption">确定执行</Property> |
| | | </Button> |
| | | <Button> |
| | | <ClientEvent name="onClick">view.get("parent").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> |
| | | <AjaxAction id="ajaxTestGrain"> |
| | | <Property name="service">gatewayDeviceService#ajaxTestGrain</Property> |
| | | <Property name="executingMessage">在努力执行中……</Property> |
| | | </AjaxAction> |
| | | </View> |
| | | </ViewConfig> |