@Component @Scope(value="prototype") public class WorkReportPdfLogic extends Object
修飾子とタイプ | クラスと説明 |
---|---|
static class |
WorkReportPdfLogic.WorkReportPdfDto
複数ユーザを一枚のPDFに出力する際に利用するDTO.
|
修飾子とタイプ | フィールドと説明 |
---|---|
CompanyManagerHelper |
companyManagerHelper
CompanyManagerHelper.
|
CompanySettingsHelper |
companySettingsHelper
CompanySettingsHelper.
|
ContextHelper |
contextHelper
ContextHelper.
|
DateHelper |
dateHelper
DateHelper.
|
protected static int |
ITEM_TYPE_LEAVE_NAME_MAX_LEN
休暇種別名の出力最大桁数.
|
ItemManager |
itemManager
ItemManager.
|
jp.co.slcs.kaiden.v2.product_labormgr.foundation.model.service.K31mWsMappingService |
k31mWsMappingService
K31mWsMappingService.
|
KlgManager |
klgManager
KlgManager.
|
LaborEmployeeManager |
laborEmployeeManager
LaborEmployeeManager.
|
LeaveSummaryLogic |
leaveSummaryLogic
LeaveSummaryLogic.
|
protected static String |
LOCALE_PREFIX
PDF出力のロケール設定のプリフィックス.
|
protected static String |
LOCALE_SURFIX_EN_CODING
PDF出力のロケール設定のサフィックス.
|
protected static String |
LOCALE_SURFIX_FONT
PDF出力のロケール設定のサフィックス.
|
PropertyHelper |
propertyHelper
PropertyHelper.
|
protected static String |
SURROGATE_PAIR
サロゲートペア置換文字.
|
SystemLocaleHelper |
systemLocaleHelper
SystemLocaleHelper.
|
UserManagerHelper |
userManagerHelper
UserManagerHelper.
|
WorkReportConductor |
workReportConductor
WorkReportConductor.
|
WsAgreementManager |
wsAgreementManager
WsAgreementManager.
|
コンストラクタと説明 |
---|
WorkReportPdfLogic() |
修飾子とタイプ | メソッドと説明 |
---|---|
protected BigDecimal |
addBigDecimal(BigDecimal... arg)
bigDecimalの足し算を行う.
|
protected BigDecimal |
addBigDecimalNullToZero(BigDecimal... arg)
bigDecimalの足し算を行う.
|
protected com.lowagie.text.pdf.PdfPCell |
createCell(String str,
com.lowagie.text.Font font)
セルを作成.
|
protected com.lowagie.text.pdf.PdfPCell |
createCell(String str,
com.lowagie.text.Font font,
int colSpan)
セルを作成.
|
protected com.lowagie.text.pdf.PdfPCell |
createCell(String str,
com.lowagie.text.Font font,
int colSpan,
float minHeight)
セルを作成.
|
protected OutputStream |
createDocument(String userCd,
Timestamp searchCriteriaDate,
Locale locale,
OutputStream stream)
検索基準日が含まれる締め期間の勤務表データをPDF形式(1件)で作成し、指定されたストリームに流して返却.
|
protected OutputStream |
createDocumentList(List<WorkReportPdfLogic.WorkReportPdfDto> targetList,
Locale locale,
OutputStream stream)
検索基準日が含まれる締め期間の勤務表データをPDF形式(複数件)で作成し、指定されたストリームに流して返却.
|
protected com.lowagie.text.pdf.PdfPTable |
createSummaryLeaveTable(com.lowagie.text.Document document,
String userCd,
WorkReportPeriodDto workReportPeriod,
Locale locale)
締め期間の集計合計テーブルを返却.
|
protected com.lowagie.text.pdf.PdfPTable |
createSummaryTable(com.lowagie.text.Document document,
String userCd,
WorkReportPeriodDto workReportPeriod,
Locale locale)
締め期間の集計合計テーブルを返却.
|
protected com.lowagie.text.pdf.PdfPCell |
createValueCell(String str,
com.lowagie.text.Font font)
セルを作成.
|
protected com.lowagie.text.pdf.PdfPCell |
createValueCell(String str,
com.lowagie.text.Font font,
int colSpan)
セルを作成.
|
protected String |
editItemName(String itemName)
項目名称編集.
|
protected String |
formatString4OutputDate(Timestamp ts)
出力日を書式適用した文字列に変換.
|
protected String |
formatString4PeriodDate(Timestamp ts)
締め期間を書式適用した文字列に変換.
|
protected com.lowagie.text.pdf.BaseFont |
getBaseFont(Locale locale)
ロケールに応じたbasefontを返却.
|
protected String |
getSurface(Locale locale,
String key)
ラベルを返却.
|
protected void |
setInfo(com.lowagie.text.Document document,
WorkReportConductor.WorkReportInfo workReportInfo,
String userCd,
Timestamp searchCriteriaDate,
Locale locale)
PDF上部に表示される情報を作成.
|
protected void |
setPageNumber(com.lowagie.text.Document document,
Locale locale,
com.lowagie.text.pdf.PdfWriter writer,
int nowPage,
int totalPage)
PDF下部に表示されるページ番号の設定を行う.
|
protected void |
setTitle(com.lowagie.text.Document document)
PDFドキュメントの基本情報を設定.
|
ByteArrayOutputStream |
workreportPrint(String userCd,
Timestamp searchCriteriaDate,
Locale locale)
検索基準日が含まれる締め期間の勤務表データをPDF形式で作成し、
ブラウザに送信するためのバイト配列出力ストリームを返却.
|
ByteArrayOutputStream |
workreportPrintList(List<WorkReportPdfLogic.WorkReportPdfDto> targetList,
Locale locale)
検索基準日が含まれる締め期間の勤務表データをPDF形式で作成し、
ブラウザに送信するためのバイト配列出力ストリームを返却.
|
FileOutputStream |
workreportSave(String userCd,
Timestamp searchCriteriaDate,
Locale locale,
OutputStream stream)
検索基準日が含まれる締め期間の勤務表データをPDF形式で作成し、
ストレージに保存するためのファイル出力ストリームを返却.
|
FileOutputStream |
workreportSave(String userCd,
Timestamp searchCriteriaDate,
Locale locale,
String path)
検索基準日が含まれる締め期間の勤務表データをPDF形式で作成し、
ストレージに保存するためのファイル出力ストリームを返却.
|
@Autowired public KlgManager klgManager
@Autowired public WsAgreementManager wsAgreementManager
@Autowired public DateHelper dateHelper
@Autowired public WorkReportConductor workReportConductor
@Autowired public CompanyManagerHelper companyManagerHelper
@Autowired public ContextHelper contextHelper
@Autowired public UserManagerHelper userManagerHelper
@Autowired public LaborEmployeeManager laborEmployeeManager
@Autowired public PropertyHelper propertyHelper
@Autowired public SystemLocaleHelper systemLocaleHelper
@Autowired public CompanySettingsHelper companySettingsHelper
@Autowired public ItemManager itemManager
@Autowired public LeaveSummaryLogic leaveSummaryLogic
@Autowired public jp.co.slcs.kaiden.v2.product_labormgr.foundation.model.service.K31mWsMappingService k31mWsMappingService
protected static final String LOCALE_SURFIX_FONT
protected static final String LOCALE_SURFIX_EN_CODING
protected static final int ITEM_TYPE_LEAVE_NAME_MAX_LEN
public ByteArrayOutputStream workreportPrint(String userCd, Timestamp searchCriteriaDate, Locale locale)
userCd
- ユーザコードsearchCriteriaDate
- 検索基準日locale
- ロケールpublic ByteArrayOutputStream workreportPrintList(List<WorkReportPdfLogic.WorkReportPdfDto> targetList, Locale locale)
targetList
- 出力対象locale
- ロケールpublic FileOutputStream workreportSave(String userCd, Timestamp searchCriteriaDate, Locale locale, String path) throws FileNotFoundException
userCd
- ユーザコードsearchCriteriaDate
- 検索基準日locale
- ロケールpath
- ファイルパスFileNotFoundException
- ファイル未存在例外public FileOutputStream workreportSave(String userCd, Timestamp searchCriteriaDate, Locale locale, OutputStream stream) throws FileNotFoundException
userCd
- ユーザコードsearchCriteriaDate
- 検索基準日locale
- ロケールstream
- ストリームFileNotFoundException
- ファイル未存在例外protected OutputStream createDocument(String userCd, Timestamp searchCriteriaDate, Locale locale, OutputStream stream)
userCd
- ユーザコードsearchCriteriaDate
- 検索基準日locale
- ロケールstream
- ストリームprotected OutputStream createDocumentList(List<WorkReportPdfLogic.WorkReportPdfDto> targetList, Locale locale, OutputStream stream)
targetList
- 出力対象locale
- ロケールstream
- ストリームprotected void setTitle(com.lowagie.text.Document document)
document
- pdfドキュメントprotected void setInfo(com.lowagie.text.Document document, WorkReportConductor.WorkReportInfo workReportInfo, String userCd, Timestamp searchCriteriaDate, Locale locale) throws com.lowagie.text.DocumentException, IOException
document
- PDFドキュメントworkReportInfo
- 勤務表情報userCd
- ユーザコードsearchCriteriaDate
- 検索基準日locale
- ロケールcom.lowagie.text.DocumentException
- PDF作成例外IOException
- 入出力例外protected com.lowagie.text.pdf.PdfPTable createSummaryTable(com.lowagie.text.Document document, String userCd, WorkReportPeriodDto workReportPeriod, Locale locale) throws com.lowagie.text.DocumentException, IOException
document
- pdfドキュメントuserCd
- ユーザコードworkReportPeriod
- 勤務表の1期間に関する情報を保持するDTOlocale
- ロケールcom.lowagie.text.DocumentException
- PDF作成例外IOException
- 入出力例外protected com.lowagie.text.pdf.PdfPTable createSummaryLeaveTable(com.lowagie.text.Document document, String userCd, WorkReportPeriodDto workReportPeriod, Locale locale) throws com.lowagie.text.DocumentException, IOException
document
- pdfドキュメントuserCd
- ユーザコードworkReportPeriod
- 勤務表の1期間に関する情報を保持するDTOlocale
- ロケールcom.lowagie.text.DocumentException
- PDF作成例外IOException
- 入出力例外protected String editItemName(String itemName)
itemName
- 項目名protected void setPageNumber(com.lowagie.text.Document document, Locale locale, com.lowagie.text.pdf.PdfWriter writer, int nowPage, int totalPage) throws com.lowagie.text.DocumentException, IOException
document
- PDFドキュメントlocale
- ロケールwriter
- writernowPage
- 現在のページtotalPage
- 総ページcom.lowagie.text.DocumentException
- PDF作成例外IOException
- 入出力例外protected String getSurface(Locale locale, String key)
ラベルが見つからなかった場合は、キーをそのまま返却します。
locale
- ロケールkey
- キーprotected com.lowagie.text.pdf.PdfPCell createCell(String str, com.lowagie.text.Font font)
str
- 表示文字font
- 表示文字フォントprotected com.lowagie.text.pdf.PdfPCell createCell(String str, com.lowagie.text.Font font, int colSpan)
str
- 表示文字font
- 表示文字フォントcolSpan
- 列結合個数protected com.lowagie.text.pdf.PdfPCell createCell(String str, com.lowagie.text.Font font, int colSpan, float minHeight)
str
- 表示文字font
- 表示文字フォントcolSpan
- 列結合個数minHeight
- 最小高さprotected com.lowagie.text.pdf.PdfPCell createValueCell(String str, com.lowagie.text.Font font)
値表示用のセルを作成します。
表示値を右寄せします。
str
- 表示文字font
- 表示文字フォントprotected com.lowagie.text.pdf.PdfPCell createValueCell(String str, com.lowagie.text.Font font, int colSpan)
値表示用のセルを作成します。
表示値を右寄せします。
str
- 表示文字font
- 表示文字フォントcolSpan
- 列結合個数protected com.lowagie.text.pdf.BaseFont getBaseFont(Locale locale) throws com.lowagie.text.DocumentException, IOException
locale
- ロケールcom.lowagie.text.DocumentException
- PDFドキュメント例外IOException
- 入出力例外protected BigDecimal addBigDecimal(BigDecimal... arg)
加算結果が0の場合はNullを返却します。
arg
- 引数protected BigDecimal addBigDecimalNullToZero(BigDecimal... arg)
加算結果が0の場合は0を返却します。
arg
- 引数protected String formatString4OutputDate(Timestamp ts)
「yyyy/MM/dd」形式に変換します。
ts
- 対象日付Copyright © 2024 Sumitomo Life Information Systems Co., Ltd. All Rights Reserved.