WindTurbine.cs 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.ComponentModel.DataAnnotations.Schema;
  5. using System.Linq;
  6. using System.Runtime.CompilerServices;
  7. using System.Runtime.Serialization;
  8. using System.Text;
  9. using System.Threading.Tasks;
  10. namespace GDNXFD.Data
  11. {
  12. // CREATE TABLE "SA"."WINDTURBINE"
  13. // ( "ID" VARCHAR2(50) NOT NULL ENABLE,
  14. //"CODE" VARCHAR2(50),
  15. //"WINDPOWERSTATIONID" VARCHAR2(50) NOT NULL ENABLE,
  16. //"LONGITUDE" NUMBER(18,2),
  17. //"LATITUDE" NUMBER(18,2),
  18. //"MODELID" VARCHAR2(50),
  19. //"STATUS" VARCHAR2(50),
  20. //"PROJECTID" VARCHAR2(50),
  21. //"LINEID" VARCHAR2(50),
  22. //"FIRSTINTEGRATEDTIME" DATE,
  23. //"PHOTO" VARCHAR2(50),
  24. //"NAME" VARCHAR2(50),
  25. //"STANDARDID" VARCHAR2(50),
  26. // CONSTRAINT "PK_WINDTURBINE" PRIMARY KEY("ID")
  27. // USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255
  28. // STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
  29. // PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
  30. // TABLESPACE "USERS" ENABLE
  31. // )
  32. [DataContract]
  33. [Table("WINDTURBINE")]
  34. public class WindTurbine : INotifyPropertyChanged
  35. {
  36. private string _id;
  37. private string _code;
  38. private string _windPowerStationId;
  39. private string _name;
  40. private string _projectId;
  41. private string _lineId;
  42. private string _modelId;
  43. //private double _longitude;
  44. //private double _latitude;
  45. //private string _status;
  46. //private DateTime? _firstIntegratedTime;
  47. //private string _photo;
  48. //private string _standardId;
  49. [DataMember]
  50. [Column("ID")]
  51. public string Id
  52. {
  53. get { return _id; }
  54. set
  55. {
  56. _id = value;
  57. RaisePropertyChanged();
  58. }
  59. }
  60. [DataMember]
  61. [Column("CODE")]
  62. public string Code
  63. {
  64. get { return _code; }
  65. set
  66. {
  67. _code = value;
  68. RaisePropertyChanged();
  69. }
  70. }
  71. [DataMember]
  72. [Column("MODELID")]
  73. public string ModelId
  74. {
  75. get { return _modelId; }
  76. set
  77. {
  78. _modelId = value;
  79. RaisePropertyChanged();
  80. }
  81. }
  82. [DataMember]
  83. [Column("NAME")]
  84. public string Name
  85. {
  86. get { return _name; }
  87. set
  88. {
  89. _name = value;
  90. RaisePropertyChanged();
  91. }
  92. }
  93. [DataMember]
  94. [Column("WINDPOWERSTATIONID")]
  95. public string WindPowerStationId
  96. {
  97. get { return _windPowerStationId; }
  98. set
  99. {
  100. _windPowerStationId = value;
  101. RaisePropertyChanged();
  102. }
  103. }
  104. [DataMember]
  105. [Column("PROJECTID")]
  106. public string ProjectId
  107. {
  108. get { return _projectId; }
  109. set
  110. {
  111. _projectId = value;
  112. RaisePropertyChanged();
  113. }
  114. }
  115. [DataMember]
  116. [Column("LINEID")]
  117. public string LineId
  118. {
  119. get { return _lineId; }
  120. set
  121. {
  122. _lineId = value;
  123. RaisePropertyChanged();
  124. }
  125. }
  126. //[Column("FIRSTINTEGRATEDTIME")]
  127. //public DateTime? FirstIntegratedTime
  128. //{
  129. // get { return _firstIntegratedTime; }
  130. // set
  131. // {
  132. // _firstIntegratedTime = value;
  133. // RaisePropertyChanged();
  134. // }
  135. //}
  136. //[Column("STATUS")]
  137. //public string Status
  138. //{
  139. // get { return _status; }
  140. // set
  141. // {
  142. // _status = value;
  143. // RaisePropertyChanged();
  144. // }
  145. //}
  146. //[Column("LONGITUDE")]
  147. //public double Longitude
  148. //{
  149. // get { return _longitude; }
  150. // set
  151. // {
  152. // _longitude = value;
  153. // RaisePropertyChanged();
  154. // }
  155. //}
  156. //[Column("LATITUDE")]
  157. //public double Latitude
  158. //{
  159. // get { return _latitude; }
  160. // set
  161. // {
  162. // _latitude = value;
  163. // RaisePropertyChanged();
  164. // }
  165. //}
  166. //[Column("PHOTO")]
  167. //public string Photo
  168. //{
  169. // get { return _photo; }
  170. // set
  171. // {
  172. // _photo = value;
  173. // RaisePropertyChanged();
  174. // }
  175. //}
  176. //[Column("STANDARDID")]
  177. //public string StandardId
  178. //{
  179. // get { return _standardId; }
  180. // set
  181. // {
  182. // _standardId = value;
  183. // RaisePropertyChanged();
  184. // }
  185. //}
  186. /// <summary>
  187. /// Property changed event
  188. /// </summary>
  189. public event PropertyChangedEventHandler PropertyChanged;
  190. private void RaisePropertyChanged([CallerMemberName] string caller = "")
  191. {
  192. if (PropertyChanged != null)
  193. {
  194. PropertyChanged(this, new PropertyChangedEventArgs(caller));
  195. }
  196. }
  197. }
  198. }