SensusOracle.Database synchronized with 2.26/27, TestBenchGroupId, idBenutzer, ver. 3.1.1800
This commit is contained in:
@@ -34,6 +34,7 @@ namespace TBF.Rig.Output.DB.SensusOracle
|
||||
public string TestUserId;
|
||||
public string TestPassword;
|
||||
public int ProducerId;
|
||||
public int TestBenchGroupId;
|
||||
|
||||
/// <summary> Procedure parameters </summary>
|
||||
[XmlIgnore]
|
||||
@@ -70,6 +71,7 @@ namespace TBF.Rig.Output.DB.SensusOracle
|
||||
TestUserId = "deltachef";
|
||||
TestPassword = "deltachef";
|
||||
ProducerId = 4;
|
||||
TestBenchGroupId = 18000;
|
||||
}
|
||||
|
||||
string[] paramNames = new string[]
|
||||
@@ -84,6 +86,7 @@ namespace TBF.Rig.Output.DB.SensusOracle
|
||||
"Test DB User ID",
|
||||
"Test DB Password",
|
||||
"Producer ID",
|
||||
"Test bench group ID",
|
||||
};
|
||||
public string ParamName(int i) { return paramNames[i]; }
|
||||
public int ParamsCount() { return paramNames.Length; }
|
||||
@@ -107,12 +110,15 @@ namespace TBF.Rig.Output.DB.SensusOracle
|
||||
case 7: return TestUserId;
|
||||
case 8: return AkaPwd;
|
||||
case 9: return ProducerId.ToString();
|
||||
case 10: return TestBenchGroupId.ToString();
|
||||
default:
|
||||
return string.Format("{0}: Production={1} Quality={2} Test={3}",
|
||||
return string.Format("{0}: Production={1} Quality={2} Test={3} anbid={4} group={5}",
|
||||
Name,
|
||||
string.IsNullOrEmpty(ProductionDataSource) ? string.Empty : ProductionDataSource,
|
||||
string.IsNullOrEmpty(QualityDataSource) ? string.Empty : QualityDataSource,
|
||||
string.IsNullOrEmpty(TestDataSource) ? string.Empty : TestDataSource);
|
||||
string.IsNullOrEmpty(TestDataSource) ? string.Empty : TestDataSource,
|
||||
ProducerId,
|
||||
TestBenchGroupId);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -157,6 +163,7 @@ 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;
|
||||
default:
|
||||
return CfgUpdateFlags.None;
|
||||
}
|
||||
@@ -182,6 +189,9 @@ namespace TBF.Rig.Output.DB.SensusOracle
|
||||
case 9:
|
||||
if (int.TryParse(str, out idummy) && idummy > 0 && idummy <= 9) return true;
|
||||
break;
|
||||
case 10:
|
||||
if (int.TryParse(str, out idummy) && idummy > 0 && (idummy % 100) == 0) return true;
|
||||
break;
|
||||
default:
|
||||
message = "Invalid index";
|
||||
return false;
|
||||
@@ -202,6 +212,8 @@ namespace TBF.Rig.Output.DB.SensusOracle
|
||||
prms.TestDataSource = this.TestDataSource;
|
||||
prms.TestUserId = this.TestUserId;
|
||||
prms.TestPassword = this.TestPassword;
|
||||
prms.ProducerId = this.ProducerId;
|
||||
prms.TestBenchGroupId = this.TestBenchGroupId;
|
||||
}
|
||||
|
||||
public IParamsProvider Clone()
|
||||
|
||||
Reference in New Issue
Block a user