QdrRecipe.cs 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. using MECF.Framework.Common.CommonData;
  2. using Newtonsoft.Json;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace MECF.Framework.Common.RecipeCenter
  9. {
  10. public class QdrRecipe : NotifiableItem
  11. {
  12. #region 内部变量
  13. private string _author;
  14. private string _description;
  15. private string _ppid;
  16. private RecipeType _recipeType = RecipeType.DEP;
  17. private DateTime _saveDate;
  18. private DateTime _createDate;
  19. private int _step1DwellTimeSeconds;
  20. private int _step1NumberOfRinse;
  21. private bool _step1N2BubbleOn;
  22. private int _step1NumberOfDumpToMetalDrain;
  23. public int _step2DwellTimeSeconds;
  24. private bool _step2N2BubbleOn;
  25. private int _step2NumberOfRinse;
  26. private bool _finalRinseDry;
  27. private int _finalRinsePulseClampTime;
  28. private int _finalRinseSlowDrainTime;
  29. private int _resistivityDurationSeconds;
  30. private int _resistivityStartTimeSeconds;
  31. private int _resistivityMegaOhms;
  32. private int _n2ChargeTimeSeconds=5;
  33. private int _dumpTimeSeconds=3;
  34. #endregion
  35. #region 属性
  36. [JsonProperty]
  37. public string Author { get { return _author; } set { _author = value; InvokePropertyChanged(nameof(Author)); } }
  38. [JsonProperty]
  39. public string Description { get { return _description; } set { _description = value; InvokePropertyChanged(nameof(Description)); } }
  40. [JsonProperty]
  41. public string Ppid { get { return _ppid; } set { _ppid = value; InvokePropertyChanged(nameof(Ppid)); } }
  42. [JsonProperty]
  43. public RecipeType RecipeType { get { return _recipeType; } set { _recipeType = value; InvokePropertyChanged(nameof(RecipeType)); } }
  44. [JsonProperty]
  45. public DateTime CreateDate { get { return _createDate; } set { _createDate = value; InvokePropertyChanged(nameof(CreateDate)); } }
  46. [JsonProperty]
  47. public DateTime SaveDate { get { return _saveDate; } set { _saveDate = value; InvokePropertyChanged(nameof(SaveDate)); } }
  48. [JsonProperty]
  49. public int Step1DwellTimeSeconds{ get { return _step1DwellTimeSeconds; } set { _step1DwellTimeSeconds = value; InvokePropertyChanged(nameof(Step1DwellTimeSeconds)); }}
  50. [JsonProperty]
  51. public int Step1NumberOfRinse { get { return _step1NumberOfRinse;} set { _step1NumberOfRinse = value;InvokePropertyChanged(nameof(Step1NumberOfRinse)); }}
  52. [JsonProperty]
  53. public bool Step1N2BubbleOn { get { return _step1N2BubbleOn; } set { _step1N2BubbleOn = value; InvokePropertyChanged(nameof(Step1N2BubbleOn)); }}
  54. [JsonProperty]
  55. public int Step1NumberOfDumpToMetalDrain { get { return _step1NumberOfDumpToMetalDrain; } set { _step1NumberOfDumpToMetalDrain = value;InvokePropertyChanged(nameof(Step1NumberOfDumpToMetalDrain)); } }
  56. [JsonProperty]
  57. public int Step2DwellTimeSeconds { get { return _step2DwellTimeSeconds; } set { _step2DwellTimeSeconds = value; InvokePropertyChanged(nameof(Step2DwellTimeSeconds)); } }
  58. [JsonProperty]
  59. public bool Step2N2BubbleOn { get { return _step2N2BubbleOn; } set { _step2N2BubbleOn = value;InvokePropertyChanged(nameof(Step2N2BubbleOn)); } }
  60. [JsonProperty]
  61. public int Step2NumberOfRinse { get { return _step2NumberOfRinse; } set { _step2NumberOfRinse = value;InvokePropertyChanged(nameof(Step2NumberOfRinse)); } }
  62. [JsonProperty]
  63. public bool FinalRinseDry { get { return _finalRinseDry; } set { _finalRinseDry = value;InvokePropertyChanged(nameof(FinalRinseDry)); } }
  64. [JsonProperty]
  65. public int FinalRinsePulseClampTime { get { return _finalRinsePulseClampTime; } set { _finalRinsePulseClampTime = value;InvokePropertyChanged(nameof(FinalRinsePulseClampTime)); } }
  66. [JsonProperty]
  67. public int FinalRinseSlowDrainTime { get { return _finalRinseSlowDrainTime; } set { _finalRinseSlowDrainTime = value;InvokePropertyChanged(nameof(FinalRinseSlowDrainTime)); } }
  68. [JsonProperty]
  69. public int ResistivityDurationSeconds { get { return _resistivityDurationSeconds; } set { _resistivityDurationSeconds = value; InvokePropertyChanged(nameof(ResistivityDurationSeconds)); }}
  70. [JsonProperty]
  71. public int ResistivityStartTimeSeconds { get { return _resistivityStartTimeSeconds; } set { _resistivityStartTimeSeconds = value; InvokePropertyChanged(nameof(ResistivityStartTimeSeconds)); } }
  72. [JsonProperty]
  73. public int ResistivityMegaOhms { get { return _resistivityMegaOhms; } set { _resistivityMegaOhms = value;InvokePropertyChanged(nameof(ResistivityMegaOhms)); } }
  74. [JsonProperty]
  75. public int N2ChargeTimeSeconds { get { return _n2ChargeTimeSeconds!=0?_n2ChargeTimeSeconds:5; } set { _n2ChargeTimeSeconds = value; InvokePropertyChanged(nameof(N2ChargeTimeSeconds)); } }
  76. [JsonProperty]
  77. public int DumpTimeSeconds { get { return _dumpTimeSeconds!=0?_dumpTimeSeconds:3; } set { _dumpTimeSeconds = value; InvokePropertyChanged(nameof(DumpTimeSeconds)); } }
  78. #endregion
  79. }
  80. }