Aus >100.000 Werten errors statt violations machen
This commit is contained in:
parent
ef65f2545f
commit
12e65a27e4
@ -18,11 +18,15 @@ namespace bsmd.database
|
||||
public class BRKA : DatabaseEntity, ISublistElement
|
||||
{
|
||||
|
||||
#region Construction
|
||||
|
||||
public BRKA()
|
||||
{
|
||||
this.tablename = "[dbo].[BKRA]";
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Properties
|
||||
|
||||
[ShowReport]
|
||||
@ -124,7 +128,7 @@ namespace bsmd.database
|
||||
{
|
||||
if(this.BunkerFuelQuantity_TNE.HasValue && this.BunkerFuelQuantity_TNE > 10000)
|
||||
{
|
||||
violations.Add(RuleEngine.CreateViolation(ValidationCode.IMPLAUSIBLE, "Bunker quantity too high?", null, this.Title, this.Identifier, "BKRA"));
|
||||
errors.Add(RuleEngine.CreateError(ValidationCode.IMPLAUSIBLE, "Bunker quantity too high?", null, this.Title, this.Identifier, "BKRA"));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -18,11 +18,15 @@ namespace bsmd.database
|
||||
public class BRKD : DatabaseEntity, ISublistElement
|
||||
{
|
||||
|
||||
#region Construction
|
||||
|
||||
public BRKD()
|
||||
{
|
||||
this.tablename = "[dbo].[BKRD]";
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Properties
|
||||
|
||||
[ShowReport]
|
||||
@ -123,7 +127,7 @@ namespace bsmd.database
|
||||
{
|
||||
if (this.BunkerFuelQuantity_TNE.HasValue && this.BunkerFuelQuantity_TNE > 10000)
|
||||
{
|
||||
violations.Add(RuleEngine.CreateViolation(ValidationCode.IMPLAUSIBLE, "Bunker quantity too high?", null, this.Title, this.Identifier, "BKRD"));
|
||||
errors.Add(RuleEngine.CreateError(ValidationCode.IMPLAUSIBLE, "Bunker quantity too high?", null, this.Title, this.Identifier, "BKRD"));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user