requirements class addded, todo: get pwd order nr

This commit is contained in:
Stoyan Zlatev
2025-01-10 14:57:59 +01:00
parent 73c9fa90bc
commit 01c375b62e
5 changed files with 107 additions and 8 deletions
@@ -1,4 +1,5 @@
using Newtonsoft.Json;
using Common.Logic.Extensions.SQL;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Linq;
using System;
@@ -345,6 +346,16 @@ namespace Xylem.Common.Service.MeterProcessState.Controllers
private MeterPw getKeys(String Token, String orderNumber, String radioAdress)
{
//var _orderNumber = SQLConnection
// .CreateSQLConnection(GlobalConfig.connectionString.Value)
// .CreateCommand("SELECT orderNumber FROM Genesis_PcbPassword WHERE radioAdress = @radioAdress")
// .SetParameter(nameof(radioAdress), radioAdress)
// .FirstOrDefault(x => x.GetValue<string>(0));
//if (!string.IsNullOrWhiteSpace(_orderNumber) && orderNumber != _orderNumber)
//{
// orderNumber = _orderNumber;
//}
ServicePointManager.ServerCertificateValidationCallback += (sender, certificate, chain, sslPolicyErrors) =>
{