|
|
@@ -26,6 +26,56 @@ public class SaleDownDetail {
|
|
|
private Double sd_taxtotal;
|
|
|
private String sd_factory;
|
|
|
private String sd_remark;
|
|
|
+ //终端供应商名称
|
|
|
+ private String sd_purcvendname;
|
|
|
+ //终端供应商uu
|
|
|
+ private Long sd_purcvenduu;
|
|
|
+ //客户采购订单序号
|
|
|
+ private Short sd_purcdetno;
|
|
|
+ //收货客户
|
|
|
+ private String sd_acceptcustname;
|
|
|
+ //收货地址
|
|
|
+ private String sd_acceptcustaddress;
|
|
|
+ //终端供应商编号
|
|
|
+ private String sd_purcvendcode;
|
|
|
+ //终端单价
|
|
|
+ private Float sd_SpecPrice;
|
|
|
+ //终端税率
|
|
|
+ private Float sd_SpecTaxRate;
|
|
|
+ //终端币别
|
|
|
+ private String sd_SpecCurrency;
|
|
|
+
|
|
|
+ public Float getSd_SpecPrice() {
|
|
|
+ return sd_SpecPrice;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setSd_SpecPrice(Float sd_SpecPrice) {
|
|
|
+ this.sd_SpecPrice = sd_SpecPrice;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Float getSd_SpecTaxRate() {
|
|
|
+ return sd_SpecTaxRate;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setSd_SpecTaxRate(Float sd_SpecTaxRate) {
|
|
|
+ this.sd_SpecTaxRate = sd_SpecTaxRate;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getSd_SpecCurrency() {
|
|
|
+ return sd_SpecCurrency;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setSd_SpecCurrency(String sd_SpecCurrency) {
|
|
|
+ this.sd_SpecCurrency = sd_SpecCurrency;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getSd_purcvendcode() {
|
|
|
+ return sd_purcvendcode;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setSd_purcvendcode(String sd_purcvendcode) {
|
|
|
+ this.sd_purcvendcode = sd_purcvendcode;
|
|
|
+ }
|
|
|
|
|
|
public long getB2b_pd_id() {
|
|
|
return b2b_pd_id;
|
|
|
@@ -171,10 +221,50 @@ public class SaleDownDetail {
|
|
|
this.sd_remark = sd_remark;
|
|
|
}
|
|
|
|
|
|
+ public String getSd_purcvendname() {
|
|
|
+ return sd_purcvendname;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setSd_purcvendname(String sd_purcvendname) {
|
|
|
+ this.sd_purcvendname = sd_purcvendname;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Long getSd_purcvenduu() {
|
|
|
+ return sd_purcvenduu;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setSd_purcvenduu(Long sd_purcvenduu) {
|
|
|
+ this.sd_purcvenduu = sd_purcvenduu;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Short getSd_purcdetno() {
|
|
|
+ return sd_purcdetno;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setSd_purcdetno(Short sd_purcdetno) {
|
|
|
+ this.sd_purcdetno = sd_purcdetno;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getSd_acceptcustname() {
|
|
|
+ return sd_acceptcustname;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setSd_acceptcustname(String sd_acceptcustname) {
|
|
|
+ this.sd_acceptcustname = sd_acceptcustname;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getSd_acceptcustaddress() {
|
|
|
+ return sd_acceptcustaddress;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setSd_acceptcustaddress(String sd_acceptcustaddress) {
|
|
|
+ this.sd_acceptcustaddress = sd_acceptcustaddress;
|
|
|
+ }
|
|
|
+
|
|
|
public String toSqlString(int foreignKey) {
|
|
|
return "insert into SaleDownDetail(b2b_pd_id,sd_id,sd_said,sd_code,sd_detno,sd_custprodcode,sd_custproddetail,sd_prodname,sd_custprodspec,sd_prodspec,"
|
|
|
- + "sd_custprodunit,sd_replyqty,sd_replydate,sd_replydetail,sd_price,sd_qty,sd_total,sd_taxrate,"
|
|
|
- + "sd_taxtotal,sd_delivery,sd_remark) VALUES ("
|
|
|
+ + "sd_custprodunit,sd_replyqty,sd_replydate,sd_replydetail,sd_price,sd_qty,sd_total,sd_taxrate,sd_SpecPrice,sd_SpecTaxRate,sd_SpecCurrency,"
|
|
|
+ + "sd_taxtotal,sd_delivery,sd_remark,sd_purcvendname,sd_purcvenduu,sd_purcdetno,sd_acceptcustname,sd_acceptcustaddress,sd_purcvendcode) VALUES ("
|
|
|
+ b2b_pd_id
|
|
|
+ ",SaleDownDetail_SEQ.nextval,"
|
|
|
+ foreignKey
|
|
|
@@ -209,11 +299,28 @@ public class SaleDownDetail {
|
|
|
+ ","
|
|
|
+ NumberUtil.nvl(sd_taxrate, 0)
|
|
|
+ ","
|
|
|
+ + NumberUtil.nvl(sd_SpecPrice, 0)
|
|
|
+ + ","
|
|
|
+ + NumberUtil.nvl(sd_SpecTaxRate, 0)
|
|
|
+ + ",'"
|
|
|
+ + StringUtil.nvl(sd_SpecCurrency, "")
|
|
|
+ + "',"
|
|
|
+ NumberUtil.nvl(sd_taxtotal, 0)
|
|
|
+ ","
|
|
|
+ (sd_delivery == null ? "null" : DateUtil.parseDateToOracleString(null, sd_delivery))
|
|
|
+ ",'"
|
|
|
- + sd_remark +"')";
|
|
|
+ + sd_remark
|
|
|
+ + "','"
|
|
|
+ +sd_purcvendname
|
|
|
+ + "',"
|
|
|
+ +sd_purcvenduu
|
|
|
+ + ","
|
|
|
+ +sd_purcdetno
|
|
|
+ + ",'"
|
|
|
+ +StringUtil.nvl(sd_acceptcustname, "")
|
|
|
+ + "','"
|
|
|
+ +StringUtil.nvl(sd_acceptcustaddress, "")
|
|
|
+ +"',(select ve_code from vendor where ve_uu="+sd_purcvenduu+" and rownum=1))";
|
|
|
}
|
|
|
|
|
|
}
|