终端一体化运控平台
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

PotTwoStatus.cs 3.0 KiB

2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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号炒锅温度", "", "")]
  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号炒锅搅拌速度", "", "")]
  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号炒锅载重", "", "")]
  43. /// <summary>
  44. /// 炒锅重量
  45. /// </summary>
  46. public double? FryPotWeight { get { return fryPotWeight; } set { fryPotWeight = value; } }
  47. private double? fryPotWeight=0;
  48. [Column("OilCapacity")]
  49. [Variable("FryPotTwoOil", "2号炒锅当前配方用油量", "", "")]
  50. /// <summary>
  51. /// 单次配方用油量
  52. /// </summary>
  53. public double? OilCapacity { get { return oilCapacity; } set { oilCapacity = value; } }
  54. private double? oilCapacity=0;
  55. [Column("TotalOilCapactiy")]
  56. [Variable("FryPotTwoTotalOil", "2号炒锅总用油量", "", "")]
  57. /// <summary>
  58. /// 一天总用油量
  59. /// </summary>
  60. public double? TotalOilCapactiy { get { return totalOilCapactiy; } set { totalOilCapactiy = value; } }
  61. private double? totalOilCapactiy=0;
  62. [Column("TotalProduct")]
  63. [Variable("FryPotTwoTotalProduct", "2号炒锅总产量", "", "")]
  64. /// <summary>
  65. /// 一天配方生产总量
  66. /// </summary>
  67. public int? TotalProduct { get { return totalProduct; } set { totalProduct = value; } }
  68. private int? totalProduct=0;
  69. [Column("ReicpeName")]
  70. /// <summary>
  71. /// 当前配方名称
  72. /// </summary>
  73. public string RecipeName { get; set; } = string.Empty;
  74. [Column("Time")]
  75. /// <summary>
  76. /// 时间
  77. /// </summary>
  78. public string Time { get; set; } = DateTime.Now.ToShortTimeString();
  79. }
  80. }