merge
This commit is contained in:
parent
e6801bb115
commit
58713d7b54
@ -171,7 +171,7 @@
|
||||
</site>
|
||||
<site name="MeterProcessState(2)" id="4">
|
||||
<application path="/" applicationPool="Clr4IntegratedAppPool">
|
||||
<virtualDirectory path="/" physicalPath="D:\Projekte\SENSUS_GitLab\LAA_PRODUCTION\Common\Service\MeterProcessState" />
|
||||
<virtualDirectory path="/" physicalPath="E:\REPO\lab\la_operations\laa_production\Common\Service\MeterProcessState" />
|
||||
</application>
|
||||
<bindings>
|
||||
<binding protocol="http" bindingInformation="*:50075:localhost" />
|
||||
|
||||
@ -7,7 +7,7 @@ namespace Xylem.Common.CommonCore.Configuration
|
||||
/// <summary>
|
||||
/// Urls for data base accesses
|
||||
/// </summary>
|
||||
public static class ServiceUrls
|
||||
public static class ServiceUrls_oldBackup
|
||||
|
||||
{
|
||||
|
||||
|
||||
@ -7,7 +7,7 @@ namespace Xylem.Common.CommonCore.Configuration
|
||||
/// <summary>
|
||||
/// Urls for data base accesses
|
||||
/// </summary>
|
||||
public static class ServiceUrls_NewBack
|
||||
public static class ServiceUrls
|
||||
{
|
||||
#if URI_OLD_DNS // this is defined in build configuration 'VPN_Debug' as the new DNS cannot be reached via VPN
|
||||
private const String ServerDns = "http://sla12iis01.emea.sensus.net";
|
||||
|
||||
@ -7,10 +7,10 @@ using CordonelPreadjustmentUi.Processes.Itinerary;
|
||||
using System.Threading;
|
||||
using static CordonelPreadjustmentUi.PreAdjustmentControl;
|
||||
using System.Threading.Tasks;
|
||||
using Xylem.Common.Hardware.WaterMeter.Genesis.Registers;
|
||||
using Xylem.Common.Logic.SoftwareAccessHelper;
|
||||
using Xylem.Common.CommonCore.Configuration;
|
||||
using Newtonsoft.Json;
|
||||
using Xylem.Common.Hardware.WaterMeter.Genesis.Registers;
|
||||
|
||||
namespace CordonelPreadjustmentUi.Processes.Actions
|
||||
{
|
||||
|
||||
@ -7,10 +7,11 @@ using CordonelPreadjustmentUi.Processes.Itinerary;
|
||||
using System.Threading;
|
||||
using static CordonelPreadjustmentUi.PreAdjustmentControl;
|
||||
using System.Threading.Tasks;
|
||||
using Xylem.Common.Hardware.WaterMeter.Genesis.Registers;
|
||||
|
||||
using Xylem.Common.Logic.SoftwareAccessHelper;
|
||||
using Xylem.Common.CommonCore.Configuration;
|
||||
using Newtonsoft.Json;
|
||||
using Xylem.Common.Hardware.WaterMeter.Genesis.Registers;
|
||||
|
||||
namespace CordonelPreadjustmentUi.Processes.Actions
|
||||
{
|
||||
|
||||
@ -14,7 +14,6 @@ using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Web.Helpers;
|
||||
using System.Web.Http;
|
||||
using Xylem.Common.Hardware.WaterMeter.Genesis.Registers.Json;
|
||||
using Xylem.Common.Logic.ServiceCore;
|
||||
|
||||
|
||||
|
||||
@ -453,10 +453,6 @@
|
||||
<Project>{0f646872-d8dc-4ee5-989f-d4c73f0ace3f}</Project>
|
||||
<Name>GenesisStatus</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\Hardware\WaterMeter\Genesis\Registers\Registers.csproj">
|
||||
<Project>{F4AAF7E6-7333-4284-B735-E32DEB076C64}</Project>
|
||||
<Name>Registers</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\Hardware\WaterMeter\WaterMeterCore\WaterMeterCore.csproj">
|
||||
<Project>{8203ABB8-38E5-472E-A742-33F38B7A74A6}</Project>
|
||||
<Name>WaterMeterCore</Name>
|
||||
|
||||
@ -352,46 +352,46 @@ namespace Xylem.Common.Ui.GenesisToolBox
|
||||
}
|
||||
else if (_currentGenesis.Region.Equals("NA"))
|
||||
{
|
||||
// var url = ServiceUrls.GetExportDataServiceUrl();
|
||||
// var retStr = LocalWebRequest.GetRequestWithError(url + _currentGenesis.PcbId, out var errorCode, 30000);
|
||||
// if (errorCode == HttpStatusCode.OK.GetHashCode())
|
||||
// {
|
||||
// var retExport = JsonConvert.DeserializeObject<List<PwdExport>>(retStr);
|
||||
// if (retExport.Count == 0)
|
||||
// {
|
||||
// sb.AppendLine(@"Export entry hasn't been found [E1]");
|
||||
// //request
|
||||
// sb.AppendLine(@"Export returns no password [E2]");
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// if (retExport.Count == 1)
|
||||
// {
|
||||
// sb.AppendLine(@"Found export entry");
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// sb.AppendLine(@"More than one export entry was found [E4]");
|
||||
// }
|
||||
var url = ServiceUrls.GetExportDataServiceUrl();
|
||||
var retStr = LocalWebRequest.GetRequestWithError(url + _currentGenesis.PcbId, out var errorCode, 30000);
|
||||
if (errorCode == HttpStatusCode.OK.GetHashCode())
|
||||
{
|
||||
var retExport = JsonConvert.DeserializeObject<List<PwdExport>>(retStr);
|
||||
if (retExport.Count == 0)
|
||||
{
|
||||
sb.AppendLine(@"Export entry hasn't been found [E1]");
|
||||
//request
|
||||
sb.AppendLine(@"Export returns no password [E2]");
|
||||
}
|
||||
else
|
||||
{
|
||||
if (retExport.Count == 1)
|
||||
{
|
||||
sb.AppendLine(@"Found export entry");
|
||||
}
|
||||
else
|
||||
{
|
||||
sb.AppendLine(@"More than one export entry was found [E4]");
|
||||
}
|
||||
|
||||
// foreach (var item in retExport)
|
||||
// {
|
||||
// if (item.PWD == pwdContainer.Password)
|
||||
// {
|
||||
// sb.AppendLine($"{item.ID} is Password LVL 8");
|
||||
// }
|
||||
// else if (item.PWD == pwdContainer.Skeleton)
|
||||
// {
|
||||
// sb.AppendLine($"{item.ID} is Skeleton [E3]");
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// sb.AppendLine($"{item.ID} is not LVL 8 or Skeleton [E3]");
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
foreach (var item in retExport)
|
||||
{
|
||||
if (item.PWD == pwdContainer.Password)
|
||||
{
|
||||
sb.AppendLine($"{item.ID} is Password LVL 8");
|
||||
}
|
||||
else if (item.PWD == pwdContainer.Skeleton)
|
||||
{
|
||||
sb.AppendLine($"{item.ID} is Skeleton [E3]");
|
||||
}
|
||||
else
|
||||
{
|
||||
sb.AppendLine($"{item.ID} is not LVL 8 or Skeleton [E3]");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
MessageBox.Show(sb.ToString());
|
||||
}// use skeletonKey
|
||||
|
||||
@ -748,7 +748,7 @@
|
||||
<Name>StreamingProtocol</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\Hardware\WaterMeter\Genesis\Registers\Registers.csproj">
|
||||
<Project>{f4aaf7e6-7333-4284-b735-e32deb076c64}</Project>
|
||||
<Project>{F4AAF7E6-7333-4284-B735-E32DEB076C64}</Project>
|
||||
<Name>Registers</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\Hardware\WaterMeter\WaterMeterCore\WaterMeterCore.csproj">
|
||||
|
||||
@ -138,10 +138,6 @@
|
||||
<Project>{04201E95-90A0-4B73-A72F-379739B2A3AE}</Project>
|
||||
<Name>GenesisCore</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\Hardware\WaterMeter\Genesis\Registers\Registers.csproj">
|
||||
<Project>{F4AAF7E6-7333-4284-B735-E32DEB076C64}</Project>
|
||||
<Name>Registers</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\Hardware\WaterMeter\WaterMeterCore\WaterMeterCore.csproj">
|
||||
<Project>{8203ABB8-38E5-472E-A742-33F38B7A74A6}</Project>
|
||||
<Name>WaterMeterCore</Name>
|
||||
|
||||
@ -140,10 +140,6 @@
|
||||
<Project>{AC434B18-4D7B-49BA-9AD5-0527C79E8297}</Project>
|
||||
<Name>GenesisPwd</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\..\Common\Hardware\WaterMeter\Genesis\Registers\Registers.csproj">
|
||||
<Project>{F4AAF7E6-7333-4284-B735-E32DEB076C64}</Project>
|
||||
<Name>Registers</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\..\Common\Logic.PrdoctionToProductMapper\Logic.ProductionToProductMapper.csproj">
|
||||
<Project>{d0c859d9-d55e-4e85-ac50-0ff31b1ce50d}</Project>
|
||||
<Name>Logic.ProductionToProductMapper</Name>
|
||||
|
||||
@ -128,10 +128,6 @@
|
||||
<Project>{2C6378C6-6BA1-4CEE-8992-8404D8369A90}</Project>
|
||||
<Name>GenesisFile</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\..\Common\Hardware\WaterMeter\Genesis\Registers\Registers.csproj">
|
||||
<Project>{F4AAF7E6-7333-4284-B735-E32DEB076C64}</Project>
|
||||
<Name>Registers</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\..\Common\Logic.PrdoctionToProductMapper\Logic.ProductionToProductMapper.csproj">
|
||||
<Project>{d0c859d9-d55e-4e85-ac50-0ff31b1ce50d}</Project>
|
||||
<Name>Logic.ProductionToProductMapper</Name>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user