Magazine.cs 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Runtime.Serialization;
  5. using System.Text;
  6. using Aitex.Core.Equipment.SusceptorDefine;
  7. namespace Aitex.Core.Equipment.MagazineDefine
  8. {
  9. [DataContract]
  10. public class Magazine
  11. {
  12. [DataMember]
  13. public Guid Id { get; set; }
  14. [DataMember]
  15. public SubstrateStatus[] SubstrateStatusArray { get; set; }
  16. [DataMember]
  17. public SubstrateType[] SubstrateTypeArray { get; set; }
  18. [DataMember]
  19. public string[] SubstrateIdArray { get; set; }
  20. [DataMember]
  21. public MagazineType Type { get; set; }
  22. [DataMember]
  23. public MagazineStatus Status { get; set; }
  24. [DataMember]
  25. public string RecipeName { get; set; }
  26. [DataMember]
  27. public string UserDefinedId { get; set; }
  28. [DataMember]
  29. public string Description { get; set; }
  30. [DataMember]
  31. public DateTime CreateTime { get; set; }
  32. [DataMember]
  33. public DateTime ProcessStartTime { get; set; }
  34. [DataMember]
  35. public DateTime ProcessEndTime { get; set; }
  36. [DataMember]
  37. public string TargetRecipe { get; set; }
  38. public Magazine()
  39. {
  40. SubstrateStatusArray = new SubstrateStatus[150];
  41. SubstrateTypeArray = new SubstrateType[150];
  42. SubstrateIdArray = new string[150];
  43. CreateTime = DateTime.Now;
  44. TargetRecipe = string.Empty;
  45. }
  46. public Magazine(MagazineType type, bool createSubstrate )
  47. {
  48. SubstrateStatusArray = new SubstrateStatus[150];
  49. SubstrateTypeArray = new SubstrateType[150];
  50. SubstrateIdArray = new string[150];
  51. CreateTime = DateTime.Now;
  52. TargetRecipe = string.Empty;
  53. Type = type;
  54. Id = Guid.NewGuid();
  55. if (createSubstrate)
  56. {
  57. for (int i=0; i<type.Slot; i++)
  58. {
  59. SubstrateTypeArray[i] = SubstrateType.Material;
  60. SubstrateIdArray[i] = Guid.NewGuid().ToString();
  61. }
  62. }
  63. }
  64. }
  65. }