| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <ViewConfig> |
| | | <Arguments/> |
| | | <Context/> |
| | | <Model> |
| | | <DataType name="dtMain"> |
| | | <Property name="creationType">com.fzzy.api.entity.ApiList</Property> |
| | | <PropertyDef name="id"> |
| | | <Property name="dataType">Integer</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="code"> |
| | | <Property></Property> |
| | | <Property name="label">æ¥å£ç¼ç </Property> |
| | | <Property name="required">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="name"> |
| | | <Property></Property> |
| | | <Property name="label">æ¥å£åç§°</Property> |
| | | <Property name="required">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="category"> |
| | | <Property></Property> |
| | | <Property name="label">æ¥å£åç±»</Property> |
| | | <Property name="required">true</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("apiListPR#triggerCategory").getResult()}</Property> |
| | | <Property name="keyProperty">code</Property> |
| | | <Property name="valueProperty">name</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="version"> |
| | | <Property></Property> |
| | | <Property name="label">æ¥å£çæ¬</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="fromG"> |
| | | <Property></Property> |
| | | <Property name="label">æ°æ®æ¥æº-ç²®åºä¿¡æ¯ç³»ç»</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("apiTriggerService#trigger").getResult("YN")}</Property> |
| | | <Property name="keyProperty">code</Property> |
| | | <Property name="valueProperty">name</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="fromP"> |
| | | <Property></Property> |
| | | <Property name="label">æ°æ®æ¥æº-ç级平å°</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("apiTriggerService#trigger").getResult("YN")}</Property> |
| | | <Property name="keyProperty">code</Property> |
| | | <Property name="valueProperty">name</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="fromC"> |
| | | <Property></Property> |
| | | <Property name="label">æ°æ®æ¥æº-ä¸å¤®å¹³å°</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("apiTriggerService#trigger").getResult("YN")}</Property> |
| | | <Property name="keyProperty">code</Property> |
| | | <Property name="valueProperty">name</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="remark"> |
| | | <Property></Property> |
| | | <Property name="label">夿³¨è¯´æ</Property> |
| | | </PropertyDef> |
| | | </DataType> |
| | | </Model> |
| | | <View layout="regionPadding:10"> |
| | | <ClientEvent name="onClick">
 |
| | | //ä¿®æ¹
 |
| | | editData=function(){
 |
| | | var cur = view.get("#dgMain").getCurrentItem();
 |
| | | view.get("#dialogMain").show(); 
 |
| | | }
 |
| | | 
 |
| | | //åæ¥æ°æ®é
ç½®
 |
| | | syncData=function(){
 |
| | | $alert("å¾
å®å");
 |
| | | }
 |
| | | 
 |
| | | 
 |
| | | //æ¾ç¤ºè®°å½
 |
| | | showLog=function(){
 |
| | | $alert("å¾
å®å");
 |
| | | }</ClientEvent> |
| | | <Property name="packages">font-awesome,css-common</Property> |
| | | <DataSet id="dsMain"> |
| | | <Property name="dataType">[dtMain]</Property> |
| | | <Property name="dataProvider">apiListPR#listAll</Property> |
| | | </DataSet> |
| | | <ToolBar> |
| | | <ToolBarLabel> |
| | | <Property name="text">æ¥å£å表ï¼</Property> |
| | | <Property name="style"> |
| | | <Property name="font-weight">bold</Property> |
| | | </Property> |
| | | </ToolBarLabel> |
| | | <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">view.get("#dsMain").insert();
 |
| | | view.get("#dialogMain").show();</ClientEvent> |
| | | <Property name="caption">æ°å¢</Property> |
| | | <Property name="iconClass">fa fa-plus</Property> |
| | | <Property name="width">100</Property> |
| | | <Property name="exClassName">toolbar-button</Property> |
| | | </ToolBarButton> |
| | | </ToolBar> |
| | | <DataGrid id="dgMain"> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="selectionMode">multiRows</Property> |
| | | <Property name="highlightCurrentRow">false</Property> |
| | | <Property name="groupProperty">category</Property> |
| | | <RowNumColumn/> |
| | | <DataColumn name="code"> |
| | | <Property name="property">code</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">120</Property> |
| | | <Property name="readOnly">true</Property> |
| | | </DataColumn> |
| | | <DataColumn name="name"> |
| | | <Property name="property">name</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="readOnly">true</Property> |
| | | </DataColumn> |
| | | <DataColumn name="category"> |
| | | <Property name="property">category</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="readOnly">true</Property> |
| | | </DataColumn> |
| | | <DataColumn name="version"> |
| | | <Property name="property">version</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="readOnly">true</Property> |
| | | </DataColumn> |
| | | <ColumnGroup> |
| | | <Property name="caption">æ°æ®æ¥æº</Property> |
| | | <DataColumn name="fromG"> |
| | | <Property name="property">fromG</Property> |
| | | <Property name="caption">ç²®åºä¿¡æ¯ç³»ç»</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">100</Property> |
| | | <Property name="readOnly">true</Property> |
| | | </DataColumn> |
| | | <DataColumn name="fromP"> |
| | | <Property name="property">fromP</Property> |
| | | <Property name="caption">ç级平å°</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">100</Property> |
| | | <Property name="readOnly">true</Property> |
| | | </DataColumn> |
| | | <DataColumn name="fromC"> |
| | | <Property name="property">fromC</Property> |
| | | <Property name="caption">ä¸å¤®å¹³å°</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">100</Property> |
| | | <Property name="readOnly">true</Property> |
| | | </DataColumn> |
| | | </ColumnGroup> |
| | | <ColumnGroup> |
| | | <Property name="caption">æ¥å£æä½</Property> |
| | | <DataColumn> |
| | | <ClientEvent name="onRenderCell">arg.dom.innerHTML = "<a href='javaScript:;' onClick='editData()'>ç¼è¾</a>";
 |
| | | arg.processDefault = false;</ClientEvent> |
| | | <Property name="caption">ç¼è¾</Property> |
| | | <Property name="width">80</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Property name="align">center</Property> |
| | | <Editor/> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <ClientEvent name="onRenderCell">arg.dom.innerHTML = "<a href='javaScript:;' onClick='syncData()'>忥é
ç½®</a>";
 |
| | | arg.processDefault = false;</ClientEvent> |
| | | <Property name="caption">忥é
ç½®</Property> |
| | | <Property name="width">80</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Property name="align">center</Property> |
| | | <Editor/> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <ClientEvent name="onRenderCell">arg.dom.innerHTML = "<a href='javaScript:;' onClick='showLog()'>ä¸ä¼ è®°å½</a>";
 |
| | | arg.processDefault = false;</ClientEvent> |
| | | <Property name="caption">ä¸ä¼ è®°å½</Property> |
| | | <Property name="width">80</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Property name="align">center</Property> |
| | | <Editor/> |
| | | </DataColumn> |
| | | </ColumnGroup> |
| | | </DataGrid> |
| | | <Dialog id="dialogMain"> |
| | | <Property name="width">1000</Property> |
| | | <Property name="caption">æ¥å£ä¿¡æ¯</Property> |
| | | <Property name="iconClass">fa fa-sliders</Property> |
| | | <Property name="closeable">false</Property> |
| | | <Buttons> |
| | | <Button> |
| | | <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 |
| | | view.get("#updateSave").execute(function(){
 |
| | | self.get("parent").hide();
 |
| | | view.get("#dsMain").flushAsync();
 |
| | | });
 |
| | | </ClientEvent> |
| | | <Property name="caption">ä¿åä¿®æ¹</Property> |
| | | <Property name="iconClass">fa fa-check</Property> |
| | | <Property name="exClassName">toolbar-button</Property> |
| | | </Button> |
| | | <Button> |
| | | <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 |
| | | self.get("parent").hide();
 |
| | | if(cur) cur.cancel();</ClientEvent> |
| | | <Property name="caption">åæ¶ä¿®æ¹</Property> |
| | | <Property name="iconClass">fa fa-times</Property> |
| | | <Property name="exClassName">toolbar-button-warn</Property> |
| | | </Button> |
| | | </Buttons> |
| | | <Children> |
| | | <AutoForm> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="cols">*,*,*</Property> |
| | | <Property name="labelWidth">100</Property> |
| | | <Property name="labelAlign">left</Property> |
| | | <Property name="labelSeparator">ï¼</Property> |
| | | <Property name="labelPosition">top</Property> |
| | | <AutoFormElement> |
| | | <Property name="name">code</Property> |
| | | <Property name="property">code</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">name</Property> |
| | | <Property name="property">name</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">category</Property> |
| | | <Property name="property">category</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">fromG</Property> |
| | | <Property name="property">fromG</Property> |
| | | <Property name="trigger">autoMappingDropDown2</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">fromP</Property> |
| | | <Property name="property">fromP</Property> |
| | | <Property name="trigger">autoMappingDropDown2</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">fromC</Property> |
| | | <Property name="property">fromC</Property> |
| | | <Property name="trigger">autoMappingDropDown2</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">version</Property> |
| | | <Property name="property">version</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">remark</Property> |
| | | <Property name="property">remark</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | </AutoForm> |
| | | </Children> |
| | | <Tools/> |
| | | </Dialog> |
| | | <UpdateAction id="updateSave"> |
| | | <Property name="dataResolver">apiListPR#updateSave</Property> |
| | | <UpdateItem> |
| | | <Property name="dataPath">[#current]</Property> |
| | | <Property name="dataSet">dsMain</Property> |
| | | </UpdateItem> |
| | | </UpdateAction> |
| | | <AjaxAction id="ajaxDel"> |
| | | <Property name="service">apiListPR#delData</Property> |
| | | <Property name="confirmMessage">å½åæ°æ®å é¤åæ æ³æ¢å¤ï¼è¯·ç¡®è®¤è¦å é¤ä¹ï¼</Property> |
| | | </AjaxAction> |
| | | </View> |
| | | </ViewConfig> |