/*******************************************************************************
*	 All Rights reserved,Copyright (c) K-Opticom 
********************************************************************************
*＜プログラム内容＞
*	システム名		：eo顧客基幹システム
*	モジュール名	：JSYejbEKK1761B001TPDA
*	ソースファイル名：JSYejbEKK1761B001TPDA.java
*	作成者			：EK907066
*	日付			：2012年04月11日
*＜機能概要＞
*	契約内容別異動区分候補一覧照会テンプレートDBアクセス部品です。
*＜修正履歴＞
*	バージョン	修正日		修正者		修正内容
*	ｖ1.00.00
*
********************************************************************************/

package eo.ejb.cbs.sqlf;

import com.fujitsu.futurity.model.base.CAANMsg;
import com.fujitsu.futurity.model.base.CAANSQLFacility;
import com.fujitsu.futurity.model.base.CAANRuntimeException;
import com.fujitsu.futurity.model.base.CAANJDBCUtil;
import com.fujitsu.futurity.model.ejb.common.JSYejbConnection;
import com.fujitsu.futurity.model.ejb.common.JSYejbLog;
import com.fujitsu.futurity.model.ejb.common.StatusCodes;
import com.fujitsu.futurity.model.ejb.common.fw.TemplateDBAccessHandler;
import com.fujitsu.futurity.model.ejb.common.fw.AgentDispatchContext;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;

import eo.ejb.cbs.cbsmsg.EKK1761B001CBSMsg;
import eo.ejb.cbs.cbsmsg.EKK1761B001CBSMsg1List;
import eo.ejb.cbm.entity.KK1761ETMsg;
import eo.ejb.common.JKKModelCommon;

/**
*
*  テンプレートDBアクセス部品　EKK1761B001_SQLF<br>
*  入力された項目からSQL文を動的に組み立て、<br>
*  検索結果をCBSMsgにセットします。<br>
*/
public class JSYejbEKK1761B001TPDA extends CAANSQLFacility implements TemplateDBAccessHandler{
	
	/**
	 * コンストラクタ
	 */
	public JSYejbEKK1761B001TPDA()	{
	}
	
	/**
	*   EKK1761B001_SQLF<br>
	*   @param inMsg    入力値の格納されたCBSMsg <br>
	*   @return void
	*/
	public void invoke(CAANMsg inMsg,AgentDispatchContext inContext){
		
		// コネクション
		Connection con1 = null;
		
		// プリペアステートメント
		PreparedStatement pstmt = null;
		
		// リザルトセット
		ResultSet rsltQuery = null;
		
		// PreparedStatementのパラメータカウント
		int iPCnt = 0;

		/******************** 
		 * SQL文の作成
		 ********************/

		try{
			
			//コネクション取得
			con1 = JSYejbConnection.getConnection(KK1761ETMsg.getTableName());
			
			
			// SQL文_基本部1
			StringBuffer sql_Buff = new StringBuffer();
			sql_Buff.append(" SELECT ")
					.append("     KK1761.KNYO_BT_IDV_KHO_NO ")
					.append("    ,KK1761.PRC_GRP_CD ")
					.append("    ,KK1761.PCRS_CD ")
					.append("    ,KK1761.PPLAN_CD ")
					.append("    ,KK1761.SVC_KEI_STAT ")
					.append("    ,KK1761.PAUSE_STP_CD ")
					.append("    ,KK1761.SVC_KEI_UCWK_STAT_HTEL_1 ")
					.append("    ,KK1761.SVC_KEI_UCWK_STAT_HTEL_2 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_1 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_2 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_3 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_4 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_5 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_6 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_7 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_8 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_9 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_10 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_11 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_12 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_13 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_14 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_15 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_16 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_17 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_18 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_19 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_20 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_21 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_22 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_23 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_24 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_25 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_26 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_27 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_28 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_29 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_30 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_31 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_32 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_33 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_34 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_35 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_36 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_37 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_38 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_39 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_40 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_41 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_42 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_43 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_44 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_45 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_46 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_47 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_48 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_49 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_50 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_51 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_52 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_53 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_54 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_55 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_56 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_57 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_58 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_59 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_60 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_61 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_62 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_63 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_64 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_65 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_66 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_67 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_68 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_69 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_70 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_71 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_72 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_73 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_74 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_75 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_76 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_77 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_78 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_79 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_80 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_81 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_82 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_83 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_84 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_85 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_86 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_87 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_88 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_89 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_90 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_91 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_92 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_93 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_94 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_95 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_96 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_97 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_98 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_99 ")
					.append("    ,KK1761.CHPSB_IDO_DIV_100 ")
					.append("    ,KK1761.KNYO_BT_IDV_KHO_TSTAYMD ")
					.append("    ,KK1761.KNYO_BT_IDV_KHO_TENDYMD ")
					.append("    ,KK1761.ADD_DTM ")
					.append("    ,KK1761.ADD_OPEACNT ")
					.append("    ,KK1761.UPD_DTM ")
					.append("    ,KK1761.UPD_OPEACNT ")
					.append("    ,KK1761.DEL_DTM ")
					.append("    ,KK1761.DEL_OPEACNT ")
					.append("    ,KK1761.MK_FLG ")
					.append(" FROM  KK_M_KNYO_BT_IDV_KHO KK1761 ");
			// SQL文_個別部1
			if ( "1".equals( inMsg.getObject(EKK1761B001CBSMsg.FUNC_CODE).toString() ) ) {
 				sql_Buff.append(" WHERE KK1761.PRC_GRP_CD = ? ")
						.append("   AND KK1761.PCRS_CD = ? ")
						.append("   AND KK1761.PPLAN_CD = ? ")
						.append("   AND KK1761.SVC_KEI_STAT = ? ")
						.append("   AND KK1761.KNYO_BT_IDV_KHO_TSTAYMD <= ? ")
						.append("   AND KK1761.KNYO_BT_IDV_KHO_TENDYMD >= ? ")
						.append("   AND MK_FLG = '0' ");
 				//検索条件を追加（KEY_PAUSE_STP_CD)）
 				if(!inMsg.isNull(EKK1761B001CBSMsg.KEY_PAUSE_STP_CD))
 				{
 					sql_Buff.append("   AND KK1761.PAUSE_STP_CD = ? ");
 				}
 				//検索条件を追加（）
 				if(!inMsg.isNull(EKK1761B001CBSMsg.KEY_SVC_KEI_UCWK_STAT_HTEL_1))
 				{
 					sql_Buff.append("   AND KK1761.SVC_KEI_UCWK_STAT_HTEL_1 = ? ");
 				}
 				//検索条件を追加（）
 				if(!inMsg.isNull(EKK1761B001CBSMsg.KEY_SVC_KEI_UCWK_STAT_HTEL_2))
 				{
 					sql_Buff.append("   AND KK1761.SVC_KEI_UCWK_STAT_HTEL_2 = ? ");
 				}
			}
			
			//prepareStatementにSQL文をセット
			pstmt = con1.prepareStatement(sql_Buff.toString());
			
			//ログ出力(SQL文の出力)
			JSYejbLog.outlog(inContext, JSYejbLog.DBACCESS, this.getClass(), sql_Buff);
			
			// PreparedStatementの指定されたパラメータカラムに 指定された値を設定
			if ( "1".equals( inMsg.getString(EKK1761B001CBSMsg.FUNC_CODE) ) ) {
				// パラメータの設定(ＫＥＹ＿料金グループコードを指定)
				CAANJDBCUtil.setParam(pstmt, ++iPCnt, inMsg.getObject(EKK1761B001CBSMsg.KEY_PRC_GRP_CD));
				// パラメータの設定(ＫＥＹ＿料金コースコードを指定)
				CAANJDBCUtil.setParam(pstmt, ++iPCnt, inMsg.getObject(EKK1761B001CBSMsg.KEY_PCRS_CD));
				// パラメータの設定(ＫＥＹ＿料金プランコードを指定)
				CAANJDBCUtil.setParam(pstmt, ++iPCnt, inMsg.getObject(EKK1761B001CBSMsg.KEY_PPLAN_CD));
				// パラメータの設定(ＫＥＹ＿サービス契約ステータスを指定)
				CAANJDBCUtil.setParam(pstmt, ++iPCnt, inMsg.getObject(EKK1761B001CBSMsg.KEY_SVC_KEI_STAT));
				// 検索条件を追加（運用日付)
				CAANJDBCUtil.setParam(pstmt, ++iPCnt, JKKModelCommon.getOpeDate(inMsg));
				// 検索条件を追加（運用日付)
				CAANJDBCUtil.setParam(pstmt, ++iPCnt, JKKModelCommon.getOpeDate(inMsg));
				// 検索条件を追加（ＫＥＹ＿休止中断コード)
 				if(!inMsg.isNull(EKK1761B001CBSMsg.KEY_PAUSE_STP_CD))
 				{
 					CAANJDBCUtil.setParam(pstmt, ++iPCnt, inMsg.getObject(EKK1761B001CBSMsg.KEY_PAUSE_STP_CD));
 				}
 				// 検索条件を追加（ＫＥＹ＿サービス契約内訳ステータス（光電話１））
 				if(!inMsg.isNull(EKK1761B001CBSMsg.KEY_SVC_KEI_UCWK_STAT_HTEL_1))
 				{
 					CAANJDBCUtil.setParam(pstmt, ++iPCnt, inMsg.getObject(EKK1761B001CBSMsg.KEY_SVC_KEI_UCWK_STAT_HTEL_1));
 				}
 				// 検索条件を追加（ＫＥＹ＿サービス契約内訳ステータス（光電話２））
 				if(!inMsg.isNull(EKK1761B001CBSMsg.KEY_SVC_KEI_UCWK_STAT_HTEL_2))
 				{
 					CAANJDBCUtil.setParam(pstmt, ++iPCnt, inMsg.getObject(EKK1761B001CBSMsg.KEY_SVC_KEI_UCWK_STAT_HTEL_2));
 				}
 				
			}
			
			// ResultSetの取得
			rsltQuery = pstmt.executeQuery();
			
			// EKK1761B001CBSMsgの明細にセットする項目
			String[] msgKeyList1 = {
					  EKK1761B001CBSMsg1List.KNYO_BT_IDV_KHO_NO
					, EKK1761B001CBSMsg1List.PRC_GRP_CD
					, EKK1761B001CBSMsg1List.PCRS_CD
					, EKK1761B001CBSMsg1List.PPLAN_CD
					, EKK1761B001CBSMsg1List.SVC_KEI_STAT
					, EKK1761B001CBSMsg1List.PAUSE_STP_CD
					, EKK1761B001CBSMsg1List.SVC_KEI_UCWK_STAT_HTEL_1
					, EKK1761B001CBSMsg1List.SVC_KEI_UCWK_STAT_HTEL_2
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_1
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_2
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_3
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_4
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_5
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_6
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_7
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_8
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_9
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_10
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_11
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_12
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_13
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_14
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_15
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_16
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_17
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_18
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_19
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_20
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_21
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_22
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_23
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_24
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_25
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_26
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_27
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_28
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_29
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_30
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_31
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_32
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_33
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_34
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_35
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_36
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_37
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_38
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_39
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_40
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_41
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_42
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_43
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_44
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_45
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_46
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_47
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_48
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_49
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_50
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_51
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_52
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_53
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_54
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_55
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_56
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_57
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_58
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_59
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_60
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_61
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_62
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_63
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_64
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_65
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_66
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_67
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_68
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_69
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_70
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_71
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_72
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_73
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_74
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_75
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_76
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_77
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_78
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_79
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_80
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_81
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_82
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_83
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_84
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_85
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_86
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_87
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_88
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_89
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_90
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_91
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_92
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_93
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_94
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_95
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_96
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_97
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_98
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_99
					, EKK1761B001CBSMsg1List.CHPSB_IDO_DIV_100
					, EKK1761B001CBSMsg1List.KNYO_BT_IDV_KHO_TSTAYMD
					, EKK1761B001CBSMsg1List.KNYO_BT_IDV_KHO_TENDYMD
					, EKK1761B001CBSMsg1List.ADD_DTM
					, EKK1761B001CBSMsg1List.ADD_OPEACNT
					, EKK1761B001CBSMsg1List.UPD_DTM
					, EKK1761B001CBSMsg1List.UPD_OPEACNT
					, EKK1761B001CBSMsg1List.DEL_DTM
					, EKK1761B001CBSMsg1List.DEL_OPEACNT
					, EKK1761B001CBSMsg1List.MK_FLG
			};
			
			// 明細に処理結果(ResultSet)をマッピング
			CAANMsg[] outMsg1 = mapMessageList(rsltQuery,msgKeyList1,"eo.ejb.cbs.cbsmsg.EKK1761B001CBSMsg1List",0);
			// inMsg(CBSMsg)に明細をセット
			inMsg.set("EKK1761B001CBSMsg1List", outMsg1);
			

		} catch(SQLException e) {
			inMsg.set(EKK1761B001CBSMsg.STATUS, StatusCodes.FIND_DB_ERR);
			throw new CAANRuntimeException(e);
		} finally {
			// 資源の解放
			try{
				if(rsltQuery != null){
					rsltQuery.close();
				}
				if(pstmt != null){
					pstmt.close();
				}
				if(con1 != null){
					closeConnection(con1);
				}
			}catch(SQLException e){
				inMsg.set(EKK1761B001CBSMsg.STATUS, StatusCodes.FIND_DB_ERR);
				throw new CAANRuntimeException(e);
			}
		}
	}
}
