JLTPkgEntity.java 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. package com.uas.pda_wms.bean;
  2. import android.graphics.Color;
  3. import android.text.SpannableStringBuilder;
  4. import android.text.TextUtils;
  5. import com.uas.pda_wms.util.SpanUtils;
  6. import java.util.List;
  7. public class JLTPkgEntity extends BaseSelectEntity {
  8. /**
  9. * PR_CODE : PR001
  10. * MPQLIST : [1000,1500,3000]
  11. * PR_PKG : PKG01
  12. * PR_FBBZL_USER : 0
  13. */
  14. private String PR_CODE;
  15. private String PR_PKG;
  16. private int PR_FBBZL_USER;
  17. private List<JLTMpqEntity> MPQLIST;
  18. private SpanUtils mSpanUtils;
  19. @Override
  20. public String getItemText() {
  21. mSpanUtils = new SpanUtils();
  22. mSpanUtils = mSpanUtils.append(PR_PKG).setForegroundColor(Color.BLACK);
  23. if (!TextUtils.isEmpty(PR_CODE)) {
  24. mSpanUtils = mSpanUtils.append("(" + PR_CODE + ")").setForegroundColor(Color.GRAY);
  25. }
  26. SpannableStringBuilder result = mSpanUtils.create();
  27. return result.toString();
  28. }
  29. public String getPR_CODE() {
  30. return PR_CODE;
  31. }
  32. public void setPR_CODE(String PR_CODE) {
  33. this.PR_CODE = PR_CODE;
  34. }
  35. public String getPR_PKG() {
  36. return PR_PKG;
  37. }
  38. public void setPR_PKG(String PR_PKG) {
  39. this.PR_PKG = PR_PKG;
  40. }
  41. public int getPR_FBBZL_USER() {
  42. return PR_FBBZL_USER;
  43. }
  44. public void setPR_FBBZL_USER(int PR_FBBZL_USER) {
  45. this.PR_FBBZL_USER = PR_FBBZL_USER;
  46. }
  47. public List<JLTMpqEntity> getMPQLIST() {
  48. return MPQLIST;
  49. }
  50. public void setMPQLIST(List<JLTMpqEntity> MPQLIST) {
  51. this.MPQLIST = MPQLIST;
  52. }
  53. }