|
- using FryPot_DosingSystem.Attributes;
- using Microsoft.Toolkit.Mvvm.ComponentModel;
- using System;
- using System.Collections.Generic;
- using System.ComponentModel.DataAnnotations;
- using System.ComponentModel.DataAnnotations.Schema;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
-
- namespace FryPot_DosingSystem.FryPotStatus
- {
- [Table("TbfryPotTwo")]
- internal class PotTwoStatus:ObservableObject
- {
- [Key]
- [Column("Id")]
- [DatabaseGenerated(DatabaseGeneratedOption.Identity)]//自增
- public int Id { get; set; }
- [Column("Temperature")]
- [Variable("FryPotTwoTemp", "2号炒锅温度", "", "")]
- /// <summary>
- /// 温度
- /// </summary>
- public double? Temperature { get { return temperature; } set { temperature = value; OnPropertyChanged(); } }
- private double? temperature=0;
- [Column("HotPower")]
- [Variable("FryPotTwoPower", "2号炒锅火力", "", "")]
- /// <summary>
- /// 火力
- /// </summary>
- public string? HotPower { get { return hotPower; } set { hotPower = value; OnPropertyChanged(); } }
- private string? hotPower="0";
- [Column("Speed")]
- [Variable("FryPotTwoSpeed", "2号炒锅搅拌速度", "", "")]
- /// <summary>
- /// 搅拌速度
- /// </summary>
- public double? Speed { get { return speed; } set { speed = value; OnPropertyChanged(); } }
- private double? speed=0;
- [Column("FryPotWeight")]
- [Variable("FryPotTwoWeight", "2号炒锅载重", "", "")]
- /// <summary>
- /// 炒锅重量
- /// </summary>
- public double? FryPotWeight { get { return fryPotWeight; } set { fryPotWeight = value; OnPropertyChanged(); } }
- private double? fryPotWeight=0;
- [Column("OilCapacity")]
- [Variable("FryPotTwoOil", "2号炒锅当前配方用油量", "", "")]
- /// <summary>
- /// 单次配方用油量
- /// </summary>
- public double? OilCapacity { get { return oilCapacity; } set { oilCapacity = value; OnPropertyChanged(); } }
- private double? oilCapacity=0;
- [Column("TotalOilCapactiy")]
- [Variable("FryPotTwoTotalOil", "2号炒锅总用油量", "", "")]
- /// <summary>
- /// 一天总用油量
- /// </summary>
- public double? TotalOilCapactiy { get { return totalOilCapactiy; } set { totalOilCapactiy = value; OnPropertyChanged(); } }
- private double? totalOilCapactiy=0;
-
- [Column("TotalProduct")]
- [Variable("FryPotTwoTotalProduct", "2号炒锅总产量", "", "")]
- /// <summary>
- /// 一天配方生产总量
- /// </summary>
- public int? TotalProduct { get { return totalProduct; } set { totalProduct = value; OnPropertyChanged(); } }
- private int? totalProduct=0;
- [Column("Time")]
- /// <summary>
- /// 时间
- /// </summary>
- public string Time { get; set; } = DateTime.Now.ToShortTimeString();
- }
- }
|