ProductionOrderUpdateDto.cs 3.6 KB

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