@Component public class SumApproximateExpectedValidator extends KaidenAbstractValidator implements KaidenValidatorIF
ARGS_DELIMITER, contextHelper, dateHelper, propertyHelper, validateMapHelper
コンストラクタと説明 |
---|
SumApproximateExpectedValidator()
コンストラクタ.
|
修飾子とタイプ | メソッドと説明 |
---|---|
KaidenValidateResult |
executeValidate(Map<String,Object> valueMap,
String fieldKey,
String[] args,
Map<String,String> surfaces)
バリデート処理.
|
boolean |
isValid(BigDecimal sumApproximateExpected,
BigDecimal expenseAmount,
int advanceCount)
一致判定処理.
|
anyValueToSingleString, argsLengthCheck, chkPattern, getIntValue, getSurface, inputCheck, makeNewValidateResult, makeNewValidateResult, setErrorDetail
public boolean isValid(BigDecimal sumApproximateExpected, BigDecimal expenseAmount, int advanceCount)
事前申請書行数 が1行以上であり、概算費用/精算予定額の合計と費用合計額が同値の場合は判定:真とします。
sumApproximateExpected
- 概算費用/精算予定額の合計expenseAmount
- 費用合計額advanceCount
- 事前申請書行数public KaidenValidateResult executeValidate(Map<String,Object> valueMap, String fieldKey, String[] args, Map<String,String> surfaces)
KaidenValidateExecutor
のexecuteAll
から実行されるバリデート処理です。
executeValidate
インタフェース内 KaidenValidatorIF
valueMap
- 値fieldKey
- フィールドキーargs
- アーギュメント文字列surfaces
- 表層定義Copyright © 2024 Sumitomo Life Information Systems Co., Ltd. All Rights Reserved.