| | |
| | | <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> |
| | | <PropertyDef name="weight"> |
| | | <Property name="label">重量</Property> |
| | | </PropertyDef> |
| | | </DataType> |
| | | </Model> |
| | | <View layout="regionPadding:10"> |
| | | <Property name="packages">font-awesome,css-common</Property> |
| | | <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="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> |
| | | <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> |
| | | <Property name="caption">网关初始化</Property> |
| | | <Property name="iconClass">fa fa-search</Property> |
| | |
| | | </Children> |
| | | <Tools/> |
| | | </Dialog> |
| | | <AjaxAction id="ajaxTestGrain"> |
| | | <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> |
| | | </View> |