From 523bb86f28158efe34b285ba07b2500ea59d09d1 Mon Sep 17 00:00:00 2001 From: Roy Ben Shabat Date: Tue, 10 Dec 2024 20:15:36 +0200 Subject: Fixed CE crash with no light inks. --- .../Notes/Tango.Notes/DB/Repair Suspect Mode.txt | 6 ++++++ .../Notes/Tango.Notes/Tango.Notes.csproj | 3 ++- .../PPC/Tango.PPC.DataSynchronizer.CLI/Program.cs | 23 ++++++++++++++++++++++ .../Visual_Studio/PPC/Tango.PPC.UI/app.manifest | 2 +- .../Tango.ColorConversion/DefaultColorConverter.cs | 13 ++++++++++-- 5 files changed, 43 insertions(+), 4 deletions(-) create mode 100644 Software/Visual_Studio/Notes/Tango.Notes/DB/Repair Suspect Mode.txt (limited to 'Software/Visual_Studio') diff --git a/Software/Visual_Studio/Notes/Tango.Notes/DB/Repair Suspect Mode.txt b/Software/Visual_Studio/Notes/Tango.Notes/DB/Repair Suspect Mode.txt new file mode 100644 index 000000000..b66eca7d3 --- /dev/null +++ b/Software/Visual_Studio/Notes/Tango.Notes/DB/Repair Suspect Mode.txt @@ -0,0 +1,6 @@ +EXEC sp_resetstatus Tango_TEST; +ALTER DATABASE Tango_TEST SET EMERGENCY +DBCC checkdb(Tango_TEST) +ALTER DATABASE Tango_TEST SET SINGLE_USER WITH ROLLBACK IMMEDIATE +DBCC CheckDB (Tango_TEST, REPAIR_ALLOW_DATA_LOSS) +ALTER DATABASE Tango_TEST SET MULTI_USER \ No newline at end of file diff --git a/Software/Visual_Studio/Notes/Tango.Notes/Tango.Notes.csproj b/Software/Visual_Studio/Notes/Tango.Notes/Tango.Notes.csproj index 9f2d91731..7c0014747 100644 --- a/Software/Visual_Studio/Notes/Tango.Notes/Tango.Notes.csproj +++ b/Software/Visual_Studio/Notes/Tango.Notes/Tango.Notes.csproj @@ -50,6 +50,7 @@ + @@ -72,7 +73,7 @@ - + \ No newline at end of file diff --git a/Software/Visual_Studio/PPC/Tango.PPC.DataSynchronizer.CLI/Program.cs b/Software/Visual_Studio/PPC/Tango.PPC.DataSynchronizer.CLI/Program.cs index 27256cbdb..17785bb3c 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.DataSynchronizer.CLI/Program.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.DataSynchronizer.CLI/Program.cs @@ -59,6 +59,7 @@ namespace Tango.PPC.DataSynchronizer.CLI OverrideData(); UpdateMachine(); + //ProvisionMachine(); Console.ForegroundColor = ConsoleColor.Green; Console.WriteLine("Synchronization Completed Successfully."); @@ -113,5 +114,27 @@ namespace Tango.PPC.DataSynchronizer.CLI throw new InvalidOperationException(result.Output); } } + + private void ProvisionMachine() + { + Console.WriteLine("Executing provision machine script..."); + + ExaminerConfigurationBuilder builder = new ExaminerConfigurationBuilder(ExaminerConfigurationType.ProvisionMachine); + builder.SetSource(source).SetTarget(target).SetMachineSerialNumber(MACHINE_SERIAL_NUMBER).Synchronize(); + var process = new ExaminerProcess(builder.Build(), ExaminerProcessType.Data); + process.Progress += (x, msg) => + { + if (msg != null && !msg.Contains("SQL Examiner")) + { + Console.WriteLine(msg); + } + }; + var result = process.Execute().Result; + + if (result.ExitCode != ExaminerProcessExitCode.Success) + { + throw new InvalidOperationException(result.Output); + } + } } } diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/app.manifest b/Software/Visual_Studio/PPC/Tango.PPC.UI/app.manifest index d72e75011..efc5f8179 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.UI/app.manifest +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/app.manifest @@ -16,7 +16,7 @@ Remove this element if your application requires this virtualization for backwards compatibility. --> - + diff --git a/Software/Visual_Studio/Tango.ColorConversion/DefaultColorConverter.cs b/Software/Visual_Studio/Tango.ColorConversion/DefaultColorConverter.cs index 7fc5d2deb..dffe8472e 100644 --- a/Software/Visual_Studio/Tango.ColorConversion/DefaultColorConverter.cs +++ b/Software/Visual_Studio/Tango.ColorConversion/DefaultColorConverter.cs @@ -84,6 +84,9 @@ namespace Tango.ColorConversion PMR.ColorLab.LiquidType.Magenta, PMR.ColorLab.LiquidType.Yellow, PMR.ColorLab.LiquidType.Black, + PMR.ColorLab.LiquidType.LightCyan, + PMR.ColorLab.LiquidType.LightMagenta, + PMR.ColorLab.LiquidType.LightYellow, }; foreach (var ink in checkInks) @@ -94,7 +97,7 @@ namespace Tango.ColorConversion { CalibrationData = Cat.CreateDemoCalibrationData(ink), LiquidType = ink, - MaxNanoliterPerCentimeter = 2.4, + MaxNanoliterPerCentimeter = 140, Volume = 0 }); } @@ -287,6 +290,9 @@ namespace Tango.ColorConversion PMR.ColorLab.LiquidType.Magenta, PMR.ColorLab.LiquidType.Yellow, PMR.ColorLab.LiquidType.Black, + PMR.ColorLab.LiquidType.LightCyan, + PMR.ColorLab.LiquidType.LightMagenta, + PMR.ColorLab.LiquidType.LightYellow, }; foreach (var ink in checkInks) @@ -297,7 +303,7 @@ namespace Tango.ColorConversion { CalibrationData = Cat.CreateDemoCalibrationData(ink), LiquidType = ink, - MaxNanoliterPerCentimeter = 2.4, + MaxNanoliterPerCentimeter = 140, Volume = 0 }); } @@ -313,6 +319,9 @@ namespace Tango.ColorConversion PMR.ColorLab.LiquidType.Magenta, PMR.ColorLab.LiquidType.Yellow, PMR.ColorLab.LiquidType.Black, + PMR.ColorLab.LiquidType.LightCyan, + PMR.ColorLab.LiquidType.LightMagenta, + PMR.ColorLab.LiquidType.LightYellow, }; foreach (var ink in checkInks) -- cgit v1.3.1