src/main/java/com/fzzy/otherview/whhpjl/WhjlApi1215.view.xml
@@ -45,6 +45,10 @@ <Property/> <Property name="label">äº§åæ¹æ¬¡</Property> </PropertyDef> <PropertyDef name="cplx"> <Property/> <Property name="label">产åç±»å</Property> </PropertyDef> <PropertyDef name="scrq"> <Property name="dataType">Date</Property> <Property name="label">çäº§æ¥æ</Property> @@ -253,6 +257,9 @@ <DataColumn name="cppc"> <Property name="property">cppc</Property> </DataColumn> <DataColumn name="cplx"> <Property name="property">cplx</Property> </DataColumn> <DataColumn name="czbz"> <Property name="property">czbz</Property> </DataColumn> @@ -346,6 +353,11 @@ <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">cplx</Property> <Property name="property">cplx</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">scrq</Property> <Property name="property">scrq</Property> <Editor/> src/main/java/com/fzzy/otherview/whhpjl/WhjlShareApi2005.view.xml
@@ -295,6 +295,7 @@ <Property name="closeable">false</Property> <Property name="iconClass">fa fa-sliders</Property> <Property name="caption">åç²®ä¾åºåä¿¡æ¯</Property> <Property name="height">80%</Property> <Buttons> <Button> <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 @@ -506,7 +507,6 @@ <Property name="property">sfyx</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">updateTime</Property> <Property name="property">updateTime</Property> src/main/java/com/fzzy/otherview/whhpjl/WhjlShareApi2006.view.xml
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,300 @@ <?xml version="1.0" encoding="UTF-8"?> <ViewConfig> <Arguments/> <Context/> <Model> <DataType name="dtMain"> <Property name="creationType">com.fzzy.otherview.whhpjl.dto.WhjlShareApi2006</Property> <PropertyDef name="jlppbh"> <Property/> <Property name="label">åç²®åçç¼å·</Property> </PropertyDef> <PropertyDef name="jlppmc"> <Property/> <Property name="label">åç²®åçåç§°</Property> </PropertyDef> <PropertyDef name="jlppmcjc"> <Property/> <Property name="label">åç²®åçåç§°ç®ç§°</Property> </PropertyDef> <PropertyDef name="jljgqybh"> <Property/> <Property name="label">åç²®å å·¥ä¼ä¸ç¼å·</Property> </PropertyDef> <PropertyDef name="jljgqymc"> <Property/> <Property name="label">åç²®å å·¥ä¼ä¸åç§°</Property> </PropertyDef> <PropertyDef name="sfyx"> <Property/> <Property name="label">æ¯å¦ææ</Property> </PropertyDef> <PropertyDef name="updateTime"> <Property name="dataType">Date</Property> </PropertyDef> <PropertyDef name="czbz"> <Property></Property> <Property name="label">æä½æ å¿</Property> <Property name="mapping"> <Property name="mapValues">${dorado.getDataProvider("apiTriggerService#trigger").getResult("CZBZ")}</Property> <Property name="keyProperty">code</Property> <Property name="valueProperty">name</Property> </Property> </PropertyDef> <PropertyDef name="kqdm"> <Property></Property> <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">whjlShareApi2006PR#listData</Property> </DataSet> <Container layout="regionPadding:10" layoutConstraint="top"> <Property name="exClassName">bg-color</Property> <Property name="height">55</Property> <Property name="contentOverflow">hidden</Property> <Label layoutConstraint="left"> <Property name="text">èåæ ï¼</Property> </Label> <Button layoutConstraint="left"> <ClientEvent name="onClick">view.get("#dsMain").insert();
 view.get("#dialogMain").show();</ClientEvent> <Property name="iconClass">fa fa-plus</Property> <Property name="caption">æ°å¢</Property> <Property name="exClassName">btn-default</Property> </Button> <Button layoutConstraint="left"> <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-pencil</Property> <Property name="exClassName">btn-warm</Property> </Button> <Button layoutConstraint="left"> <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 if(cur){
 view.get("#ajaxDel").set("parameter",cur).execute(function(result){
 if(result){
 $alert(result);
 } else{
 cur.remove();
 }
 });
 }else{
 $alert("请å¾ééè¦å é¤çæ°æ®ï¼");
 }</ClientEvent> <Property name="caption">å é¤</Property> <Property name="iconClass">fa fa-minus</Property> <Property name="exClassName">btn-warn</Property> </Button> <Button layoutConstraint="left"> <ClientEvent name="onClick">view.get("#dsMain").flushAsync();</ClientEvent> <Property name="caption">å·æ°</Property> <Property name="iconClass">fa fa-search</Property> <Property name="exClassName">btn-flush</Property> </Button> <Button layoutConstraint="left"> <ClientEvent name="onClick">var select = view.get("#dgMain").get("selection");
 view.get("#ajaxPull").set("parameter",select).execute(function(result){
 view.get("#dsMain").flushAsync();
 $notify(result);
 });
 </ClientEvent> <Property name="caption">æå¨æ´æ°</Property> <Property name="iconClass">fa fa-hand-o-up</Property> <Property name="exClassName">btn-default</Property> </Button> <Button layoutConstraint="right"> <ClientEvent name="onClick">//æ¾ç¤ºè®°å½
 view.get("#iFrame").reload();
 view.get("#dialogLog").show();</ClientEvent> <Property name="caption">æ´æ°è®°å½</Property> <Property name="iconClass">fa fa-bars</Property> <Property name="exClassName">btn-flush</Property> </Button> </Container> <Container layoutConstraint="center"> <Property name="exClassName">bg-color</Property> <DataGrid id="dgMain"> <ClientEvent name="onDataRowDoubleClick">var data = view.get("#dsMain.data:#");
 if(data){
 view.get("#dialogMain").show();
 }</ClientEvent> <Property name="dataSet">dsMain</Property> <Property name="selectionMode">multiRows</Property> <Property name="readOnly">true</Property> <RowNumColumn/> <RowSelectorColumn> <Property name="caption">ä¸ä¼ </Property> </RowSelectorColumn> <DataColumn name="jlppbh"> <Property name="property">jlppbh</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="jlppmc"> <Property name="property">jlppmc</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="jlppmcjc"> <Property name="property">jlppmcjc</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="jljgqybh"> <Property name="property">jljgqybh</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="jljgqymc"> <Property name="property">jljgqymc</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="sfyx"> <Property name="property">sfyx</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="updateTime"> <Property name="property">updateTime</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="czbz"> <Property name="property">czbz</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="kqdm"> <Property name="property">kqdm</Property> <Property name="align">center</Property> </DataColumn> </DataGrid> </Container> <Dialog id="dialogMain"> <Property name="width">60%</Property> <Property name="closeable">false</Property> <Property name="iconClass">fa fa-sliders</Property> <Property name="caption">åç²®ä¾åºåä¿¡æ¯</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> </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> </Button> </Buttons> <Children> <AutoForm> <Property name="dataSet">dsMain</Property> <Property name="cols">*,*</Property> <Property name="labelPosition">left</Property> <Property name="labelSeparator">:</Property> <Property name="labelAlign">right</Property> <Property name="labelWidth">120</Property> <AutoFormElement> <Property name="name">jlppbh</Property> <Property name="property">jlppbh</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jlppmc</Property> <Property name="property">jlppmc</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jlppmcjc</Property> <Property name="property">jlppmcjc</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jljgqybh</Property> <Property name="property">jljgqybh</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jljgqymc</Property> <Property name="property">jljgqymc</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">sfyx</Property> <Property name="property">sfyx</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">updateTime</Property> <Property name="property">updateTime</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">czbz</Property> <Property name="property">czbz</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">kqdm</Property> <Property name="property">kqdm</Property> <Editor/> </AutoFormElement> </AutoForm> </Children> <Tools/> </Dialog> <UpdateAction id="updateSave"> <Property name="dataResolver">whjlShareApi2006PR#saveData</Property> <UpdateItem> <Property name="dataPath">[#current]</Property> <Property name="dataSet">dsMain</Property> </UpdateItem> </UpdateAction> <AjaxAction id="ajaxDel"> <Property name="confirmMessage">å½åæ°æ®å é¤åæ æ³æ¢å¤ï¼è¯·ç¡®è®¤è¦å é¤ä¹ï¼</Property> <Property name="service">whjlShareApi2006PR#delData</Property> </AjaxAction> <AjaxAction id="ajaxPull"> <Property name="service">whjlShareApi2006PR#pullData</Property> </AjaxAction> <Dialog id="dialogLog"> <Property name="width">90%</Property> <Property name="height">90%</Property> <Property name="caption">æ´æ°è®°å½</Property> <Property name="iconClass">fa fa-sliders</Property> <Buttons> <Button> <ClientEvent name="onClick">self.get("parent").hide();</ClientEvent> <Property name="caption">å ³é</Property> <Property name="iconClass">fa fa-times</Property> </Button> </Buttons> <Children> <Container> <IFrame id="iFrame"> <Property name="path">com.fzzy.api.view.ApiLog.d</Property> <Property name="userData"> <Entity> <Property name="deptId">deptId</Property> </Entity> </Property> </IFrame> </Container> </Children> <Tools/> </Dialog> <ListDropDown id="listDropYN"> <Property name="items">æ¯,å¦</Property> </ListDropDown> </View> </ViewConfig> src/main/java/com/fzzy/otherview/whhpjl/WhjlShareApi2007.view.xml
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,616 @@ <?xml version="1.0" encoding="UTF-8"?> <ViewConfig> <Arguments/> <Context/> <Model> <DataType name="dtMain"> <Property name="creationType">com.fzzy.otherview.whhpjl.dto.WhjlShareApi2007</Property> <PropertyDef name="jlcpbh"> <Property/> <Property name="label">å粮产åç¼å·</Property> </PropertyDef> <PropertyDef name="jlppbh"> <Property/> <Property name="label">åç²®åçç¼å·</Property> </PropertyDef> <PropertyDef name="jsdwflbh"> <Property/> <Property name="label">计æ°åä½åç±»ç¼å·</Property> </PropertyDef> <PropertyDef name="jlcpmc"> <Property/> <Property name="label">å粮产ååç§°</Property> </PropertyDef> <PropertyDef name="jlcpjc"> <Property/> <Property name="label">å粮产åç®ç§°</Property> </PropertyDef> <PropertyDef name="jllspzmc"> <Property/> <Property name="label">å粮粮é£åç§åç§°</Property> </PropertyDef> <PropertyDef name="jllspzbh"> <Property/> <Property name="label">å粮粮é£åç§ç¼å·</Property> </PropertyDef> <PropertyDef name="jldwflbh"> <Property/> <Property name="label">计éåä½åç±»ç¼å·</Property> </PropertyDef> <PropertyDef name="cpdj"> <Property/> <Property name="label">产åç级</Property> </PropertyDef> <PropertyDef name="bzfsmc"> <Property/> <Property name="label">å è£ æ¹å¼åç§°</Property> </PropertyDef> <PropertyDef name="bzfsbh"> <Property/> <Property name="label">å è£ æ¹å¼ç¼å·</Property> </PropertyDef> <PropertyDef name="bzgg"> <Property/> <Property name="label">å è£ è§æ ¼</Property> </PropertyDef> <PropertyDef name="jsgg"> <Property/> <Property name="label">计æ°è§æ ¼</Property> </PropertyDef> <PropertyDef name="sccj"> <Property/> <Property name="label">ç产åå®¶</Property> </PropertyDef> <PropertyDef name="bzq"> <Property/> <Property name="label">ä¿è´¨æ</Property> </PropertyDef> <PropertyDef name="cd"> <Property/> <Property name="label">产å°</Property> </PropertyDef> <PropertyDef name="scrq"> <Property/> <Property name="label">çäº§æ¥æ</Property> </PropertyDef> <PropertyDef name="lxr"> <Property/> <Property name="label">è系人</Property> </PropertyDef> <PropertyDef name="dh"> <Property/> <Property name="label">çµè¯</Property> </PropertyDef> <PropertyDef name="cz"> <Property/> <Property name="label">ä¼ ç</Property> </PropertyDef> <PropertyDef name="dzyj"> <Property/> <Property name="label">çµåé®ä»¶</Property> </PropertyDef> <PropertyDef name="qygk"> <Property/> <Property name="label">ä¼ä¸æ¦åµ</Property> </PropertyDef> <PropertyDef name="cpjs"> <Property/> <Property name="label">产åä»ç»</Property> </PropertyDef> <PropertyDef name="yyzz"> <Property/> <Property name="label">è¥ä¸æ§ç §</Property> </PropertyDef> <PropertyDef name="zzjgz"> <Property/> <Property name="label">ç»ç»æºæä»£ç è¯</Property> </PropertyDef> <PropertyDef name="swdjz"> <Property/> <Property name="label">ç¨å¡ç»è®°è¯</Property> </PropertyDef> <PropertyDef name="spltxkz"> <Property/> <Property name="label">é£åæµé许å¯è¯</Property> </PropertyDef> <PropertyDef name="ybnsrzgzm"> <Property/> <Property name="label">ä¸è¬çº³ç¨äººèµæ ¼è¯æ</Property> </PropertyDef> <PropertyDef name="sjgzxshyj"> <Property/> <Property name="label">å¸åä¾ä¸å¿å®¡æ ¸æè§</Property> </PropertyDef> <PropertyDef name="jlfwshyj"> <Property/> <Property name="label">åç²®æå¡æéå ¬å¸å®¡æ ¸æè§</Property> </PropertyDef> <PropertyDef name="sjgzxyj"> <Property/> <Property name="label">çåä¾ä¸å¿æè§</Property> </PropertyDef> <PropertyDef name="yjcd"> <Property/> <Property name="label">åä»¶åæ¡£</Property> </PropertyDef> <PropertyDef name="dj"> <Property/> <Property name="label">åä»·</Property> </PropertyDef> <PropertyDef name="scxkzh"> <Property/> <Property name="label">ç产许å¯è¯å·</Property> </PropertyDef> <PropertyDef name="jggy"> <Property/> <Property name="label">å 工工èº</Property> </PropertyDef> <PropertyDef name="zlxx"> <Property/> <Property name="label">è´¨éä¿¡æ¯</Property> </PropertyDef> <PropertyDef name="yynxx"> <Property/> <Property name="label">è¥å »ä¿¡æ¯</Property> </PropertyDef> <PropertyDef name="lsyjrz"> <Property/> <Property name="label">ç»¿è²ææºè®¤è¯</Property> </PropertyDef> <PropertyDef name="nscl"> <Property/> <Property name="label">å¹´ç产é</Property> </PropertyDef> <PropertyDef name="sfyx"> <Property/> <Property name="label">æ¯å¦ææ</Property> </PropertyDef> <PropertyDef name="updateTime"> <Property name="dataType">DateTime</Property> <Property name="label">æåæ´æ°æ¶é´</Property> </PropertyDef> <PropertyDef name="czbz"> <Property></Property> <Property name="label">æä½æ å¿</Property> <Property name="mapping"> <Property name="mapValues">${dorado.getDataProvider("apiTriggerService#trigger").getResult("CZBZ")}</Property> <Property name="keyProperty">code</Property> <Property name="valueProperty">name</Property> </Property> </PropertyDef> <PropertyDef name="kqdm"> <Property></Property> <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">whjlShareApi2007PR#listData</Property> </DataSet> <Container layout="regionPadding:10" layoutConstraint="top"> <Property name="exClassName">bg-color</Property> <Property name="height">55</Property> <Property name="contentOverflow">hidden</Property> <Label layoutConstraint="left"> <Property name="text">èåæ ï¼</Property> </Label> <Button layoutConstraint="left"> <ClientEvent name="onClick">view.get("#dsMain").insert();
 view.get("#dialogMain").show();</ClientEvent> <Property name="iconClass">fa fa-plus</Property> <Property name="caption">æ°å¢</Property> <Property name="exClassName">btn-default</Property> </Button> <Button layoutConstraint="left"> <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-pencil</Property> <Property name="exClassName">btn-warm</Property> </Button> <Button layoutConstraint="left"> <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 if(cur){
 view.get("#ajaxDel").set("parameter",cur).execute(function(result){
 if(result){
 $alert(result);
 } else{
 cur.remove();
 }
 });
 }else{
 $alert("请å¾ééè¦å é¤çæ°æ®ï¼");
 }</ClientEvent> <Property name="caption">å é¤</Property> <Property name="iconClass">fa fa-minus</Property> <Property name="exClassName">btn-warn</Property> </Button> <Button layoutConstraint="left"> <ClientEvent name="onClick">view.get("#dsMain").flushAsync();</ClientEvent> <Property name="caption">å·æ°</Property> <Property name="iconClass">fa fa-search</Property> <Property name="exClassName">btn-flush</Property> </Button> <Button layoutConstraint="left"> <ClientEvent name="onClick">var select = view.get("#dgMain").get("selection");
 view.get("#ajaxPull").set("parameter",select).execute(function(result){
 view.get("#dsMain").flushAsync();
 $notify(result);
 });
 </ClientEvent> <Property name="caption">æå¨æ´æ°</Property> <Property name="iconClass">fa fa-hand-o-up</Property> <Property name="exClassName">btn-default</Property> </Button> <Button layoutConstraint="right"> <ClientEvent name="onClick">//æ¾ç¤ºè®°å½
 view.get("#iFrame").reload();
 view.get("#dialogLog").show();</ClientEvent> <Property name="caption">æ´æ°è®°å½</Property> <Property name="iconClass">fa fa-bars</Property> <Property name="exClassName">btn-flush</Property> </Button> </Container> <Container layoutConstraint="center"> <Property name="exClassName">bg-color</Property> <DataGrid id="dgMain"> <ClientEvent name="onDataRowDoubleClick">var data = view.get("#dsMain.data:#");
 if(data){
 view.get("#dialogMain").show();
 }</ClientEvent> <Property name="dataSet">dsMain</Property> <Property name="selectionMode">multiRows</Property> <Property name="readOnly">true</Property> <RowNumColumn/> <RowSelectorColumn> <Property name="caption">ä¸ä¼ </Property> </RowSelectorColumn> <DataColumn name="jlcpbh"> <Property name="property">jlcpbh</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="jlppbh"> <Property name="property">jlppbh</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="jsdwflbh"> <Property name="property">jsdwflbh</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="jlcpmc"> <Property name="property">jlcpmc</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="jlcpjc"> <Property name="property">jlcpjc</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="jllspzmc"> <Property name="property">jllspzmc</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="jllspzbh"> <Property name="property">jllspzbh</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="sfyx"> <Property name="property">sfyx</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="updateTime"> <Property name="property">updateTime</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="czbz"> <Property name="property">czbz</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="kqdm"> <Property name="property">kqdm</Property> <Property name="align">center</Property> </DataColumn> </DataGrid> </Container> <Dialog id="dialogMain"> <Property name="width">60%</Property> <Property name="closeable">false</Property> <Property name="iconClass">fa fa-sliders</Property> <Property name="caption">åç²®ä¾åºåä¿¡æ¯</Property> <Property name="height">80%</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> </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> </Button> </Buttons> <Children> <AutoForm> <Property name="dataSet">dsMain</Property> <Property name="cols">*,*</Property> <Property name="labelPosition">left</Property> <Property name="labelSeparator">:</Property> <Property name="labelAlign">right</Property> <Property name="labelWidth">120</Property> <AutoFormElement> <Property name="name">jlcpbh</Property> <Property name="property">jlcpbh</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jlppbh</Property> <Property name="property">jlppbh</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jsdwflbh</Property> <Property name="property">jsdwflbh</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jlcpmc</Property> <Property name="property">jlcpmc</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jlcpjc</Property> <Property name="property">jlcpjc</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jllspzmc</Property> <Property name="property">jllspzmc</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jllspzbh</Property> <Property name="property">jllspzbh</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jldwflbh</Property> <Property name="property">jldwflbh</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">cpdj</Property> <Property name="property">cpdj</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">bzfsmc</Property> <Property name="property">bzfsmc</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">bzfsbh</Property> <Property name="property">bzfsbh</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">bzgg</Property> <Property name="property">bzgg</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jsgg</Property> <Property name="property">jsgg</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">sccj</Property> <Property name="property">sccj</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">bzq</Property> <Property name="property">bzq</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">cd</Property> <Property name="property">cd</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">scrq</Property> <Property name="property">scrq</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">lxr</Property> <Property name="property">lxr</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">dh</Property> <Property name="property">dh</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">cz</Property> <Property name="property">cz</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">dzyj</Property> <Property name="property">dzyj</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">qygk</Property> <Property name="property">qygk</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">cpjs</Property> <Property name="property">cpjs</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">yyzz</Property> <Property name="property">yyzz</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">zzjgz</Property> <Property name="property">zzjgz</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">swdjz</Property> <Property name="property">swdjz</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">spltxkz</Property> <Property name="property">spltxkz</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">ybnsrzgzm</Property> <Property name="property">ybnsrzgzm</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">sjgzxshyj</Property> <Property name="property">sjgzxshyj</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jlfwshyj</Property> <Property name="property">jlfwshyj</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">sjgzxyj</Property> <Property name="property">sjgzxyj</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">yjcd</Property> <Property name="property">yjcd</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">dj</Property> <Property name="property">dj</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">scxkzh</Property> <Property name="property">scxkzh</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jggy</Property> <Property name="property">jggy</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">zlxx</Property> <Property name="property">zlxx</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">yynxx</Property> <Property name="property">yynxx</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">lsyjrz</Property> <Property name="property">lsyjrz</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">nscl</Property> <Property name="property">nscl</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">sfyx</Property> <Property name="property">sfyx</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">updateTime</Property> <Property name="property">updateTime</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">czbz</Property> <Property name="property">czbz</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">kqdm</Property> <Property name="property">kqdm</Property> <Editor/> </AutoFormElement> </AutoForm> </Children> <Tools/> </Dialog> <UpdateAction id="updateSave"> <Property name="dataResolver">whjlShareApi2007PR#saveData</Property> <UpdateItem> <Property name="dataPath">[#current]</Property> <Property name="dataSet">dsMain</Property> </UpdateItem> </UpdateAction> <AjaxAction id="ajaxDel"> <Property name="confirmMessage">å½åæ°æ®å é¤åæ æ³æ¢å¤ï¼è¯·ç¡®è®¤è¦å é¤ä¹ï¼</Property> <Property name="service">whjlShareApi2007PR#delData</Property> </AjaxAction> <AjaxAction id="ajaxPull"> <Property name="service">whjlShareApi2007PR#pullData</Property> </AjaxAction> <Dialog id="dialogLog"> <Property name="width">90%</Property> <Property name="height">90%</Property> <Property name="caption">æ´æ°è®°å½</Property> <Property name="iconClass">fa fa-sliders</Property> <Buttons> <Button> <ClientEvent name="onClick">self.get("parent").hide();</ClientEvent> <Property name="caption">å ³é</Property> <Property name="iconClass">fa fa-times</Property> </Button> </Buttons> <Children> <Container> <IFrame id="iFrame"> <Property name="path">com.fzzy.api.view.ApiLog.d</Property> <Property name="userData"> <Entity> <Property name="deptId">deptId</Property> </Entity> </Property> </IFrame> </Container> </Children> <Tools/> </Dialog> <ListDropDown id="listDropYN"> <Property name="items">æ¯,å¦</Property> </ListDropDown> </View> </ViewConfig> src/main/java/com/fzzy/otherview/whhpjl/WhjlShareApi2008.view.xml
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,587 @@ <?xml version="1.0" encoding="UTF-8"?> <ViewConfig> <Arguments/> <Context/> <Model> <DataType name="dtMain"> <Property name="creationType">com.fzzy.otherview.whhpjl.dto.WhjlShareApi2008</Property> <PropertyDef name="jlccjhbh"> <Property/> <Property name="label">åç²®ç¹æªè®¡åç¼å·</Property> </PropertyDef> <PropertyDef name="gsqybh"> <Property/> <Property name="label">ä¼ä¸ç¼å·</Property> </PropertyDef> <PropertyDef name="gskdbh"> <Property/> <Property name="label">å½å±åºç¹ç¼å·</Property> </PropertyDef> <PropertyDef name="gsjlgljgbh"> <Property/> <Property name="label">å½å±åç²®ç®¡çæºæç¼å·</Property> </PropertyDef> <PropertyDef name="jljgqybh"> <Property/> <Property name="label">åç²®å å·¥ä¼ä¸ç¼å·</Property> </PropertyDef> <PropertyDef name="jljlqymc"> <Property/> <Property name="label">åç²®å å·¥ä¼ä¸åç§°</Property> </PropertyDef> <PropertyDef name="pzflbh"> <Property/> <Property name="label">åç§åç±»ç¼å·</Property> </PropertyDef> <PropertyDef name="jlppmh"> <Property/> <Property name="label">åç²®åçç¼å·</Property> </PropertyDef> <PropertyDef name="jlcpbh"> <Property/> <Property name="label">å粮产åç¼å·</Property> </PropertyDef> <PropertyDef name="jldwflbh"> <Property/> <Property name="label">计éåä½åç±»ç¼å·</Property> </PropertyDef> <PropertyDef name="jhrq"> <Property/> <Property name="label">è®¡åæ¥æ</Property> </PropertyDef> <PropertyDef name="jhbh"> <Property/> <Property name="label">计åç¼å·</Property> </PropertyDef> <PropertyDef name="jhmc"> <Property/> <Property name="label">计ååç§°</Property> </PropertyDef> <PropertyDef name="jhzt"> <Property/> <Property name="label">计åç¶æ</Property> </PropertyDef> <PropertyDef name="sjlx"> <Property/> <Property name="label">æ°æ®ç±»å</Property> </PropertyDef> <PropertyDef name="nd"> <Property/> <Property name="label">年度</Property> </PropertyDef> <PropertyDef name="jd"> <Property/> <Property name="label">å£åº¦</Property> </PropertyDef> <PropertyDef name="jhsl"> <Property/> <Property name="label">è®¡åæ°é</Property> </PropertyDef> <PropertyDef name="sxxhs1"> <Property/> <Property name="label">䏿¬éæ±æ°é</Property> </PropertyDef> <PropertyDef name="xxxhs1"> <Property/> <Property name="label">䏿¬éæ±æ°é</Property> </PropertyDef> <PropertyDef name="sxxhs2"> <Property/> <Property name="label">䏿¬éæ±æ°é</Property> </PropertyDef> <PropertyDef name="xxxhs2"> <Property/> <Property name="label">䏿¬éæ±æ°é</Property> </PropertyDef> <PropertyDef name="sxxhs3"> <Property/> <Property name="label">䏿¬éæ±æ°é</Property> </PropertyDef> <PropertyDef name="xxxhs3"> <Property/> <Property name="label">䏿¬éæ±æ°é</Property> </PropertyDef> <PropertyDef name="fggld"> <Property/> <Property name="label">å管é¢å¯¼</Property> </PropertyDef> <PropertyDef name="fhr"> <Property/> <Property name="label">夿 ¸äºº</Property> </PropertyDef> <PropertyDef name="tbdw"> <Property/> <Property name="label">å¡«æ¥åä½</Property> </PropertyDef> <PropertyDef name="tbr"> <Property/> <Property name="label">å¡«æ¥äºº</Property> </PropertyDef> <PropertyDef name="tbsj"> <Property/> <Property name="label">å¡«æ¥æ¶é´</Property> </PropertyDef> <PropertyDef name="qyxzqhmc"> <Property/> <Property name="label">ä¼ä¸è¡æ¿åºååç§°</Property> </PropertyDef> <PropertyDef name="qyxzqhdm"> <Property/> <Property name="label">ä¼ä¸è¡æ¿åºå代ç </Property> </PropertyDef> <PropertyDef name="qytbr"> <Property/> <Property name="label">ä¼ä¸å¡«æ¥äºº</Property> </PropertyDef> <PropertyDef name="qytbrbd"> <Property/> <Property name="label">ä¼ä¸å¡«æ¥äººç¼å·</Property> </PropertyDef> <PropertyDef name="qytbsj"> <Property/> <Property name="label">ä¼ä¸å¡«æ¥æ¶é´</Property> </PropertyDef> <PropertyDef name="lxfs"> <Property/> <Property name="label">èç³»æ¹å¼</Property> </PropertyDef> <PropertyDef name="lxr"> <Property/> <Property name="label">è系人</Property> </PropertyDef> <PropertyDef name="sfyx"> <Property/> <Property name="label">æ¯å¦ææ</Property> </PropertyDef> <PropertyDef name="updateTime"> <Property name="dataType">DateTime</Property> <Property name="label">æåæ´æ°æ¶é´</Property> </PropertyDef> <PropertyDef name="czbz"> <Property/> <Property name="label">æä½æ å¿</Property> </PropertyDef> <PropertyDef name="kqdm"> <Property/> <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">whjlShareApi2008PR#listData</Property> </DataSet> <Container layout="regionPadding:10" layoutConstraint="top"> <Property name="exClassName">bg-color</Property> <Property name="height">55</Property> <Property name="contentOverflow">hidden</Property> <Label layoutConstraint="left"> <Property name="text">èåæ ï¼</Property> </Label> <Button layoutConstraint="left"> <ClientEvent name="onClick">view.get("#dsMain").insert();
 view.get("#dialogMain").show();</ClientEvent> <Property name="iconClass">fa fa-plus</Property> <Property name="caption">æ°å¢</Property> <Property name="exClassName">btn-default</Property> </Button> <Button layoutConstraint="left"> <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-pencil</Property> <Property name="exClassName">btn-warm</Property> </Button> <Button layoutConstraint="left"> <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 if(cur){
 view.get("#ajaxDel").set("parameter",cur).execute(function(result){
 if(result){
 $alert(result);
 } else{
 cur.remove();
 }
 });
 }else{
 $alert("请å¾ééè¦å é¤çæ°æ®ï¼");
 }</ClientEvent> <Property name="caption">å é¤</Property> <Property name="iconClass">fa fa-minus</Property> <Property name="exClassName">btn-warn</Property> </Button> <Button layoutConstraint="left"> <ClientEvent name="onClick">view.get("#dsMain").flushAsync();</ClientEvent> <Property name="caption">å·æ°</Property> <Property name="iconClass">fa fa-search</Property> <Property name="exClassName">btn-flush</Property> </Button> <Button layoutConstraint="left"> <ClientEvent name="onClick">var select = view.get("#dgMain").get("selection");
 view.get("#ajaxPull").set("parameter",select).execute(function(result){
 view.get("#dsMain").flushAsync();
 $notify(result);
 });
 </ClientEvent> <Property name="caption">æå¨æ´æ°</Property> <Property name="iconClass">fa fa-hand-o-up</Property> <Property name="exClassName">btn-default</Property> </Button> <Button layoutConstraint="right"> <ClientEvent name="onClick">//æ¾ç¤ºè®°å½
 view.get("#iFrame").reload();
 view.get("#dialogLog").show();</ClientEvent> <Property name="caption">æ´æ°è®°å½</Property> <Property name="iconClass">fa fa-bars</Property> <Property name="exClassName">btn-flush</Property> </Button> </Container> <Container layoutConstraint="center"> <Property name="exClassName">bg-color</Property> <DataGrid id="dgMain"> <ClientEvent name="onDataRowDoubleClick">var data = view.get("#dsMain.data:#");
 if(data){
 view.get("#dialogMain").show();
 }</ClientEvent> <Property name="dataSet">dsMain</Property> <Property name="selectionMode">multiRows</Property> <Property name="readOnly">true</Property> <RowNumColumn/> <RowSelectorColumn> <Property name="caption">ä¸ä¼ </Property> </RowSelectorColumn> <DataColumn name="jlccjhbh"> <Property name="property">jlccjhbh</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="gsqybh"> <Property name="property">gsqybh</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="gskdbh"> <Property name="property">gskdbh</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="gsjlgljgbh"> <Property name="property">gsjlgljgbh</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="jljgqybh"> <Property name="property">jljgqybh</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="jljlqymc"> <Property name="property">jljlqymc</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="lxfs"> <Property name="property">lxfs</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="lxr"> <Property name="property">lxr</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="sfyx"> <Property name="property">sfyx</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="updateTime"> <Property name="property">updateTime</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="czbz"> <Property name="property">czbz</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="kqdm"> <Property name="property">kqdm</Property> <Property name="align">center</Property> </DataColumn> </DataGrid> </Container> <Dialog id="dialogMain"> <Property name="width">60%</Property> <Property name="closeable">false</Property> <Property name="iconClass">fa fa-sliders</Property> <Property name="caption">åç²®ä¾åºåä¿¡æ¯</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> </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> </Button> </Buttons> <Children> <AutoForm> <Property name="dataSet">dsMain</Property> <Property name="cols">*,*</Property> <Property name="labelPosition">left</Property> <Property name="labelSeparator">:</Property> <Property name="labelAlign">right</Property> <Property name="labelWidth">120</Property> <AutoFormElement> <Property name="name">jlccjhbh</Property> <Property name="property">jlccjhbh</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">gsqybh</Property> <Property name="property">gsqybh</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">gskdbh</Property> <Property name="property">gskdbh</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">gsjlgljgbh</Property> <Property name="property">gsjlgljgbh</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jljgqybh</Property> <Property name="property">jljgqybh</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jljlqymc</Property> <Property name="property">jljlqymc</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">pzflbh</Property> <Property name="property">pzflbh</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jlppmh</Property> <Property name="property">jlppmh</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jlcpbh</Property> <Property name="property">jlcpbh</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jldwflbh</Property> <Property name="property">jldwflbh</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jhrq</Property> <Property name="property">jhrq</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jhbh</Property> <Property name="property">jhbh</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jhmc</Property> <Property name="property">jhmc</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jhzt</Property> <Property name="property">jhzt</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">sjlx</Property> <Property name="property">sjlx</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">nd</Property> <Property name="property">nd</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jd</Property> <Property name="property">jd</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jhsl</Property> <Property name="property">jhsl</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">sxxhs1</Property> <Property name="property">sxxhs1</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">xxxhs1</Property> <Property name="property">xxxhs1</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">sxxhs2</Property> <Property name="property">sxxhs2</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">xxxhs2</Property> <Property name="property">xxxhs2</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">sxxhs3</Property> <Property name="property">sxxhs3</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">xxxhs3</Property> <Property name="property">xxxhs3</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">fggld</Property> <Property name="property">fggld</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">fhr</Property> <Property name="property">fhr</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">tbdw</Property> <Property name="property">tbdw</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">tbr</Property> <Property name="property">tbr</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">tbsj</Property> <Property name="property">tbsj</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">qyxzqhmc</Property> <Property name="property">qyxzqhmc</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">qyxzqhdm</Property> <Property name="property">qyxzqhdm</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">qytbr</Property> <Property name="property">qytbr</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">qytbrbd</Property> <Property name="property">qytbrbd</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">qytbsj</Property> <Property name="property">qytbsj</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">lxfs</Property> <Property name="property">lxfs</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">lxr</Property> <Property name="property">lxr</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">sfyx</Property> <Property name="property">sfyx</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">updateTime</Property> <Property name="property">updateTime</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">czbz</Property> <Property name="property">czbz</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">kqdm</Property> <Property name="property">kqdm</Property> <Editor/> </AutoFormElement> </AutoForm> </Children> <Tools/> </Dialog> <UpdateAction id="updateSave"> <Property name="dataResolver">whjlShareApi2008PR#saveData</Property> <UpdateItem> <Property name="dataPath">[#current]</Property> <Property name="dataSet">dsMain</Property> </UpdateItem> </UpdateAction> <AjaxAction id="ajaxDel"> <Property name="confirmMessage">å½åæ°æ®å é¤åæ æ³æ¢å¤ï¼è¯·ç¡®è®¤è¦å é¤ä¹ï¼</Property> <Property name="service">whjlShareApi2008PR#delData</Property> </AjaxAction> <AjaxAction id="ajaxPull"> <Property name="service">whjlShareApi2008PR#pullData</Property> </AjaxAction> <Dialog id="dialogLog"> <Property name="width">90%</Property> <Property name="height">90%</Property> <Property name="caption">æ´æ°è®°å½</Property> <Property name="iconClass">fa fa-sliders</Property> <Buttons> <Button> <ClientEvent name="onClick">self.get("parent").hide();</ClientEvent> <Property name="caption">å ³é</Property> <Property name="iconClass">fa fa-times</Property> </Button> </Buttons> <Children> <Container> <IFrame id="iFrame"> <Property name="path">com.fzzy.api.view.ApiLog.d</Property> <Property name="userData"> <Entity> <Property name="deptId">deptId</Property> </Entity> </Property> </IFrame> </Container> </Children> <Tools/> </Dialog> <ListDropDown id="listDropYN"> <Property name="items">æ¯,å¦</Property> </ListDropDown> </View> </ViewConfig> src/main/java/com/fzzy/otherview/whhpjl/WhjlShareApi2009.view.xml
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,301 @@ <?xml version="1.0" encoding="UTF-8"?> <ViewConfig> <Arguments/> <Context/> <Model> <DataType name="dtMain"> <Property name="creationType">com.fzzy.otherview.whhpjl.dto.WhjlShareApi2009</Property> <PropertyDef name="mbhb"> <Property/> <Property name="label">模æ¿ç¼å·</Property> </PropertyDef> <PropertyDef name="mblb"> <Property/> <Property name="label">模æ¿ç±»å«</Property> </PropertyDef> <PropertyDef name="mbmc"> <Property/> <Property name="label">模æ¿åç§°</Property> </PropertyDef> <PropertyDef name="bb"> <Property/> <Property name="label">çæ¬</Property> </PropertyDef> <PropertyDef name="mbwjdz"> <Property/> <Property name="label">æ¨¡æ¿æä»¶å°å</Property> </PropertyDef> <PropertyDef name="sfyx"> <Property/> <Property name="label">æ¯å¦ææ</Property> </PropertyDef> <PropertyDef name="updateTime"> <Property name="dataType">Date</Property> <Property name="label">æåæ´æ°æ¶é´</Property> </PropertyDef> <PropertyDef name="czbz"> <Property></Property> <Property name="label">æä½æ å¿</Property> <Property name="mapping"> <Property name="mapValues">${dorado.getDataProvider("apiTriggerService#trigger").getResult("CZBZ")}</Property> <Property name="keyProperty">code</Property> <Property name="valueProperty">name</Property> </Property> </PropertyDef> <PropertyDef name="kqdm"> <Property></Property> <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">whjlShareApi2009PR#listData</Property> </DataSet> <Container layout="regionPadding:10" layoutConstraint="top"> <Property name="exClassName">bg-color</Property> <Property name="height">55</Property> <Property name="contentOverflow">hidden</Property> <Label layoutConstraint="left"> <Property name="text">èåæ ï¼</Property> </Label> <Button layoutConstraint="left"> <ClientEvent name="onClick">view.get("#dsMain").insert();
 view.get("#dialogMain").show();</ClientEvent> <Property name="iconClass">fa fa-plus</Property> <Property name="caption">æ°å¢</Property> <Property name="exClassName">btn-default</Property> </Button> <Button layoutConstraint="left"> <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-pencil</Property> <Property name="exClassName">btn-warm</Property> </Button> <Button layoutConstraint="left"> <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 if(cur){
 view.get("#ajaxDel").set("parameter",cur).execute(function(result){
 if(result){
 $alert(result);
 } else{
 cur.remove();
 }
 });
 }else{
 $alert("请å¾ééè¦å é¤çæ°æ®ï¼");
 }</ClientEvent> <Property name="caption">å é¤</Property> <Property name="iconClass">fa fa-minus</Property> <Property name="exClassName">btn-warn</Property> </Button> <Button layoutConstraint="left"> <ClientEvent name="onClick">view.get("#dsMain").flushAsync();</ClientEvent> <Property name="caption">å·æ°</Property> <Property name="iconClass">fa fa-search</Property> <Property name="exClassName">btn-flush</Property> </Button> <Button layoutConstraint="left"> <ClientEvent name="onClick">var select = view.get("#dgMain").get("selection");
 view.get("#ajaxPull").set("parameter",select).execute(function(result){
 view.get("#dsMain").flushAsync();
 $notify(result);
 });
 </ClientEvent> <Property name="caption">æå¨æ´æ°</Property> <Property name="iconClass">fa fa-hand-o-up</Property> <Property name="exClassName">btn-default</Property> </Button> <Button layoutConstraint="right"> <ClientEvent name="onClick">//æ¾ç¤ºè®°å½
 view.get("#iFrame").reload();
 view.get("#dialogLog").show();</ClientEvent> <Property name="caption">æ´æ°è®°å½</Property> <Property name="iconClass">fa fa-bars</Property> <Property name="exClassName">btn-flush</Property> </Button> </Container> <Container layoutConstraint="center"> <Property name="exClassName">bg-color</Property> <DataGrid id="dgMain"> <ClientEvent name="onDataRowDoubleClick">var data = view.get("#dsMain.data:#");
 if(data){
 view.get("#dialogMain").show();
 }</ClientEvent> <Property name="dataSet">dsMain</Property> <Property name="selectionMode">multiRows</Property> <Property name="readOnly">true</Property> <RowNumColumn/> <RowSelectorColumn> <Property name="caption">ä¸ä¼ </Property> </RowSelectorColumn> <DataColumn name="mbhb"> <Property name="property">mbhb</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="mblb"> <Property name="property">mblb</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="mbmc"> <Property name="property">mbmc</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="bb"> <Property name="property">bb</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="mbwjdz"> <Property name="property">mbwjdz</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="sfyx"> <Property name="property">sfyx</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="updateTime"> <Property name="property">updateTime</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="czbz"> <Property name="property">czbz</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="kqdm"> <Property name="property">kqdm</Property> <Property name="align">center</Property> </DataColumn> </DataGrid> </Container> <Dialog id="dialogMain"> <Property name="width">60%</Property> <Property name="closeable">false</Property> <Property name="iconClass">fa fa-sliders</Property> <Property name="caption">åç²®ä¾åºåä¿¡æ¯</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> </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> </Button> </Buttons> <Children> <AutoForm> <Property name="dataSet">dsMain</Property> <Property name="cols">*,*</Property> <Property name="labelPosition">left</Property> <Property name="labelSeparator">:</Property> <Property name="labelAlign">right</Property> <Property name="labelWidth">120</Property> <AutoFormElement> <Property name="name">mbhb</Property> <Property name="property">mbhb</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">mblb</Property> <Property name="property">mblb</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">mbmc</Property> <Property name="property">mbmc</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">bb</Property> <Property name="property">bb</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">mbwjdz</Property> <Property name="property">mbwjdz</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">sfyx</Property> <Property name="property">sfyx</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">updateTime</Property> <Property name="property">updateTime</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">czbz</Property> <Property name="property">czbz</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">kqdm</Property> <Property name="property">kqdm</Property> <Editor/> </AutoFormElement> </AutoForm> </Children> <Tools/> </Dialog> <UpdateAction id="updateSave"> <Property name="dataResolver">whjlShareApi2009PR#saveData</Property> <UpdateItem> <Property name="dataPath">[#current]</Property> <Property name="dataSet">dsMain</Property> </UpdateItem> </UpdateAction> <AjaxAction id="ajaxDel"> <Property name="confirmMessage">å½åæ°æ®å é¤åæ æ³æ¢å¤ï¼è¯·ç¡®è®¤è¦å é¤ä¹ï¼</Property> <Property name="service">whjlShareApi2009PR#delData</Property> </AjaxAction> <AjaxAction id="ajaxPull"> <Property name="service">whjlShareApi2009PR#pullData</Property> </AjaxAction> <Dialog id="dialogLog"> <Property name="width">90%</Property> <Property name="height">90%</Property> <Property name="caption">æ´æ°è®°å½</Property> <Property name="iconClass">fa fa-sliders</Property> <Buttons> <Button> <ClientEvent name="onClick">self.get("parent").hide();</ClientEvent> <Property name="caption">å ³é</Property> <Property name="iconClass">fa fa-times</Property> </Button> </Buttons> <Children> <Container> <IFrame id="iFrame"> <Property name="path">com.fzzy.api.view.ApiLog.d</Property> <Property name="userData"> <Entity> <Property name="deptId">deptId</Property> </Entity> </Property> </IFrame> </Container> </Children> <Tools/> </Dialog> <ListDropDown id="listDropYN"> <Property name="items">æ¯,å¦</Property> </ListDropDown> </View> </ViewConfig> src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlApi1215.java
@@ -31,6 +31,7 @@ private String jljgqybh;//å å·¥ä¼ä¸ç¼å· private String cpmc;//产ååç§° private String cppc;//äº§åæ¹æ¬¡ private String cplx;//产åç±»å @JSONField(format = "yyyy-MM-dd") private Date scrq;//çäº§æ¥æ private String cysm;//æ½æ ·è¯´æ src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlShareApi2006.java
@@ -1,6 +1,7 @@ package com.fzzy.otherview.whhpjl.dto; import com.alibaba.fastjson.annotation.JSONField; import jdk.nashorn.internal.objects.annotations.Property; import lombok.Data; import lombok.EqualsAndHashCode; src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2006PR.java
@@ -15,7 +15,8 @@ import com.fzzy.api.service.ApiRemoteService; import com.fzzy.api.view.repository.ApiInfoDataRep; import com.fzzy.otherview.whhpjl.WhjlConstant; import com.fzzy.otherview.whhpjl.dto.WhjlShareApi2002; import com.fzzy.otherview.whhpjl.dto.WhjlShareApi2006; import com.fzzy.otherview.whhpjl.dto.WhjlShareApi2006; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; @@ -39,20 +40,20 @@ /** * è·ååè¡¨ä¿¡æ¯ * whjlShareApi2002PR#listData * whjlShareApi2006PR#listData * * @return */ @DataProvider public List<WhjlShareApi2002> listData() { List<ApiInfoData> result = apiInfoDataRep.getDataByInteId(WhjlConstant.API_CODE_2002); public List<WhjlShareApi2006> listData() { List<ApiInfoData> result = apiInfoDataRep.getDataByInteId(WhjlConstant.API_CODE_2006); if (null == result || result.isEmpty()) { return null; } List<WhjlShareApi2002> list = new ArrayList<>(); WhjlShareApi2002 whjlShareApiData; List<WhjlShareApi2006> list = new ArrayList<>(); WhjlShareApi2006 whjlShareApiData; for (ApiInfoData infoData : result) { whjlShareApiData = JSONObject.parseObject(infoData.getData(), WhjlShareApi2002.class); whjlShareApiData = JSONObject.parseObject(infoData.getData(), WhjlShareApi2006.class); whjlShareApiData.setKqdm(infoData.getKqdm()); whjlShareApiData.setCzbz(infoData.getCzbz()); whjlShareApiData.setUpdateTime(infoData.getUpdateTime()); @@ -64,20 +65,20 @@ /** * æ´æ°æä¿®æ¹ * whjlShareApi2002PR#saveData * whjlShareApi2006PR#saveData * * @param data * @return */ @DataResolver public void saveData(WhjlShareApi2002 data) { public void saveData(WhjlShareApi2006 data) { ApiInfoData infoData = new ApiInfoData(); infoData.setId(data.getCpflbm()); infoData.setId(data.getJlppbh()); infoData.setKqdm(data.getKqdm()); infoData.setInteType(WhjlConstant.API_CATEGORY_20); infoData.setInteId(WhjlConstant.API_CODE_2002); infoData.setInteId(WhjlConstant.API_CODE_2006); infoData.setUpdateTime(new Date()); infoData.setDataId(data.getCpflbm()); infoData.setDataId(data.getJlppbh()); infoData.setData(JSON.toJSONString(data)); infoData.setCzbz(data.getCzbz()); infoData.setRemarks("夿³¨ä¿¡æ¯"); @@ -88,26 +89,26 @@ /** * å é¤ * whjlShareApi2002PR#delData * whjlShareApi2006PR#delData * * @param data * @return */ @Expose public String delData(WhjlShareApi2002 data) { apiInfoDataRep.deleteById(data.getCpflbm()); public String delData(WhjlShareApi2006 data) { apiInfoDataRep.deleteById(data.getJlppbh()); return null; } /** * æ´æ°æ°æ® * whjlShareApi2002PR#pullData * whjlShareApi2006PR#pullData * * @param items * @return */ @Expose public String pullData(List<WhjlShareApi2002> items) { public String pullData(List<WhjlShareApi2006> items) { //è·åé ç½®ä¿¡æ¯ @@ -121,28 +122,28 @@ ResponseDto responseDto; ApiInfoData infoData; String result = ""; List<WhjlShareApi2002> list; List<WhjlShareApi2006> list; for (ApiConfs apiConf : apiConfs) { apiService = apiPushManager.getApiRemoteService(apiConf.getPushProtocol()); if (null == apiService) { continue; } //å°è£ åæ° param = new ApiParam(apiConf, WhjlConstant.API_CATEGORY_20, WhjlConstant.API_CODE_2002); param = new ApiParam(apiConf, WhjlConstant.API_CATEGORY_20, WhjlConstant.API_CODE_2006); responseDto = apiService.pullData(param, apiConf); if (responseDto.getSuccess() == 0) { list = JSONObject.parseArray(responseDto.getData(), WhjlShareApi2002.class); list = JSONObject.parseArray(responseDto.getData(), WhjlShareApi2006.class); if(null != list && list.size() > 0){ for (WhjlShareApi2002 shareData : list) { for (WhjlShareApi2006 shareData : list) { shareData.setCzbz(Constant.CZBZ_U); infoData = new ApiInfoData(); infoData.setId(shareData.getCpflbm()); infoData.setId(shareData.getJlppbh()); infoData.setKqdm(apiConf.getKqdm()); infoData.setInteType(WhjlConstant.API_CATEGORY_20); infoData.setInteId(WhjlConstant.API_CODE_2002); infoData.setInteId(WhjlConstant.API_CODE_2006); infoData.setUpdateTime(new Date()); infoData.setDataId(shareData.getCpflbm()); infoData.setDataId(shareData.getJlppbh()); infoData.setData(JSON.toJSONString(shareData)); infoData.setCzbz(Constant.CZBZ_U); apiInfoDataRep.save(infoData); src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2007PR.java
@@ -15,7 +15,7 @@ import com.fzzy.api.service.ApiRemoteService; import com.fzzy.api.view.repository.ApiInfoDataRep; import com.fzzy.otherview.whhpjl.WhjlConstant; import com.fzzy.otherview.whhpjl.dto.WhjlShareApi2002; import com.fzzy.otherview.whhpjl.dto.WhjlShareApi2007; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; @@ -39,20 +39,20 @@ /** * è·ååè¡¨ä¿¡æ¯ * whjlShareApi2002PR#listData * whjlShareApi2007PR#listData * * @return */ @DataProvider public List<WhjlShareApi2002> listData() { List<ApiInfoData> result = apiInfoDataRep.getDataByInteId(WhjlConstant.API_CODE_2002); public List<WhjlShareApi2007> listData() { List<ApiInfoData> result = apiInfoDataRep.getDataByInteId(WhjlConstant.API_CODE_2007); if (null == result || result.isEmpty()) { return null; } List<WhjlShareApi2002> list = new ArrayList<>(); WhjlShareApi2002 whjlShareApiData; List<WhjlShareApi2007> list = new ArrayList<>(); WhjlShareApi2007 whjlShareApiData; for (ApiInfoData infoData : result) { whjlShareApiData = JSONObject.parseObject(infoData.getData(), WhjlShareApi2002.class); whjlShareApiData = JSONObject.parseObject(infoData.getData(), WhjlShareApi2007.class); whjlShareApiData.setKqdm(infoData.getKqdm()); whjlShareApiData.setCzbz(infoData.getCzbz()); whjlShareApiData.setUpdateTime(infoData.getUpdateTime()); @@ -64,20 +64,20 @@ /** * æ´æ°æä¿®æ¹ * whjlShareApi2002PR#saveData * whjlShareApi2007PR#saveData * * @param data * @return */ @DataResolver public void saveData(WhjlShareApi2002 data) { public void saveData(WhjlShareApi2007 data) { ApiInfoData infoData = new ApiInfoData(); infoData.setId(data.getCpflbm()); infoData.setId(data.getJlcpbh()); infoData.setKqdm(data.getKqdm()); infoData.setInteType(WhjlConstant.API_CATEGORY_20); infoData.setInteId(WhjlConstant.API_CODE_2002); infoData.setInteId(WhjlConstant.API_CODE_2007); infoData.setUpdateTime(new Date()); infoData.setDataId(data.getCpflbm()); infoData.setDataId(data.getJlcpbh()); infoData.setData(JSON.toJSONString(data)); infoData.setCzbz(data.getCzbz()); infoData.setRemarks("夿³¨ä¿¡æ¯"); @@ -88,26 +88,26 @@ /** * å é¤ * whjlShareApi2002PR#delData * whjlShareApi2007PR#delData * * @param data * @return */ @Expose public String delData(WhjlShareApi2002 data) { apiInfoDataRep.deleteById(data.getCpflbm()); public String delData(WhjlShareApi2007 data) { apiInfoDataRep.deleteById(data.getJlcpbh()); return null; } /** * æ´æ°æ°æ® * whjlShareApi2002PR#pullData * whjlShareApi2007PR#pullData * * @param items * @return */ @Expose public String pullData(List<WhjlShareApi2002> items) { public String pullData(List<WhjlShareApi2007> items) { //è·åé ç½®ä¿¡æ¯ @@ -121,28 +121,28 @@ ResponseDto responseDto; ApiInfoData infoData; String result = ""; List<WhjlShareApi2002> list; List<WhjlShareApi2007> list; for (ApiConfs apiConf : apiConfs) { apiService = apiPushManager.getApiRemoteService(apiConf.getPushProtocol()); if (null == apiService) { continue; } //å°è£ åæ° param = new ApiParam(apiConf, WhjlConstant.API_CATEGORY_20, WhjlConstant.API_CODE_2002); param = new ApiParam(apiConf, WhjlConstant.API_CATEGORY_20, WhjlConstant.API_CODE_2007); responseDto = apiService.pullData(param, apiConf); if (responseDto.getSuccess() == 0) { list = JSONObject.parseArray(responseDto.getData(), WhjlShareApi2002.class); list = JSONObject.parseArray(responseDto.getData(), WhjlShareApi2007.class); if(null != list && list.size() > 0){ for (WhjlShareApi2002 shareData : list) { for (WhjlShareApi2007 shareData : list) { shareData.setCzbz(Constant.CZBZ_U); infoData = new ApiInfoData(); infoData.setId(shareData.getCpflbm()); infoData.setId(shareData.getJlcpbh()); infoData.setKqdm(apiConf.getKqdm()); infoData.setInteType(WhjlConstant.API_CATEGORY_20); infoData.setInteId(WhjlConstant.API_CODE_2002); infoData.setInteId(WhjlConstant.API_CODE_2007); infoData.setUpdateTime(new Date()); infoData.setDataId(shareData.getCpflbm()); infoData.setDataId(shareData.getJlcpbh()); infoData.setData(JSON.toJSONString(shareData)); infoData.setCzbz(Constant.CZBZ_U); apiInfoDataRep.save(infoData); src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2008PR.java
@@ -15,7 +15,7 @@ import com.fzzy.api.service.ApiRemoteService; import com.fzzy.api.view.repository.ApiInfoDataRep; import com.fzzy.otherview.whhpjl.WhjlConstant; import com.fzzy.otherview.whhpjl.dto.WhjlShareApi2002; import com.fzzy.otherview.whhpjl.dto.WhjlShareApi2008; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; @@ -39,20 +39,20 @@ /** * è·ååè¡¨ä¿¡æ¯ * whjlShareApi2002PR#listData * whjlShareApi2008PR#listData * * @return */ @DataProvider public List<WhjlShareApi2002> listData() { List<ApiInfoData> result = apiInfoDataRep.getDataByInteId(WhjlConstant.API_CODE_2002); public List<WhjlShareApi2008> listData() { List<ApiInfoData> result = apiInfoDataRep.getDataByInteId(WhjlConstant.API_CODE_2008); if (null == result || result.isEmpty()) { return null; } List<WhjlShareApi2002> list = new ArrayList<>(); WhjlShareApi2002 whjlShareApiData; List<WhjlShareApi2008> list = new ArrayList<>(); WhjlShareApi2008 whjlShareApiData; for (ApiInfoData infoData : result) { whjlShareApiData = JSONObject.parseObject(infoData.getData(), WhjlShareApi2002.class); whjlShareApiData = JSONObject.parseObject(infoData.getData(), WhjlShareApi2008.class); whjlShareApiData.setKqdm(infoData.getKqdm()); whjlShareApiData.setCzbz(infoData.getCzbz()); whjlShareApiData.setUpdateTime(infoData.getUpdateTime()); @@ -64,20 +64,20 @@ /** * æ´æ°æä¿®æ¹ * whjlShareApi2002PR#saveData * whjlShareApi2008PR#saveData * * @param data * @return */ @DataResolver public void saveData(WhjlShareApi2002 data) { public void saveData(WhjlShareApi2008 data) { ApiInfoData infoData = new ApiInfoData(); infoData.setId(data.getCpflbm()); infoData.setId(data.getJlccjhbh()); infoData.setKqdm(data.getKqdm()); infoData.setInteType(WhjlConstant.API_CATEGORY_20); infoData.setInteId(WhjlConstant.API_CODE_2002); infoData.setInteId(WhjlConstant.API_CODE_2008); infoData.setUpdateTime(new Date()); infoData.setDataId(data.getCpflbm()); infoData.setDataId(data.getJlccjhbh()); infoData.setData(JSON.toJSONString(data)); infoData.setCzbz(data.getCzbz()); infoData.setRemarks("夿³¨ä¿¡æ¯"); @@ -88,26 +88,26 @@ /** * å é¤ * whjlShareApi2002PR#delData * whjlShareApi2008PR#delData * * @param data * @return */ @Expose public String delData(WhjlShareApi2002 data) { apiInfoDataRep.deleteById(data.getCpflbm()); public String delData(WhjlShareApi2008 data) { apiInfoDataRep.deleteById(data.getJlccjhbh()); return null; } /** * æ´æ°æ°æ® * whjlShareApi2002PR#pullData * whjlShareApi2008PR#pullData * * @param items * @return */ @Expose public String pullData(List<WhjlShareApi2002> items) { public String pullData(List<WhjlShareApi2008> items) { //è·åé ç½®ä¿¡æ¯ @@ -121,28 +121,28 @@ ResponseDto responseDto; ApiInfoData infoData; String result = ""; List<WhjlShareApi2002> list; List<WhjlShareApi2008> list; for (ApiConfs apiConf : apiConfs) { apiService = apiPushManager.getApiRemoteService(apiConf.getPushProtocol()); if (null == apiService) { continue; } //å°è£ åæ° param = new ApiParam(apiConf, WhjlConstant.API_CATEGORY_20, WhjlConstant.API_CODE_2002); param = new ApiParam(apiConf, WhjlConstant.API_CATEGORY_20, WhjlConstant.API_CODE_2008); responseDto = apiService.pullData(param, apiConf); if (responseDto.getSuccess() == 0) { list = JSONObject.parseArray(responseDto.getData(), WhjlShareApi2002.class); list = JSONObject.parseArray(responseDto.getData(), WhjlShareApi2008.class); if(null != list && list.size() > 0){ for (WhjlShareApi2002 shareData : list) { for (WhjlShareApi2008 shareData : list) { shareData.setCzbz(Constant.CZBZ_U); infoData = new ApiInfoData(); infoData.setId(shareData.getCpflbm()); infoData.setId(shareData.getJlccjhbh()); infoData.setKqdm(apiConf.getKqdm()); infoData.setInteType(WhjlConstant.API_CATEGORY_20); infoData.setInteId(WhjlConstant.API_CODE_2002); infoData.setInteId(WhjlConstant.API_CODE_2008); infoData.setUpdateTime(new Date()); infoData.setDataId(shareData.getCpflbm()); infoData.setDataId(shareData.getJlccjhbh()); infoData.setData(JSON.toJSONString(shareData)); infoData.setCzbz(Constant.CZBZ_U); apiInfoDataRep.save(infoData); src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2009PR.java
@@ -15,7 +15,7 @@ import com.fzzy.api.service.ApiRemoteService; import com.fzzy.api.view.repository.ApiInfoDataRep; import com.fzzy.otherview.whhpjl.WhjlConstant; import com.fzzy.otherview.whhpjl.dto.WhjlShareApi2002; import com.fzzy.otherview.whhpjl.dto.WhjlShareApi2009; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; @@ -39,20 +39,20 @@ /** * è·ååè¡¨ä¿¡æ¯ * whjlShareApi2002PR#listData * whjlShareApi2009PR#listData * * @return */ @DataProvider public List<WhjlShareApi2002> listData() { List<ApiInfoData> result = apiInfoDataRep.getDataByInteId(WhjlConstant.API_CODE_2002); public List<WhjlShareApi2009> listData() { List<ApiInfoData> result = apiInfoDataRep.getDataByInteId(WhjlConstant.API_CODE_2009); if (null == result || result.isEmpty()) { return null; } List<WhjlShareApi2002> list = new ArrayList<>(); WhjlShareApi2002 whjlShareApiData; List<WhjlShareApi2009> list = new ArrayList<>(); WhjlShareApi2009 whjlShareApiData; for (ApiInfoData infoData : result) { whjlShareApiData = JSONObject.parseObject(infoData.getData(), WhjlShareApi2002.class); whjlShareApiData = JSONObject.parseObject(infoData.getData(), WhjlShareApi2009.class); whjlShareApiData.setKqdm(infoData.getKqdm()); whjlShareApiData.setCzbz(infoData.getCzbz()); whjlShareApiData.setUpdateTime(infoData.getUpdateTime()); @@ -64,20 +64,20 @@ /** * æ´æ°æä¿®æ¹ * whjlShareApi2002PR#saveData * whjlShareApi2009PR#saveData * * @param data * @return */ @DataResolver public void saveData(WhjlShareApi2002 data) { public void saveData(WhjlShareApi2009 data) { ApiInfoData infoData = new ApiInfoData(); infoData.setId(data.getCpflbm()); infoData.setId(data.getMbhb()); infoData.setKqdm(data.getKqdm()); infoData.setInteType(WhjlConstant.API_CATEGORY_20); infoData.setInteId(WhjlConstant.API_CODE_2002); infoData.setInteId(WhjlConstant.API_CODE_2009); infoData.setUpdateTime(new Date()); infoData.setDataId(data.getCpflbm()); infoData.setDataId(data.getMbhb()); infoData.setData(JSON.toJSONString(data)); infoData.setCzbz(data.getCzbz()); infoData.setRemarks("夿³¨ä¿¡æ¯"); @@ -88,26 +88,26 @@ /** * å é¤ * whjlShareApi2002PR#delData * whjlShareApi2009PR#delData * * @param data * @return */ @Expose public String delData(WhjlShareApi2002 data) { apiInfoDataRep.deleteById(data.getCpflbm()); public String delData(WhjlShareApi2009 data) { apiInfoDataRep.deleteById(data.getMbhb()); return null; } /** * æ´æ°æ°æ® * whjlShareApi2002PR#pullData * whjlShareApi2009PR#pullData * * @param items * @return */ @Expose public String pullData(List<WhjlShareApi2002> items) { public String pullData(List<WhjlShareApi2009> items) { //è·åé ç½®ä¿¡æ¯ @@ -121,28 +121,28 @@ ResponseDto responseDto; ApiInfoData infoData; String result = ""; List<WhjlShareApi2002> list; List<WhjlShareApi2009> list; for (ApiConfs apiConf : apiConfs) { apiService = apiPushManager.getApiRemoteService(apiConf.getPushProtocol()); if (null == apiService) { continue; } //å°è£ åæ° param = new ApiParam(apiConf, WhjlConstant.API_CATEGORY_20, WhjlConstant.API_CODE_2002); param = new ApiParam(apiConf, WhjlConstant.API_CATEGORY_20, WhjlConstant.API_CODE_2009); responseDto = apiService.pullData(param, apiConf); if (responseDto.getSuccess() == 0) { list = JSONObject.parseArray(responseDto.getData(), WhjlShareApi2002.class); list = JSONObject.parseArray(responseDto.getData(), WhjlShareApi2009.class); if(null != list && list.size() > 0){ for (WhjlShareApi2002 shareData : list) { for (WhjlShareApi2009 shareData : list) { shareData.setCzbz(Constant.CZBZ_U); infoData = new ApiInfoData(); infoData.setId(shareData.getCpflbm()); infoData.setId(shareData.getMbhb()); infoData.setKqdm(apiConf.getKqdm()); infoData.setInteType(WhjlConstant.API_CATEGORY_20); infoData.setInteId(WhjlConstant.API_CODE_2002); infoData.setInteId(WhjlConstant.API_CODE_2009); infoData.setUpdateTime(new Date()); infoData.setDataId(shareData.getCpflbm()); infoData.setDataId(shareData.getMbhb()); infoData.setData(JSON.toJSONString(shareData)); infoData.setCzbz(Constant.CZBZ_U); apiInfoDataRep.save(infoData);