终端一体化运控平台
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

PotOneStatus.cs 3.0 KiB

2年前
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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("TbfryPotOne")]
  13. internal class PotOneStatus:ObservableObject
  14. {
  15. [Key]
  16. [Column("Id")]
  17. [DatabaseGenerated(DatabaseGeneratedOption.Identity)]//自增
  18. public int Id { get; set; }
  19. [Column("Temperature")]
  20. [Variable("FryPotOneTemp", "1号炒锅温度", "", "")]
  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("FryPotOnePower", "1号炒锅火力", "", "")]
  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("FryPotOneSpeed", "1号炒锅搅拌速度", "", "")]
  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("FryPotOneWeight", "1号炒锅载重", "", "")]
  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("FryPotOneOil", "1号炒锅当前配方用油量", "", "")]
  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("FryPotOneTotalOil", "1号炒锅总用油量", "", "")]
  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("FryPotOneTotalProduct", "1号炒锅总产量", "", "")]
  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. }