ProductionOrderCreateDto.cs 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. using System;
  2. using Abp.AutoMapper;
  3. using System.ComponentModel.DataAnnotations;
  4. using ShwasherSys.ProductionOrderInfo;
  5. namespace ShwasherSys.ProductionOrderInfo.Dto
  6. {
  7. [AutoMapTo(typeof(ProductionOrder))]
  8. public class ProductionOrderCreateDto
  9. {
  10. [Required]
  11. [StringLength(ProductionOrder.ProductionOrderNoMaxLength)]
  12. public string ProductionOrderNo { get; set; }
  13. [Required]
  14. public int ProductionOrderStatus { get; set; }
  15. [StringLength(ProductionOrder.StoveNoMaxLength)]
  16. public string StoveNo { get; set; }
  17. [StringLength(ProductionOrder.CarNoMaxLength)]
  18. public string CarNo { get; set; }
  19. /// <summary>
  20. /// 半成品编号
  21. /// </summary>
  22. [StringLength(ProductionOrder.SemiProductNoMaxLength)]
  23. public string SemiProductNo { get; set; }
  24. /// <summary>
  25. /// 计划加工数量
  26. /// </summary>
  27. public decimal Quantity { get; set; }
  28. /// <summary>
  29. /// 原材料来源(关联至原材料仓库,一对多,暂未实现)
  30. /// </summary>
  31. [StringLength(ProductionOrder.RawMaterialsMaxLength)]
  32. public string RawMaterials { get; set; }
  33. [StringLength(ProductionOrder.MaterialMaxLength)]
  34. public string Material { get; set; }
  35. [StringLength(ProductionOrder.ModelMaxLength)]
  36. public string Model { get; set; }
  37. [StringLength(ProductionOrder.SurfaceColorMaxLength)]
  38. public string SurfaceColor { get; set; }
  39. [StringLength(ProductionOrder.RigidityMaxLength)]
  40. public string Rigidity { get; set; }
  41. [StringLength(ProductionOrder.SizeMaxLength)]
  42. public string Size { get; set; }
  43. /// <summary>
  44. /// 工序类型(1.车间生产2.热处理3.表面处理)
  45. /// </summary>
  46. [StringLength(ProductionOrder.ProcessingTypeMaxLength)]
  47. public string ProcessingType { get; set; }
  48. /// <summary>
  49. /// 加工阶段 1.第一阶段车间 2.外协
  50. /// </summary>
  51. [StringLength(ProductionOrder.ProcessingLevelMaxLength)]
  52. public string ProcessingLevel { get; set; }
  53. [StringLength(ProductionOrder.RemarkMaxLength)]
  54. public string Remark { get; set; }
  55. public DateTime? TimeCreated { get; set; }
  56. public DateTime? TimeLastMod { get; set; }
  57. [StringLength(ProductionOrder.CreatorUserIdMaxLength)]
  58. public string CreatorUserId { get; set; }
  59. [StringLength(ProductionOrder.UserIDLastModMaxLength)]
  60. public string UserIDLastMod { get; set; }
  61. [StringLength(ProductionOrder.IsLockMaxLength)]
  62. public string IsLock { get; set; }
  63. /// <summary>
  64. /// 外协阶段加工的产品来源于上一个半成品的流转单号(从半成品出库记录种带出)
  65. /// </summary>
  66. [StringLength(ProductionOrder.SourceProductionOrderNoMaxLength)]
  67. public string SourceProductionOrderNo { get; set; }
  68. /// <summary>
  69. /// 计划完成时间
  70. /// </summary>
  71. public DateTime? PlanProduceDate { get; set; }
  72. /// <summary>
  73. /// 已入库数量
  74. /// </summary>
  75. public decimal EnterQuantity { get; set; }
  76. [StringLength(ProductionOrder.ProductionTypeMaxLength)]
  77. public string ProductionType { get; set; }
  78. public string OutsourcingFactory { get; set; }
  79. public decimal? KgWeight { get; set; }
  80. public decimal MaxQuantity { get; set; }
  81. }
  82. }