ErpPrdInStockResult.java 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. package com.jeesite.modules.mes.erp;
  2. import java.io.Serializable;
  3. import java.math.BigDecimal;
  4. /**
  5. * ERP 生产入库单 Save 结果
  6. */
  7. public class ErpPrdInStockResult implements Serializable {
  8. private static final long serialVersionUID = 1L;
  9. private boolean success;
  10. private String billNo;
  11. private String billId;
  12. private String lotNumber;
  13. private BigDecimal totalQty;
  14. private int batchCount;
  15. private String message;
  16. public static ErpPrdInStockResult success(String billNo, String billId, String lotNumber,
  17. BigDecimal totalQty, int batchCount) {
  18. ErpPrdInStockResult result = new ErpPrdInStockResult();
  19. result.success = true;
  20. result.billNo = billNo;
  21. result.billId = billId;
  22. result.lotNumber = lotNumber;
  23. result.totalQty = totalQty;
  24. result.batchCount = batchCount;
  25. result.message = "生产入库单保存成功";
  26. return result;
  27. }
  28. public static ErpPrdInStockResult fail(String message) {
  29. ErpPrdInStockResult result = new ErpPrdInStockResult();
  30. result.success = false;
  31. result.message = message;
  32. return result;
  33. }
  34. public boolean isSuccess() {
  35. return success;
  36. }
  37. public String getBillNo() {
  38. return billNo;
  39. }
  40. public String getBillId() {
  41. return billId;
  42. }
  43. public String getLotNumber() {
  44. return lotNumber;
  45. }
  46. public BigDecimal getTotalQty() {
  47. return totalQty;
  48. }
  49. public int getBatchCount() {
  50. return batchCount;
  51. }
  52. public String getMessage() {
  53. return message;
  54. }
  55. }