From 2ff635b052e5e17dff259d9a595641473262e483 Mon Sep 17 00:00:00 2001 From: SoulStar Date: Thu, 30 Apr 2026 11:29:43 +0800 Subject: [PATCH] =?UTF-8?q?feat=20-=20=E5=8F=91=E5=8D=A1=E5=99=A8=E5=86=99?= =?UTF-8?q?=E5=85=A5=E5=8A=9F=E8=83=BD=E5=AE=8C=E5=96=84=EF=BC=8C=E5=89=8D?= =?UTF-8?q?=E7=AB=AF=E6=A0=B7=E5=BC=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SlnMesnac.Model/SlnMesnac.Model.csproj | 1 + SlnMesnac.Model/domain/real_readdata.cs | 19 +++- .../Page/IndexPage/HistorySearch.xaml | 12 +-- .../IndexPage/ProductionLineUserControl.xaml | 29 +++--- .../IndexPage/ProductionLineViewModel.cs | 91 ++++++++++++------- 5 files changed, 96 insertions(+), 56 deletions(-) diff --git a/SlnMesnac.Model/SlnMesnac.Model.csproj b/SlnMesnac.Model/SlnMesnac.Model.csproj index a15476f..e0a02cc 100644 --- a/SlnMesnac.Model/SlnMesnac.Model.csproj +++ b/SlnMesnac.Model/SlnMesnac.Model.csproj @@ -6,6 +6,7 @@ + diff --git a/SlnMesnac.Model/domain/real_readdata.cs b/SlnMesnac.Model/domain/real_readdata.cs index 0671d40..e3eb203 100644 --- a/SlnMesnac.Model/domain/real_readdata.cs +++ b/SlnMesnac.Model/domain/real_readdata.cs @@ -3,13 +3,15 @@ using System.Linq; using System.Text; using SQLite; using SqlSugar; +using CommunityToolkit.Mvvm.ComponentModel; + namespace SlnMesnac.Repository { /// /// /// - public partial class real_readdata + public class real_readdata : ObservableObject { /// /// Desc: @@ -75,12 +77,25 @@ namespace SlnMesnac.Repository /// public DateTime? writetime { get; set; } + + + private string _writestatus; /// /// Desc: /// Default: /// Nullable:True /// - public string writestatus { get; set; } + public string writestatus + { + get => _writestatus; + set + { + if (_writestatus != value) + { + SetProperty(ref _writestatus, value); + } + } + } /// /// Desc: diff --git a/SlnMesnac.WPF/Page/IndexPage/HistorySearch.xaml b/SlnMesnac.WPF/Page/IndexPage/HistorySearch.xaml index 73e3f49..baf0013 100644 --- a/SlnMesnac.WPF/Page/IndexPage/HistorySearch.xaml +++ b/SlnMesnac.WPF/Page/IndexPage/HistorySearch.xaml @@ -172,13 +172,13 @@ ScrollViewer.VerticalScrollBarVisibility="Auto" BorderThickness="0" CanUserAddRows="False" SelectionMode="Single" IsReadOnly="True" Foreground="Black" > - - - - + + + + - - + + diff --git a/SlnMesnac.WPF/Page/IndexPage/ProductionLineUserControl.xaml b/SlnMesnac.WPF/Page/IndexPage/ProductionLineUserControl.xaml index babe865..7a2f01a 100644 --- a/SlnMesnac.WPF/Page/IndexPage/ProductionLineUserControl.xaml +++ b/SlnMesnac.WPF/Page/IndexPage/ProductionLineUserControl.xaml @@ -158,7 +158,8 @@ Content="查询" Width="200" Visibility="Hidden" FontSize="20" Command="{Binding - + + @@ -210,8 +211,8 @@ Content="查询" Width="200" Visibility="Hidden" FontSize="20" Command="{Binding