src/main/java/com/fzzy/otherview/whhpjl/WhjlShareApi2001.view.xml
@@ -29,10 +29,6 @@ <Property></Property> <Property name="label">æ¯å¦ææ</Property> </PropertyDef> <PropertyDef name="bizId"> <Property></Property> <Property name="label">ä¸å¡ID</Property> </PropertyDef> <PropertyDef name="updateTime"> <Property name="dataType">Date</Property> <Property name="label">æ´æ°æ¶é´</Property> @@ -232,11 +228,6 @@ <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">bizId</Property> <Property name="property">bizId</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">updateTime</Property> <Property name="property">updateTime</Property> <Editor/> @@ -249,11 +240,6 @@ <AutoFormElement> <Property name="name">kqdm</Property> <Property name="property">kqdm</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">bz</Property> <Property name="property">bz</Property> <Editor/> </AutoFormElement> </AutoForm> src/main/java/com/fzzy/otherview/whhpjl/WhjlShareApi2002.view.xml
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,293 @@ <?xml version="1.0" encoding="UTF-8"?> <ViewConfig> <Arguments/> <Context/> <Model> <DataType name="dtMain"> <Property name="creationType">com.fzzy.otherview.whhpjl.dto.WhjlShareApi2002</Property> <PropertyDef name="cpflbm"> <Property></Property> <Property name="label">产ååç±»ç¼å·</Property> </PropertyDef> <PropertyDef name="cpflmc"> <Property></Property> <Property name="label">产ååç±»åç§°</Property> </PropertyDef> <PropertyDef name="fjcpflbm"> <Property></Property> <Property name="label">ç¶çº§åç±»ç¼å·</Property> </PropertyDef> <PropertyDef name="fjcpflmc"> <Property></Property> <Property name="label">ç¶çº§åç±»åç§°</Property> </PropertyDef> <PropertyDef name="xh"> <Property></Property> <Property name="label">åºå·</Property> </PropertyDef> <PropertyDef name="sfyx"> <Property></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">whjlShareApi2002PR#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="cpflbm"> <Property name="property">cpflbm</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="cpflmc"> <Property name="property">cpflmc</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="fjcpflbm"> <Property name="property">fjcpflbm</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="fjcpflmc"> <Property name="property">fjcpflmc</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="xh"> <Property name="property">xh</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> </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">cpflbm</Property> <Property name="property">cpflbm</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">cpflmc</Property> <Property name="property">cpflmc</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">fjcpflbm</Property> <Property name="property">fjcpflbm</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">fjcpflmc</Property> <Property name="property">fjcpflmc</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">xh</Property> <Property name="property">xh</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">whjlShareApi2002PR#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">whjlShareApi2002PR#delData</Property> </AjaxAction> <AjaxAction id="ajaxPull"> <Property name="service">whjlShareApi2002PR#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/WhjlShareApi2003.view.xml
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,365 @@ <?xml version="1.0" encoding="UTF-8"?> <ViewConfig> <Arguments/> <Context/> <Model> <DataType name="dtMain"> <Property name="creationType">com.fzzy.otherview.whhpjl.dto.WhjlShareApi2003</Property> <PropertyDef name="jldwbm"> <Property></Property> <Property name="label">计éåä½ç¼å·</Property> </PropertyDef> <PropertyDef name="jldwmc"> <Property></Property> <Property name="label">计éåä½åç§°</Property> </PropertyDef> <PropertyDef name="dwflbm"> <Property></Property> <Property name="label">åä½åç±»ç¼å·</Property> </PropertyDef> <PropertyDef name="dwflmc"> <Property></Property> <Property name="label">åä½åç±»åç§°</Property> </PropertyDef> <PropertyDef name="xh"> <Property></Property> <Property name="label">åºå·</Property> </PropertyDef> <PropertyDef name="sfyx"> <Property></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> <PropertyDef name="jldwzhxsList"> <Property/> </PropertyDef> <Reference name="jldwzhxs"> <Property name="parameter">$${this.jldwzhxsList}</Property> <Property name="dataProvider">whjlShareApi2003PR#listItemShareApi2003Xs</Property> <Property name="dataType">[dtItemShareApi2003Xs]</Property> </Reference> </DataType> <DataType name="dtItemShareApi2003Xs"> <Property name="creationType">com.fzzy.otherview.whhpjl.dto.ShareApi2003Xs</Property> <PropertyDef name="ydwbm"> <Property></Property> <Property name="label">æºè®¡éåä½ç¼ç </Property> </PropertyDef> <PropertyDef name="ydwmc"> <Property></Property> <Property name="label">æºè®¡éåä½åç§°</Property> </PropertyDef> <PropertyDef name="mbdwlx"> <Property></Property> <Property name="label">ç®æ 计éåä½ç¼ç </Property> </PropertyDef> <PropertyDef name="mbdwmc"> <Property></Property> <Property name="label">ç®æ 计éåä½åç§°</Property> </PropertyDef> <PropertyDef name="zhxs"> <Property></Property> <Property name="label">转æ¢ç³»æ°</Property> </PropertyDef> <PropertyDef name="xh"> <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">whjlShareApi2003PR#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="jldwbm"> <Property name="property">jldwbm</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="jldwmc"> <Property name="property">jldwmc</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="dwflbm"> <Property name="property">dwflbm</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="dwflmc"> <Property name="property">dwflmc</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="xh"> <Property name="property">xh</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> </DataGrid> </Container> <Dialog id="dialogMain" layout="regionPadding:10;padding:5"> <Property name="width">80%</Property> <Property name="closeable">false</Property> <Property name="iconClass">fa fa-sliders</Property> <Property name="caption">计éåä½</Property> <Property name="height">85%</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> <FieldSet> <Property name="caption">计éåä½</Property> <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">jldwbm</Property> <Property name="property">jldwbm</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jldwmc</Property> <Property name="property">jldwmc</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">dwflbm</Property> <Property name="property">dwflbm</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">dwflmc</Property> <Property name="property">dwflmc</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">xh</Property> <Property name="property">xh</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> </FieldSet> <Panel layout="regionPadding:5"> <Property name="caption">计éåä½è½¬æ¢ç³»æ°</Property> <Property name="height">200</Property> <Buttons/> <Children> <DataGrid id="dataGridDetail2"> <Property name="dataSet">dsMain</Property> <Property name="dataPath">#.jldwzhxs</Property> <DataColumn name="ydwbm"> <Property name="property">ydwbm</Property> </DataColumn> <DataColumn name="ydwmc"> <Property name="property">ydwmc</Property> </DataColumn> <DataColumn name="mbdwlx"> <Property name="property">mbdwlx</Property> </DataColumn> <DataColumn name="mbdwmc"> <Property name="property">mbdwmc</Property> </DataColumn> <DataColumn name="zhxs"> <Property name="property">zhxs</Property> </DataColumn> <DataColumn name="xh"> <Property name="property">xh</Property> </DataColumn> </DataGrid> </Children> <Tools/> </Panel> </Children> <Tools/> </Dialog> <UpdateAction id="updateSave"> <Property name="dataResolver">whjlShareApi2003PR#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">whjlShareApi2003PR#delData</Property> </AjaxAction> <AjaxAction id="ajaxPull"> <Property name="service">whjlShareApi2003PR#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/WhjlShareApi2004.view.xml
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,419 @@ <?xml version="1.0" encoding="UTF-8"?> <ViewConfig> <Arguments/> <Context/> <Model> <DataType name="dtMain"> <Property name="creationType">com.fzzy.otherview.whhpjl.dto.WhjlShareApi2004</Property> <PropertyDef name="jlgljgbh"> <Property></Property> <Property name="label">åç²®ç®¡çæºæç¼å·</Property> </PropertyDef> <PropertyDef name="tyshxydm"> <Property></Property> <Property name="label">ç»ä¸ç¤¾ä¼ä¿¡ç¨ä»£ç </Property> </PropertyDef> <PropertyDef name="sydwfrzsh"> <Property></Property> <Property name="label">äºä¸å使³äººè¯ä¹¦å·</Property> </PropertyDef> <PropertyDef name="jgmc"> <Property></Property> <Property name="label">æºæåç§°</Property> </PropertyDef> <PropertyDef name="jgjc"> <Property></Property> <Property name="label">æºæç®ç§°</Property> </PropertyDef> <PropertyDef name="jgpzmc"> <Property></Property> <Property name="label">å æçååç§°</Property> </PropertyDef> <PropertyDef name="jbdw"> <Property></Property> <Property name="label">举ååä½</Property> </PropertyDef> <PropertyDef name="fzr"> <Property></Property> <Property name="label">è´è´£äºº</Property> </PropertyDef> <PropertyDef name="jgxz"> <Property></Property> <Property name="label">æºææ§è´¨</Property> </PropertyDef> <PropertyDef name="jgxzmc"> <Property></Property> <Property name="label">æºææ§è´¨åç§°</Property> </PropertyDef> <PropertyDef name="pzjg"> <Property></Property> <Property name="label">æ¹åæºæ</Property> </PropertyDef> <PropertyDef name="jggg"> <Property></Property> <Property name="label">æºæè§æ ¼</Property> </PropertyDef> <PropertyDef name="jfglxs"> <Property></Property> <Property name="label">ç»è´¹ç®¡çå½¢å¼</Property> </PropertyDef> <PropertyDef name="jfglxsmc"> <Property></Property> <Property name="label">ç»è´¹ç®¡çå½¢å¼åç§°</Property> </PropertyDef> <PropertyDef name="zyzn"> <Property></Property> <Property name="label">主è¦èè½</Property> </PropertyDef> <PropertyDef name="jgdz"> <Property></Property> <Property name="label">æºæå°å</Property> </PropertyDef> <PropertyDef name="jgxzqhbm"> <Property></Property> <Property name="label">æºæè¡æ¿åºåç¼ç </Property> </PropertyDef> <PropertyDef name="jgxzqhmc"> <Property></Property> <Property name="label">æºæè¡æ¿åºååç§°</Property> </PropertyDef> <PropertyDef name="jgyzbm"> <Property></Property> <Property name="label">æºæé®æ¿ç¼ç </Property> </PropertyDef> <PropertyDef name="sfyx"> <Property></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">whjlShareApi2004PR#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="jgmc"> <Property name="property">jgmc</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="jgjc"> <Property name="property">jgjc</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="fzr"> <Property name="property">fzr</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="jgxz"> <Property name="property">jgxz</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="jlgljgbh"> <Property name="property">jlgljgbh</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="tyshxydm"> <Property name="property">tyshxydm</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="updateTime"> <Property name="property">updateTime</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">jlgljgbh</Property> <Property name="property">jlgljgbh</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">tyshxydm</Property> <Property name="property">tyshxydm</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">sydwfrzsh</Property> <Property name="property">sydwfrzsh</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jgmc</Property> <Property name="property">jgmc</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jgjc</Property> <Property name="property">jgjc</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jgpzmc</Property> <Property name="property">jgpzmc</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jbdw</Property> <Property name="property">jbdw</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">fzr</Property> <Property name="property">fzr</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jgxz</Property> <Property name="property">jgxz</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jgxzmc</Property> <Property name="property">jgxzmc</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">pzjg</Property> <Property name="property">pzjg</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jggg</Property> <Property name="property">jggg</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jfglxs</Property> <Property name="property">jfglxs</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jfglxsmc</Property> <Property name="property">jfglxsmc</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">zyzn</Property> <Property name="property">zyzn</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jgdz</Property> <Property name="property">jgdz</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jgxzqhbm</Property> <Property name="property">jgxzqhbm</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jgxzqhmc</Property> <Property name="property">jgxzqhmc</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jgyzbm</Property> <Property name="property">jgyzbm</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">whjlShareApi2004PR#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">whjlShareApi2004PR#delData</Property> </AjaxAction> <AjaxAction id="ajaxPull"> <Property name="service">whjlShareApi2004PR#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/WhjlShareApi2005.view.xml
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,573 @@ <?xml version="1.0" encoding="UTF-8"?> <ViewConfig> <Arguments/> <Context/> <Model> <DataType name="dtMain"> <Property name="creationType">com.fzzy.otherview.whhpjl.dto.WhjlShareApi2005</Property> <PropertyDef name="jljgqybh"> <Property></Property> <Property name="label">åç²®å å·¥ä¼ä¸ç¼å·</Property> </PropertyDef> <PropertyDef name="jljgqymc"> <Property></Property> <Property name="label">åç²®å å·¥ä¼ä¸åç§°</Property> </PropertyDef> <PropertyDef name="jlqyjc"> <Property></Property> <Property name="label">åç²®ä¼ä¸ç®ç§°</Property> </PropertyDef> <PropertyDef name="gyslx"> <Property></Property> <Property name="label">ä¾åºåç±»å</Property> </PropertyDef> <PropertyDef name="zzjgdm"> <Property></Property> <Property name="label">ç»ç»æºæä»£ç </Property> </PropertyDef> <PropertyDef name="jlqytyshxydm"> <Property></Property> <Property name="label">ä¼ä¸ç»ä¸ç¤¾ä¼ä¿¡ç¨ä»£ç </Property> </PropertyDef> <PropertyDef name="qyjjlx"> <Property></Property> <Property name="label">ä¼ä¸ç»æµç±»å</Property> </PropertyDef> <PropertyDef name="qyxz"> <Property></Property> <Property name="label">ä¼ä¸æ§è´¨</Property> </PropertyDef> <PropertyDef name="djzclx"> <Property></Property> <Property name="label">ç»è®°æ³¨åç±»å</Property> </PropertyDef> <PropertyDef name="gsdjzch"> <Property></Property> <Property name="label">å·¥åç»è®°æ³¨åå·</Property> </PropertyDef> <PropertyDef name="fddbr"> <Property></Property> <Property name="label">æ³å®ä»£è¡¨äºº</Property> </PropertyDef> <PropertyDef name="qydz"> <Property></Property> <Property name="label">ä¼ä¸å°å</Property> </PropertyDef> <PropertyDef name="qydh"> <Property></Property> <Property name="label">ä¼ä¸çµè¯</Property> </PropertyDef> <PropertyDef name="qycz"> <Property></Property> <Property name="label">ä¼ä¸ä¼ ç</Property> </PropertyDef> <PropertyDef name="qydzyx"> <Property></Property> <Property name="label">ä¼ä¸çµåé®ç®±</Property> </PropertyDef> <PropertyDef name="qywz"> <Property></Property> <Property name="label">ä¼ä¸ç½å</Property> </PropertyDef> <PropertyDef name="qyyzbm"> <Property></Property> <Property name="label">ä¼ä¸é®æ¿ç¼ç </Property> </PropertyDef> <PropertyDef name="qyjd"> <Property></Property> <Property name="label">ä¼ä¸ç»åº¦</Property> </PropertyDef> <PropertyDef name="qywd"> <Property></Property> <Property name="label">ä¼ä¸çº¬åº¦</Property> </PropertyDef> <PropertyDef name="qyxzqhmc"> <Property></Property> <Property name="label">ä¼ä¸è¡æ¿åºååç§°</Property> </PropertyDef> <PropertyDef name="qyxzqhdm"> <Property></Property> <Property name="label">ä¼ä¸è¡æ¿åºå代ç </Property> </PropertyDef> <PropertyDef name="khyh"> <Property></Property> <Property name="label">弿·é¶è¡</Property> </PropertyDef> <PropertyDef name="yhzh"> <Property></Property> <Property name="label">é¶è¡è´¦å·</Property> </PropertyDef> <PropertyDef name="yhxydj"> <Property></Property> <Property name="label">é¶è¡ä¿¡ç¨ç级</Property> </PropertyDef> <PropertyDef name="gdzc"> <Property></Property> <Property name="label">åºå®èµäº§</Property> </PropertyDef> <PropertyDef name="zczb"> <Property></Property> <Property name="label">注åèµæ¬</Property> </PropertyDef> <PropertyDef name="zc"> <Property></Property> <Property name="label">èµäº§</Property> </PropertyDef> <PropertyDef name="qycyrys"> <Property></Property> <Property name="label">ä¼ä¸ä»ä¸äººåæ°</Property> </PropertyDef> <PropertyDef name="scx"> <Property></Property> <Property name="label">ç产线</Property> </PropertyDef> <PropertyDef name="scsb"> <Property></Property> <Property name="label">ç产设å¤</Property> </PropertyDef> <PropertyDef name="sbmc"> <Property></Property> <Property name="label">设å¤åç§°</Property> </PropertyDef> <PropertyDef name="sbcd"> <Property></Property> <Property name="label">设å¤äº§å°</Property> </PropertyDef> <PropertyDef name="jgnl"> <Property></Property> <Property name="label">å å·¥è½å</Property> </PropertyDef> <PropertyDef name="spscxkz"> <Property></Property> <Property name="label">é£åç产许å¯</Property> </PropertyDef> <PropertyDef name="zypp"> <Property></Property> <Property name="label">主è¦åç</Property> </PropertyDef> <PropertyDef name="zz"> <Property></Property> <Property name="label">èµè´¨</Property> </PropertyDef> <PropertyDef name="sfyx"> <Property></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">whjlShareApi2005PR#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="jljgqymc"> <Property name="property">jljgqymc</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="jlqyjc"> <Property name="property">jlqyjc</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="gyslx"> <Property name="property">gyslx</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="jlqytyshxydm"> <Property name="property">jlqytyshxydm</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="zzjgdm"> <Property name="property">zzjgdm</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="fddbr"> <Property name="property">fddbr</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="updateTime"> <Property name="property">updateTime</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">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">jlqyjc</Property> <Property name="property">jlqyjc</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">gyslx</Property> <Property name="property">gyslx</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">zzjgdm</Property> <Property name="property">zzjgdm</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jlqytyshxydm</Property> <Property name="property">jlqytyshxydm</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">qyjjlx</Property> <Property name="property">qyjjlx</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">qyxz</Property> <Property name="property">qyxz</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">djzclx</Property> <Property name="property">djzclx</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">gsdjzch</Property> <Property name="property">gsdjzch</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">fddbr</Property> <Property name="property">fddbr</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">qydz</Property> <Property name="property">qydz</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">qydh</Property> <Property name="property">qydh</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">qycz</Property> <Property name="property">qycz</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">qydzyx</Property> <Property name="property">qydzyx</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">qywz</Property> <Property name="property">qywz</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">qyyzbm</Property> <Property name="property">qyyzbm</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">qyjd</Property> <Property name="property">qyjd</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">qywd</Property> <Property name="property">qywd</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">khyh</Property> <Property name="property">khyh</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">yhzh</Property> <Property name="property">yhzh</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">yhxydj</Property> <Property name="property">yhxydj</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">gdzc</Property> <Property name="property">gdzc</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">zczb</Property> <Property name="property">zczb</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">zc</Property> <Property name="property">zc</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">qycyrys</Property> <Property name="property">qycyrys</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">scx</Property> <Property name="property">scx</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">scsb</Property> <Property name="property">scsb</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">sbmc</Property> <Property name="property">sbmc</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">sbcd</Property> <Property name="property">sbcd</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jgnl</Property> <Property name="property">jgnl</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">spscxkz</Property> <Property name="property">spscxkz</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">zypp</Property> <Property name="property">zypp</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">zz</Property> <Property name="property">zz</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">whjlShareApi2005PR#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">whjlShareApi2005PR#delData</Property> </AjaxAction> <AjaxAction id="ajaxPull"> <Property name="service">whjlShareApi2005PR#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/WhjlShareApi2011.view.xml
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,357 @@ <?xml version="1.0" encoding="UTF-8"?> <ViewConfig> <Arguments/> <Context/> <Model> <DataType name="dtMain"> <Property name="creationType">com.fzzy.otherview.whhpjl.dto.WhjlShareApi2011</Property> <PropertyDef name="zjxmbh"> <Property></Property> <Property name="label">è´¨æ£é¡¹ç®ç¼å·</Property> </PropertyDef> <PropertyDef name="zjxmmc"> <Property></Property> <Property name="label">è´¨æ£é¡¹ç®åç§°</Property> </PropertyDef> <PropertyDef name="fjzjxmbh"> <Property></Property> <Property name="label">ç¶çº§è´¨æ£é¡¹ç®ç¼å·</Property> </PropertyDef> <PropertyDef name="fjzjxmmc"> <Property></Property> <Property name="label">ç¶çº§è´¨æ£é¡¹ç®åç§°</Property> </PropertyDef> <PropertyDef name="sjlx"> <Property></Property> <Property name="label">æ°æ®ç±»å</Property> </PropertyDef> <PropertyDef name="xswjd"> <Property></Property> <Property name="label">å°æ°ä½ç²¾åº¦</Property> </PropertyDef> <PropertyDef name="jldw"> <Property></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> <PropertyDef name="zjymqxList"> <Property/> </PropertyDef> <Reference name="zjymqx"> <Property name="parameter">$${this.zjymqxList}</Property> <Property name="dataProvider">whjlShareApi2011PR#listItemShareApi2011Xm</Property> <Property name="dataType">[dtItemShareApi2011Xm]</Property> </Reference> </DataType> <DataType name="dtItemShareApi2011Xm"> <Property name="creationType">com.fzzy.otherview.whhpjl.dto.ShareApi2011Xm</Property> <PropertyDef name="qxbh"> <Property></Property> <Property name="label">缺é·ç¼å·</Property> </PropertyDef> <PropertyDef name="qxmc"> <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">whjlShareApi2011PR#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="zjxmbh"> <Property name="property">zjxmbh</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="zjxmmc"> <Property name="property">zjxmmc</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="fjzjxmbh"> <Property name="property">fjzjxmbh</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="fjzjxmmc"> <Property name="property">fjzjxmmc</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="sjlx"> <Property name="property">sjlx</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="xswjd"> <Property name="property">xswjd</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="jldw"> <Property name="property">jldw</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="updateTime"> <Property name="property">updateTime</Property> <Property name="align">center</Property> </DataColumn> </DataGrid> </Container> <Dialog id="dialogMain" layout="regionPadding:10;padding:5"> <Property name="width">80%</Property> <Property name="closeable">false</Property> <Property name="iconClass">fa fa-sliders</Property> <Property name="caption">è´¨éæ£æ¥é¡¹ç®</Property> <Property name="height">85%</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> <FieldSet> <Property name="caption">计éåä½</Property> <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">jldwbm</Property> <Property name="property">jldwbm</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jldwmc</Property> <Property name="property">jldwmc</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">dwflbm</Property> <Property name="property">dwflbm</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">dwflmc</Property> <Property name="property">dwflmc</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">xh</Property> <Property name="property">xh</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> </FieldSet> <Panel layout="regionPadding:5"> <Property name="caption">计éåä½è½¬æ¢ç³»æ°</Property> <Property name="height">200</Property> <Buttons/> <Children> <DataGrid id="dataGridDetail2"> <Property name="dataSet">dsMain</Property> <Property name="dataPath">#.jldwzhxs</Property> <DataColumn name="ydwbm"> <Property name="property">ydwbm</Property> </DataColumn> <DataColumn name="ydwmc"> <Property name="property">ydwmc</Property> </DataColumn> <DataColumn name="mbdwlx"> <Property name="property">mbdwlx</Property> </DataColumn> <DataColumn name="mbdwmc"> <Property name="property">mbdwmc</Property> </DataColumn> <DataColumn name="zhxs"> <Property name="property">zhxs</Property> </DataColumn> <DataColumn name="xh"> <Property name="property">xh</Property> </DataColumn> </DataGrid> </Children> <Tools/> </Panel> </Children> <Tools/> </Dialog> <UpdateAction id="updateSave"> <Property name="dataResolver">whjlShareApi2011PR#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">whjlShareApi2011PR#delData</Property> </AjaxAction> <AjaxAction id="ajaxPull"> <Property name="service">whjlShareApi2011PR#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/WhjlShareApi2012.view.xml
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,446 @@ <?xml version="1.0" encoding="UTF-8"?> <ViewConfig> <Arguments/> <Context/> <Model> <DataType name="dtMain"> <Property name="creationType">com.fzzy.otherview.whhpjl.dto.WhjlShareApi2012</Property> <PropertyDef name="yjfayjhbh"> <Property></Property> <Property name="label">åºæ¥æ¹æ¡ä¸è®¡åç¼å·</Property> </PropertyDef> <PropertyDef name="yjfayjhmc"> <Property></Property> <Property name="label">åºæ¥æ¹æ¡ä¸è®¡ååç§°</Property> </PropertyDef> <PropertyDef name="zdsj"> <Property></Property> <Property name="label">å¶å®æ¶é´</Property> </PropertyDef> <PropertyDef name="sjfssj"> <Property></Property> <Property name="label">äºä»¶åçæ¶é´</Property> </PropertyDef> <PropertyDef name="yjwz"> <Property></Property> <Property name="label">åºæ¥ä½ç½®</Property> </PropertyDef> <PropertyDef name="yjjd"> <Property></Property> <Property name="label">åºæ¥ç»åº¦</Property> </PropertyDef> <PropertyDef name="yjwd"> <Property></Property> <Property name="label">åºæ¥çº¬åº¦</Property> </PropertyDef> <PropertyDef name="fazt"> <Property></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> <PropertyDef name="yjfajgList"> <Property/> </PropertyDef> <Reference name="yjfajg"> <Property name="parameter">$${this.yjfajgList}</Property> <Property name="dataProvider">whjlShareApi2012PR#listItemShareApi2012Fa</Property> <Property name="dataType">[dtItemShareApi2012Fa]</Property> </Reference> </DataType> <DataType name="dtItemShareApi2012Fa"> <Property name="creationType">com.fzzy.otherview.whhpjl.dto.ShareApi2012Fa</Property> <PropertyDef name="yjfajgbh"> <Property></Property> <Property name="label">åºæ¥æ¹æ¡æç»ç¼å·</Property> </PropertyDef> <PropertyDef name="yjgsbh"> <Property></Property> <Property name="label">åç²®ä¼ä¸ç¼å·</Property> </PropertyDef> <PropertyDef name="jgzdbm"> <Property></Property> <Property name="label">åä¾ç«ç¹ç¼å·</Property> </PropertyDef> <PropertyDef name="yjfayjhbh"> <Property></Property> <Property name="label">åºæ¥æ¹æ¡ä¸è®¡åç¼å·</Property> </PropertyDef> <PropertyDef name="pzflbh"> <Property></Property> <Property name="label">åç§åç±»ç¼å·</Property> </PropertyDef> <PropertyDef name="jldwflbh"> <Property></Property> <Property name="label">计éåä½åç±»ç¼å·</Property> </PropertyDef> <PropertyDef name="dccl"> <Property></Property> <Property name="label">è°åºéé</Property> </PropertyDef> <PropertyDef name="yqsj"> <Property></Property> <Property name="label">è¦æ±æ¶é´</Property> </PropertyDef> <PropertyDef name="dbcb"> <Property></Property> <Property name="label">è°æ¨ææ¬</Property> </PropertyDef> <PropertyDef name="dbsj"> <Property></Property> <Property name="label">è°æ¨æ¶é´</Property> </PropertyDef> <PropertyDef name="shdwbh"> <Property></Property> <Property name="label">æ¶è´§åä½ç¼å·</Property> </PropertyDef> <PropertyDef name="shdwmc"> <Property></Property> <Property name="label">æ¶è´§åä½åç§°</Property> </PropertyDef> <PropertyDef name="shlxr"> <Property></Property> <Property name="label">æ¶è´§è系人</Property> </PropertyDef> <PropertyDef name="shlxrdh"> <Property></Property> <Property name="label">æ¶è´§è系人çµè¯</Property> </PropertyDef> <PropertyDef name="dcz"> <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">whjlShareApi2012PR#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="yjfayjhbh"> <Property name="property">yjfayjhbh</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="yjfayjhmc"> <Property name="property">yjfayjhmc</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="zdsj"> <Property name="property">zdsj</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="sjfssj"> <Property name="property">sjfssj</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="yjwz"> <Property name="property">yjwz</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="yjjd"> <Property name="property">yjjd</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="updateTime"> <Property name="property">updateTime</Property> <Property name="align">center</Property> </DataColumn> </DataGrid> </Container> <Dialog id="dialogMain" layout="regionPadding:10;padding:5"> <Property name="width">80%</Property> <Property name="closeable">false</Property> <Property name="iconClass">fa fa-sliders</Property> <Property name="caption">åºæ¥æ¹æ¡ä¿¡æ¯</Property> <Property name="height">85%</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> <FieldSet> <Property name="caption">åºæ¥æ¹æ¡ä¿¡æ¯</Property> <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">yjfayjhbh</Property> <Property name="property">yjfayjhbh</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">yjfayjhmc</Property> <Property name="property">yjfayjhmc</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">zdsj</Property> <Property name="property">zdsj</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">sjfssj</Property> <Property name="property">sjfssj</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">yjwz</Property> <Property name="property">yjwz</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">yjjd</Property> <Property name="property">yjjd</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">yjwd</Property> <Property name="property">yjwd</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">fazt</Property> <Property name="property">fazt</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> </FieldSet> <Panel layout="regionPadding:5"> <Property name="caption">åºæ¥æ¹æ¡æç»</Property> <Property name="height">200</Property> <Buttons/> <Children> <DataGrid id="dataGridDetail2"> <Property name="dataSet">dsMain</Property> <Property name="dataPath">#.yjfajg</Property> <DataColumn name="yjfajgbh"> <Property name="property">yjfajgbh</Property> </DataColumn> <DataColumn name="yjgsbh"> <Property name="property">yjgsbh</Property> </DataColumn> <DataColumn name="jgzdbm"> <Property name="property">jgzdbm</Property> </DataColumn> <DataColumn name="yjfayjhbh"> <Property name="property">yjfayjhbh</Property> </DataColumn> <DataColumn name="pzflbh"> <Property name="property">pzflbh</Property> </DataColumn> <DataColumn name="jldwflbh"> <Property name="property">jldwflbh</Property> </DataColumn> <DataColumn name="dccl"> <Property name="property">dccl</Property> </DataColumn> <DataColumn name="yqsj"> <Property name="property">yqsj</Property> </DataColumn> <DataColumn name="dbcb"> <Property name="property">dbcb</Property> </DataColumn> <DataColumn name="dbsj"> <Property name="property">dbsj</Property> </DataColumn> <DataColumn name="shdwbh"> <Property name="property">shdwbh</Property> </DataColumn> <DataColumn name="shdwmc"> <Property name="property">shdwmc</Property> </DataColumn> <DataColumn name="shlxr"> <Property name="property">shlxr</Property> </DataColumn> <DataColumn name="shlxrdh"> <Property name="property">shlxrdh</Property> </DataColumn> <DataColumn name="dcz"> <Property name="property">dcz</Property> </DataColumn> </DataGrid> </Children> <Tools/> </Panel> </Children> <Tools/> </Dialog> <UpdateAction id="updateSave"> <Property name="dataResolver">whjlShareApi2012PR#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">whjlShareApi2012PR#delData</Property> </AjaxAction> <AjaxAction id="ajaxPull"> <Property name="service">whjlShareApi2012PR#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/WhjlShareApi2004.java
@@ -21,26 +21,26 @@ */ private static final long serialVersionUID = 1L; private String jlgljgbhjgyzbm; //åç²®ç®¡çæºæç¼å· private String tyshxydmjgyzbm; //ç»ä¸ç¤¾ä¼ä¿¡ç¨ä»£ç private String sydwfrzshjgyzbm; //äºä¸å使³äººè¯ä¹¦å· private String jgmcjgyzbm; //æºæåç§° private String jgjcjgyzbm; //æºæç®ç§° private String jgpzmcjgyzbm; //å æçååç§° private String jbdwjgyzbm; //举ååä½ private String fzrjgyzbm; //è´è´£äºº private String jgxzjgyzbm; //æºææ§è´¨ private String jgxzmcjgyzbm; //æºææ§è´¨åç§° private String pzjgjgyzbm; //æ¹åæºæ private String jgggjgyzbm; //æºæè§æ ¼ private String jfglxsjgyzbm; //ç»è´¹ç®¡çå½¢å¼ private String jfglxsmcjgyzbm; //ç»è´¹ç®¡çå½¢å¼åç§° private String zyznjgyzbm; //主è¦èè½ private String jgdzjgyzbm; //æºæå°å private String jgxzqhbmjgyzbm; //æºæè¡æ¿åºåç¼ç private String jgxzqhmcjgyzbm; //æºæè¡æ¿åºååç§° private String jlgljgbh; //åç²®ç®¡çæºæç¼å· private String tyshxydm; //ç»ä¸ç¤¾ä¼ä¿¡ç¨ä»£ç private String sydwfrzsh; //äºä¸å使³äººè¯ä¹¦å· private String jgmc; //æºæåç§° private String jgjc; //æºæç®ç§° private String jgpzmc; //å æçååç§° private String jbdw; //举ååä½ private String fzr; //è´è´£äºº private String jgxz; //æºææ§è´¨ private String jgxzmc; //æºææ§è´¨åç§° private String pzjg; //æ¹åæºæ private String jggg; //æºæè§æ ¼ private String jfglxs; //ç»è´¹ç®¡çå½¢å¼ private String jfglxsmc; //ç»è´¹ç®¡çå½¢å¼åç§° private String zyzn; //主è¦èè½ private String jgdz; //æºæå°å private String jgxzqhbm; //æºæè¡æ¿åºåç¼ç private String jgxzqhmc; //æºæè¡æ¿åºååç§° private String jgyzbm; //æºæé®æ¿ç¼ç private String sfyxjgyzbm; //æ¯å¦ææ private String sfyx; //æ¯å¦ææ //åç¬å¢å ï¼ä¸è¿è¡ä¸ä¼ src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2001PR.java
@@ -133,16 +133,16 @@ if (responseDto.getSuccess() == 0) { list = JSONObject.parseArray(responseDto.getData(), WhjlShareApi2001.class); if(null != list && list.size() > 0){ for (WhjlShareApi2001 whjlShareApi2001 : list) { whjlShareApi2001.setCzbz(Constant.CZBZ_U); for (WhjlShareApi2001 shareData : list) { shareData.setCzbz(Constant.CZBZ_U); infoData = new ApiInfoData(); infoData.setId(whjlShareApi2001.getSbflbm()); infoData.setId(shareData.getSbflbm()); infoData.setKqdm(apiConf.getKqdm()); infoData.setInteType(WhjlConstant.API_CATEGORY_20); infoData.setInteId(WhjlConstant.API_CODE_2001); infoData.setUpdateTime(new Date()); infoData.setDataId(whjlShareApi2001.getSbflbm()); infoData.setData(JSON.toJSONString(whjlShareApi2001)); infoData.setDataId(shareData.getSbflbm()); infoData.setData(JSON.toJSONString(shareData)); infoData.setCzbz(Constant.CZBZ_U); apiInfoDataRep.save(infoData); } src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2002PR.java
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,158 @@ package com.fzzy.otherview.whhpjl.pr; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONObject; import com.bstek.dorado.annotation.DataProvider; import com.bstek.dorado.annotation.DataResolver; import com.bstek.dorado.annotation.Expose; import com.fzzy.api.Constant; import com.fzzy.api.data.ApiParam; import com.fzzy.api.dto.ResponseDto; import com.fzzy.api.entity.ApiConfs; import com.fzzy.api.entity.ApiInfoData; import com.fzzy.api.service.ApiCommonService; import com.fzzy.api.service.ApiPushManager; 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.WhjlShareApi2001; import com.fzzy.otherview.whhpjl.dto.WhjlShareApi2002; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import java.util.ArrayList; import java.util.Date; import java.util.List; /** * å ±äº«æ¥å£-产ååç±» * * @author czt */ @Component public class WhjlShareApi2002PR { @Autowired private ApiCommonService apiCommonService; @Autowired private ApiPushManager apiPushManager; @Autowired private ApiInfoDataRep apiInfoDataRep; /** * è·ååè¡¨ä¿¡æ¯ * whjlShareApi2002PR#listData * * @return */ @DataProvider public List<WhjlShareApi2002> listData() { List<ApiInfoData> result = apiInfoDataRep.getDataByInteId(WhjlConstant.API_CODE_2002); if (null == result || result.isEmpty()) { return null; } List<WhjlShareApi2002> list = new ArrayList<>(); WhjlShareApi2002 whjlShareApiData; for (ApiInfoData infoData : result) { whjlShareApiData = JSONObject.parseObject(infoData.getData(), WhjlShareApi2002.class); whjlShareApiData.setKqdm(infoData.getKqdm()); whjlShareApiData.setCzbz(infoData.getCzbz()); whjlShareApiData.setUpdateTime(infoData.getUpdateTime()); list.add(whjlShareApiData); } return list; } /** * æ´æ°æä¿®æ¹ * whjlShareApi2002PR#saveData * * @param data * @return */ @DataResolver public void saveData(WhjlShareApi2002 data) { ApiInfoData infoData = new ApiInfoData(); infoData.setId(data.getCpflbm()); infoData.setKqdm(data.getKqdm()); infoData.setInteType(WhjlConstant.API_CATEGORY_20); infoData.setInteId(WhjlConstant.API_CODE_2002); infoData.setUpdateTime(new Date()); infoData.setDataId(data.getCpflbm()); infoData.setData(JSON.toJSONString(data)); infoData.setCzbz(data.getCzbz()); infoData.setRemarks("夿³¨ä¿¡æ¯"); apiInfoDataRep.save(infoData); } /** * å é¤ * whjlShareApi2002PR#delData * * @param data * @return */ @Expose public String delData(WhjlShareApi2002 data) { apiInfoDataRep.deleteById(data.getCpflbm()); return null; } /** * æ´æ°æ°æ® * whjlShareApi2002PR#pullData * * @param items * @return */ @Expose public String pullData(List<WhjlShareApi2002> items) { //è·åé ç½®ä¿¡æ¯ List<ApiConfs> apiConfs = apiCommonService.listCacheConf(); if (null == apiConfs || apiConfs.isEmpty()) { return "ç³»ç»æ²¡æè·åå°åºåºé 置信æ¯ï¼æ§è¡å¤±è´¥"; } ApiRemoteService apiService; ApiParam param; ResponseDto responseDto; ApiInfoData infoData; String result = ""; List<WhjlShareApi2002> 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); responseDto = apiService.pullData(param, apiConf); if (responseDto.getSuccess() == 0) { list = JSONObject.parseArray(responseDto.getData(), WhjlShareApi2002.class); if(null != list && list.size() > 0){ for (WhjlShareApi2002 shareData : list) { shareData.setCzbz(Constant.CZBZ_U); infoData = new ApiInfoData(); infoData.setId(shareData.getCpflbm()); infoData.setKqdm(apiConf.getKqdm()); infoData.setInteType(WhjlConstant.API_CATEGORY_20); infoData.setInteId(WhjlConstant.API_CODE_2002); infoData.setUpdateTime(new Date()); infoData.setDataId(shareData.getCpflbm()); infoData.setData(JSON.toJSONString(shareData)); infoData.setCzbz(Constant.CZBZ_U); apiInfoDataRep.save(infoData); } } } result += responseDto.toString(); return result; } return null; } } src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2003PR.java
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,169 @@ package com.fzzy.otherview.whhpjl.pr; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONObject; import com.bstek.dorado.annotation.DataProvider; import com.bstek.dorado.annotation.DataResolver; import com.bstek.dorado.annotation.Expose; import com.fzzy.api.Constant; import com.fzzy.api.data.ApiParam; import com.fzzy.api.dto.ResponseDto; import com.fzzy.api.entity.ApiConfs; import com.fzzy.api.entity.ApiInfoData; import com.fzzy.api.service.ApiCommonService; import com.fzzy.api.service.ApiPushManager; 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.*; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import java.util.ArrayList; import java.util.Date; import java.util.List; /** * å ±äº«æ¥å£-计éåä½ * * @author czt */ @Component public class WhjlShareApi2003PR { @Autowired private ApiCommonService apiCommonService; @Autowired private ApiPushManager apiPushManager; @Autowired private ApiInfoDataRep apiInfoDataRep; /** * è·ååè¡¨ä¿¡æ¯ * whjlShareApi2003PR#listData * * @return */ @DataProvider public List<WhjlShareApi2003> listData() { List<ApiInfoData> result = apiInfoDataRep.getDataByInteId(WhjlConstant.API_CODE_2003); if (null == result || result.isEmpty()) { return null; } List<WhjlShareApi2003> list = new ArrayList<>(); WhjlShareApi2003 whjlShareApiData; for (ApiInfoData infoData : result) { whjlShareApiData = JSONObject.parseObject(infoData.getData(), WhjlShareApi2003.class); whjlShareApiData.setKqdm(infoData.getKqdm()); whjlShareApiData.setCzbz(infoData.getCzbz()); whjlShareApiData.setUpdateTime(infoData.getUpdateTime()); list.add(whjlShareApiData); } return list; } /** * è·åè´¨æ£æ åéç¨çåç§ * whjlShareApi2003PR#listItemShareApi2003Xs * * @return */ @DataProvider public List<ShareApi2003Xs> listItemShareApi2003Xs(String code) { return JSON.parseArray(code, ShareApi2003Xs.class); } /** * æ´æ°æä¿®æ¹ * whjlShareApi2003PR#saveData * * @param data * @return */ @DataResolver public void saveData(WhjlShareApi2003 data) { ApiInfoData infoData = new ApiInfoData(); infoData.setId(data.getJldwbm()); infoData.setKqdm(data.getKqdm()); infoData.setInteType(WhjlConstant.API_CATEGORY_20); infoData.setInteId(WhjlConstant.API_CODE_2003); infoData.setUpdateTime(new Date()); infoData.setDataId(data.getJldwbm()); infoData.setData(JSON.toJSONString(data)); infoData.setCzbz(data.getCzbz()); infoData.setRemarks("夿³¨ä¿¡æ¯"); apiInfoDataRep.save(infoData); } /** * å é¤ * whjlShareApi2003PR#delData * * @param data * @return */ @Expose public String delData(WhjlShareApi2003 data) { apiInfoDataRep.deleteById(data.getJldwbm()); return null; } /** * æ´æ°æ°æ® * whjlShareApi2003PR#pullData * * @param items * @return */ @Expose public String pullData(List<WhjlShareApi2003> items) { //è·åé ç½®ä¿¡æ¯ List<ApiConfs> apiConfs = apiCommonService.listCacheConf(); if (null == apiConfs || apiConfs.isEmpty()) { return "ç³»ç»æ²¡æè·åå°åºåºé 置信æ¯ï¼æ§è¡å¤±è´¥"; } ApiRemoteService apiService; ApiParam param; ResponseDto responseDto; ApiInfoData infoData; String result = ""; List<WhjlShareApi2003> 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_2003); responseDto = apiService.pullData(param, apiConf); if (responseDto.getSuccess() == 0) { list = JSONObject.parseArray(responseDto.getData(), WhjlShareApi2003.class); if(null != list && list.size() > 0){ for (WhjlShareApi2003 shareData : list) { shareData.setCzbz(Constant.CZBZ_U); shareData.setJldwzhxsList(JSON.toJSONString(shareData.getJldwzhxs())); shareData.setCzbz(Constant.CZBZ_U); infoData = new ApiInfoData(); infoData.setId(shareData.getJldwbm()); infoData.setKqdm(apiConf.getKqdm()); infoData.setInteType(WhjlConstant.API_CATEGORY_20); infoData.setInteId(WhjlConstant.API_CODE_2003); infoData.setUpdateTime(new Date()); infoData.setDataId(shareData.getJldwbm()); infoData.setData(JSON.toJSONString(shareData)); infoData.setCzbz(Constant.CZBZ_U); apiInfoDataRep.save(infoData); } } } result += responseDto.toString(); return result; } return null; } } src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2004PR.java
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,159 @@ package com.fzzy.otherview.whhpjl.pr; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONObject; import com.bstek.dorado.annotation.DataProvider; import com.bstek.dorado.annotation.DataResolver; import com.bstek.dorado.annotation.Expose; import com.fzzy.api.Constant; import com.fzzy.api.data.ApiParam; import com.fzzy.api.dto.ResponseDto; import com.fzzy.api.entity.ApiConfs; import com.fzzy.api.entity.ApiInfoData; import com.fzzy.api.service.ApiCommonService; import com.fzzy.api.service.ApiPushManager; 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.WhjlShareApi2003; import com.fzzy.otherview.whhpjl.dto.WhjlShareApi2004; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import java.util.ArrayList; import java.util.Date; import java.util.List; /** * å ±äº«æ¥å£-产ååç±» * * @author czt */ @Component public class WhjlShareApi2004PR { @Autowired private ApiCommonService apiCommonService; @Autowired private ApiPushManager apiPushManager; @Autowired private ApiInfoDataRep apiInfoDataRep; /** * è·ååè¡¨ä¿¡æ¯ * whjlShareApi2004PR#listData * * @return */ @DataProvider public List<WhjlShareApi2004> listData() { List<ApiInfoData> result = apiInfoDataRep.getDataByInteId(WhjlConstant.API_CODE_2004); if (null == result || result.isEmpty()) { return null; } List<WhjlShareApi2004> list = new ArrayList<>(); WhjlShareApi2004 whjlShareApiData; for (ApiInfoData infoData : result) { whjlShareApiData = JSONObject.parseObject(infoData.getData(), WhjlShareApi2004.class); whjlShareApiData.setKqdm(infoData.getKqdm()); whjlShareApiData.setCzbz(infoData.getCzbz()); whjlShareApiData.setUpdateTime(infoData.getUpdateTime()); list.add(whjlShareApiData); } return list; } /** * æ´æ°æä¿®æ¹ * whjlShareApi2004PR#saveData * * @param data * @return */ @DataResolver public void saveData(WhjlShareApi2004 data) { ApiInfoData infoData = new ApiInfoData(); infoData.setId(data.getTyshxydm()); infoData.setKqdm(data.getKqdm()); infoData.setInteType(WhjlConstant.API_CATEGORY_20); infoData.setInteId(WhjlConstant.API_CODE_2004); infoData.setUpdateTime(new Date()); infoData.setDataId(data.getTyshxydm()); infoData.setData(JSON.toJSONString(data)); infoData.setCzbz(data.getCzbz()); infoData.setRemarks("夿³¨ä¿¡æ¯"); apiInfoDataRep.save(infoData); } /** * å é¤ * whjlShareApi2004PR#delData * * @param data * @return */ @Expose public String delData(WhjlShareApi2004 data) { apiInfoDataRep.deleteById(data.getTyshxydm()); return null; } /** * æ´æ°æ°æ® * whjlShareApi2004PR#pullData * * @param items * @return */ @Expose public String pullData(List<WhjlShareApi2004> items) { //è·åé ç½®ä¿¡æ¯ List<ApiConfs> apiConfs = apiCommonService.listCacheConf(); if (null == apiConfs || apiConfs.isEmpty()) { return "ç³»ç»æ²¡æè·åå°åºåºé 置信æ¯ï¼æ§è¡å¤±è´¥"; } ApiRemoteService apiService; ApiParam param; ResponseDto responseDto; ApiInfoData infoData; String result = ""; List<WhjlShareApi2004> 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_2004); responseDto = apiService.pullData(param, apiConf); if (responseDto.getSuccess() == 0) { list = JSONObject.parseArray(responseDto.getData(), WhjlShareApi2004.class); if(null != list && list.size() > 0){ for (WhjlShareApi2004 shareData : list) { shareData.setCzbz(Constant.CZBZ_U); infoData = new ApiInfoData(); infoData.setId(shareData.getTyshxydm()); infoData.setKqdm(apiConf.getKqdm()); infoData.setInteType(WhjlConstant.API_CATEGORY_20); infoData.setInteId(WhjlConstant.API_CODE_2004); infoData.setUpdateTime(new Date()); infoData.setDataId(shareData.getTyshxydm()); infoData.setData(JSON.toJSONString(shareData)); infoData.setCzbz(Constant.CZBZ_U); apiInfoDataRep.save(infoData); } } } result += responseDto.toString(); return result; } return null; } } src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2005PR.java
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,156 @@ package com.fzzy.otherview.whhpjl.pr; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONObject; import com.bstek.dorado.annotation.DataProvider; import com.bstek.dorado.annotation.DataResolver; import com.bstek.dorado.annotation.Expose; import com.fzzy.api.Constant; import com.fzzy.api.data.ApiParam; import com.fzzy.api.dto.ResponseDto; import com.fzzy.api.entity.ApiConfs; import com.fzzy.api.entity.ApiInfoData; import com.fzzy.api.service.ApiCommonService; import com.fzzy.api.service.ApiPushManager; 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.WhjlShareApi2005; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import java.util.ArrayList; import java.util.Date; import java.util.List; /** * å ±äº«æ¥å£-产ååç±» * * @author czt */ @Component public class WhjlShareApi2005PR { @Autowired private ApiCommonService apiCommonService; @Autowired private ApiPushManager apiPushManager; @Autowired private ApiInfoDataRep apiInfoDataRep; /** * è·ååè¡¨ä¿¡æ¯ * whjlShareApi2005PR#listData * * @return */ @DataProvider public List<WhjlShareApi2005> listData() { List<ApiInfoData> result = apiInfoDataRep.getDataByInteId(WhjlConstant.API_CODE_2005); if (null == result || result.isEmpty()) { return null; } List<WhjlShareApi2005> list = new ArrayList<>(); WhjlShareApi2005 whjlShareApiData; for (ApiInfoData infoData : result) { whjlShareApiData = JSONObject.parseObject(infoData.getData(), WhjlShareApi2005.class); whjlShareApiData.setKqdm(infoData.getKqdm()); whjlShareApiData.setCzbz(infoData.getCzbz()); whjlShareApiData.setUpdateTime(infoData.getUpdateTime()); list.add(whjlShareApiData); } return list; } /** * æ´æ°æä¿®æ¹ * whjlShareApi2005PR#saveData * * @param data * @return */ @DataResolver public void saveData(WhjlShareApi2005 data) { ApiInfoData infoData = new ApiInfoData(); infoData.setId(data.getJlqytyshxydm()); infoData.setKqdm(data.getKqdm()); infoData.setInteType(WhjlConstant.API_CATEGORY_20); infoData.setInteId(WhjlConstant.API_CODE_2005); infoData.setUpdateTime(new Date()); infoData.setDataId(data.getJlqytyshxydm()); infoData.setData(JSON.toJSONString(data)); infoData.setCzbz(data.getCzbz()); infoData.setRemarks("夿³¨ä¿¡æ¯"); apiInfoDataRep.save(infoData); } /** * å é¤ * whjlShareApi2005PR#delData * * @param data * @return */ @Expose public String delData(WhjlShareApi2005 data) { apiInfoDataRep.deleteById(data.getJlqytyshxydm()); return null; } /** * æ´æ°æ°æ® * whjlShareApi2005PR#pullData * * @param items * @return */ @Expose public String pullData(List<WhjlShareApi2005> items) { //è·åé ç½®ä¿¡æ¯ List<ApiConfs> apiConfs = apiCommonService.listCacheConf(); if (null == apiConfs || apiConfs.isEmpty()) { return "ç³»ç»æ²¡æè·åå°åºåºé 置信æ¯ï¼æ§è¡å¤±è´¥"; } ApiRemoteService apiService; ApiParam param; ResponseDto responseDto; ApiInfoData infoData; String result = ""; List<WhjlShareApi2005> 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_2005); responseDto = apiService.pullData(param, apiConf); if (responseDto.getSuccess() == 0) { list = JSONObject.parseArray(responseDto.getData(), WhjlShareApi2005.class); if(null != list && list.size() > 0){ for (WhjlShareApi2005 shareData : list) { shareData.setCzbz(Constant.CZBZ_U); infoData = new ApiInfoData(); infoData.setId(shareData.getJlqytyshxydm()); infoData.setKqdm(apiConf.getKqdm()); infoData.setInteType(WhjlConstant.API_CATEGORY_20); infoData.setInteId(WhjlConstant.API_CODE_2005); infoData.setUpdateTime(new Date()); infoData.setDataId(shareData.getJlqytyshxydm()); infoData.setData(JSON.toJSONString(shareData)); infoData.setCzbz(Constant.CZBZ_U); apiInfoDataRep.save(infoData); } } } result += responseDto.toString(); return result; } return null; } } src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2006PR.java
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,157 @@ package com.fzzy.otherview.whhpjl.pr; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONObject; import com.bstek.dorado.annotation.DataProvider; import com.bstek.dorado.annotation.DataResolver; import com.bstek.dorado.annotation.Expose; import com.fzzy.api.Constant; import com.fzzy.api.data.ApiParam; import com.fzzy.api.dto.ResponseDto; import com.fzzy.api.entity.ApiConfs; import com.fzzy.api.entity.ApiInfoData; import com.fzzy.api.service.ApiCommonService; import com.fzzy.api.service.ApiPushManager; 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 org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import java.util.ArrayList; import java.util.Date; import java.util.List; /** * å ±äº«æ¥å£-产ååç±» * * @author czt */ @Component public class WhjlShareApi2006PR { @Autowired private ApiCommonService apiCommonService; @Autowired private ApiPushManager apiPushManager; @Autowired private ApiInfoDataRep apiInfoDataRep; /** * è·ååè¡¨ä¿¡æ¯ * whjlShareApi2002PR#listData * * @return */ @DataProvider public List<WhjlShareApi2002> listData() { List<ApiInfoData> result = apiInfoDataRep.getDataByInteId(WhjlConstant.API_CODE_2002); if (null == result || result.isEmpty()) { return null; } List<WhjlShareApi2002> list = new ArrayList<>(); WhjlShareApi2002 whjlShareApiData; for (ApiInfoData infoData : result) { whjlShareApiData = JSONObject.parseObject(infoData.getData(), WhjlShareApi2002.class); whjlShareApiData.setKqdm(infoData.getKqdm()); whjlShareApiData.setCzbz(infoData.getCzbz()); whjlShareApiData.setUpdateTime(infoData.getUpdateTime()); list.add(whjlShareApiData); } return list; } /** * æ´æ°æä¿®æ¹ * whjlShareApi2002PR#saveData * * @param data * @return */ @DataResolver public void saveData(WhjlShareApi2002 data) { ApiInfoData infoData = new ApiInfoData(); infoData.setId(data.getCpflbm()); infoData.setKqdm(data.getKqdm()); infoData.setInteType(WhjlConstant.API_CATEGORY_20); infoData.setInteId(WhjlConstant.API_CODE_2002); infoData.setUpdateTime(new Date()); infoData.setDataId(data.getCpflbm()); infoData.setData(JSON.toJSONString(data)); infoData.setCzbz(data.getCzbz()); infoData.setRemarks("夿³¨ä¿¡æ¯"); apiInfoDataRep.save(infoData); } /** * å é¤ * whjlShareApi2002PR#delData * * @param data * @return */ @Expose public String delData(WhjlShareApi2002 data) { apiInfoDataRep.deleteById(data.getCpflbm()); return null; } /** * æ´æ°æ°æ® * whjlShareApi2002PR#pullData * * @param items * @return */ @Expose public String pullData(List<WhjlShareApi2002> items) { //è·åé ç½®ä¿¡æ¯ List<ApiConfs> apiConfs = apiCommonService.listCacheConf(); if (null == apiConfs || apiConfs.isEmpty()) { return "ç³»ç»æ²¡æè·åå°åºåºé 置信æ¯ï¼æ§è¡å¤±è´¥"; } ApiRemoteService apiService; ApiParam param; ResponseDto responseDto; ApiInfoData infoData; String result = ""; List<WhjlShareApi2002> 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); responseDto = apiService.pullData(param, apiConf); if (responseDto.getSuccess() == 0) { list = JSONObject.parseArray(responseDto.getData(), WhjlShareApi2002.class); if(null != list && list.size() > 0){ for (WhjlShareApi2002 shareData : list) { shareData.setCzbz(Constant.CZBZ_U); infoData = new ApiInfoData(); infoData.setId(shareData.getCpflbm()); infoData.setKqdm(apiConf.getKqdm()); infoData.setInteType(WhjlConstant.API_CATEGORY_20); infoData.setInteId(WhjlConstant.API_CODE_2002); infoData.setUpdateTime(new Date()); infoData.setDataId(shareData.getCpflbm()); infoData.setData(JSON.toJSONString(shareData)); infoData.setCzbz(Constant.CZBZ_U); apiInfoDataRep.save(infoData); } } } result += responseDto.toString(); return result; } return null; } } src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2007PR.java
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,157 @@ package com.fzzy.otherview.whhpjl.pr; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONObject; import com.bstek.dorado.annotation.DataProvider; import com.bstek.dorado.annotation.DataResolver; import com.bstek.dorado.annotation.Expose; import com.fzzy.api.Constant; import com.fzzy.api.data.ApiParam; import com.fzzy.api.dto.ResponseDto; import com.fzzy.api.entity.ApiConfs; import com.fzzy.api.entity.ApiInfoData; import com.fzzy.api.service.ApiCommonService; import com.fzzy.api.service.ApiPushManager; 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 org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import java.util.ArrayList; import java.util.Date; import java.util.List; /** * å ±äº«æ¥å£-产ååç±» * * @author czt */ @Component public class WhjlShareApi2007PR { @Autowired private ApiCommonService apiCommonService; @Autowired private ApiPushManager apiPushManager; @Autowired private ApiInfoDataRep apiInfoDataRep; /** * è·ååè¡¨ä¿¡æ¯ * whjlShareApi2002PR#listData * * @return */ @DataProvider public List<WhjlShareApi2002> listData() { List<ApiInfoData> result = apiInfoDataRep.getDataByInteId(WhjlConstant.API_CODE_2002); if (null == result || result.isEmpty()) { return null; } List<WhjlShareApi2002> list = new ArrayList<>(); WhjlShareApi2002 whjlShareApiData; for (ApiInfoData infoData : result) { whjlShareApiData = JSONObject.parseObject(infoData.getData(), WhjlShareApi2002.class); whjlShareApiData.setKqdm(infoData.getKqdm()); whjlShareApiData.setCzbz(infoData.getCzbz()); whjlShareApiData.setUpdateTime(infoData.getUpdateTime()); list.add(whjlShareApiData); } return list; } /** * æ´æ°æä¿®æ¹ * whjlShareApi2002PR#saveData * * @param data * @return */ @DataResolver public void saveData(WhjlShareApi2002 data) { ApiInfoData infoData = new ApiInfoData(); infoData.setId(data.getCpflbm()); infoData.setKqdm(data.getKqdm()); infoData.setInteType(WhjlConstant.API_CATEGORY_20); infoData.setInteId(WhjlConstant.API_CODE_2002); infoData.setUpdateTime(new Date()); infoData.setDataId(data.getCpflbm()); infoData.setData(JSON.toJSONString(data)); infoData.setCzbz(data.getCzbz()); infoData.setRemarks("夿³¨ä¿¡æ¯"); apiInfoDataRep.save(infoData); } /** * å é¤ * whjlShareApi2002PR#delData * * @param data * @return */ @Expose public String delData(WhjlShareApi2002 data) { apiInfoDataRep.deleteById(data.getCpflbm()); return null; } /** * æ´æ°æ°æ® * whjlShareApi2002PR#pullData * * @param items * @return */ @Expose public String pullData(List<WhjlShareApi2002> items) { //è·åé ç½®ä¿¡æ¯ List<ApiConfs> apiConfs = apiCommonService.listCacheConf(); if (null == apiConfs || apiConfs.isEmpty()) { return "ç³»ç»æ²¡æè·åå°åºåºé 置信æ¯ï¼æ§è¡å¤±è´¥"; } ApiRemoteService apiService; ApiParam param; ResponseDto responseDto; ApiInfoData infoData; String result = ""; List<WhjlShareApi2002> 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); responseDto = apiService.pullData(param, apiConf); if (responseDto.getSuccess() == 0) { list = JSONObject.parseArray(responseDto.getData(), WhjlShareApi2002.class); if(null != list && list.size() > 0){ for (WhjlShareApi2002 shareData : list) { shareData.setCzbz(Constant.CZBZ_U); infoData = new ApiInfoData(); infoData.setId(shareData.getCpflbm()); infoData.setKqdm(apiConf.getKqdm()); infoData.setInteType(WhjlConstant.API_CATEGORY_20); infoData.setInteId(WhjlConstant.API_CODE_2002); infoData.setUpdateTime(new Date()); infoData.setDataId(shareData.getCpflbm()); infoData.setData(JSON.toJSONString(shareData)); infoData.setCzbz(Constant.CZBZ_U); apiInfoDataRep.save(infoData); } } } result += responseDto.toString(); return result; } return null; } } src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2008PR.java
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,157 @@ package com.fzzy.otherview.whhpjl.pr; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONObject; import com.bstek.dorado.annotation.DataProvider; import com.bstek.dorado.annotation.DataResolver; import com.bstek.dorado.annotation.Expose; import com.fzzy.api.Constant; import com.fzzy.api.data.ApiParam; import com.fzzy.api.dto.ResponseDto; import com.fzzy.api.entity.ApiConfs; import com.fzzy.api.entity.ApiInfoData; import com.fzzy.api.service.ApiCommonService; import com.fzzy.api.service.ApiPushManager; 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 org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import java.util.ArrayList; import java.util.Date; import java.util.List; /** * å ±äº«æ¥å£-产ååç±» * * @author czt */ @Component public class WhjlShareApi2008PR { @Autowired private ApiCommonService apiCommonService; @Autowired private ApiPushManager apiPushManager; @Autowired private ApiInfoDataRep apiInfoDataRep; /** * è·ååè¡¨ä¿¡æ¯ * whjlShareApi2002PR#listData * * @return */ @DataProvider public List<WhjlShareApi2002> listData() { List<ApiInfoData> result = apiInfoDataRep.getDataByInteId(WhjlConstant.API_CODE_2002); if (null == result || result.isEmpty()) { return null; } List<WhjlShareApi2002> list = new ArrayList<>(); WhjlShareApi2002 whjlShareApiData; for (ApiInfoData infoData : result) { whjlShareApiData = JSONObject.parseObject(infoData.getData(), WhjlShareApi2002.class); whjlShareApiData.setKqdm(infoData.getKqdm()); whjlShareApiData.setCzbz(infoData.getCzbz()); whjlShareApiData.setUpdateTime(infoData.getUpdateTime()); list.add(whjlShareApiData); } return list; } /** * æ´æ°æä¿®æ¹ * whjlShareApi2002PR#saveData * * @param data * @return */ @DataResolver public void saveData(WhjlShareApi2002 data) { ApiInfoData infoData = new ApiInfoData(); infoData.setId(data.getCpflbm()); infoData.setKqdm(data.getKqdm()); infoData.setInteType(WhjlConstant.API_CATEGORY_20); infoData.setInteId(WhjlConstant.API_CODE_2002); infoData.setUpdateTime(new Date()); infoData.setDataId(data.getCpflbm()); infoData.setData(JSON.toJSONString(data)); infoData.setCzbz(data.getCzbz()); infoData.setRemarks("夿³¨ä¿¡æ¯"); apiInfoDataRep.save(infoData); } /** * å é¤ * whjlShareApi2002PR#delData * * @param data * @return */ @Expose public String delData(WhjlShareApi2002 data) { apiInfoDataRep.deleteById(data.getCpflbm()); return null; } /** * æ´æ°æ°æ® * whjlShareApi2002PR#pullData * * @param items * @return */ @Expose public String pullData(List<WhjlShareApi2002> items) { //è·åé ç½®ä¿¡æ¯ List<ApiConfs> apiConfs = apiCommonService.listCacheConf(); if (null == apiConfs || apiConfs.isEmpty()) { return "ç³»ç»æ²¡æè·åå°åºåºé 置信æ¯ï¼æ§è¡å¤±è´¥"; } ApiRemoteService apiService; ApiParam param; ResponseDto responseDto; ApiInfoData infoData; String result = ""; List<WhjlShareApi2002> 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); responseDto = apiService.pullData(param, apiConf); if (responseDto.getSuccess() == 0) { list = JSONObject.parseArray(responseDto.getData(), WhjlShareApi2002.class); if(null != list && list.size() > 0){ for (WhjlShareApi2002 shareData : list) { shareData.setCzbz(Constant.CZBZ_U); infoData = new ApiInfoData(); infoData.setId(shareData.getCpflbm()); infoData.setKqdm(apiConf.getKqdm()); infoData.setInteType(WhjlConstant.API_CATEGORY_20); infoData.setInteId(WhjlConstant.API_CODE_2002); infoData.setUpdateTime(new Date()); infoData.setDataId(shareData.getCpflbm()); infoData.setData(JSON.toJSONString(shareData)); infoData.setCzbz(Constant.CZBZ_U); apiInfoDataRep.save(infoData); } } } result += responseDto.toString(); return result; } return null; } } src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2009PR.java
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,157 @@ package com.fzzy.otherview.whhpjl.pr; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONObject; import com.bstek.dorado.annotation.DataProvider; import com.bstek.dorado.annotation.DataResolver; import com.bstek.dorado.annotation.Expose; import com.fzzy.api.Constant; import com.fzzy.api.data.ApiParam; import com.fzzy.api.dto.ResponseDto; import com.fzzy.api.entity.ApiConfs; import com.fzzy.api.entity.ApiInfoData; import com.fzzy.api.service.ApiCommonService; import com.fzzy.api.service.ApiPushManager; 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 org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import java.util.ArrayList; import java.util.Date; import java.util.List; /** * å ±äº«æ¥å£-产ååç±» * * @author czt */ @Component public class WhjlShareApi2009PR { @Autowired private ApiCommonService apiCommonService; @Autowired private ApiPushManager apiPushManager; @Autowired private ApiInfoDataRep apiInfoDataRep; /** * è·ååè¡¨ä¿¡æ¯ * whjlShareApi2002PR#listData * * @return */ @DataProvider public List<WhjlShareApi2002> listData() { List<ApiInfoData> result = apiInfoDataRep.getDataByInteId(WhjlConstant.API_CODE_2002); if (null == result || result.isEmpty()) { return null; } List<WhjlShareApi2002> list = new ArrayList<>(); WhjlShareApi2002 whjlShareApiData; for (ApiInfoData infoData : result) { whjlShareApiData = JSONObject.parseObject(infoData.getData(), WhjlShareApi2002.class); whjlShareApiData.setKqdm(infoData.getKqdm()); whjlShareApiData.setCzbz(infoData.getCzbz()); whjlShareApiData.setUpdateTime(infoData.getUpdateTime()); list.add(whjlShareApiData); } return list; } /** * æ´æ°æä¿®æ¹ * whjlShareApi2002PR#saveData * * @param data * @return */ @DataResolver public void saveData(WhjlShareApi2002 data) { ApiInfoData infoData = new ApiInfoData(); infoData.setId(data.getCpflbm()); infoData.setKqdm(data.getKqdm()); infoData.setInteType(WhjlConstant.API_CATEGORY_20); infoData.setInteId(WhjlConstant.API_CODE_2002); infoData.setUpdateTime(new Date()); infoData.setDataId(data.getCpflbm()); infoData.setData(JSON.toJSONString(data)); infoData.setCzbz(data.getCzbz()); infoData.setRemarks("夿³¨ä¿¡æ¯"); apiInfoDataRep.save(infoData); } /** * å é¤ * whjlShareApi2002PR#delData * * @param data * @return */ @Expose public String delData(WhjlShareApi2002 data) { apiInfoDataRep.deleteById(data.getCpflbm()); return null; } /** * æ´æ°æ°æ® * whjlShareApi2002PR#pullData * * @param items * @return */ @Expose public String pullData(List<WhjlShareApi2002> items) { //è·åé ç½®ä¿¡æ¯ List<ApiConfs> apiConfs = apiCommonService.listCacheConf(); if (null == apiConfs || apiConfs.isEmpty()) { return "ç³»ç»æ²¡æè·åå°åºåºé 置信æ¯ï¼æ§è¡å¤±è´¥"; } ApiRemoteService apiService; ApiParam param; ResponseDto responseDto; ApiInfoData infoData; String result = ""; List<WhjlShareApi2002> 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); responseDto = apiService.pullData(param, apiConf); if (responseDto.getSuccess() == 0) { list = JSONObject.parseArray(responseDto.getData(), WhjlShareApi2002.class); if(null != list && list.size() > 0){ for (WhjlShareApi2002 shareData : list) { shareData.setCzbz(Constant.CZBZ_U); infoData = new ApiInfoData(); infoData.setId(shareData.getCpflbm()); infoData.setKqdm(apiConf.getKqdm()); infoData.setInteType(WhjlConstant.API_CATEGORY_20); infoData.setInteId(WhjlConstant.API_CODE_2002); infoData.setUpdateTime(new Date()); infoData.setDataId(shareData.getCpflbm()); infoData.setData(JSON.toJSONString(shareData)); infoData.setCzbz(Constant.CZBZ_U); apiInfoDataRep.save(infoData); } } } result += responseDto.toString(); return result; } return null; } } src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2010PR.java
@@ -98,7 +98,7 @@ infoData.setId(data.getZjbzbm()); infoData.setKqdm(data.getKqdm()); infoData.setInteType(WhjlConstant.API_CATEGORY_20); infoData.setInteId(WhjlConstant.API_CODE_2001); infoData.setInteId(WhjlConstant.API_CODE_2010); infoData.setUpdateTime(new Date()); infoData.setDataId(data.getZjbzbm()); infoData.setData(JSON.toJSONString(data)); src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2011PR.java
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,172 @@ package com.fzzy.otherview.whhpjl.pr; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONObject; import com.bstek.dorado.annotation.DataProvider; import com.bstek.dorado.annotation.DataResolver; import com.bstek.dorado.annotation.Expose; import com.fzzy.api.Constant; import com.fzzy.api.data.ApiParam; import com.fzzy.api.dto.ResponseDto; import com.fzzy.api.entity.ApiConfs; import com.fzzy.api.entity.ApiInfoData; import com.fzzy.api.service.ApiCommonService; import com.fzzy.api.service.ApiPushManager; 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.ShareApi2003Xs; import com.fzzy.otherview.whhpjl.dto.ShareApi2011Xm; import com.fzzy.otherview.whhpjl.dto.WhjlShareApi2003; import com.fzzy.otherview.whhpjl.dto.WhjlShareApi2011; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import java.util.ArrayList; import java.util.Date; import java.util.List; /** * å ±äº«æ¥å£-计éåä½ * * @author czt */ @Component public class WhjlShareApi2011PR { @Autowired private ApiCommonService apiCommonService; @Autowired private ApiPushManager apiPushManager; @Autowired private ApiInfoDataRep apiInfoDataRep; /** * è·ååè¡¨ä¿¡æ¯ * whjlShareApi2011PR#listData * * @return */ @DataProvider public List<WhjlShareApi2011> listData() { List<ApiInfoData> result = apiInfoDataRep.getDataByInteId(WhjlConstant.API_CODE_2011); if (null == result || result.isEmpty()) { return null; } List<WhjlShareApi2011> list = new ArrayList<>(); WhjlShareApi2011 whjlShareApiData; for (ApiInfoData infoData : result) { whjlShareApiData = JSONObject.parseObject(infoData.getData(), WhjlShareApi2011.class); whjlShareApiData.setKqdm(infoData.getKqdm()); whjlShareApiData.setCzbz(infoData.getCzbz()); whjlShareApiData.setUpdateTime(infoData.getUpdateTime()); list.add(whjlShareApiData); } return list; } /** * è·åè´¨æ£æ åéç¨çåç§ * whjlShareApi2011PR#listItemShareApi2011Xm * * @return */ @DataProvider public List<ShareApi2011Xm> listItemShareApi2011Xm(String code) { return JSON.parseArray(code, ShareApi2011Xm.class); } /** * æ´æ°æä¿®æ¹ * whjlShareApi2011PR#saveData * * @param data * @return */ @DataResolver public void saveData(WhjlShareApi2011 data) { ApiInfoData infoData = new ApiInfoData(); infoData.setId(data.getZjxmbh()); infoData.setKqdm(data.getKqdm()); infoData.setInteType(WhjlConstant.API_CATEGORY_20); infoData.setInteId(WhjlConstant.API_CODE_2011); infoData.setUpdateTime(new Date()); infoData.setDataId(data.getZjxmbh()); infoData.setData(JSON.toJSONString(data)); infoData.setCzbz(data.getCzbz()); infoData.setRemarks("夿³¨ä¿¡æ¯"); apiInfoDataRep.save(infoData); } /** * å é¤ * whjlShareApi2011PR#delData * * @param data * @return */ @Expose public String delData(WhjlShareApi2011 data) { apiInfoDataRep.deleteById(data.getZjxmbh()); return null; } /** * æ´æ°æ°æ® * whjlShareApi2011PR#pullData * * @param items * @return */ @Expose public String pullData(List<WhjlShareApi2011> items) { //è·åé ç½®ä¿¡æ¯ List<ApiConfs> apiConfs = apiCommonService.listCacheConf(); if (null == apiConfs || apiConfs.isEmpty()) { return "ç³»ç»æ²¡æè·åå°åºåºé 置信æ¯ï¼æ§è¡å¤±è´¥"; } ApiRemoteService apiService; ApiParam param; ResponseDto responseDto; ApiInfoData infoData; String result = ""; List<WhjlShareApi2011> 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_2011); responseDto = apiService.pullData(param, apiConf); if (responseDto.getSuccess() == 0) { list = JSONObject.parseArray(responseDto.getData(), WhjlShareApi2011.class); if(null != list && list.size() > 0){ for (WhjlShareApi2011 shareData : list) { shareData.setCzbz(Constant.CZBZ_U); shareData.setZjymqxList(JSON.toJSONString(shareData.getZjymqx())); shareData.setCzbz(Constant.CZBZ_U); infoData = new ApiInfoData(); infoData.setId(shareData.getZjxmbh()); infoData.setKqdm(apiConf.getKqdm()); infoData.setInteType(WhjlConstant.API_CATEGORY_20); infoData.setInteId(WhjlConstant.API_CODE_2011); infoData.setUpdateTime(new Date()); infoData.setDataId(shareData.getZjxmbh()); infoData.setData(JSON.toJSONString(shareData)); infoData.setCzbz(Constant.CZBZ_U); apiInfoDataRep.save(infoData); } } } result += responseDto.toString(); return result; } return null; } } src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2012PR.java
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,169 @@ package com.fzzy.otherview.whhpjl.pr; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONObject; import com.bstek.dorado.annotation.DataProvider; import com.bstek.dorado.annotation.DataResolver; import com.bstek.dorado.annotation.Expose; import com.fzzy.api.Constant; import com.fzzy.api.data.ApiParam; import com.fzzy.api.dto.ResponseDto; import com.fzzy.api.entity.ApiConfs; import com.fzzy.api.entity.ApiInfoData; import com.fzzy.api.service.ApiCommonService; import com.fzzy.api.service.ApiPushManager; 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.ShareApi2012Fa; import com.fzzy.otherview.whhpjl.dto.WhjlShareApi2012; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import java.util.ArrayList; import java.util.Date; import java.util.List; /** * å ±äº«æ¥å£-计éåä½ * * @author czt */ @Component public class WhjlShareApi2012PR { @Autowired private ApiCommonService apiCommonService; @Autowired private ApiPushManager apiPushManager; @Autowired private ApiInfoDataRep apiInfoDataRep; /** * è·ååè¡¨ä¿¡æ¯ * whjlShareApi2012PR#listData * * @return */ @DataProvider public List<WhjlShareApi2012> listData() { List<ApiInfoData> result = apiInfoDataRep.getDataByInteId(WhjlConstant.API_CODE_2012); if (null == result || result.isEmpty()) { return null; } List<WhjlShareApi2012> list = new ArrayList<>(); WhjlShareApi2012 whjlShareApiData; for (ApiInfoData infoData : result) { whjlShareApiData = JSONObject.parseObject(infoData.getData(), WhjlShareApi2012.class); whjlShareApiData.setKqdm(infoData.getKqdm()); whjlShareApiData.setCzbz(infoData.getCzbz()); whjlShareApiData.setUpdateTime(infoData.getUpdateTime()); list.add(whjlShareApiData); } return list; } /** * è·åè´¨æ£æ åéç¨çåç§ * whjlShareApi2012PR#listItemShareApi2012Fa * * @return */ @DataProvider public List<ShareApi2012Fa> listItemShareApi2012Fa(String code) { return JSON.parseArray(code, ShareApi2012Fa.class); } /** * æ´æ°æä¿®æ¹ * whjlShareApi2012PR#saveData * * @param data * @return */ @DataResolver public void saveData(WhjlShareApi2012 data) { ApiInfoData infoData = new ApiInfoData(); infoData.setId(data.getYjfayjhbh()); infoData.setKqdm(data.getKqdm()); infoData.setInteType(WhjlConstant.API_CATEGORY_20); infoData.setInteId(WhjlConstant.API_CODE_2012); infoData.setUpdateTime(new Date()); infoData.setDataId(data.getYjfayjhbh()); infoData.setData(JSON.toJSONString(data)); infoData.setCzbz(data.getCzbz()); infoData.setRemarks("夿³¨ä¿¡æ¯"); apiInfoDataRep.save(infoData); } /** * å é¤ * whjlShareApi2012PR#delData * * @param data * @return */ @Expose public String delData(WhjlShareApi2012 data) { apiInfoDataRep.deleteById(data.getYjfayjhbh()); return null; } /** * æ´æ°æ°æ® * whjlShareApi2012PR#pullData * * @param items * @return */ @Expose public String pullData(List<WhjlShareApi2012> items) { //è·åé ç½®ä¿¡æ¯ List<ApiConfs> apiConfs = apiCommonService.listCacheConf(); if (null == apiConfs || apiConfs.isEmpty()) { return "ç³»ç»æ²¡æè·åå°åºåºé 置信æ¯ï¼æ§è¡å¤±è´¥"; } ApiRemoteService apiService; ApiParam param; ResponseDto responseDto; ApiInfoData infoData; String result = ""; List<WhjlShareApi2012> 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_2012); responseDto = apiService.pullData(param, apiConf); if (responseDto.getSuccess() == 0) { list = JSONObject.parseArray(responseDto.getData(), WhjlShareApi2012.class); if(null != list && list.size() > 0){ for (WhjlShareApi2012 shareData : list) { shareData.setCzbz(Constant.CZBZ_U); shareData.setYjfajgList(JSON.toJSONString(shareData.getYjfajg())); shareData.setCzbz(Constant.CZBZ_U); infoData = new ApiInfoData(); infoData.setId(shareData.getYjfayjhbh()); infoData.setKqdm(apiConf.getKqdm()); infoData.setInteType(WhjlConstant.API_CATEGORY_20); infoData.setInteId(WhjlConstant.API_CODE_2012); infoData.setUpdateTime(new Date()); infoData.setDataId(shareData.getYjfayjhbh()); infoData.setData(JSON.toJSONString(shareData)); infoData.setCzbz(Constant.CZBZ_U); apiInfoDataRep.save(infoData); } } } result += responseDto.toString(); return result; } return null; } }