using SQLite; using System; using System.Collections.Generic; using System.ComponentModel; using System.Runtime.CompilerServices; using System.Text; using System.Text.Json.Serialization; namespace SlnMesnac.Model.domain { public class MesApiResponse { public int Code { get; set; } public string Msg { get; set; } public List Data { get; set; } } public class MesOrderInfo : INotifyPropertyChanged { [PrimaryKey] public string ID { get; set; } [JsonPropertyName("ProductSpec")] public string ProductSpec { get; set; } [JsonPropertyName("OrderNo")] public string OrderNo { get; set; } [JsonPropertyName("ProductCode")] public string ProductCode { get; set; } [JsonPropertyName("ProductType")] public string ProductType { get; set; } [JsonPropertyName("ProductName")] public string ProductName { get; set; } [JsonPropertyName("ProductOrder")] public string ProductOrder { get; set; } [JsonPropertyName("PlanQty")] public double PlanQty { get; set; } [JsonPropertyName("NextProductNo")] public int NextProductNo { get; set; } [JsonPropertyName("PlanState")] public string PlanState { get; set; } [JsonPropertyName("PlanStateName")] public string PlanStateName { get; set; } public DateTime InsertDate { get; set; } public string LineName { get; set; } private bool _isProducing; [Ignore] public bool IsProducing { get => _isProducing; set { if (_isProducing != value) { _isProducing = value; OnPropertyChanged(); } } } public event PropertyChangedEventHandler? PropertyChanged; protected void OnPropertyChanged([CallerMemberName] string? propertyName = null) { PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName)); } } }