12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Runtime.Serialization;
- using System.Text;
- using Aitex.Core.Equipment.SusceptorDefine;
- namespace Aitex.Core.Equipment.MagazineDefine
- {
- [DataContract]
- public class Magazine
- {
- [DataMember]
- public Guid Id { get; set; }
- [DataMember]
- public SubstrateStatus[] SubstrateStatusArray { get; set; }
- [DataMember]
- public SubstrateType[] SubstrateTypeArray { get; set; }
- [DataMember]
- public string[] SubstrateIdArray { get; set; }
- [DataMember]
- public MagazineType Type { get; set; }
- [DataMember]
- public MagazineStatus Status { get; set; }
- [DataMember]
- public string RecipeName { get; set; }
- [DataMember]
- public string UserDefinedId { get; set; }
- [DataMember]
- public string Description { get; set; }
- [DataMember]
- public DateTime CreateTime { get; set; }
- [DataMember]
- public DateTime ProcessStartTime { get; set; }
- [DataMember]
- public DateTime ProcessEndTime { get; set; }
- [DataMember]
- public string TargetRecipe { get; set; }
- public Magazine()
- {
- SubstrateStatusArray = new SubstrateStatus[150];
- SubstrateTypeArray = new SubstrateType[150];
- SubstrateIdArray = new string[150];
- CreateTime = DateTime.Now;
- TargetRecipe = string.Empty;
- }
- public Magazine(MagazineType type, bool createSubstrate )
- {
- SubstrateStatusArray = new SubstrateStatus[150];
- SubstrateTypeArray = new SubstrateType[150];
- SubstrateIdArray = new string[150];
- CreateTime = DateTime.Now;
- TargetRecipe = string.Empty;
- Type = type;
- Id = Guid.NewGuid();
- if (createSubstrate)
- {
- for (int i=0; i<type.Slot; i++)
- {
- SubstrateTypeArray[i] = SubstrateType.Material;
- SubstrateIdArray[i] = Guid.NewGuid().ToString();
- }
- }
- }
-
- }
- }
|