终端一体化运控平台
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 

106 rindas
4.1 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. [Serializable]
  14. internal class PotTwoStatus
  15. {
  16. [Key]
  17. [Column("Id")]
  18. [DatabaseGenerated(DatabaseGeneratedOption.Identity)]//自增
  19. public int Id { get; set; }
  20. [Column("Temperature")]
  21. [Variable("FryPotTwoTemp", "2号炒锅温度", "D258", "")]
  22. /// <summary>
  23. /// 温度
  24. /// </summary>
  25. public double? Temperature { get { return temperature; } set { temperature = value; } }
  26. private double? temperature=0;
  27. //[Column("HotPower")]
  28. //[Variable("FryPotTwoPower", "2号炒锅火力", "", "")]
  29. ///// <summary>
  30. ///// 火力
  31. ///// </summary>
  32. //public string? HotPower { get { return hotPower; } set { hotPower = value; } }
  33. //private string? hotPower="0";
  34. [Column("Speed")]
  35. [Variable("FryPotTwoSpeed", "2号炒锅搅拌速度", "D2500", "")]
  36. /// <summary>
  37. /// 搅拌速度
  38. /// </summary>
  39. public double? Speed { get { return speed; } set { speed = value; } }
  40. private double? speed=0;
  41. [Column("FryPotWeight")]
  42. [Variable("FryPotTwoWeight", "2号炒锅载重", "D600", "")]
  43. /// <summary>
  44. /// 炒锅重量
  45. /// </summary>
  46. public double? FryPotWeight { get { return fryPotWeight; } set { fryPotWeight = value; } }
  47. private double? fryPotWeight=0;
  48. [Column("ReicpeName")]
  49. /// <summary>
  50. /// 当前配方名称
  51. /// </summary>
  52. public string RecipeName { get; set; } = string.Empty;
  53. [Column("Time")]
  54. /// <summary>
  55. /// 时间
  56. /// </summary>
  57. public string Time { get; set; } = DateTime.Now.ToShortTimeString();
  58. [Variable("FryPotTwoProcessStep", "2号炒锅当前工艺步数", "D3000", "")]
  59. /// <summary>
  60. /// 当前工艺步数
  61. /// </summary>
  62. public ushort Step { get { return _step; } set { _step = value; } }
  63. private ushort _step;
  64. [Variable("FryPotTwoSmallFire", "2号炒锅小火火力", "D510", "")]
  65. public ushort SmallFire { get { return _smallFire; } set { _smallFire = value; } }
  66. private ushort _smallFire;
  67. [Variable("FryPotTwoMidFire", "2号炒锅中火火力", "D512", "")]
  68. public ushort MidFire { get { return _midFire; } set { _midFire = value; } }
  69. private ushort _midFire;
  70. [Variable("FryPotTwoBigFire", "2号炒锅大火火力", "D514", "")]
  71. public ushort BigFire { get { return _bigFire; } set { _bigFire = value; } }
  72. private ushort _bigFire;
  73. [Variable("FryPotTwoStrongFire", "2号炒锅强火火力", "D516", "")]
  74. public ushort StrongFire { get { return _strongFire; } set { _strongFire = value; } }
  75. private ushort _strongFire;
  76. [Column("OilCapacity")]
  77. [Variable("FryPotTwoOil", "2号炒锅当前配方用油量", "", "")]
  78. /// <summary>
  79. /// 单次配方用油量
  80. /// </summary>
  81. public double? OilCapacity { get { return oilCapacity; } set { oilCapacity = value; } }
  82. private double? oilCapacity = 0;
  83. [Column("TotalOilCapactiy")]
  84. [Variable("FryPotTwoTotalOil", "2号炒锅总用油量", "", "")]
  85. /// <summary>
  86. /// 一天总用油量
  87. /// </summary>
  88. public double? TotalOilCapactiy { get { return totalOilCapactiy; } set { totalOilCapactiy = value; } }
  89. private double? totalOilCapactiy = 0;
  90. [Column("TotalProduct")]
  91. [Variable("FryPotTwoTotalProduct", "2号炒锅总产量", "", "")]
  92. /// <summary>
  93. /// 一天配方生产总量
  94. /// </summary>
  95. public int? TotalProduct { get { return totalProduct; } set { totalProduct = value; } }
  96. private int? totalProduct = 0;
  97. }
  98. }