From 58815381fe6384ab0c4081e9124fa9fa191c8c4d Mon Sep 17 00:00:00 2001 From: liuwf Date: Thu, 24 Oct 2024 18:37:44 +0800 Subject: [PATCH] =?UTF-8?q?add-=E9=A6=96=E9=A1=B5=E8=AE=A1=E5=88=92?= =?UTF-8?q?=E7=95=8C=E9=9D=A2=E6=8C=89=E9=92=AE=E6=B7=BB=E5=8A=A0IsEnable?= =?UTF-8?q?=E3=80=81=E5=8F=82=E6=95=B0=E9=85=8D=E7=BD=AE=E7=95=8C=E9=9D=A2?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=AF=86=E7=A0=81=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SlnMesnac.Config/DebugConfig.cs | 11 +++++++ SlnMesnac.Model/dto/MesProductPlanDto.cs | 7 +++++ SlnMesnac.WPF/Page/ProdMgmtPage.xaml | 11 +++++-- .../ViewModel/MainWindowViewModel.cs | 15 +++++++-- SlnMesnac.WPF/ViewModel/ProdMgmtViewModel.cs | 31 +++++++++++++++++++ 5 files changed, 69 insertions(+), 6 deletions(-) diff --git a/SlnMesnac.Config/DebugConfig.cs b/SlnMesnac.Config/DebugConfig.cs index 5d77735..7a12ae9 100644 --- a/SlnMesnac.Config/DebugConfig.cs +++ b/SlnMesnac.Config/DebugConfig.cs @@ -158,5 +158,16 @@ namespace SlnMesnac.Config set { iniHelper.IniWriteValue("system", "ProcessName", value); } } + + + /// + ///参数配置界面密码 + /// + public string ConfigInfoPassWprd + { + get { return iniHelper.IniReadValue("system", "ConfigInfoPassWprd"); } + set { iniHelper.IniWriteValue("system", "ConfigInfoPassWprd", value); } + } + } } diff --git a/SlnMesnac.Model/dto/MesProductPlanDto.cs b/SlnMesnac.Model/dto/MesProductPlanDto.cs index 77fa739..812d7dc 100644 --- a/SlnMesnac.Model/dto/MesProductPlanDto.cs +++ b/SlnMesnac.Model/dto/MesProductPlanDto.cs @@ -168,5 +168,12 @@ namespace SlnMesnac.Model.dto /// [SugarColumn(ColumnName = "material_unit")] public string MaterialUnit { get; set; } + + + + public bool StartEnable { get; set; } + public bool StopEnable { get; set; } + + } } diff --git a/SlnMesnac.WPF/Page/ProdMgmtPage.xaml b/SlnMesnac.WPF/Page/ProdMgmtPage.xaml index ba35eec..ff75267 100644 --- a/SlnMesnac.WPF/Page/ProdMgmtPage.xaml +++ b/SlnMesnac.WPF/Page/ProdMgmtPage.xaml @@ -8,9 +8,14 @@ xmlns:local1="clr-namespace:SlnMesnac.WPF.Converter.ProdMgmt" mc:Ignorable="d" d:DesignHeight="1080" d:DesignWidth="1920" Background="Transparent"> - + + + + + + @@ -240,8 +245,8 @@ -