ProductionOrderUpdateDto.cs 4.1 KB

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