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("TbfryPotOne")]
[Serializable]
internal class PotFourStatus
{
[Key]
[Column("Id")]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]//自增
public int Id { get; set; }
[Column("Temperature")]
[Variable("FryPotFourTemp", "4号炒锅温度", "", "")]
///
/// 温度
///
public double? Temperature { get { return temperature; } set { temperature = value; } }
private double? temperature=0;
[Column("HotPower")]
[Variable("FryPotFourPower", "4号炒锅火力", "", "")]
///
/// 火力
///
public string? HotPower { get { return hotPower; } set { hotPower = value; } }
private string? hotPower="0";
[Column("Speed")]
[Variable("FryPotFourSpeed", "4号炒锅搅拌速度", "", "")]
///
/// 搅拌速度
///
public double? Speed { get { return speed; } set { speed = value; } }
private double? speed=0;
[Column("FryPotWeight")]
[Variable("FryPotFourWeight", "4号炒锅载重", "", "")]
///
/// 炒锅重量
///
public double? FryPotWeight { get { return fryPotWeight; } set { fryPotWeight = value; } }
private double? fryPotWeight=0;
[Column("OilCapacity")]
[Variable("FryPotFourOil", "4号炒锅当前配方用油量", "", "")]
///
/// 单次配方用油量
///
public double? OilCapacity { get { return oilCapacity; } set { oilCapacity = value; } }
private double? oilCapacity=0;
[Column("TotalOilCapactiy")]
[Variable("FryPotFourTotalOil", "4号炒锅总用油量", "", "")]
///
/// 一天总用油量
///
public double? TotalOilCapactiy { get { return totalOilCapactiy; } set { totalOilCapactiy = value;; } }
private double? totalOilCapactiy=0;
[Column("TotalProduct")]
[Variable("FryPotFourTotalProduct", "4号炒锅总产量", "", "")]
///
/// 一天配方生产总量
///
public int? TotalProduct { get { return totalProduct; } set { totalProduct = value; } }
private int? totalProduct=0;
[Column("ReicpeName")]
///
/// 当前配方名称
///
public string RecipeName { get; set; } = string.Empty;
[Column("Time")]
///
/// 时间
///
public string Time { get; set; } = DateTime.Now.ToShortTimeString();
}
}