TestingPointAI.cs 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. //ID, CODE, NAME, MODEL, VALUEUNIT, ENGLISHNAME, TYPEID,
  12. //MAXVAL, MINVAL, REASONABLEMAXVAL, REASONABLEMINVAL, MODELID, UNIFORMCODE
  13. [Table("TESTINGPOINTAI2")]
  14. public class TestingPointAI : TestingPointBase, INotifyPropertyChanged
  15. {
  16. [Column("ID")]
  17. public string Id { get; set; }
  18. [Column("MODEL")]
  19. public string ModelId { get; set; }
  20. [Column("UNIFORMCODE")]
  21. public override string UniformCode { get; set; }
  22. [Column("NAME")]
  23. public override string Name { get; set; }
  24. //[Column("CODE")]
  25. //public string Code { get; set; }
  26. //[Column("MODEL")]
  27. //public string Model { get; set; }
  28. //[Column("VALUEUNIT")]
  29. //public string ValueUnit { get; set; }
  30. //[Column("ENGLISHNAME")]
  31. //public string EnglishName { get; set; }
  32. //[Column("TYPEID")]
  33. //public string TypeId { get; set; }
  34. //[Column("MINVAL")]
  35. //public decimal? MinVal { get; set; }
  36. //[Column("MAXVAL")]
  37. //public decimal? MaxVal { get; set; }
  38. //[Column("REASONABLEMINVAL")]
  39. //public decimal? ReasonableMinVal { get; set; }
  40. //[Column("REASONABLEMAXVAL")]
  41. //public decimal? ReasonableMaxVal { get; set; }
  42. /// <summary>
  43. /// Property changed event
  44. /// </summary>
  45. public event PropertyChangedEventHandler PropertyChanged;
  46. private void RaisePropertyChanged([CallerMemberName] string caller = "")
  47. {
  48. if (PropertyChanged != null)
  49. {
  50. PropertyChanged(this, new PropertyChangedEventArgs(caller));
  51. }
  52. }
  53. }
  54. }