|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- 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("TbfryPotThree")]
- [Serializable]
- internal class PotThreeStatus
- {
- [Key]
- [Column("Id")]
- [DatabaseGenerated(DatabaseGeneratedOption.Identity)]//自增
- public int Id { get; set; }
- [Column("Temperature")]
- [Variable("FryPotThreeTemp", "3号炒锅温度", "D258", "")]
- /// <summary>
- /// 温度
- /// </summary>
- public double? Temperature { get { return temperature; } set { temperature = value; } }
- private double? temperature=0;
- //[Column("HotPower")]
- //[Variable("FryPotThreePower", "3号炒锅火力", "", "")]
- ///// <summary>
- ///// 火力
- ///// </summary>
- //public string? HotPower { get { return hotPower; } set { hotPower = value;} }
- //private string? hotPower="0";
- [Column("Speed")]
- [Variable("FryPotThreeSpeed", "3号炒锅搅拌速度", "D2500", "")]
- /// <summary>
- /// 搅拌速度
- /// </summary>
- public double? Speed { get { return speed; } set { speed = value; } }
- private double? speed=0;
- [Column("FryPotWeight")]
- [Variable("FryPotThreeWeight", "3号炒锅载重", "D600", "")]
- /// <summary>
- /// 炒锅重量
- /// </summary>
- public double? FryPotWeight { get { return fryPotWeight; } set { fryPotWeight = value; } }
- private double? fryPotWeight=0;
-
-
-
- [Column("ReicpeName")]
- /// <summary>
- /// 当前配方名称
- /// </summary>
- public string RecipeName { get; set; } = string.Empty;
- [Column("Time")]
- /// <summary>
- /// 时间
- /// </summary>
- public string Time { get; set; } = DateTime.Now.ToShortTimeString();
-
-
- [Variable("FryPotThreeProcessStep", "3号炒锅当前工艺步数", "D3000", "")]
- /// <summary>
- /// 当前工艺步数
- /// </summary>
- public ushort Step { get { return _step; } set { _step = value; } }
- private ushort _step;
- [Variable("FryPotThreeSmallFire", "3号炒锅小火火力", "D510", "")]
- public ushort SmallFire { get { return _smallFire; } set { _smallFire = value; } }
- private ushort _smallFire;
- [Variable("FryPotThreeMidFire", "3号炒锅中火火力", "D512", "")]
- public ushort MidFire { get { return _midFire; } set { _midFire = value; } }
- private ushort _midFire;
- [Variable("FryPotThreeBigFire", "3号炒锅大火火力", "D514", "")]
- public ushort BigFire { get { return _bigFire; } set { _bigFire = value; } }
- private ushort _bigFire;
- [Variable("FryPotThreeStrongFire", "3号炒锅强火火力", "D516", "")]
- public ushort StrongFire { get { return _strongFire; } set { _strongFire = value; } }
- private ushort _strongFire;
-
- [Column("OilCapacity")]
- [Variable("FryPotThreeOil", "3号炒锅当前配方用油量", "", "")]
- /// <summary>
- /// 单次配方用油量
- /// </summary>
- public double? OilCapacity { get { return oilCapacity; } set { oilCapacity = value; } }
- private double? oilCapacity = 0;
- [Column("TotalOilCapactiy")]
- [Variable("FryPotThreeTotalOil", "3号炒锅总用油量", "", "")]
- /// <summary>
- /// 一天总用油量
- /// </summary>
- public double? TotalOilCapactiy { get { return totalOilCapactiy; } set { totalOilCapactiy = value; } }
- private double? totalOilCapactiy = 0;
-
- [Column("TotalProduct")]
- [Variable("FryPotThreeTotalProduct", "3号炒锅总产量", "", "")]
- /// <summary>
- /// 一天配方生产总量
- /// </summary>
- public int? TotalProduct { get { return totalProduct; } set { totalProduct = value; } }
- private int? totalProduct = 0;
- }
- }
|