YYC
2024-11-08 01a9e07288902ff84bf3007030be6a72e2150679
7个新增页面,增删改
已修改8个文件
已添加21个文件
5603 ■■■■■ 文件已修改
src/main/java/com/fzzy/api/entity/Api1209.java 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/entity/Api1504.java 69 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/entity/Api1505.java 77 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/entity/Api1506.java 81 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/entity/Api1507.java 108 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/entity/Api1508.java 57 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/entity/Api1509.java 100 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/entity/Api1510.java 93 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/view/Api1504.view.xml 432 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/view/Api1505.view.xml 508 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/view/Api1506.view.xml 465 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/view/Api1507.view.xml 539 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/view/Api1508.view.xml 423 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/view/Api1509.view.xml 654 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/view/Api1510.view.xml 484 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/view/pr/Api1504PR.java 173 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/view/pr/Api1505PR.java 173 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/view/pr/Api1506PR.java 173 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/view/pr/Api1507PR.java 173 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/view/pr/Api1508PR.java 173 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/view/pr/Api1509PR.java 173 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/view/pr/Api1510PR.java 174 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/view/repository/Api1504Rep.java 42 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/view/repository/Api1505Rep.java 42 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/view/repository/Api1506Rep.java 42 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/view/repository/Api1507Rep.java 42 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/view/repository/Api1508Rep.java 42 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/view/repository/Api1509Rep.java 42 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/view/repository/Api1510Rep.java 41 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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")
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 = "会计制度代码", description = "11:企业会计准则制度(粮食2013版)(默认代码值)")
    @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 = "单位代码")
    @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)
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)
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)
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)
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 = "现金流量项目代码")
    @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 = "操作标志")
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;
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)
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">会计制度代码</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">单位代码</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">库区代码</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(&quot;apiTriggerService#trigger&quot;).getResult(&quot;CZBZ&quot;)}</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(&quot;#dsMain&quot;).flushAsync();&#xD;
</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(&quot;#dsMain&quot;).insert();&#xD;
view.get(&quot;#dialogMain&quot;).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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
if(cur){&#xD;
    view.get(&quot;#dialogMain&quot;).show();&#xD;
}else{&#xD;
    $alert(&quot;请勾选需要修改的数据!&quot;);&#xD;
}&#xD;
</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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
if(cur){&#xD;
    view.get(&quot;#ajaxDelUpdate&quot;).set(&quot;parameter&quot;,cur).execute(function(result){&#xD;
        if(result){&#xD;
            $alert(result);&#xD;
        } else{&#xD;
            cur.set(&quot;czbz&quot;,&quot;d&quot;);&#xD;
        }&#xD;
    });&#xD;
}else{&#xD;
    $alert(&quot;请勾选需要标记删除的数据!&quot;);&#xD;
}&#xD;
</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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
if(cur){&#xD;
    view.get(&quot;#ajaxDel&quot;).set(&quot;parameter&quot;,cur).execute(function(result){&#xD;
        if(result){&#xD;
            $alert(result);&#xD;
        } else{&#xD;
            cur.remove();&#xD;
        }&#xD;
    });&#xD;
}else{&#xD;
    $alert(&quot;请勾选需要删除的数据!&quot;);&#xD;
}&#xD;
&#xD;
</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(&quot;#dgMain&quot;).get(&quot;selection&quot;);&#xD;
if(select &amp;&amp; select.length > 0){&#xD;
    view.get(&quot;#ajaxPush&quot;).set(&quot;parameter&quot;,select).execute(function(result){&#xD;
        view.get(&quot;#dsMain&quot;).flushAsync();&#xD;
        $notify(result);&#xD;
    });&#xD;
}else{&#xD;
    $alert(&quot;请勾选需要上报的数据!&quot;);&#xD;
}</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">//显示记录&#xD;
view.get(&quot;#iFrame&quot;).reload();&#xD;
view.get(&quot;#dialogLog&quot;).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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
view.get(&quot;#updateSave&quot;).execute(function(){&#xD;
    self.get(&quot;parent&quot;).hide();&#xD;
    view.get(&quot;#dsMain&quot;).flushAsync();&#xD;
});&#xD;
</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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
self.get(&quot;parent&quot;).hide();&#xD;
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(&quot;parent&quot;).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>
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">库区代码</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(&quot;apiTriggerService#trigger&quot;).getResult(&quot;CZBZ&quot;)}</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(&quot;#dsMain&quot;).flushAsync();&#xD;
</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(&quot;#dsMain&quot;).insert();&#xD;
view.get(&quot;#dialogMain&quot;).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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
if(cur){&#xD;
    view.get(&quot;#dialogMain&quot;).show();&#xD;
}else{&#xD;
    $alert(&quot;请勾选需要修改的数据!&quot;);&#xD;
}&#xD;
</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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
if(cur){&#xD;
    view.get(&quot;#ajaxDelUpdate&quot;).set(&quot;parameter&quot;,cur).execute(function(result){&#xD;
        if(result){&#xD;
            $alert(result);&#xD;
        } else{&#xD;
            cur.set(&quot;czbz&quot;,&quot;d&quot;);&#xD;
        }&#xD;
    });&#xD;
}else{&#xD;
    $alert(&quot;请勾选需要标记删除的数据!&quot;);&#xD;
}&#xD;
</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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
if(cur){&#xD;
    view.get(&quot;#ajaxDel&quot;).set(&quot;parameter&quot;,cur).execute(function(result){&#xD;
        if(result){&#xD;
            $alert(result);&#xD;
        } else{&#xD;
            cur.remove();&#xD;
        }&#xD;
    });&#xD;
}else{&#xD;
    $alert(&quot;请勾选需要删除的数据!&quot;);&#xD;
}&#xD;
&#xD;
</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(&quot;#dgMain&quot;).get(&quot;selection&quot;);&#xD;
if(select &amp;&amp; select.length > 0){&#xD;
    view.get(&quot;#ajaxPush&quot;).set(&quot;parameter&quot;,select).execute(function(result){&#xD;
        view.get(&quot;#dsMain&quot;).flushAsync();&#xD;
        $notify(result);&#xD;
    });&#xD;
}else{&#xD;
    $alert(&quot;请勾选需要上报的数据!&quot;);&#xD;
}</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">//显示记录&#xD;
view.get(&quot;#iFrame&quot;).reload();&#xD;
view.get(&quot;#dialogLog&quot;).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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
view.get(&quot;#updateSave&quot;).execute(function(){&#xD;
    self.get(&quot;parent&quot;).hide();&#xD;
    view.get(&quot;#dsMain&quot;).flushAsync();&#xD;
});&#xD;
</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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
self.get(&quot;parent&quot;).hide();&#xD;
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(&quot;parent&quot;).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>
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">库区代码</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(&quot;apiTriggerService#trigger&quot;).getResult(&quot;CZBZ&quot;)}</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(&quot;#dsMain&quot;).flushAsync();&#xD;
</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(&quot;#dsMain&quot;).insert();&#xD;
view.get(&quot;#dialogMain&quot;).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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
if(cur){&#xD;
    view.get(&quot;#dialogMain&quot;).show();&#xD;
}else{&#xD;
    $alert(&quot;请勾选需要修改的数据!&quot;);&#xD;
}&#xD;
</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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
if(cur){&#xD;
    view.get(&quot;#ajaxDelUpdate&quot;).set(&quot;parameter&quot;,cur).execute(function(result){&#xD;
        if(result){&#xD;
            $alert(result);&#xD;
        } else{&#xD;
            cur.set(&quot;czbz&quot;,&quot;d&quot;);&#xD;
        }&#xD;
    });&#xD;
}else{&#xD;
    $alert(&quot;请勾选需要标记删除的数据!&quot;);&#xD;
}&#xD;
</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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
if(cur){&#xD;
    view.get(&quot;#ajaxDel&quot;).set(&quot;parameter&quot;,cur).execute(function(result){&#xD;
        if(result){&#xD;
            $alert(result);&#xD;
        } else{&#xD;
            cur.remove();&#xD;
        }&#xD;
    });&#xD;
}else{&#xD;
    $alert(&quot;请勾选需要删除的数据!&quot;);&#xD;
}&#xD;
&#xD;
</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(&quot;#dgMain&quot;).get(&quot;selection&quot;);&#xD;
if(select &amp;&amp; select.length > 0){&#xD;
    view.get(&quot;#ajaxPush&quot;).set(&quot;parameter&quot;,select).execute(function(result){&#xD;
        view.get(&quot;#dsMain&quot;).flushAsync();&#xD;
        $notify(result);&#xD;
    });&#xD;
}else{&#xD;
    $alert(&quot;请勾选需要上报的数据!&quot;);&#xD;
}</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">//显示记录&#xD;
view.get(&quot;#iFrame&quot;).reload();&#xD;
view.get(&quot;#dialogLog&quot;).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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
view.get(&quot;#updateSave&quot;).execute(function(){&#xD;
    self.get(&quot;parent&quot;).hide();&#xD;
    view.get(&quot;#dsMain&quot;).flushAsync();&#xD;
});&#xD;
</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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
self.get(&quot;parent&quot;).hide();&#xD;
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(&quot;parent&quot;).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>
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">库区代码</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(&quot;apiTriggerService#trigger&quot;).getResult(&quot;CZBZ&quot;)}</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(&quot;#dsMain&quot;).flushAsync();&#xD;
</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(&quot;#dsMain&quot;).insert();&#xD;
view.get(&quot;#dialogMain&quot;).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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
if(cur){&#xD;
    view.get(&quot;#dialogMain&quot;).show();&#xD;
}else{&#xD;
    $alert(&quot;请勾选需要修改的数据!&quot;);&#xD;
}&#xD;
</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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
if(cur){&#xD;
    view.get(&quot;#ajaxDelUpdate&quot;).set(&quot;parameter&quot;,cur).execute(function(result){&#xD;
        if(result){&#xD;
            $alert(result);&#xD;
        } else{&#xD;
            cur.set(&quot;czbz&quot;,&quot;d&quot;);&#xD;
        }&#xD;
    });&#xD;
}else{&#xD;
    $alert(&quot;请勾选需要标记删除的数据!&quot;);&#xD;
}&#xD;
</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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
if(cur){&#xD;
    view.get(&quot;#ajaxDel&quot;).set(&quot;parameter&quot;,cur).execute(function(result){&#xD;
        if(result){&#xD;
            $alert(result);&#xD;
        } else{&#xD;
            cur.remove();&#xD;
        }&#xD;
    });&#xD;
}else{&#xD;
    $alert(&quot;请勾选需要删除的数据!&quot;);&#xD;
}&#xD;
&#xD;
</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(&quot;#dgMain&quot;).get(&quot;selection&quot;);&#xD;
if(select &amp;&amp; select.length > 0){&#xD;
    view.get(&quot;#ajaxPush&quot;).set(&quot;parameter&quot;,select).execute(function(result){&#xD;
        view.get(&quot;#dsMain&quot;).flushAsync();&#xD;
        $notify(result);&#xD;
    });&#xD;
}else{&#xD;
    $alert(&quot;请勾选需要上报的数据!&quot;);&#xD;
}</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">//显示记录&#xD;
view.get(&quot;#iFrame&quot;).reload();&#xD;
view.get(&quot;#dialogLog&quot;).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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
view.get(&quot;#updateSave&quot;).execute(function(){&#xD;
    self.get(&quot;parent&quot;).hide();&#xD;
    view.get(&quot;#dsMain&quot;).flushAsync();&#xD;
});&#xD;
</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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
self.get(&quot;parent&quot;).hide();&#xD;
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(&quot;parent&quot;).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>
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">库区代码</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">现金流量项目代码</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(&quot;apiTriggerService#trigger&quot;).getResult(&quot;CZBZ&quot;)}</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(&quot;#dsMain&quot;).flushAsync();&#xD;
</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(&quot;#dsMain&quot;).insert();&#xD;
view.get(&quot;#dialogMain&quot;).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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
if(cur){&#xD;
    view.get(&quot;#dialogMain&quot;).show();&#xD;
}else{&#xD;
    $alert(&quot;请勾选需要修改的数据!&quot;);&#xD;
}&#xD;
</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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
if(cur){&#xD;
    view.get(&quot;#ajaxDelUpdate&quot;).set(&quot;parameter&quot;,cur).execute(function(result){&#xD;
        if(result){&#xD;
            $alert(result);&#xD;
        } else{&#xD;
            cur.set(&quot;czbz&quot;,&quot;d&quot;);&#xD;
        }&#xD;
    });&#xD;
}else{&#xD;
    $alert(&quot;请勾选需要标记删除的数据!&quot;);&#xD;
}&#xD;
</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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
if(cur){&#xD;
    view.get(&quot;#ajaxDel&quot;).set(&quot;parameter&quot;,cur).execute(function(result){&#xD;
        if(result){&#xD;
            $alert(result);&#xD;
        } else{&#xD;
            cur.remove();&#xD;
        }&#xD;
    });&#xD;
}else{&#xD;
    $alert(&quot;请勾选需要删除的数据!&quot;);&#xD;
}&#xD;
&#xD;
</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(&quot;#dgMain&quot;).get(&quot;selection&quot;);&#xD;
if(select &amp;&amp; select.length > 0){&#xD;
    view.get(&quot;#ajaxPush&quot;).set(&quot;parameter&quot;,select).execute(function(result){&#xD;
        view.get(&quot;#dsMain&quot;).flushAsync();&#xD;
        $notify(result);&#xD;
    });&#xD;
}else{&#xD;
    $alert(&quot;请勾选需要上报的数据!&quot;);&#xD;
}</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">//显示记录&#xD;
view.get(&quot;#iFrame&quot;).reload();&#xD;
view.get(&quot;#dialogLog&quot;).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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
view.get(&quot;#updateSave&quot;).execute(function(){&#xD;
    self.get(&quot;parent&quot;).hide();&#xD;
    view.get(&quot;#dsMain&quot;).flushAsync();&#xD;
});&#xD;
</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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
self.get(&quot;parent&quot;).hide();&#xD;
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(&quot;parent&quot;).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>
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">库区代码</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(&quot;#dsMain&quot;).flushAsync();&#xD;
</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(&quot;#dsMain&quot;).insert();&#xD;
view.get(&quot;#dialogMain&quot;).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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
if(cur){&#xD;
    view.get(&quot;#dialogMain&quot;).show();&#xD;
}else{&#xD;
    $alert(&quot;请勾选需要修改的数据!&quot;);&#xD;
}&#xD;
</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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
if(cur){&#xD;
    view.get(&quot;#ajaxDelUpdate&quot;).set(&quot;parameter&quot;,cur).execute(function(result){&#xD;
        if(result){&#xD;
            $alert(result);&#xD;
        } else{&#xD;
            cur.set(&quot;czbz&quot;,&quot;d&quot;);&#xD;
        }&#xD;
    });&#xD;
}else{&#xD;
    $alert(&quot;请勾选需要标记删除的数据!&quot;);&#xD;
}&#xD;
</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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
if(cur){&#xD;
    view.get(&quot;#ajaxDel&quot;).set(&quot;parameter&quot;,cur).execute(function(result){&#xD;
        if(result){&#xD;
            $alert(result);&#xD;
        } else{&#xD;
            cur.remove();&#xD;
        }&#xD;
    });&#xD;
}else{&#xD;
    $alert(&quot;请勾选需要删除的数据!&quot;);&#xD;
}&#xD;
&#xD;
</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(&quot;#dgMain&quot;).get(&quot;selection&quot;);&#xD;
if(select &amp;&amp; select.length > 0){&#xD;
    view.get(&quot;#ajaxPush&quot;).set(&quot;parameter&quot;,select).execute(function(result){&#xD;
        view.get(&quot;#dsMain&quot;).flushAsync();&#xD;
        $notify(result);&#xD;
    });&#xD;
}else{&#xD;
    $alert(&quot;请勾选需要上报的数据!&quot;);&#xD;
}</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">//显示记录&#xD;
view.get(&quot;#iFrame&quot;).reload();&#xD;
view.get(&quot;#dialogLog&quot;).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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
view.get(&quot;#updateSave&quot;).execute(function(){&#xD;
    self.get(&quot;parent&quot;).hide();&#xD;
    view.get(&quot;#dsMain&quot;).flushAsync();&#xD;
});&#xD;
</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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
self.get(&quot;parent&quot;).hide();&#xD;
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(&quot;parent&quot;).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>
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">库区代码</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(&quot;#dsMain&quot;).flushAsync();&#xD;
</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(&quot;#dsMain&quot;).insert();&#xD;
view.get(&quot;#dialogMain&quot;).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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
if(cur){&#xD;
    view.get(&quot;#dialogMain&quot;).show();&#xD;
}else{&#xD;
    $alert(&quot;请勾选需要修改的数据!&quot;);&#xD;
}&#xD;
</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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
if(cur){&#xD;
    view.get(&quot;#ajaxDelUpdate&quot;).set(&quot;parameter&quot;,cur).execute(function(result){&#xD;
        if(result){&#xD;
            $alert(result);&#xD;
        } else{&#xD;
            cur.set(&quot;czbz&quot;,&quot;d&quot;);&#xD;
        }&#xD;
    });&#xD;
}else{&#xD;
    $alert(&quot;请勾选需要标记删除的数据!&quot;);&#xD;
}&#xD;
</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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
if(cur){&#xD;
    view.get(&quot;#ajaxDel&quot;).set(&quot;parameter&quot;,cur).execute(function(result){&#xD;
        if(result){&#xD;
            $alert(result);&#xD;
        } else{&#xD;
            cur.remove();&#xD;
        }&#xD;
    });&#xD;
}else{&#xD;
    $alert(&quot;请勾选需要删除的数据!&quot;);&#xD;
}&#xD;
&#xD;
</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(&quot;#dgMain&quot;).get(&quot;selection&quot;);&#xD;
if(select &amp;&amp; select.length > 0){&#xD;
    view.get(&quot;#ajaxPush&quot;).set(&quot;parameter&quot;,select).execute(function(result){&#xD;
        view.get(&quot;#dsMain&quot;).flushAsync();&#xD;
        $notify(result);&#xD;
    });&#xD;
}else{&#xD;
    $alert(&quot;请勾选需要上报的数据!&quot;);&#xD;
}</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">//显示记录&#xD;
view.get(&quot;#iFrame&quot;).reload();&#xD;
view.get(&quot;#dialogLog&quot;).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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
view.get(&quot;#updateSave&quot;).execute(function(){&#xD;
    self.get(&quot;parent&quot;).hide();&#xD;
    view.get(&quot;#dsMain&quot;).flushAsync();&#xD;
});&#xD;
</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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
self.get(&quot;parent&quot;).hide();&#xD;
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(&quot;parent&quot;).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>
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) {
        // æ‰‹åЍ将doradoEntity对象转换为标准Bean对象
        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 ä»£è¡¨ä¸Šä¼ æˆåŠŸ ,后期需要保存日志
                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();
    }
}
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) {
        // æ‰‹åЍ将doradoEntity对象转换为标准Bean对象
        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 ä»£è¡¨ä¸Šä¼ æˆåŠŸ ,后期需要保存日志
                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();
    }
}
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) {
        // æ‰‹åЍ将doradoEntity对象转换为标准Bean对象
        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 ä»£è¡¨ä¸Šä¼ æˆåŠŸ ,后期需要保存日志
                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();
    }
}
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) {
        // æ‰‹åЍ将doradoEntity对象转换为标准Bean对象
        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 ä»£è¡¨ä¸Šä¼ æˆåŠŸ ,后期需要保存日志
                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();
    }
}
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) {
        // æ‰‹åЍ将doradoEntity对象转换为标准Bean对象
        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 ä»£è¡¨ä¸Šä¼ æˆåŠŸ ,后期需要保存日志
                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();
    }
}
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) {
        // æ‰‹åЍ将doradoEntity对象转换为标准Bean对象
        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 ä»£è¡¨ä¸Šä¼ æˆåŠŸ ,后期需要保存日志
                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();
    }
}
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) {
        // æ‰‹åЍ将doradoEntity对象转换为标准Bean对象
        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 ä»£è¡¨ä¸Šä¼ æˆåŠŸ ,后期需要保存日志
                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();
    }
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}