/** * ResultDataを取得します。(一覧データ) <br> * * @param obj * @return */ @Override protected Object getResultData(EipTCommonCategory obj) { EipTCommonCategory record = obj; CommonCategoryResultData rd = new CommonCategoryResultData(); rd.initField(); rd.setCommonCategoryId(record.getCommonCategoryId().longValue()); rd.setName(ALCommonUtils.compressString(record.getName(), getStrLength())); rd.setCreateUserId(record.getCreateUserId().longValue()); return rd; }
/** * ResultDataを取得します。(詳細データ) <br> * * @param obj * @return */ @Override protected Object getResultDataDetail(EipTCommonCategory obj) { EipTCommonCategory record = obj; CommonCategoryResultData rd = new CommonCategoryResultData(); rd.initField(); rd.setCommonCategoryId(record.getCommonCategoryId().longValue()); rd.setName(record.getName()); rd.setNote(record.getNote()); rd.setCreateUserId(record.getCreateUserId().intValue()); rd.setCreateDate(ALDateUtil.format(record.getCreateDate(), "yyyy年M月d日")); rd.setUpdateDate(ALDateUtil.format(record.getUpdateDate(), "yyyy年M月d日")); return rd; }