src/main/java/com/fzzy/otherview/whhpjl/WhjlApi1106.view.xml
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,508 @@ <?xml version="1.0" encoding="UTF-8"?> <ViewConfig> <Arguments/> <Context/> <Model> <DataType name="dtMain"> <Property name="creationType">com.fzzy.otherview.whhpjl.dto.WhjlApi1106</Property> <PropertyDef name="ygbh"> <Property></Property> <Property name="label">æ²¹ç½ç¼å·</Property> </PropertyDef> <PropertyDef name="jlqybh"> <Property></Property> <Property name="label">åç²®ä¼ä¸ç¼å·</Property> </PropertyDef> <PropertyDef name="jlqymc"> <Property></Property> <Property name="label">åç²®ä¼ä¸åç§°</Property> </PropertyDef> <PropertyDef name="jgzdbh"> <Property></Property> <Property name="label">åä¾ç«ç¹ç¼å·</Property> </PropertyDef> <PropertyDef name="jgzdmc"> <Property></Property> <Property name="label">åä¾ç«ç¹åç§°</Property> </PropertyDef> <PropertyDef name="ygmc"> <Property></Property> <Property name="label">æ²¹çåç§°</Property> </PropertyDef> <PropertyDef name="yglx"> <Property></Property> <Property name="label">æ²¹çç±»å</Property> </PropertyDef> <PropertyDef name="ykdj"> <Property></Property> <Property name="label">æ²¹çç级</Property> </PropertyDef> <PropertyDef name="ygor"> <Property name="dataType">Double</Property> <Property name="label">æ²¹ç½æ»å®¹</Property> </PropertyDef> <PropertyDef name="ygzrd1"> <Property name="dataType">Double</Property> <Property name="label">æ²¹ç½ç»å®¹</Property> </PropertyDef> <PropertyDef name="lxdh"> <Property></Property> <Property name="label">èç³»çµè¯</Property> </PropertyDef> <PropertyDef name="cfjd"> <Property name="dataType">Double</Property> <Property name="label">仿¿ç»åº¦</Property> </PropertyDef> <PropertyDef name="cfwd"> <Property name="dataType">Double</Property> <Property name="label">仿¿çº¬åº¦</Property> </PropertyDef> <PropertyDef name="qyrq"> <Property name="dataType">Date</Property> <Property name="label">å¯ç¨æ¥æ</Property> </PropertyDef> <PropertyDef name="ygzt"> <Property></Property> <Property name="label">æ²¹ç½ç¶æ</Property> </PropertyDef> <PropertyDef name="ygsyzt"> <Property></Property> <Property name="label">æ²¹ç½ä½¿ç¨ç¶æ</Property> </PropertyDef> <PropertyDef name="sfyx"> <Property></Property> <Property name="label">æ¯å¦ææ</Property> </PropertyDef> <PropertyDef name="bz"> <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> </PropertyDef> <PropertyDef name="czbz"> <Property></Property> <Property name="label">æä½æ å¿</Property> </PropertyDef> <PropertyDef name="kqdm"> <Property></Property> <Property name="label">åºåºä»£ç </Property> </PropertyDef> </DataType> <DataType name="dtGBArea"> <Property name="creationType">com.fzzy.api.entity.GbArea</Property> <PropertyDef name="code"> <Property></Property> <Property name="label">æ¥å£ç¼ç </Property> </PropertyDef> <PropertyDef name="name"> <Property></Property> <Property name="label">åç§°</Property> </PropertyDef> <PropertyDef name="parentCode"> <Property></Property> <Property name="label">ç¶ç¼ç </Property> </PropertyDef> <PropertyDef name="disabledTag"> <Property></Property> <Property name="label">ç¦ç¨</Property> </PropertyDef> <PropertyDef name="simple"> <Property></Property> <Property name="label">æ¯å¦é»è®¤</Property> </PropertyDef> <PropertyDef name="remark"> <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">whjlApi1106PR#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");
 if(select && select.length > 0){
 view.get("#ajaxPush").set("parameter",select).execute(function(result){
 view.get("#dsMain").flushAsync();
 $notify(result);
 });
 }else{
 $alert("请å¾ééè¦ä¸æ¥çæ°æ®ï¼");
 }</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="ygbh"> <Property name="property">ygbh</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="jlqybh"> <Property name="property">jlqybh</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="jlqymc"> <Property name="property">jlqymc</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="jgzdbh"> <Property name="property">jgzdbh</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="jgzdmc"> <Property name="property">jgzdmc</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="ygmc"> <Property name="property">ygmc</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="yglx"> <Property name="property">yglx</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="lxdh"> <Property name="property">lxdh</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="cfjd"> <Property name="property">cfjd</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="cfwd"> <Property name="property">cfwd</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="qyrq"> <Property name="property">qyrq</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="ygzt"> <Property name="property">ygzt</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="ygsyzt"> <Property name="property">ygsyzt</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="sfyx"> <Property name="property">sfyx</Property> <Property name="align">center</Property> </DataColumn> </DataGrid> </Container> <Dialog id="dialogMain"> <Property name="width">85%</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">top</Property> <Property name="labelSeparator">:</Property> <AutoFormElement> <Property name="name">ygbh</Property> <Property name="property">ygbh</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jlqybh</Property> <Property name="property">jlqybh</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jlqymc</Property> <Property name="property">jlqymc</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jgzdbh</Property> <Property name="property">jgzdbh</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jgzdmc</Property> <Property name="property">jgzdmc</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">ygmc</Property> <Property name="property">ygmc</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">yglx</Property> <Property name="property">yglx</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">ykdj</Property> <Property name="property">ykdj</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">ygor</Property> <Property name="property">ygor</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">ygzrd1</Property> <Property name="property">ygzrd1</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">lxdh</Property> <Property name="property">lxdh</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">cfjd</Property> <Property name="property">cfjd</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">cfwd</Property> <Property name="property">cfwd</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">qyrq</Property> <Property name="property">qyrq</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">ygzt</Property> <Property name="property">ygzt</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">ygsyzt</Property> <Property name="property">ygsyzt</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">sfyx</Property> <Property name="property">sfyx</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">bz</Property> <Property name="property">bz</Property> <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/> </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">whjlApi1106PR#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">whjlApi1106PR#delData</Property> </AjaxAction> <AjaxAction id="ajaxPush"> <Property name="service">whjlApi1106PR#pushData</Property> </AjaxAction> <CustomDropDown id="cddGbArea"> <Property name="assignmentMap">qyxzqhdm=code,qyxzqhmc=name</Property> <Property name="height">500</Property> <Property name="minHeight">500</Property> <Property name="maxHeight">500</Property> <Property name="width">400</Property> <Container layout="regionPadding:5"> <DataSet id="dsGBArea"> <Property name="dataProvider">gbAreaPR#findByCode</Property> <Property name="dataType">[dtGBArea]</Property> </DataSet> <Container layout="hbox regionPadding:5"> <TextEditor id="key2"> <Property name="blankText"> -- ç¼ç æè åç§° --</Property> <Property name="width">200</Property> </TextEditor> <Button> <ClientEvent name="onClick">var key = view.get("#key2.value");
 view.get("#dsGBArea").set("parameter",{key:key}).flushAsync();</ClientEvent> <Property name="iconClass">fa fa-search</Property> <Property name="caption">æ¥è¯¢</Property> </Button> <Button> <ClientEvent name="onClick">var data = view.get("#dsGBArea.data:#");
 if (data) {
 view.get("#cddGbArea").close(data.toJSON());
 }</ClientEvent> <Property name="caption">ç¡®å®</Property> <Property name="iconClass">fa fa-check</Property> </Button> </Container> <DataGrid> <ClientEvent name="onDataRowDoubleClick">var data = view.get("#dsGBArea.data:#");
 if(data){
 view.get("#cddGbArea").close(data.toJSON());
 }</ClientEvent> <Property name="dataSet">dsGBArea</Property> <Property name="readOnly">true</Property> <DataColumn name="code"> <Property name="property">code</Property> </DataColumn> <DataColumn name="name"> <Property name="property">name</Property> </DataColumn> </DataGrid> </Container> </CustomDropDown> <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/WhjlApi1107.view.xml
@@ -134,7 +134,7 @@ <Property name="packages">font-awesome,css-common</Property> <DataSet id="dsMain"> <Property name="dataType">[dtMain]</Property> <Property name="dataProvider">WhjlApi1107PR#listData</Property> <Property name="dataProvider">whjlApi1107PR#listData</Property> </DataSet> <Container layout="regionPadding:10" layoutConstraint="top"> <Property name="exClassName">bg-color</Property> @@ -429,7 +429,7 @@ <Tools/> </Dialog> <UpdateAction id="updateSave"> <Property name="dataResolver">WhjlApi1107PR#saveData</Property> <Property name="dataResolver">whjlApi1107PR#saveData</Property> <UpdateItem> <Property name="dataPath">[#current]</Property> <Property name="dataSet">dsMain</Property> @@ -437,10 +437,10 @@ </UpdateAction> <AjaxAction id="ajaxDel"> <Property name="confirmMessage">å½åæ°æ®å é¤åæ æ³æ¢å¤ï¼è¯·ç¡®è®¤è¦å é¤ä¹ï¼</Property> <Property name="service">WhjlApi1107PR#delData</Property> <Property name="service">whjlApi1107PR#delData</Property> </AjaxAction> <AjaxAction id="ajaxPush"> <Property name="service">WhjlApi1107PR#pushData</Property> <Property name="service">whjlApi1107PR#pushData</Property> </AjaxAction> <Dialog id="dialogLog"> <Property name="width">90%</Property> src/main/java/com/fzzy/otherview/whhpjl/WhjlApi1108.view.xml
@@ -118,7 +118,7 @@ <Property name="packages">font-awesome,css-common</Property> <DataSet id="dsMain"> <Property name="dataType">[dtMain]</Property> <Property name="dataProvider">WhjlApi1108PR#listData</Property> <Property name="dataProvider">whjlApi1108PR#listData</Property> </DataSet> <Container layout="regionPadding:10" layoutConstraint="top"> <Property name="exClassName">bg-color</Property> @@ -384,7 +384,7 @@ <Tools/> </Dialog> <UpdateAction id="updateSave"> <Property name="dataResolver">WhjlApi1108PR#saveData</Property> <Property name="dataResolver">whjlApi1108PR#saveData</Property> <UpdateItem> <Property name="dataPath">[#current]</Property> <Property name="dataSet">dsMain</Property> @@ -392,10 +392,10 @@ </UpdateAction> <AjaxAction id="ajaxDel"> <Property name="confirmMessage">å½åæ°æ®å é¤åæ æ³æ¢å¤ï¼è¯·ç¡®è®¤è¦å é¤ä¹ï¼</Property> <Property name="service">WhjlApi1108PR#delData</Property> <Property name="service">whjlApi1108PR#delData</Property> </AjaxAction> <AjaxAction id="ajaxPush"> <Property name="service">WhjlApi1108PR#pushData</Property> <Property name="service">whjlApi1108PR#pushData</Property> </AjaxAction> <Dialog id="dialogLog"> <Property name="width">90%</Property> src/main/java/com/fzzy/otherview/whhpjl/WhjlApi1201.view.xml
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,737 @@ <?xml version="1.0" encoding="UTF-8"?> <ViewConfig> <Arguments/> <Context/> <Model> <DataType name="dtMain"> <Property name="creationType">com.fzzy.otherview.whhpjl.dto.WhjlApi1201</Property> <PropertyDef name="jljgqybh"> <Property></Property> <Property name="label">å å·¥ä¼ä¸ç¼å·</Property> </PropertyDef> <PropertyDef name="jlqybh"> <Property></Property> <Property name="label">åç²®ä¼ä¸ç¼å·</Property> </PropertyDef> <PropertyDef name="jlqymc"> <Property></Property> <Property name="label">åç²®ä¼ä¸åç§°</Property> </PropertyDef> <PropertyDef name="jgzdbh"> <Property></Property> <Property name="label">åä¾ç«ç¹ç¼å·</Property> </PropertyDef> <PropertyDef name="jgzdmc"> <Property></Property> <Property name="label">åä¾ç«ç¹åç§°</Property> </PropertyDef> <PropertyDef name="jljgqymc"> <Property></Property> <Property name="label">å å·¥ä¼ä¸åç§°</Property> </PropertyDef> <PropertyDef name="jljgqyjc"> <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 name="dataType">Double</Property> <Property name="label">ä¼ä¸ç»åº¦</Property> <Property name="displayFormat">#0.000000度</Property> </PropertyDef> <PropertyDef name="qywd"> <Property name="dataType">Double</Property> <Property name="label">ä¼ä¸çº¬åº¦</Property> <Property name="displayFormat">#0.000000度</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 name="dataType">Double</Property> <Property name="label">åºå®èµäº§</Property> <Property name="displayFormat">#0.00ä¸å </Property> </PropertyDef> <PropertyDef name="zczb"> <Property name="dataType">Double</Property> <Property name="label">注åèµæ¬</Property> <Property name="displayFormat">#0.00ä¸å </Property> </PropertyDef> <PropertyDef name="zc"> <Property name="dataType">Double</Property> <Property name="label">èµäº§</Property> <Property name="displayFormat">#0.00ä¸å </Property> </PropertyDef> <PropertyDef name="qycyrys"> <Property name="dataType">int</Property> <Property name="label">ä¼ä¸ä»ä¸äººåæ°</Property> <Property name="displayFormat">#0人</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="bz"> <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> </PropertyDef> <PropertyDef name="czbz"> <Property></Property> <Property name="label">æä½æ å¿</Property> </PropertyDef> <PropertyDef name="kqdm"> <Property></Property> <Property name="label">åºåºä»£ç </Property> </PropertyDef> </DataType> <DataType name="dtGBArea"> <Property name="creationType">com.fzzy.api.entity.GbArea</Property> <PropertyDef name="code"> <Property></Property> <Property name="label">æ¥å£ç¼ç </Property> </PropertyDef> <PropertyDef name="name"> <Property></Property> <Property name="label">åç§°</Property> </PropertyDef> <PropertyDef name="parentCode"> <Property></Property> <Property name="label">ç¶ç¼ç </Property> </PropertyDef> <PropertyDef name="disabledTag"> <Property></Property> <Property name="label">ç¦ç¨</Property> </PropertyDef> <PropertyDef name="simple"> <Property></Property> <Property name="label">æ¯å¦é»è®¤</Property> </PropertyDef> <PropertyDef name="remark"> <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">whjlApi1201PR#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");
 if(select && select.length > 0){
 view.get("#ajaxPush").set("parameter",select).execute(function(result){
 view.get("#dsMain").flushAsync();
 $notify(result);
 });
 }else{
 $alert("请å¾ééè¦ä¸æ¥çæ°æ®ï¼");
 }</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="jlqymc"> <Property name="property">jlqymc</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="jgzdmc"> <Property name="property">jgzdmc</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="jljgqymc"> <Property name="property">jljgqymc</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="jljgqyjc"> <Property name="property">jljgqyjc</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="zzjgdm"> <Property name="property">zzjgdm</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="qyjjlx"> <Property name="property">qyjjlx</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="qyxz"> <Property name="property">qyxz</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="djzclx"> <Property name="property">djzclx</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="gsdjzch"> <Property name="property">gsdjzch</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="fddbr"> <Property name="property">fddbr</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="qydz"> <Property name="property">qydz</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="qydh"> <Property name="property">qydh</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="qycz"> <Property name="property">qycz</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="qydzyx"> <Property name="property">qydzyx</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="qywz"> <Property name="property">qywz</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="qyjd"> <Property name="property">qyjd</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="qywd"> <Property name="property">qywd</Property> <Property name="align">center</Property> </DataColumn> </DataGrid> </Container> <Dialog id="dialogMain"> <Property name="width">85%</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> <AutoForm> <Property name="dataSet">dsMain</Property> <Property name="cols">*,*,*,*</Property> <Property name="labelPosition">top</Property> <Property name="labelSeparator">:</Property> <AutoFormElement> <Property name="name">jljgqybh</Property> <Property name="property">jljgqybh</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jlqybh</Property> <Property name="property">jlqybh</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jlqymc</Property> <Property name="property">jlqymc</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jgzdbh</Property> <Property name="property">jgzdbh</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jgzdmc</Property> <Property name="property">jgzdmc</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jljgqymc</Property> <Property name="property">jljgqymc</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jljgqyjc</Property> <Property name="property">jljgqyjc</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> <Property name="trigger">cddGbArea</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">qyxzqhdm</Property> <Property name="property">qyxzqhdm</Property> <Property name="trigger">cddGbArea</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> <Property name="trigger">listDropYN</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">bz</Property> <Property name="property">bz</Property> <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/> </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">whjlApi1201PR#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">whjlApi1201PR#delData</Property> </AjaxAction> <AjaxAction id="ajaxPush"> <Property name="service">whjlApi1201PR#pushData</Property> </AjaxAction> <CustomDropDown id="cddGbArea"> <Property name="assignmentMap">qyxzqhdm=code,qyxzqhmc=name</Property> <Property name="height">500</Property> <Property name="minHeight">500</Property> <Property name="maxHeight">500</Property> <Property name="width">400</Property> <Container layout="regionPadding:5"> <DataSet id="dsGBArea"> <Property name="dataProvider">gbAreaPR#findByCode</Property> <Property name="dataType">[dtGBArea]</Property> </DataSet> <Container layout="hbox regionPadding:5"> <TextEditor id="key2"> <Property name="blankText"> -- ç¼ç æè åç§° --</Property> <Property name="width">200</Property> </TextEditor> <Button> <ClientEvent name="onClick">var key = view.get("#key2.value");
 view.get("#dsGBArea").set("parameter",{key:key}).flushAsync();</ClientEvent> <Property name="iconClass">fa fa-search</Property> <Property name="caption">æ¥è¯¢</Property> </Button> <Button> <ClientEvent name="onClick">var data = view.get("#dsGBArea.data:#");
 if (data) {
 view.get("#cddGbArea").close(data.toJSON());
 }</ClientEvent> <Property name="caption">ç¡®å®</Property> <Property name="iconClass">fa fa-check</Property> </Button> </Container> <DataGrid> <ClientEvent name="onDataRowDoubleClick">var data = view.get("#dsGBArea.data:#");
 if(data){
 view.get("#cddGbArea").close(data.toJSON());
 }</ClientEvent> <Property name="dataSet">dsGBArea</Property> <Property name="readOnly">true</Property> <DataColumn name="code"> <Property name="property">code</Property> </DataColumn> <DataColumn name="name"> <Property name="property">name</Property> </DataColumn> </DataGrid> </Container> </CustomDropDown> <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/WhjlApi1202.view.xml
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,421 @@ <?xml version="1.0" encoding="UTF-8"?> <ViewConfig> <Arguments/> <Context/> <Model> <DataType name="dtMain"> <Property name="creationType">com.fzzy.otherview.whhpjl.dto.WhjlApi1202</Property> <PropertyDef name="jlppbh"> <Property></Property> <Property name="label">åç²®åçç¼å·</Property> </PropertyDef> <PropertyDef name="jlqybh"> <Property></Property> <Property name="label">åç²®ä¼ä¸ç¼å·</Property> </PropertyDef> <PropertyDef name="jlqymc"> <Property></Property> <Property name="label">åç²®ä¼ä¸åç§°</Property> </PropertyDef> <PropertyDef name="jgzdbh"> <Property></Property> <Property name="label">åä¾ç«ç¹ç¼å·</Property> </PropertyDef> <PropertyDef name="jgzdmc"> <Property></Property> <Property name="label">åä¾ç«ç¹åç§°</Property> </PropertyDef> <PropertyDef name="jljgqybh"> <Property></Property> <Property name="label">å å·¥ä¼ä¸ç¼å·</Property> </PropertyDef> <PropertyDef name="jljgqymc"> <Property></Property> <Property name="label">å å·¥ä¼ä¸åç§°</Property> </PropertyDef> <PropertyDef name="jlppmc"> <Property></Property> <Property name="label">åç²®åçåç§°</Property> </PropertyDef> <PropertyDef name="jlppmcjc"> <Property></Property> <Property name="label">åç²®åçç®ç§°</Property> </PropertyDef> <PropertyDef name="sfyx"> <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> </PropertyDef> <PropertyDef name="czbz"> <Property></Property> <Property name="label">æä½æ å¿</Property> </PropertyDef> <PropertyDef name="kqdm"> <Property></Property> <Property name="label">åºåºä»£ç </Property> </PropertyDef> </DataType> <DataType name="dtGBArea"> <Property name="creationType">com.fzzy.api.entity.GbArea</Property> <PropertyDef name="code"> <Property></Property> <Property name="label">æ¥å£ç¼ç </Property> </PropertyDef> <PropertyDef name="name"> <Property></Property> <Property name="label">åç§°</Property> </PropertyDef> <PropertyDef name="parentCode"> <Property></Property> <Property name="label">ç¶ç¼ç </Property> </PropertyDef> <PropertyDef name="disabledTag"> <Property></Property> <Property name="label">ç¦ç¨</Property> </PropertyDef> <PropertyDef name="simple"> <Property></Property> <Property name="label">æ¯å¦é»è®¤</Property> </PropertyDef> <PropertyDef name="remark"> <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">whjlApi1202PR#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");
 if(select && select.length > 0){
 view.get("#ajaxPush").set("parameter",select).execute(function(result){
 view.get("#dsMain").flushAsync();
 $notify(result);
 });
 }else{
 $alert("请å¾ééè¦ä¸æ¥çæ°æ®ï¼");
 }</ClientEvent> <Property name="caption">æå¨ä¸ä¼ </Property> <Property name="iconClass">fa fa-hand-o-up</Property> <Property name="exClassName">btn-default</Property> </Button> <Button layoutConstraint="right"> <ClientEvent name="onClick">//æ¾ç¤ºè®°å½
 view.get("#iFrame").reload();
 view.get("#dialogLog").show();</ClientEvent> <Property name="caption">ä¸ä¼ è®°å½</Property> <Property name="iconClass">fa fa-bars</Property> <Property name="exClassName">btn-flush</Property> </Button> </Container> <Container layoutConstraint="center"> <Property name="exClassName">bg-color</Property> <DataGrid id="dgMain"> <ClientEvent name="onDataRowDoubleClick">var data = view.get("#dsMain.data:#");
 if(data){
 view.get("#dialogMain").show();
 }</ClientEvent> <Property name="dataSet">dsMain</Property> <Property name="selectionMode">multiRows</Property> <Property name="readOnly">true</Property> <RowNumColumn/> <RowSelectorColumn> <Property name="caption">ä¸ä¼ </Property> </RowSelectorColumn> <DataColumn name="jlppbh"> <Property name="property">jlppbh</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="jlqybh"> <Property name="property">jlqybh</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="jlqymc"> <Property name="property">jlqymc</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="jgzdbh"> <Property name="property">jgzdbh</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="jgzdmc"> <Property name="property">jgzdmc</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="jljgqybh"> <Property name="property">jljgqybh</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="jljgqymc"> <Property name="property">jljgqymc</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="jlppmc"> <Property name="property">jlppmc</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="jlppmcjc"> <Property name="property">jlppmcjc</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="sfyx"> <Property name="property">sfyx</Property> <Property name="align">center</Property> <Property name="trigger">listDropYN</Property> </DataColumn> </DataGrid> </Container> <Dialog id="dialogMain"> <Property name="width">85%</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">top</Property> <Property name="labelSeparator">:</Property> <AutoFormElement> <Property name="name">jlppbh</Property> <Property name="property">jlppbh</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jlqybh</Property> <Property name="property">jlqybh</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jlqymc</Property> <Property name="property">jlqymc</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jgzdbh</Property> <Property name="property">jgzdbh</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jgzdmc</Property> <Property name="property">jgzdmc</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jljgqybh</Property> <Property name="property">jljgqybh</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jljgqymc</Property> <Property name="property">jljgqymc</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jlppmc</Property> <Property name="property">jlppmc</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jlppmcjc</Property> <Property name="property">jlppmcjc</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">sfyx</Property> <Property name="property">sfyx</Property> <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/> </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">whjlApi1202PR#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">whjlApi1202PR#delData</Property> </AjaxAction> <AjaxAction id="ajaxPush"> <Property name="service">whjlApi1202PR#pushData</Property> </AjaxAction> <CustomDropDown id="cddGbArea"> <Property name="assignmentMap">qyxzqhdm=code,qyxzqhmc=name</Property> <Property name="height">500</Property> <Property name="minHeight">500</Property> <Property name="maxHeight">500</Property> <Property name="width">400</Property> <Container layout="regionPadding:5"> <DataSet id="dsGBArea"> <Property name="dataProvider">gbAreaPR#findByCode</Property> <Property name="dataType">[dtGBArea]</Property> </DataSet> <Container layout="hbox regionPadding:5"> <TextEditor id="key2"> <Property name="blankText"> -- ç¼ç æè åç§° --</Property> <Property name="width">200</Property> </TextEditor> <Button> <ClientEvent name="onClick">var key = view.get("#key2.value");
 view.get("#dsGBArea").set("parameter",{key:key}).flushAsync();</ClientEvent> <Property name="iconClass">fa fa-search</Property> <Property name="caption">æ¥è¯¢</Property> </Button> <Button> <ClientEvent name="onClick">var data = view.get("#dsGBArea.data:#");
 if (data) {
 view.get("#cddGbArea").close(data.toJSON());
 }</ClientEvent> <Property name="caption">ç¡®å®</Property> <Property name="iconClass">fa fa-check</Property> </Button> </Container> <DataGrid> <ClientEvent name="onDataRowDoubleClick">var data = view.get("#dsGBArea.data:#");
 if(data){
 view.get("#cddGbArea").close(data.toJSON());
 }</ClientEvent> <Property name="dataSet">dsGBArea</Property> <Property name="readOnly">true</Property> <DataColumn name="code"> <Property name="property">code</Property> </DataColumn> <DataColumn name="name"> <Property name="property">name</Property> </DataColumn> </DataGrid> </Container> </CustomDropDown> <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/WhjlApi1203.view.xml
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,844 @@ <?xml version="1.0" encoding="UTF-8"?> <ViewConfig> <Arguments/> <Context/> <Model> <DataType name="dtMain"> <Property name="creationType">com.fzzy.otherview.whhpjl.dto.WhjlApi1203</Property> <PropertyDef name="cpbh"> <Property></Property> <Property name="label">产åç¼å·</Property> </PropertyDef> <PropertyDef name="jlqybh"> <Property></Property> <Property name="label">åç²®ä¼ä¸ç¼å·</Property> </PropertyDef> <PropertyDef name="jlqymc"> <Property></Property> <Property name="label">åç²®ä¼ä¸åç§°</Property> </PropertyDef> <PropertyDef name="jgzdbh"> <Property></Property> <Property name="label">åä¾ç«ç¹ç¼å·</Property> </PropertyDef> <PropertyDef name="jgzdmc"> <Property></Property> <Property name="label">åä¾ç«ç¹åç§°</Property> </PropertyDef> <PropertyDef name="jljgqybh"> <Property></Property> <Property name="label">å å·¥ä¼ä¸ç¼å·</Property> </PropertyDef> <PropertyDef name="jlppid"> <Property></Property> <Property name="label">åçID</Property> </PropertyDef> <PropertyDef name="jlppmc"> <Property></Property> <Property name="label">åçåç§°</Property> </PropertyDef> <PropertyDef name="lspzbm"> <Property></Property> <Property name="label">åç§ç¼å·</Property> <Property name="mapping"> <Property name="keyProperty">key</Property> <Property name="valueProperty">value</Property> <Property name="mapValues"> <Collection> <Entity> <Property name="key">1</Property> <Property name="value">1ï¼å¤§ç±³</Property> </Entity> <Entity> <Property name="key">2</Property> <Property name="value">2ï¼å°éº¦ç²</Property> </Entity> <Entity> <Property name="key">3</Property> <Property name="value">3ï¼é£ç¨æ²¹</Property> </Entity> <Entity> <Property name="key">4</Property> <Property name="value">4ï¼è</Property> </Entity> <Entity> <Property name="key">5</Property> <Property name="value">5ï¼ç¦½</Property> </Entity> <Entity> <Property name="key">6</Property> <Property name="value">6ï¼è</Property> </Entity> <Entity> <Property name="key">7</Property> <Property name="value">7ï¼å¥¶</Property> </Entity> <Entity> <Property name="key">8</Property> <Property name="value">8ï¼è¬è</Property> </Entity> <Entity> <Property name="key">9</Property> <Property name="value">9ï¼æ°´æ</Property> </Entity> <Entity> <Property name="key">A</Property> <Property name="value">Aï¼å¤§è±</Property> </Entity> </Collection> </Property> </Property> </PropertyDef> <PropertyDef name="lspzmc"> <Property></Property> <Property name="label">åç§åç§°</Property> </PropertyDef> <PropertyDef name="cpmc"> <Property></Property> <Property name="label">产ååç§°</Property> </PropertyDef> <PropertyDef name="pzdj"> <Property></Property> <Property name="label">产åç级</Property> </PropertyDef> <PropertyDef name="jldwbm"> <Property></Property> <Property name="label">计éåä½ç¼å·</Property> </PropertyDef> <PropertyDef name="jldwmc"> <Property></Property> <Property name="label">计éåä½åç§°</Property> </PropertyDef> <PropertyDef name="jsdwbm"> <Property></Property> <Property name="label">计æ°åä½ç¼ç </Property> </PropertyDef> <PropertyDef name="jsdwmc"> <Property></Property> <Property name="label">计æ°åä½åç§°</Property> </PropertyDef> <PropertyDef name="bzfsbm"> <Property></Property> <Property name="label">å è£ æ¹å¼ç¼ç </Property> </PropertyDef> <PropertyDef name="bzfsmc"> <Property></Property> <Property name="label">å è£ æ¹å¼åç§°</Property> </PropertyDef> <PropertyDef name="bzgg"> <Property name="dataType">Double</Property> <Property name="label">å è£ è§æ ¼</Property> <Property name="displayFormat">#0.00000å ¬æ¤/å</Property> </PropertyDef> <PropertyDef name="hsgg"> <Property name="dataType">Double</Property> <Property name="label">计æ°è§æ ¼</Property> <Property name="defaultValue">1</Property> </PropertyDef> <PropertyDef name="sccj"> <Property></Property> <Property name="label">ç产åå®¶</Property> </PropertyDef> <PropertyDef name="cplx"> <Property></Property> <Property name="label">产åç±»å</Property> </PropertyDef> <PropertyDef name="bzq"> <Property></Property> <Property name="label">ä¿è´¨æ</Property> </PropertyDef> <PropertyDef name="cd"> <Property></Property> <Property name="label">产å°</Property> </PropertyDef> <PropertyDef name="scrq"> <Property name="dataType">Date</Property> <Property name="label">çäº§æ¥æ</Property> </PropertyDef> <PropertyDef name="lxr"> <Property></Property> <Property name="label">è系人</Property> </PropertyDef> <PropertyDef name="dh"> <Property></Property> <Property name="label">çµè¯</Property> </PropertyDef> <PropertyDef name="cz"> <Property></Property> <Property name="label">ä¼ ç</Property> </PropertyDef> <PropertyDef name="email"> <Property></Property> <Property name="label">çµåé®ä»¶</Property> </PropertyDef> <PropertyDef name="qq"> <Property></Property> <Property name="label">QQ</Property> </PropertyDef> <PropertyDef name="qygk"> <Property></Property> <Property name="label">ä¼ä¸æ¦åµ</Property> </PropertyDef> <PropertyDef name="cpjs"> <Property></Property> <Property name="label">产åä»ç»</Property> </PropertyDef> <PropertyDef name="yyzz"> <Property></Property> <Property name="label">è¥ä¸æ§ç §</Property> </PropertyDef> <PropertyDef name="zzjgdmz"> <Property></Property> <Property name="label">ç»ç»æºæä»£ç è¯</Property> </PropertyDef> <PropertyDef name="swdjz"> <Property></Property> <Property name="label">ç¨å¡ç»è®°è¯</Property> </PropertyDef> <PropertyDef name="spltxkz"> <Property></Property> <Property name="label">é£åæµé许å¯è¯</Property> </PropertyDef> <PropertyDef name="ybnsrzgz"> <Property></Property> <Property name="label">ä¸è¬çº³ç¨äººèµæ ¼è¯æ</Property> </PropertyDef> <PropertyDef name="sjgzx"> <Property></Property> <Property name="label">å¸åä¾ä¸å¿å®¡æ ¸æè§</Property> </PropertyDef> <PropertyDef name="jlfwgs"> <Property></Property> <Property name="label">åç²®æå¡æéå ¬å¸å®¡æ ¸æè§</Property> </PropertyDef> <PropertyDef name="sjgzxyj"> <Property></Property> <Property name="label">çåä¾ä¸å¿æè§</Property> </PropertyDef> <PropertyDef name="yjcd"> <Property></Property> <Property name="label">åä»¶åæ¡£</Property> </PropertyDef> <PropertyDef name="dj"> <Property name="dataType">Double</Property> <Property name="label">åä»·</Property> <Property name="displayFormat">#0.000</Property> </PropertyDef> <PropertyDef name="scxkz"> <Property></Property> <Property name="label">ç产许å¯è¯å·</Property> </PropertyDef> <PropertyDef name="jggy"> <Property></Property> <Property name="label">å 工工èº</Property> </PropertyDef> <PropertyDef name="zlxx"> <Property></Property> <Property name="label">è´¨éä¿¡æ¯</Property> </PropertyDef> <PropertyDef name="yyxx"> <Property></Property> <Property name="label">è¥å »ä¿¡æ¯</Property> </PropertyDef> <PropertyDef name="lsyjrz"> <Property></Property> <Property name="label">ç»¿è²ææºè®¤è¯</Property> </PropertyDef> <PropertyDef name="nscl"> <Property></Property> <Property name="label">å¹´ç产é</Property> </PropertyDef> <PropertyDef name="sfyx"> <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> </PropertyDef> <PropertyDef name="czbz"> <Property></Property> <Property name="label">æä½æ å¿</Property> </PropertyDef> <PropertyDef name="kqdm"> <Property></Property> <Property name="label">åºåºä»£ç </Property> </PropertyDef> </DataType> <DataType name="dtGBArea"> <Property name="creationType">com.fzzy.api.entity.GbArea</Property> <PropertyDef name="code"> <Property></Property> <Property name="label">æ¥å£ç¼ç </Property> </PropertyDef> <PropertyDef name="name"> <Property></Property> <Property name="label">åç§°</Property> </PropertyDef> <PropertyDef name="parentCode"> <Property></Property> <Property name="label">ç¶ç¼ç </Property> </PropertyDef> <PropertyDef name="disabledTag"> <Property></Property> <Property name="label">ç¦ç¨</Property> </PropertyDef> <PropertyDef name="simple"> <Property></Property> <Property name="label">æ¯å¦é»è®¤</Property> </PropertyDef> <PropertyDef name="remark"> <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">whjlApi1203PR#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");
 if(select && select.length > 0){
 view.get("#ajaxPush").set("parameter",select).execute(function(result){
 view.get("#dsMain").flushAsync();
 $notify(result);
 });
 }else{
 $alert("请å¾ééè¦ä¸æ¥çæ°æ®ï¼");
 }</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="jldwmc"> <Property name="property">jldwmc</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="jsdwmc"> <Property name="property">jsdwmc</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="bzfsmc"> <Property name="property">bzfsmc</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="bzgg"> <Property name="property">bzgg</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="hsgg"> <Property name="property">hsgg</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="sccj"> <Property name="property">sccj</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="cplx"> <Property name="property">cplx</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="bzq"> <Property name="property">bzq</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="cpjs"> <Property name="property">cpjs</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="yyzz"> <Property name="property">yyzz</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="zzjgdmz"> <Property name="property">zzjgdmz</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="swdjz"> <Property name="property">swdjz</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="spltxkz"> <Property name="property">spltxkz</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="ybnsrzgz"> <Property name="property">ybnsrzgz</Property> <Property name="align">center</Property> </DataColumn> </DataGrid> </Container> <Dialog id="dialogMain"> <Property name="width">85%</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> <AutoForm> <Property name="dataSet">dsMain</Property> <Property name="cols">*,*,*,*</Property> <Property name="labelPosition">top</Property> <Property name="labelSeparator">:</Property> <AutoFormElement> <Property name="name">cpbh</Property> <Property name="property">cpbh</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jlqybh</Property> <Property name="property">jlqybh</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jlqymc</Property> <Property name="property">jlqymc</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jgzdbh</Property> <Property name="property">jgzdbh</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jgzdmc</Property> <Property name="property">jgzdmc</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jljgqybh</Property> <Property name="property">jljgqybh</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jlppid</Property> <Property name="property">jlppid</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jlppmc</Property> <Property name="property">jlppmc</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">lspzbm</Property> <Property name="property">lspzbm</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">lspzmc</Property> <Property name="property">lspzmc</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">cpmc</Property> <Property name="property">cpmc</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">pzdj</Property> <Property name="property">pzdj</Property> <Property name="trigger">listDropDJ</Property> <Editor/> </AutoFormElement> <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">jsdwbm</Property> <Property name="property">jsdwbm</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jsdwmc</Property> <Property name="property">jsdwmc</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">bzfsbm</Property> <Property name="property">bzfsbm</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">bzfsmc</Property> <Property name="property">bzfsmc</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">bzgg</Property> <Property name="property">bzgg</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">hsgg</Property> <Property name="property">hsgg</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">sccj</Property> <Property name="property">sccj</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">cplx</Property> <Property name="property">cplx</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">bzq</Property> <Property name="property">bzq</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">cd</Property> <Property name="property">cd</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">scrq</Property> <Property name="property">scrq</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">lxr</Property> <Property name="property">lxr</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">dh</Property> <Property name="property">dh</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">cz</Property> <Property name="property">cz</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">email</Property> <Property name="property">email</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">qq</Property> <Property name="property">qq</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">qygk</Property> <Property name="property">qygk</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">cpjs</Property> <Property name="property">cpjs</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">yyzz</Property> <Property name="property">yyzz</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">zzjgdmz</Property> <Property name="property">zzjgdmz</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">swdjz</Property> <Property name="property">swdjz</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">spltxkz</Property> <Property name="property">spltxkz</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">ybnsrzgz</Property> <Property name="property">ybnsrzgz</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">sjgzx</Property> <Property name="property">sjgzx</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jlfwgs</Property> <Property name="property">jlfwgs</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">sjgzxyj</Property> <Property name="property">sjgzxyj</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">yjcd</Property> <Property name="property">yjcd</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">dj</Property> <Property name="property">dj</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">scxkz</Property> <Property name="property">scxkz</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jggy</Property> <Property name="property">jggy</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">zlxx</Property> <Property name="property">zlxx</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">yyxx</Property> <Property name="property">yyxx</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">lsyjrz</Property> <Property name="property">lsyjrz</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">nscl</Property> <Property name="property">nscl</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">sfyx</Property> <Property name="property">sfyx</Property> <Property name="trigger">listDropYN</Property> <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/> </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">whjlApi1203PR#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">whjlApi1203PR#delData</Property> </AjaxAction> <AjaxAction id="ajaxPush"> <Property name="service">whjlApi1203PR#pushData</Property> </AjaxAction> <CustomDropDown id="cddGbArea"> <Property name="assignmentMap">qyxzqhdm=code,qyxzqhmc=name</Property> <Property name="height">500</Property> <Property name="minHeight">500</Property> <Property name="maxHeight">500</Property> <Property name="width">400</Property> <Container layout="regionPadding:5"> <DataSet id="dsGBArea"> <Property name="dataProvider">gbAreaPR#findByCode</Property> <Property name="dataType">[dtGBArea]</Property> </DataSet> <Container layout="hbox regionPadding:5"> <TextEditor id="key2"> <Property name="blankText"> -- ç¼ç æè åç§° --</Property> <Property name="width">200</Property> </TextEditor> <Button> <ClientEvent name="onClick">var key = view.get("#key2.value");
 view.get("#dsGBArea").set("parameter",{key:key}).flushAsync();</ClientEvent> <Property name="iconClass">fa fa-search</Property> <Property name="caption">æ¥è¯¢</Property> </Button> <Button> <ClientEvent name="onClick">var data = view.get("#dsGBArea.data:#");
 if (data) {
 view.get("#cddGbArea").close(data.toJSON());
 }</ClientEvent> <Property name="caption">ç¡®å®</Property> <Property name="iconClass">fa fa-check</Property> </Button> </Container> <DataGrid> <ClientEvent name="onDataRowDoubleClick">var data = view.get("#dsGBArea.data:#");
 if(data){
 view.get("#cddGbArea").close(data.toJSON());
 }</ClientEvent> <Property name="dataSet">dsGBArea</Property> <Property name="readOnly">true</Property> <DataColumn name="code"> <Property name="property">code</Property> </DataColumn> <DataColumn name="name"> <Property name="property">name</Property> </DataColumn> </DataGrid> </Container> </CustomDropDown> <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> <ListDropDown id="listDropDJ"> <Property name="items">ä¸çº§,äºçº§,ä¸çº§,å级,äºçº§,å ¶ä»</Property> </ListDropDown> </View> </ViewConfig> src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlApi1106.java
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,53 @@ package com.fzzy.otherview.whhpjl.dto; import com.alibaba.fastjson.annotation.JSONField; import lombok.Data; import lombok.EqualsAndHashCode; import java.io.Serializable; import java.util.Date; /** * @Author: YYC * @Description: * @DateTime: 2023-10-25 14:04 **/ @Data @EqualsAndHashCode(callSuper = false) public class WhjlApi1106 implements Serializable { /** * */ private static final long serialVersionUID = 1L; private String ygbh;//æ²¹ç½ç¼å· private String jlqybh;//åç²®ä¼ä¸ç¼å· private String jlqymc;//åç²®ä¼ä¸åç§° private String jgzdbh;//åä¾ç«ç¹ç¼å· private String jgzdmc;//åä¾ç«ç¹åç§° private String ygmc;//æ²¹çåç§° private String yglx;//æ²¹çç±»å private String ykdj;//æ²¹çç级 private Double ygor;//æ²¹ç½æ»å®¹ private Double ygzrd1;//æ²¹ç½ç»å®¹ private String lxdh;//èç³»çµè¯ private Double cfjd;//仿¿ç»åº¦ private Double cfwd;//仿¿çº¬åº¦ @JSONField(format = "yyyy-MM-dd") private Date qyrq;//å¯ç¨æ¥æ private String ygzt;//æ²¹ç½ç¶æ private String ygsyzt;//æ²¹ç½ä½¿ç¨ç¶æ private String sfyx;//æ¯å¦ææ private String bz;//夿³¨ //åç¬å¢å ï¼ä¸è¿è¡ä¸ä¼ @JSONField(serialize = false) private String bizId; //ä¸å¡ID @JSONField(serialize = false) private Date updateTime; //æåæ´æ°æ¶é´ @JSONField(serialize = false) private String czbz; //æä½æ å¿ @JSONField(serialize = false) private String kqdm; //åºåºä»£ç } src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlApi1201.java
@@ -1,9 +1,11 @@ package com.fzzy.otherview.whhpjl.dto; import com.alibaba.fastjson.annotation.JSONField; import lombok.Data; import lombok.EqualsAndHashCode; import java.io.Serializable; import java.util.Date; /** * @Author: YYC @@ -62,4 +64,14 @@ private String bz; //夿³¨ //åç¬å¢å ï¼ä¸è¿è¡ä¸ä¼ @JSONField(serialize = false) private String bizId; //ä¸å¡ID @JSONField(serialize = false) private Date updateTime; //æåæ´æ°æ¶é´ @JSONField(serialize = false) private String czbz; //æä½æ å¿ @JSONField(serialize = false) private String kqdm; //åºåºä»£ç } src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlApi1202.java
@@ -1,9 +1,11 @@ package com.fzzy.otherview.whhpjl.dto; import com.alibaba.fastjson.annotation.JSONField; import lombok.Data; import lombok.EqualsAndHashCode; import java.io.Serializable; import java.util.Date; /** * @Author: YYC @@ -29,4 +31,15 @@ private String jlppmc; //åç²®åçåç§° private String jlppmcjc; //åç²®åçç®ç§° private String sfyx; //æ¯å¦ææ //åç¬å¢å ï¼ä¸è¿è¡ä¸ä¼ @JSONField(serialize = false) private String bizId; //ä¸å¡ID @JSONField(serialize = false) private Date updateTime; //æåæ´æ°æ¶é´ @JSONField(serialize = false) private String czbz; //æä½æ å¿ @JSONField(serialize = false) private String kqdm; //åºåºä»£ç } src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlApi1203.java
@@ -72,4 +72,14 @@ private String nscl; //å¹´ç产é private String sfyx; //æ¯å¦ææ //åç¬å¢å ï¼ä¸è¿è¡ä¸ä¼ @JSONField(serialize = false) private String bizId; //ä¸å¡ID @JSONField(serialize = false) private Date updateTime; //æåæ´æ°æ¶é´ @JSONField(serialize = false) private String czbz; //æä½æ å¿ @JSONField(serialize = false) private String kqdm; //åºåºä»£ç } src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlApi1106PR.java
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,154 @@ 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.WhjlApi1106; 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: YYC * @Description:æ²¹ç½ä¿¡æ¯ * @DateTime: 2023-10-25 14:13 **/ @Component public class WhjlApi1106PR { @Autowired private ApiCommonService apiCommonService; @Autowired private ApiPushManager apiPushManager; @Autowired private ApiInfoDataRep apiInfoDataRep; /** * è·ååè¡¨ä¿¡æ¯ * WhjlApi1106PR#listData * * @return */ @DataProvider public List<WhjlApi1106> listData() { List<ApiInfoData> result = apiInfoDataRep.getDataByInteId(WhjlConstant.API_CODE_1106); if (null == result || result.isEmpty()) { return null; } List<WhjlApi1106> list = new ArrayList<>(); WhjlApi1106 whjlApi1106; for (ApiInfoData infoData : result) { whjlApi1106 = JSONObject.parseObject(infoData.getData(), WhjlApi1106.class); whjlApi1106.setKqdm(infoData.getKqdm()); whjlApi1106.setCzbz(infoData.getCzbz()); whjlApi1106.setUpdateTime(infoData.getUpdateTime()); whjlApi1106.setBizId(infoData.getDataId()); list.add(whjlApi1106); } return list; } /** * æ´æ°æä¿®æ¹ * WhjlApi1106PR#saveData * * @param data * @return */ @DataResolver public void saveData(WhjlApi1106 data) { ApiInfoData infoData = new ApiInfoData(); infoData.setId(data.getBizId()); infoData.setKqdm(data.getKqdm()); infoData.setInteType(WhjlConstant.API_CATEGORY_11); infoData.setInteId(WhjlConstant.API_CODE_1106); infoData.setUpdateTime(new Date()); infoData.setDataId(data.getBizId()); infoData.setData(JSON.toJSONString(data)); infoData.setCzbz(data.getCzbz()); infoData.setRemarks("夿³¨ä¿¡æ¯"); apiInfoDataRep.save(infoData); } /** * å é¤ * WhjlApi1106PR#delData * * @param data * @return */ @Expose public String delData(WhjlApi1106 data) { apiInfoDataRep.deleteById(data.getBizId()); return null; } /** * ä¸ä¼ * WhjlApi1106PR#pushData * * @param items * @return */ @Expose public String pushData(List<WhjlApi1106> items) { String result = ""; String kqdm = items.get(0).getKqdm(); ApiConfs apiConf = apiCommonService.getConf(kqdm); if (null == apiConf) { return "ç³»ç»æ²¡æè·åå°å½ååºåºé 置信æ¯ï¼æ§è¡å¤±è´¥"; } //å°è£ åæ° ApiParam param = new ApiParam(apiConf, WhjlConstant.API_CATEGORY_11, WhjlConstant.API_CODE_1106); //è·åå®ç°æ¥å£ ApiRemoteService apiService = apiPushManager.getApiRemoteService(param.getPushProtocol()); if (null == apiService) { return "ç³»ç»æ²¡æå½åæ¨éåè®®é ç½®ï¼æ§è¡å¤±è´¥"; } ResponseDto responseDto; ApiInfoData infoData; for (WhjlApi1106 data : items) { responseDto = apiService.pushData(param, apiConf, items); if (responseDto.getSuccess() == 0) { if (Constant.CZBZ_I.equals(data.getCzbz())) { infoData = new ApiInfoData(); infoData.setId(data.getBizId()); infoData.setKqdm(data.getKqdm()); infoData.setInteType(WhjlConstant.API_CATEGORY_11); infoData.setInteId(WhjlConstant.API_CODE_1106); infoData.setUpdateTime(new Date()); infoData.setDataId(data.getBizId()); data.setCzbz(Constant.CZBZ_U); infoData.setCzbz(Constant.CZBZ_U); infoData.setData(JSON.toJSONString(data)); apiInfoDataRep.save(infoData); } } result += responseDto.toString(); } return result; } } src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlApi1201PR.java
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,154 @@ 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.WhjlApi1201; 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: YYC * @Description:å¯é£ä¾åºåä¿¡æ¯ * @DateTime: 2023-10-25 14:13 **/ @Component public class WhjlApi1201PR { @Autowired private ApiCommonService apiCommonService; @Autowired private ApiPushManager apiPushManager; @Autowired private ApiInfoDataRep apiInfoDataRep; /** * è·ååè¡¨ä¿¡æ¯ * WhjlApi1201PR#listData * * @return */ @DataProvider public List<WhjlApi1201> listData() { List<ApiInfoData> result = apiInfoDataRep.getDataByInteId(WhjlConstant.API_CODE_1201); if (null == result || result.isEmpty()) { return null; } List<WhjlApi1201> list = new ArrayList<>(); WhjlApi1201 whjlApi1201; for (ApiInfoData infoData : result) { whjlApi1201 = JSONObject.parseObject(infoData.getData(), WhjlApi1201.class); whjlApi1201.setKqdm(infoData.getKqdm()); whjlApi1201.setCzbz(infoData.getCzbz()); whjlApi1201.setUpdateTime(infoData.getUpdateTime()); whjlApi1201.setBizId(infoData.getDataId()); list.add(whjlApi1201); } return list; } /** * æ´æ°æä¿®æ¹ * WhjlApi1201PR#saveData * * @param data * @return */ @DataResolver public void saveData(WhjlApi1201 data) { ApiInfoData infoData = new ApiInfoData(); infoData.setId(data.getBizId()); infoData.setKqdm(data.getKqdm()); infoData.setInteType(WhjlConstant.API_CATEGORY_12); infoData.setInteId(WhjlConstant.API_CODE_1201); infoData.setUpdateTime(new Date()); infoData.setDataId(data.getBizId()); infoData.setData(JSON.toJSONString(data)); infoData.setCzbz(data.getCzbz()); infoData.setRemarks("夿³¨ä¿¡æ¯"); apiInfoDataRep.save(infoData); } /** * å é¤ * WhjlApi1201PR#delData * * @param data * @return */ @Expose public String delData(WhjlApi1201 data) { apiInfoDataRep.deleteById(data.getBizId()); return null; } /** * ä¸ä¼ * WhjlApi1201PR#pushData * * @param items * @return */ @Expose public String pushData(List<WhjlApi1201> items) { String result = ""; String kqdm = items.get(0).getKqdm(); ApiConfs apiConf = apiCommonService.getConf(kqdm); if (null == apiConf) { return "ç³»ç»æ²¡æè·åå°å½ååºåºé 置信æ¯ï¼æ§è¡å¤±è´¥"; } //å°è£ åæ° ApiParam param = new ApiParam(apiConf, WhjlConstant.API_CATEGORY_12, WhjlConstant.API_CODE_1201); //è·åå®ç°æ¥å£ ApiRemoteService apiService = apiPushManager.getApiRemoteService(param.getPushProtocol()); if (null == apiService) { return "ç³»ç»æ²¡æå½åæ¨éåè®®é ç½®ï¼æ§è¡å¤±è´¥"; } ResponseDto responseDto; ApiInfoData infoData; for (WhjlApi1201 data : items) { responseDto = apiService.pushData(param, apiConf, items); if (responseDto.getSuccess() == 0) { if (Constant.CZBZ_I.equals(data.getCzbz())) { infoData = new ApiInfoData(); infoData.setId(data.getBizId()); infoData.setKqdm(data.getKqdm()); infoData.setInteType(WhjlConstant.API_CATEGORY_12); infoData.setInteId(WhjlConstant.API_CODE_1201); infoData.setUpdateTime(new Date()); infoData.setDataId(data.getBizId()); data.setCzbz(Constant.CZBZ_U); infoData.setCzbz(Constant.CZBZ_U); infoData.setData(JSON.toJSONString(data)); apiInfoDataRep.save(infoData); } } result += responseDto.toString(); } return result; } } src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlApi1202PR.java
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,154 @@ 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.WhjlApi1202; 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: YYC * @Description:å¯é£åçä¿¡æ¯ * @DateTime: 2023-10-25 14:13 **/ @Component public class WhjlApi1202PR { @Autowired private ApiCommonService apiCommonService; @Autowired private ApiPushManager apiPushManager; @Autowired private ApiInfoDataRep apiInfoDataRep; /** * è·ååè¡¨ä¿¡æ¯ * WhjlApi1202PR#listData * * @return */ @DataProvider public List<WhjlApi1202> listData() { List<ApiInfoData> result = apiInfoDataRep.getDataByInteId(WhjlConstant.API_CODE_1202); if (null == result || result.isEmpty()) { return null; } List<WhjlApi1202> list = new ArrayList<>(); WhjlApi1202 whjlApi1202; for (ApiInfoData infoData : result) { whjlApi1202 = JSONObject.parseObject(infoData.getData(), WhjlApi1202.class); whjlApi1202.setKqdm(infoData.getKqdm()); whjlApi1202.setCzbz(infoData.getCzbz()); whjlApi1202.setUpdateTime(infoData.getUpdateTime()); whjlApi1202.setBizId(infoData.getDataId()); list.add(whjlApi1202); } return list; } /** * æ´æ°æä¿®æ¹ * WhjlApi1202PR#saveData * * @param data * @return */ @DataResolver public void saveData(WhjlApi1202 data) { ApiInfoData infoData = new ApiInfoData(); infoData.setId(data.getBizId()); infoData.setKqdm(data.getKqdm()); infoData.setInteType(WhjlConstant.API_CATEGORY_12); infoData.setInteId(WhjlConstant.API_CODE_1202); infoData.setUpdateTime(new Date()); infoData.setDataId(data.getBizId()); infoData.setData(JSON.toJSONString(data)); infoData.setCzbz(data.getCzbz()); infoData.setRemarks("夿³¨ä¿¡æ¯"); apiInfoDataRep.save(infoData); } /** * å é¤ * WhjlApi1202PR#delData * * @param data * @return */ @Expose public String delData(WhjlApi1202 data) { apiInfoDataRep.deleteById(data.getBizId()); return null; } /** * ä¸ä¼ * WhjlApi1202PR#pushData * * @param items * @return */ @Expose public String pushData(List<WhjlApi1202> items) { String result = ""; String kqdm = items.get(0).getKqdm(); ApiConfs apiConf = apiCommonService.getConf(kqdm); if (null == apiConf) { return "ç³»ç»æ²¡æè·åå°å½ååºåºé 置信æ¯ï¼æ§è¡å¤±è´¥"; } //å°è£ åæ° ApiParam param = new ApiParam(apiConf, WhjlConstant.API_CATEGORY_12, WhjlConstant.API_CODE_1202); //è·åå®ç°æ¥å£ ApiRemoteService apiService = apiPushManager.getApiRemoteService(param.getPushProtocol()); if (null == apiService) { return "ç³»ç»æ²¡æå½åæ¨éåè®®é ç½®ï¼æ§è¡å¤±è´¥"; } ResponseDto responseDto; ApiInfoData infoData; for (WhjlApi1202 data : items) { responseDto = apiService.pushData(param, apiConf, items); if (responseDto.getSuccess() == 0) { if (Constant.CZBZ_I.equals(data.getCzbz())) { infoData = new ApiInfoData(); infoData.setId(data.getBizId()); infoData.setKqdm(data.getKqdm()); infoData.setInteType(WhjlConstant.API_CATEGORY_12); infoData.setInteId(WhjlConstant.API_CODE_1202); infoData.setUpdateTime(new Date()); infoData.setDataId(data.getBizId()); data.setCzbz(Constant.CZBZ_U); infoData.setCzbz(Constant.CZBZ_U); infoData.setData(JSON.toJSONString(data)); apiInfoDataRep.save(infoData); } } result += responseDto.toString(); } return result; } } src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlApi1203PR.java
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,154 @@ 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.WhjlApi1203; 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: YYC * @Description:å¯é£äº§åä¿¡æ¯ * @DateTime: 2023-10-25 14:13 **/ @Component public class WhjlApi1203PR { @Autowired private ApiCommonService apiCommonService; @Autowired private ApiPushManager apiPushManager; @Autowired private ApiInfoDataRep apiInfoDataRep; /** * è·ååè¡¨ä¿¡æ¯ * WhjlApi1203PR#listData * * @return */ @DataProvider public List<WhjlApi1203> listData() { List<ApiInfoData> result = apiInfoDataRep.getDataByInteId(WhjlConstant.API_CODE_1203); if (null == result || result.isEmpty()) { return null; } List<WhjlApi1203> list = new ArrayList<>(); WhjlApi1203 whjlApi1203; for (ApiInfoData infoData : result) { whjlApi1203 = JSONObject.parseObject(infoData.getData(), WhjlApi1203.class); whjlApi1203.setKqdm(infoData.getKqdm()); whjlApi1203.setCzbz(infoData.getCzbz()); whjlApi1203.setUpdateTime(infoData.getUpdateTime()); whjlApi1203.setBizId(infoData.getDataId()); list.add(whjlApi1203); } return list; } /** * æ´æ°æä¿®æ¹ * WhjlApi1203PR#saveData * * @param data * @return */ @DataResolver public void saveData(WhjlApi1203 data) { ApiInfoData infoData = new ApiInfoData(); infoData.setId(data.getBizId()); infoData.setKqdm(data.getKqdm()); infoData.setInteType(WhjlConstant.API_CATEGORY_12); infoData.setInteId(WhjlConstant.API_CODE_1203); infoData.setUpdateTime(new Date()); infoData.setDataId(data.getBizId()); infoData.setData(JSON.toJSONString(data)); infoData.setCzbz(data.getCzbz()); infoData.setRemarks("夿³¨ä¿¡æ¯"); apiInfoDataRep.save(infoData); } /** * å é¤ * WhjlApi1203PR#delData * * @param data * @return */ @Expose public String delData(WhjlApi1203 data) { apiInfoDataRep.deleteById(data.getBizId()); return null; } /** * ä¸ä¼ * WhjlApi1203PR#pushData * * @param items * @return */ @Expose public String pushData(List<WhjlApi1203> items) { String result = ""; String kqdm = items.get(0).getKqdm(); ApiConfs apiConf = apiCommonService.getConf(kqdm); if (null == apiConf) { return "ç³»ç»æ²¡æè·åå°å½ååºåºé 置信æ¯ï¼æ§è¡å¤±è´¥"; } //å°è£ åæ° ApiParam param = new ApiParam(apiConf, WhjlConstant.API_CATEGORY_12, WhjlConstant.API_CODE_1203); //è·åå®ç°æ¥å£ ApiRemoteService apiService = apiPushManager.getApiRemoteService(param.getPushProtocol()); if (null == apiService) { return "ç³»ç»æ²¡æå½åæ¨éåè®®é ç½®ï¼æ§è¡å¤±è´¥"; } ResponseDto responseDto; ApiInfoData infoData; for (WhjlApi1203 data : items) { responseDto = apiService.pushData(param, apiConf, items); if (responseDto.getSuccess() == 0) { if (Constant.CZBZ_I.equals(data.getCzbz())) { infoData = new ApiInfoData(); infoData.setId(data.getBizId()); infoData.setKqdm(data.getKqdm()); infoData.setInteType(WhjlConstant.API_CATEGORY_12); infoData.setInteId(WhjlConstant.API_CODE_1203); infoData.setUpdateTime(new Date()); infoData.setDataId(data.getBizId()); data.setCzbz(Constant.CZBZ_U); infoData.setCzbz(Constant.CZBZ_U); infoData.setData(JSON.toJSONString(data)); apiInfoDataRep.save(infoData); } } result += responseDto.toString(); } return result; } } src/main/resources/templates/home/home-whjl.html
@@ -124,31 +124,34 @@ <a lay-href="com.fzzy.otherview.whhpjl.WhjlApi1105.d">仿¿ä¿¡æ¯</a> </dd> <dd> <a lay-href="com.fzzy.otherview.whhpjl.WhjlApi1106.d">å»é´ä¿¡æ¯</a> <a lay-href="com.fzzy.otherview.whhpjl.WhjlApi1106.d">æ²¹ç½ä¿¡æ¯</a> </dd> <dd> <a lay-href="com.fzzy.otherview.whhpjl.WhjlApi1107.d">è´§ä½ä¿¡æ¯</a> <a lay-href="com.fzzy.otherview.whhpjl.WhjlApi1107.d">å»é´ä¿¡æ¯</a> </dd> <dd> <a lay-href="com.fzzy.otherview.whhpjl.WhjlApi1108.d">ä»å¨è®¾æ½çµåæ¡£æ¡</a> <a lay-href="com.fzzy.otherview.whhpjl.WhjlApi1108.d">è´§ä½ä¿¡æ¯</a> </dd> <dd> <a lay-href="com.fzzy.otherview.whhpjl.WhjlApi1109.d">ä»å¨è®¾æ½ç»´æ¤è®°å½</a> <a lay-href="com.fzzy.otherview.whhpjl.WhjlApi1109.d">ä»å¨è®¾æ½çµåæ¡£æ¡</a> </dd> <dd> <a lay-href="com.fzzy.otherview.whhpjl.WhjlApi1110.d">ä»å¨è®¾å¤æ¥åºè®°å½</a> <a lay-href="com.fzzy.otherview.whhpjl.WhjlApi1110.d">ä»å¨è®¾æ½ç»´æ¤è®°å½</a> </dd> <dd> <a lay-href="com.fzzy.otherview.whhpjl.WhjlApi1111.d">ä»å¨è®¾å¤ä¿¡æ¯</a> <a lay-href="com.fzzy.otherview.whhpjl.WhjlApi1111.d">ä»å¨è®¾å¤æ¥åºè®°å½</a> </dd> <dd> <a lay-href="com.fzzy.otherview.whhpjl.WhjlApi1112.d">ä»å¨è®¾å¤ç»´æ¤è®°å½</a> <a lay-href="com.fzzy.otherview.whhpjl.WhjlApi1112.d">ä»å¨è®¾å¤ä¿¡æ¯</a> </dd> <dd> <a lay-href="com.fzzy.otherview.whhpjl.WhjlApi1113.d">ä»å¨è®¾å¤ç»´ä¿®è®°å½</a> <a lay-href="com.fzzy.otherview.whhpjl.WhjlApi1113.d">ä»å¨è®¾å¤ç»´æ¤è®°å½</a> </dd> <dd> <a lay-href="com.fzzy.otherview.whhpjl.WhjlApi1114.d">ä»å¨è®¾å¤æ¥åºè®°å½</a> <a lay-href="com.fzzy.otherview.whhpjl.WhjlApi1114.d">ä»å¨è®¾å¤ç»´ä¿®è®°å½</a> </dd> <dd> <a lay-href="com.fzzy.otherview.whhpjl.WhjlApi1115.d">ä»å¨è®¾å¤æ¥åºè®°å½</a> </dd> </dl> </li> @@ -163,6 +166,15 @@ </a> <dl class="layui-nav-child"> <dd> <a lay-href="com.fzzy.otherview.whhpjl.WhjlApi1201.d">å¯é£ä¾åºåä¿¡æ¯</a> </dd> <dd> <a lay-href="com.fzzy.otherview.whhpjl.WhjlApi1202.d">å¯é£åçä¿¡æ¯</a> </dd> <dd> <a lay-href="com.fzzy.otherview.whhpjl.WhjlApi1203.d">å¯é£äº§åä¿¡æ¯</a> </dd> <dd> <a lay-href="com.fzzy.otherview.whhpjl.WhjlApi1204.d">客æ·ä¿¡æ¯</a> </dd> <dd>