From 92b535a0f8db93cf4489182704b44813e078133d Mon Sep 17 00:00:00 2001 From: Victoria Plitt Date: Sun, 7 May 2023 18:09:39 +0300 Subject: "Show advanced options (Multi-segments & Gradients) in the Job Editor" On\Off Related Work Items: #8375 --- .../PPC/Modules/Tango.PPC.JobsV2/ViewModels/JobViewVM.cs | 13 ++++++++++++- .../PPC/Modules/Tango.PPC.JobsV2/Views/JobEurekaView.xaml | 2 +- .../Modules/Tango.PPC.MachineSettings/Views/MainView.xaml | 5 +++++ 3 files changed, 18 insertions(+), 2 deletions(-) (limited to 'Software/Visual_Studio/PPC/Modules') diff --git a/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/ViewModels/JobViewVM.cs b/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/ViewModels/JobViewVM.cs index a02005776..14a09fe57 100644 --- a/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/ViewModels/JobViewVM.cs +++ b/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/ViewModels/JobViewVM.cs @@ -271,7 +271,17 @@ namespace Tango.PPC.Jobs.ViewModels } } } - + + private bool _showAdvanced; + + public bool ShowAdvanced + { + get { return _showAdvanced; } + set { _showAdvanced = value; + RaisePropertyChangedAuto();} + } + + #endregion #region Commands @@ -530,6 +540,7 @@ namespace Tango.PPC.Jobs.ViewModels IsFullMode = true; DyeCommand.RaiseCanExecuteChanged(); + ShowAdvanced = Settings.ShowAdvancedOptions; } catch (Exception ex) { diff --git a/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Views/JobEurekaView.xaml b/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Views/JobEurekaView.xaml index e52433cfb..545b380e5 100644 --- a/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Views/JobEurekaView.xaml +++ b/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Views/JobEurekaView.xaml @@ -959,7 +959,7 @@ - + Advanced Options diff --git a/Software/Visual_Studio/PPC/Modules/Tango.PPC.MachineSettings/Views/MainView.xaml b/Software/Visual_Studio/PPC/Modules/Tango.PPC.MachineSettings/Views/MainView.xaml index 2a7d968aa..6475869dd 100644 --- a/Software/Visual_Studio/PPC/Modules/Tango.PPC.MachineSettings/Views/MainView.xaml +++ b/Software/Visual_Studio/PPC/Modules/Tango.PPC.MachineSettings/Views/MainView.xaml @@ -460,6 +460,11 @@ + + Show advanced options (Multi-segments & Gradients) in the Job Editor + + + -- cgit v1.3.1 From 031fdf36d4b96c581860032e6539470e132dbd07 Mon Sep 17 00:00:00 2001 From: Victoria Plitt Date: Sun, 7 May 2023 20:53:07 +0300 Subject: Job weight calcualtion is incorrect Related Work Items: #8380 --- .../Tango.PPC.JobsV2/Converters/LengthToWeightConverter.cs | 4 ++-- .../PPC/Modules/Tango.PPC.JobsV2/Views/JobEurekaView.xaml | 13 ++++--------- 2 files changed, 6 insertions(+), 11 deletions(-) (limited to 'Software/Visual_Studio/PPC/Modules') diff --git a/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Converters/LengthToWeightConverter.cs b/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Converters/LengthToWeightConverter.cs index e523ad73e..e36dd3c63 100644 --- a/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Converters/LengthToWeightConverter.cs +++ b/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Converters/LengthToWeightConverter.cs @@ -17,8 +17,8 @@ namespace Tango.PPC.Jobs.Converters { double length = System.Convert.ToDouble(values[0]); double coef = System.Convert.ToDouble(values[1]); - int spools = System.Convert.ToInt32(values[2]); - var weight = ((double)length * spools * coef) / (1000);//(g) + //int spools = System.Convert.ToInt32(values[2]); + var weight = ((double)length * coef) / (1000);//(g) return weight; } catch (Exception ex) diff --git a/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Views/JobEurekaView.xaml b/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Views/JobEurekaView.xaml index 545b380e5..369544e9f 100644 --- a/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Views/JobEurekaView.xaml +++ b/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Views/JobEurekaView.xaml @@ -1204,8 +1204,7 @@ - - + @@ -1222,8 +1221,7 @@ - - + @@ -1267,8 +1265,7 @@ - - + @@ -1289,8 +1286,7 @@ - - + @@ -1318,7 +1314,6 @@ - -- cgit v1.3.1