From 664b4d94232c5b46ad36c68e9f712eb2cfbd7765 Mon Sep 17 00:00:00 2001 From: auvkk Date: Wed, 6 Dec 2023 18:42:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96Sequence=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E5=99=A8=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Recipe选择栏位显示包含文件夹名称的完整路径, 优化Recipe选择按钮,修正三个点没有显示的问题。 优化PathFileParam对象,剔除FileName属性中的“Sic\Process"前缀,而不是在SequenceViewModel中。 修正Reload Sequence时,Recipe文件名中会显示“Sic\Process\”前缀的问题。 --- .../MECF.Framework.Common.csproj | 1 + .../Editors/Sequence/SequenceData.cs | 13 ++++++---- .../Editors/Sequence/SequenceView.xaml | 16 +++++++------ .../Editors/Sequence/SequenceViewModel.cs | 11 +++++---- .../RecipeModel/Params/PathFileParam.cs | 24 ++++++++++++++++++- 5 files changed, 47 insertions(+), 18 deletions(-) diff --git a/MECF.Framework.Common/MECF.Framework.Common.csproj b/MECF.Framework.Common/MECF.Framework.Common.csproj index 88c7c95..4ac90e3 100644 --- a/MECF.Framework.Common/MECF.Framework.Common.csproj +++ b/MECF.Framework.Common/MECF.Framework.Common.csproj @@ -838,6 +838,7 @@ PublicResXFileCodeGenerator Resources.Designer.cs + Designer diff --git a/MECF.Framework.UI.Client/CenterViews/Editors/Sequence/SequenceData.cs b/MECF.Framework.UI.Client/CenterViews/Editors/Sequence/SequenceData.cs index 782ef9a..7b421de 100644 --- a/MECF.Framework.UI.Client/CenterViews/Editors/Sequence/SequenceData.cs +++ b/MECF.Framework.UI.Client/CenterViews/Editors/Sequence/SequenceData.cs @@ -65,7 +65,12 @@ namespace MECF.Framework.UI.Client.CenterViews.Editors.Sequence } else if (col is PositionColumn) { - posParam = new PositionParam() { Name = col.ControlName, Options = ((PositionColumn)col).Options, IsEnabled = !col.IsReadOnly }; + posParam = new PositionParam() + { + Name = col.ControlName, + Options = ((PositionColumn)col).Options, + IsEnabled = !col.IsReadOnly + }; param = posParam; posValue = value; } @@ -81,13 +86,11 @@ namespace MECF.Framework.UI.Client.CenterViews.Editors.Sequence value = value.Substring(path.Length + 1); } - param = new PathFileParam() + param = new PathFileParam(col.ControlName, !col.IsReadOnly, ((RecipeSelectColumn)col).RecipeProcessType) { - Name = col.ControlName, Value = value, - IsEnabled = !col.IsReadOnly, - PrefixPath = ((RecipeSelectColumn)col).RecipeProcessType }; + } else if (col is MultipleSelectColumn) { diff --git a/MECF.Framework.UI.Client/CenterViews/Editors/Sequence/SequenceView.xaml b/MECF.Framework.UI.Client/CenterViews/Editors/Sequence/SequenceView.xaml index 6d979e3..c67ddd8 100644 --- a/MECF.Framework.UI.Client/CenterViews/Editors/Sequence/SequenceView.xaml +++ b/MECF.Framework.UI.Client/CenterViews/Editors/Sequence/SequenceView.xaml @@ -9,9 +9,12 @@ xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:micro="clr-namespace:Caliburn.Micro" + xmlns:sequence="clr-namespace:MECF.Framework.UI.Client.CenterViews.Editors.Sequence" d:DesignHeight="450" d:DesignWidth="1900" - mc:Ignorable="d"> + mc:Ignorable="d" + d:Background="LightSteelBlue" + d:DataContext="{d:DesignInstance Type=sequence:SequenceViewModel, IsDesignTimeCreatable=False}"> @@ -160,7 +163,6 @@