¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <ViewConfig> |
| | | <Arguments/> |
| | | <Context/> |
| | | <Model> |
| | | <DataType name="dtMain"> |
| | | <Property name="creationType">com.fzzy.api.entity.GbUnifiedCoding</Property> |
| | | <PropertyDef name="ajdm"> |
| | | <Property></Property> |
| | | <Property name="label">å»é´ç¼ç </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="ajmc"> |
| | | <Property></Property> |
| | | <Property name="label">å»é´åç§°</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="dwmc"> |
| | | <Property></Property> |
| | | <Property name="label">åä½åç§°</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="frdwdm"> |
| | | <Property></Property> |
| | | <Property name="label">åä½ç¼ç </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="qyxz"> |
| | | <Property></Property> |
| | | <Property name="label">ä¼ä¸æ§è´¨</Property> |
| | | <Property name="mapping"> |
| | | <Property name="keyProperty">code</Property> |
| | | <Property name="valueProperty">name</Property> |
| | | <Property name="mapValues"> |
| | | <Collection> |
| | | <Entity> |
| | | <Property name="code">10</Property> |
| | | <Property name="name">10-ä¸å¨ç²®ç´å±ä¼ä¸(å
æ¬ååºåæ§è¡ä¼ä¸)</Property> |
| | | </Entity> |
| | | <Entity> |
| | | <Property name="code">20</Property> |
| | | <Property name="name">20-å
¶ä»ä¸å¤®ä¼ä¸(ä¸ç²®ãä¾éãä¸åçï¼ä¸å«ç§ä»åºç¹)</Property> |
| | | </Entity> |
| | | <Entity> |
| | | <Property name="code">30</Property> |
| | | <Property name="name">30-çå±å½æå彿æ§è¡ä¼ä¸</Property> |
| | | </Entity> |
| | | <Entity> |
| | | <Property name="code">31</Property> |
| | | <Property name="name">31-å¸å±å½æå彿æ§è¡ä¼ä¸</Property> |
| | | </Entity> |
| | | <Entity> |
| | | <Property name="code">32</Property> |
| | | <Property name="name">32-å¿çº§å½æå彿æ§è¡ä¼ä¸</Property> |
| | | </Entity> |
| | | <Entity> |
| | | <Property name="code">40</Property> |
| | | <Property name="name">40-æ°è¥åå
¶ä»é彿æ§è¡è¡ä»½å¶ä¼ä¸</Property> |
| | | </Entity> |
| | | <Entity> |
| | | <Property name="code">50</Property> |
| | | <Property name="name">50-å¤èµä¼ä¸</Property> |
| | | </Entity> |
| | | </Collection> |
| | | </Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="kqmc"> |
| | | <Property></Property> |
| | | <Property name="label">åºåºåç§°</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="kqdm"> |
| | | <Property></Property> |
| | | <Property name="label">åºåºç¼ç </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="cfdm"> |
| | | <Property></Property> |
| | | <Property name="label">仿¿ç¼ç </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="cfmc"> |
| | | <Property></Property> |
| | | <Property name="label">仿¿åç§°</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="createTime"> |
| | | <Property name="dataType">DateTime</Property> |
| | | <Property name="label">å建æ¶é´</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="sjDeptName"> |
| | | <Property></Property> |
| | | <Property name="label">ä¸çº§åä½åç§°</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="updateTime"> |
| | | <Property name="dataType">DateTime</Property> |
| | | <Property name="label">æ´æ°æ¶é´</Property> |
| | | </PropertyDef> |
| | | </DataType> |
| | | <DataType name="dtParam"> |
| | | <PropertyDef name="dwmc"> |
| | | <Property></Property> |
| | | <Property name="label">åä½åç§°</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="kqmc"> |
| | | <Property></Property> |
| | | <Property name="label">åºåºåç§°</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="ajmc"> |
| | | <Property></Property> |
| | | <Property name="label">å»é´åç§°</Property> |
| | | </PropertyDef> |
| | | </DataType> |
| | | <DataType name="dtParam2"> |
| | | <Property name="creationType">com.fzzy.api.data.ApiParam</Property> |
| | | <PropertyDef name="dwdm"> |
| | | <Property></Property> |
| | | <Property name="label">åä½ä¿¡æ¯</Property> |
| | | <Property name="required">true</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("api1101PR#listAll").getResult()}</Property> |
| | | <Property name="keyProperty">dwdm</Property> |
| | | <Property name="valueProperty">dwmc</Property> |
| | | </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">gbUnifiedCodingPR#pageList</Property> |
| | | <Property name="pageSize">20</Property> |
| | | </DataSet> |
| | | <DataSet id="dsQuery"> |
| | | <ClientEvent name="onReady">self.insert();</ClientEvent> |
| | | <Property name="dataType">dtParam</Property> |
| | | </DataSet> |
| | | <DataSet id="dsQuery2"> |
| | | <ClientEvent name="onReady">self.insert();</ClientEvent> |
| | | <Property name="dataType">dtParam2</Property> |
| | | </DataSet> |
| | | <AutoForm> |
| | | <Property name="dataSet">dsQuery</Property> |
| | | <Property name="cols">*,*,*,500px</Property> |
| | | <Property name="labelAlign">right</Property> |
| | | <Property name="labelSeparator">ï¼</Property> |
| | | <Property name="labelWidth">90</Property> |
| | | <AutoFormElement> |
| | | <Property name="name">dwmc</Property> |
| | | <Property name="property">dwmc</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">kqmc</Property> |
| | | <Property name="property">kqmc</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">ajmc</Property> |
| | | <Property name="property">ajmc</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <ToolBar> |
| | | <ToolBarButton> |
| | | <ClientEvent name="onClick">var query = view.get("#dsQuery").getData();
 |
| | | view.get("#dsMain").set("parameter",query).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();
 |
| | | if(cur){
 |
| | | view.get("#dialogMain").show();
 |
| | | }else{
 |
| | | $alert("请å¾éæ³è¦æ¥ççæ°æ®ï¼");
 |
| | | }
 |
| | | </ClientEvent> |
| | | <Property name="caption">详æ
</Property> |
| | | <Property name="iconClass">fa fa-search</Property> |
| | | <Property name="width">100</Property> |
| | | <Property name="exClassName">toolbar-button</Property> |
| | | <Property name="hideMode">display</Property> |
| | | <Property name="visible">true</Property> |
| | | </ToolBarButton> |
| | | <ToolBarButton> |
| | | <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 |
| | | view.get("#ajaxDel").set("parameter",cur).execute(function(result){
 |
| | | if(result){
 |
| | | $alert(result);
 |
| | | } else{
 |
| | | cur.remove();
 |
| | | }
 |
| | | });
 |
| | | </ClientEvent> |
| | | <Property name="caption">å é¤</Property> |
| | | <Property name="iconClass">fa fa-minus</Property> |
| | | <Property name="exClassName">toolbar-button-warn</Property> |
| | | <Property name="width">100</Property> |
| | | <Property name="visible">true</Property> |
| | | <Property name="hideMode">display</Property> |
| | | </ToolBarButton> |
| | | <ToolBarButton> |
| | | <ClientEvent name="onClick">view.get("#dialogPull").show();</ClientEvent> |
| | | <Property name="caption">æåç»ä¸ç¼ç </Property> |
| | | <Property name="iconClass">fa fa-minus</Property> |
| | | <Property name="exClassName">toolbar-button-warm</Property> |
| | | <Property name="width">150</Property> |
| | | </ToolBarButton> |
| | | </ToolBar> |
| | | </AutoForm> |
| | | <DataGrid id="dgMain"> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="selectionMode">multiRows</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <RowNumColumn/> |
| | | <RowSelectorColumn> |
| | | <Property name="caption">ä¸ä¼ </Property> |
| | | </RowSelectorColumn> |
| | | <DataColumn> |
| | | <Property name="property">ajdm</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="name">ajdm</Property> |
| | | <Property name="width">240</Property> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <Property name="property">ajmc</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="name">ajmc</Property> |
| | | <Property name="width">100</Property> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <Property name="property">cfdm</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="name">cfdm</Property> |
| | | <Property name="width">220</Property> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <Property name="property">cfmc</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="name">cfmc</Property> |
| | | <Property name="width">100</Property> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <Property name="property">kqdm</Property> |
| | | <Property name="visible">true</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="name">kqdm</Property> |
| | | <Property name="width">200</Property> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <Property name="property">kqmc</Property> |
| | | <Property name="name">kqmc</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <Property name="property">frdwdm</Property> |
| | | <Property name="name">frdwdm</Property> |
| | | <Property name="width">190</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <Property name="property">qyxz</Property> |
| | | <Property name="name">qyxz</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <Property name="property">updateTime</Property> |
| | | <Property name="name">updateTime</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">150</Property> |
| | | </DataColumn> |
| | | </DataGrid> |
| | | <ToolBar layoutConstraint="bottom"> |
| | | <Fill/> |
| | | <DataPilot> |
| | | <Property name="itemCodes">pageSize,pages</Property> |
| | | <Property name="dataSet">dsMain</Property> |
| | | </DataPilot> |
| | | </ToolBar> |
| | | <Dialog id="dialogMain"> |
| | | <Property name="width">1000</Property> |
| | | <Property name="caption">详ç»ä¿¡æ¯</Property> |
| | | <Property name="iconClass">fa fa-sliders</Property> |
| | | <Property name="closeable">false</Property> |
| | | <Property name="height">90%</Property> |
| | | <Buttons> |
| | | <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">ajdm</Property> |
| | | <Property name="property">ajdm</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">ajmc</Property> |
| | | <Property name="property">ajmc</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">cfdm</Property> |
| | | <Property name="property">cfdm</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">cfmc</Property> |
| | | <Property name="property">cfmc</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">kqdm</Property> |
| | | <Property name="property">kqdm</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">kqmc</Property> |
| | | <Property name="property">kqmc</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">frdwdm</Property> |
| | | <Property name="property">frdwdm</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">dwmc</Property> |
| | | <Property name="property">dwmc</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">qyxz</Property> |
| | | <Property name="property">qyxz</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">sjDeptName</Property> |
| | | <Property name="property">sjDeptName</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">createTime</Property> |
| | | <Property name="property">createTime</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">updateTime</Property> |
| | | <Property name="property">updateTime</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | </AutoForm> |
| | | </Children> |
| | | <Tools/> |
| | | </Dialog> |
| | | <Dialog id="dialogPull"> |
| | | <Property name="width">600</Property> |
| | | <Property name="caption">ç»ä¸ç¼ç æ°æ®æå</Property> |
| | | <Buttons> |
| | | <Button> |
| | | <ClientEvent name="onClick">var data = view.get("#dsQuery2.data");
 |
| | | 
 |
| | | if (data.validate() != 'ok') {
 |
| | | $alert("请填å宿忰");
 |
| | | return;
 |
| | | }
 |
| | | 
 |
| | | var dwdm = data.get("dwdm");
 |
| | | 
 |
| | | view.get("#ajaxPullData").set("parameter",dwdm).execute(function(result){
 |
| | | view.get("#dialogPull").hide();
 |
| | | $alert(result);
 |
| | | });</ClientEvent> |
| | | <Property name="caption">确认æ§è¡</Property> |
| | | <Property name="iconClass">fa fa-check</Property> |
| | | <Property name="exClassName">toolbar-button</Property> |
| | | </Button> |
| | | <Button> |
| | | <ClientEvent name="onClick">self.get("parent").hide();</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">dsQuery2</Property> |
| | | <Property name="cols">*</Property> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">dwdm</Property> |
| | | <Property name="property">dwdm</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | </AutoForm> |
| | | </Children> |
| | | <Tools/> |
| | | </Dialog> |
| | | <AjaxAction id="ajaxDel"> |
| | | <Property name="service">gbUnifiedCodingPR#delData</Property> |
| | | <Property name="confirmMessage">å½åæ°æ®å é¤åæ æ³æ¢å¤ï¼è¯·ç¡®è®¤è¦å é¤ä¹ï¼</Property> |
| | | </AjaxAction> |
| | | <AjaxAction id="ajaxPullData"> |
| | | <Property name="service">gbUnifiedCodingPR#pullData</Property> |
| | | </AjaxAction> |
| | | </View> |
| | | </ViewConfig> |