终端一体化运控平台
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 

77 linhas
3.0 KiB

  1. using FryPot_DosingSystem.Attributes;
  2. using Microsoft.Toolkit.Mvvm.ComponentModel;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.ComponentModel.DataAnnotations;
  6. using System.ComponentModel.DataAnnotations.Schema;
  7. using System.Linq;
  8. using System.Text;
  9. using System.Threading.Tasks;
  10. namespace FryPot_DosingSystem.FryPotStatus
  11. {
  12. [Table("TbfryPotTwo")]
  13. internal class PotTwoStatus:ObservableObject
  14. {
  15. [Key]
  16. [Column("Id")]
  17. [DatabaseGenerated(DatabaseGeneratedOption.Identity)]//自增
  18. public int Id { get; set; }
  19. [Column("Temperature")]
  20. [Variable("FryPotTwoTemp", "2号炒锅温度", "", "")]
  21. /// <summary>
  22. /// 温度
  23. /// </summary>
  24. public double? Temperature { get { return temperature; } set { temperature = value; OnPropertyChanged(); } }
  25. private double? temperature=0;
  26. [Column("HotPower")]
  27. [Variable("FryPotTwoPower", "2号炒锅火力", "", "")]
  28. /// <summary>
  29. /// 火力
  30. /// </summary>
  31. public string? HotPower { get { return hotPower; } set { hotPower = value; OnPropertyChanged(); } }
  32. private string? hotPower="0";
  33. [Column("Speed")]
  34. [Variable("FryPotTwoSpeed", "2号炒锅搅拌速度", "", "")]
  35. /// <summary>
  36. /// 搅拌速度
  37. /// </summary>
  38. public double? Speed { get { return speed; } set { speed = value; OnPropertyChanged(); } }
  39. private double? speed=0;
  40. [Column("FryPotWeight")]
  41. [Variable("FryPotTwoWeight", "2号炒锅载重", "", "")]
  42. /// <summary>
  43. /// 炒锅重量
  44. /// </summary>
  45. public double? FryPotWeight { get { return fryPotWeight; } set { fryPotWeight = value; OnPropertyChanged(); } }
  46. private double? fryPotWeight=0;
  47. [Column("OilCapacity")]
  48. [Variable("FryPotTwoOil", "2号炒锅当前配方用油量", "", "")]
  49. /// <summary>
  50. /// 单次配方用油量
  51. /// </summary>
  52. public double? OilCapacity { get { return oilCapacity; } set { oilCapacity = value; OnPropertyChanged(); } }
  53. private double? oilCapacity=0;
  54. [Column("TotalOilCapactiy")]
  55. [Variable("FryPotTwoTotalOil", "2号炒锅总用油量", "", "")]
  56. /// <summary>
  57. /// 一天总用油量
  58. /// </summary>
  59. public double? TotalOilCapactiy { get { return totalOilCapactiy; } set { totalOilCapactiy = value; OnPropertyChanged(); } }
  60. private double? totalOilCapactiy=0;
  61. [Column("TotalProduct")]
  62. [Variable("FryPotTwoTotalProduct", "2号炒锅总产量", "", "")]
  63. /// <summary>
  64. /// 一天配方生产总量
  65. /// </summary>
  66. public int? TotalProduct { get { return totalProduct; } set { totalProduct = value; OnPropertyChanged(); } }
  67. private int? totalProduct=0;
  68. [Column("Time")]
  69. /// <summary>
  70. /// 时间
  71. /// </summary>
  72. public string Time { get; set; } = DateTime.Now.ToShortTimeString();
  73. }
  74. }