|
|
package com.sunyo.wlpt.base.model.efreight.fwb;
|
|
|
|
|
|
import com.sunyo.wlpt.base.model.efreight.BASE;
|
|
|
import com.sunyo.wlpt.base.model.efreight.fwb.exception.FWBException;
|
|
|
|
|
|
/**
|
|
|
* RTD
|
|
|
* Rate Description
|
...
|
...
|
@@ -13,7 +17,7 @@ package com.sunyo.wlpt.base.model.efreight.fwb; |
|
|
* /4/NV/MC0.56
|
|
|
* CTLF
|
|
|
*/
|
|
|
public class FWB_RTD {
|
|
|
public class FWB_RTD extends BASE implements FWB_BASE{
|
|
|
/**
|
|
|
* NODE:P
|
|
|
* Number of Pieces
|
...
|
...
|
@@ -106,7 +110,7 @@ public class FWB_RTD { |
|
|
* DEMO:
|
|
|
* T2334.73
|
|
|
*/
|
|
|
private String rtd_rate_total;
|
|
|
private String rtd_total;
|
|
|
|
|
|
/**
|
|
|
* NODE:NG
|
...
|
...
|
@@ -215,5 +219,212 @@ public class FWB_RTD { |
|
|
*/
|
|
|
private String rtd_volume;
|
|
|
|
|
|
public String getRtd_number_pieces() {
|
|
|
return rtd_number_pieces;
|
|
|
}
|
|
|
|
|
|
public void setRtd_number_pieces(String rtd_number_pieces) {
|
|
|
this.rtd_number_pieces = rtd_number_pieces;
|
|
|
}
|
|
|
|
|
|
public String getRtd_combination_point() {
|
|
|
return rtd_combination_point;
|
|
|
}
|
|
|
|
|
|
public void setRtd_combination_point(String rtd_combination_point) {
|
|
|
this.rtd_combination_point = rtd_combination_point;
|
|
|
}
|
|
|
|
|
|
public String getRtd_gross_weight() {
|
|
|
return rtd_gross_weight;
|
|
|
}
|
|
|
|
|
|
public void setRtd_gross_weight(String rtd_gross_weight) {
|
|
|
this.rtd_gross_weight = rtd_gross_weight;
|
|
|
}
|
|
|
|
|
|
public String getRtd_rate_class() {
|
|
|
return rtd_rate_class;
|
|
|
}
|
|
|
|
|
|
public void setRtd_rate_class(String rtd_rate_class) {
|
|
|
this.rtd_rate_class = rtd_rate_class;
|
|
|
}
|
|
|
|
|
|
public String getRtd_commodity_NUM() {
|
|
|
return rtd_commodity_NUM;
|
|
|
}
|
|
|
|
|
|
public void setRtd_commodity_NUM(String rtd_commodity_NUM) {
|
|
|
this.rtd_commodity_NUM = rtd_commodity_NUM;
|
|
|
}
|
|
|
|
|
|
public String getRtd_charge_weight() {
|
|
|
return rtd_charge_weight;
|
|
|
}
|
|
|
|
|
|
public void setRtd_charge_weight(String rtd_charge_weight) {
|
|
|
this.rtd_charge_weight = rtd_charge_weight;
|
|
|
}
|
|
|
|
|
|
public String getRtd_rate_charge() {
|
|
|
return rtd_rate_charge;
|
|
|
}
|
|
|
|
|
|
public void setRtd_rate_charge(String rtd_rate_charge) {
|
|
|
this.rtd_rate_charge = rtd_rate_charge;
|
|
|
}
|
|
|
|
|
|
public String getRtd_total() {
|
|
|
return rtd_total;
|
|
|
}
|
|
|
|
|
|
public void setRtd_total(String rtd_total) {
|
|
|
this.rtd_total = rtd_total;
|
|
|
}
|
|
|
|
|
|
public String getRtd_goods_DES() {
|
|
|
return rtd_goods_DES;
|
|
|
}
|
|
|
|
|
|
public void setRtd_goods_DES(String rtd_goods_DES) {
|
|
|
this.rtd_goods_DES = rtd_goods_DES;
|
|
|
}
|
|
|
|
|
|
public String getRtd_goods_consol_DES() {
|
|
|
return rtd_goods_consol_DES;
|
|
|
}
|
|
|
|
|
|
public void setRtd_goods_consol_DES(String rtd_goods_consol_DES) {
|
|
|
this.rtd_goods_consol_DES = rtd_goods_consol_DES;
|
|
|
}
|
|
|
|
|
|
public String getRtd_goods_DIM_weightcode() {
|
|
|
return rtd_goods_DIM_weightcode;
|
|
|
}
|
|
|
|
|
|
public void setRtd_goods_DIM_weightcode(String rtd_goods_DIM_weightcode) {
|
|
|
this.rtd_goods_DIM_weightcode = rtd_goods_DIM_weightcode;
|
|
|
}
|
|
|
|
|
|
public String getRtd_goods_DIM_weight() {
|
|
|
return rtd_goods_DIM_weight;
|
|
|
}
|
|
|
|
|
|
public void setRtd_goods_DIM_weight(String rtd_goods_DIM_weight) {
|
|
|
this.rtd_goods_DIM_weight = rtd_goods_DIM_weight;
|
|
|
}
|
|
|
|
|
|
public String getRtd_measurement_code() {
|
|
|
return rtd_measurement_code;
|
|
|
}
|
|
|
|
|
|
public void setRtd_measurement_code(String rtd_measurement_code) {
|
|
|
this.rtd_measurement_code = rtd_measurement_code;
|
|
|
}
|
|
|
|
|
|
public String getRtd_measurement_info() {
|
|
|
return rtd_measurement_info;
|
|
|
}
|
|
|
|
|
|
public void setRtd_measurement_info(String rtd_measurement_info) {
|
|
|
this.rtd_measurement_info = rtd_measurement_info;
|
|
|
}
|
|
|
|
|
|
public String getRtd_volume_code() {
|
|
|
return rtd_volume_code;
|
|
|
}
|
|
|
|
|
|
public void setRtd_volume_code(String rtd_volume_code) {
|
|
|
this.rtd_volume_code = rtd_volume_code;
|
|
|
}
|
|
|
|
|
|
public String getRtd_volume() {
|
|
|
return rtd_volume;
|
|
|
}
|
|
|
|
|
|
public void setRtd_volume(String rtd_volume) {
|
|
|
this.rtd_volume = rtd_volume;
|
|
|
}
|
|
|
|
|
|
//todo: 还有NU,NS,NH,NO等信息后面完善
|
|
|
|
|
|
@Override
|
|
|
public String getFWBNodeText() throws FWBException {
|
|
|
String SPLIT_CODE = "/";
|
|
|
String CRLF = "\n";
|
|
|
StringBuilder sb = new StringBuilder("");
|
|
|
Integer lineNumber = 1;
|
|
|
|
|
|
sb.append(getNodeName()).append(SPLIT_CODE).append(lineNumber++);
|
|
|
;
|
|
|
if (hasText(rtd_number_pieces)){
|
|
|
sb.append(SPLIT_CODE).append("P").append(getRtd_number_pieces());
|
|
|
}
|
|
|
|
|
|
if (hasText(rtd_gross_weight)){
|
|
|
sb.append(SPLIT_CODE).append("K").append(getRtd_gross_weight());
|
|
|
}
|
|
|
|
|
|
if (hasText(rtd_rate_class)){
|
|
|
sb.append(SPLIT_CODE).append("C").append(getRtd_rate_class());
|
|
|
}
|
|
|
|
|
|
if (hasText(rtd_commodity_NUM)){
|
|
|
sb.append(SPLIT_CODE).append("S").append(getRtd_commodity_NUM());
|
|
|
}
|
|
|
|
|
|
if (hasText(rtd_charge_weight)){
|
|
|
sb.append(SPLIT_CODE).append("W").append(getRtd_charge_weight());
|
|
|
}
|
|
|
|
|
|
if (hasText(rtd_rate_charge)){
|
|
|
sb.append(SPLIT_CODE).append("R").append(getRtd_rate_charge());
|
|
|
}
|
|
|
|
|
|
if (hasText(rtd_total)){
|
|
|
sb.append(SPLIT_CODE).append("T").append(getRtd_total());
|
|
|
}
|
|
|
|
|
|
if (hasText(rtd_goods_DES) || hasText(rtd_goods_consol_DES)){
|
|
|
|
|
|
sb.append(CRLF);
|
|
|
|
|
|
if (hasText(rtd_goods_DES) && hasText(rtd_goods_consol_DES)){
|
|
|
sb.append(SPLIT_CODE).append("NG").append(SPLIT_CODE).append(getRtd_goods_DES());
|
|
|
sb.append(CRLF);
|
|
|
sb.append(SPLIT_CODE).append(lineNumber++).append(SPLIT_CODE)
|
|
|
.append("NC").append(SPLIT_CODE).append(getRtd_goods_consol_DES());
|
|
|
|
|
|
}else if (hasText(rtd_goods_DES)){
|
|
|
sb.append(SPLIT_CODE).append("NG").append(SPLIT_CODE).append(getRtd_goods_DES());
|
|
|
}else if (hasText(rtd_goods_consol_DES)){
|
|
|
sb.append(SPLIT_CODE).append("NC").append(SPLIT_CODE).append(getRtd_goods_consol_DES());
|
|
|
}
|
|
|
sb.append(CRLF);
|
|
|
}
|
|
|
|
|
|
if (hasText(getRtd_measurement_info())){
|
|
|
sb.append(SPLIT_CODE).append(lineNumber++).append(SPLIT_CODE).append("ND");
|
|
|
if (hasText(rtd_goods_DIM_weight)){
|
|
|
sb.append(getRtd_goods_DIM_weightcode()).append(getRtd_goods_DIM_weight());
|
|
|
}
|
|
|
sb.append(SPLIT_CODE);
|
|
|
sb.append(getRtd_measurement_code()).append(getRtd_measurement_info());
|
|
|
sb.append(CRLF);
|
|
|
}
|
|
|
|
|
|
sb.append(SPLIT_CODE).append(lineNumber++).append(SPLIT_CODE).append("NV").append(SPLIT_CODE)
|
|
|
.append(getRtd_volume_code()).append(getRtd_volume());
|
|
|
|
|
|
|
|
|
|
|
|
sb.append(CRLF);
|
|
|
return sb.toString();
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public String getNodeName() {
|
|
|
return "RTD";
|
|
|
}
|
|
|
} |
...
|
...
|
|