diff --git a/Common/CordonelAssemblyLine/App.xaml.cs b/Common/CordonelAssemblyLine/App.xaml.cs
index 9a251da4..627d1c33 100644
--- a/Common/CordonelAssemblyLine/App.xaml.cs
+++ b/Common/CordonelAssemblyLine/App.xaml.cs
@@ -1,13 +1,7 @@
-using System;
-using System.Collections.Generic;
-using System.Configuration;
-using System.Data;
-using System.Linq;
-using System.Threading.Tasks;
-using System.Windows;
-
-namespace CordonelAssemblyLine
+namespace CordonelAssemblyLine
{
+ using System.Windows;
+
///
/// Interaction logic for App.xaml
///
diff --git a/Common/CordonelAssemblyLine/CordonelAssemblyLine.csproj b/Common/CordonelAssemblyLine/CordonelAssemblyLine.csproj
index 04c79b28..49b0f092 100644
--- a/Common/CordonelAssemblyLine/CordonelAssemblyLine.csproj
+++ b/Common/CordonelAssemblyLine/CordonelAssemblyLine.csproj
@@ -14,10 +14,11 @@
4
true
true
- true
- \\SLA12IIS01\LaaProductionWeb\Apps\CordonelAssembly\
+ false
+
+ Z:\Aktuelle Anwendungen\Publish\Cordonel Assembly Line\
true
- Web
+ Unc
true
Foreground
7
@@ -25,19 +26,17 @@
false
false
true
- http://sla12iis01.emea.sensus.net/LaaProductionWeb/Apps/CordonelAssembly/
+ \\sla12file\auftrag\Aktuelle Anwendungen\Publish\Cordonel Assembly Line\
Cordonel Assembly Line
Xylem Sensus Laatzen
Cordonel Assembly Line
- true
publish.htm
- 8
+ 13
1.0.0.%2a
false
true
true
true
-
AnyCPU
@@ -81,7 +80,7 @@
true
- 305BF210A6BBE3C987AD135C96F7B55EC538E555
+ 254AA244F3F29F0692A7B2FAA31F24C884355262
CordonelAssemblyLine_TemporaryKey.pfx
@@ -118,6 +117,11 @@
MinimumRecommendedRules.ruleset
true
+
+ sensus.ico
+
+
+
..\packages\Newtonsoft.Json.13.0.3\lib\net45\Newtonsoft.Json.dll
@@ -128,6 +132,7 @@
+
@@ -204,7 +209,7 @@
True
- ResXFileCodeGenerator
+ PublicResXFileCodeGenerator
Resources.Designer.cs
@@ -295,6 +300,12 @@
false
+
+
+
+
+
+
del /Q /S *.xml *.pdb
diff --git a/Common/CordonelAssemblyLine/MainWindow.xaml b/Common/CordonelAssemblyLine/MainWindow.xaml
index 39f5e09d..03b71f77 100644
--- a/Common/CordonelAssemblyLine/MainWindow.xaml
+++ b/Common/CordonelAssemblyLine/MainWindow.xaml
@@ -5,13 +5,17 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:ProductionControls1="clr-namespace:Ui.ProductionControls;assembly=ProductionControls"
mc:Ignorable="d"
- Title="MainWindow" Height="450" Width="800" Closing="Window_Closing">
+ Title="Cordonel Assembly Line"
+ Height="450"
+ Width="800"
+ Closing="Window_Closing">
+
@@ -114,5 +118,15 @@
+
diff --git a/Common/CordonelAssemblyLine/MainWindow.xaml.cs b/Common/CordonelAssemblyLine/MainWindow.xaml.cs
index 35fcab2e..01119cd6 100644
--- a/Common/CordonelAssemblyLine/MainWindow.xaml.cs
+++ b/Common/CordonelAssemblyLine/MainWindow.xaml.cs
@@ -1,4 +1,5 @@
using System;
+using System.Diagnostics;
using System.Linq;
using System.Threading;
using System.Windows;
@@ -167,5 +168,11 @@ namespace CordonelAssemblyLine
{
}
+
+ private void TextBlock_MouseDown(Object sender, System.Windows.Input.MouseButtonEventArgs e)
+ {
+ Process.Start(Environment.CurrentDirectory);
+ e.Handled = true;
+ }
}
}
diff --git a/Common/CordonelAssemblyLine/Model/PickingModel.cs b/Common/CordonelAssemblyLine/Model/PickingModel.cs
index 57933253..6ccf7667 100644
--- a/Common/CordonelAssemblyLine/Model/PickingModel.cs
+++ b/Common/CordonelAssemblyLine/Model/PickingModel.cs
@@ -625,14 +625,14 @@ namespace CordonelAssemblyLine.Model
- //if (genesisStatus.AlternativeRequiredBatteryLoadPercent != null &&
- // genesisStatus.AlternativeRequiredBatteryLoadPercent > requirements.MaxDrainedBatteryLoadPercentAssembly)
- //{
- // sbMSG.AppendLine($"{nameof(genesisStatus.AlternativeRequiredBatteryLoadPercent)}: " +
- // $"{genesisStatus.AlternativeRequiredBatteryLoadPercent} > " + $"{requirements.MaxDrainedBatteryLoadPercentAssembly}");
- // ret = false;
- //}
- //else sbMSG.AppendLine($"Alternative Batterieverbrauch Montage i.O.");
+ if (genesisStatus.AlternativeRequiredBatteryLoadPercent != null &&
+ genesisStatus.AlternativeRequiredBatteryLoadPercent > (requirements.MaxDrainedBatteryLoadPercentAssembly * 0.5))
+ {
+ sbMSG.AppendLine($"{nameof(genesisStatus.AlternativeRequiredBatteryLoadPercent)}: " +
+ $"{genesisStatus.AlternativeRequiredBatteryLoadPercent} > " + $"{requirements.MaxDrainedBatteryLoadPercentAssembly}");
+ ret = false;
+ }
+ else sbMSG.AppendLine($"Alternative Batterieverbrauch Montage i.O.");
// max bat verbrauch - MaxDrainedBatteryLoadPercentAssembly
if (genesisStatus.DrainedBatteryLoadPercent > requirements.MaxDrainedBatteryLoadPercentAssembly)
@@ -1157,19 +1157,29 @@ namespace CordonelAssemblyLine.Model
if (rebootsCount > 0)
{
+ Log($"{_pcbId} hat {rebootsCount} mal neuegestarted!");
+
var messageBoxResult = MessageBox.Show(
$"{_pcbId} hat {rebootsCount}-mal neu gestartet!"
+ $"{Environment.NewLine}"
+ $"{Environment.NewLine}Möchten Sie fortfahren?"
- , $"PcbId: {_pcbId}"
+ , $"Rechenwerk: {_pcbId}"
, MessageBoxButton.YesNo
- , MessageBoxImage.Error
+ , MessageBoxImage.Warning
, MessageBoxResult.Yes
, MessageBoxOptions.ServiceNotification);
if (messageBoxResult == MessageBoxResult.No)
{
- Log($"{_pcbId} hat {rebootsCount} mal neuegestarted!");
+ lblS02Color = _progressError;
+ lblS03Color = _progressError;
+ _state = PickingStateMachine.MeterError;
+ }
+ else
+ {
+ lblS02Color = _progressDone;
+ lblS03Color = _progressWaiting;
+ _state = PickingStateMachine.GetOrderDetails;
}
}
}
@@ -1179,19 +1189,6 @@ namespace CordonelAssemblyLine.Model
}
lblS02Text = _pcbId;
-
- if (_state != PickingStateMachine.MeterError)
- {
- lblS02Color = _progressDone;
- lblS03Color = _progressWaiting;
- _state = PickingStateMachine.GetOrderDetails;
- }
- else
- {
- lblS02Color = _progressError;
- lblS03Color = _progressError;
- _state = PickingStateMachine.MeterError;
- }
}
catch (Exception e)
{
diff --git a/Common/CordonelAssemblyLine/Properties/Resources.Designer.cs b/Common/CordonelAssemblyLine/Properties/Resources.Designer.cs
index dd18a4c9..b8acb4a0 100644
--- a/Common/CordonelAssemblyLine/Properties/Resources.Designer.cs
+++ b/Common/CordonelAssemblyLine/Properties/Resources.Designer.cs
@@ -22,7 +22,7 @@ namespace CordonelAssemblyLine.Properties {
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "15.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- internal class Resources {
+ public class Resources {
private static global::System.Resources.ResourceManager resourceMan;
@@ -36,7 +36,7 @@ namespace CordonelAssemblyLine.Properties {
/// Returns the cached ResourceManager instance used by this class.
///
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
- internal static global::System.Resources.ResourceManager ResourceManager {
+ public static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("CordonelAssemblyLine.Properties.Resources", typeof(Resources).Assembly);
@@ -51,7 +51,7 @@ namespace CordonelAssemblyLine.Properties {
/// resource lookups using this strongly typed resource class.
///
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
- internal static global::System.Globalization.CultureInfo Culture {
+ public static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
diff --git a/Common/CordonelAssemblyLine/Properties/Resources.resx b/Common/CordonelAssemblyLine/Properties/Resources.resx
index af7dbebb..1af7de15 100644
--- a/Common/CordonelAssemblyLine/Properties/Resources.resx
+++ b/Common/CordonelAssemblyLine/Properties/Resources.resx
@@ -46,7 +46,7 @@
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
- : System.Serialization.Formatters.Binary.BinaryFormatter
+ : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
@@ -60,6 +60,7 @@
: and then encoded with base64 encoding.
-->
+
@@ -68,9 +69,10 @@
-
+
+
@@ -85,9 +87,10 @@
-
+
+
@@ -109,9 +112,9 @@
2.0
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
\ No newline at end of file
diff --git a/Common/CordonelAssemblyLine/Resources/sensus.png b/Common/CordonelAssemblyLine/Resources/sensus.png
new file mode 100644
index 00000000..3e9d6ed4
Binary files /dev/null and b/Common/CordonelAssemblyLine/Resources/sensus.png differ
diff --git a/Common/CordonelAssemblyLine/sensus.ico b/Common/CordonelAssemblyLine/sensus.ico
new file mode 100644
index 00000000..fd3c4f71
Binary files /dev/null and b/Common/CordonelAssemblyLine/sensus.ico differ