ErpPrdInStockResult.java 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. private Integer responseDurationMs;
  17. public static ErpPrdInStockResult success(String billNo, String billId, String lotNumber,
  18. BigDecimal totalQty, int batchCount) {
  19. ErpPrdInStockResult result = new ErpPrdInStockResult();
  20. result.success = true;
  21. result.billNo = billNo;
  22. result.billId = billId;
  23. result.lotNumber = lotNumber;
  24. result.totalQty = totalQty;
  25. result.batchCount = batchCount;
  26. result.message = "生产入库单保存成功";
  27. return result;
  28. }
  29. public static ErpPrdInStockResult fail(String message) {
  30. ErpPrdInStockResult result = new ErpPrdInStockResult();
  31. result.success = false;
  32. result.message = message;
  33. return result;
  34. }
  35. public boolean isSuccess() {
  36. return success;
  37. }
  38. public String getBillNo() {
  39. return billNo;
  40. }
  41. public String getBillId() {
  42. return billId;
  43. }
  44. public String getLotNumber() {
  45. return lotNumber;
  46. }
  47. public BigDecimal getTotalQty() {
  48. return totalQty;
  49. }
  50. public int getBatchCount() {
  51. return batchCount;
  52. }
  53. public String getMessage() {
  54. return message;
  55. }
  56. public Integer getResponseDurationMs() {
  57. return responseDurationMs;
  58. }
  59. public void setResponseDurationMs(Integer responseDurationMs) {
  60. this.responseDurationMs = responseDurationMs;
  61. }
  62. }