@Component @Scope(value="prototype") public class DeductionMappingLogic extends AbstractMasterMaintenanceLogic
修飾子とタイプ | フィールドと説明 |
---|---|
jp.co.slcs.kaiden.v2.product_labormgr.foundation.model.service.K31mDeductionAttService |
k31mDeductionAttService
K31mDeductionAttService.
|
LaborDateHelper |
laborDateHelper
LaborDateHelper.
|
NotEqualValidator |
notEqualValidator
NotEqualValidator.
|
RequiredValidator |
requiredValidator
RequiredValidator.
|
static String |
SELECT_VIEW_WITH_DEDUCTION_SQLFILE_NM
休憩・控除・時間年休マッピング検索用SQLファイル名.
|
WsAgreementConductor |
wsAgreementConductor
WsAgreementConductor.
|
WsAgreementManager |
wsAgreementManager
WsAgreementManager.
|
WsAgreementTermManager |
wsAgreementTermManager
WsAgreementTermManager.
|
contextHelper, dateHelper, propertyHelper
コンストラクタと説明 |
---|
DeductionMappingLogic() |
修飾子とタイプ | メソッドと説明 |
---|---|
protected List<KaidenValidateResult> |
checkDetailDuplicate(List<jp.co.slcs.kaiden.v2.product_labormgr.foundation.model.entity.K31mDeductionAtt> details)
明細重複チェック.
|
LogicResultDto |
entryAjax(DeductionMappingForm form,
String msgId)
休憩・控除・時間年休マッピングデータを登録.
|
protected List<String> |
getI18nTargetField()
国際化対応するフィールドをサブクラスより返却.
|
protected Map<String,Object> |
getInputData(AbstractMasterMaintenanceForm form)
登録・更新用の入力データをサブクラスより返却.
|
protected String[] |
getKeywordSearchTargetCol()
キーワード検索対象カラムをサブクラスより返却.
|
protected MasterManager<? extends KaidenDto> |
getManager()
マネージャクラスをサブクラスより返却.
|
protected PeriodDto |
getPeriod(Date searchCriteriaDate,
String lbrCloseCycleCd,
int lbrYearStartD,
String lbrWeekStartCd)
検索基準日、締め期間単位コードなどから締め期間を算出.
|
protected AuthorityCriteriaDto |
getReadAuthCriteria()
参照権用の会社認可条件を返却.
|
protected Map<String,String> |
getSurfaces()
登録・更新時のサーバーサイドバリデーションに利用するラベル定義をサブクラスより返却.
|
protected List<ValidateDefsDto> |
getValidateDefsDtoList()
登録用の検証定義リストを返却します.
|
protected AuthorityCriteriaDto |
getWriteAuthCriteria()
更新権用の会社認可条件を返却.
|
protected KaidenValidateResult |
makeValidResult(String fieldNmKey,
String mainMsgKey,
Object... args)
バリデータ結果格納.
|
LogicResultDto |
removeAjax(DeductionMappingForm form,
String msgId)
休憩・控除・時間年休マッピングデータを削除.
|
LogicResultDto |
searchAjax(DeductionMappingForm form)
一覧検索.
|
entryAjax, entryAjax, getSearchAjaxCriteria, removeAjax, removeAjax, renewAjax, renewAjax, searchAjax, searchAjax, selectAjax, selectAjax, toDisabledAjax, toDisabledAjax, toEnabledAjax, toEnabledAjax
public static final String SELECT_VIEW_WITH_DEDUCTION_SQLFILE_NM
@Autowired public jp.co.slcs.kaiden.v2.product_labormgr.foundation.model.service.K31mDeductionAttService k31mDeductionAttService
@Autowired public WsAgreementManager wsAgreementManager
@Autowired public WsAgreementTermManager wsAgreementTermManager
@Autowired public LaborDateHelper laborDateHelper
@Autowired public RequiredValidator requiredValidator
@Autowired public NotEqualValidator notEqualValidator
@Autowired public WsAgreementConductor wsAgreementConductor
@Transactional public LogicResultDto searchAjax(DeductionMappingForm form)
form内の以下のフィールドを利用します
以下の条件で会社の認可設定を検証します
form
- 画面から送信された値@Transactional(rollbackFor=java.lang.Exception.class) public LogicResultDto entryAjax(DeductionMappingForm form, String msgId) throws KaidenDuplicationEntryException, KaidenHaventAuthorityToCompanyException, KaidenNotFoundTargetDataException, KaidenOptimisticLockException
任意の処理成功メッセージを設定できます。
form
- 画面から送信された値 ※deductionSettingJsonのみ利用msgId
- 処理成功後に表示するメッセージKaidenHaventAuthorityToCompanyException
- 権限のない会社への更新KaidenDuplicationEntryException
- データ重複KaidenNotFoundTargetDataException
- 対象データが見つからないKaidenOptimisticLockException
- 更新対象データが見つからない/楽観排他エラー@Transactional(rollbackFor=java.lang.Exception.class) public LogicResultDto removeAjax(DeductionMappingForm form, String msgId) throws KaidenDuplicationEntryException, KaidenHaventAuthorityToCompanyException, KaidenNotFoundTargetDataException, KaidenOptimisticLockException
任意の処理成功メッセージを設定できます。
form
- 画面から送信された値msgId
- 処理成功後に表示するメッセージKaidenHaventAuthorityToCompanyException
- 権限のない会社への更新KaidenDuplicationEntryException
- データ重複KaidenNotFoundTargetDataException
- 対象データが見つからないKaidenOptimisticLockException
- 更新対象データが見つからない/楽観排他エラーprotected KaidenValidateResult makeValidResult(String fieldNmKey, String mainMsgKey, Object... args)
バリデーションチェックのエラー結果を格納します。
fieldNmKey
- チェック対象フィールド名mainMsgKey
- メインメッセージキーargs
- 置換文字列の配列protected MasterManager<? extends KaidenDto> getManager()
getManager
クラス内 AbstractMasterMaintenanceLogic
protected String[] getKeywordSearchTargetCol()
getKeywordSearchTargetCol
クラス内 AbstractMasterMaintenanceLogic
protected List<String> getI18nTargetField()
getI18nTargetField
クラス内 AbstractMasterMaintenanceLogic
protected Map<String,Object> getInputData(AbstractMasterMaintenanceForm form)
getInputData
クラス内 AbstractMasterMaintenanceLogic
form
- 画面から送信された値protected Map<String,String> getSurfaces()
■設定値一覧
設定キー | 設定値 |
companyCd | 会社 |
wsAgreementCd | 勤務体系コード |
deductionCd | 休憩・控除・時間年休 |
getSurfaces
クラス内 AbstractMasterMaintenanceLogic
protected AuthorityCriteriaDto getReadAuthCriteria()
protected AuthorityCriteriaDto getWriteAuthCriteria()
protected PeriodDto getPeriod(Date searchCriteriaDate, String lbrCloseCycleCd, int lbrYearStartD, String lbrWeekStartCd)
searchCriteriaDate
- 検索基準日lbrCloseCycleCd
- 締め期間単位コードlbrYearStartD
- 年度開始日lbrWeekStartCd
- 起算曜日コードprotected List<KaidenValidateResult> checkDetailDuplicate(List<jp.co.slcs.kaiden.v2.product_labormgr.foundation.model.entity.K31mDeductionAtt> details)
details
- 明細データprotected List<ValidateDefsDto> getValidateDefsDtoList()
Copyright © 2024 Sumitomo Life Information Systems Co., Ltd. All Rights Reserved.