| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- package com.jeesite.modules.mes.erp;
- import java.io.Serializable;
- import java.math.BigDecimal;
- /**
- * ERP 生产入库单 Save 结果
- */
- public class ErpPrdInStockResult implements Serializable {
- private static final long serialVersionUID = 1L;
- private boolean success;
- private String billNo;
- private String billId;
- private String lotNumber;
- private BigDecimal totalQty;
- private int batchCount;
- private String message;
- public static ErpPrdInStockResult success(String billNo, String billId, String lotNumber,
- BigDecimal totalQty, int batchCount) {
- ErpPrdInStockResult result = new ErpPrdInStockResult();
- result.success = true;
- result.billNo = billNo;
- result.billId = billId;
- result.lotNumber = lotNumber;
- result.totalQty = totalQty;
- result.batchCount = batchCount;
- result.message = "生产入库单保存成功";
- return result;
- }
- public static ErpPrdInStockResult fail(String message) {
- ErpPrdInStockResult result = new ErpPrdInStockResult();
- result.success = false;
- result.message = message;
- return result;
- }
- public boolean isSuccess() {
- return success;
- }
- public String getBillNo() {
- return billNo;
- }
- public String getBillId() {
- return billId;
- }
- public String getLotNumber() {
- return lotNumber;
- }
- public BigDecimal getTotalQty() {
- return totalQty;
- }
- public int getBatchCount() {
- return batchCount;
- }
- public String getMessage() {
- return message;
- }
- }
|