From f25823d812134a71b901562b72adfdb9185812a9 Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Mon, 18 Jun 2018 14:49:53 +0300 Subject: Fixed issue with RML in Machine Studio DB Module. Implemented TouchTextBox. Made some modifications to ViewModel validation. --- .../Tango.MachineStudio.DB.csproj | 16 +++++++ .../Tango.MachineStudio.DB/ViewModelLocator.cs | 10 ++++ .../ViewModels/SpoolTypesViewVM.cs | 18 ++++++++ .../Views/DBViews/RmlView.xaml | 2 +- .../Views/DBViews/RmlsView.xaml | 2 +- .../Views/DBViews/SpoolTypeView.xaml | 53 ++++++++++++++++++++++ .../Views/DBViews/SpoolTypeView.xaml.cs | 28 ++++++++++++ .../Views/DBViews/SpoolTypesView.xaml | 32 +++++++++++++ .../Views/DBViews/SpoolTypesView.xaml.cs | 32 +++++++++++++ 9 files changed, 191 insertions(+), 2 deletions(-) create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/SpoolTypesViewVM.cs create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/Views/DBViews/SpoolTypeView.xaml create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/Views/DBViews/SpoolTypeView.xaml.cs create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/Views/DBViews/SpoolTypesView.xaml create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/Views/DBViews/SpoolTypesView.xaml.cs (limited to 'Software/Visual_Studio/MachineStudio') diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/Tango.MachineStudio.DB.csproj b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/Tango.MachineStudio.DB.csproj index baa6042f0..e7d4a4022 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/Tango.MachineStudio.DB.csproj +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/Tango.MachineStudio.DB.csproj @@ -79,6 +79,7 @@ + @@ -126,6 +127,7 @@ + @@ -136,6 +138,12 @@ ActionTypeView.xaml + + SpoolTypesView.xaml + + + SpoolTypeView.xaml + EventTypesGroupsView.xaml @@ -402,6 +410,14 @@ MSBuild:Compile Designer + + MSBuild:Compile + Designer + + + MSBuild:Compile + Designer + MSBuild:Compile Designer diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModelLocator.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModelLocator.cs index d2506c362..7bf3c6717 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModelLocator.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModelLocator.cs @@ -65,6 +65,8 @@ namespace Tango.MachineStudio.DB TangoIOC.Default.Register(); TangoIOC.Default.Register(); + + TangoIOC.Default.Register(); } public static MainViewVM MainViewVM @@ -402,5 +404,13 @@ namespace Tango.MachineStudio.DB return TangoIOC.Default.GetInstance(); } } + + public static SpoolTypesViewVM SpoolTypesViewVM + { + get + { + return TangoIOC.Default.GetInstance(); + } + } } } \ No newline at end of file diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/SpoolTypesViewVM.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/SpoolTypesViewVM.cs new file mode 100644 index 000000000..cc52e6e95 --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/SpoolTypesViewVM.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; +using Tango.MachineStudio.Common.Notifications; + +namespace Tango.MachineStudio.DB.ViewModels +{ + public class SpoolTypesViewVM : DbTableViewModel + { + public SpoolTypesViewVM(INotificationProvider notification) : base(notification) + { + + } + } +} diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/Views/DBViews/RmlView.xaml b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/Views/DBViews/RmlView.xaml index 43a17d8e4..9bddd3937 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/Views/DBViews/RmlView.xaml +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/Views/DBViews/RmlView.xaml @@ -41,7 +41,7 @@ - + diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/Views/DBViews/RmlsView.xaml b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/Views/DBViews/RmlsView.xaml index 86a61d400..8cd51ccac 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/Views/DBViews/RmlsView.xaml +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/Views/DBViews/RmlsView.xaml @@ -29,7 +29,7 @@ - + diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/Views/DBViews/SpoolTypeView.xaml b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/Views/DBViews/SpoolTypeView.xaml new file mode 100644 index 000000000..843b9c244 --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/Views/DBViews/SpoolTypeView.xaml @@ -0,0 +1,53 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/Views/DBViews/SpoolTypeView.xaml.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/Views/DBViews/SpoolTypeView.xaml.cs new file mode 100644 index 000000000..51baf49bd --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/Views/DBViews/SpoolTypeView.xaml.cs @@ -0,0 +1,28 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Navigation; +using System.Windows.Shapes; + +namespace Tango.MachineStudio.DB.Views.DBViews +{ + /// + /// Interaction logic for MachineView.xaml + /// + public partial class SpoolTypeView : UserControl + { + public SpoolTypeView() + { + InitializeComponent(); + } + } +} diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/Views/DBViews/SpoolTypesView.xaml b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/Views/DBViews/SpoolTypesView.xaml new file mode 100644 index 000000000..4ed13cb11 --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/Views/DBViews/SpoolTypesView.xaml @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/Views/DBViews/SpoolTypesView.xaml.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/Views/DBViews/SpoolTypesView.xaml.cs new file mode 100644 index 000000000..2f0864ee3 --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/Views/DBViews/SpoolTypesView.xaml.cs @@ -0,0 +1,32 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Navigation; +using System.Windows.Shapes; +using Tango.MachineStudio.DB.CustomAttributes; +using Tango.MachineStudio.DB.Managers; +using Tango.SharedUI.Controls; + +namespace Tango.MachineStudio.DB.Views.DBViews +{ + /// + /// Interaction logic for MachinesView.xaml + /// + [DBView] + public partial class SpoolTypesView : UserControl + { + public SpoolTypesView() : base() + { + InitializeComponent(); + } + } +} -- cgit v1.3.1 From e155089c0bd92a4be38e286bd08bb28b4e88284f Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Mon, 18 Jun 2018 15:00:24 +0300 Subject: Machine Studio 1.0.0.2 --- Software/DB/Tango.mdf | Bin 75497472 -> 75497472 bytes Software/DB/Tango_log.ldf | Bin 1572864 -> 1572864 bytes .../Tango.MachineStudio.DB.csproj | 1 - .../Visual_Studio/Versioning/GlobalVersionInfo.cs | 4 ++-- 4 files changed, 2 insertions(+), 3 deletions(-) (limited to 'Software/Visual_Studio/MachineStudio') diff --git a/Software/DB/Tango.mdf b/Software/DB/Tango.mdf index b7bd188b4..aeeb78e8d 100644 Binary files a/Software/DB/Tango.mdf and b/Software/DB/Tango.mdf differ diff --git a/Software/DB/Tango_log.ldf b/Software/DB/Tango_log.ldf index 9a5318451..d5c552e3a 100644 Binary files a/Software/DB/Tango_log.ldf and b/Software/DB/Tango_log.ldf differ diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/Tango.MachineStudio.DB.csproj b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/Tango.MachineStudio.DB.csproj index e7d4a4022..de82ff366 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/Tango.MachineStudio.DB.csproj +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/Tango.MachineStudio.DB.csproj @@ -79,7 +79,6 @@ - diff --git a/Software/Visual_Studio/Versioning/GlobalVersionInfo.cs b/Software/Visual_Studio/Versioning/GlobalVersionInfo.cs index e067918d5..9d96df6aa 100644 --- a/Software/Visual_Studio/Versioning/GlobalVersionInfo.cs +++ b/Software/Visual_Studio/Versioning/GlobalVersionInfo.cs @@ -9,5 +9,5 @@ using System.Runtime.InteropServices; [assembly: AssemblyCopyright("Copyright © Twine LTD 2017")] [assembly: AssemblyTrademark("Twine LTD")] -[assembly: AssemblyVersion("1.0.0.1")] -[assembly: AssemblyFileVersion("1.0.0.1")] +[assembly: AssemblyVersion("1.0.0.2")] +[assembly: AssemblyFileVersion("1.0.0.2")] -- cgit v1.3.1 From 054debe0f90ef6312f669963c2c62810fc766a8d Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Mon, 18 Jun 2018 16:31:02 +0300 Subject: Added HeaterZ5 to DB,PMR, Observables. --- Software/DB/Tango.mdf | Bin 75497472 -> 75497472 bytes Software/DB/Tango_log.ldf | Bin 1572864 -> 1572864 bytes .../Messages/Hardware/HardwarePidControlType.proto | 31 ++++++++++--------- .../TFS/TeamFoundationServiceExtendedClient.cs | 11 ++++--- .../Enumerations/HardwarePidControlTypes.cs | 34 ++++++++++++--------- 5 files changed, 44 insertions(+), 32 deletions(-) (limited to 'Software/Visual_Studio/MachineStudio') diff --git a/Software/DB/Tango.mdf b/Software/DB/Tango.mdf index aeeb78e8d..4bc275e1e 100644 Binary files a/Software/DB/Tango.mdf and b/Software/DB/Tango.mdf differ diff --git a/Software/DB/Tango_log.ldf b/Software/DB/Tango_log.ldf index d5c552e3a..703f3b1f4 100644 Binary files a/Software/DB/Tango_log.ldf and b/Software/DB/Tango_log.ldf differ diff --git a/Software/PMR/Messages/Hardware/HardwarePidControlType.proto b/Software/PMR/Messages/Hardware/HardwarePidControlType.proto index 9535eaa33..3bef9e2a4 100644 --- a/Software/PMR/Messages/Hardware/HardwarePidControlType.proto +++ b/Software/PMR/Messages/Hardware/HardwarePidControlType.proto @@ -37,46 +37,49 @@ enum HardwarePidControlType //Head Heater Zone 4 HeadHeaterZ4 = 6; + //Head Heater Zone 5 + HeadHeaterZ5 = 7; + //Mixer Heater - MixerHeater = 7; + MixerHeater = 8; //Waste Control - WasteControl = 8; + WasteControl = 9; //Dryer Motor - MotorDryer = 9; + MotorDryer = 10; //Feeder Motor - MotorFeeder = 10; + MotorFeeder = 11; //Pooler Motor - MotorPooler = 11; + MotorPooler = 12; //Winder Motor - MotorWinder = 12; + MotorWinder = 13; //Dispenser 1 - Dispenser1 = 13; + Dispenser1 = 14; //Dispenser 2 - Dispenser2 = 14; + Dispenser2 = 15; //Dispenser 3 - Dispenser3 = 15; + Dispenser3 = 16; //Dispenser 4 - Dispenser4 = 16; + Dispenser4 = 17; //Dispenser 5 - Dispenser5 = 17; + Dispenser5 = 18; //Dispenser 6 - Dispenser6 = 18; + Dispenser6 = 19; //Dispenser 7 - Dispenser7 = 19; + Dispenser7 = 20; //Dispenser 8 - Dispenser8 = 20; + Dispenser8 = 21; } diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/TFS/TeamFoundationServiceExtendedClient.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/TFS/TeamFoundationServiceExtendedClient.cs index eb3572728..3dbee402b 100644 --- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/TFS/TeamFoundationServiceExtendedClient.cs +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/TFS/TeamFoundationServiceExtendedClient.cs @@ -64,10 +64,13 @@ namespace Tango.MachineStudio.UI.TFS { try { - IStudioApplicationManager app = TangoIOC.Default.GetInstance(); - var items = await GetWorkItemsCreatedBy(Project, GetUserTeamMember()); - items.Where(x => x.StepsToReproduce != null).ToList().ForEach(x => x.StepsToReproduce = x.StepsToReproduce.Replace("
", "").Replace("
", "")); - ResolvedWorkItems = items.Where(x => x.State == State.Resolved && x.ResolvedReason == ResolvedReason.Fixed && x.IsBuildVersionValid && x.FoundInBuildVersion < Version.Parse(app.Version)).ToObservableCollection(); + if (Project != null) + { + IStudioApplicationManager app = TangoIOC.Default.GetInstance(); + var items = await GetWorkItemsCreatedBy(Project, GetUserTeamMember()); + items.Where(x => x.StepsToReproduce != null).ToList().ForEach(x => x.StepsToReproduce = x.StepsToReproduce.Replace("
", "").Replace("
", "")); + ResolvedWorkItems = items.Where(x => x.State == State.Resolved && x.ResolvedReason == ResolvedReason.Fixed && x.IsBuildVersionValid && x.FoundInBuildVersion < Version.Parse(app.Version)).ToObservableCollection(); + } } catch (Exception ex) { diff --git a/Software/Visual_Studio/Tango.BL/Enumerations/HardwarePidControlTypes.cs b/Software/Visual_Studio/Tango.BL/Enumerations/HardwarePidControlTypes.cs index 61d149a90..abe59390a 100644 --- a/Software/Visual_Studio/Tango.BL/Enumerations/HardwarePidControlTypes.cs +++ b/Software/Visual_Studio/Tango.BL/Enumerations/HardwarePidControlTypes.cs @@ -51,89 +51,95 @@ namespace Tango.BL.Enumerations [Description("Head Heater Zone 4")] HeadHeaterZ4 = 6, + /// + /// (Head Heater Zone 5) + /// + [Description("Head Heater Zone 5")] + HeadHeaterZ5 = 7, + /// /// (Mixer Heater) /// [Description("Mixer Heater")] - MixerHeater = 7, + MixerHeater = 8, /// /// (Waste Control) /// [Description("Waste Control")] - WasteControl = 8, + WasteControl = 9, /// /// (Dryer Motor) /// [Description("Dryer Motor")] - MotorDryer = 9, + MotorDryer = 10, /// /// (Feeder Motor) /// [Description("Feeder Motor")] - MotorFeeder = 10, + MotorFeeder = 11, /// /// (Pooler Motor) /// [Description("Pooler Motor")] - MotorPooler = 11, + MotorPooler = 12, /// /// (Winder Motor) /// [Description("Winder Motor")] - MotorWinder = 12, + MotorWinder = 13, /// /// (Dispenser 1) /// [Description("Dispenser 1")] - Dispenser1 = 13, + Dispenser1 = 14, /// /// (Dispenser 2) /// [Description("Dispenser 2")] - Dispenser2 = 14, + Dispenser2 = 15, /// /// (Dispenser 3) /// [Description("Dispenser 3")] - Dispenser3 = 15, + Dispenser3 = 16, /// /// (Dispenser 4) /// [Description("Dispenser 4")] - Dispenser4 = 16, + Dispenser4 = 17, /// /// (Dispenser 5) /// [Description("Dispenser 5")] - Dispenser5 = 17, + Dispenser5 = 18, /// /// (Dispenser 6) /// [Description("Dispenser 6")] - Dispenser6 = 18, + Dispenser6 = 19, /// /// (Dispenser 7) /// [Description("Dispenser 7")] - Dispenser7 = 19, + Dispenser7 = 20, /// /// (Dispenser 8) /// [Description("Dispenser 8")] - Dispenser8 = 20, + Dispenser8 = 21, } } -- cgit v1.3.1