ShowRecipeHistory.cs 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. using Caliburn.Micro.Core;
  2. using MECF.Framework.Common.CommonData;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace FurnaceUI.Views.Editors
  9. {
  10. public class ShowRecipeHistory : PropertyChangedBase
  11. {
  12. public ShowRecipeHistory() { }
  13. public ShowRecipeHistory(RecipeHistory recipeHistory)
  14. {
  15. this.Guid = recipeHistory.Guid;
  16. this.CreatedBy = recipeHistory.CreatedBy;
  17. this.CreationTime = recipeHistory.CreationTime;
  18. this.LastRevisedBy = recipeHistory.LastRevisedBy;
  19. this.LastRevisionTime = recipeHistory.LastRevisionTime;
  20. this.Recipe_Description = recipeHistory.Recipe_Description;
  21. this.Recipe_Type = recipeHistory.Recipe_Type;
  22. this.Recipe_Name = recipeHistory.Recipe_Name;
  23. this.Recipe_Path = recipeHistory.Recipe_Path;
  24. this.Recipe_Level = recipeHistory.Recipe_Level;
  25. this.Recipe_Version = recipeHistory.Recipe_Version;
  26. this.Recipe_Premission = recipeHistory.Recipe_Premission;
  27. this.Recipe_Compare = recipeHistory.Recipe_Compare;
  28. this.Recipe_Content = recipeHistory.Recipe_Content;
  29. }
  30. private string guid;
  31. public string Guid
  32. {
  33. get => guid;
  34. set
  35. {
  36. guid = value;
  37. NotifyOfPropertyChange(nameof(Guid));
  38. }
  39. }
  40. private string createdBy;
  41. public string CreatedBy
  42. {
  43. get => createdBy;
  44. set
  45. {
  46. createdBy = value;
  47. NotifyOfPropertyChange(nameof(CreatedBy));
  48. }
  49. }
  50. private DateTime creationTime;
  51. public DateTime CreationTime
  52. {
  53. get => creationTime;
  54. set
  55. {
  56. creationTime = value;
  57. NotifyOfPropertyChange(nameof(CreationTime));
  58. }
  59. }
  60. public string lastRevisedBy;
  61. public string LastRevisedBy
  62. {
  63. get => lastRevisedBy; set
  64. {
  65. lastRevisedBy = value;
  66. NotifyOfPropertyChange(nameof(LastRevisedBy));
  67. }
  68. }
  69. private DateTime lastRevisionTime;
  70. public DateTime LastRevisionTime
  71. {
  72. get => lastRevisionTime;
  73. set
  74. {
  75. lastRevisionTime = value;
  76. NotifyOfPropertyChange(nameof(LastRevisionTime));
  77. }
  78. }
  79. private string recipe_Description;
  80. public string Recipe_Description
  81. {
  82. get => recipe_Description;
  83. set
  84. {
  85. recipe_Description = value;
  86. NotifyOfPropertyChange(nameof(Recipe_Description));
  87. }
  88. }
  89. private string recipe_Type;
  90. public string Recipe_Type
  91. {
  92. get => recipe_Type;
  93. set
  94. {
  95. recipe_Type = value;
  96. NotifyOfPropertyChange(nameof(Recipe_Type));
  97. }
  98. }
  99. private string recipe_Version;
  100. public string Recipe_Version
  101. {
  102. get => recipe_Version;
  103. set
  104. {
  105. recipe_Version = value;
  106. NotifyOfPropertyChange(nameof(Recipe_Version));
  107. }
  108. }
  109. private string recipe_Level;
  110. public string Recipe_Level
  111. {
  112. get => recipe_Level;
  113. set
  114. {
  115. recipe_Level = value;
  116. NotifyOfPropertyChange(nameof(Recipe_Level));
  117. }
  118. }
  119. private string recipe_Premission;
  120. public string Recipe_Premission
  121. {
  122. get => recipe_Premission;
  123. set
  124. {
  125. recipe_Premission = value;
  126. NotifyOfPropertyChange(nameof(Recipe_Premission));
  127. }
  128. }
  129. private string recipe_Name;
  130. public string Recipe_Name
  131. {
  132. get => recipe_Name;
  133. set
  134. {
  135. recipe_Name = value;
  136. NotifyOfPropertyChange(nameof(Recipe_Name));
  137. }
  138. }
  139. private string recipe_Path;
  140. public string Recipe_Path
  141. {
  142. get => recipe_Path;
  143. set
  144. {
  145. recipe_Path = value;
  146. NotifyOfPropertyChange(nameof(Recipe_Path));
  147. }
  148. }
  149. private string recipe_Compare;
  150. public string Recipe_Compare
  151. {
  152. get => recipe_Compare;
  153. set
  154. {
  155. recipe_Compare = value;
  156. NotifyOfPropertyChange(nameof(Recipe_Compare));
  157. }
  158. }
  159. public string recipe_Content;
  160. public string Recipe_Content
  161. {
  162. get => recipe_Content;
  163. set
  164. {
  165. recipe_Content = value;
  166. NotifyOfPropertyChange(nameof(recipe_Content));
  167. }
  168. }
  169. private bool _isSelected;
  170. public bool IsSelected
  171. {
  172. get { return _isSelected; }
  173. set
  174. {
  175. _isSelected = value;
  176. NotifyOfPropertyChange(nameof(IsSelected));
  177. }
  178. }
  179. }
  180. }