protected static class WorkReportController.NaviPeriodConverter extends ConvertForJsonSource
本サブクラスでは、以下の書式変換を行う。
項目名 | 書式 |
締め期間開始日 | システムの日付時刻形式 |
締め期間終了日 | システムの日付時刻形式 |
dateHelper
コンストラクタと説明 |
---|
NaviPeriodConverter(boolean notAssignWsaFlag)
コンストラクタ.
|
NaviPeriodConverter(Timestamp currentStartDate)
コンストラクタ.
|
修飾子とタイプ | メソッドと説明 |
---|---|
protected Map<String,String> |
formatFormatedValue(Map<String,Object> map,
Stack<String> fldNameStack)
返却値(書式化)の書式変換.
|
protected Map<String,Object> |
formatPlainValue(Map<String,Object> map,
Stack<String> fldNameStack)
返却値(通常)の書式変換.
|
dtoConvert, linkedHashMapConvert, listConvert, mapConvert, mapListConvert
public NaviPeriodConverter(Timestamp currentStartDate)
currentStartDate
- 表示中の締め期間であることを判定する日付public NaviPeriodConverter(boolean notAssignWsaFlag)
notAssignWsaFlag
- 検索基準日時点で勤務体系にアサインされていないprotected Map<String,Object> formatPlainValue(Map<String,Object> map, Stack<String> fldNameStack)
ConvertForJsonSource
主に入力フィールド(JSPのテキストボックス等)に表示する際の値を返却してください。
書式変換後の値はString型で返却し、書式変換が不要な値はそのままの型で返却してください。
返却後、String型でない値は、本クラスで定義してあるデフォルト書式に変換されます。
デフォルトの書式変換は以下の通り
BigDecimal.toPlainString()
を行います。BigInteger.toString()
を行います。formatPlainValue
クラス内 ConvertForJsonSource
map
- 対象データfldNameStack
- fldNameStack フィールド名のスタックprotected Map<String,String> formatFormatedValue(Map<String,Object> map, Stack<String> fldNameStack)
主に表示フィールド(JSPのラベル等)に表示する際の値を返却してください。
書式変換後の値はString型で返却し、書式変換が不要な値はnullで返却してください。
nullで返却された値は、jp.co.slcs.kaiden.v2.base.foundation.util.ConvertForJsonSource.formatPlainValue(Map
で変換された値がそのまま表示項目として利用されます。
ConvertForJsonSource
では、entryTs(登録日時)、renewTs(更新日時)に関して、iAP個人設定の日付:標準表示+時刻:タイムスタンプ表示に変換します。
必要に応じてオーバーライドして、書式変換してください。
formatFormatedValue
クラス内 ConvertForJsonSource
map
- 対象データfldNameStack
- fldNameStack フィールド名のスタックCopyright © 2024 Sumitomo Life Information Systems Co., Ltd. All Rights Reserved.