Line.cs 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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"."LINE"
  12. // ( "ID" VARCHAR2(50) NOT NULL ENABLE,
  13. //"CODE" VARCHAR2(50),
  14. //"NAME" VARCHAR2(50),
  15. //"ANAME" VARCHAR2(50),
  16. //"PROJECTID" VARCHAR2(50),
  17. //"ORDERNUM" NUMBER(*,0),
  18. //"CAPACITY" NUMBER(18,2),
  19. //"CAPACITYUNIT" VARCHAR2(50),
  20. //"QUANTITY" NUMBER(*,0),
  21. // CONSTRAINT "PK_LINE" PRIMARY KEY("ID")
  22. [Table("LINE")]
  23. public class Line : INotifyPropertyChanged
  24. {
  25. private string _id;
  26. private string _name;
  27. private string _projectId;
  28. [Column("ID")]
  29. public string Id
  30. {
  31. get { return _id; }
  32. set
  33. {
  34. _id = value;
  35. RaisePropertyChanged();
  36. }
  37. }
  38. [Column("NAME")]
  39. public string Name
  40. {
  41. get { return _name; }
  42. set
  43. {
  44. _name = value;
  45. RaisePropertyChanged();
  46. }
  47. }
  48. [Column("PROJECTID")]
  49. public string ProjectId
  50. {
  51. get { return _projectId; }
  52. set
  53. {
  54. _projectId = value;
  55. RaisePropertyChanged();
  56. }
  57. }
  58. /// <summary>
  59. /// Property changed event
  60. /// </summary>
  61. public event PropertyChangedEventHandler PropertyChanged;
  62. private void RaisePropertyChanged([CallerMemberName] string caller = "")
  63. {
  64. if (PropertyChanged != null)
  65. {
  66. PropertyChanged(this, new PropertyChangedEventArgs(caller));
  67. }
  68. }
  69. }
  70. }