From 01a9e07288902ff84bf3007030be6a72e2150679 Mon Sep 17 00:00:00 2001 From: YYC <1833023622@qq.com> Date: 星期五, 08 十一月 2024 16:58:13 +0800 Subject: [PATCH] 7个新增页面,增删改 --- src/main/java/com/fzzy/api/entity/Api1505.java | 77 src/main/java/com/fzzy/api/view/Api1508.view.xml | 423 ++++ src/main/java/com/fzzy/api/entity/Api1510.java | 93 src/main/java/com/fzzy/api/entity/Api1508.java | 57 src/main/java/com/fzzy/api/view/repository/Api1510Rep.java | 41 src/main/java/com/fzzy/api/view/Api1507.view.xml | 539 +++++ src/main/java/com/fzzy/api/entity/Api1507.java | 108 src/main/java/com/fzzy/api/view/Api1504.view.xml | 432 ++++ src/main/java/com/fzzy/api/view/Api1509.view.xml | 654 ++++++ src/main/java/com/fzzy/api/entity/Api1504.java | 69 src/main/java/com/fzzy/api/view/Api1510.view.xml | 484 +++++ src/main/java/com/fzzy/api/view/repository/Api1509Rep.java | 42 src/main/java/com/fzzy/api/view/pr/Api1509PR.java | 173 + src/main/java/com/fzzy/api/view/repository/Api1508Rep.java | 42 src/main/java/com/fzzy/api/view/pr/Api1507PR.java | 173 + src/main/java/com/fzzy/api/view/pr/Api1506PR.java | 173 + src/main/java/com/fzzy/api/view/pr/Api1508PR.java | 173 + src/main/java/com/fzzy/api/view/repository/Api1507Rep.java | 42 src/main/java/com/fzzy/api/view/Api1506.view.xml | 465 ++++ src/main/java/com/fzzy/api/view/pr/Api1505PR.java | 173 + src/main/java/com/fzzy/api/view/repository/Api1505Rep.java | 42 src/main/java/com/fzzy/api/view/repository/Api1506Rep.java | 42 src/main/java/com/fzzy/api/view/pr/Api1510PR.java | 174 + src/main/java/com/fzzy/api/view/repository/Api1504Rep.java | 42 src/main/java/com/fzzy/api/view/pr/Api1504PR.java | 173 + src/main/java/com/fzzy/api/entity/Api1509.java | 100 src/main/java/com/fzzy/api/entity/Api1506.java | 81 src/main/java/com/fzzy/api/view/Api1505.view.xml | 508 +++++ src/main/java/com/fzzy/api/entity/Api1209.java | 8 29 files changed, 5,317 insertions(+), 286 deletions(-) diff --git a/src/main/java/com/fzzy/api/entity/Api1209.java b/src/main/java/com/fzzy/api/entity/Api1209.java index 2110988..4425f2a 100644 --- a/src/main/java/com/fzzy/api/entity/Api1209.java +++ b/src/main/java/com/fzzy/api/entity/Api1209.java @@ -60,11 +60,11 @@ private String syhj; @PropertyDef(label = "鍏ュ簱鍑�閲�(鍏枻)") - @Column(name = "rkjz", precision = 20, scale = 6) + @Column(name = "rkjz", precision = 20, scale = 3) private double rkjz; @PropertyDef(label = "鍏ュ簱鏁伴噺(鍏枻)") - @Column(name = "rksl") + @Column(name = "rksl",precision = 20,scale = 3) private double rksl; @JSONField(format = "yyyy-MM-dd HH:mm:ss") @@ -73,11 +73,11 @@ private Date rksj; @PropertyDef(label = "鍏ュ簱姘村垎(%)") - @Column(name = "rksf", precision = 20, scale = 6) + @Column(name = "rksf", precision = 6, scale = 2) private double rksf; @PropertyDef(label = "鍏ュ簱鏉傝川(%)") - @Column(name = "rkzz", precision = 20, scale = 6) + @Column(name = "rkzz", precision = 6, scale = 2) private double rkzz; @JSONField(format = "yyyy-MM-dd HH:mm:ss") diff --git a/src/main/java/com/fzzy/api/entity/Api1504.java b/src/main/java/com/fzzy/api/entity/Api1504.java index b1311e0..5e7457e 100644 --- a/src/main/java/com/fzzy/api/entity/Api1504.java +++ b/src/main/java/com/fzzy/api/entity/Api1504.java @@ -2,13 +2,11 @@ import com.alibaba.fastjson.annotation.JSONField; import com.bstek.dorado.annotation.PropertyDef; +import com.fasterxml.jackson.annotation.JsonProperty; import lombok.Data; import lombok.EqualsAndHashCode; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.Table; +import javax.persistence.*; import java.io.Serializable; import java.util.Date; @@ -31,64 +29,63 @@ * 閫氳繃鎺ュ彛鑾峰彇鐨勫崟浣嶈处濂楀悗锛屽湪灞�绔嚜鍔ㄤ骇鐢熻处濂楀彿 */ @Id - @JSONField(serialize = false) @PropertyDef(label = "璐﹀鍙�") - @Column(name = "nAcctId", precision = 9) - private Double nAcctId; + @Column(name = "nacctid", precision = 23) + private String nacctid; @PropertyDef(label = "璐﹀鍚嶇О") - @Column(name = "cAcctName", length = 256) - private String cAcctName; + @Column(name = "cncctname", length = 256) + private String cncctname; @PropertyDef(label = "鏈綅甯�") - @Column(name = "cCurrency", length = 3) - private String cCurrency; + @Column(name = "ccurrency", length = 3) + private String ccurrency; @PropertyDef(label = "浼氳涓荤") - @Column(name = "cAcctChief", length = 20) - private String cAcctChief; + @Column(name = "cacctchief", length = 20) + private String cacctchief; - @JSONField(format = "yyyy-MM-dd") - @PropertyDef(label = "鍚敤鏈熼棿") - @Column(name = "cPeriodStart", length = 10) - private String cPeriodStart; + @JSONField(format = "yyyyMM") + @PropertyDef(label = "鍚敤鏈熼棿", description = "yyyyMM") + @Column(name = "cperiodstart", length = 10) + private Date cperiodstart; @JSONField(format = "yyyy-MM-dd") @PropertyDef(label = "鍚敤鏃ユ湡") - @Column(name = "cYearBmd", length = 10) - private String cYearBmd; + @Column(name = "cyearbmd", length = 10) + private Date cyearbmd; - @PropertyDef(label = "鏈熼棿鏁�") - @Column(name = "nAcctPeriodNum") - private Double nAcctPeriodNum; + @PropertyDef(label = "鏈熼棿鏁�", description = "榛樿12") + @Column(name = "nacctperiodnum") + private Integer nacctperiodnum; @PropertyDef(label = "浼氳鍒跺害浠g爜", description = "11:浼佷笟浼氳鍑嗗垯鍒跺害(绮2013鐗�)(榛樿浠g爜鍊�)") - @Column(name = "cAccClassCode", length = 8) - private String cAccClassCode; + @Column(name = "caccclasscode", length = 2) + private String caccclasscode; @PropertyDef(label = "绉戠洰绾ф", description = "4-8:榛樿鏈�灏忓�间负4") - @Column(name = "nAccGrade") - private Double nAccGrade; + @Column(name = "naccgrade") + private Integer naccgrade; @PropertyDef(label = "绉戠洰缂栫爜瑙勫垯", description = "4222XXXX:榛樿鍓嶅洓绾х骇闀胯鍒欎负4222") - @Column(name = "cAccCodeStr", length = 40) - private String cAccCodeStr; + @Column(name = "cacccodestr", length = 40) + private String cacccodestr; @PropertyDef(label = "鍗曚綅鍚嶇О") - @Column(name = "cCropName", length = 256) - private String cCropName; + @Column(name = "ccropname", length = 256) + private String ccropname; @PropertyDef(label = "鍗曚綅浠g爜") - @Column(name = "cOrgCode", length = 18) - private String cOrgCode; + @Column(name = "corgcode", length = 18) + private String corgcode; @PropertyDef(label = "缁熶竴鍗曚綅缂栫爜") - @Column(name = "xqydm", length = 20) - private String xqydm; + @Column(name = "tydwbm", length = 20) + private String tydwbm; @PropertyDef(label = "缁熶竴搴撳尯缂栫爜") - @Column(name = "xkqdm",length = 22) - private String xkqdm; + @Column(name = "tykqbm", length = 22) + private String tykqbm; @PropertyDef(label = "鎿嶄綔鏍囧織") @Column(name = "czbz", length = 1) diff --git a/src/main/java/com/fzzy/api/entity/Api1505.java b/src/main/java/com/fzzy/api/entity/Api1505.java index cad095d..f8fcaa4 100644 --- a/src/main/java/com/fzzy/api/entity/Api1505.java +++ b/src/main/java/com/fzzy/api/entity/Api1505.java @@ -2,13 +2,11 @@ import com.alibaba.fastjson.annotation.JSONField; import com.bstek.dorado.annotation.PropertyDef; +import com.fasterxml.jackson.annotation.JsonProperty; import lombok.Data; import lombok.EqualsAndHashCode; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.Table; +import javax.persistence.*; import java.io.Serializable; import java.util.Date; @@ -31,27 +29,30 @@ * 閫氳繃鎺ュ彛鑾峰彇鐨勫崟浣嶈处濂楀悗锛屽湪灞�绔嚜鍔ㄤ骇鐢熻处濂楀彿 */ @Id + @Column(name = "ID_", precision = 18) @JSONField(serialize = false) - @PropertyDef(label = "璐﹀鍙�") - @Column(name = "nAcctId", length = 9) - private Double nAcctId; + private String id; - @JSONField(serialize = false) + @PropertyDef(label = "璐﹀鍙�") + @Column(name = "nacctid", length = 23) + private String nacctid; + + @PropertyDef(label = "骞村害") - @Column(name = "cYear", length = 4) - private String cYear; + @Column(name = "cyear") + private Integer cyear; @PropertyDef(label = "绉戠洰缂栫爜") - @Column(name = "cCode", length = 80) - private String cCode; + @Column(name = "ccode", length = 80) + private String ccode; @PropertyDef(label = "绉戠洰鍚嶇О") - @Column(name = "cName", length = 256) - private String cName; + @Column(name = "cname", length = 256) + private String cname; @PropertyDef(label = "绉戠洰鍏ㄧО") - @Column(name = "cAllName", length = 65536) - private String cAllName; + @Column(name = "callname", length = 65536) + private String callname; /** * 1:璧勪骇绫� @@ -62,46 +63,50 @@ * 6:鎹熺泭绫� */ @PropertyDef(label = "绉戠洰绫诲埆") - @Column(name = "nClass", length = 9) - private String nClass; + @Column(name = "nclass", length = 9) + private String nclass; /** * (-1)-璐锋柟锛�1-鍊熸柟 */ @PropertyDef(label = "浣欓鏂瑰悜") - @Column(name = "cDc", length = 3) - private String cDc; + @Column(name = "cdc") + private Integer cdc; @PropertyDef(label = "鏈骇绉戠洰") - @Column(name = "bL") - private String bL; + @Column(name = "bl") + private Integer bl; @PropertyDef(label = "绉戠洰绾ф") - @Column(name = "nGrade", length = 8) - private Double nGrade; + @Column(name = "ngrade") + private Integer ngrade; @PropertyDef(label = "鏁伴噺绉戠洰") - @Column(name = "bQ") - private String bQ; + @Column(name = "bq") + private Integer bq; @PropertyDef(label = "鏁伴噺鍗曚綅") - @Column(name = "cQUnit") - private String cQUnit; + @Column(name = "cqunit") + private Integer cqunit; @PropertyDef(label = "鐜伴噾绫荤鐩�") - @Column(name = "bCash") - private String bCash; + @Column(name = "bcash") + private Integer bcash; @PropertyDef(label = "閾惰绫荤鐩�") - @Column(name = "bBank") - private String bBank; + @Column(name = "bbank") + private Integer bbank; @PropertyDef(label = "鐜伴噾娴侀噺绫荤鐩�") - @Column(name = "bXjll") - private String bXjll; + @Column(name = "bxjll") + private Integer bxjll; @PropertyDef(label = "鍐荤粨") - @Column(name = "bF") - private String bF; + @Column(name = "bf") + private Integer bf; + + @PropertyDef(label = "缁熶竴搴撳尯缂栫爜") + @Column(name = "tykqbm", length = 22) + private String tykqbm; @PropertyDef(label = "鎿嶄綔鏍囧織") @Column(name = "czbz", length = 1) diff --git a/src/main/java/com/fzzy/api/entity/Api1506.java b/src/main/java/com/fzzy/api/entity/Api1506.java index 2c0e13a..26f2ee3 100644 --- a/src/main/java/com/fzzy/api/entity/Api1506.java +++ b/src/main/java/com/fzzy/api/entity/Api1506.java @@ -2,13 +2,11 @@ import com.alibaba.fastjson.annotation.JSONField; import com.bstek.dorado.annotation.PropertyDef; +import com.fasterxml.jackson.annotation.JsonProperty; import lombok.Data; import lombok.EqualsAndHashCode; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.Table; +import javax.persistence.*; import java.io.Serializable; import java.util.Date; @@ -31,73 +29,84 @@ * 閫氳繃鎺ュ彛鑾峰彇鐨勫崟浣嶈处濂楀悗锛屽湪灞�绔嚜鍔ㄤ骇鐢熻处濂楀彿 */ @Id + @Column(name = "ID_", precision = 18) @JSONField(serialize = false) + private String id; + @PropertyDef(label = "璐﹀鍙�") - @Column(name = "nAcctId", length = 9) - private Double nAcctId; + @Column(name = "nacctid", length = 23) + private String nacctid; @PropertyDef(label = "鏈熼棿") - @Column(name = "cYear", length = 3) - private String cYear; + @Column(name = "cyear") + private Integer cyear; @PropertyDef(label = "骞村害") - @Column(name = "nNo", length = 4) - private String nNo; + @Column(name = "nno") + private Integer nno; + + @PropertyDef(label = "绉戠洰缂栫爜") + @Column(name = "ccode", length = 80) + private String ccode; @PropertyDef(label = "鏈熷垵鏈綅甯佷綑棰�") - @Column(name = "bM", precision = 20, scale = 4) - private Double bM; + @Column(name = "bm", precision = 20, scale = 4) + private Double bm; @PropertyDef(label = "鏈熸湯鏈綅甯佷綑棰�") - @Column(name = "eM", precision = 20, scale = 4) - private Double eM; + @Column(name = "em", precision = 20, scale = 4) + private Double em; @PropertyDef(label = "鏈熷垵鏁伴噺") - @Column(name = "bQty", precision = 20, scale = 4) - private Double bQty; + @Column(name = "bqty", precision = 20, scale = 4) + private Double bqty; @PropertyDef(label = "鏈熸湯鏁伴噺") - @Column(name = "eQty", precision = 20, scale = 4) - private Double eQty; + @Column(name = "eqty", precision = 20, scale = 4) + private Double eqty; /** * 1:鍊熸柟 * -1:璐锋柟 */ @PropertyDef(label = "浣欓鏂瑰悜") - @Column(name = "cDc", length = 3) - private String cDc; + @Column(name = "cdc") + private Integer cdc; @PropertyDef(label = "鍊熸柟鏈綅甯佸彂鐢熼") - @Column(name = "dM", precision = 20, scale = 4) - private Double dM; + @Column(name = "dm", precision = 20, scale = 4) + private Double dm; @PropertyDef(label = "璐锋柟鏈綅甯佸彂鐢熼") - @Column(name = "cM", precision = 20, scale = 4) - private Double cM; + @Column(name = "cm", precision = 20, scale = 4) + private Double cm; @PropertyDef(label = "鍊熸柟鍙戠敓鏁伴噺") - @Column(name = "dQ", precision = 20, scale = 4) - private Double dQ; + @Column(name = "dq", precision = 20, scale = 4) + private Double dq; @PropertyDef(label = "璐锋柟鍙戠敓鏁伴噺") - @Column(name = "cQ", precision = 20, scale = 4) - private Double cQ; + @Column(name = "cq", precision = 20, scale = 4) + private Double cq; @PropertyDef(label = "鏈熷垵澶栧竵浣欓") - @Column(name = "bFm", precision = 20, scale = 4) - private Double bFm; + @Column(name = "bfm", precision = 20, scale = 4) + private Double bfm; @PropertyDef(label = "鏈熸湯澶栧竵浣欓") - @Column(name = "eFm", precision = 20, scale = 4) - private Double eFm; + @Column(name = "efm", precision = 20, scale = 4) + private Double efm; @PropertyDef(label = "鍊熸柟澶栧竵鍙戠敓棰�") - @Column(name = "dFm", precision = 20, scale = 4) - private Double dFm; + @Column(name = "dfm", precision = 20, scale = 4) + private Double dfm; @PropertyDef(label = "璐锋柟澶栧竵鍙戠敓棰�") - @Column(name = "cFm", precision = 20, scale = 4) - private Double cFm; + @Column(name = "cfm", precision = 20, scale = 4) + private Double cfm; + + @PropertyDef(label = "缁熶竴搴撳尯缂栫爜") + @Column(name = "tykqbm", length = 22) + private String tykqbm; @PropertyDef(label = "鎿嶄綔鏍囧織") @Column(name = "czbz", length = 1) diff --git a/src/main/java/com/fzzy/api/entity/Api1507.java b/src/main/java/com/fzzy/api/entity/Api1507.java index 03b166e..57857a3 100644 --- a/src/main/java/com/fzzy/api/entity/Api1507.java +++ b/src/main/java/com/fzzy/api/entity/Api1507.java @@ -2,13 +2,11 @@ import com.alibaba.fastjson.annotation.JSONField; import com.bstek.dorado.annotation.PropertyDef; +import com.fasterxml.jackson.annotation.JsonProperty; import lombok.Data; import lombok.EqualsAndHashCode; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.Table; +import javax.persistence.*; import java.io.Serializable; import java.util.Date; @@ -31,109 +29,109 @@ * 閫氳繃鎺ュ彛鑾峰彇鐨勫崟浣嶈处濂楀悗锛屽湪灞�绔嚜鍔ㄤ骇鐢熻处濂楀彿 */ @Id + @Column(name = "ID_", precision = 18) @JSONField(serialize = false) + private String id; + @PropertyDef(label = "璐﹀鍙�") - @Column(name = "nAcctId", length = 9) - private Double nAcctId; + @Column(name = "nacctid", length = 23) + private String nacctid; @PropertyDef(label = "鍑瘉绫诲瀷") - @Column(name = "cVKind", length = 9) - private String cVKind; + @Column(name = "cvkind", length = 9) + private String cvkind; @PropertyDef(label = "鏈熼棿") - @Column(name = "cMon", length = 3) - private Double cMon; + @Column(name = "cmon") + private Integer cmon; @PropertyDef(label = "骞村害") - @Column(name = "cYear", length = 4) - private Double cYear; + @Column(name = "cyear") + private Integer cyear; @PropertyDef(label = "鍑瘉鍙�") - @Column(name = "nVNo", length = 9) - private Double nVNo; + @Column(name = "nvno") + private Integer nvno; @PropertyDef(label = "鍒嗗綍搴忓彿") - @Column(name = "nNo", precision = 9) - private Double nNo; - - @PropertyDef(label = "鍑瘉鍒嗙被") - @Column(name = "bTmp", precision = 3) - private Double bTmp; + @Column(name = "nno") + private Integer nno; @PropertyDef(label = "鎽樿") - @Column(name = "Digest", length = 256) - private String Digest; + @Column(name = "digest", length = 512) + private String digest; @PropertyDef(label = "绉戠洰缂栫爜") - @Column(name = "cCode", length = 80) - private Double cCode; + @Column(name = "ccode", length = 80) + private String ccode; @JSONField(format = "yyyy-MM-dd") @PropertyDef(label = "鍑瘉鏃ユ湡") - @Column(name = "cVSmallDatetime", length = 10) - private String cVSmallDatetime; + @Column(name = "ccsmalldatetime", length = 10) + private Date ccsmalldatetime; @PropertyDef(label = "鍒跺崟浜�") - @Column(name = "cMaker", length = 32) - private String cMaker; + @Column(name = "cmaker", length = 32) + private String cmaker; /** * 1:鍊熸柟 * -1:璐锋柟 */ @PropertyDef(label = "鏂瑰悜") - @Column(name = "cDc", precision = 3) - private String cDc; + @Column(name = "cdc") + private Integer cdc; @PropertyDef(label = "瀹℃牳浜�") - @Column(name = "cCkEr", length = 32) - private String cCkEr; + @Column(name = "ccker", length = 32) + private String ccker; @PropertyDef(label = "璁拌处浜�") - @Column(name = "cPtEr", length = 32) - private String cPtEr; + @Column(name = "cpter", length = 32) + private String cpter; /** * 0:鍚� * 1:鏄� */ @PropertyDef(label = "璁拌处鏍囧織") - @Column(name = "bPt", precision = 3) - private Double bPt; + @Column(name = "bpt") + private Integer bpt; @PropertyDef(label = "闄勪欢寮犳暟") - @Column(name = "nANum", precision = 9) - private Double nANum; + @Column(name = "nanum") + private Integer nanum; @PropertyDef(label = "閲戦") - @Column(name = "nM", precision = 20, scale = 4) - private Double nM; + @Column(name = "nm", precision = 20, scale = 4) + private Double nm; @PropertyDef(label = "鏁伴噺") - @Column(name = "nQty", precision = 20, scale = 4) - private Double nQty; + @Column(name = "nqty", precision = 20, scale = 4) + private Double nqty; @PropertyDef(label = "鍗曚环") - @Column(name = "nPrice", precision = 20, scale = 4) - private Double nPrice; + @Column(name = "nprice", precision = 20, scale = 4) + private Double nprice; - @PropertyDef(label = "缁撶畻鍙�") - @Column(name = "cSettleNo", length = 40) - private String cSettleNo; @PropertyDef(label = "鍑虹撼") - @Column(name = "cCashier", length = 32) - private String cCashier; + @Column(name = "ccashier", length = 32) + private String ccashier; @PropertyDef(label = "姹囩巼") - @Column(name = "rate", precision = 20, scale = 4) + @Column(name = "rate", precision = 20, scale = 4) private Double rate; @PropertyDef(label = "澶栧竵閲戦") - @Column(name = "nFm", precision = 20, scale = 4) - private Double nFm; + @Column(name = "nfm", precision = 20, scale = 4) + private Double nfm; - @PropertyDef(label = "璁¢噺鍗曚綅",description = "璁¢噺鍗曚綅姹夊瓧") - @Column(name = "meterUnitId", length = 32) - private String meterUnitId; + @PropertyDef(label = "璁¢噺鍗曚綅", description = "璁¢噺鍗曚綅姹夊瓧") + @Column(name = "meterunitid", length = 32) + private String meterunitid; + + @PropertyDef(label = "缁熶竴搴撳尯缂栫爜") + @Column(name = "tykqbm", length = 22) + private String tykqbm; @PropertyDef(label = "鎿嶄綔鏍囧織") @Column(name = "czbz", length = 1) diff --git a/src/main/java/com/fzzy/api/entity/Api1508.java b/src/main/java/com/fzzy/api/entity/Api1508.java index a181c7d..cef5fd2 100644 --- a/src/main/java/com/fzzy/api/entity/Api1508.java +++ b/src/main/java/com/fzzy/api/entity/Api1508.java @@ -2,13 +2,11 @@ import com.alibaba.fastjson.annotation.JSONField; import com.bstek.dorado.annotation.PropertyDef; +import com.fasterxml.jackson.annotation.JsonProperty; import lombok.Data; import lombok.EqualsAndHashCode; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.Table; +import javax.persistence.*; import java.io.Serializable; import java.util.Date; @@ -31,54 +29,61 @@ * 閫氳繃鎺ュ彛鑾峰彇鐨勫崟浣嶈处濂楀悗锛屽湪灞�绔嚜鍔ㄤ骇鐢熻处濂楀彿 */ @Id + @Column(name = "ID_", precision = 18) @JSONField(serialize = false) + private String id; + @PropertyDef(label = "璐﹀鍙�") - @Column(name = "nAcctId", length = 9) - private Double nAcctId; + @Column(name = "nacctid", length = 23) + private String nacctid; @PropertyDef(label = "鍑瘉绫诲瀷") - @Column(name = "cVKind", length = 10) - private String cVKind; + @Column(name = "cvkind",length = 10) + private String cvkind; @PropertyDef(label = "鏈熼棿") - @Column(name = "cMon", length = 3) - private Double cMon; + @Column(name = "cmon") + private Integer cmon; @PropertyDef(label = "骞村害") - @Column(name = "cYear", length = 4) - private Double cYear; + @Column(name = "cyear") + private Integer cyear; @PropertyDef(label = "鍑瘉鍙�") - @Column(name = "nVNo", length = 9) - private Double nVNo; + @Column(name = "nvno") + private Integer nvno; @PropertyDef(label = "绉戠洰缂栫爜") - @Column(name = "cCode", length = 80) - private String cCode; + @Column(name = "ccode", length = 80) + private String ccode; @PropertyDef(label = "瀵规柟绉戠洰缂栫爜") - @Column(name = "cDFCode", length = 80) - private String cDFCode; + @Column(name = "cdfcode", length = 80) + private String cdfcode; @PropertyDef(label = "鐜伴噾娴侀噺椤圭洰浠g爜") - @Column(name = "cCashCode", length = 80) - private String cCashCode; + @Column(name = "ccashcode", length = 80) + private String ccashcode; @PropertyDef(label = "鍒嗗綍搴忓彿") - @Column(name = "nNo", precision = 9) - private Double nNo; + @Column(name = "nrowno") + private Integer nrowno; @PropertyDef(label = "閲戦") - @Column(name = "nM", precision = 20,scale = 4) - private Double nM; + @Column(name = "nm", precision = 20,scale = 4) + private Double nm; /** * 1:娴佸叆 * -1:娴佸嚭 */ @PropertyDef(label = "鏂瑰悜") - @Column(name = "cDc", length = 3) - private String cDc; + @Column(name = "cdc") + private Integer cdc; + + @PropertyDef(label = "缁熶竴搴撳尯缂栫爜") + @Column(name = "tykqbm", length = 22) + private String tykqbm; @PropertyDef(label = "鎿嶄綔鏍囧織") diff --git a/src/main/java/com/fzzy/api/entity/Api1509.java b/src/main/java/com/fzzy/api/entity/Api1509.java index 7105e4a..67e6973 100644 --- a/src/main/java/com/fzzy/api/entity/Api1509.java +++ b/src/main/java/com/fzzy/api/entity/Api1509.java @@ -2,13 +2,11 @@ import com.alibaba.fastjson.annotation.JSONField; import com.bstek.dorado.annotation.PropertyDef; +import com.fasterxml.jackson.annotation.JsonProperty; import lombok.Data; import lombok.EqualsAndHashCode; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.Table; +import javax.persistence.*; import java.io.Serializable; import java.util.Date; @@ -31,38 +29,41 @@ * 閫氳繃鎺ュ彛鑾峰彇鐨勫崟浣嶈处濂楀悗锛屽湪灞�绔嚜鍔ㄤ骇鐢熻处濂楀彿 */ @Id + @Column(name = "ID_", precision = 18) @JSONField(serialize = false) + private String id; + @PropertyDef(label = "璐﹀鍙�") - @Column(name = "nAcctId", length = 9) - private Double nAcctId; + @Column(name = "nacctid", length = 23) + private String nacctid; @PropertyDef(label = "鍥哄畾璧勪骇缂栫爜") - @Column(name = "fixAssetCode", length = 20) - private String fixAssetCode; + @Column(name = "fixassetcode", length = 20) + private String fixassetcode; @PropertyDef(label = "鍥哄畾璧勪骇鑷紪鐮�") - @Column(name = "origFixAssetCode", length = 20) - private String origFixAssetCode; + @Column(name = "origfixassetcode", length = 20) + private String origfixassetcode; @PropertyDef(label = "璧勪骇绫诲埆缂栫爜") - @Column(name = "groupCode", length = 20) - private String groupCode; + @Column(name = "groupcode", length = 20) + private String groupcode; @PropertyDef(label = "鍥哄畾璧勪骇鍚嶇О") - @Column(name = "fixAssetName", length = 80) - private String fixAssetName; + @Column(name = "fixassetname", length = 80) + private String fixassetname; @PropertyDef(label = "璁¢噺鍗曚綅鍚嶇О") - @Column(name = "unitName", length = 20) - private String unitName; + @Column(name = "unitname", length = 20) + private String unitname; @PropertyDef(label = "鍘熷��") - @Column(name = "valueOrg", length = 20, scale = 4) - private Double valueOrg; + @Column(name = "valueorg", length = 20, scale = 4) + private Double valueorg; @PropertyDef(label = "褰撳墠鍘熷��") - @Column(name = "dresentValueOrg", length = 20, scale = 4) - private Double dresentValueOrg; + @Column(name = "dresentvalueorg", length = 20, scale = 4) + private Double dresentvalueorg; /** * 1:涓嶆彁鎶樻棫娉� * 2:骞冲潎骞撮檺娉� @@ -72,12 +73,9 @@ * 6:鍙屽�嶄綑棰濋�掑噺娉� */ @PropertyDef(label = "鎶樻棫鏂规硶") - @Column(name = "deprMethodId", length = 20, scale = 4) - private Double deprMethodId; + @Column(name = "deprmethodid") + private Integer deprmethodid; - @PropertyDef(label = "鍥哄畾璧勪骇鏉ユ簮") - @Column(name = "sourceid", length = 12) - private Double sourceid; /** * 1:鎶曡祫 * 2:鑷缓 @@ -88,9 +86,9 @@ * 7:鎹愯禒 * 8:鎹㈠叆 */ - @PropertyDef(label = "瀵规柟绉戠洰缂栫爜") - @Column(name = "cDFCode", length = 80) - private String cDFCode; + @PropertyDef(label = "鍥哄畾璧勪骇鏉ユ簮") + @Column(name = "sourceid") + private Integer sourceid; @PropertyDef(label = "鍨嬪彿") @Column(name = "model", length = 40) @@ -105,23 +103,23 @@ private String manufacturer; @PropertyDef(label = "浜у湴") - @Column(name = "makingPlace", length = 40) - private String makingPlace; + @Column(name = "makingplace", length = 40) + private String makingplace; @JSONField(format = "yyyy-MM-dd") @PropertyDef(label = "杩涘崟浣嶆棩鏈�") - @Column(name = "enterDay", length = 10) - private String enterDay; + @Column(name = "enterday", length = 10) + private Date enterday; @JSONField(format = "yyyy-MM-dd") @PropertyDef(label = "寮�濮嬩娇鐢ㄦ棩鏈�") - @Column(name = "beginUseDay", length = 10) - private String beginUseDay; + @Column(name = "beginuseday", length = 10) + private Date beginuseday; @JSONField(format = "yyyy-MM-dd") @PropertyDef(label = "寤哄崱鏃ユ湡") - @Column(name = "makinDay", length = 10) - private String makinDay; + @Column(name = "makinday", length = 10) + private Date makinday; @PropertyDef(label = "绠$悊浜�") @Column(name = "keeper", length = 20) @@ -132,31 +130,31 @@ private String maker; @PropertyDef(label = "棰勮浣跨敤鏈熼棿鏁�") - @Column(name = "usingPeriods", precision = 12) - private Double usingPeriods; + @Column(name = "usingperiods") + private Integer usingperiods; @PropertyDef(label = "棰勮鍑�娈嬪��") - @Column(name = "expecRemain", precision = 20, scale = 4) - private Double expecRemain; + @Column(name = "expecremain", precision = 20, scale = 4) + private Double expecremain; @PropertyDef(label = "鍥哄畾璧勪骇瀵瑰簲绉戠洰缂栫爜") - @Column(name = "assetAcctCode", length = 20) - private String assetAcctCode; + @Column(name = "assetacctcode", length = 20) + private String assetacctcode; @PropertyDef(label = "绱鎶樻棫瀵瑰簲绉戠洰缂栫爜") - @Column(name = "deprAcctCode", length = 20) - private String deprAcctCode; + @Column(name = "depracctcode", length = 20) + private String depracctcode; @PropertyDef(label = "绱鎶樻棫") - @Column(name = "accumulateDepr", precision = 20, scale = 4) - private Double accumulateDepr; + @Column(name = "accumulatedepr", precision = 20, scale = 4) + private Double accumulatedepr; /** * 0:鍚� * 1:鏄� */ @PropertyDef(label = "鏄惁鎶ュ簾娓呯悊") - @Column(name = "abadoned", length = 20) + @Column(name = "abadoned", length = 1) private String abadoned; /** @@ -168,13 +166,17 @@ * 6:鐩樹簭 */ @PropertyDef(label = "褰撳墠浣跨敤鐘舵�佸悕绉�") - @Column(name = "presentStatus", length = 20) - private String presentStatus; + @Column(name = "presentstatus", length = 20) + private String presentstatus; @PropertyDef(label = "澶囨敞") @Column(name = "notes", length = 512) private String notes; + @PropertyDef(label = "缁熶竴搴撳尯缂栫爜") + @Column(name = "tykqbm", length = 22) + private String tykqbm; + @PropertyDef(label = "鎿嶄綔鏍囧織") @Column(name = "czbz", length = 1) private String czbz; diff --git a/src/main/java/com/fzzy/api/entity/Api1510.java b/src/main/java/com/fzzy/api/entity/Api1510.java index 0e4f3ee..14a92f9 100644 --- a/src/main/java/com/fzzy/api/entity/Api1510.java +++ b/src/main/java/com/fzzy/api/entity/Api1510.java @@ -2,13 +2,11 @@ import com.alibaba.fastjson.annotation.JSONField; import com.bstek.dorado.annotation.PropertyDef; +import com.fasterxml.jackson.annotation.JsonProperty; import lombok.Data; import lombok.EqualsAndHashCode; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.Table; +import javax.persistence.*; import java.io.Serializable; import java.util.Date; @@ -31,86 +29,93 @@ * 閫氳繃鎺ュ彛鑾峰彇鐨勫崟浣嶈处濂楀悗锛屽湪灞�绔嚜鍔ㄤ骇鐢熻处濂楀彿 */ @Id + @Column(name = "ID_", precision = 18) @JSONField(serialize = false) + private String id; + @PropertyDef(label = "璐﹀鍙�") - @Column(name = "nAcctId", length = 9) - private Double nAcctId; + @Column(name = "nacctid", length = 23) + private String nacctid; @PropertyDef(label = "鍥哄畾璧勪骇缂栫爜") - @Column(name = "fixAssetCode", length = 20) - private String fixAssetCode; + @Column(name = "fixassetcode", length = 20) + private String fixassetcode; @PropertyDef(label = "鏈熼棿") - @Column(name = "period", precision = 4) - private Double period; + @Column(name = "period") + private Integer period; @PropertyDef(label = "骞村害") - @Column(name = "AcctYear", precision = 4) - private Double AcctYear; + @Column(name = "acctyear") + private Integer acctyear; @PropertyDef(label = "鏈熷垵鍘熷��") - @Column(name = "bValueOrg", precision = 20, scale = 4) - private Double bValueOrg; + @Column(name = "bvalueorg", precision = 20, scale = 4) + private Double bvalueorg; @PropertyDef(label = "绱鎶樻棫") - @Column(name = "bAccumDepr", precision = 20, scale = 4) - private Double bAccumDepr; + @Column(name = "baccumdepr", precision = 20, scale = 4) + private Double baccumdepr; @PropertyDef(label = "鏈湡璁℃彁鎶樻棫") - @Column(name = "deprAmmount", precision = 20, scale = 4) - private Double deprAmmount; + @Column(name = "deprammount", precision = 20, scale = 4) + private Double deprammount; @PropertyDef(label = "鏈勾绱璁℃彁鎶樻棫") - @Column(name = "yAccumDepr", precision = 20, scale = 4) - private Double yAccumDepr; + @Column(name = "yaccumdepr", precision = 20, scale = 4) + private Double yaccumdepr; @PropertyDef(label = "鏈湡鏁伴噺澧炲姞") - @Column(name = "qtyAdd", precision = 20, scale = 4) - private Double qtyAdd; + @Column(name = "qtyadd", precision = 20, scale = 4) + private Double qtyadd; @PropertyDef(label = "鏈湡鏁伴噺鍑忓皯") - @Column(name = "qtyDecrease", precision = 20, scale = 4) - private Double qtyDecrease; + @Column(name = "qtydecrease", precision = 20, scale = 4) + private Double qtydecrease; @PropertyDef(label = "鏈湡鍘熷�煎鍔�") - @Column(name = "valueOrgAdd", precision = 20, scale = 4) - private Double valueOrgAdd; + @Column(name = "valueorgadd", precision = 20, scale = 4) + private Double valueorgadd; @PropertyDef(label = "鏈湡鍘熷�煎噺灏�") - @Column(name = "valueOrgDerease", precision = 20, scale = 4) - private Double valueOrgDerease; + @Column(name = "valueorgderease", precision = 20, scale = 4) + private Double valueorgderease; @PropertyDef(label = "鏈湡绱鎶樻棫璋冨") - @Column(name = "accuDeprAdjustAdd", precision = 20, scale = 4) - private Double accuDeprAdjustAdd; + @Column(name = "accudepradjustadd", precision = 20, scale = 4) + private Double accudepradjustadd; @PropertyDef(label = "鏈湡绱鎶樻棫璋冨噺") - @Column(name = "accuDeprAdjustDec", precision = 20, scale = 4) - private Double accuDeprAdjustDec; + @Column(name = "accudepradjustdec", precision = 20, scale = 4) + private Double accudepradjustdec; @PropertyDef(label = "鏈勾绱鏁伴噺澧炲姞") - @Column(name = "yQtyIncrease", precision = 20, scale = 4) - private Double yQtyIncrease; + @Column(name = "yqtyincrease", precision = 20, scale = 4) + private Double yqtyIncrease; @PropertyDef(label = "鏈勾绱鏁伴噺鍑忓皯") - @Column(name = "yQtyDecrease", precision = 20, scale = 4) - private Double yQtyDecrease; + @Column(name = "yqtydecrease", precision = 20, scale = 4) + private Double yqtydecrease; @PropertyDef(label = "鏈勾鍘熷�肩疮璁″鍔�") - @Column(name = "yValueIncrease", precision = 20, scale = 4) - private Double yValueIncrease; + @Column(name = "yvalueincrease", precision = 20, scale = 4) + private Double yvalueincrease; @PropertyDef(label = "鏈勾鍘熷�肩疮璁″噺灏�") - @Column(name = "yValueDecrease", precision = 20, scale = 4) - private Double yValueDecrease; + @Column(name = "yvaluedecrease", precision = 20, scale = 4) + private Double yvaluedecrease; @PropertyDef(label = "鏈勾绱鎶樻棫璋冨") - @Column(name = "yAccuDeprIncrease", precision = 20, scale = 4) - private Double yAccuDeprIncrease; + @Column(name = "yaccudeprincrease", precision = 20, scale = 4) + private Double yaccudeprincrease; @PropertyDef(label = "鏈勾绱鎶樻棫璋冨噺") - @Column(name = "YAccuDeprDecrease", precision = 20, scale = 4) - private Double YAccuDeprDecrease; + @Column(name = "yaccudeprdecrease", precision = 20, scale = 4) + private Double yaccudeprdecrease; + + @PropertyDef(label = "缁熶竴搴撳尯缂栫爜") + @Column(name = "tykqbm", length = 22) + private String tykqbm; @PropertyDef(label = "鎿嶄綔鏍囧織") @Column(name = "czbz", length = 1) diff --git a/src/main/java/com/fzzy/api/view/Api1504.view.xml b/src/main/java/com/fzzy/api/view/Api1504.view.xml new file mode 100644 index 0000000..ab54137 --- /dev/null +++ b/src/main/java/com/fzzy/api/view/Api1504.view.xml @@ -0,0 +1,432 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ViewConfig> + <Arguments/> + <Context/> + <Model> + <DataType name="dtMain"> + <Property name="creationType">com.fzzy.api.entity.Api1504</Property> + <PropertyDef name="nacctid"> + <Property></Property> + <Property name="label">璐﹀鍙�</Property> + </PropertyDef> + <PropertyDef name="cncctname"> + <Property></Property> + <Property name="label">璐﹀鍚嶇О</Property> + </PropertyDef> + <PropertyDef name="ccurrency"> + <Property></Property> + <Property name="label">鏈綅甯�</Property> + <Property name="defaultValue">RMB</Property> + </PropertyDef> + <PropertyDef name="cacctchief"> + <Property></Property> + <Property name="label">浼氳涓荤</Property> + </PropertyDef> + <PropertyDef name="cperiodstart"> + <Property></Property> + <Property name="label">鍚敤鏈熼棿</Property> + <Property name="dataType">Date</Property> + <Property name="displayFormat">Ym</Property> + </PropertyDef> + <PropertyDef name="cyearbmd"> + <Property></Property> + <Property name="label">鍚敤鏃ユ湡</Property> + <Property name="dataType">Date</Property> + </PropertyDef> + <PropertyDef name="nacctperiodnum"> + <Property name="dataType">Integer</Property> + <Property name="label">鏈熼棿鏁�</Property> + </PropertyDef> + <PropertyDef name="caccclasscode"> + <Property></Property> + <Property name="label">浼氳鍒跺害浠g爜</Property> + </PropertyDef> + <PropertyDef name="naccgrade"> + <Property name="dataType">Integer</Property> + <Property name="label">绉戠洰绾ф</Property> + </PropertyDef> + <PropertyDef name="cacccodestr"> + <Property></Property> + <Property name="label">绉戠洰缂栫爜瑙勫垯</Property> + </PropertyDef> + <PropertyDef name="ccropname"> + <Property></Property> + <Property name="label">鍗曚綅鍚嶇О</Property> + </PropertyDef> + <PropertyDef name="corgcode"> + <Property></Property> + <Property name="label">鍗曚綅浠g爜</Property> + </PropertyDef> + <PropertyDef name="tydwbm"> + <Property></Property> + <Property name="label">缁熶竴鍗曚綅缂栫爜</Property> + </PropertyDef> + <PropertyDef name="tykqbm"> + <Property></Property> + <Property name="label">缁熶竴搴撳尯缂栫爜</Property> + </PropertyDef> + <PropertyDef name="bizId"> + <Property></Property> + <Property name="label">涓氬姟id</Property> + </PropertyDef> + <PropertyDef name="kqdm"> + <Property></Property> + <Property name="label">搴撳尯浠g爜</Property> + </PropertyDef> + <PropertyDef name="syncTime"> + <Property name="dataType">Date</Property> + <Property name="label">鍚屾鏃堕棿</Property> + </PropertyDef> + <PropertyDef name="czbz"> + <Property></Property> + <Property name="label">鎿嶄綔鏍囧織</Property> + <Property name="mapping"> + <Property name="mapValues">${dorado.getDataProvider("apiTriggerService#trigger").getResult("CZBZ")}</Property> + <Property name="keyProperty">code</Property> + <Property name="valueProperty">name</Property> + </Property> + </PropertyDef> + <PropertyDef name="zhgxsj"> + <Property name="dataType">DateTime</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">api1504PR#listAll</Property> + </DataSet> + <ToolBar> + <ToolBarLabel> + <Property name="text">宸ュ叿鏍忥細</Property> + <Property name="style"> + <Property name="font-weight">bold</Property> + </Property> + </ToolBarLabel> + <ToolBarButton> + <ClientEvent name="onClick">view.get("#dsMain").flushAsync();
 +</ClientEvent> + <Property name="caption">鍒锋柊</Property> + <Property name="iconClass">fa fa-search</Property> + <Property name="width">100</Property> + <Property name="exClassName">toolbar-button-push</Property> + </ToolBarButton> + <ToolBarButton> + <ClientEvent name="onClick">view.get("#dsMain").insert();
 +view.get("#dialogMain").show();</ClientEvent> + <Property name="caption">鏂板</Property> + <Property name="iconClass">fa fa-plus</Property> + <Property name="width">100</Property> + <Property name="exClassName">toolbar-button</Property> + </ToolBarButton> + <ToolBarButton> + <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 +if(cur){
 + view.get("#dialogMain").show();
 +}else{
 + $alert("璇峰嬀閫夐渶瑕佷慨鏀圭殑鏁版嵁锛�");
 +}
 +</ClientEvent> + <Property name="caption">淇敼</Property> + <Property name="iconClass">fa fa-pencil</Property> + <Property name="width">100</Property> + <Property name="exClassName">toolbar-button-warm</Property> + </ToolBarButton> + <Separator/> + <ToolBarButton> + <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 +if(cur){
 + view.get("#ajaxDelUpdate").set("parameter",cur).execute(function(result){
 + if(result){
 + $alert(result);
 + } else{
 + cur.set("czbz","d");
 + }
 + });
 +}else{
 + $alert("璇峰嬀閫夐渶瑕佹爣璁板垹闄ょ殑鏁版嵁锛�");
 +}
 +</ClientEvent> + <Property name="caption">鏍囪鍒犻櫎</Property> + <Property name="iconClass">fa fa-minus</Property> + <Property name="exClassName">toolbar-button-warn</Property> + <Property name="width">100</Property> + </ToolBarButton> + <ToolBarButton> + <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">toolbar-button-warn</Property> + <Property name="width">100</Property> + </ToolBarButton> + <Separator/> + <ToolBarButton> + <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">toolbar-button-push</Property> + <Property name="width">100</Property> + </ToolBarButton> + <Fill/> + <ToolBarButton> + <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">toolbar-button</Property> + </ToolBarButton> + </ToolBar> + <DataGrid id="dgMain"> + <Property name="dataSet">dsMain</Property> + <Property name="selectionMode">multiRows</Property> + <Property name="readOnly">true</Property> + <RowNumColumn/> + <RowSelectorColumn> + <Property name="caption">涓婁紶</Property> + </RowSelectorColumn> + <DataColumn name="kqdm"> + <Property name="property">kqdm</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="nacctid"> + <Property name="property">nacctid</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="cncctname"> + <Property name="property">cncctname</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="cperiodstart"> + <Property name="property">cperiodstart</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="cyearbmd"> + <Property name="property">cyearbmd</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="cacccodestr"> + <Property name="property">cacccodestr</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="ccropname"> + <Property name="property">ccropname</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="corgcode"> + <Property name="property">corgcode</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="czbz"> + <Property name="property">czbz</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="zhgxsj"> + <Property name="property">zhgxsj</Property> + <Property name="align">center</Property> + </DataColumn> + </DataGrid> + <Dialog id="dialogMain"> + <Property name="caption">璐﹀淇℃伅</Property> + <Property name="iconClass">fa fa-sliders</Property> + <Property name="closeable">false</Property> + <Property name="width">80%</Property> + <Buttons> + <Button> + <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 +view.get("#updateSave").execute(function(){
 + self.get("parent").hide();
 + view.get("#dsMain").flushAsync();
 +});
 +</ClientEvent> + <Property name="caption">淇濆瓨淇敼</Property> + <Property name="iconClass">fa fa-check</Property> + <Property name="exClassName">toolbar-button</Property> + </Button> + <Button> + <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 +self.get("parent").hide();
 +if(cur) cur.cancel();</ClientEvent> + <Property name="caption">鍙栨秷淇敼</Property> + <Property name="iconClass">fa fa-times</Property> + <Property name="exClassName">toolbar-button-warn</Property> + </Button> + </Buttons> + <Children> + <AutoForm> + <Property name="dataSet">dsMain</Property> + <Property name="cols">*,*,*</Property> + <Property name="labelWidth">100</Property> + <Property name="labelAlign">left</Property> + <Property name="labelSeparator">锛�</Property> + <Property name="labelPosition">top</Property> + <AutoFormElement> + <Property name="name">nacctid</Property> + <Property name="property">nacctid</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">cncctname</Property> + <Property name="property">cncctname</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">ccurrency</Property> + <Property name="property">ccurrency</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">cacctchief</Property> + <Property name="property">cacctchief</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">cperiodstart</Property> + <Property name="property">cperiodstart</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">cyearbmd</Property> + <Property name="property">cyearbmd</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">nacctperiodnum</Property> + <Property name="property">nacctperiodnum</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">caccclasscode</Property> + <Property name="property">caccclasscode</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">naccgrade</Property> + <Property name="property">naccgrade</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">cacccodestr</Property> + <Property name="property">cacccodestr</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">ccropname</Property> + <Property name="property">ccropname</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">corgcode</Property> + <Property name="property">corgcode</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">tydwbm</Property> + <Property name="property">tydwbm</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">tykqbm</Property> + <Property name="property">tykqbm</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">czbz</Property> + <Property name="property">czbz</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">zhgxsj</Property> + <Property name="property">zhgxsj</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">bizId</Property> + <Property name="property">bizId</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">kqdm</Property> + <Property name="property">kqdm</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">syncTime</Property> + <Property name="property">syncTime</Property> + <Editor/> + </AutoFormElement> + </AutoForm> + </Children> + <Tools/> + </Dialog> + <UpdateAction id="updateSave"> + <Property name="dataResolver">api1504PR#updateSave</Property> + <UpdateItem> + <Property name="dataPath">[#current]</Property> + <Property name="dataSet">dsMain</Property> + </UpdateItem> + </UpdateAction> + <AjaxAction id="ajaxPush"> + <Property name="service">api1504PR#pushData</Property> + <Property name="confirmMessage">纭畾瑕佷笂鎶ヤ箞锛�</Property> + </AjaxAction> + <AjaxAction id="ajaxDel"> + <Property name="service">api1504PR#delData</Property> + <Property name="confirmMessage">褰撳墠鏁版嵁鍒犻櫎鍚庢棤娉曟仮澶嶏紝璇风‘璁よ鍒犻櫎涔堬紵</Property> + </AjaxAction> + <AjaxAction id="ajaxDelUpdate"> + <Property name="service">api1504PR#delUpdate</Property> + <Property name="confirmMessage">纭畾瑕佸皢鏁版嵁鏍囪涓哄垹闄や箞锛�</Property> + </AjaxAction> + <Dialog id="dialogLog"> + <Property name="width">90%</Property> + <Property name="height">90%</Property> + <Property name="caption">涓婁紶璁板綍</Property> + <Property name="iconClass">fa fa-sliders</Property> + <Buttons> + <Button> + <ClientEvent name="onClick">self.get("parent").hide();</ClientEvent> + <Property name="caption">鍏抽棴</Property> + <Property name="iconClass">fa fa-times</Property> + <Property name="exClassName">toolbar-button-warn</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> + </View> +</ViewConfig> diff --git a/src/main/java/com/fzzy/api/view/Api1505.view.xml b/src/main/java/com/fzzy/api/view/Api1505.view.xml new file mode 100644 index 0000000..8712a69 --- /dev/null +++ b/src/main/java/com/fzzy/api/view/Api1505.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.api.entity.Api1505</Property> + <PropertyDef name="bizId"> + <Property></Property> + <Property name="label">涓氬姟id</Property> + </PropertyDef> + <PropertyDef name="kqdm"> + <Property></Property> + <Property name="label">搴撳尯浠g爜</Property> + </PropertyDef> + <PropertyDef name="syncTime"> + <Property name="dataType">Date</Property> + <Property name="label">鍚屾鏃堕棿</Property> + </PropertyDef> + <PropertyDef name="id"> + <Property></Property> + </PropertyDef> + <PropertyDef name="nacctid"> + <Property></Property> + <Property name="label">璐﹀鍙�</Property> + </PropertyDef> + <PropertyDef name="cyear"> + <Property name="dataType">Integer</Property> + <Property name="label">骞村害</Property> + </PropertyDef> + <PropertyDef name="ccode"> + <Property></Property> + <Property name="label">绉戠洰缂栫爜</Property> + </PropertyDef> + <PropertyDef name="cname"> + <Property></Property> + <Property name="label">绉戠洰鍚嶇О</Property> + </PropertyDef> + <PropertyDef name="callname"> + <Property></Property> + <Property name="label">绉戠洰鍏ㄧО</Property> + </PropertyDef> + <PropertyDef name="nclass"> + <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> + </Collection> + </Property> + </Property> + </PropertyDef> + <PropertyDef name="cdc"> + <Property name="dataType">Integer</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">1</Property> + <Property name="value">1-鍊熸柟</Property> + </Entity> + </Collection> + </Property> + </Property> + </PropertyDef> + <PropertyDef name="bl"> + <Property name="dataType">Integer</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">0</Property> + <Property name="value">0:鍚�</Property> + </Entity> + <Entity> + <Property name="key">1</Property> + <Property name="value">1:鏄�</Property> + </Entity> + </Collection> + </Property> + </Property> + </PropertyDef> + <PropertyDef name="ngrade"> + <Property name="dataType">Integer</Property> + <Property name="label">绉戠洰绾ф</Property> + </PropertyDef> + <PropertyDef name="bq"> + <Property name="dataType">Integer</Property> + <Property name="label">鏁伴噺绉戠洰</Property> + <Property name="mapping"> + <Property name="mapValues">[Entity]</Property> + <Property name="keyProperty">key</Property> + <Property name="valueProperty">value</Property> + </Property> + </PropertyDef> + <PropertyDef name="cqunit"> + <Property name="dataType">Integer</Property> + <Property name="label">鏁伴噺鍗曚綅</Property> + </PropertyDef> + <PropertyDef name="bcash"> + <Property name="dataType">Integer</Property> + <Property name="label">鐜伴噾绫荤鐩�</Property> + </PropertyDef> + <PropertyDef name="bbank"> + <Property name="dataType">Integer</Property> + <Property name="label">閾惰绫荤鐩�</Property> + </PropertyDef> + <PropertyDef name="bxjll"> + <Property name="dataType">Integer</Property> + <Property name="label">鐜伴噾娴侀噺绫荤鐩�</Property> + </PropertyDef> + <PropertyDef name="bf"> + <Property name="dataType">Integer</Property> + <Property name="label">鍐荤粨</Property> + </PropertyDef> + <PropertyDef name="tykqbm"> + <Property></Property> + <Property name="label">缁熶竴搴撳尯缂栫爜</Property> + </PropertyDef> + <PropertyDef name="czbz"> + <Property></Property> + <Property name="label">鎿嶄綔鏍囧織</Property> + <Property name="mapping"> + <Property name="mapValues">${dorado.getDataProvider("apiTriggerService#trigger").getResult("CZBZ")}</Property> + <Property name="keyProperty">code</Property> + <Property name="valueProperty">name</Property> + </Property> + </PropertyDef> + <PropertyDef name="zhgxsj"> + <Property name="dataType">DateTime</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">api1505PR#listAll</Property> + </DataSet> + <ToolBar> + <ToolBarLabel> + <Property name="text">宸ュ叿鏍忥細</Property> + <Property name="style"> + <Property name="font-weight">bold</Property> + </Property> + </ToolBarLabel> + <ToolBarButton> + <ClientEvent name="onClick">view.get("#dsMain").flushAsync();
 +</ClientEvent> + <Property name="caption">鍒锋柊</Property> + <Property name="iconClass">fa fa-search</Property> + <Property name="width">100</Property> + <Property name="exClassName">toolbar-button-push</Property> + </ToolBarButton> + <ToolBarButton> + <ClientEvent name="onClick">view.get("#dsMain").insert();
 +view.get("#dialogMain").show();</ClientEvent> + <Property name="caption">鏂板</Property> + <Property name="iconClass">fa fa-plus</Property> + <Property name="width">100</Property> + <Property name="exClassName">toolbar-button</Property> + </ToolBarButton> + <ToolBarButton> + <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 +if(cur){
 + view.get("#dialogMain").show();
 +}else{
 + $alert("璇峰嬀閫夐渶瑕佷慨鏀圭殑鏁版嵁锛�");
 +}
 +</ClientEvent> + <Property name="caption">淇敼</Property> + <Property name="iconClass">fa fa-pencil</Property> + <Property name="width">100</Property> + <Property name="exClassName">toolbar-button-warm</Property> + </ToolBarButton> + <Separator/> + <ToolBarButton> + <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 +if(cur){
 + view.get("#ajaxDelUpdate").set("parameter",cur).execute(function(result){
 + if(result){
 + $alert(result);
 + } else{
 + cur.set("czbz","d");
 + }
 + });
 +}else{
 + $alert("璇峰嬀閫夐渶瑕佹爣璁板垹闄ょ殑鏁版嵁锛�");
 +}
 +</ClientEvent> + <Property name="caption">鏍囪鍒犻櫎</Property> + <Property name="iconClass">fa fa-minus</Property> + <Property name="exClassName">toolbar-button-warn</Property> + <Property name="width">100</Property> + </ToolBarButton> + <ToolBarButton> + <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">toolbar-button-warn</Property> + <Property name="width">100</Property> + </ToolBarButton> + <Separator/> + <ToolBarButton> + <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">toolbar-button-push</Property> + <Property name="width">100</Property> + </ToolBarButton> + <Fill/> + <ToolBarButton> + <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">toolbar-button</Property> + </ToolBarButton> + </ToolBar> + <DataGrid id="dgMain"> + <Property name="dataSet">dsMain</Property> + <Property name="selectionMode">multiRows</Property> + <Property name="readOnly">true</Property> + <RowNumColumn/> + <RowSelectorColumn> + <Property name="caption">涓婁紶</Property> + </RowSelectorColumn> + <DataColumn name="kqdm"> + <Property name="property">kqdm</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="nacctid"> + <Property name="property">nacctid</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="cyear"> + <Property name="property">cyear</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="ccode"> + <Property name="property">ccode</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="cname"> + <Property name="property">cname</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="bq"> + <Property name="property">bq</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="cqunit"> + <Property name="property">cqunit</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="bcash"> + <Property name="property">bcash</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="zhgxsj"> + <Property name="property">zhgxsj</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="czbz"> + <Property name="property">czbz</Property> + <Property name="align">center</Property> + </DataColumn> + </DataGrid> + <Dialog id="dialogMain"> + <Property name="width">80%</Property> + <Property name="caption">鍒╂鼎淇℃伅</Property> + <Property name="iconClass">fa fa-sliders</Property> + <Property name="closeable">false</Property> + <Buttons> + <Button> + <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 +view.get("#updateSave").execute(function(){
 + self.get("parent").hide();
 + view.get("#dsMain").flushAsync();
 +});
 +</ClientEvent> + <Property name="caption">淇濆瓨淇敼</Property> + <Property name="iconClass">fa fa-check</Property> + <Property name="exClassName">toolbar-button</Property> + </Button> + <Button> + <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 +self.get("parent").hide();
 +if(cur) cur.cancel();</ClientEvent> + <Property name="caption">鍙栨秷淇敼</Property> + <Property name="iconClass">fa fa-times</Property> + <Property name="exClassName">toolbar-button-warn</Property> + </Button> + </Buttons> + <Children> + <AutoForm> + <Property name="dataSet">dsMain</Property> + <Property name="cols">*,*,*</Property> + <Property name="labelWidth">100</Property> + <Property name="labelAlign">left</Property> + <Property name="labelSeparator">锛�</Property> + <Property name="labelPosition">top</Property> + <AutoFormElement> + <Property name="name">kqdm</Property> + <Property name="property">kqdm</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">nacctid</Property> + <Property name="property">nacctid</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">cyear</Property> + <Property name="property">cyear</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">ccode</Property> + <Property name="property">ccode</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">cname</Property> + <Property name="property">cname</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">callname</Property> + <Property name="property">callname</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">nclass</Property> + <Property name="property">nclass</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">cdc</Property> + <Property name="property">cdc</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">bl</Property> + <Property name="property">bl</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">ngrade</Property> + <Property name="property">ngrade</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">bq</Property> + <Property name="property">bq</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">cqunit</Property> + <Property name="property">cqunit</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">bcash</Property> + <Property name="property">bcash</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">bbank</Property> + <Property name="property">bbank</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">bxjll</Property> + <Property name="property">bxjll</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">bf</Property> + <Property name="property">bf</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">tykqbm</Property> + <Property name="property">tykqbm</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">zhgxsj</Property> + <Property name="property">zhgxsj</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">czbz</Property> + <Property name="property">czbz</Property> + <Editor/> + </AutoFormElement> + </AutoForm> + </Children> + <Tools/> + </Dialog> + <UpdateAction id="updateSave"> + <Property name="dataResolver">api1505PR#updateSave</Property> + <UpdateItem> + <Property name="dataPath">[#current]</Property> + <Property name="dataSet">dsMain</Property> + </UpdateItem> + </UpdateAction> + <AjaxAction id="ajaxPush"> + <Property name="service">api1505PR#pushData</Property> + <Property name="confirmMessage">纭畾瑕佷笂鎶ヤ箞锛�</Property> + </AjaxAction> + <AjaxAction id="ajaxDel"> + <Property name="service">api1505PR#delData</Property> + <Property name="confirmMessage">褰撳墠鏁版嵁鍒犻櫎鍚庢棤娉曟仮澶嶏紝璇风‘璁よ鍒犻櫎涔堬紵</Property> + </AjaxAction> + <AjaxAction id="ajaxDelUpdate"> + <Property name="service">api1505PR#delUpdate</Property> + <Property name="confirmMessage">纭畾瑕佸皢鏁版嵁鏍囪涓哄垹闄や箞锛�</Property> + </AjaxAction> + <Dialog id="dialogLog"> + <Property name="width">90%</Property> + <Property name="height">90%</Property> + <Property name="caption">涓婁紶璁板綍</Property> + <Property name="iconClass">fa fa-sliders</Property> + <Buttons> + <Button> + <ClientEvent name="onClick">self.get("parent").hide();</ClientEvent> + <Property name="caption">鍏抽棴</Property> + <Property name="iconClass">fa fa-times</Property> + <Property name="exClassName">toolbar-button-warn</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> + </View> +</ViewConfig> diff --git a/src/main/java/com/fzzy/api/view/Api1506.view.xml b/src/main/java/com/fzzy/api/view/Api1506.view.xml new file mode 100644 index 0000000..8de0a7e --- /dev/null +++ b/src/main/java/com/fzzy/api/view/Api1506.view.xml @@ -0,0 +1,465 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ViewConfig> + <Arguments/> + <Context/> + <Model> + <DataType name="dtMain"> + <Property name="creationType">com.fzzy.api.entity.Api1506</Property> + <PropertyDef name="bizId"> + <Property></Property> + <Property name="label">涓氬姟id</Property> + </PropertyDef> + <PropertyDef name="kqdm"> + <Property></Property> + <Property name="label">搴撳尯浠g爜</Property> + </PropertyDef> + <PropertyDef name="syncTime"> + <Property name="dataType">Date</Property> + <Property name="label">鍚屾鏃堕棿</Property> + </PropertyDef> + <PropertyDef name="id"> + <Property></Property> + </PropertyDef> + <PropertyDef name="nacctid"> + <Property></Property> + <Property name="label">璐﹀鍙�</Property> + </PropertyDef> + <PropertyDef name="cyear"> + <Property name="dataType">Integer</Property> + <Property name="label">鏈熼棿</Property> + </PropertyDef> + <PropertyDef name="nno"> + <Property name="dataType">Integer</Property> + <Property name="label">骞村害</Property> + </PropertyDef> + <PropertyDef name="ccode"> + <Property></Property> + <Property name="label">绉戠洰缂栫爜</Property> + </PropertyDef> + <PropertyDef name="bm"> + <Property name="dataType">Double</Property> + <Property name="label">鏈熷垵鏈綅甯佷綑棰�</Property> + </PropertyDef> + <PropertyDef name="em"> + <Property name="dataType">Double</Property> + <Property name="label">鏈熸湯鏈綅甯佷綑棰�</Property> + </PropertyDef> + <PropertyDef name="bqty"> + <Property name="dataType">Double</Property> + <Property name="label">鏈熷垵鏁伴噺</Property> + </PropertyDef> + <PropertyDef name="eqty"> + <Property name="dataType">Double</Property> + <Property name="label">鏈熸湯鏁伴噺</Property> + </PropertyDef> + <PropertyDef name="cdc"> + <Property name="dataType">Integer</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">1</Property> + <Property name="value">1-鍊熸柟</Property> + </Entity> + </Collection> + </Property> + </Property> + </PropertyDef> + <PropertyDef name="dm"> + <Property name="dataType">Double</Property> + <Property name="label">鍊熸柟鏈綅甯佸彂鐢熼</Property> + </PropertyDef> + <PropertyDef name="cm"> + <Property name="dataType">Double</Property> + <Property name="label">璐锋柟鏈綅甯佸彂鐢熼</Property> + </PropertyDef> + <PropertyDef name="dq"> + <Property name="dataType">Double</Property> + <Property name="label">鍊熸柟鍙戠敓鏁伴噺</Property> + </PropertyDef> + <PropertyDef name="cq"> + <Property name="dataType">Double</Property> + <Property name="label">璐锋柟鍙戠敓鏁伴噺</Property> + </PropertyDef> + <PropertyDef name="bfm"> + <Property name="dataType">Double</Property> + <Property name="label">鏈熷垵澶栧竵浣欓</Property> + </PropertyDef> + <PropertyDef name="efm"> + <Property name="dataType">Double</Property> + <Property name="label">鏈熸湯澶栧竵浣欓</Property> + </PropertyDef> + <PropertyDef name="dfm"> + <Property name="dataType">Double</Property> + <Property name="label">鍊熸柟澶栧竵鍙戠敓棰�</Property> + </PropertyDef> + <PropertyDef name="cfm"> + <Property name="dataType">Double</Property> + <Property name="label">璐锋柟澶栧竵鍙戠敓棰�</Property> + </PropertyDef> + <PropertyDef name="tykqbm"> + <Property></Property> + <Property name="label">缁熶竴搴撳尯缂栫爜</Property> + </PropertyDef> + <PropertyDef name="zhgxsj"> + <Property name="dataType">DateTime</Property> + <Property name="label">鏈�鍚庢洿鏂版椂闂�</Property> + </PropertyDef> + <PropertyDef name="czbz"> + <Property></Property> + <Property name="label">鎿嶄綔鏍囧織</Property> + <Property name="mapping"> + <Property name="mapValues">${dorado.getDataProvider("apiTriggerService#trigger").getResult("CZBZ")}</Property> + <Property name="keyProperty">code</Property> + <Property name="valueProperty">name</Property> + </Property> + </PropertyDef> + </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">api1506PR#listAll</Property> + </DataSet> + <ToolBar> + <ToolBarLabel> + <Property name="text">宸ュ叿鏍忥細</Property> + <Property name="style"> + <Property name="font-weight">bold</Property> + </Property> + </ToolBarLabel> + <ToolBarButton> + <ClientEvent name="onClick">view.get("#dsMain").flushAsync();
 +</ClientEvent> + <Property name="caption">鍒锋柊</Property> + <Property name="iconClass">fa fa-search</Property> + <Property name="width">100</Property> + <Property name="exClassName">toolbar-button-push</Property> + </ToolBarButton> + <ToolBarButton> + <ClientEvent name="onClick">view.get("#dsMain").insert();
 +view.get("#dialogMain").show();</ClientEvent> + <Property name="caption">鏂板</Property> + <Property name="iconClass">fa fa-plus</Property> + <Property name="width">100</Property> + <Property name="exClassName">toolbar-button</Property> + </ToolBarButton> + <ToolBarButton> + <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 +if(cur){
 + view.get("#dialogMain").show();
 +}else{
 + $alert("璇峰嬀閫夐渶瑕佷慨鏀圭殑鏁版嵁锛�");
 +}
 +</ClientEvent> + <Property name="caption">淇敼</Property> + <Property name="iconClass">fa fa-pencil</Property> + <Property name="width">100</Property> + <Property name="exClassName">toolbar-button-warm</Property> + </ToolBarButton> + <Separator/> + <ToolBarButton> + <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 +if(cur){
 + view.get("#ajaxDelUpdate").set("parameter",cur).execute(function(result){
 + if(result){
 + $alert(result);
 + } else{
 + cur.set("czbz","d");
 + }
 + });
 +}else{
 + $alert("璇峰嬀閫夐渶瑕佹爣璁板垹闄ょ殑鏁版嵁锛�");
 +}
 +</ClientEvent> + <Property name="caption">鏍囪鍒犻櫎</Property> + <Property name="iconClass">fa fa-minus</Property> + <Property name="exClassName">toolbar-button-warn</Property> + <Property name="width">100</Property> + </ToolBarButton> + <ToolBarButton> + <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">toolbar-button-warn</Property> + <Property name="width">100</Property> + </ToolBarButton> + <Separator/> + <ToolBarButton> + <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">toolbar-button-push</Property> + <Property name="width">100</Property> + </ToolBarButton> + <Fill/> + <ToolBarButton> + <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">toolbar-button</Property> + </ToolBarButton> + </ToolBar> + <DataGrid id="dgMain"> + <Property name="dataSet">dsMain</Property> + <Property name="selectionMode">multiRows</Property> + <Property name="readOnly">true</Property> + <RowNumColumn/> + <RowSelectorColumn> + <Property name="caption">涓婁紶</Property> + </RowSelectorColumn> + <DataColumn name="kqdm"> + <Property name="property">kqdm</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="nacctid"> + <Property name="property">nacctid</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="cyear"> + <Property name="property">cyear</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="nno"> + <Property name="property">nno</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="eqty"> + <Property name="property">eqty</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="cfm"> + <Property name="property">cfm</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="zhgxsj"> + <Property name="property">zhgxsj</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="czbz"> + <Property name="property">czbz</Property> + <Property name="align">center</Property> + </DataColumn> + </DataGrid> + <Dialog id="dialogMain"> + <Property name="width">80%</Property> + <Property name="caption">鍒╂鼎淇℃伅</Property> + <Property name="iconClass">fa fa-sliders</Property> + <Property name="closeable">false</Property> + <Buttons> + <Button> + <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 +view.get("#updateSave").execute(function(){
 + self.get("parent").hide();
 + view.get("#dsMain").flushAsync();
 +});
 +</ClientEvent> + <Property name="caption">淇濆瓨淇敼</Property> + <Property name="iconClass">fa fa-check</Property> + <Property name="exClassName">toolbar-button</Property> + </Button> + <Button> + <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 +self.get("parent").hide();
 +if(cur) cur.cancel();</ClientEvent> + <Property name="caption">鍙栨秷淇敼</Property> + <Property name="iconClass">fa fa-times</Property> + <Property name="exClassName">toolbar-button-warn</Property> + </Button> + </Buttons> + <Children> + <AutoForm> + <Property name="dataSet">dsMain</Property> + <Property name="cols">*,*,*</Property> + <Property name="labelWidth">100</Property> + <Property name="labelAlign">left</Property> + <Property name="labelSeparator">锛�</Property> + <Property name="labelPosition">top</Property> + <AutoFormElement> + <Property name="name">kqdm</Property> + <Property name="property">kqdm</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">nacctid</Property> + <Property name="property">nacctid</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">cyear</Property> + <Property name="property">cyear</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">nno</Property> + <Property name="property">nno</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">ccode</Property> + <Property name="property">ccode</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">bm</Property> + <Property name="property">bm</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">em</Property> + <Property name="property">em</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">bqty</Property> + <Property name="property">bqty</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">eqty</Property> + <Property name="property">eqty</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">cdc</Property> + <Property name="property">cdc</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">dm</Property> + <Property name="property">dm</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">cm</Property> + <Property name="property">cm</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">dq</Property> + <Property name="property">dq</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">cq</Property> + <Property name="property">cq</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">bfm</Property> + <Property name="property">bfm</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">efm</Property> + <Property name="property">efm</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">dfm</Property> + <Property name="property">dfm</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">cfm</Property> + <Property name="property">cfm</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">tykqbm</Property> + <Property name="property">tykqbm</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">zhgxsj</Property> + <Property name="property">zhgxsj</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">czbz</Property> + <Property name="property">czbz</Property> + <Editor/> + </AutoFormElement> + </AutoForm> + </Children> + <Tools/> + </Dialog> + <UpdateAction id="updateSave"> + <Property name="dataResolver">api1506PR#updateSave</Property> + <UpdateItem> + <Property name="dataPath">[#current]</Property> + <Property name="dataSet">dsMain</Property> + </UpdateItem> + </UpdateAction> + <AjaxAction id="ajaxPush"> + <Property name="service">api1506PR#pushData</Property> + <Property name="confirmMessage">纭畾瑕佷笂鎶ヤ箞锛�</Property> + </AjaxAction> + <AjaxAction id="ajaxDel"> + <Property name="service">api1506PR#delData</Property> + <Property name="confirmMessage">褰撳墠鏁版嵁鍒犻櫎鍚庢棤娉曟仮澶嶏紝璇风‘璁よ鍒犻櫎涔堬紵</Property> + </AjaxAction> + <AjaxAction id="ajaxDelUpdate"> + <Property name="service">api1506PR#delUpdate</Property> + <Property name="confirmMessage">纭畾瑕佸皢鏁版嵁鏍囪涓哄垹闄や箞锛�</Property> + </AjaxAction> + <Dialog id="dialogLog"> + <Property name="width">90%</Property> + <Property name="height">90%</Property> + <Property name="caption">涓婁紶璁板綍</Property> + <Property name="iconClass">fa fa-sliders</Property> + <Buttons> + <Button> + <ClientEvent name="onClick">self.get("parent").hide();</ClientEvent> + <Property name="caption">鍏抽棴</Property> + <Property name="iconClass">fa fa-times</Property> + <Property name="exClassName">toolbar-button-warn</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> + </View> +</ViewConfig> diff --git a/src/main/java/com/fzzy/api/view/Api1507.view.xml b/src/main/java/com/fzzy/api/view/Api1507.view.xml new file mode 100644 index 0000000..ec28b7d --- /dev/null +++ b/src/main/java/com/fzzy/api/view/Api1507.view.xml @@ -0,0 +1,539 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ViewConfig> + <Arguments/> + <Context/> + <Model> + <DataType name="dtMain"> + <Property name="creationType">com.fzzy.api.entity.Api1507</Property> + <PropertyDef name="bizId"> + <Property></Property> + <Property name="label">涓氬姟id</Property> + </PropertyDef> + <PropertyDef name="kqdm"> + <Property></Property> + <Property name="label">搴撳尯浠g爜</Property> + </PropertyDef> + <PropertyDef name="syncTime"> + <Property name="dataType">Date</Property> + <Property name="label">鍚屾鏃堕棿</Property> + </PropertyDef> + <PropertyDef name="id"> + <Property></Property> + </PropertyDef> + <PropertyDef name="nacctid"> + <Property></Property> + <Property name="label">璐﹀鍙�</Property> + </PropertyDef> + <PropertyDef name="cvkind"> + <Property></Property> + <Property name="label">鍑瘉绫诲瀷</Property> + </PropertyDef> + <PropertyDef name="cmon"> + <Property name="dataType">Integer</Property> + <Property name="label">鏈熼棿</Property> + </PropertyDef> + <PropertyDef name="cyear"> + <Property name="dataType">Integer</Property> + <Property name="label">骞村害</Property> + </PropertyDef> + <PropertyDef name="nvno"> + <Property name="dataType">Integer</Property> + <Property name="label">鍑瘉鍙�</Property> + </PropertyDef> + <PropertyDef name="nno"> + <Property name="dataType">Integer</Property> + <Property name="label">鍒嗗綍搴忓彿</Property> + </PropertyDef> + <PropertyDef name="digest"> + <Property></Property> + <Property name="label">鎽樿</Property> + </PropertyDef> + <PropertyDef name="ccode"> + <Property></Property> + <Property name="label">绉戠洰缂栫爜</Property> + </PropertyDef> + <PropertyDef name="ccsmalldatetime"> + <Property></Property> + <Property name="label">鍑瘉鏃ユ湡</Property> + <Property name="dataType">Date</Property> + </PropertyDef> + <PropertyDef name="cmaker"> + <Property></Property> + <Property name="label">鍒跺崟浜�</Property> + </PropertyDef> + <PropertyDef name="cdc"> + <Property name="dataType">Integer</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">1</Property> + <Property name="value">1-鍊熸柟</Property> + </Entity> + </Collection> + </Property> + </Property> + </PropertyDef> + <PropertyDef name="ccker"> + <Property></Property> + <Property name="label">瀹℃牳浜�</Property> + </PropertyDef> + <PropertyDef name="cpter"> + <Property></Property> + <Property name="label">璁拌处浜�</Property> + </PropertyDef> + <PropertyDef name="nanum"> + <Property name="dataType">Integer</Property> + <Property name="label">闄勪欢寮犳暟</Property> + </PropertyDef> + <PropertyDef name="nm"> + <Property name="dataType">Double</Property> + <Property name="label">閲戦</Property> + </PropertyDef> + <PropertyDef name="nqty"> + <Property name="dataType">Double</Property> + <Property name="label">鏁伴噺</Property> + </PropertyDef> + <PropertyDef name="nprice"> + <Property name="dataType">Double</Property> + <Property name="label">鍗曚环</Property> + </PropertyDef> + <PropertyDef name="ccashier"> + <Property></Property> + <Property name="label">鍑虹撼</Property> + </PropertyDef> + <PropertyDef name="rate"> + <Property name="dataType">Double</Property> + <Property name="label">姹囩巼</Property> + </PropertyDef> + <PropertyDef name="nfm"> + <Property name="dataType">Double</Property> + <Property name="label">澶栧竵閲戦</Property> + </PropertyDef> + <PropertyDef name="meterunitid"> + <Property></Property> + <Property name="label">璁¢噺鍗曚綅</Property> + </PropertyDef> + <PropertyDef name="tykqbm"> + <Property></Property> + <Property name="label">缁熶竴搴撳尯缂栫爜</Property> + </PropertyDef> + <PropertyDef name="czbz"> + <Property></Property> + <Property name="label">鎿嶄綔鏍囧織</Property> + <Property name="mapping"> + <Property name="mapValues">${dorado.getDataProvider("apiTriggerService#trigger").getResult("CZBZ")}</Property> + <Property name="keyProperty">code</Property> + <Property name="valueProperty">name</Property> + </Property> + </PropertyDef> + <PropertyDef name="zhgxsj"> + <Property name="dataType">DateTime</Property> + <Property name="label">鏈�鍚庢洿鏂版椂闂�</Property> + </PropertyDef> + <PropertyDef name="bpt"> + <Property name="dataType">Integer</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">0</Property> + <Property name="value">0:鍚�</Property> + </Entity> + <Entity> + <Property name="key">1</Property> + <Property name="value">1:鏄�</Property> + </Entity> + </Collection> + </Property> + </Property> + </PropertyDef> + </DataType> + </Model> + <View layout="regionPadding:10"> + <Property name="packages">font-awesome,css-common</Property> + <DataSet id="dsMain"> + <Property name="dataType">[dtMain]</Property> + <Property name="dataProvider">api1507PR#listAll</Property> + </DataSet> + <ToolBar> + <ToolBarLabel> + <Property name="text">宸ュ叿鏍忥細</Property> + <Property name="style"> + <Property name="font-weight">bold</Property> + </Property> + </ToolBarLabel> + <ToolBarButton> + <ClientEvent name="onClick">view.get("#dsMain").flushAsync();
 +</ClientEvent> + <Property name="caption">鍒锋柊</Property> + <Property name="iconClass">fa fa-search</Property> + <Property name="width">100</Property> + <Property name="exClassName">toolbar-button-push</Property> + </ToolBarButton> + <ToolBarButton> + <ClientEvent name="onClick">view.get("#dsMain").insert();
 +view.get("#dialogMain").show();</ClientEvent> + <Property name="caption">鏂板</Property> + <Property name="iconClass">fa fa-plus</Property> + <Property name="width">100</Property> + <Property name="exClassName">toolbar-button</Property> + </ToolBarButton> + <ToolBarButton> + <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 +if(cur){
 + view.get("#dialogMain").show();
 +}else{
 + $alert("璇峰嬀閫夐渶瑕佷慨鏀圭殑鏁版嵁锛�");
 +}
 +</ClientEvent> + <Property name="caption">淇敼</Property> + <Property name="iconClass">fa fa-pencil</Property> + <Property name="width">100</Property> + <Property name="exClassName">toolbar-button-warm</Property> + </ToolBarButton> + <Separator/> + <ToolBarButton> + <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 +if(cur){
 + view.get("#ajaxDelUpdate").set("parameter",cur).execute(function(result){
 + if(result){
 + $alert(result);
 + } else{
 + cur.set("czbz","d");
 + }
 + });
 +}else{
 + $alert("璇峰嬀閫夐渶瑕佹爣璁板垹闄ょ殑鏁版嵁锛�");
 +}
 +</ClientEvent> + <Property name="caption">鏍囪鍒犻櫎</Property> + <Property name="iconClass">fa fa-minus</Property> + <Property name="exClassName">toolbar-button-warn</Property> + <Property name="width">100</Property> + </ToolBarButton> + <ToolBarButton> + <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">toolbar-button-warn</Property> + <Property name="width">100</Property> + </ToolBarButton> + <Separator/> + <ToolBarButton> + <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">toolbar-button-push</Property> + <Property name="width">100</Property> + </ToolBarButton> + <Fill/> + <ToolBarButton> + <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">toolbar-button</Property> + </ToolBarButton> + </ToolBar> + <DataGrid id="dgMain"> + <Property name="dataSet">dsMain</Property> + <Property name="selectionMode">multiRows</Property> + <Property name="readOnly">true</Property> + <RowNumColumn/> + <RowSelectorColumn> + <Property name="caption">涓婁紶</Property> + </RowSelectorColumn> + <DataColumn name="kqdm"> + <Property name="property">kqdm</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="nacctid"> + <Property name="property">nacctid</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="cvkind"> + <Property name="property">cvkind</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="cmon"> + <Property name="property">cmon</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="cyear"> + <Property name="property">cyear</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="ccsmalldatetime"> + <Property name="property">ccsmalldatetime</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="cmaker"> + <Property name="property">cmaker</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="cdc"> + <Property name="property">cdc</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="meterunitid"> + <Property name="property">meterunitid</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="zhgxsj"> + <Property name="property">zhgxsj</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="czbz"> + <Property name="property">czbz</Property> + <Property name="align">center</Property> + </DataColumn> + </DataGrid> + <Dialog id="dialogMain"> + <Property name="width">80%</Property> + <Property name="caption">鍒╂鼎淇℃伅</Property> + <Property name="iconClass">fa fa-sliders</Property> + <Property name="closeable">false</Property> + <Buttons> + <Button> + <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 +view.get("#updateSave").execute(function(){
 + self.get("parent").hide();
 + view.get("#dsMain").flushAsync();
 +});
 +</ClientEvent> + <Property name="caption">淇濆瓨淇敼</Property> + <Property name="iconClass">fa fa-check</Property> + <Property name="exClassName">toolbar-button</Property> + </Button> + <Button> + <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 +self.get("parent").hide();
 +if(cur) cur.cancel();</ClientEvent> + <Property name="caption">鍙栨秷淇敼</Property> + <Property name="iconClass">fa fa-times</Property> + <Property name="exClassName">toolbar-button-warn</Property> + </Button> + </Buttons> + <Children> + <AutoForm> + <Property name="dataSet">dsMain</Property> + <Property name="cols">*,*,*</Property> + <Property name="labelWidth">100</Property> + <Property name="labelAlign">left</Property> + <Property name="labelSeparator">锛�</Property> + <Property name="labelPosition">top</Property> + <AutoFormElement> + <Property name="name">kqdm</Property> + <Property name="property">kqdm</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">nacctid</Property> + <Property name="property">nacctid</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">cvkind</Property> + <Property name="property">cvkind</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">cmon</Property> + <Property name="property">cmon</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">cyear</Property> + <Property name="property">cyear</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">nvno</Property> + <Property name="property">nvno</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">nno</Property> + <Property name="property">nno</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">digest</Property> + <Property name="property">digest</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">ccode</Property> + <Property name="property">ccode</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">ccsmalldatetime</Property> + <Property name="property">ccsmalldatetime</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">cmaker</Property> + <Property name="property">cmaker</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">cdc</Property> + <Property name="property">cdc</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">ccker</Property> + <Property name="property">ccker</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">cpter</Property> + <Property name="property">cpter</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">bpt</Property> + <Property name="property">bpt</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">nanum</Property> + <Property name="property">nanum</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">nm</Property> + <Property name="property">nm</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">nqty</Property> + <Property name="property">nqty</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">nprice</Property> + <Property name="property">nprice</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">ccashier</Property> + <Property name="property">ccashier</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">rate</Property> + <Property name="property">rate</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">nfm</Property> + <Property name="property">nfm</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">meterunitid</Property> + <Property name="property">meterunitid</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">tykqbm</Property> + <Property name="property">tykqbm</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">zhgxsj</Property> + <Property name="property">zhgxsj</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">czbz</Property> + <Property name="property">czbz</Property> + <Editor/> + </AutoFormElement> + </AutoForm> + </Children> + <Tools/> + </Dialog> + <UpdateAction id="updateSave"> + <Property name="dataResolver">api1507PR#updateSave</Property> + <UpdateItem> + <Property name="dataPath">[#current]</Property> + <Property name="dataSet">dsMain</Property> + </UpdateItem> + </UpdateAction> + <AjaxAction id="ajaxPush"> + <Property name="service">api1507PR#pushData</Property> + <Property name="confirmMessage">纭畾瑕佷笂鎶ヤ箞锛�</Property> + </AjaxAction> + <AjaxAction id="ajaxDel"> + <Property name="service">api1507PR#delData</Property> + <Property name="confirmMessage">褰撳墠鏁版嵁鍒犻櫎鍚庢棤娉曟仮澶嶏紝璇风‘璁よ鍒犻櫎涔堬紵</Property> + </AjaxAction> + <AjaxAction id="ajaxDelUpdate"> + <Property name="service">api1507PR#delUpdate</Property> + <Property name="confirmMessage">纭畾瑕佸皢鏁版嵁鏍囪涓哄垹闄や箞锛�</Property> + </AjaxAction> + <Dialog id="dialogLog"> + <Property name="width">90%</Property> + <Property name="height">90%</Property> + <Property name="caption">涓婁紶璁板綍</Property> + <Property name="iconClass">fa fa-sliders</Property> + <Buttons> + <Button> + <ClientEvent name="onClick">self.get("parent").hide();</ClientEvent> + <Property name="caption">鍏抽棴</Property> + <Property name="iconClass">fa fa-times</Property> + <Property name="exClassName">toolbar-button-warn</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> + </View> +</ViewConfig> diff --git a/src/main/java/com/fzzy/api/view/Api1508.view.xml b/src/main/java/com/fzzy/api/view/Api1508.view.xml new file mode 100644 index 0000000..762f210 --- /dev/null +++ b/src/main/java/com/fzzy/api/view/Api1508.view.xml @@ -0,0 +1,423 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ViewConfig> + <Arguments/> + <Context/> + <Model> + <DataType name="dtMain"> + <Property name="creationType">com.fzzy.api.entity.Api1508</Property> + <PropertyDef name="bizId"> + <Property></Property> + <Property name="label">涓氬姟id</Property> + </PropertyDef> + <PropertyDef name="kqdm"> + <Property></Property> + <Property name="label">搴撳尯浠g爜</Property> + </PropertyDef> + <PropertyDef name="syncTime"> + <Property name="dataType">Date</Property> + <Property name="label">鍚屾鏃堕棿</Property> + </PropertyDef> + <PropertyDef name="id"> + <Property></Property> + </PropertyDef> + <PropertyDef name="nacctid"> + <Property></Property> + <Property name="label">璐﹀鍙�</Property> + </PropertyDef> + <PropertyDef name="cvkind"> + <Property></Property> + <Property name="label">鍑瘉绫诲瀷</Property> + </PropertyDef> + <PropertyDef name="cmon"> + <Property name="dataType">Integer</Property> + <Property name="label">鏈熼棿</Property> + </PropertyDef> + <PropertyDef name="cyear"> + <Property name="dataType">Integer</Property> + <Property name="label">骞村害</Property> + </PropertyDef> + <PropertyDef name="nvno"> + <Property name="dataType">Integer</Property> + <Property name="label">鍑瘉鍙�</Property> + </PropertyDef> + <PropertyDef name="ccode"> + <Property></Property> + <Property name="label">绉戠洰缂栫爜</Property> + </PropertyDef> + <PropertyDef name="cdfcode"> + <Property></Property> + <Property name="label">瀵规柟绉戠洰缂栫爜</Property> + </PropertyDef> + <PropertyDef name="ccashcode"> + <Property></Property> + <Property name="label">鐜伴噾娴侀噺椤圭洰浠g爜</Property> + </PropertyDef> + <PropertyDef name="nrowno"> + <Property name="dataType">Integer</Property> + <Property name="label">鍒嗗綍搴忓彿</Property> + </PropertyDef> + <PropertyDef name="nm"> + <Property name="dataType">Double</Property> + <Property name="label">閲戦</Property> + </PropertyDef> + <PropertyDef name="cdc"> + <Property name="dataType">Integer</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">娴佸叆</Property> + </Entity> + <Entity> + <Property name="key">-1</Property> + <Property name="value">娴佸嚭</Property> + </Entity> + </Collection> + </Property> + </Property> + </PropertyDef> + <PropertyDef name="tykqbm"> + <Property></Property> + <Property name="label">缁熶竴搴撳尯缂栫爜</Property> + </PropertyDef> + <PropertyDef name="czbz"> + <Property></Property> + <Property name="label">鎿嶄綔鏍囧織</Property> + <Property name="mapping"> + <Property name="mapValues">${dorado.getDataProvider("apiTriggerService#trigger").getResult("CZBZ")}</Property> + <Property name="keyProperty">code</Property> + <Property name="valueProperty">name</Property> + </Property> + </PropertyDef> + <PropertyDef name="zhgxsj"> + <Property name="dataType">DateTime</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">api1508PR#listAll</Property> + </DataSet> + <ToolBar> + <ToolBarLabel> + <Property name="text">宸ュ叿鏍忥細</Property> + <Property name="style"> + <Property name="font-weight">bold</Property> + </Property> + </ToolBarLabel> + <ToolBarButton> + <ClientEvent name="onClick">view.get("#dsMain").flushAsync();
 +</ClientEvent> + <Property name="caption">鍒锋柊</Property> + <Property name="iconClass">fa fa-search</Property> + <Property name="width">100</Property> + <Property name="exClassName">toolbar-button-push</Property> + </ToolBarButton> + <ToolBarButton> + <ClientEvent name="onClick">view.get("#dsMain").insert();
 +view.get("#dialogMain").show();</ClientEvent> + <Property name="caption">鏂板</Property> + <Property name="iconClass">fa fa-plus</Property> + <Property name="width">100</Property> + <Property name="exClassName">toolbar-button</Property> + </ToolBarButton> + <ToolBarButton> + <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 +if(cur){
 + view.get("#dialogMain").show();
 +}else{
 + $alert("璇峰嬀閫夐渶瑕佷慨鏀圭殑鏁版嵁锛�");
 +}
 +</ClientEvent> + <Property name="caption">淇敼</Property> + <Property name="iconClass">fa fa-pencil</Property> + <Property name="width">100</Property> + <Property name="exClassName">toolbar-button-warm</Property> + </ToolBarButton> + <Separator/> + <ToolBarButton> + <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 +if(cur){
 + view.get("#ajaxDelUpdate").set("parameter",cur).execute(function(result){
 + if(result){
 + $alert(result);
 + } else{
 + cur.set("czbz","d");
 + }
 + });
 +}else{
 + $alert("璇峰嬀閫夐渶瑕佹爣璁板垹闄ょ殑鏁版嵁锛�");
 +}
 +</ClientEvent> + <Property name="caption">鏍囪鍒犻櫎</Property> + <Property name="iconClass">fa fa-minus</Property> + <Property name="exClassName">toolbar-button-warn</Property> + <Property name="width">100</Property> + </ToolBarButton> + <ToolBarButton> + <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">toolbar-button-warn</Property> + <Property name="width">100</Property> + </ToolBarButton> + <Separator/> + <ToolBarButton> + <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">toolbar-button-push</Property> + <Property name="width">100</Property> + </ToolBarButton> + <Fill/> + <ToolBarButton> + <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">toolbar-button</Property> + </ToolBarButton> + </ToolBar> + <DataGrid id="dgMain"> + <Property name="dataSet">dsMain</Property> + <Property name="selectionMode">multiRows</Property> + <Property name="readOnly">true</Property> + <RowNumColumn/> + <RowSelectorColumn> + <Property name="caption">涓婁紶</Property> + </RowSelectorColumn> + <DataColumn name="kqdm"> + <Property name="property">kqdm</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="nacctid"> + <Property name="property">nacctid</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="cvkind"> + <Property name="property">cvkind</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="cmon"> + <Property name="property">cmon</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="cyear"> + <Property name="property">cyear</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="nvno"> + <Property name="property">nvno</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="nrowno"> + <Property name="property">nrowno</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="nm"> + <Property name="property">nm</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="cdc"> + <Property name="property">cdc</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="zhgxsj"> + <Property name="property">zhgxsj</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="czbz"> + <Property name="property">czbz</Property> + <Property name="align">center</Property> + </DataColumn> + </DataGrid> + <Dialog id="dialogMain"> + <Property name="width">80%</Property> + <Property name="caption">鍒╂鼎淇℃伅</Property> + <Property name="iconClass">fa fa-sliders</Property> + <Property name="closeable">false</Property> + <Buttons> + <Button> + <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 +view.get("#updateSave").execute(function(){
 + self.get("parent").hide();
 + view.get("#dsMain").flushAsync();
 +});
 +</ClientEvent> + <Property name="caption">淇濆瓨淇敼</Property> + <Property name="iconClass">fa fa-check</Property> + <Property name="exClassName">toolbar-button</Property> + </Button> + <Button> + <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 +self.get("parent").hide();
 +if(cur) cur.cancel();</ClientEvent> + <Property name="caption">鍙栨秷淇敼</Property> + <Property name="iconClass">fa fa-times</Property> + <Property name="exClassName">toolbar-button-warn</Property> + </Button> + </Buttons> + <Children> + <AutoForm> + <Property name="dataSet">dsMain</Property> + <Property name="cols">*,*,*</Property> + <Property name="labelWidth">100</Property> + <Property name="labelAlign">left</Property> + <Property name="labelSeparator">锛�</Property> + <Property name="labelPosition">top</Property> + <AutoFormElement> + <Property name="name">kqdm</Property> + <Property name="property">kqdm</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">nacctid</Property> + <Property name="property">nacctid</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">cvkind</Property> + <Property name="property">cvkind</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">cmon</Property> + <Property name="property">cmon</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">cyear</Property> + <Property name="property">cyear</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">nvno</Property> + <Property name="property">nvno</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">ccode</Property> + <Property name="property">ccode</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">cdfcode</Property> + <Property name="property">cdfcode</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">ccashcode</Property> + <Property name="property">ccashcode</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">nrowno</Property> + <Property name="property">nrowno</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">nm</Property> + <Property name="property">nm</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">cdc</Property> + <Property name="property">cdc</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">tykqbm</Property> + <Property name="property">tykqbm</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">zhgxsj</Property> + <Property name="property">zhgxsj</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">czbz</Property> + <Property name="property">czbz</Property> + <Editor/> + </AutoFormElement> + </AutoForm> + </Children> + <Tools/> + </Dialog> + <UpdateAction id="updateSave"> + <Property name="dataResolver">api1508PR#updateSave</Property> + <UpdateItem> + <Property name="dataPath">[#current]</Property> + <Property name="dataSet">dsMain</Property> + </UpdateItem> + </UpdateAction> + <AjaxAction id="ajaxPush"> + <Property name="service">api1508PR#pushData</Property> + <Property name="confirmMessage">纭畾瑕佷笂鎶ヤ箞锛�</Property> + </AjaxAction> + <AjaxAction id="ajaxDel"> + <Property name="service">api1508PR#delData</Property> + <Property name="confirmMessage">褰撳墠鏁版嵁鍒犻櫎鍚庢棤娉曟仮澶嶏紝璇风‘璁よ鍒犻櫎涔堬紵</Property> + </AjaxAction> + <AjaxAction id="ajaxDelUpdate"> + <Property name="service">api1508PR#delUpdate</Property> + <Property name="confirmMessage">纭畾瑕佸皢鏁版嵁鏍囪涓哄垹闄や箞锛�</Property> + </AjaxAction> + <Dialog id="dialogLog"> + <Property name="width">90%</Property> + <Property name="height">90%</Property> + <Property name="caption">涓婁紶璁板綍</Property> + <Property name="iconClass">fa fa-sliders</Property> + <Buttons> + <Button> + <ClientEvent name="onClick">self.get("parent").hide();</ClientEvent> + <Property name="caption">鍏抽棴</Property> + <Property name="iconClass">fa fa-times</Property> + <Property name="exClassName">toolbar-button-warn</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> + </View> +</ViewConfig> diff --git a/src/main/java/com/fzzy/api/view/Api1509.view.xml b/src/main/java/com/fzzy/api/view/Api1509.view.xml new file mode 100644 index 0000000..6511576 --- /dev/null +++ b/src/main/java/com/fzzy/api/view/Api1509.view.xml @@ -0,0 +1,654 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ViewConfig> + <Arguments/> + <Context/> + <Model> + <DataType name="dtMain"> + <Property name="creationType">com.fzzy.api.entity.Api1509</Property> + <PropertyDef name="bizId"> + <Property></Property> + <Property name="label">涓氬姟id</Property> + </PropertyDef> + <PropertyDef name="kqdm"> + <Property></Property> + <Property name="label">搴撳尯浠g爜</Property> + </PropertyDef> + <PropertyDef name="syncTime"> + <Property name="dataType">Date</Property> + <Property name="label">鍚屾鏃堕棿</Property> + </PropertyDef> + <PropertyDef name="id"> + <Property></Property> + </PropertyDef> + <PropertyDef name="nacctid"> + <Property></Property> + <Property name="label">璐﹀鍙�</Property> + </PropertyDef> + <PropertyDef name="fixassetcode"> + <Property></Property> + <Property name="label">鍥哄畾璧勪骇缂栫爜</Property> + </PropertyDef> + <PropertyDef name="origfixassetcode"> + <Property></Property> + <Property name="label">鍥哄畾璧勪骇鑷紪鐮�</Property> + </PropertyDef> + <PropertyDef name="groupcode"> + <Property></Property> + <Property name="label">璧勪骇绫诲埆缂栫爜</Property> + </PropertyDef> + <PropertyDef name="fixassetname"> + <Property></Property> + <Property name="label">鍥哄畾璧勪骇鍚嶇О</Property> + </PropertyDef> + <PropertyDef name="unitname"> + <Property></Property> + <Property name="label">璁¢噺鍗曚綅鍚嶇О</Property> + </PropertyDef> + <PropertyDef name="valueorg"> + <Property name="dataType">Double</Property> + <Property name="label">鍘熷��</Property> + </PropertyDef> + <PropertyDef name="deprmethodid"> + <Property name="dataType">Integer</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> + </Collection> + </Property> + </Property> + </PropertyDef> + <PropertyDef name="sourceid"> + <Property name="dataType">Integer</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> + </Collection> + </Property> + </Property> + </PropertyDef> + <PropertyDef name="dresentvalueorg"> + <Property name="dataType">Double</Property> + <Property name="label">褰撳墠鍘熷��</Property> + </PropertyDef> + <PropertyDef name="model"> + <Property></Property> + <Property name="label">鍨嬪彿</Property> + </PropertyDef> + <PropertyDef name="specs"> + <Property></Property> + <Property name="label">瑙勬牸</Property> + </PropertyDef> + <PropertyDef name="manufacturer"> + <Property></Property> + <Property name="label">鍒堕�犲晢</Property> + </PropertyDef> + <PropertyDef name="makingplace"> + <Property></Property> + <Property name="label">浜у湴</Property> + </PropertyDef> + <PropertyDef name="enterday"> + <Property></Property> + <Property name="label">杩涘崟浣嶆棩鏈�</Property> + <Property name="dataType">Date</Property> + </PropertyDef> + <PropertyDef name="beginuseday"> + <Property></Property> + <Property name="label">寮�濮嬩娇鐢ㄦ棩鏈�</Property> + <Property name="dataType">Date</Property> + </PropertyDef> + <PropertyDef name="makinday"> + <Property></Property> + <Property name="label">寤哄崱鏃ユ湡</Property> + <Property name="dataType">Date</Property> + </PropertyDef> + <PropertyDef name="keeper"> + <Property></Property> + <Property name="label">绠$悊浜�</Property> + </PropertyDef> + <PropertyDef name="maker"> + <Property></Property> + <Property name="label">寤哄崱浜�</Property> + </PropertyDef> + <PropertyDef name="usingperiods"> + <Property name="dataType">Integer</Property> + <Property name="label">棰勮浣跨敤鏈熼棿鏁�</Property> + </PropertyDef> + <PropertyDef name="expecremain"> + <Property name="dataType">Double</Property> + <Property name="label">棰勮鍑�娈嬪��</Property> + </PropertyDef> + <PropertyDef name="assetacctcode"> + <Property></Property> + <Property name="label">鍥哄畾璧勪骇瀵瑰簲绉戠洰缂栫爜</Property> + </PropertyDef> + <PropertyDef name="depracctcode"> + <Property></Property> + <Property name="label">绱鎶樻棫瀵瑰簲绉戠洰缂栫爜</Property> + </PropertyDef> + <PropertyDef name="accumulatedepr"> + <Property name="dataType">Double</Property> + <Property name="label">绱鎶樻棫</Property> + </PropertyDef> + <PropertyDef name="abadoned"> + <Property></Property> + <Property name="label">鏄惁鎶ュ簾娓呯悊</Property> + </PropertyDef> + <PropertyDef name="presentstatus"> + <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> + </Collection> + </Property> + </Property> + </PropertyDef> + <PropertyDef name="notes"> + <Property></Property> + <Property name="label">澶囨敞</Property> + </PropertyDef> + <PropertyDef name="tykqbm"> + <Property></Property> + <Property name="label">缁熶竴搴撳尯缂栫爜</Property> + </PropertyDef> + <PropertyDef name="czbz"> + <Property></Property> + <Property name="label">鎿嶄綔鏍囧織</Property> + </PropertyDef> + <PropertyDef name="zhgxsj"> + <Property name="dataType">DateTime</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">api1509PR#listAll</Property> + </DataSet> + <ToolBar> + <ToolBarLabel> + <Property name="text">宸ュ叿鏍忥細</Property> + <Property name="style"> + <Property name="font-weight">bold</Property> + </Property> + </ToolBarLabel> + <ToolBarButton> + <ClientEvent name="onClick">view.get("#dsMain").flushAsync();
 +</ClientEvent> + <Property name="caption">鍒锋柊</Property> + <Property name="iconClass">fa fa-search</Property> + <Property name="width">100</Property> + <Property name="exClassName">toolbar-button-push</Property> + </ToolBarButton> + <ToolBarButton> + <ClientEvent name="onClick">view.get("#dsMain").insert();
 +view.get("#dialogMain").show();</ClientEvent> + <Property name="caption">鏂板</Property> + <Property name="iconClass">fa fa-plus</Property> + <Property name="width">100</Property> + <Property name="exClassName">toolbar-button</Property> + </ToolBarButton> + <ToolBarButton> + <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 +if(cur){
 + view.get("#dialogMain").show();
 +}else{
 + $alert("璇峰嬀閫夐渶瑕佷慨鏀圭殑鏁版嵁锛�");
 +}
 +</ClientEvent> + <Property name="caption">淇敼</Property> + <Property name="iconClass">fa fa-pencil</Property> + <Property name="width">100</Property> + <Property name="exClassName">toolbar-button-warm</Property> + </ToolBarButton> + <Separator/> + <ToolBarButton> + <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 +if(cur){
 + view.get("#ajaxDelUpdate").set("parameter",cur).execute(function(result){
 + if(result){
 + $alert(result);
 + } else{
 + cur.set("czbz","d");
 + }
 + });
 +}else{
 + $alert("璇峰嬀閫夐渶瑕佹爣璁板垹闄ょ殑鏁版嵁锛�");
 +}
 +</ClientEvent> + <Property name="caption">鏍囪鍒犻櫎</Property> + <Property name="iconClass">fa fa-minus</Property> + <Property name="exClassName">toolbar-button-warn</Property> + <Property name="width">100</Property> + </ToolBarButton> + <ToolBarButton> + <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">toolbar-button-warn</Property> + <Property name="width">100</Property> + </ToolBarButton> + <Separator/> + <ToolBarButton> + <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">toolbar-button-push</Property> + <Property name="width">100</Property> + </ToolBarButton> + <Fill/> + <ToolBarButton> + <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">toolbar-button</Property> + </ToolBarButton> + </ToolBar> + <DataGrid id="dgMain"> + <Property name="dataSet">dsMain</Property> + <Property name="selectionMode">multiRows</Property> + <Property name="readOnly">true</Property> + <RowNumColumn/> + <RowSelectorColumn> + <Property name="caption">涓婁紶</Property> + </RowSelectorColumn> + <DataColumn name="kqdm"> + <Property name="property">kqdm</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="nacctid"> + <Property name="property">nacctid</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="fixassetcode"> + <Property name="property">fixassetcode</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="origfixassetcode"> + <Property name="property">origfixassetcode</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="groupcode"> + <Property name="property">groupcode</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="fixassetname"> + <Property name="property">fixassetname</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="unitname"> + <Property name="property">unitname</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="manufacturer"> + <Property name="property">manufacturer</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="makingplace"> + <Property name="property">makingplace</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="czbz"> + <Property name="property">czbz</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="zhgxsj"> + <Property name="property">zhgxsj</Property> + <Property name="align">center</Property> + </DataColumn> + </DataGrid> + <Dialog id="dialogMain"> + <Property name="width">80%</Property> + <Property name="caption">鍒╂鼎淇℃伅</Property> + <Property name="iconClass">fa fa-sliders</Property> + <Property name="closeable">false</Property> + <Property name="height">80%</Property> + <Buttons> + <Button> + <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 +view.get("#updateSave").execute(function(){
 + self.get("parent").hide();
 + view.get("#dsMain").flushAsync();
 +});
 +</ClientEvent> + <Property name="caption">淇濆瓨淇敼</Property> + <Property name="iconClass">fa fa-check</Property> + <Property name="exClassName">toolbar-button</Property> + </Button> + <Button> + <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 +self.get("parent").hide();
 +if(cur) cur.cancel();</ClientEvent> + <Property name="caption">鍙栨秷淇敼</Property> + <Property name="iconClass">fa fa-times</Property> + <Property name="exClassName">toolbar-button-warn</Property> + </Button> + </Buttons> + <Children> + <AutoForm> + <Property name="dataSet">dsMain</Property> + <Property name="cols">*,*,*</Property> + <Property name="labelWidth">100</Property> + <Property name="labelAlign">left</Property> + <Property name="labelSeparator">锛�</Property> + <Property name="labelPosition">top</Property> + <AutoFormElement> + <Property name="name">kqdm</Property> + <Property name="property">kqdm</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">nacctid</Property> + <Property name="property">nacctid</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">fixassetcode</Property> + <Property name="property">fixassetcode</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">origfixassetcode</Property> + <Property name="property">origfixassetcode</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">groupcode</Property> + <Property name="property">groupcode</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">fixassetname</Property> + <Property name="property">fixassetname</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">unitname</Property> + <Property name="property">unitname</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">valueorg</Property> + <Property name="property">valueorg</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">dresentvalueorg</Property> + <Property name="property">dresentvalueorg</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">deprmethodid</Property> + <Property name="property">deprmethodid</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">sourceid</Property> + <Property name="property">sourceid</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">model</Property> + <Property name="property">model</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">specs</Property> + <Property name="property">specs</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">manufacturer</Property> + <Property name="property">manufacturer</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">makingplace</Property> + <Property name="property">makingplace</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">enterday</Property> + <Property name="property">enterday</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">beginuseday</Property> + <Property name="property">beginuseday</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">makinday</Property> + <Property name="property">makinday</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">keeper</Property> + <Property name="property">keeper</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">maker</Property> + <Property name="property">maker</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">usingperiods</Property> + <Property name="property">usingperiods</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">expecremain</Property> + <Property name="property">expecremain</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">assetacctcode</Property> + <Property name="property">assetacctcode</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">depracctcode</Property> + <Property name="property">depracctcode</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">accumulatedepr</Property> + <Property name="property">accumulatedepr</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">abadoned</Property> + <Property name="property">abadoned</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">presentstatus</Property> + <Property name="property">presentstatus</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">notes</Property> + <Property name="property">notes</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">tykqbm</Property> + <Property name="property">tykqbm</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">czbz</Property> + <Property name="property">czbz</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">zhgxsj</Property> + <Property name="property">zhgxsj</Property> + <Editor/> + </AutoFormElement> + </AutoForm> + </Children> + <Tools/> + </Dialog> + <UpdateAction id="updateSave"> + <Property name="dataResolver">api1509PR#updateSave</Property> + <UpdateItem> + <Property name="dataPath">[#current]</Property> + <Property name="dataSet">dsMain</Property> + </UpdateItem> + </UpdateAction> + <AjaxAction id="ajaxPush"> + <Property name="service">api1509PR#pushData</Property> + <Property name="confirmMessage">纭畾瑕佷笂鎶ヤ箞锛�</Property> + </AjaxAction> + <AjaxAction id="ajaxDel"> + <Property name="service">api1509PR#delData</Property> + <Property name="confirmMessage">褰撳墠鏁版嵁鍒犻櫎鍚庢棤娉曟仮澶嶏紝璇风‘璁よ鍒犻櫎涔堬紵</Property> + </AjaxAction> + <AjaxAction id="ajaxDelUpdate"> + <Property name="service">api1509PR#delUpdate</Property> + <Property name="confirmMessage">纭畾瑕佸皢鏁版嵁鏍囪涓哄垹闄や箞锛�</Property> + </AjaxAction> + <Dialog id="dialogLog"> + <Property name="width">90%</Property> + <Property name="height">90%</Property> + <Property name="caption">涓婁紶璁板綍</Property> + <Property name="iconClass">fa fa-sliders</Property> + <Buttons> + <Button> + <ClientEvent name="onClick">self.get("parent").hide();</ClientEvent> + <Property name="caption">鍏抽棴</Property> + <Property name="iconClass">fa fa-times</Property> + <Property name="exClassName">toolbar-button-warn</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> + </View> +</ViewConfig> diff --git a/src/main/java/com/fzzy/api/view/Api1510.view.xml b/src/main/java/com/fzzy/api/view/Api1510.view.xml new file mode 100644 index 0000000..223e767 --- /dev/null +++ b/src/main/java/com/fzzy/api/view/Api1510.view.xml @@ -0,0 +1,484 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ViewConfig> + <Arguments/> + <Context/> + <Model> + <DataType name="dtMain"> + <Property name="creationType">com.fzzy.api.entity.Api1510</Property> + <PropertyDef name="id"> + <Property></Property> + </PropertyDef> + <PropertyDef name="nacctid"> + <Property></Property> + <Property name="label">璐﹀鍙�</Property> + </PropertyDef> + <PropertyDef name="fixassetcode"> + <Property></Property> + <Property name="label">鍥哄畾璧勪骇缂栫爜</Property> + </PropertyDef> + <PropertyDef name="period"> + <Property name="dataType">Integer</Property> + <Property name="label">鏈熼棿</Property> + </PropertyDef> + <PropertyDef name="acctyear"> + <Property name="dataType">Integer</Property> + <Property name="label">骞村害</Property> + </PropertyDef> + <PropertyDef name="bvalueorg"> + <Property name="dataType">Double</Property> + <Property name="label">鏈熷垵鍘熷��</Property> + </PropertyDef> + <PropertyDef name="baccumdepr"> + <Property name="dataType">Double</Property> + <Property name="label">绱鎶樻棫</Property> + </PropertyDef> + <PropertyDef name="deprammount"> + <Property name="dataType">Double</Property> + <Property name="label">鏈湡璁℃彁鎶樻棫</Property> + </PropertyDef> + <PropertyDef name="yaccumdepr"> + <Property name="dataType">Double</Property> + <Property name="label">鏈勾绱璁℃彁鎶樻棫</Property> + </PropertyDef> + <PropertyDef name="qtyadd"> + <Property name="dataType">Double</Property> + <Property name="label">鏈湡鏁伴噺澧炲姞</Property> + </PropertyDef> + <PropertyDef name="qtydecrease"> + <Property name="dataType">Double</Property> + <Property name="label">鏈湡鏁伴噺鍑忓皯</Property> + </PropertyDef> + <PropertyDef name="valueorgadd"> + <Property name="dataType">Double</Property> + <Property name="label">鏈湡鍘熷�煎鍔�</Property> + </PropertyDef> + <PropertyDef name="valueorgderease"> + <Property name="dataType">Double</Property> + <Property name="label">鏈湡鍘熷�煎噺灏�</Property> + </PropertyDef> + <PropertyDef name="accudepradjustadd"> + <Property name="dataType">Double</Property> + <Property name="label">鏈湡绱鎶樻棫璋冨</Property> + </PropertyDef> + <PropertyDef name="accudepradjustdec"> + <Property name="dataType">Double</Property> + <Property name="label">鏈湡绱鎶樻棫璋冨噺</Property> + </PropertyDef> + <PropertyDef name="yqtyIncrease"> + <Property name="dataType">Double</Property> + <Property name="label">鏈勾绱鏁伴噺澧炲姞</Property> + </PropertyDef> + <PropertyDef name="yqtydecrease"> + <Property name="dataType">Double</Property> + <Property name="label">鏈勾绱鏁伴噺鍑忓皯</Property> + </PropertyDef> + <PropertyDef name="yvalueincrease"> + <Property name="dataType">Double</Property> + <Property name="label">鏈勾鍘熷�肩疮璁″鍔�</Property> + </PropertyDef> + <PropertyDef name="yvaluedecrease"> + <Property name="dataType">Double</Property> + <Property name="label">鏈勾鍘熷�肩疮璁″噺灏�</Property> + </PropertyDef> + <PropertyDef name="yaccudeprincrease"> + <Property name="dataType">Double</Property> + <Property name="label">鏈勾绱鎶樻棫璋冨</Property> + </PropertyDef> + <PropertyDef name="yaccuDeprDecrease"> + <Property name="dataType">Double</Property> + <Property name="label">鏈勾绱鎶樻棫璋冨噺</Property> + </PropertyDef> + <PropertyDef name="tykqbm"> + <Property></Property> + <Property name="label">缁熶竴搴撳尯缂栫爜</Property> + </PropertyDef> + <PropertyDef name="bizId"> + <Property></Property> + <Property name="label">涓氬姟id</Property> + </PropertyDef> + <PropertyDef name="kqdm"> + <Property></Property> + <Property name="label">搴撳尯浠g爜</Property> + </PropertyDef> + <PropertyDef name="syncTime"> + <Property name="dataType">Date</Property> + <Property name="label">鍚屾鏃堕棿</Property> + </PropertyDef> + <PropertyDef name="czbz"> + <Property></Property> + <Property name="label">鎿嶄綔鏍囧織</Property> + </PropertyDef> + <PropertyDef name="zhgxsj"> + <Property name="dataType">DateTime</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">api1510PR#listAll</Property> + </DataSet> + <ToolBar> + <ToolBarLabel> + <Property name="text">宸ュ叿鏍忥細</Property> + <Property name="style"> + <Property name="font-weight">bold</Property> + </Property> + </ToolBarLabel> + <ToolBarButton> + <ClientEvent name="onClick">view.get("#dsMain").flushAsync();
 +</ClientEvent> + <Property name="caption">鍒锋柊</Property> + <Property name="iconClass">fa fa-search</Property> + <Property name="width">100</Property> + <Property name="exClassName">toolbar-button-push</Property> + </ToolBarButton> + <ToolBarButton> + <ClientEvent name="onClick">view.get("#dsMain").insert();
 +view.get("#dialogMain").show();</ClientEvent> + <Property name="caption">鏂板</Property> + <Property name="iconClass">fa fa-plus</Property> + <Property name="width">100</Property> + <Property name="exClassName">toolbar-button</Property> + </ToolBarButton> + <ToolBarButton> + <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 +if(cur){
 + view.get("#dialogMain").show();
 +}else{
 + $alert("璇峰嬀閫夐渶瑕佷慨鏀圭殑鏁版嵁锛�");
 +}
 +</ClientEvent> + <Property name="caption">淇敼</Property> + <Property name="iconClass">fa fa-pencil</Property> + <Property name="width">100</Property> + <Property name="exClassName">toolbar-button-warm</Property> + </ToolBarButton> + <Separator/> + <ToolBarButton> + <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 +if(cur){
 + view.get("#ajaxDelUpdate").set("parameter",cur).execute(function(result){
 + if(result){
 + $alert(result);
 + } else{
 + cur.set("czbz","d");
 + }
 + });
 +}else{
 + $alert("璇峰嬀閫夐渶瑕佹爣璁板垹闄ょ殑鏁版嵁锛�");
 +}
 +</ClientEvent> + <Property name="caption">鏍囪鍒犻櫎</Property> + <Property name="iconClass">fa fa-minus</Property> + <Property name="exClassName">toolbar-button-warn</Property> + <Property name="width">100</Property> + </ToolBarButton> + <ToolBarButton> + <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">toolbar-button-warn</Property> + <Property name="width">100</Property> + </ToolBarButton> + <Separator/> + <ToolBarButton> + <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">toolbar-button-push</Property> + <Property name="width">100</Property> + </ToolBarButton> + <Fill/> + <ToolBarButton> + <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">toolbar-button</Property> + </ToolBarButton> + </ToolBar> + <DataGrid id="dgMain"> + <Property name="dataSet">dsMain</Property> + <Property name="selectionMode">multiRows</Property> + <Property name="readOnly">true</Property> + <RowNumColumn/> + <RowSelectorColumn> + <Property name="caption">涓婁紶</Property> + </RowSelectorColumn> + <DataColumn name="kqdm"> + <Property name="property">kqdm</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="nacctid"> + <Property name="property">nacctid</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="fixassetcode"> + <Property name="property">fixassetcode</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="period"> + <Property name="property">period</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="acctyear"> + <Property name="property">acctyear</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="bvalueorg"> + <Property name="property">bvalueorg</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="baccumdepr"> + <Property name="property">baccumdepr</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="deprammount"> + <Property name="property">deprammount</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="yaccumdepr"> + <Property name="property">yaccumdepr</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="zhgxsj"> + <Property name="property">zhgxsj</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="czbz"> + <Property name="property">czbz</Property> + <Property name="align">center</Property> + </DataColumn> + </DataGrid> + <Dialog id="dialogMain"> + <Property name="width">80%</Property> + <Property name="caption">鍒╂鼎淇℃伅</Property> + <Property name="iconClass">fa fa-sliders</Property> + <Property name="closeable">false</Property> + <Property name="height">80%</Property> + <Buttons> + <Button> + <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 +view.get("#updateSave").execute(function(){
 + self.get("parent").hide();
 + view.get("#dsMain").flushAsync();
 +});
 +</ClientEvent> + <Property name="caption">淇濆瓨淇敼</Property> + <Property name="iconClass">fa fa-check</Property> + <Property name="exClassName">toolbar-button</Property> + </Button> + <Button> + <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 +self.get("parent").hide();
 +if(cur) cur.cancel();</ClientEvent> + <Property name="caption">鍙栨秷淇敼</Property> + <Property name="iconClass">fa fa-times</Property> + <Property name="exClassName">toolbar-button-warn</Property> + </Button> + </Buttons> + <Children> + <AutoForm> + <Property name="dataSet">dsMain</Property> + <Property name="cols">*,*,*</Property> + <Property name="labelWidth">100</Property> + <Property name="labelAlign">left</Property> + <Property name="labelSeparator">锛�</Property> + <Property name="labelPosition">top</Property> + <AutoFormElement> + <Property name="name">kqdm</Property> + <Property name="property">kqdm</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">nacctid</Property> + <Property name="property">nacctid</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">fixassetcode</Property> + <Property name="property">fixassetcode</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">period</Property> + <Property name="property">period</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">acctyear</Property> + <Property name="property">acctyear</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">bvalueorg</Property> + <Property name="property">bvalueorg</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">baccumdepr</Property> + <Property name="property">baccumdepr</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">deprammount</Property> + <Property name="property">deprammount</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">yaccumdepr</Property> + <Property name="property">yaccumdepr</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">qtyadd</Property> + <Property name="property">qtyadd</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">qtydecrease</Property> + <Property name="property">qtydecrease</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">valueorgadd</Property> + <Property name="property">valueorgadd</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">valueorgderease</Property> + <Property name="property">valueorgderease</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">accudepradjustadd</Property> + <Property name="property">accudepradjustadd</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">accudepradjustdec</Property> + <Property name="property">accudepradjustdec</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">yqtyIncrease</Property> + <Property name="property">yqtyIncrease</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">yqtydecrease</Property> + <Property name="property">yqtydecrease</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">yvalueincrease</Property> + <Property name="property">yvalueincrease</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">yvaluedecrease</Property> + <Property name="property">yvaluedecrease</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">yaccudeprincrease</Property> + <Property name="property">yaccudeprincrease</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">yaccuDeprDecrease</Property> + <Property name="property">yaccuDeprDecrease</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">tykqbm</Property> + <Property name="property">tykqbm</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">zhgxsj</Property> + <Property name="property">zhgxsj</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">czbz</Property> + <Property name="property">czbz</Property> + <Editor/> + </AutoFormElement> + </AutoForm> + </Children> + <Tools/> + </Dialog> + <UpdateAction id="updateSave"> + <Property name="dataResolver">api1510PR#updateSave</Property> + <UpdateItem> + <Property name="dataPath">[#current]</Property> + <Property name="dataSet">dsMain</Property> + </UpdateItem> + </UpdateAction> + <AjaxAction id="ajaxPush"> + <Property name="service">api1510PR#pushData</Property> + <Property name="confirmMessage">纭畾瑕佷笂鎶ヤ箞锛�</Property> + </AjaxAction> + <AjaxAction id="ajaxDel"> + <Property name="service">api15110PR#delData</Property> + <Property name="confirmMessage">褰撳墠鏁版嵁鍒犻櫎鍚庢棤娉曟仮澶嶏紝璇风‘璁よ鍒犻櫎涔堬紵</Property> + </AjaxAction> + <AjaxAction id="ajaxDelUpdate"> + <Property name="service">api1510PR#delUpdate</Property> + <Property name="confirmMessage">纭畾瑕佸皢鏁版嵁鏍囪涓哄垹闄や箞锛�</Property> + </AjaxAction> + <Dialog id="dialogLog"> + <Property name="width">90%</Property> + <Property name="height">90%</Property> + <Property name="caption">涓婁紶璁板綍</Property> + <Property name="iconClass">fa fa-sliders</Property> + <Buttons> + <Button> + <ClientEvent name="onClick">self.get("parent").hide();</ClientEvent> + <Property name="caption">鍏抽棴</Property> + <Property name="iconClass">fa fa-times</Property> + <Property name="exClassName">toolbar-button-warn</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> + </View> +</ViewConfig> diff --git a/src/main/java/com/fzzy/api/view/pr/Api1504PR.java b/src/main/java/com/fzzy/api/view/pr/Api1504PR.java new file mode 100644 index 0000000..25a2e4c --- /dev/null +++ b/src/main/java/com/fzzy/api/view/pr/Api1504PR.java @@ -0,0 +1,173 @@ +package com.fzzy.api.view.pr; + +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.Api1504; +import com.fzzy.api.entity.ApiConfs; +import com.fzzy.api.service.ApiCommonService; +import com.fzzy.api.service.ApiPushManager; +import com.fzzy.api.service.ApiRemoteService; +import com.fzzy.api.utils.ContextUtil; +import com.fzzy.api.view.repository.Api1504Rep; +import org.apache.commons.lang.StringUtils; +import org.springframework.beans.BeanUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Component; + +import java.util.List; + +/** + * 璐﹀淇℃伅 + * + * @author he + */ +@Component +public class Api1504PR { + + @Autowired + private Api1504Rep api1504Rep; + + @Autowired + private ApiCommonService apiCommonService; + @Autowired + private ApiPushManager apiPushManager; + + /** + * api1504PR#listAll + * + * @return + */ + @DataProvider + public List<Api1504> listAll() { + return api1504Rep.findAll(); + } + + /** + * api1504PR#updateSave + * + * @param entity + */ + @DataResolver + public void updateSave(Api1504 entity) { + + // 鎵嬪姩灏哾oradoEntity瀵硅薄杞崲涓烘爣鍑咮ean瀵硅薄 + Api1504 data = new Api1504(); + if (StringUtils.isEmpty(entity.getNacctid())) { + entity.setNacctid(entity.getKqdm() + "01"); + } + BeanUtils.copyProperties(entity, data); + api1504Rep.save(data); + } + + /** + * api1504PR#delData + * + * @param data + */ + @Expose + public String delData(Api1504 data) { + + api1504Rep.deleteById(data.getNacctid()); + return null; + } + + /** + * 鏇存柊鍒犻櫎鏍囪 api1504PR#delUpdate + * + * @param entity + */ + @Expose + public String delUpdate(Api1504 entity) { + + entity.setCzbz(Constant.CZBZ_D); + + Api1504 data = new Api1504(); + BeanUtils.copyProperties(entity, data); + + api1504Rep.save(data); + return null; + } + + /** + * api1504PR#pushData + * + * @param items + */ + @Expose + public String pushData(List<Api1504> items) { + + String kqdm = items.get(0).getKqdm(); + ApiConfs apiConf = apiCommonService.getConf(kqdm); + + if (null == apiConf) return "绯荤粺娌℃湁鑾峰彇鍒板綋鍓嶅簱鍖洪厤缃俊鎭紝鎵ц澶辫触"; + + //鑾峰彇瀹炵幇鎺ュ彛 + ApiRemoteService apiService = apiPushManager.getApiRemoteService(apiConf.getPushProtocol()); + if (null == apiService) return "绯荤粺娌℃湁褰撳墠鎺ㄩ�佸崗璁厤缃紝鎵ц澶辫触"; + + return pushDataSingle(items, apiService, apiConf); + } + + /** + * 鍗曟潯鏁版嵁json鎺ㄩ�� + * + * @param items + * @param apiService + * @param apiConf + * @return + */ + private String pushDataSingle(List<Api1504> items, ApiRemoteService apiService, ApiConfs apiConf) { + ResponseDto responseDto; + String result = ""; + + //灏佽鍙傛暟 + ApiParam param = new ApiParam(apiConf, Constant.API_CATEGORY_11, Constant.API_CODE_1504); + Api1504 d; + for (Api1504 data : items) { + d = new Api1504(); + BeanUtils.copyProperties(data, d); + responseDto = apiService.pushData(param, apiConf, d); + result += responseDto.toString(); + if (responseDto.getSuccess() == 0) { + //todo 浠h〃涓婁紶鎴愬姛 ,鍚庢湡闇�瑕佷繚瀛樻棩蹇� + if ("i".equals(d.getCzbz())) { + d.setCzbz("u"); + api1504Rep.save(d); + } + } + } + return result; + } + + /** + * 澶氭潯鏁版嵁json鎺ㄩ�� + * + * @param items + * @param apiRemoteService + * @param apiConf + * @return + */ + private String pushDataList(List<Api1504> items, ApiRemoteService apiRemoteService, ApiConfs apiConf) { + + //灏佽鍙傛暟 + ApiParam param = new ApiParam(apiConf, Constant.API_CATEGORY_11, Constant.API_CODE_1504); + + //鎺ㄩ�侊紝鏁版嵁涓洪泦鍚堝舰寮� + ResponseDto responseDto = apiRemoteService.pushData(param, apiConf, items); + if (responseDto.getSuccess() == 0) { + //鎺ㄩ�佹垚鍔燂紝鏇存柊鏁版嵁涓婁紶鐘舵�� + for (Api1504 data : items) { + if (Constant.CZBZ_I.equals(data.getCzbz())) { + //鏇存柊鐘舵�� + data.setCzbz(Constant.CZBZ_U); + api1504Rep.save(data); + } + } + } + return responseDto.toString(); + } +} diff --git a/src/main/java/com/fzzy/api/view/pr/Api1505PR.java b/src/main/java/com/fzzy/api/view/pr/Api1505PR.java new file mode 100644 index 0000000..128fc0c --- /dev/null +++ b/src/main/java/com/fzzy/api/view/pr/Api1505PR.java @@ -0,0 +1,173 @@ +package com.fzzy.api.view.pr; + +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.Api1505; +import com.fzzy.api.entity.ApiConfs; +import com.fzzy.api.service.ApiCommonService; +import com.fzzy.api.service.ApiPushManager; +import com.fzzy.api.service.ApiRemoteService; +import com.fzzy.api.utils.ContextUtil; +import com.fzzy.api.view.repository.Api1505Rep; +import org.apache.commons.lang.StringUtils; +import org.springframework.beans.BeanUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Component; + +import java.util.List; + +/** + * 鍒╂鼎琛ㄤ俊鎭� + * @author he + */ +@Component +public class Api1505PR { + + @Autowired + private Api1505Rep api1505Rep; + + @Autowired + private ApiCommonService apiCommonService; + @Autowired + private ApiPushManager apiPushManager; + /** + * Api1505PR#listAll + * + * @return + */ + @DataProvider + public List<Api1505> listAll() { + return api1505Rep.findAll(); + } + + /** + * Api1505PR#updateSave + * + * @param entity + */ + @DataResolver + public void updateSave(Api1505 entity) { + + // 鎵嬪姩灏哾oradoEntity瀵硅薄杞崲涓烘爣鍑咮ean瀵硅薄 + Api1505 data = new Api1505(); + BeanUtils.copyProperties(entity, data); + if (StringUtils.isEmpty(data.getId())){ + data.setId(ContextUtil.getUUID()); + } + api1505Rep.save(data); + } + + /** + * Api1505PR#delData + * + * @param data + */ + @Expose + public String delData(Api1505 data) { + + api1505Rep.deleteById(data.getId()); + + return null; + } + + /** + * + * 鏇存柊鍒犻櫎鏍囪 Api1505PR#delUpdate + * + * @param entity + */ + @Expose + public String delUpdate(Api1505 entity) { + + entity.setCzbz(Constant.CZBZ_D); + + Api1505 data = new Api1505(); + BeanUtils.copyProperties(entity, data); + + api1505Rep.save(data); + return null; + } + + /** + * Api1505PR#pushData + * + * @param items + */ + @Expose + public String pushData(List<Api1505> items) { + + String kqdm = items.get(0).getKqdm(); + ApiConfs apiConf = apiCommonService.getConf(kqdm); + + if (null == apiConf) return "绯荤粺娌℃湁鑾峰彇鍒板綋鍓嶅簱鍖洪厤缃俊鎭紝鎵ц澶辫触"; + + //鑾峰彇瀹炵幇鎺ュ彛 + ApiRemoteService apiService = apiPushManager.getApiRemoteService(apiConf.getPushProtocol()); + if (null == apiService) return "绯荤粺娌℃湁褰撳墠鎺ㄩ�佸崗璁厤缃紝鎵ц澶辫触"; + + return pushDataSingle(items, apiService, apiConf); + } + + /** + * 鍗曟潯鏁版嵁json鎺ㄩ�� + * + * @param items + * @param apiService + * @param apiConf + * @return + */ + private String pushDataSingle(List<Api1505> items, ApiRemoteService apiService, ApiConfs apiConf) { + ResponseDto responseDto; + String result = ""; + + //灏佽鍙傛暟 + ApiParam param = new ApiParam(apiConf, Constant.API_CATEGORY_11, Constant.API_CODE_1505); + Api1505 d; + for (Api1505 data : items) { + d = new Api1505(); + BeanUtils.copyProperties(data, d); + responseDto = apiService.pushData(param, apiConf, d); + result += responseDto.toString(); + if (responseDto.getSuccess() == 0) { + //todo 浠h〃涓婁紶鎴愬姛 ,鍚庢湡闇�瑕佷繚瀛樻棩蹇� + if("i".equals(d.getCzbz())){ + d.setCzbz("u"); + api1505Rep.save(d); + } + } + } + return result; + } + + /** + * 澶氭潯鏁版嵁json鎺ㄩ�� + * + * @param items + * @param apiRemoteService + * @param apiConf + * @return + */ + private String pushDataList(List<Api1505> items, ApiRemoteService apiRemoteService, ApiConfs apiConf) { + + //灏佽鍙傛暟 + ApiParam param = new ApiParam(apiConf, Constant.API_CATEGORY_11, Constant.API_CODE_1505); + + //鎺ㄩ�侊紝鏁版嵁涓洪泦鍚堝舰寮� + ResponseDto responseDto = apiRemoteService.pushData(param, apiConf, items); + if (responseDto.getSuccess() == 0) { + //鎺ㄩ�佹垚鍔燂紝鏇存柊鏁版嵁涓婁紶鐘舵�� + for (Api1505 data : items) { + if (Constant.CZBZ_I.equals(data.getCzbz())) { + //鏇存柊鐘舵�� + data.setCzbz(Constant.CZBZ_U); + api1505Rep.save(data); + } + } + } + return responseDto.toString(); + } +} diff --git a/src/main/java/com/fzzy/api/view/pr/Api1506PR.java b/src/main/java/com/fzzy/api/view/pr/Api1506PR.java new file mode 100644 index 0000000..82ecda9 --- /dev/null +++ b/src/main/java/com/fzzy/api/view/pr/Api1506PR.java @@ -0,0 +1,173 @@ +package com.fzzy.api.view.pr; + +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.Api1506; +import com.fzzy.api.entity.ApiConfs; +import com.fzzy.api.service.ApiCommonService; +import com.fzzy.api.service.ApiPushManager; +import com.fzzy.api.service.ApiRemoteService; +import com.fzzy.api.utils.ContextUtil; +import com.fzzy.api.view.repository.Api1506Rep; +import org.apache.commons.lang.StringUtils; +import org.springframework.beans.BeanUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Component; + +import java.util.List; + +/** + * 鍒╂鼎琛ㄤ俊鎭� + * @author he + */ +@Component +public class Api1506PR { + + @Autowired + private Api1506Rep api1506Rep; + + @Autowired + private ApiCommonService apiCommonService; + @Autowired + private ApiPushManager apiPushManager; + /** + * api1506PR#listAll + * + * @return + */ + @DataProvider + public List<Api1506> listAll() { + return api1506Rep.findAll(); + } + + /** + * api1506PR#updateSave + * + * @param entity + */ + @DataResolver + public void updateSave(Api1506 entity) { + + // 鎵嬪姩灏哾oradoEntity瀵硅薄杞崲涓烘爣鍑咮ean瀵硅薄 + Api1506 data = new Api1506(); + BeanUtils.copyProperties(entity, data); + if (StringUtils.isEmpty(data.getId())){ + data.setId(ContextUtil.getUUID()); + } + api1506Rep.save(data); + } + + /** + * api1506PR#delData + * + * @param data + */ + @Expose + public String delData(Api1506 data) { + + api1506Rep.deleteById(data.getId()); + + return null; + } + + /** + * + * 鏇存柊鍒犻櫎鏍囪 api1506PR#delUpdate + * + * @param entity + */ + @Expose + public String delUpdate(Api1506 entity) { + + entity.setCzbz(Constant.CZBZ_D); + + Api1506 data = new Api1506(); + BeanUtils.copyProperties(entity, data); + + api1506Rep.save(data); + return null; + } + + /** + * api1506PR#pushData + * + * @param items + */ + @Expose + public String pushData(List<Api1506> items) { + + String kqdm = items.get(0).getKqdm(); + ApiConfs apiConf = apiCommonService.getConf(kqdm); + + if (null == apiConf) return "绯荤粺娌℃湁鑾峰彇鍒板綋鍓嶅簱鍖洪厤缃俊鎭紝鎵ц澶辫触"; + + //鑾峰彇瀹炵幇鎺ュ彛 + ApiRemoteService apiService = apiPushManager.getApiRemoteService(apiConf.getPushProtocol()); + if (null == apiService) return "绯荤粺娌℃湁褰撳墠鎺ㄩ�佸崗璁厤缃紝鎵ц澶辫触"; + + return pushDataSingle(items, apiService, apiConf); + } + + /** + * 鍗曟潯鏁版嵁json鎺ㄩ�� + * + * @param items + * @param apiService + * @param apiConf + * @return + */ + private String pushDataSingle(List<Api1506> items, ApiRemoteService apiService, ApiConfs apiConf) { + ResponseDto responseDto; + String result = ""; + + //灏佽鍙傛暟 + ApiParam param = new ApiParam(apiConf, Constant.API_CATEGORY_11, Constant.API_CODE_1506); + Api1506 d; + for (Api1506 data : items) { + d = new Api1506(); + BeanUtils.copyProperties(data, d); + responseDto = apiService.pushData(param, apiConf, d); + result += responseDto.toString(); + if (responseDto.getSuccess() == 0) { + //todo 浠h〃涓婁紶鎴愬姛 ,鍚庢湡闇�瑕佷繚瀛樻棩蹇� + if("i".equals(d.getCzbz())){ + d.setCzbz("u"); + api1506Rep.save(d); + } + } + } + return result; + } + + /** + * 澶氭潯鏁版嵁json鎺ㄩ�� + * + * @param items + * @param apiRemoteService + * @param apiConf + * @return + */ + private String pushDataList(List<Api1506> items, ApiRemoteService apiRemoteService, ApiConfs apiConf) { + + //灏佽鍙傛暟 + ApiParam param = new ApiParam(apiConf, Constant.API_CATEGORY_11, Constant.API_CODE_1506); + + //鎺ㄩ�侊紝鏁版嵁涓洪泦鍚堝舰寮� + ResponseDto responseDto = apiRemoteService.pushData(param, apiConf, items); + if (responseDto.getSuccess() == 0) { + //鎺ㄩ�佹垚鍔燂紝鏇存柊鏁版嵁涓婁紶鐘舵�� + for (Api1506 data : items) { + if (Constant.CZBZ_I.equals(data.getCzbz())) { + //鏇存柊鐘舵�� + data.setCzbz(Constant.CZBZ_U); + api1506Rep.save(data); + } + } + } + return responseDto.toString(); + } +} diff --git a/src/main/java/com/fzzy/api/view/pr/Api1507PR.java b/src/main/java/com/fzzy/api/view/pr/Api1507PR.java new file mode 100644 index 0000000..c3fa064 --- /dev/null +++ b/src/main/java/com/fzzy/api/view/pr/Api1507PR.java @@ -0,0 +1,173 @@ +package com.fzzy.api.view.pr; + +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.Api1507; +import com.fzzy.api.entity.ApiConfs; +import com.fzzy.api.service.ApiCommonService; +import com.fzzy.api.service.ApiPushManager; +import com.fzzy.api.service.ApiRemoteService; +import com.fzzy.api.utils.ContextUtil; +import com.fzzy.api.view.repository.Api1507Rep; +import org.apache.commons.lang.StringUtils; +import org.springframework.beans.BeanUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Component; + +import java.util.List; + +/** + * 鍒╂鼎琛ㄤ俊鎭� + * @author he + */ +@Component +public class Api1507PR { + + @Autowired + private Api1507Rep api1507Rep; + + @Autowired + private ApiCommonService apiCommonService; + @Autowired + private ApiPushManager apiPushManager; + /** + * api1507PR#listAll + * + * @return + */ + @DataProvider + public List<Api1507> listAll() { + return api1507Rep.findAll(); + } + + /** + * api1507PR#updateSave + * + * @param entity + */ + @DataResolver + public void updateSave(Api1507 entity) { + + // 鎵嬪姩灏哾oradoEntity瀵硅薄杞崲涓烘爣鍑咮ean瀵硅薄 + Api1507 data = new Api1507(); + BeanUtils.copyProperties(entity, data); + if (StringUtils.isEmpty(data.getId())){ + data.setId(ContextUtil.getUUID()); + } + api1507Rep.save(data); + } + + /** + * api1507PR#delData + * + * @param data + */ + @Expose + public String delData(Api1507 data) { + + api1507Rep.deleteById(data.getId()); + + return null; + } + + /** + * + * 鏇存柊鍒犻櫎鏍囪 api1507PR#delUpdate + * + * @param entity + */ + @Expose + public String delUpdate(Api1507 entity) { + + entity.setCzbz(Constant.CZBZ_D); + + Api1507 data = new Api1507(); + BeanUtils.copyProperties(entity, data); + + api1507Rep.save(data); + return null; + } + + /** + * api1507PR#pushData + * + * @param items + */ + @Expose + public String pushData(List<Api1507> items) { + + String kqdm = items.get(0).getKqdm(); + ApiConfs apiConf = apiCommonService.getConf(kqdm); + + if (null == apiConf) return "绯荤粺娌℃湁鑾峰彇鍒板綋鍓嶅簱鍖洪厤缃俊鎭紝鎵ц澶辫触"; + + //鑾峰彇瀹炵幇鎺ュ彛 + ApiRemoteService apiService = apiPushManager.getApiRemoteService(apiConf.getPushProtocol()); + if (null == apiService) return "绯荤粺娌℃湁褰撳墠鎺ㄩ�佸崗璁厤缃紝鎵ц澶辫触"; + + return pushDataSingle(items, apiService, apiConf); + } + + /** + * 鍗曟潯鏁版嵁json鎺ㄩ�� + * + * @param items + * @param apiService + * @param apiConf + * @return + */ + private String pushDataSingle(List<Api1507> items, ApiRemoteService apiService, ApiConfs apiConf) { + ResponseDto responseDto; + String result = ""; + + //灏佽鍙傛暟 + ApiParam param = new ApiParam(apiConf, Constant.API_CATEGORY_11, Constant.API_CODE_1507); + Api1507 d; + for (Api1507 data : items) { + d = new Api1507(); + BeanUtils.copyProperties(data, d); + responseDto = apiService.pushData(param, apiConf, d); + result += responseDto.toString(); + if (responseDto.getSuccess() == 0) { + //todo 浠h〃涓婁紶鎴愬姛 ,鍚庢湡闇�瑕佷繚瀛樻棩蹇� + if("i".equals(d.getCzbz())){ + d.setCzbz("u"); + api1507Rep.save(d); + } + } + } + return result; + } + + /** + * 澶氭潯鏁版嵁json鎺ㄩ�� + * + * @param items + * @param apiRemoteService + * @param apiConf + * @return + */ + private String pushDataList(List<Api1507> items, ApiRemoteService apiRemoteService, ApiConfs apiConf) { + + //灏佽鍙傛暟 + ApiParam param = new ApiParam(apiConf, Constant.API_CATEGORY_11, Constant.API_CODE_1507); + + //鎺ㄩ�侊紝鏁版嵁涓洪泦鍚堝舰寮� + ResponseDto responseDto = apiRemoteService.pushData(param, apiConf, items); + if (responseDto.getSuccess() == 0) { + //鎺ㄩ�佹垚鍔燂紝鏇存柊鏁版嵁涓婁紶鐘舵�� + for (Api1507 data : items) { + if (Constant.CZBZ_I.equals(data.getCzbz())) { + //鏇存柊鐘舵�� + data.setCzbz(Constant.CZBZ_U); + api1507Rep.save(data); + } + } + } + return responseDto.toString(); + } +} diff --git a/src/main/java/com/fzzy/api/view/pr/Api1508PR.java b/src/main/java/com/fzzy/api/view/pr/Api1508PR.java new file mode 100644 index 0000000..eea726a --- /dev/null +++ b/src/main/java/com/fzzy/api/view/pr/Api1508PR.java @@ -0,0 +1,173 @@ +package com.fzzy.api.view.pr; + +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.Api1508; +import com.fzzy.api.entity.ApiConfs; +import com.fzzy.api.service.ApiCommonService; +import com.fzzy.api.service.ApiPushManager; +import com.fzzy.api.service.ApiRemoteService; +import com.fzzy.api.utils.ContextUtil; +import com.fzzy.api.view.repository.Api1508Rep; +import org.apache.commons.lang.StringUtils; +import org.springframework.beans.BeanUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Component; + +import java.util.List; + +/** + * 鍒╂鼎琛ㄤ俊鎭� + * @author he + */ +@Component +public class Api1508PR { + + @Autowired + private Api1508Rep api1508Rep; + + @Autowired + private ApiCommonService apiCommonService; + @Autowired + private ApiPushManager apiPushManager; + /** + * api1508PR#listAll + * + * @return + */ + @DataProvider + public List<Api1508> listAll() { + return api1508Rep.findAll(); + } + + /** + * api1508PR#updateSave + * + * @param entity + */ + @DataResolver + public void updateSave(Api1508 entity) { + + // 鎵嬪姩灏哾oradoEntity瀵硅薄杞崲涓烘爣鍑咮ean瀵硅薄 + Api1508 data = new Api1508(); + BeanUtils.copyProperties(entity, data); + if (StringUtils.isEmpty(data.getId())){ + data.setId(ContextUtil.getUUID()); + } + api1508Rep.save(data); + } + + /** + * api1508PR#delData + * + * @param data + */ + @Expose + public String delData(Api1508 data) { + + api1508Rep.deleteById(data.getId()); + + return null; + } + + /** + * + * 鏇存柊鍒犻櫎鏍囪 api1508PR#delUpdate + * + * @param entity + */ + @Expose + public String delUpdate(Api1508 entity) { + + entity.setCzbz(Constant.CZBZ_D); + + Api1508 data = new Api1508(); + BeanUtils.copyProperties(entity, data); + + api1508Rep.save(data); + return null; + } + + /** + * api1508PR#pushData + * + * @param items + */ + @Expose + public String pushData(List<Api1508> items) { + + String kqdm = items.get(0).getKqdm(); + ApiConfs apiConf = apiCommonService.getConf(kqdm); + + if (null == apiConf) return "绯荤粺娌℃湁鑾峰彇鍒板綋鍓嶅簱鍖洪厤缃俊鎭紝鎵ц澶辫触"; + + //鑾峰彇瀹炵幇鎺ュ彛 + ApiRemoteService apiService = apiPushManager.getApiRemoteService(apiConf.getPushProtocol()); + if (null == apiService) return "绯荤粺娌℃湁褰撳墠鎺ㄩ�佸崗璁厤缃紝鎵ц澶辫触"; + + return pushDataSingle(items, apiService, apiConf); + } + + /** + * 鍗曟潯鏁版嵁json鎺ㄩ�� + * + * @param items + * @param apiService + * @param apiConf + * @return + */ + private String pushDataSingle(List<Api1508> items, ApiRemoteService apiService, ApiConfs apiConf) { + ResponseDto responseDto; + String result = ""; + + //灏佽鍙傛暟 + ApiParam param = new ApiParam(apiConf, Constant.API_CATEGORY_11, Constant.API_CODE_1508); + Api1508 d; + for (Api1508 data : items) { + d = new Api1508(); + BeanUtils.copyProperties(data, d); + responseDto = apiService.pushData(param, apiConf, d); + result += responseDto.toString(); + if (responseDto.getSuccess() == 0) { + //todo 浠h〃涓婁紶鎴愬姛 ,鍚庢湡闇�瑕佷繚瀛樻棩蹇� + if("i".equals(d.getCzbz())){ + d.setCzbz("u"); + api1508Rep.save(d); + } + } + } + return result; + } + + /** + * 澶氭潯鏁版嵁json鎺ㄩ�� + * + * @param items + * @param apiRemoteService + * @param apiConf + * @return + */ + private String pushDataList(List<Api1508> items, ApiRemoteService apiRemoteService, ApiConfs apiConf) { + + //灏佽鍙傛暟 + ApiParam param = new ApiParam(apiConf, Constant.API_CATEGORY_11, Constant.API_CODE_1508); + + //鎺ㄩ�侊紝鏁版嵁涓洪泦鍚堝舰寮� + ResponseDto responseDto = apiRemoteService.pushData(param, apiConf, items); + if (responseDto.getSuccess() == 0) { + //鎺ㄩ�佹垚鍔燂紝鏇存柊鏁版嵁涓婁紶鐘舵�� + for (Api1508 data : items) { + if (Constant.CZBZ_I.equals(data.getCzbz())) { + //鏇存柊鐘舵�� + data.setCzbz(Constant.CZBZ_U); + api1508Rep.save(data); + } + } + } + return responseDto.toString(); + } +} diff --git a/src/main/java/com/fzzy/api/view/pr/Api1509PR.java b/src/main/java/com/fzzy/api/view/pr/Api1509PR.java new file mode 100644 index 0000000..5818d42 --- /dev/null +++ b/src/main/java/com/fzzy/api/view/pr/Api1509PR.java @@ -0,0 +1,173 @@ +package com.fzzy.api.view.pr; + +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.Api1509; +import com.fzzy.api.entity.ApiConfs; +import com.fzzy.api.service.ApiCommonService; +import com.fzzy.api.service.ApiPushManager; +import com.fzzy.api.service.ApiRemoteService; +import com.fzzy.api.utils.ContextUtil; +import com.fzzy.api.view.repository.Api1509Rep; +import org.apache.commons.lang.StringUtils; +import org.springframework.beans.BeanUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Component; + +import java.util.List; + +/** + * 鍒╂鼎琛ㄤ俊鎭� + * @author he + */ +@Component +public class Api1509PR { + + @Autowired + private Api1509Rep api1509Rep; + + @Autowired + private ApiCommonService apiCommonService; + @Autowired + private ApiPushManager apiPushManager; + /** + * api1509PR#listAll + * + * @return + */ + @DataProvider + public List<Api1509> listAll() { + return api1509Rep.findAll(); + } + + /** + * api1509PR#updateSave + * + * @param entity + */ + @DataResolver + public void updateSave(Api1509 entity) { + + // 鎵嬪姩灏哾oradoEntity瀵硅薄杞崲涓烘爣鍑咮ean瀵硅薄 + Api1509 data = new Api1509(); + BeanUtils.copyProperties(entity, data); + if (StringUtils.isEmpty(data.getId())){ + data.setId(ContextUtil.getUUID()); + } + api1509Rep.save(data); + } + + /** + * api1509PR#delData + * + * @param data + */ + @Expose + public String delData(Api1509 data) { + + api1509Rep.deleteById(data.getId()); + + return null; + } + + /** + * + * 鏇存柊鍒犻櫎鏍囪 api1509PR#delUpdate + * + * @param entity + */ + @Expose + public String delUpdate(Api1509 entity) { + + entity.setCzbz(Constant.CZBZ_D); + + Api1509 data = new Api1509(); + BeanUtils.copyProperties(entity, data); + + api1509Rep.save(data); + return null; + } + + /** + * api1509PR#pushData + * + * @param items + */ + @Expose + public String pushData(List<Api1509> items) { + + String kqdm = items.get(0).getKqdm(); + ApiConfs apiConf = apiCommonService.getConf(kqdm); + + if (null == apiConf) return "绯荤粺娌℃湁鑾峰彇鍒板綋鍓嶅簱鍖洪厤缃俊鎭紝鎵ц澶辫触"; + + //鑾峰彇瀹炵幇鎺ュ彛 + ApiRemoteService apiService = apiPushManager.getApiRemoteService(apiConf.getPushProtocol()); + if (null == apiService) return "绯荤粺娌℃湁褰撳墠鎺ㄩ�佸崗璁厤缃紝鎵ц澶辫触"; + + return pushDataSingle(items, apiService, apiConf); + } + + /** + * 鍗曟潯鏁版嵁json鎺ㄩ�� + * + * @param items + * @param apiService + * @param apiConf + * @return + */ + private String pushDataSingle(List<Api1509> items, ApiRemoteService apiService, ApiConfs apiConf) { + ResponseDto responseDto; + String result = ""; + + //灏佽鍙傛暟 + ApiParam param = new ApiParam(apiConf, Constant.API_CATEGORY_11, Constant.API_CODE_1509); + Api1509 d; + for (Api1509 data : items) { + d = new Api1509(); + BeanUtils.copyProperties(data, d); + responseDto = apiService.pushData(param, apiConf, d); + result += responseDto.toString(); + if (responseDto.getSuccess() == 0) { + //todo 浠h〃涓婁紶鎴愬姛 ,鍚庢湡闇�瑕佷繚瀛樻棩蹇� + if("i".equals(d.getCzbz())){ + d.setCzbz("u"); + api1509Rep.save(d); + } + } + } + return result; + } + + /** + * 澶氭潯鏁版嵁json鎺ㄩ�� + * + * @param items + * @param apiRemoteService + * @param apiConf + * @return + */ + private String pushDataList(List<Api1509> items, ApiRemoteService apiRemoteService, ApiConfs apiConf) { + + //灏佽鍙傛暟 + ApiParam param = new ApiParam(apiConf, Constant.API_CATEGORY_11, Constant.API_CODE_1509); + + //鎺ㄩ�侊紝鏁版嵁涓洪泦鍚堝舰寮� + ResponseDto responseDto = apiRemoteService.pushData(param, apiConf, items); + if (responseDto.getSuccess() == 0) { + //鎺ㄩ�佹垚鍔燂紝鏇存柊鏁版嵁涓婁紶鐘舵�� + for (Api1509 data : items) { + if (Constant.CZBZ_I.equals(data.getCzbz())) { + //鏇存柊鐘舵�� + data.setCzbz(Constant.CZBZ_U); + api1509Rep.save(data); + } + } + } + return responseDto.toString(); + } +} diff --git a/src/main/java/com/fzzy/api/view/pr/Api1510PR.java b/src/main/java/com/fzzy/api/view/pr/Api1510PR.java new file mode 100644 index 0000000..a9e22e5 --- /dev/null +++ b/src/main/java/com/fzzy/api/view/pr/Api1510PR.java @@ -0,0 +1,174 @@ +package com.fzzy.api.view.pr; + +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.Api1510; +import com.fzzy.api.entity.ApiConfs; +import com.fzzy.api.service.ApiCommonService; +import com.fzzy.api.service.ApiPushManager; +import com.fzzy.api.service.ApiRemoteService; +import com.fzzy.api.utils.ContextUtil; +import com.fzzy.api.view.repository.Api1510Rep; +import org.apache.commons.lang.StringUtils; +import org.springframework.beans.BeanUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Component; + +import java.util.List; + +/** + * 鍒╂鼎琛ㄤ俊鎭� + * + * @author he + */ +@Component +public class Api1510PR { + + @Autowired + private Api1510Rep api1510Rep; + + @Autowired + private ApiCommonService apiCommonService; + @Autowired + private ApiPushManager apiPushManager; + + /** + * api1510PR#listAll + * + * @return + */ + @DataProvider + public List<Api1510> listAll() { + return api1510Rep.findAll(); + } + + /** + * api1510PR#updateSave + * + * @param entity + */ + @DataResolver + public void updateSave(Api1510 entity) { + + // 鎵嬪姩灏哾oradoEntity瀵硅薄杞崲涓烘爣鍑咮ean瀵硅薄 + Api1510 data = new Api1510(); + BeanUtils.copyProperties(entity, data); + if (StringUtils.isEmpty(data.getId())) { + data.setId(ContextUtil.getUUID()); + } + api1510Rep.save(data); + } + + /** + * api1510PR#delData + * + * @param data + */ + @Expose + public String delData(Api1510 data) { + + api1510Rep.deleteById(data.getId()); + + return null; + } + + /** + * 鏇存柊鍒犻櫎鏍囪 api1510PR#delUpdate + * + * @param entity + */ + @Expose + public String delUpdate(Api1510 entity) { + + entity.setCzbz(Constant.CZBZ_D); + + Api1510 data = new Api1510(); + BeanUtils.copyProperties(entity, data); + + api1510Rep.save(data); + return null; + } + + /** + * api1510PR#pushData + * + * @param items + */ + @Expose + public String pushData(List<Api1510> items) { + + String kqdm = items.get(0).getKqdm(); + ApiConfs apiConf = apiCommonService.getConf(kqdm); + + if (null == apiConf) return "绯荤粺娌℃湁鑾峰彇鍒板綋鍓嶅簱鍖洪厤缃俊鎭紝鎵ц澶辫触"; + + //鑾峰彇瀹炵幇鎺ュ彛 + ApiRemoteService apiService = apiPushManager.getApiRemoteService(apiConf.getPushProtocol()); + if (null == apiService) return "绯荤粺娌℃湁褰撳墠鎺ㄩ�佸崗璁厤缃紝鎵ц澶辫触"; + + return pushDataSingle(items, apiService, apiConf); + } + + /** + * 鍗曟潯鏁版嵁json鎺ㄩ�� + * + * @param items + * @param apiService + * @param apiConf + * @return + */ + private String pushDataSingle(List<Api1510> items, ApiRemoteService apiService, ApiConfs apiConf) { + ResponseDto responseDto; + String result = ""; + + //灏佽鍙傛暟 + ApiParam param = new ApiParam(apiConf, Constant.API_CATEGORY_11, Constant.API_CODE_1510); + Api1510 d; + for (Api1510 data : items) { + d = new Api1510(); + BeanUtils.copyProperties(data, d); + responseDto = apiService.pushData(param, apiConf, d); + result += responseDto.toString(); + if (responseDto.getSuccess() == 0) { + //todo 浠h〃涓婁紶鎴愬姛 ,鍚庢湡闇�瑕佷繚瀛樻棩蹇� + if ("i".equals(d.getCzbz())) { + d.setCzbz("u"); + api1510Rep.save(d); + } + } + } + return result; + } + + /** + * 澶氭潯鏁版嵁json鎺ㄩ�� + * + * @param items + * @param apiRemoteService + * @param apiConf + * @return + */ + private String pushDataList(List<Api1510> items, ApiRemoteService apiRemoteService, ApiConfs apiConf) { + + //灏佽鍙傛暟 + ApiParam param = new ApiParam(apiConf, Constant.API_CATEGORY_11, Constant.API_CODE_1510); + + //鎺ㄩ�侊紝鏁版嵁涓洪泦鍚堝舰寮� + ResponseDto responseDto = apiRemoteService.pushData(param, apiConf, items); + if (responseDto.getSuccess() == 0) { + //鎺ㄩ�佹垚鍔燂紝鏇存柊鏁版嵁涓婁紶鐘舵�� + for (Api1510 data : items) { + if (Constant.CZBZ_I.equals(data.getCzbz())) { + //鏇存柊鐘舵�� + data.setCzbz(Constant.CZBZ_U); + api1510Rep.save(data); + } + } + } + return responseDto.toString(); + } +} diff --git a/src/main/java/com/fzzy/api/view/repository/Api1504Rep.java b/src/main/java/com/fzzy/api/view/repository/Api1504Rep.java new file mode 100644 index 0000000..0bed5b2 --- /dev/null +++ b/src/main/java/com/fzzy/api/view/repository/Api1504Rep.java @@ -0,0 +1,42 @@ +package com.fzzy.api.view.repository; + + +import com.fzzy.api.entity.Api1504; +import org.hibernate.annotations.SQLDelete; +import org.springframework.data.jpa.repository.JpaRepository; +import org.springframework.data.jpa.repository.Modifying; +import org.springframework.data.jpa.repository.Query; +import org.springframework.data.repository.query.Param; + +import java.util.Date; +import java.util.List; + + +public interface Api1504Rep extends JpaRepository<Api1504, String> { + + + /** + * 鏍规嵁琛ㄥ崟涓婚敭鏇存柊鎿嶄綔鏍囧織鐘舵�� + * + * @param id 涓婚敭ID + * @param czbz 鎿嶄綔鏍囧織 + * @return + */ + @Modifying + @Query("update Api1504 set czbz=:czbz where nAcctId=:nAcctId ") + int updateStatus(@Param("nAcctId") String id, @Param("czbz") String czbz); + + + /** + * @param kqdm + * @return + */ + @Query("from Api1504 where kqdm=:kqdm and zhgxsj >=:start and zhgxsj <:end order by zhgxsj ") + List<Api1504> findPushDataTime(@Param("kqdm") String kqdm, @Param("start") Date start, @Param("end") Date end); + + @Query("from Api1504 where nAcctId =:id ") + List<Api1504> findDateById(@Param("id") String id); + + @Query("delete from Api1504 where nAcctId=:nAcctId") + void deleteById(@Param("nAcctId") Double nAcctId); +} diff --git a/src/main/java/com/fzzy/api/view/repository/Api1505Rep.java b/src/main/java/com/fzzy/api/view/repository/Api1505Rep.java new file mode 100644 index 0000000..5a181d1 --- /dev/null +++ b/src/main/java/com/fzzy/api/view/repository/Api1505Rep.java @@ -0,0 +1,42 @@ +package com.fzzy.api.view.repository; + + +import com.fzzy.api.entity.Api1505; +import org.springframework.data.jpa.repository.JpaRepository; +import org.springframework.data.jpa.repository.Modifying; +import org.springframework.data.jpa.repository.Query; +import org.springframework.data.repository.query.Param; + +import java.util.Date; +import java.util.List; + + +public interface Api1505Rep extends JpaRepository<Api1505, String> { + + + + /** + * 鏍规嵁琛ㄥ崟涓婚敭鏇存柊鎿嶄綔鏍囧織鐘舵�� + * @param id 涓婚敭ID + * @param czbz 鎿嶄綔鏍囧織 + * @return + */ + @Modifying + @Query("update Api1505 set czbz=:czbz where nAcctId=:id ") + int updateStatus(@Param("id") String id, @Param("czbz") String czbz); + + + /** + * + * @param kqdm + * @return + */ + @Query("from Api1505 where kqdm=:kqdm and zhgxsj >=:start and zhgxsj <:end order by zhgxsj ") + List<Api1505> findPushDataTime(@Param("kqdm") String kqdm, @Param("start") Date start, @Param("end") Date end); + + @Query("from Api1505 where nAcctId =:id ") + List<Api1505> findDateById(@Param("id") String id); + + @Query("delete from Api1505 where nAcctId=:nAcctId") + void deleteById(@Param("nAcctId") Double nAcctId); +} diff --git a/src/main/java/com/fzzy/api/view/repository/Api1506Rep.java b/src/main/java/com/fzzy/api/view/repository/Api1506Rep.java new file mode 100644 index 0000000..d94bb82 --- /dev/null +++ b/src/main/java/com/fzzy/api/view/repository/Api1506Rep.java @@ -0,0 +1,42 @@ +package com.fzzy.api.view.repository; + + +import com.fzzy.api.entity.Api1506; +import org.springframework.data.jpa.repository.JpaRepository; +import org.springframework.data.jpa.repository.Modifying; +import org.springframework.data.jpa.repository.Query; +import org.springframework.data.repository.query.Param; + +import java.util.Date; +import java.util.List; + + +public interface Api1506Rep extends JpaRepository<Api1506, String> { + + + + /** + * 鏍规嵁琛ㄥ崟涓婚敭鏇存柊鎿嶄綔鏍囧織鐘舵�� + * @param id 涓婚敭ID + * @param czbz 鎿嶄綔鏍囧織 + * @return + */ + @Modifying + @Query("update Api1506 set czbz=:czbz where nAcctId=:id ") + int updateStatus(@Param("id") String id, @Param("czbz") String czbz); + + + /** + * + * @param kqdm + * @return + */ + @Query("from Api1506 where kqdm=:kqdm and zhgxsj >=:start and zhgxsj <:end order by zhgxsj ") + List<Api1506> findPushDataTime(@Param("kqdm") String kqdm, @Param("start") Date start, @Param("end") Date end); + + @Query("from Api1506 where nAcctId =:id ") + List<Api1506> findDateById(@Param("id") String id); + + @Query("delete from Api1506 where nAcctId=:nAcctId") + void deleteById(@Param("nAcctId") Double nAcctId); +} diff --git a/src/main/java/com/fzzy/api/view/repository/Api1507Rep.java b/src/main/java/com/fzzy/api/view/repository/Api1507Rep.java new file mode 100644 index 0000000..2fb2238 --- /dev/null +++ b/src/main/java/com/fzzy/api/view/repository/Api1507Rep.java @@ -0,0 +1,42 @@ +package com.fzzy.api.view.repository; + + +import com.fzzy.api.entity.Api1507; +import org.springframework.data.jpa.repository.JpaRepository; +import org.springframework.data.jpa.repository.Modifying; +import org.springframework.data.jpa.repository.Query; +import org.springframework.data.repository.query.Param; + +import java.util.Date; +import java.util.List; + + +public interface Api1507Rep extends JpaRepository<Api1507, String> { + + + + /** + * 鏍规嵁琛ㄥ崟涓婚敭鏇存柊鎿嶄綔鏍囧織鐘舵�� + * @param id 涓婚敭ID + * @param czbz 鎿嶄綔鏍囧織 + * @return + */ + @Modifying + @Query("update Api1507 set czbz=:czbz where nAcctId=:id ") + int updateStatus(@Param("id") String id, @Param("czbz") String czbz); + + + /** + * + * @param kqdm + * @return + */ + @Query("from Api1507 where kqdm=:kqdm and zhgxsj >=:start and zhgxsj <:end order by zhgxsj ") + List<Api1507> findPushDataTime(@Param("kqdm") String kqdm, @Param("start") Date start, @Param("end") Date end); + + @Query("from Api1507 where nAcctId =:id ") + List<Api1507> findDateById(@Param("id") String id); + + @Query("delete from Api1507 where nAcctId=:nAcctId") + void deleteById(@Param("nAcctId") Double nAcctId); +} diff --git a/src/main/java/com/fzzy/api/view/repository/Api1508Rep.java b/src/main/java/com/fzzy/api/view/repository/Api1508Rep.java new file mode 100644 index 0000000..3b521c3 --- /dev/null +++ b/src/main/java/com/fzzy/api/view/repository/Api1508Rep.java @@ -0,0 +1,42 @@ +package com.fzzy.api.view.repository; + + +import com.fzzy.api.entity.Api1508; +import org.springframework.data.jpa.repository.JpaRepository; +import org.springframework.data.jpa.repository.Modifying; +import org.springframework.data.jpa.repository.Query; +import org.springframework.data.repository.query.Param; + +import java.util.Date; +import java.util.List; + + +public interface Api1508Rep extends JpaRepository<Api1508, String> { + + + + /** + * 鏍规嵁琛ㄥ崟涓婚敭鏇存柊鎿嶄綔鏍囧織鐘舵�� + * @param id 涓婚敭ID + * @param czbz 鎿嶄綔鏍囧織 + * @return + */ + @Modifying + @Query("update Api1508 set czbz=:czbz where nAcctId=:id ") + int updateStatus(@Param("id") String id, @Param("czbz") String czbz); + + + /** + * + * @param kqdm + * @return + */ + @Query("from Api1508 where kqdm=:kqdm and zhgxsj >=:start and zhgxsj <:end order by zhgxsj ") + List<Api1508> findPushDataTime(@Param("kqdm") String kqdm, @Param("start") Date start, @Param("end") Date end); + + @Query("from Api1508 where nAcctId =:id ") + List<Api1508> findDateById(@Param("id") String id); + + @Query("delete from Api1508 where nAcctId=:nAcctId") + void deleteById(@Param("nAcctId") Double nAcctId); +} diff --git a/src/main/java/com/fzzy/api/view/repository/Api1509Rep.java b/src/main/java/com/fzzy/api/view/repository/Api1509Rep.java new file mode 100644 index 0000000..16f0a6d --- /dev/null +++ b/src/main/java/com/fzzy/api/view/repository/Api1509Rep.java @@ -0,0 +1,42 @@ +package com.fzzy.api.view.repository; + + +import com.fzzy.api.entity.Api1509; +import org.springframework.data.jpa.repository.JpaRepository; +import org.springframework.data.jpa.repository.Modifying; +import org.springframework.data.jpa.repository.Query; +import org.springframework.data.repository.query.Param; + +import java.util.Date; +import java.util.List; + + +public interface Api1509Rep extends JpaRepository<Api1509, String> { + + + + /** + * 鏍规嵁琛ㄥ崟涓婚敭鏇存柊鎿嶄綔鏍囧織鐘舵�� + * @param id 涓婚敭ID + * @param czbz 鎿嶄綔鏍囧織 + * @return + */ + @Modifying + @Query("update Api1509 set czbz=:czbz where nAcctId=:id ") + int updateStatus(@Param("id") String id, @Param("czbz") String czbz); + + + /** + * + * @param kqdm + * @return + */ + @Query("from Api1509 where kqdm=:kqdm and zhgxsj >=:start and zhgxsj <:end order by zhgxsj ") + List<Api1509> findPushDataTime(@Param("kqdm") String kqdm, @Param("start") Date start, @Param("end") Date end); + + @Query("from Api1509 where nAcctId =:id ") + List<Api1509> findDateById(@Param("id") String id); + + @Query("delete from Api1509 where nAcctId=:nAcctId") + void deleteById(@Param("nAcctId") Double nAcctId); +} diff --git a/src/main/java/com/fzzy/api/view/repository/Api1510Rep.java b/src/main/java/com/fzzy/api/view/repository/Api1510Rep.java new file mode 100644 index 0000000..aa53a57 --- /dev/null +++ b/src/main/java/com/fzzy/api/view/repository/Api1510Rep.java @@ -0,0 +1,41 @@ +package com.fzzy.api.view.repository; + + +import com.fzzy.api.entity.Api1510; +import org.springframework.data.jpa.repository.JpaRepository; +import org.springframework.data.jpa.repository.Modifying; +import org.springframework.data.jpa.repository.Query; +import org.springframework.data.repository.query.Param; + +import java.util.Date; +import java.util.List; + + +public interface Api1510Rep extends JpaRepository<Api1510, String> { + + + /** + * 鏍规嵁琛ㄥ崟涓婚敭鏇存柊鎿嶄綔鏍囧織鐘舵�� + * + * @param id 涓婚敭ID + * @param czbz 鎿嶄綔鏍囧織 + * @return + */ + @Modifying + @Query("update Api1510 set czbz=:czbz where nAcctId=:id ") + int updateStatus(@Param("id") String id, @Param("czbz") String czbz); + + + /** + * @param kqdm + * @return + */ + @Query("from Api1510 where kqdm=:kqdm and zhgxsj >=:start and zhgxsj <:end order by zhgxsj ") + List<Api1510> findPushDataTime(@Param("kqdm") String kqdm, @Param("start") Date start, @Param("end") Date end); + + @Query("from Api1510 where nAcctId =:id ") + List<Api1510> findDateById(@Param("id") String id); + + @Query("delete from Api1510 where nAcctId=:nAcctId") + void deleteById(@Param("nAcctId") Double nAcctId); +} -- Gitblit v1.9.3