PackageApply.cs 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.ComponentModel.DataAnnotations.Schema;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. using Abp.Domain.Entities;
  9. namespace ShwasherSys.PackageInfo
  10. {
  11. [Table("PackageApply")]
  12. public class PackageApply:Entity<int>
  13. {
  14. public const int ProductionOrderNoMaxLength = 11;
  15. public const int SemiProductNoMaxLength = 32;
  16. public const int ProductNoMaxLength = 32;
  17. public const int CurrentSemiStoreHouseNoMaxLength = 32;
  18. public const int UserIDLastModMaxLength = 20;
  19. public const int CreatorUserIdMaxLength = 20;
  20. public const int RemarkMaxLength = 150;
  21. public const int PackageApplyNoMaxLength = 32;
  22. public const int ApplyStatusMaxLength = 1;
  23. /// <summary>
  24. /// 申请流水号
  25. /// </summary>
  26. [Required]
  27. [StringLength(PackageApplyNoMaxLength)]
  28. public string PackageApplyNo { get; set; }
  29. /// <summary>
  30. /// 仓库库存信息编号
  31. /// </summary>
  32. [StringLength(CurrentSemiStoreHouseNoMaxLength)]
  33. [Column("CurrentStoreHouseNo")]
  34. public string CurrentSemiStoreHouseNo { get; set; }
  35. /// <summary>
  36. /// 流转单编号
  37. /// </summary>
  38. [Required]
  39. [StringLength(ProductionOrderNoMaxLength)]
  40. public string ProductionOrderNo { get; set; }
  41. /// <summary>
  42. /// 半成品编号
  43. /// </summary>
  44. [StringLength(SemiProductNoMaxLength)]
  45. public string SemiProductNo { get; set; }
  46. /// <summary>
  47. /// 成品编号
  48. /// </summary>
  49. [StringLength(ProductNoMaxLength)]
  50. public string ProductNo { get; set; }
  51. /// <summary>
  52. /// 申请包装数量
  53. /// </summary>
  54. [DecimalPrecision]
  55. public decimal ApplyQuantity { get; set; }
  56. /// <summary>
  57. /// 实际包装的千件数
  58. /// </summary>
  59. [DecimalPrecision]
  60. public decimal ActualQuantity { get; set; }
  61. /// <summary>
  62. /// 仓库来源
  63. /// </summary>
  64. public int SourceStore { get; set; }
  65. [Required]
  66. [StringLength(ApplyStatusMaxLength)]
  67. public string ApplyStatus { get; set; }
  68. public bool IsClose { get; set; }
  69. /// <summary>
  70. /// 发起申请时间
  71. /// </summary>
  72. public DateTime? ApplyDate { get; set; }
  73. [StringLength(RemarkMaxLength)]
  74. public string Remark { get; set; }
  75. public DateTime? TimeCreated { get; set; }
  76. public DateTime? TimeLastMod { get; set; }
  77. [StringLength(CreatorUserIdMaxLength)]
  78. public string CreatorUserId { get; set; }
  79. [StringLength(UserIDLastModMaxLength)]
  80. public string UserIDLastMod { get; set; }
  81. /// <summary>
  82. /// 千件重
  83. /// </summary>
  84. [DecimalPrecision]
  85. public decimal KgWeight { get; set; }
  86. }
  87. }