/*
 * MosP - Mind Open Source Project         http://www.mosp.jp/
 * Copyright (C) 1987-2009 MIND Co., Ltd.  http://www.e-mind.co.jp/
 * 
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */
package jp.mosp.payroll.base;

/**
 * MosP給与計算で用いる定数を定義する。<br><br>
 */
public class PayrollConst {
	
	/**
	 *  設定ファイルのプロパティ名(Excel利用フラグ)。<br>
	 */
	public static final String PPT_PAY_USEXLS = "payroll.usexls";
	
	/**
	 * 事業所コード(全事業所)。
	 */
	public static final String OFFICE_ALL = "****";
	
	/**
	 * 伝票コード(共通)。
	 */
	public static final String SLIP_ALL = "****";
	
	/**
	 * 計算区分(給与)。
	 */
	public static final byte CALC_PAYMENT = 1;
	
	/**
	 * 計算区分(賞与)。
	 */
	public static final byte CALC_BONUS = 2;
	
	/**
	 * 計算区分(年末調整)。
	 */
	public static final byte CALC_ADJUST = 3;
	
	/**
	 * 計算区分(社会保険)。
	 */
	public static final byte CALC_INSURE = 4;
	
	/**
	 * 計算状態(計算開始)。
	 */
	public static final byte CURRENT_START = 1;
	
	/**
	 * 計算状態(計算完了)。
	 */
	public static final byte CURRENT_END = 2;
	
	/**
	 * 計算状態(計算中断)。
	 */
	public static final byte CURRENT_BREAK = 3;
	
	/**
	 * 明細入力区分(手入力)。
	 */
	public static final byte DETAIL_IN_DIRECT = 0;
	
	/**
	 * 明細入力区分(単価)。
	 */
	public static final byte DETAIL_IN_UNIT = 1;
	
	/**
	 * 明細入力区分(アップロード)。
	 */
	public static final byte DETAIL_IN_UPLOAD = 2;
	
	/**
	 * 明細0印字区分(印字)。
	 */
	public static final byte DETAIL_DISP_WRITE = 0;
	
	/**
	 * 明細0印字区分(印字しない)。
	 */
	public static final byte DETAIL_DISP_NONE = 1;
	
	/**
	 * 明細課税対象区分(対象)。
	 */
	public static final byte DETAIL_TAX_ADD  = 0;
	
	/**
	 * 明細課税対象区分(内訳)。
	 */
	public static final byte DETAIL_TAX_BREAK  = 1;
	
	/**
	 * 明細課税険対象区分(非対象)。
	 */
	public static final byte DETAIL_TAX_NONE = 2;
	
	/**
	 * 明細雇用保険対象区分(対象)。
	 */
	public static final byte DETAIL_UE_ADD  = 0;
	
	/**
	 * 明細雇用保険対象区分(内訳)。
	 */
	public static final byte DETAIL_UE_BREAK = 1;
	
	/**
	 * 明細雇用保険対象区分(非対象)。
	 */
	public static final byte DETAIL_UE_NONE = 2;
	
	/**
	 * 明細集計対象区分(非集計)。
	 */
	public static final byte DETAIL_TOTAL_NONE = 0;
	
	/**
	 * 明細集計対象区分(課税)。
	 */
	public static final byte DETAIL_TOTAL_TAX = 1;
	
	/**
	 * 明細集計対象区分(雇用保険対象)。
	 */
	public static final byte DETAIL_TOTAL_UE = 2;
	
	/**
	 * 明細表示区分(非表示)。
	 */
	public static final byte DETAIL_VIEW_OFF = 0;
	
	/**
	 * 明細表示区分(表示)。
	 */
	public static final byte DETAIL_VIEW_ON = 1;
	
	/**
	 * 明細編集可否フラグ(可)。
	 */
	public static final byte DETAIL_EDIT_OK = 0;
	
	/**
	 * 明細編集可否フラグ(否)。
	 */
	public static final byte DETAIL_EDIT_NG = 1;
	
	/**
	 * 明細区分(給与勤怠)。
	 */
	public static final String DETAIL_TYPE_PT = "PT";
	
	/**
	 * 明細区分(給与支給)。
	 */
	public static final String DETAIL_TYPE_PA = "PA";
	
	/**
	 * 明細区分(給与控除)。
	 */
	public static final String DETAIL_TYPE_PD = "PD";
	
	/**
	 * 明細区分(給与内訳)。
	 */
	public static final String DETAIL_TYPE_PB = "PB";
	
	/**
	 * 明細区分(給与合計)。
	 */
	public static final String DETAIL_TYPE_PS = "PS";
	
	/**
	 * 明細区分(賞与支給)。
	 */
	public static final String DETAIL_TYPE_BA = "BA";
	
	/**
	 * 明細区分(賞与控除)。
	 */
	public static final String DETAIL_TYPE_BD = "BD";
	
	/**
	 * 明細区分(賞与合計)。
	 */
	public static final String DETAIL_TYPE_BS = "BS";
	
	
	/**
	 * 明細コード(支給年)。
	 */
	public static final String DTL_SNEN = "PI001";
	
	/**
	 * 明細コード(支給月)。
	 */
	public static final String DTL_STUKI = "PI002";
	
	/**
	 * 明細コード(支給日)。
	 */
	public static final String DTL_SHI = "PI003";
	
	/**
	 * 明細コード(出勤日数)。
	 */
	public static final String DTL_SNISSU = "PT001";
	
	/**
	 * 明細コード(出勤回数)。
	 */
	public static final String DTL_SKAISU = "PT002";
	
	/**
	 * 明細コード(勤務時間)。
	 */
	public static final String DTL_KINMUJI = "PT003";
	
	/**
	 * 明細コード(休憩時間)。
	 */
	public static final String DTL_KYUKEIJI = "PT011";
	
	/**
	 * 明細コード(有給)。
	 */
	public static final String DTL_YUKYU = "PT009";
	
	/**
	 * 明細コード(特別休暇)。
	 */
	public static final String DTL_TOKUKYU = "PT010";
	
	/**
	 * 明細コード(一般欠勤日数)。
	 */
	public static final String DTL_KEKKIN = "PT012";
	
	/**
	 * 明細コード(傷病欠勤日数)。
	 */
	public static final String DTL_SKEKKIN = "PT013";
	
	/**
	 * 明細コード(代替休暇)。
	 */
	public static final String DTL_DAIKYU = "PT014";
	
	/**
	 * 明細コード(振替休暇)。
	 */
	public static final String DTL_FURIKAE = "PT015";
	
	/**
	 * 明細コード(その他休暇)。
	 */
	public static final String DTL_SONOTA = "PT016";
	
	/**
	 * 明細コード(遅刻早退回数)。
	 */
	public static final String DTL_TISOKAI = "PT007";
	
	/**
	 * 明細コード(遅刻早退時間)。
	 */
	public static final String DTL_TIJIKAN = "PT008";
	
	/**
	 * 明細コード(普通残業時間)。
	 */
	public static final String DTL_ZAJIKAN = "PT004";
	
	/**
	 * 明細コード(休日出勤時間)。
	 */
	public static final String DTL_KSJIKAN = "PT006";
	
	/**
	 * 明細コード(深夜勤務時間)。
	 */
	public static final String DTL_SNJIKAN = "PT005";
	
	/**
	 * 明細コード(精皆勤手当支給)。
	 */
	public static final String DTL_KAIKIN = "PA0071";
	
	/**
	 * 明細コード(食事手当支給回数)。
	 */
	public static final String DTL_SYOKUJIKAISU = "PA0081";
	
	/**
	 * 明細コード(1直手当支給回数)。
	 */
	public static final String DTL_CYOKUKAISU1 = "PA0091";
	
	/**
	 * 明細コード(2直手当支給回数)。
	 */
	public static final String DTL_CYOKUKAISU2 = "PA0101";
	
	/**
	 * 明細コード(3直手当支給回数)。
	 */
	public static final String DTL_CYOKUKAISU3 = "PA0111";
	
	/**
	 * 明細コード(その他支給回数1)。
	 */
	public static final String DTL_HOKAKAISU1 = "PA0121";
	
	/**
	 * 明細コード(その他支給回数2)。
	 */
	public static final String DTL_HOKAKAISU2 = "PA0131";
	
	/**
	 * 明細コード(その他支給回数3)。
	 */
	public static final String DTL_HOKAKAISU3 = "PA0141";
	
	/**
	 * 明細コード(その他支給回数4)。
	 */
	public static final String DTL_HOKAKAISU4 = "PA0151";
	
	/**
	 * 明細コード(その他支給回数5)。
	 */
	public static final String DTL_HOKAKAISU5 = "PA0161";
	
	/**
	 * 明細コード(支払申請額)。
	 */
	public static final String DTL_SINSEIGAKU = "PA017";
	
	/**
	 * 明細コード(二時間年休)。
	 */
	public static final String DTL_NIJIKYU = "PT017";
	/**
	 * 明細コード(1.00割増残業)。
	 */
	public static final String DTL_WARIMASI1 = "PT018";
	
	/**
	 * 明細コード(基本給)。
	 */
	public static final String DTL_BASE = "PA001";
	
	/**
	 * 明細コード(通勤手当)。
	 */
	public static final String DTL_COMMUTATION = "PA018";
	
	/**
	 * 明細コード(課税通勤手当)。
	 */
	public static final String DTL_COMMUTE_TAX = "PA0181";
	
	/**
	 * 明細コード(健康保険料)。
	 */
	public static final String DTL_HEALTH_INS = "PD001";
	
	/**
	 * 明細コード(介護保険料)。
	 */
	public static final String DTL_NURSING_INS = "PD002";
	
	/**
	 * 明細コード(厚生年金料)。
	 */
	public static final String DTL_PENSION_INS = "PD003";
	
	/**
	 * 明細コード(厚生年金基金料)。
	 */
	public static final String DTL_PENSION_FUND = "PD004";
	
	/**
	 * 明細コード(雇用保険料)。
	 */
	public static final String DTL_EMPLOYEE_INS = "PD005";
	
	/**
	 * 明細コード(所得税)。
	 */
	public static final String DTL_INCOME_TAX = "PD006";
	
	/**
	 * 明細コード(住民税)。
	 */
	public static final String DTL_RESIDENCE_TAX = "PD007";
	
	/**
	 * 明細コード(総支給金額)。
	 */
	public static final String DTL_SUM_ALLOWANCE = "PS001";
	
	/**
	 * 明細コード(総控除金額)。
	 */
	public static final String DTL_SUM_DEDUCTION = "PS002";
	
	/**
	 * 明細コード(差引支給額)。
	 */
	public static final String DTL_SUM_TOTAL = "PS003";
	
	/**
	 * 明細コード(課税支給額)。
	 */
	public static final String DTL_SUM_TAXATION = "PS004";
	
	/**
	 * 明細コード(社会保険合計)。
	 */
	public static final String DTL_SUM_SOC_INS = "PS005";
	
	/**
	 * 明細コード(銀行1支給額)。
	 */
	public static final String DTL_SUM_BANK1 = "PS011";
	
	/**
	 * 明細コード(銀行2支給額)。
	 */
	public static final String DTL_SUM_BANK2 = "PS012";
	
	/**
	 * 明細コード(現金支給額)。
	 */
	public static final String DTL_SUM_CASH = "PS013";
	
	/**
	 * 初期値(計算年)。
	 */
	public static final short DEFAULT_CURRENT_YEAR = 2000;
	
	/**
	 * 日付文字列フォーマット(年月日)。
	 */
	public static final String FORMAT_DATE = "yyyy/MM/dd";
	
	/**
	 * 日付文字列フォーマット(年月)。
	 */
	public static final String FORMAT_YEAR_MONTH = "yyyy年MM月";
	
	/**
	 * 日付文字列フォーマット(年月日)。
	 */
	public static final String FORMAT_DATE_JP = "yyyy年MM月dd日";
	
	/**
	 * 日付文字列フォーマット(勤怠管理システム連携用年月)。
	 */
	public static final String FORMAT_FOR_TIME = "yyyy-M";
	
	/**
	 * 日付関連デフォルト(日)。
	 */
	public static final byte TIME_DEFAULT_DAY = 1;

	/**
	 * 日付セパレータ。
	 */
	public static final String SEPARATOR_DATE = "/";
	
	/**
	 * 給与明細テンプレートファイルパス(ODS)。
	 */
	public static final String TPL_PAYMENT_SLIP_ODS = "/template/samp_payment_slip.ods";
	
	/**
	 * 給与明細テンプレートファイルパス(XLS)。
	 */
	public static final String TPL_PAYMENT_SLIP_XLS = "/template/samp_payment_slip.xls";

	/**
	 * ファイル名区切文字。
	 */
	public static final String FILE_NAME_SEPARATOR = "-";
	
	/**
	 * 給与データファイル名。
	 */
	public static final String FILE_PAYMENT_DATA = "PaymentData.txt";
	
	/**
	 * 給与明細ファイル名。
	 */
	public static final String FILE_PAYMENT_SLIP = "PaymentSlip.xls";
	
	/**
	 * 給与明細ファイル名。
	 */
	public static final String FILE_PAYMENT_SLIP_OO = "PaymentSlip.ods";
	
	/**
	 * 賞与明細ファイル名。
	 */
	public static final String FILE_BONUS_SLIP = "BonusSlip.xls";
	
	/**
	 * 賞与明細ファイル名。
	 */
	public static final String FILE_BONUS_SLIP_OO = "BonusSlip.ods";
	
	/**
	 * CSV改行文字。
	 */
	public static final String STR_CSV_NEW_LINE = "\r\n";
	
	/**
	 * 給与区分(月給)。
	 */
	public static final byte PAYMENT_MONTH = 1;
	
	/**
	 * 給与区分(月給固定)。
	 */
	public static final byte PAYMENT_FIXED = 2;
	
	/**
	 * 給与区分(日給)。
	 */
	public static final byte PAYMENT_DAY = 3;
	
	/**
	 * 給与区分(時給)。
	 */
	public static final byte PAYMENT_HOUR = 4;
	
	/**
	 * 項目長(明細コード)
	 */
	public static final int LEN_DETAIL_CODE = 6;
	
	/**
	 * 項目長(明細名)
	 */
	public static final int LEN_DETAIL_NAME = 32;
	
	/**
	 * 項目長(明細略称)
	 */
	public static final int LEN_DETAIL_ABBR = 6;
	
	/* メッセージ関連 */
	public static final String MSG_EXCLUSIVE         = "WU1117";

	/* フラグ関連 */
	public static final int DEFAULT_FLAG_OFF       = 0;

	/* 排他関連 */
	public static final int    EXC_HUMAN_CA_PE = 2;

	/* フォーマット */
	public static final String FORMAT_UNIT_AMOUNT = "#######0.##";

	/* コード区分 */
	public static final String TID_JAPANESE      = "JAPANESE" ;	// 年号
	public static final String TID_ACCOUNT_TYPE  = "ACCOUNT"  ;	// 預金区分
	public static final String TID_PAYMENT_MEANS = "MEANS"    ;	// 支給方法
	public static final String TID_PAY_INTERVAL  = "INTERVAL" ;	// 支給間隔
	public static final String TID_LUMP_TYPE     = "LUMP"     ;	// 一括区分
	public static final String TID_UNIT_TYPE     = "UNIT"     ;	// 単価区分

	/* 設定区分 */
	public static final String CONF_ID_JP_IMP_CAL   = "JC_%"    ;	// 和暦設定

	/**
	 *  銀行データのファイルのパス(銀行名、支店名表示用javascript)。<br>
	 */
	public static final String JS_FINANCE  = "/pub/common/js/finance.js";

	/* 出力ファイル名 */
	public static final String STR_CSV_SEPARATOR       = ",";
	
	// 給与明細項目長
	public static final int LEN_MONEY    = 8;
	public static final int LEN_TIME_INT = 3;
	public static final int LEN_TIME_DEC = 2;
	
	/* 項目長 */
	public static final int LEN_K_NAME          = 16;
	public static final int LEN_MONEY_AMOUNT    = 8;
	public static final int LEN_POSTAL_CODE     = 8;
	public static final int LEN_ADDRESS         = 64;
	public static final int LEN_PHONE_NUMBER    = 13;
	public static final int LEN_BANK_CODE       = 4;
	public static final int LEN_BRANCH_CODE     = 3;
	public static final int LEN_ACCOUNT_NO      = 7;
	public static final int LEN_DISTANCE_INT    = 3;
	public static final int LEN_DISTANCE_DEC    = 2;
	public static final int LEN_UNIT_AMOUNT_INT = 8;
	public static final int LEN_UNIT_AMOUNT_DEC = 2;
	public static final int LEN_INS_RATIO_INT   = 3;
	public static final int LEN_INS_RATIO_DEC   = 3;

	public static final int LEN_CITY_CODE          = 6;
	public static final int LEN_CITY_NAME          = 10;
	public static final int LEN_CITY_KANA          = 20;
	public static final int LEN_DESIGNATED_NUMBER  = 15;

	/* 入力制限 */
	public static final String REG_INTEGER     = "^[-]?[0-9]+";

	/* 支給方法連番 */
	public static final int    PAYMENT_MEANS_COUNT = 4;	// 支給方法数
	public static final int    PAYMENT_MEANS_SEQ_1 = 0;	// 給与振込1
	public static final int    PAYMENT_MEANS_SEQ_2 = 1;	// 給与振込2
	public static final int    PAYMENT_MEANS_SEQ_3 = 2;	// 賞与振込1
	public static final int    PAYMENT_MEANS_SEQ_4 = 3;	// 賞与振込2

	/* 支給区分 */
	public static final String ALLOWANCE_TYPE_SALARY = "1";	// 給与
	public static final String ALLOWANCE_TYPE_BONUS  = "2";	// 賞与

	/* 支給方法 */
	public static final String PAYMENT_MEANS_ACCOUNT = "2";	// 振込

	/* 通勤手当連番 */
	public static final int    COMMUTATION_COUNT = 2;	// 通勤手当数
	public static final int    COMMUTE_SEQ_1     = 0;	// 通勤手当1
	public static final int    COMMUTE_SEQ_2     = 1;	// 通勤手当2

	/* 通勤手当区分 */
	public static final String COMMUTE_TYPE_FACILITY = "1";	// 交通機関
	public static final String COMMUTE_TYPE_CAR      = "2";	// 交通用具

	/* 金額0円 */
	public static final int AMOUNT_ZERO   = 0;

	/* 計算単価 */
	public static final int    UNIT_AMOUNT_COUNT = 20;	// 計算単価数

	/* 日付関連初期値 */
	public static final int    TIME_SHOWA_LONG    =   63;

	// 金額区分(支給方法)
	public static final String AMOUNT_TYPE_ALL    = "1";	// 全額
	public static final String AMOUNT_TYPE_AMOUNT = "2";	// 定額
	public static final String AMOUNT_TYPE_RATIO  = "3";	// 定率
	public static final String AMOUNT_TYPE_REST   = "4";	// 残額
	public static final String AMOUNT_TYPE_ALL_NAME    = "全額";
	public static final String AMOUNT_TYPE_AMOUNT_NAME = "定額"; 
	public static final String AMOUNT_TYPE_RATIO_NAME  = "定率";
	public static final String AMOUNT_TYPE_REST_NAME   = "残額";
	public static final String[][] getAmountTypeArray() {
		return new String[][] {
			{AMOUNT_TYPE_ALL   , AMOUNT_TYPE_ALL_NAME   },
			{AMOUNT_TYPE_AMOUNT, AMOUNT_TYPE_AMOUNT_NAME},
			{AMOUNT_TYPE_RATIO , AMOUNT_TYPE_RATIO_NAME }
		};
	}
	public static final String[][] getAmountTypeArrayForRest() {
		return new String[][] {
			{AMOUNT_TYPE_REST  , AMOUNT_TYPE_REST_NAME  }
		};
	}

	
	public static final String NAM_TO_BONUS_CALCULATE     = "賞与計算へ";
	public static final String NAM_TO_PAY_CALCULATE       = "給与計算へ";
	public static final String CMT_OUT_FIRM_BANKING = "出力するFBデータを選択してください。";
	public static final String NAM_OUTPUT_DETAIL = "出力内容"    ;
	public static final String NAM_SPECIFY_MONTH = "年月指定"    ;
	public static final String CMT_DEADLINE_DATE    = "納期限を指定してください。";
	public static final String NAM_DEADLINE_DATE = "納期限"      ;
	public static final String CMT_COMPANY_CODE     = "会社銀行コードを選択してくさい。会社コード以下は必須です。";
	public static final String NAM_CO_BANK_CODE       = "会社銀行";
	public static final String NAM_COMPANY_CODE  = "会社コード"  ;
	public static final String NAM_COMPANY_NAME  = "会社名";
	public static final String NAM_CO_ADDRESS    = "会社住所";
	public static final String NAM_RECORD_LENGTH = "レコード長"  ;
	public static final String NAM_OUTPUT_DATA            = "出力";
	public static final String NAM_TYPE_CODE     = "種別コード"  ;
	public static final String NAM_CODE_TYPE     = "コード区分"  ;
	public static final String NAM_RECORD_TYPE   = "レコード区分";
	public static final String CMT_OUTPUT_OPTION    = "出力オプションを指定してください。";
	public static final String NAM_END_RECORD    = "最終レコード";
	/* 区切文字 */
	public static final String STR_TITLE_SEPARATOR = "：";
	
	public static final String FB_OUTPUT_DETAIL_PAYMENT    = "0";
	public static final String FB_OUTPUT_DETAIL_BONUS      = "1";
	public static final String FB_OUTPUT_DETAIL_RES        = "2";
	public static final String FB_OUTPUT_DETAIL_PAY_NAME   = "給与";
	public static final String FB_OUTPUT_DETAIL_BONUS_NAME = "賞与";
	public static final String FB_OUTPUT_DETAIL_RES_NAME   = "住民税";
	
	public static final String TTL_FIRM_BANKING           = "FBデータ出力";
	public static final String NAM_PAYDAY        = "支給日指定"  ;
	
	public static final int LEN_FB_TYPE_CODE    = 2;
	public static final int LEN_FB_RECORD_LENGTH= 3;
	public static final int LEN_FB_COMPANY_CODE = 10;
	public static final int LEN_FB_COMPANY_NAME = 40;
	public static final int LEN_FB_CO_ADDRESS   = 50;
	
	public static final String CALC_STATUS_FIX  = "4";
	public static final String CALC_STATUS_FB  = "5";
	
	public static final String FILE_FB_PAYMENT_DATA    = "FB_PaymentData.txt";
	
	public static final String MSG_NO_PAYMENT        = "WU1113";
	
	//	 FBデータ種別コード
	public static final String FB_PAYMENT_TYPE_CODE = "11";	// 給与
	
	/* FBデータ最小レコード長 */
	public static final int    FB_LOWER_LEN_RECORD = 120;		// FBデータ最小レコード長 
	
	public static final String[][] getOutputDetailArray() {
		return new String[][] {
			{FB_OUTPUT_DETAIL_PAYMENT, FB_OUTPUT_DETAIL_PAY_NAME  },
			{FB_OUTPUT_DETAIL_BONUS  , FB_OUTPUT_DETAIL_BONUS_NAME},
			//{FB_OUTPUT_DETAIL_RES    , FB_OUTPUT_DETAIL_RES_NAME  }
		};
	}
	
//	 FBデータコード区分
	public static final String FB_CODE_TYPE_JIS         = "0";
	public static final String FB_CODE_TYPE_EBCDIC      = "1";
	public static final String FB_CODE_TYPE_JIS_NAME    = "0";
	public static final String FB_CODE_TYPE_EBCDIC_NAME = "1";
	public static final String[][] getCodeTypeArray() {
		return new String[][] {
			{FB_CODE_TYPE_JIS   , FB_CODE_TYPE_JIS_NAME   },
			{FB_CODE_TYPE_EBCDIC, FB_CODE_TYPE_EBCDIC_NAME}
		};
	}
	
	// FBデータレコード区分
	public static final String FB_RECORD_TYPE_NONE  = "0";
	public static final String FB_RECORD_TYPE_GIVE = "1";
	public static final String FB_RECORD_TYPE_NON_NAME  = "付けない";
	public static final String FB_RECORD_TYPE_GIVE_NAME = "付ける";
	public static final String[][] getRecordTypeArray() {
		return new String[][] {
			{FB_RECORD_TYPE_NONE, FB_RECORD_TYPE_NON_NAME },
			{FB_RECORD_TYPE_GIVE, FB_RECORD_TYPE_GIVE_NAME}
		};
	}
	
	// FBデータエンドレコード
	public static final String FB_END_RECORD_NONE  = "0";
	public static final String FB_END_RECORD_GIVE = "1";
	public static final String FB_END_RECORD_NON_NAME  = "付けない";
	public static final String FB_END_RECORD_GIVE_NAME = "付ける";
	public static final String[][] getEndRecordArray() {
		return new String[][] {
			{FB_END_RECORD_NONE, FB_END_RECORD_NON_NAME },
			{FB_END_RECORD_GIVE, FB_END_RECORD_GIVE_NAME}
		};
	}
	
	/* エクスポート用名称 */
	public static final String NAM_NEW_DATA_M_PAYROLL		= "(給与)"	;
	public static final String NAM_NEW_DATA_M_BOUNAS		= "(賞与)"	;
	public static final String CODE_TABLE_PH_PAYMENT 		= "PH_PAYMENT";
	public static final String CODE_TABLE_PM_DETAIL_PA 	= "PM_DETAIL_PA";
	public static final String CODE_TABLE_PM_DETAIL_PB 	= "PM_DETAIL_PB";
	public static final String CODE_TABLE_PM_DETAIL_PD 	= "PM_DETAIL_PD";
	public static final String CODE_TABLE_PM_DETAIL_PS 	= "PM_DETAIL_PS";
	public static final String CODE_TABLE_PM_DETAIL_PT 	= "PM_DETAIL_PT";
	public static final String NAM_M_KIHON_KCODE			= "社員コード";
	public static final String NAM_M_KIHON_SHIME			= "氏名";
	public static final String NAM_M_KIHON_JCODE			= "事業所コード";
	public static final String NAM_M_KIHON_SCODE			= "所属コード";
	public static final String NAM_M_KIHON_YCODE			= "役職コード";
	public static final String NAM_PH_PAYMENT_CALC_MONTH		= "計算年月";
	public static final String NAM_PH_PAYMENT_CALC_PAY_DATE		= "支給日";
	public static final String NAM_TYPE					= "種別";
	public static final String NAM_DATA_M_PAYROLL		= "給与"	;
	public static final String NAM_DATA_M_BONAS		= "賞与"	;
	public static final String NAM_FILE_PAYROLL		= "Payroll"	;
	public static final String NAM_FILE_BONUS			= "Bonus"	;
	
	public static final String CODE_TABLE_M_PAYROLL		= "給与"	;
	public static final String CODE_TABLE_M_BONAS		= "賞与"	;
	public static final String NAM_TARGET_MONTH       = "対象年月日";
	
	public static final String FORMAT_YEAR_MONTH_DAY = "yyyy年MM月";
	
	public static final int HUMAN_CNT	 = 7;
	public static final String FILE_FB_BONUS_DATA      = "FB_BonusData.txt";
	public static final String MSG_NO_BONUS          = "WU1120";
	public static final String FB_BONUS_TYPE_CODE   = "12";	// 賞与
	
	/* 帳票出力用名称 */
	public static final String NAM_CASH_KIND_PAIROLL	 = "金種一覧";
	public static final String NAM_BANK_PARSON_PAIROLL = "振込一覧(個人銀行別)";
	public static final String NAM_BANK_COMPANY_PAIROLL = "振込一覧(会社銀行別)";
	public static final String NAM_TAX_PARSON_PAIROLL = "住民税一覧(個人別)";
	public static final String NAM_TAX_COMPANY_PAIROLL = "住民税一覧(市区町村別)";
	public static final String NAM_PAYMENT_TARGET     = "分給与";
	public static final String NAM_COMMON_SUM  = "合計";
	public static final String NAM_COMMON_NAME = "名";
	public static final String NMA_COMMON_COLLECT = "徴収額";

	/* インポート用項目長 */
	public static final int LEN_I_CODE          = 10;
	public static final int LEN_I_NAME          = 12;

	/* インポート用名称 */
	public static final String CODE_IMPORT_TABLE_PH_PAYMENT		= "PH_PAYMENT";
	public static final String CODE_IMPORT_TABLE_PI_PAYMENT		= "PI_PAYMENT";
	public static final String CODE_IMPORT_TABLE_M_SYUKKINBO		= "M_SYUKKINBO";
	public static final String CODE_IMPORT_TABLCT_TIMECARD		= "CT_TIMECARD"; 

	public static final String NAM_IMPORT_TABLE_PH_PAYMENT		= "給与";
	public static final String NAM_IMPORT_TABLE_M_SYUKKINBO		= "出勤簿";
	public static final String NAM_IMPORT_TABLE_PI_PAYMENT		= "勤怠集計情報";
	public static final String NAM_IMPORT_TABLCT_TIMECARD			= "タイムカード";

	public static final String NAM_IMPORT_FIELD_CAL_NEN			= "計算年";
	public static final String NAM_IMPORT_FIELD_CAL_TUKI			= "計算月";
	public static final String CODE_IMPORT_FIELD_CAL_NEN			= "CALCNEN";
	public static final String CODE_IMPORT_FIELD_CAL_TUKI			= "CALCTUKI";

	
	
	
	public static final String NAM_IMPORT_FIELD_DTL_SNEN			= "支給年";
	public static final String NAM_IMPORT_FIELD_DTL_STUKI			= "支給月";
	public static final String NAM_IMPORT_FIELD_DTL_DTL_SHI		= "支給日";
	
	/* 出勤簿インポート用名称 */
	public static final String NAM_IMPORT_FIELD_KCODE				= "社員コード";
	public static final String NAM_IMPORT_FIELD_SIMEI				= "氏名";
	public static final String NAM_IMPORT_FIELD_FURIGANA			= "ふりがな";
	public static final String NAM_IMPORT_FIELD_SCODE				= "所属コード";
	public static final String NAM_IMPORT_FIELD_YCODE				= "役職コード";
	public static final String NAM_IMPORT_FIELD_TOKYU				= "等級";
	public static final String NAM_IMPORT_FIELD_JCODE				= "事業所コード";
	public static final String NAM_IMPORT_FIELD_NYDATE			= "入社日";
	public static final String NAM_IMPORT_FIELD_TSDATE			= "退職日";
	public static final String NAM_IMPORT_FIELD_KNKUBUN			= "休退職区分";
	public static final String NAM_IMPORT_FIELD_EMAIL				= "e-mail";
	public static final String NAM_IMPORT_FIELD_HIZUKE			= "日付";
	public static final String NAM_IMPORT_FIELD_SYJIKOKU			= "出勤時刻";
	public static final String NAM_IMPORT_FIELD_KINMU				= "勤務形態";
	public static final String NAM_IMPORT_FIELD_SHANKYUKB			= "出勤半休区分";
	public static final String NAM_IMPORT_FIELD_KYUSYUKB			= "休出区分";
	public static final String NAM_IMPORT_FIELD_TIRIYUU			= "遅刻理由";
	public static final String NAM_IMPORT_FIELD_TICOMENT			= "遅刻コメント";
	public static final String NAM_IMPORT_FIELD_TISYOUMEI			= "遅刻証明書";
	public static final String NAM_IMPORT_FIELD_TIJIKAN			= "遅刻時間";
	public static final String NAM_IMPORT_FIELD_TAJIKOKU			= "退社時刻";
	public static final String NAM_IMPORT_FIELD_KINMUJI			= "勤務時間";
	public static final String NAM_IMPORT_FIELD_KYUKEIJI			= "休憩時間";
	public static final String NAM_IMPORT_FIELD_THANKYUKB			= "退勤半休区分";
	public static final String NAM_IMPORT_FIELD_SORIYUU			= "早退理由";
	public static final String NAM_IMPORT_FIELD_SOCOMENT			= "早退コメント";
	public static final String NAM_IMPORT_FIELD_SOSYOUMEI			= "早退証明書";
	public static final String NAM_IMPORT_FIELD_SOJIKAN			= "早退時間";
	public static final String NAM_IMPORT_FIELD_ZAJIKAN			= "残業時間";
	public static final String NAM_IMPORT_FIELD_KSJIKAN			= "休出時間";
	public static final String NAM_IMPORT_FIELD_SNJIKAN			= "深夜時間";
	public static final String NAM_IMPORT_FIELD_SYOKJI			= "食事手当支給";
	public static final String NAM_IMPORT_FIELD_CYOKU1			= "1直手当支給";
	public static final String NAM_IMPORT_FIELD_CYOKU2			= "2直手当支給";
	public static final String NAM_IMPORT_FIELD_CYOKU3			= "3直手当支給";
	public static final String NAM_IMPORT_FIELD_HOKA1				= "その他支給1";
	public static final String NAM_IMPORT_FIELD_HOKA2				= "その他支給2";
	public static final String NAM_IMPORT_FIELD_HOKA3				= "その他支給3";
	public static final String NAM_IMPORT_FIELD_HOKA4				= "その他支給4";
	public static final String NAM_IMPORT_FIELD_HOKA5				= "その他支給5";
	public static final String NAM_IMPORT_FIELD_KKRIYUU			= "休暇理由";
	public static final String NAM_IMPORT_FIELD_DAIKYUJYU			= "代休充当日";
	public static final String NAM_IMPORT_FIELD_KKCOMENT			= "休暇コメント";
	public static final String NAM_IMPORT_FIELD_KKSYOUMEI			= "休暇証明書";
	public static final String NAM_IMPORT_FIELD_KKJIKAN			= "休暇時間";
	public static final String NAM_IMPORT_FIELD_NIJIKYU			= "二時間年休";
	public static final String NAM_IMPORT_FIELD_NZAJIKAN			= "1.00割増時間";

	public static final String CODE_IMPORT_FIELD_KCODE			= "KCODE";
	public static final String CODE_IMPORT_FIELD_SIMEI			= "SIMEI";
	public static final String CODE_IMPORT_FIELD_FURIGANA			= "FURIGANA";
	public static final String CODE_IMPORT_FIELD_SCODE			= "SCODE";
	public static final String CODE_IMPORT_FIELD_YCODE			= "YCODE";
	public static final String CODE_IMPORT_FIELD_TOKYU			= "TOKYU";
	public static final String CODE_IMPORT_FIELD_JCODE			= "JCODE";
	public static final String CODE_IMPORT_FIELD_NYDATE			= "NYDATE";
	public static final String CODE_IMPORT_FIELD_TSDATE			= "TSDATE";
	public static final String CODE_IMPORT_FIELD_KNKUBUN			= "KNKUBUN";
	public static final String CODE_IMPORT_FIELD_EMAIL			= "EMAIL";
	public static final String CODE_IMPORT_FIELD_HIZUKE			= "HIZUKE";
	public static final String CODE_IMPORT_FIELD_SYJIKOKU			= "SYJIKOKU";
	public static final String CODE_IMPORT_FIELD_KINMU			= "KINMU";
	public static final String CODE_IMPORT_FIELD_SHANKYUKB		= "SHANKYUKB";
	public static final String CODE_IMPORT_FIELD_KYUSYUKB			= "KYUSYUKB";
	public static final String CODE_IMPORT_FIELD_TIRIYUU			= "TIRIYUU";
	public static final String CODE_IMPORT_FIELD_TICOMENT			= "TICOMENT";
	public static final String CODE_IMPORT_FIELD_TISYOUMEI		= "TISYOUMEI";
	public static final String CODE_IMPORT_FIELD_TIJIKAN			= "TIJIKAN";
	public static final String CODE_IMPORT_FIELD_TAJIKOKU			= "TAJIKOKU";
	public static final String CODE_IMPORT_FIELD_KINMUJI			= "KINMUJI";
	public static final String CODE_IMPORT_FIELD_KYUKEIJI			= "KYUKEIJI";
	public static final String CODE_IMPORT_FIELD_THANKYUKB		= "THANKYUKB";
	public static final String CODE_IMPORT_FIELD_SORIYUU			= "SORIYUU";
	public static final String CODE_IMPORT_FIELD_SOCOMENT			= "SOCOMENT";
	public static final String CODE_IMPORT_FIELD_SOSYOUMEI		= "SOSYOUMEI";
	public static final String CODE_IMPORT_FIELD_SOJIKAN			= "SOJIKAN";
	public static final String CODE_IMPORT_FIELD_ZAJIKAN			= "ZAJIKAN";
	public static final String CODE_IMPORT_FIELD_KSJIKAN			= "KSJIKAN";
	public static final String CODE_IMPORT_FIELD_SNJIKAN			= "SNJIKAN";
	public static final String CODE_IMPORT_FIELD_SYOKJI			= "SYOKUJI";
	public static final String CODE_IMPORT_FIELD_CYOKU1			= "CYOKU1";
	public static final String CODE_IMPORT_FIELD_CYOKU2			= "CYOKU2";
	public static final String CODE_IMPORT_FIELD_CYOKU3			= "CYOKU3";
	public static final String CODE_IMPORT_FIELD_HOKA1			= "HOKA1";
	public static final String CODE_IMPORT_FIELD_HOKA2			= "HOKA2";
	public static final String CODE_IMPORT_FIELD_HOKA3			= "HOKA3";
	public static final String CODE_IMPORT_FIELD_HOKA4			= "HOKA4";
	public static final String CODE_IMPORT_FIELD_HOKA5			= "HOKA5";
	public static final String CODE_IMPORT_FIELD_KKRIYUU			= "KKRIYUU";
	public static final String CODE_IMPORT_FIELD_DAIKYUJYU		= "DAIKYUJYU";
	public static final String CODE_IMPORT_FIELD_KKCOMENT			= "KKCOMENT";
	public static final String CODE_IMPORT_FIELD_KKSYOUMEI		= "KKSYOUMEI";
	public static final String CODE_IMPORT_FIELD_KKJIKAN			= "KKJIKAN";
	public static final String CODE_IMPORT_FIELD_NIJIKYU			= "NIJIKYU";
	public static final String CODE_IMPORT_FIELD_NZAJIKAN			= "NZAJIKAN";
	

	/* 出力ファイル名 */
	public static final String FILE_CASH_KIND_LIST    = "cashKindList.xls";
	public static final String FILE_CASH_KIND_LIST_ODS    = "cashKindList.ods";
	public static final String FILE_BANK_FRKOM_LIST  = "bankFrkomList.xls";
	public static final String FILE_BANK_FRKOM_LIST_ODS  = "bankFrkomList.ods";
	public static final String FILE_COMPANY_BANK_FRKOM_LIST  = "companyBankFrkomList.xls";
	public static final String FILE_COMPANY_BANK_FRKOM_LIST_ODS  = "companyBankFrkomList.ods";
	public static final String FILE_RES_TAX_PARSON_LIST      = "residenceTaxParsonList.xls";
	public static final String FILE_RES_TAX_PARSON_LIST_ODS      = "residenceTaxParsonList.ods";
	public static final String FILE_RES_TAX_LIST      = "residenceTaxList.xls";
	public static final String FILE_RES_TAX_LIST_ODS      = "residenceTaxList.ods";
	
	/* テンプレートファイル */
	public static final String TEMPLATE_CASH_KIND_LIST  = "/template/cashKindList.xls";
	public static final String TEMPLATE_CASH_KIND_LIST_ODS  = "/template/cashKindList.ods";
	public static final String TEMPLATE_BANK_FRKOM_LIST  = "/template/bankFrkomList.xls";
	public static final String TEMPLATE_BANK_FRKOM_LIST_ODS  = "/template/bankFrkomList.ods";
	public static final String TEMPLATE_COMPANY_BANK_FRKOM_LIST  = "/template/companyBankFrkomList.xls";
	public static final String TEMPLATE_COMPANY_BANK_FRKOM_LIST_ODS  = "/template/companyBankFrkomList.ods";
	public static final String TEMPLATE_RES_TAX_PARSON_LIST      = "/template/residenceTaxParsonList.xls";
	public static final String TEMPLATE_RES_TAX_PARSON_LIST_ODS      = "/template/residenceTaxParsonList.ods";
	public static final String TEMPLATE_RES_TAX_LIST      = "/template/residenceTaxList.xls";
	public static final String TEMPLATE_RES_TAX_LIST_ODS      = "/template/residenceTaxList.ods";
	
	/* 共通項目名(帳票) */
	public static final String BRACKET_LEFT    = "【";
	public static final String BRACKET_RIGHT   = "】";
	public static final String NAM_YEAR               = "年";
	public static final String NAM_MONTH              = "月";
	public static final String NAM_DAY                = "日";
	public static final String NMA_SUBTOTAL           = "小計";
	public static final String NMA_SHARE              = "口";
	public static final String NMA_YOKIN              = "預金";
	public static final String NAM_CITY_PARSON_TOTAL = "市町村計"      ;
	public static final String BRACKET_LEFT2    = "[";
	public static final String BRACKET_RIGHT2   = "]";
	

}
