| | |
| | | private Double qty; |
| | | |
| | | /** |
| | | * 单据号 |
| | | * 库存数量 |
| | | */ |
| | | @ApiModelProperty(value= "单据号") |
| | | @ApiModelProperty(value= "库存数量") |
| | | @TableField(exist = false) |
| | | private Double stock; |
| | | |
| | | /** |
| | | * 物料号 |
| | | */ |
| | | @ApiModelProperty(value= "物料号") |
| | | private String matnr; |
| | | |
| | | /** |
| | |
| | | private Double length; |
| | | |
| | | /** |
| | | * 体积 |
| | | * 换算率 |
| | | */ |
| | | @ApiModelProperty(value= "体积") |
| | | @ApiModelProperty(value= "换算率") |
| | | private Double volume; |
| | | |
| | | /** |
| | |
| | | @ApiModelProperty(value= "备注") |
| | | private String memo; |
| | | |
| | | /** |
| | | * 工序状态 |
| | | */ |
| | | @ApiModelProperty(value= "工序状态 1:待加工,2:已加工,3:无需加工") |
| | | @TableField("process_sts") |
| | | private Integer processSts; |
| | | |
| | | @TableField("report_qty") |
| | | private Double reportQty; |
| | | |
| | | public OrderDetl() {} |
| | | |
| | | public OrderDetl(Long orderId, String orderNo, Double anfme, Double qty, String matnr, String maktx, String batch, String specs, String model, String color, String brand, String unit, Double price, String sku, Double units, String barcode, String origin, String manu, String manuDate, String itemNum, Double safeQty, Double weight, Double length, Double volume, String threeCode, String supp, String suppCode, Integer beBatch, String deadTime, Integer deadWarn, Integer source, Integer inspect, Integer danger, Integer status, Long createBy, Date createTime, Long updateBy, Date updateTime, String memo) { |
| | | public OrderDetl(Long orderId, String orderNo, Double anfme, Double qty, String matnr, String maktx, String batch, String specs, String model, String color, String brand, String unit, Double price, String sku, Double units, String barcode, String origin, String manu, String manuDate, String itemNum, Double safeQty, Double weight, Double length, Double volume, String threeCode, String supp, String suppCode, Integer beBatch, String deadTime, Integer deadWarn, Integer source, Integer inspect, Integer danger, Integer status, Long createBy, Date createTime, Long updateBy, Date updateTime, String memo,Integer processSts) { |
| | | this.orderId = orderId; |
| | | this.orderNo = orderNo; |
| | | this.anfme = anfme; |
| | |
| | | this.updateBy = updateBy; |
| | | this.updateTime = updateTime; |
| | | this.memo = memo; |
| | | this.processSts = processSts; |
| | | } |
| | | |
| | | public String getOrderId$(){ |
| | |
| | | return String.valueOf(order.getId()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getProcessSts$(){ |
| | | if (null == this.processSts){ return null; } |
| | | switch (this.processSts){ |
| | | case 0: |
| | | return "其他"; |
| | | case 1: |
| | | return "待加工"; |
| | | case 2: |
| | | return "已加工"; |
| | | case 3: |
| | | return "无需加工"; |
| | | default: |
| | | return String.valueOf(this.processSts); |
| | | } |
| | | } |
| | | |
| | | public String getBeBatch$(){ |
| | |
| | | } |
| | | |
| | | public Double getEnableQty() { |
| | | Double enableQty = null; |
| | | if (null != this.anfme && this.qty != null) { |
| | | return this.anfme - this.qty; |
| | | enableQty = this.anfme - this.qty; |
| | | if (enableQty < 0) { |
| | | enableQty = 0.0D; |
| | | } |
| | | // return this.anfme - this.qty; |
| | | } |
| | | return null; |
| | | return enableQty; |
| | | } |
| | | |
| | | public void sync(Object source) { |