using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Collections.ObjectModel; using System.ComponentModel; using SqlSugar; namespace XImagingXhandler.XDAL { /// /// ÒºÌåÀàÐÍʵÌåÀà /// [SugarTable("liquidtype")] public class LiquidType : TreeViewItemBase { /// ///ÒºÌ巶Χ¶ÔÏó¼¯ºÏ /// [SugarColumn(IsIgnore = true, IsOnlyIgnoreInsert = true, IsOnlyIgnoreUpdate = true)] public ObservableCollection LiquidRanges { get; set; } public LiquidType() { this.LiquidRanges = new ObservableCollection(); } public event PropertyChangedEventHandler PropertyChanged; private string _liquid_type_id; /// /// ÒºÌåÀàÐÍId /// [SugarColumn(ColumnName = "liquid_type_id", IsPrimaryKey = true)] [Description("ÒºÌåÀàÐÍId")] public string liquid_type_id { get { return _liquid_type_id; } set { _liquid_type_id = value; if (PropertyChanged != null) { PropertyChanged(this, new PropertyChangedEventArgs(nameof(liquid_type_id))); } } } private string _liquid_type_name; /// /// ÒºÌåÀàÐÍÃû³Æ /// [SugarColumn(ColumnName = "liquid_type_name")] [Description("ÒºÌåÀàÐÍÃû³Æ")] public string liquid_type_name { get { return _liquid_type_name; } set { _liquid_type_name = value; if (PropertyChanged != null) { PropertyChanged(this, new PropertyChangedEventArgs(nameof(liquid_type_name))); } } } private string _liquid_type_name_en; /// /// ÒºÌåÀàÐÍÓ¢ÎÄÃû³Æ /// [SugarColumn(ColumnName = "liquid_type_name_en")] [Description("ÒºÌåÀàÐÍÓ¢ÎÄÃû³Æ")] public string liquid_type_name_en { get { return _liquid_type_name_en; } set { _liquid_type_name_en = value; if (PropertyChanged != null) { PropertyChanged(this, new PropertyChangedEventArgs(nameof(liquid_type_name_en))); } } } private int _is_default_type; /// /// ÊÇ·ñÊÇĬÈÏÀàÐÍ£»1£ºÊÇ£»0£º²»ÊÇ /// [SugarColumn(ColumnName = "is_default_type")] [Description("ÊÇ·ñÊÇĬÈÏÀàÐÍ")] public int is_default_type { get { return _is_default_type; } set { _is_default_type = value; if (PropertyChanged != null) { PropertyChanged(this, new PropertyChangedEventArgs(nameof(is_default_type))); } } } private DateTime _timestamp; /// /// ¸üÐÂʱ¼ä /// [SugarColumn(ColumnName = "timestamp")] [Description("¸üÐÂʱ¼ä")] public DateTime timestamp { get { return _timestamp; } set { _timestamp = value; if (PropertyChanged != null) { PropertyChanged(this, new PropertyChangedEventArgs(nameof(timestamp))); } } } private int _liquid_type_status { get; set; } /// /// ´ËÌõÊý¾Ý״̬1:¿ÉÓã»0£ºÉ¾³ý /// [SugarColumn(ColumnName = "liquid_type_status")] [Description("Êý¾Ý״̬")] public int liquid_type_status { get { return _liquid_type_status; } set { _liquid_type_status = value; if (PropertyChanged != null) { PropertyChanged(this, new PropertyChangedEventArgs(nameof(liquid_type_status))); } } } } }