|
@@ -380,6 +380,16 @@ public class SyPackingListFabricItem implements Serializable {
|
|
|
|
|
|
}
|
|
|
|
|
|
+ public static boolean isNumeric(String str) {
|
|
|
+ String bigStr;
|
|
|
+ try {
|
|
|
+ bigStr = new BigDecimal(str).toString();
|
|
|
+ } catch (Exception e) {
|
|
|
+ return false;//异常 说明包含非数字。
|
|
|
+ }
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+
|
|
|
public SyPackingListFabricItem(String [] strs,int num1){
|
|
|
this.num=num1;
|
|
|
for (int i=0;i<strs.length;i++){
|
|
@@ -428,18 +438,18 @@ public class SyPackingListFabricItem implements Serializable {
|
|
|
}else{
|
|
|
kaoClothWeight=new BigDecimal(strs[20] );//拷布重
|
|
|
}
|
|
|
- if(strs[21]==null||strs[21].equals("")){//
|
|
|
+ if(strs[21+1]==null||strs[21+1].equals("")){//
|
|
|
actualDeclaredQuantity=new BigDecimal(0);//实际报关数量
|
|
|
}else{
|
|
|
actualDeclaredQuantity=new BigDecimal(strs[21]);//实际报关数量
|
|
|
}
|
|
|
- mannerOfPacking=strs[22];//包装方式
|
|
|
- treatmentMethod=strs[23];//处理方式
|
|
|
- containerNumber=strs[24];//柜号
|
|
|
- remarks2=strs[25];//备注
|
|
|
+ mannerOfPacking=strs[22+1];//包装方式
|
|
|
+ treatmentMethod=strs[23+1];//处理方式
|
|
|
+ containerNumber=strs[24+1];//柜号
|
|
|
+ remarks2=strs[25+1];//备注
|
|
|
BigDecimal width1=new BigDecimal("0");
|
|
|
BigDecimal gramWeight2=new BigDecimal("0");
|
|
|
- if(width!=null&&!width.equals("")){
|
|
|
+ if(isNumeric(width)){
|
|
|
width1=new BigDecimal(width);
|
|
|
}else{
|
|
|
width="0";
|