csdIdent parsed and sent for csd programming parameters
This commit is contained in:
@@ -5,6 +5,7 @@ using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using Xylem.Common.Hardware.WaterMeter.Genesis.Registers;
|
||||
using Xylem.Common.Logic.ProductionOrderCore.Csd;
|
||||
using Xylem.Common.Logic.ProductionOrderCore.Vako;
|
||||
@@ -158,6 +159,21 @@ namespace Xylem.Common.Logic.ProductionOrderCore.OrderData
|
||||
ident += vakoData.KeyValues.First(k => k.Key == "Nennweite").Charcode;
|
||||
}
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(csdIdent))
|
||||
{
|
||||
var csdTokens = csdIdent.Split(new[] { ' ' }, StringSplitOptions.RemoveEmptyEntries);
|
||||
|
||||
if (csdTokens.Length >= 2)
|
||||
{
|
||||
var csdNr = csdTokens[1];
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(csdNr))
|
||||
{
|
||||
csdIdent = csdNr;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var retStr = LocalWebRequest.GetRequest($"http://sla12iis01/csdcore/csdservice/getstampings?CsdIdent={csdIdent}&GroupId=1&ProductIdent={ident}&ProductDn={rawVako.Dn}&ShowOnlyValidStampings=0", 8000);
|
||||
var retListRealCsd = JsonConvert.DeserializeObject<List<CsdParameterResult>>(retStr);
|
||||
if (retListRealCsd != null && retListRealCsd.Any())
|
||||
|
||||
@@ -726,8 +726,7 @@ namespace Xylem.Common.Service.MeterProcessState.Controllers
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
dt = dataacces.ExecuteQuery(sb.ToString());
|
||||
|
||||
@@ -1435,7 +1434,7 @@ namespace Xylem.Common.Service.MeterProcessState.Controllers
|
||||
, MAX(c1.ID) AS CalId1
|
||||
, MAX(c2.ID) AS CalId2
|
||||
, MAX(c3.ID) AS CalId3
|
||||
FROM MapPcbIdToSerialNumber AS _map
|
||||
FROM MapPcbIdToSerialNumber AS _map
|
||||
LEFT JOIN GenesisMeterRegisterHistory AS c1
|
||||
ON c1.Address = '0F-0D'
|
||||
AND c1.Value IS NOT NULL
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig>
|
||||
<NameOfLastUsedPublishProfile>C:\Users\drabesch_ro\Repo\lab\la_operations\laa_production\Common\Service\MeterProcessState\Properties\PublishProfiles\a.pubxml</NameOfLastUsedPublishProfile>
|
||||
<NameOfLastUsedPublishProfile>a</NameOfLastUsedPublishProfile>
|
||||
<UseIISExpress>true</UseIISExpress>
|
||||
<Use64BitIISExpress />
|
||||
<IISExpressSSLPort />
|
||||
|
||||
Reference in New Issue
Block a user