From c8890c60c3ee1d9f33606d272fdc45e6f7f5ef3f Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Mon, 25 Jun 2018 11:16:50 +0300 Subject: Working on PPC job view gradients.. --- Software/Visual_Studio/PPC/Tango.PPC.Common/Resources/Merged.xaml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Software/Visual_Studio/PPC/Tango.PPC.Common') diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/Resources/Merged.xaml b/Software/Visual_Studio/PPC/Tango.PPC.Common/Resources/Merged.xaml index 2629c6a14..448798e66 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.Common/Resources/Merged.xaml +++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/Resources/Merged.xaml @@ -26,6 +26,8 @@ + + -- cgit v1.3.1 From 3c76016cff1a5e5d9c2ad270a954056e77ea9ce8 Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Tue, 26 Jun 2018 13:54:56 +0300 Subject: Fixed issue on numeric text input. Updated machine studio update service to accept hashed passwords.. Added Job summery to job view. --- Software/DB/Tango.mdf | Bin 75497472 -> 75497472 bytes Software/DB/Tango_log.ldf | Bin 1572864 -> 1572864 bytes .../MachineStudioUpdateService.svc.cs | 7 +- .../PPC/Modules/Tango.PPC.Jobs/Views/JobView.xaml | 101 +++++++++++++++++++-- .../PPC/Tango.PPC.Common/Resources/Merged.xaml | 5 + .../Tango.BL/EntitiesExtensions/Job.cs | 55 +++++++++++ .../Converters/OneToPercentConverter.cs | 23 +++++ .../Converters/SegmentLengthToWidthConverter.cs | 53 +++++++++++ .../Converters/WidthHeightToRectConverter.cs | 26 ++++++ .../Tango.SharedUI/Tango.SharedUI.csproj | 3 + .../Tango.Touch/Controls/TouchNumericTextBox.cs | 10 +- .../Tango.Touch/Controls/TouchNumericTextBox.xaml | 6 ++ .../Tango.Touch/Controls/TouchSlider.xaml | 14 +-- .../Visual_Studio/Tango.Touch/Resources/Fonts.xaml | 1 + 14 files changed, 279 insertions(+), 25 deletions(-) create mode 100644 Software/Visual_Studio/Tango.SharedUI/Converters/OneToPercentConverter.cs create mode 100644 Software/Visual_Studio/Tango.SharedUI/Converters/SegmentLengthToWidthConverter.cs create mode 100644 Software/Visual_Studio/Tango.SharedUI/Converters/WidthHeightToRectConverter.cs (limited to 'Software/Visual_Studio/PPC/Tango.PPC.Common') diff --git a/Software/DB/Tango.mdf b/Software/DB/Tango.mdf index 3f8e84e8b..655618cca 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 251cd8ee9..3ca849535 100644 Binary files a/Software/DB/Tango_log.ldf and b/Software/DB/Tango_log.ldf differ diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UpdateService/MachineStudioUpdateService.svc.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UpdateService/MachineStudioUpdateService.svc.cs index b90a03c1d..49521fb1d 100644 --- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UpdateService/MachineStudioUpdateService.svc.cs +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UpdateService/MachineStudioUpdateService.svc.cs @@ -60,8 +60,7 @@ namespace Tango.MachineStudio.UpdateService db.UsersRoles.ToList(); db.RolesPermissions.ToList(); - String hash = User.GetPasswordHash(request.Password); - var user = db.Users.SingleOrDefault(x => x.Email.ToLower() == request.Email.ToLower() && x.Password == hash); + var user = db.Users.SingleOrDefault(x => x.Email.ToLower() == request.Email.ToLower() && x.Password == request.Password); if (user != null && user.HasPermission(Permissions.RunMachineStudio) || (request.Email == "ForceUpdate")) { @@ -111,9 +110,7 @@ namespace Tango.MachineStudio.UpdateService db.UsersRoles.ToList(); db.RolesPermissions.ToList(); - String hash = User.GetPasswordHash(request.Password); - - var user = db.Users.SingleOrDefault(x => x.Email.ToLower() == request.Email.ToLower() && x.Password == hash); + var user = db.Users.SingleOrDefault(x => x.Email.ToLower() == request.Email.ToLower() && x.Password == request.Password); if (user != null && user.HasPermission(Permissions.PublishMachineStudioVersion)) { diff --git a/Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/Views/JobView.xaml b/Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/Views/JobView.xaml index c3817c5d1..c42435f94 100644 --- a/Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/Views/JobView.xaml +++ b/Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/Views/JobView.xaml @@ -13,7 +13,7 @@ xmlns:entities="clr-namespace:Tango.BL.Entities;assembly=Tango.BL" xmlns:local="clr-namespace:Tango.PPC.Jobs.Views" mc:Ignorable="d" - d:DesignHeight="1280" d:DesignWidth="800" d:DataContext="{d:DesignInstance Type=vm:JobViewVM, IsDesignTimeCreatable=False}" DataContext="{x:Static global:ViewModelLocator.JobViewVM}"> + d:DesignHeight="2000" d:DesignWidth="800" d:DataContext="{d:DesignInstance Type=vm:JobViewVM, IsDesignTimeCreatable=False}" DataContext="{x:Static global:ViewModelLocator.JobViewVM}">