merge
This commit is contained in:
@@ -14,5 +14,5 @@ using System.Reflection;
|
||||
//[assembly: AssemblyVersion("1.2.*.0")]
|
||||
|
||||
|
||||
[assembly: AssemblyVersion("2.2.5.*")]
|
||||
[assembly: AssemblyFileVersion("2.2.5.0")]
|
||||
[assembly: AssemblyVersion("2.2.7.*")]
|
||||
[assembly: AssemblyFileVersion("2.2.7.0")]
|
||||
@@ -155,7 +155,7 @@
|
||||
</site>
|
||||
<site name="MeterProcessState" id="2">
|
||||
<application path="/" applicationPool="Clr4IntegratedAppPool">
|
||||
<virtualDirectory path="/" physicalPath="C:\Users\drabesch_ro\Repo\lab\la_operations\laa_production\Common\Service\MeterProcessState" />
|
||||
<virtualDirectory path="/" physicalPath="D:\Projekte\SENSUS_GitLab\laa_production\Common\Service\MeterProcessState" />
|
||||
</application>
|
||||
<bindings>
|
||||
<binding protocol="http" bindingInformation="*:56011:localhost" />
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Globalization;
|
||||
using Xylem.Common.Hardware.WaterMeter.Genesis.DataPackages.MeasurementRecords;
|
||||
using Xylem.Common.Utils.Crc16Ccitt;
|
||||
@@ -138,7 +137,7 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.Protocols.StreamingProtocol
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
catch (Exception)
|
||||
{
|
||||
// ignored
|
||||
}
|
||||
@@ -349,7 +348,7 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.Protocols.StreamingProtocol
|
||||
|
||||
dataProtHRec.VolumeScaleRawPerMl = volumeRawScale != 0 ? volumeRawScale : DefaultVolumeScaleRawPerMl;
|
||||
dataProtHRec.VolumeFactorRawToQm = MilliLitersToQmFactor / dataProtHRec.VolumeScaleRawPerMl;
|
||||
//newdataProtHRec.OverflowVolumeCm = MaxAccuVolumeRaw * newdataProtHRec.VolumeFactorRawToQm;
|
||||
dataProtHRec.OverflowVolumeCm = MaxAccuVolumeRaw * dataProtHRec.VolumeFactorRawToQm;
|
||||
|
||||
//Calculate volume in cubic meters out of the raw volume
|
||||
dataProtHRec.DeltaVolumeQm = dataProtHRec.DeltaVolumeRaw * dataProtHRec.VolumeFactorRawToQm;
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
5ed75d99ee45ff67821090f1b3dbb001dd9e4fe3
|
||||
d6acafee485301268608cd081e3b8b166497c098
|
||||
|
||||
@@ -116,7 +116,13 @@ namespace Xylem.Common.Metrology.Measurements
|
||||
}
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="slot"></param>
|
||||
/// <param name="measurementRecordType"></param>
|
||||
/// <param name="intermediateUpdateTimeS"></param>
|
||||
/// <param name="channel"></param>
|
||||
public BaseMeasurement(Int32 slot, Type measurementRecordType, Int32 intermediateUpdateTimeS, Int32 channel = 0)
|
||||
{
|
||||
//build the update time in milliseconds, this will be needed for overflow detection of volume and time
|
||||
@@ -131,6 +137,11 @@ namespace Xylem.Common.Metrology.Measurements
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="o"></param>
|
||||
/// <param name="e"></param>
|
||||
public void RequestIntermediateRecordByTimer(Object o, ElapsedEventArgs e)
|
||||
{
|
||||
if (MeasurementState != MeasurementStates.IsRunning) return;
|
||||
@@ -138,6 +149,9 @@ namespace Xylem.Common.Metrology.Measurements
|
||||
OnActionStateHasChanged?.Invoke(o, e);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public void RequestIntermediateRecord()
|
||||
{
|
||||
if (MeasurementState != MeasurementStates.IsRunning) return;
|
||||
|
||||
@@ -3,7 +3,9 @@ using Xylem.Common.Metrology.Measurements.Consts;
|
||||
|
||||
namespace Xylem.Common.Metrology.Measurements
|
||||
{
|
||||
/// <inheritdoc />
|
||||
/// <summary>
|
||||
/// Calculate the measurements based on time, start- and stop-volume and overflow.
|
||||
/// </summary>
|
||||
public struct MeasurementResults
|
||||
{
|
||||
/// <inheritdoc cref="MeasurementResultsStates"/>
|
||||
|
||||
@@ -81,31 +81,31 @@
|
||||
<RowDefinition MinHeight="50"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition MinWidth="125" Width="1*"/>
|
||||
<ColumnDefinition MinWidth="148" Width="1*"/>
|
||||
<ColumnDefinition MinWidth="125" Width="4*" />
|
||||
<ColumnDefinition MinWidth="100" Width="1*"/>
|
||||
<ColumnDefinition MinWidth="125" Width="125*"/>
|
||||
<ColumnDefinition MinWidth="148" Width="158*"/>
|
||||
<ColumnDefinition MinWidth="125" Width="221*" />
|
||||
<ColumnDefinition MinWidth="100" Width="130*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Button Name="btnStart" IsEnabled="False" Content="Start" Click="ButtonBase_OnClick" HorizontalAlignment="Left" Height="58" Margin="236,0,0,2" VerticalAlignment="Bottom" Width="122" Grid.Row="0" Grid.Column="2" Grid.ColumnSpan="2" Grid.RowSpan="2" />
|
||||
<Button Name="btnStart" IsEnabled="False" Content="Start" Click="ButtonBase_OnClick" HorizontalAlignment="Left" Height="58" Margin="0,0,0,1" VerticalAlignment="Bottom" Width="122" Grid.Row="0" Grid.Column="3" Grid.RowSpan="2" />
|
||||
<Label Content="SerialNumber" HorizontalAlignment="Left" Margin="10,1,0,0" VerticalAlignment="Top" Grid.Row="0" Grid.Column="0" Height="26" Width="82" />
|
||||
<Label Content="RadioAdress" HorizontalAlignment="Left" Margin="10,2,0,0" VerticalAlignment="Top" Grid.Row="1" Grid.Column="0" Height="26" Width="76" />
|
||||
<Label Content="OrderNumber" HorizontalAlignment="Left" Margin="10,3,0,0" VerticalAlignment="Top" Grid.Row="2" Grid.Column="0" Height="26" Width="84" />
|
||||
|
||||
|
||||
<Label Content="" Name="lblSerialNumber" HorizontalAlignment="Left" Margin="10,1,0,0" VerticalAlignment="Top" Grid.Row="0" Grid.Column="1" Height="26" Width="128" />
|
||||
<Label Content="" Name="lblRadioAdress" HorizontalAlignment="Left" Margin="10,2,0,0" VerticalAlignment="Top" Grid.Row="1" Grid.Column="1" Height="26" Width="128" />
|
||||
<Label Content="" Name="lblOrderNumber" HorizontalAlignment="Left" Margin="10,3,0,0" VerticalAlignment="Top" Grid.Row="2" Grid.Column="1" Height="26" Width="128" />
|
||||
<Label Content="" Name="lblSerialNumber" HorizontalAlignment="Left" Margin="10,1,0,0" VerticalAlignment="Top" Grid.Row="0" Grid.Column="1" Height="26" Width="240" Grid.ColumnSpan="2" />
|
||||
<Label Content="" Name="lblRadioAdress" HorizontalAlignment="Left" Margin="10,2,0,0" VerticalAlignment="Top" Grid.Row="1" Grid.Column="1" Height="26" Width="221" Grid.ColumnSpan="2" />
|
||||
<Label Content="" Name="lblOrderNumber" HorizontalAlignment="Left" Margin="10,3,0,0" VerticalAlignment="Top" Grid.Row="2" Grid.Column="1" Height="26" Width="221" Grid.ColumnSpan="2" />
|
||||
|
||||
<Label Content="Status" HorizontalAlignment="Left" Margin="10,3,0,0" VerticalAlignment="Top" Grid.Row="3" Grid.Column="0" Height="26" Width="84" />
|
||||
<Label Content="Warte auf Zähler" Name="lblCurrentProcess" Margin="10,3,10,0" VerticalAlignment="Top" Grid.Row="3" Grid.Column="1" Grid.ColumnSpan="3" Height="26" />
|
||||
<Label Content="Warte auf Zähler" Name="lblCurrentProcess" Margin="10,3,10,0" VerticalAlignment="Top" Grid.Row="3" Grid.Column="1" Grid.ColumnSpan="3" Height="26" RenderTransformOrigin="0.607,0.577" />
|
||||
|
||||
<DataGrid Name="dgTotalProcess" ItemsSource="{Binding}" AutoGenerateColumns="True" HorizontalAlignment="Left" Margin="10,4,0,5" Width="253" Grid.Column="0" Grid.Row="4" Grid.ColumnSpan="2" Grid.RowSpan="2" SelectionMode="Single" IsReadOnly="True" CanUserReorderColumns="False" CanUserResizeColumns="False" CanUserResizeRows="False" CanUserSortColumns="False" IsEnabled="False"/>
|
||||
<DockPanel Name="dpSubProcess" Grid.Column="2" Height="220" Margin="10,4,0,0" Grid.Row="4" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Width="330" Grid.ColumnSpan="2"/>
|
||||
<DataGrid Name="dgTotalProcess" ItemsSource="{Binding}" AutoGenerateColumns="True" HorizontalAlignment="Left" Margin="10,4,0,5" Width="267" Grid.Column="0" Grid.Row="4" Grid.ColumnSpan="2" Grid.RowSpan="2" SelectionMode="Single" IsReadOnly="True" CanUserReorderColumns="False" CanUserResizeColumns="False" CanUserResizeRows="False" CanUserSortColumns="False" IsEnabled="False"/>
|
||||
<DockPanel Name="dpSubProcess" Grid.Column="2" Margin="18,12,8,8" Grid.Row="4" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Grid.ColumnSpan="2"/>
|
||||
|
||||
<TextBox Name="txtLog" Grid.Column="0" Grid.ColumnSpan="4" Grid.Row="7" TextWrapping="Wrap" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="0,0,73,10" />
|
||||
<ProgressBar Name="pbTotalProgress" Grid.Column="0" Grid.ColumnSpan="4" Grid.Row="6" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="0,0,73,0" />
|
||||
<ProgressBar Name="pbSubProgress" Grid.ColumnSpan="2" Grid.Column="2" Grid.Row="5" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="0,0,73,0"/>
|
||||
<Button x:Name="btnDetect" IsEnabled="false" Content="Detect" Click="BtnDetect_Click" HorizontalAlignment="Left" Height="58" Margin="109,0,0,1" VerticalAlignment="Bottom" Width="122" Grid.Row="0" Grid.Column="2" Grid.RowSpan="2" />
|
||||
<Button x:Name="btnDetect" IsEnabled="false" Content="Detect" Click="BtnDetect_Click" HorizontalAlignment="Left" Height="58" Margin="97,0,0,0" VerticalAlignment="Bottom" Width="114" Grid.Row="0" Grid.Column="2" Grid.RowSpan="2" />
|
||||
</Grid>
|
||||
|
||||
</DockPanel>
|
||||
|
||||
@@ -48,7 +48,17 @@ namespace Service.MeterProcessState.Controllers
|
||||
{
|
||||
return await Task.Run(() =>
|
||||
{
|
||||
var builder = new StringBuilder();
|
||||
var ret = OrderProgrammingParameters.GetProgrammingParameters(PcbID, GlobalConfig.connectionString.Value);
|
||||
foreach (var r in ret.Where(r => r.RegisterName == "SENSUSRADIO_EncryptionKey"))
|
||||
{
|
||||
foreach (var t in r.RegisterValue)
|
||||
{
|
||||
builder.Append(t.ToString("x2"));
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
return Request.CreateResponse(HttpStatusCode.OK, ret);
|
||||
|
||||
@@ -76,6 +86,11 @@ namespace Service.MeterProcessState.Controllers
|
||||
var radio = OrderRadioParameter.GetRadioPramas(PcbID, GlobalConfig.connectionString.Value, withPressure ? "p" : "");
|
||||
if (radio != null)
|
||||
{
|
||||
var builder = new StringBuilder();
|
||||
foreach (var t in radio.EncryptionKey)
|
||||
{
|
||||
builder.Append(t.ToString("x2"));
|
||||
}
|
||||
return Request.CreateResponse(HttpStatusCode.OK, radio);
|
||||
}
|
||||
else
|
||||
|
||||
@@ -181,7 +181,7 @@ namespace Xylem.Common.Service.MeterProcessState.Controllers
|
||||
catch (Exception)
|
||||
{
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
var logon = from p in o["TestStepResults"]["$values"] select p;
|
||||
@@ -222,14 +222,14 @@ namespace Xylem.Common.Service.MeterProcessState.Controllers
|
||||
catch (Exception e)
|
||||
{
|
||||
return new PwProcessorId(e.Message + e.StackTrace);
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
return new PwProcessorId();
|
||||
|
||||
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
@@ -451,6 +451,12 @@ namespace Xylem.Common.Service.MeterProcessState.Controllers
|
||||
//pw lvl
|
||||
passwords.Keys.Insert(2, new Key() { Index = 2, KeyKey = result.Skeleton });
|
||||
|
||||
var pwdLVL8 = "";
|
||||
if (passwords.Keys.Count > 7)
|
||||
{
|
||||
pwdLVL8 = passwords.Keys[7].KeyKey.Substring(0, 12);
|
||||
}
|
||||
|
||||
foreach (var keyLVL in passwords.Keys)
|
||||
{
|
||||
using (System.Security.Cryptography.SHA1Managed sha1 = new System.Security.Cryptography.SHA1Managed())
|
||||
@@ -469,6 +475,8 @@ namespace Xylem.Common.Service.MeterProcessState.Controllers
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
return Request.CreateResponse(HttpStatusCode.OK, await Task.Run(() =>
|
||||
{
|
||||
return result;
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
0d85a5b3a7561b41163c20e5dc7713bcd0d65555
|
||||
8b50223304bf33a04e89f81c8416e46bbd1ea8d8
|
||||
|
||||
@@ -97,6 +97,11 @@ namespace Xylem.ServiceFwUpdate.Ui.FwUpdateBuilder.Const
|
||||
/// </summary>
|
||||
UserRegistration,
|
||||
|
||||
/// <summary>
|
||||
/// Updatedata tables
|
||||
/// </summary>
|
||||
UpdateDataTables,
|
||||
|
||||
/// <summary>
|
||||
/// Stop entire update process
|
||||
/// </summary>
|
||||
|
||||
@@ -805,7 +805,6 @@
|
||||
resources.ApplyResources(this.tbxCustomerName, "tbxCustomerName");
|
||||
this.tbxCustomerName.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.tbxCustomerName.Name = "tbxCustomerName";
|
||||
this.tbxCustomerName.ReadOnly = true;
|
||||
this.tbxCustomerName.ShortcutsEnabled = false;
|
||||
this.tbxCustomerName.TabStop = false;
|
||||
//
|
||||
@@ -951,6 +950,7 @@
|
||||
// TmrDbAccess
|
||||
//
|
||||
this.TmrDbAccess.Enabled = true;
|
||||
this.TmrDbAccess.Interval = 250;
|
||||
this.TmrDbAccess.Tick += new System.EventHandler(this.TmrProgressUpdate_Tick);
|
||||
//
|
||||
// FrmFwUpdateBuilder
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user