Project.cs 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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.Text;
  8. using System.Threading.Tasks;
  9. namespace GDNXFD.Data
  10. {
  11. // CREATE TABLE "SA"."PROJECT"
  12. // ( "ID" VARCHAR2(50) NOT NULL ENABLE,
  13. //"CODE" VARCHAR2(50),
  14. //"NAME" VARCHAR2(50),
  15. //"ANAME" VARCHAR2(50),
  16. //"WINDPOWERSTATIONID" VARCHAR2(50) NOT NULL ENABLE,
  17. //"CAPACITY" NUMBER(18,2),
  18. //"CAPACITYUNIT" VARCHAR2(50),
  19. //"QUANTITY" NUMBER(*,0),
  20. //"MODEL" VARCHAR2(50),
  21. //"COMMISSIONDATE" DATE,
  22. //"MASTERPHONE" VARCHAR2(50),
  23. //"SHIFTFOREMAN" VARCHAR2(50),
  24. //"SHIFTFOREMANPHONE" VARCHAR2(50),
  25. //"ORDERNUM" NUMBER(*,0),
  26. // CONSTRAINT "PK_PROJECT" PRIMARY KEY("ID")
  27. [Table("PROJECT")]
  28. public class Project : INotifyPropertyChanged
  29. {
  30. private string _id;
  31. private string _name;
  32. private string _windPowerStation;
  33. private string _models;
  34. [Column("ID")]
  35. public string Id
  36. {
  37. get { return _id; }
  38. set
  39. {
  40. _id = value;
  41. RaisePropertyChanged();
  42. }
  43. }
  44. [Column("NAME")]
  45. public string Name
  46. {
  47. get { return _name; }
  48. set
  49. {
  50. _name = value;
  51. RaisePropertyChanged();
  52. }
  53. }
  54. [Column("WINDPOWERSTATIONID")]
  55. public string WindPowerStationId
  56. {
  57. get { return _windPowerStation; }
  58. set
  59. {
  60. _windPowerStation = value;
  61. RaisePropertyChanged();
  62. }
  63. }
  64. [Column("MODEL")]
  65. public string Models
  66. {
  67. get { return _models; }
  68. set
  69. {
  70. _models = value;
  71. RaisePropertyChanged();
  72. }
  73. }
  74. /// <summary>
  75. /// Property changed event
  76. /// </summary>
  77. public event PropertyChangedEventHandler PropertyChanged;
  78. private void RaisePropertyChanged([CallerMemberName] string caller = "")
  79. {
  80. if (PropertyChanged != null)
  81. {
  82. PropertyChanged(this, new PropertyChangedEventArgs(caller));
  83. }
  84. }
  85. }
  86. }