SensusOracle : UID and Pwd invisible, CreateWztypIfMissing, VtAuftragPd, VtPruefpunktSollSd.Qbezeichnung max 8 char, more logging

This commit is contained in:
Milan Hanajik
2021-12-09 17:12:51 +01:00
parent cd84c82475
commit 2c00ed6dc4
10 changed files with 419 additions and 85 deletions
+55 -18
View File
@@ -62,14 +62,14 @@ namespace TBF.Rig.Output.DB.SensusOracle
public void InitializeAll()
{
ProductionDataSource = "STARA01.WORLD";
ProductionUserId = "deltachef";
ProductionPassword = "deltachef";
ProductionUserId = "abc";
ProductionPassword = "def";
QualityDataSource = "STARA01.WORLD";
QualityUserId = "deltaqual";
QualityPassword = "test";
QualityUserId = "ghi";
QualityPassword = "jkl";
TestDataSource = "STARA_TEST";
TestUserId = "deltachef";
TestPassword = "deltachef";
TestUserId = "mno";
TestPassword = "pqr";
ProducerId = 4;
TestBenchGroupId = 18000;
}
@@ -101,13 +101,13 @@ namespace TBF.Rig.Output.DB.SensusOracle
switch (i)
{
case 0: return ProductionDataSource;
case 1: return ProductionUserId;
case 1: return AkaPwd;
case 2: return AkaPwd;
case 3: return QualityDataSource;
case 4: return QualityUserId;
case 4: return AkaPwd;
case 5: return AkaPwd;
case 6: return TestDataSource;
case 7: return TestUserId;
case 6: return TestDataSource;
case 7: return AkaPwd;
case 8: return AkaPwd;
case 9: return ProducerId.ToString();
case 10: return TestBenchGroupId.ToString();
@@ -126,8 +126,19 @@ namespace TBF.Rig.Output.DB.SensusOracle
{
switch (i)
{
case 0: ProductionDataSource = str; return CfgUpdateFlags.RestartRqrd;
case 1: ProductionUserId = str; return CfgUpdateFlags.RestartRqrd;
case 0:
ProductionDataSource = str;
return CfgUpdateFlags.RestartRqrd;
case 1:
if (!str.Contains(AkaPwd1))
{
ProductionUserId = str;
return CfgUpdateFlags.RestartRqrd;
}
else
{
return CfgUpdateFlags.None;
}
case 2:
if (!str.Contains(AkaPwd1))
{
@@ -138,8 +149,19 @@ namespace TBF.Rig.Output.DB.SensusOracle
{
return CfgUpdateFlags.None;
}
case 3: QualityDataSource = str; return CfgUpdateFlags.RestartRqrd;
case 4: QualityUserId = str; return CfgUpdateFlags.RestartRqrd;
case 3:
QualityDataSource = str;
return CfgUpdateFlags.RestartRqrd;
case 4:
if (!str.Contains(AkaPwd1))
{
QualityUserId = str;
return CfgUpdateFlags.RestartRqrd;
}
else
{
return CfgUpdateFlags.None;
}
case 5:
if (!str.Contains(AkaPwd1))
{
@@ -150,8 +172,19 @@ namespace TBF.Rig.Output.DB.SensusOracle
{
return CfgUpdateFlags.None;
}
case 6: TestDataSource = str; return CfgUpdateFlags.RestartRqrd;
case 7: TestUserId = str; return CfgUpdateFlags.RestartRqrd;
case 6:
TestDataSource = str;
return CfgUpdateFlags.RestartRqrd;
case 7:
if (!str.Contains(AkaPwd1))
{
TestUserId = str;
return CfgUpdateFlags.RestartRqrd;
}
else
{
return CfgUpdateFlags.None;
}
case 8:
if (!str.Contains(AkaPwd1))
{
@@ -162,8 +195,12 @@ namespace TBF.Rig.Output.DB.SensusOracle
{
return CfgUpdateFlags.None;
}
case 9: ProducerId = int.Parse(str); return CfgUpdateFlags.RestartRqrd;
case 10: TestBenchGroupId = int.Parse(str); return CfgUpdateFlags.RestartRqrd;
case 9:
ProducerId = int.Parse(str);
return CfgUpdateFlags.RestartRqrd;
case 10:
TestBenchGroupId = int.Parse(str);
return CfgUpdateFlags.RestartRqrd;
default:
return CfgUpdateFlags.None;
}