added extra Waste validation
This commit is contained in:
parent
6a5e719384
commit
71000a4c24
@ -271,6 +271,12 @@ namespace bsmd.database
|
|||||||
|
|
||||||
if (this.WasteAmountGeneratedTillNextPort_MTQ > 10000)
|
if (this.WasteAmountGeneratedTillNextPort_MTQ > 10000)
|
||||||
violations.Add(RuleEngine.CreateViolation(ValidationCode.IMPLAUSIBLE, "Waste generated till next port", null, this.Title, this.Identifier, this.Tablename));
|
violations.Add(RuleEngine.CreateViolation(ValidationCode.IMPLAUSIBLE, "Waste generated till next port", null, this.Title, this.Identifier, this.Tablename));
|
||||||
|
|
||||||
|
if(this.WasteDisposalAmount_MTQ > this.WasteCapacity_MTQ)
|
||||||
|
violations.Add(RuleEngine.CreateViolation(ValidationCode.IMPLAUSIBLE, "Disposal greater than capacity!", null, this.Title, this.Identifier, this.Tablename));
|
||||||
|
|
||||||
|
if((this.WasteAmountGeneratedTillNextPort_MTQ + this.WasteAmountRetained_MTQ) > this.WasteCapacity_MTQ)
|
||||||
|
violations.Add(RuleEngine.CreateViolation(ValidationCode.IMPLAUSIBLE, "Waste generated+retained greater than capacity!", null, this.Title, this.Identifier, this.Tablename));
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user