<%@ page language="java" contentType="text/html; charset=utf-8"%>
<%@ page import="java.io.*"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	response.setHeader("Pragma", "No-cache");
	response.setHeader("Cache-Control", "no-cache");
	response.setHeader("Expires", "0");
%>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<jsp:include page="/jsp/common/include/css.jsp"/>
<jsp:include page="/jsp/common/include/script.jsp"/>
<script language="javascript" src="<c:url value="/js/jquery.mask.min.js"/>"></script>
<script language="javascript" >
var url ='<c:url value="/bap/transaction/transactionStatusMan.json" />';
var detailList;
var stageList;
var fileList;

function statusFormat (cellvalue){
	if ( cellvalue == 'T' ){
		return '정상';
	} else if ( cellvalue == 'V' ) {
		return '검증완료';
	} else if ( cellvalue == 'H' ) {
		return '보류';
	} else if ( cellvalue == 'J' ) {
		return '종결';
	} else if ( cellvalue == 'Q' ) {
		return '수행대기';
	} else if ( cellvalue == 'C' ) {
		return '사용자중지';
	} else if ( cellvalue == 'N' ) {
		return '파일없음';
	} else if ( cellvalue == 'S' ) {
		return '<span style="color:blue">진행중</span>';
	} else if ( cellvalue == 'E' ) {
		return '<span style="color:red">비정상종료</span>';
	}
	return "";
}

function getSubLayerName (cellvalue){
	if ( cellvalue == 'UI' ){
		return '관리화면';
	} else if ( cellvalue == 'FE' ) {
		return '파일이벤트';
	} else if ( cellvalue == 'DV' ) {
		return '데이터검증';
	} else if ( cellvalue == 'HD' ) {
		return '보류';
	} else if ( cellvalue == 'CL' ) {
		return '종결';
	} else if ( cellvalue == 'SS' ) {
		return '소켓서버';
	} else if ( cellvalue == 'SQ' ) {
		return '스케쥴러(대기)';
	} else if ( cellvalue == 'SP' ) {
		return '스케쥴러(진행)';
	} else if ( cellvalue == 'FC' ) {
		return '플로우컨트롤러';
	} else if ( cellvalue == 'ST' ) {
		return 'F/C 개시 단계';
	} else if ( cellvalue == 'FI' ) {
		return 'F/C 파일정보교환 단계';
	} else if ( cellvalue == 'DS' ) {
		return 'F/C Data 송수신 단계';
	} else if ( cellvalue == 'MI' ) {
		return 'F/C 결번정보교환 단계';
	} else if ( cellvalue == 'MS' ) {
		return 'F/C 결번 송수신 단계';
	} else if ( cellvalue == 'UE' ) {
		return 'F/C 단위업무종료 단계';
	} else if ( cellvalue == 'AE' ) {
		return 'F/C 전업무종료 단계';
	} else if ( cellvalue == 'EX' ) {
		return 'F/C 예외 단계';
	} else if ( cellvalue == 'LT' ) {
		return 'F/C 시스템회선상태확인 단계';
	} else if ( cellvalue == 'SE' ) {
		return 'F/C 시스템장애통보 단계';
	} else if ( cellvalue == 'SR' ) {
		return 'F/C 시스템장애회복통보 단계';
	} else if ( cellvalue == 'CK' ) {
		return 'F/C 요구송신 테스트전문단계';
	}
	return "";
}

function detail(key1, key2) {
	$.ajax({
		type: "POST",
		url: url,
		dataType: "json",
		data: { cmd: 'DETAIL_FILE', bjobDmndMsgID: key1, bjobDmndSubMsgID: key2, page: 1, rows: 20 },
		success: function(json) {
			detailList = json.detail;
			fileList   = json.file;
			$("#detailForm input, #detailForm select").each(function() {
				var name = $(this).attr("name");
				$(this).val(detailList[name.toUpperCase()]);
			});

			$("#gridFile")[0].addJSONData(fileList);

			var postDataFile = getSearchForJqgrid("cmd", "DETAIL_FILE");
			postDataFile["bjobDmndMsgID"]    = key1;
			postDataFile["bjobDmndSubMsgID"] = key2;
			$("#gridFile").setGridParam({ url:url, postData: postDataFile, page : 1, rows: 20 }).trigger("reloadGrid");

			//$("#gridFile").jqGrid('setSelection', $("#gridFile").getDataIDs()[0], true);
		},
		error: function(e) {
			alert(e.responseText);
		}
	});

	$.ajax({
		type: "POST",
		url: url,
		dataType: "json",
		data: { cmd: 'DETAIL_STAGE', bjobDmndMsgID: key1, bjobDmndSubMsgID: key2, page: 1, rows: 20 },
		success: function(json) {
			detailList = json.detail;
			stageList  = json.stage;
			$("#detailForm input, #detailForm select").each(function() {
				var name = $(this).attr("name");
				$(this).val(detailList[name.toUpperCase()]);
			});

			$("#gridStage")[0].addJSONData(stageList);

			var postDataStage = getSearchForJqgrid("cmd", "DETAIL_STAGE");
			postDataStage["bjobDmndMsgID"]    = key1;
			postDataStage["bjobDmndSubMsgID"] = key2;
			$("#gridStage").setGridParam({ url:url, postData: postDataStage, page : 1, rows: 20 }).trigger("reloadGrid");

			//$("#gridStage").jqGrid('setSelection', $("#gridStage").getDataIDs()[0], true);
		},
		error: function(e) {
			alert(e.responseText);
		}
	});

}

$(document).ready(function() {
	var returnUrl = getReturnUrlForReturn();

	var key1 ="${param.bjobDmndMsgID}";
	var key2 ="${param.bjobDmndSubMsgID}";
	$("input[name*=HMS]").inputmask("9999-99-99 99:99:99.999",{'autoUnmask':true});
	$("select").attr('disabled',true);
	$("select").css({'background-color' : '#ffffff'});
	$("input[name*=Size]").inputmask('decimal',{groupSeparator:',',digits:0,autoGroup:true,prefix:'',rightAlign:false,autoUnmask:true,removeMaskOnSubmit:true});

	$("ul.tabs li").click(function() {
		$("ul.tabs li").removeClass("active").css("color", "#333");
		$(this).addClass("active").css("color", "darkred");
		$(".tab_container").hide();
		var activeTab = $(this).attr("rel");
		$("#" + activeTab + "Div").show();
	});

	$('#gridFile').jqGrid({
		datatype: "json",
		mtype: 'POST',
		colNames: [ 'UUID',
					'SUBUUID',
					'파일명',
					'자료건수',
					'파일크기',
					'파일상태',
					'파일시작시각',
					'파일종료시각',
					'작업구분',
					'거래구분',
					'파일경로',
					'저장파일명',
					'장애발생내용'
				  ],
		colModel: [ { name: 'BJOBDMNDMSGID'            , align: 'left'   , hidden:true },
					{ name: 'BJOBDMNDSUBMSGID'         , align: 'left'   , hidden:true },
					{ name: 'SNDRCVFILENAME'           , align: 'left'   , width: '70' },
					{ name: 'SNDRCVRECCNT'             , align: 'right'  , width: '70'  , formatter: 'integer' },
					{ name: 'SNDRCVFILESIZE'           , align: 'right'  , width: '70'  , formatter: 'integer' },
					{ name: 'THISSTGEPRCSSRSULTCD'     , align: 'center' , width: '70'  , formatter: statusFormat },
					{ name: 'FILETRSMTSTARTHMS'        , align: 'center' , width: '159' , formatter: timeStampFormat },
					{ name: 'FILETRSMTENDHMS'          , align: 'center' , width: '159' , formatter: timeStampFormat },
					{ name: 'BJOBMSGDSTICNAME'         , align: 'left'   , width: '70' },
					{ name: 'BJOBTRANDSTCDNAME'        , align: 'left'   , width: '70' },
					{ name: 'RQSTRECVFILESTORGDIRNAME' , align: 'left'   , width: '70' },
					{ name: 'BKUPSNDRCVFILENAME'       , align: 'left'   , width: '70' },
					{ name: 'EAIOBSTCLOCCURCAUSCTNT'   , align: 'left'   , width: '200'}
				  ],
		jsonReader: {
			root: "file",
			repeatitems: false
		},
		pager: $('#pagerFile'),
		page: '${param.pageFile}',
		rowNum: 10,
		rowList: eval('[${rmsDefaultRowList}]'),
		//autoheight: true,
		height: 250, //$("#container").height(),
		autowidth: true,
		viewrecords: true,
		onSelectRow: function(rowId) {
			var rowData = $(this).getRowData(rowId);
			$("#fileForm input,#fileForm select,#fileForm textarea").each(function() {
				try {
					var name = $(this).attr("name");
					var tag  = $(this).prop("tagName").toLowerCase();
					$(this).val(fileList[rowId-1][name.toUpperCase()]);
				} catch(e) {}
			});
		},
		loadComplete: function (json) {
			fileList = json.file;
			$(this).jqGrid('setSelection', $(this).getDataIDs()[0], true);
		}
	});

	$('#gridStage').jqGrid({
		datatype: "json",
		mtype: 'POST',
		colNames: [ 'UUID',
					'SUBUUID',
					'처리단계',
					'흐름규칙',
					'흐름단계',
					'흐름단계설명',
					'흐름번호',
					'흐름유형',
					'전문코드',
					'응답코드',
					'단계상태',
					'단계시작시각',
					'단계종료시각',
					'작업구분',
					'거래구분코드',
					'파일명',
					'장애발생내용'
				  ],
		colModel: [ { name: 'BJOBDMNDMSGID'         , align: 'left'   , hidden:true },
					{ name: 'BJOBDMNDSUBMSGID'      , align: 'left'   , hidden:true },
					{ name: 'PRCSSSTGEDSTCD'        , align: 'left'   , width: '100' , formatter: getSubLayerName},
					{ name: 'BJOBRULECD'            , align: 'center' , width: '70' },
					{ name: 'BJOBSTGECD'            , align: 'right'  , width: '70' },
					{ name: 'BJOBSTGEFLXBLCNDNDESC' , align: 'center' , width: '159'},
					{ name: 'BJOBNODECASNO'         , align: 'center' , width: '50' },
					{ name: 'BJOBSTGEPTRNNAME'      , align: 'center' , width: '50' },
					{ name: 'TELGMPERTYPCDVALCTNT'  , align: 'left'   , width: '70' },
					{ name: 'RSPNSCDVALCTNT'        , align: 'left'   , width: '70' },
					{ name: 'THISSTGEPRCSSRSULTCD'  , align: 'center' , width: '70'  , formatter: statusFormat },
					{ name: 'THISSTGESTARTHMS'      , align: 'center' , width: '159' , formatter: timeStampFormat },
					{ name: 'THISSTGEENDHMS'        , align: 'center' , width: '159' , formatter: timeStampFormat },
					{ name: 'BJOBMSGDSTICNAME'      , align: 'left'   , width: '70' },
					{ name: 'BJOBTRANDSTCDNAME'     , align: 'left'   , width: '70' },
					{ name: 'SNDRCVFILENAME'        , align: 'left'   , width: '70' },
					{ name: 'EAIOBSTCLOCCURCAUSCTNT', align: 'left'   , width: '200'}
				  ],
		jsonReader: {
			root: "stage",
			repeatitems: false
		},
		pager: $('#pagerStage'),
		page: '${param.pageStage}',
		rowNum: 10,
		//rowNum: 10000,
		rowList: eval('[${rmsDefaultRowList}]'),
		//autoheight : true,
		height: 250, //$("#container").height(),
		autowidth: true,
		viewrecords: true,
		onSelectRow: function(rowId) {
			$("#stageForm input, #stageForm select, #stageForm textarea").each(function() {
				try {
					var name = $(this).attr("name");
					$(this).val(stageList[rowId-1][name.toUpperCase()]);
				} catch(e) {}
			});
		},
		loadComplete: function (json){
			stageList = json.stage;
			$(this).jqGrid('setSelection', $(this).getDataIDs()[0], true);
		},
		loadBeforeSend: function (xhr,settings) {
			if( this.p.url ==null || this.p.url == "" ) {
				this.p.loadBeforeSend = null;
				return false;
			}
		},
		loadError: function (jqXHR, textStatus, errorThrown) {
			if(jqXHR.status == 401) {
				var location ='<%=request.getContextPath()%>/';
				comloadError(jqXHR, textStatus, errorThrown ,location);
			}
		}
	});

	resizeJqGridWidth('gridFile','tabFile','1000');
	resizeJqGridWidth('gridStage','tabStage','1000');

	$("#btn_previous").click(function() {
		returnUrl+='&activeTab='+"${param.activeTab}";
		goNav(returnUrl);//LIST로 이동
	});

	$("#btn_systeminst_popup").click(function() {
		var bjobBzwkDstcd = $("input[name=bjobBzwkDstcd]").val();
		var osidInstiDstcd = $("input[name=osidInstiDstcd]").val();
		var popUrl = '<c:url value="/bap/admin/work/systemInstMan.view" />';
		popUrl += '?cmd=DETAIL';
		popUrl += '&bjobBzwkDstcd=' + bjobBzwkDstcd;
		popUrl += '&osidInstiDstcd=' + osidInstiDstcd;
		popUrl += '&ispop=Y';

		var args = new Object();
		args['ispop'] = 'Y';
		
		var result = showModal(popUrl, args, 1200, 700, function(arg) {
			var args = null;
			if( arg == null || arg == undefined ) {//chrome
				args = this.dialogArguments;
				args.returnValue = this.returnValue;
			} else {//ie
				args = arg;
			}

			if( !args || !args.returnValue ) return;
		});
	});

	$("#btn_messageproc_popup").click(function() {
		var bjobMsgDstcd = $("input[name=bjobMsgDstcd]").val();
		if( bjobMsgDstcd.trim() == '' ) {
			alert('거래파일 정보를 선택하십시요.');
			return false;
		}

		var popUrl = '<c:url value="/bap/admin/work/messageProcMan.view" />';
		popUrl += '?cmd=DETAIL';
		popUrl += '&bjobMsgDstcd=' + bjobMsgDstcd;
		popUrl += '&ispop=Y';

		var args = new Object();
		args['ispop'] = 'Y';
		
		var result = showModal(popUrl, args, 1200, 700, function(arg) {
			var args = null;
			if( arg == null || arg == undefined ) {//chrome
				args = this.dialogArguments;
				args.returnValue = this.returnValue;
			} else {//ie
				args = arg;
			}

			if( !args || !args.returnValue ) return;
		});
	});

	$("#btn_filedetail_popup").click(function() {
		var rcvFileName = $("input[name=rqstRecvFileStorgDirName]").val() + "/" + $("input[name=bkupSndrcvFileName]").val();
		var bjobMsgDstcd = $("input[name=bjobMsgDstcd]").val();

		if( bjobMsgDstcd.trim() == '' ) {
			alert('거래파일 정보를 선택하십시요.');
			return false;
		}

		if( $("input[name=bkupSndrcvFileName]").val() == '' ){
			alert('저장된 파일명이 없습니다.');
			return false;
		}

		var popUrl = '<c:url value="/bap/transaction/transactionStatusMan.view" />' + '?cmd=POPUP';
		var args = new Object();
		args['rcvFileName'] = rcvFileName;
		args['bjobMsgDstcd'] = bjobMsgDstcd;
		args['ispop'] = true;

		var result = showModal(popUrl, args, 800, 700, function(arg) {
			var args = null;
			if( arg == null || arg == undefined ) {//chrome
				args = this.dialogArguments;
				args.returnValue = this.returnValue;
			} else {//ie
				args = arg;
			}

			if( !args || !args.returnValue ) return;
		});
	});

	buttonControl();
	detail(key1,key2);

	$("ul.tabs li:first").trigger("click");
});

</script>
</head>
<body>
<div class="right_box">
	<div class="content_top">
		<ul class="path">
			<li><a href="#">${rmsMenuPath}</a></li>
		</ul>
	</div><!-- end content_top -->
	<div class="content_middle" id="title">
		<div class="search_wrap">
			<img src="<c:url value="/img/btn_previous.png"/>" alt="" id="btn_previous" level="R" status="DETAIL,NEW"/>
		</div>
		<div class="title">거래로그상세</div>
	
	<!-- detail -->
	<form id="detailForm">
	<input type="hidden" readonly="readonly" name="osidInstiDstcd"/>
	<div class="container">
		<div class="left full" >
			<p class="comment">▣ 거래 기본 정보</p>
		</div>
	</div>
	<table class="table_row" width="100%" cellspacing="0">
		<colgroup>
			<col width="7%">
			<col width="18%">
			<col width="7%">
			<col width="14%">
			<col width="4%">
			<col width="7%">
			<col width="18%">
		</colgroup>
		<tr>
			<th class="detail_title">UUID</th><td><input type="text" readonly="readonly" name="bjobDmndMsgID" style="width:100%"/></td>
			<th class="detail_title">대외기관</th><td style="border-right: 0px; padding-right:0px;"><input type="text" readonly="readonly" name="osidInstiName" style="width:100%"/></td>
			<td><img id="btn_systeminst_popup" src="<c:url value="/img/btn_pop_detail.png" />" class="btn_img" /></td>
			<th class="detail_title">인스턴스명</th><td><input type="text" readonly="readonly" name="eaiSevrInstncName" style="width:100%"/></td>
			<th class="detail_title">대외기관IP</th><td><input type="text" readonly="readonly" name="lnkgIPInfoName" style="width:100%"/></td>
		</tr>
		<tr>
			<th class="detail_title">SUB_UUID</th><td><input type="text" readonly="readonly" name="bjobDmndSubMsgID" style="width:100%"/></td>
			<th class="detail_title">거래처리시간</th><td colspan="2"><input type="text" readonly="readonly" name="tranStartHMS" style="width:100%"/></td>
			<th class="detail_title">흐름규칙코드</th><td><input type="text" readonly="readonly" name="flowRuleCd" style="width:100%"/></td>
			<th class="detail_title">메시지송신자</th><td><input type="text" readonly="readonly" name="msgSndrID" style="width:100%"/></td>
		</tr>
		<tr>
			<th class="detail_title">작업유형</th>
			<td>
				<select name="bjobPtrnDstcd" style="width:100%">
					<option value="AR">응답수신</option>
					<option value="AS">응답송신</option>
					<option value="RS">요구송신</option>
					<option value="RR">요구수신</option>
				</select>
			</td>
			<th class="detail_title">작업상태</th>
			<td colspan="2">
				<select name="tranPrcssDstcd" style="width:100%">
					<option value=""></option>
					<option value="V">검증완료</option>
					<option value="H">보류</option>
					<option value="J">종결</option>
					<option value="Q">수행대기</option>
					<option value="S">진행중</option>
					<option value="T">정상종료</option>
					<option value="E">비정상종료</option>
					<option value="C">사용자중지</option>
					<option value="N">파일없음</option>
				</select>
			</td>
			<th class="detail_title">업무구분</th>
			<td><input type="text" readonly="readonly" name="bjobBzwkDstcd" style="width:100%"/></td>
			<th class="detail_title">메시지생성시간</th><td><input type="text" readonly="readonly" name="bjobDmndMsgCretnHMS" style="width:100%"/></td>
		</tr>
	</table>
	</form>
	<div id="container-1">
		<ul class="tabs">
			<li class="active" rel="tabFile">▣ 거래 파일 정보</li>
			<li rel="tabStage">▣ 거래 처리단계 리스트</li>
		</ul>
		<div id="tabFileDiv" class="tab_container" style="width:100%">
			<div id="tabFile" class="tab_content">
				<table id="gridFile"></table>
				<form id="fileForm">
					<div id="pagerFile"></div>
					<table class="table_row" width="100%" cellspacing="0" style="margin-top:10px;">
						<colgroup>
							<col width="15%">
							<col width="30%">
							<col width="5%">
							<col width="15%">
							<col width="30%">
							<col width="5%">
						</colgroup>
						<tr>
							<th class="detail_title">거래구분</th>
							<td style="border-right: 0px; padding-right:0px;"><input type="text" readonly="readonly" name="bjobMsgDstcd" style="width:100%"/></td>
							<td><img id="btn_messageproc_popup" src="<c:url value="/img/btn_pop_detail.png" />" class="btn_img" /></td>
							<th class="detail_title">파일크기</th><td colspan="2"><input type="text" readonly="readonly" name="sndrcvFileSize" style="width:100%"/></td>
						</tr>
						<tr>
							<th class="detail_title">거래파일명</th>
							<td colspan="2"><input type="text" readonly="readonly" name="sndrcvFileName" style="width:100%"/></td>
							<th class="detail_title">저장된파일명</th>
							<td style="border-right: 0px; padding-right:0px;"><input type="text" readonly="readonly" name="bkupSndrcvFileName" style="width:100%;"/></td>
							<td><img id="btn_filedetail_popup" src="<c:url value="/img/btn_pop_detail.png" />" class="btn_img" /></td>
						</tr>
						<tr>
							<th class="detail_title">파일경로</th>
							<td colspan="2"><input type="text" readonly="readonly" name="rqstRecvFileStorgDirName" style="width:100%"/></td>
							<th class="detail_title">파일처리시간</th>
							<td colspan="2"><input type="text" readonly="readonly" name="fileTrsmtStartHMS" style="width:100%"/></td>
						</tr>
						<tr>
							<th class="detail_title">파일전송상태</th>
							<td colspan="2">
								<select name="thisStgePrcssRsultCd" style="width:100%">
									<option value=""></option>
									<option value="V">검증완료</option>
									<option value="H">보류</option>
									<option value="J">종결</option>
									<option value="Q">수행대기</option>
									<option value="S">진행중</option>
									<option value="T">정상종료</option>
									<option value="E">비정상종료</option>
									<option value="C">사용자중지</option>
									<option value="N">파일없음</option>
								</select>
							</td>
							<th class="detail_title">파일담당자</th>
							<td colspan="2"><input type="text" readonly="readonly" name="thisMsgChrgIDs" style="width:100%"/></td>
						</tr>
						<tr>
							<th class="detail_title">체크파일내용</th>
							<td colspan="5"><input type="text" readonly="readonly" name="hdrInfoName" style="width:100%"/></td>
						</tr>
						<tr>
							<th class="detail_title">장애내용</th>
							<td colspan="5"><textarea  name="eAIObstclOccurCausCtnt" readonly="readonly" style="width:100%;height:100%"></textarea></td>
						</tr>
						<tr>
							<th class="detail_title">파일 헤더 내용</th>
							<td colspan="5"><textarea  name="bjobFileHdrCtnt" readonly="readonly" style="width:100%;height:100%"></textarea></td>
						</tr>
						<tr>
							<th class="detail_title">파일 트레일러 내용</th>
							<td colspan="5"><textarea  name="bjobFileTrailCtnt" readonly="readonly" style="width:100%;height:100%"></textarea></td>
						</tr>
					</table>
				</form>
			</div>
		</div>
		<div id="tabStageDiv" class="tab_container" style="width:100%;">
			<div id="tabStage" class="tab_content">
				<table id="gridStage"></table>
				<form id="stageForm">
				<div id="pagerStage"></div>
					<table class="table_row" width="100%" cellspacing="0" style="margin-top:10px;">
						<tr>
							<th class="detail_title">처리단계</th>
							<td>
								<select name="prcssStgeDstcd" style="width:100%">
									<option value=" "></option>
									<option value="UI">관리화면</option>
									<option value="FE">파일이벤트</option>
									<option value="DV">데이터검증</option>
									<option value="HD">보류</option>
									<option value="CL">종결</option>
									<option value="SS">소켓서버</option>
									<option value="SQ">스케쥴러(대기)</option>
									<option value="SP">스케쥴러(진행)</option>
									<option value="FC">플로우컨트롤러</option>
									<option value="ST">F/C 개시 단계</option>
									<option value="FI">F/C 파일정보교환 단계</option>
									<option value="DS">F/C Data 송수신 단계</option>
									<option value="MI">F/C 결번정보교환 단계</option>
									<option value="MS">F/C 결번 송수신 단계</option>
									<option value="UE">F/C 단위업무종료 단계</option>
									<option value="AE">F/C 전업무종료 단계</option>
									<option value="EX">F/C 예외 단계</option>
									<option value="LT">F/C 시스템회선상태확인 단계</option>
									<option value="SE">F/C 시스템장애통보 단계</option>
									<option value="SR">F/C 시스템장애회복통보 단계</option>
									<option value="CK">F/C 요구송신 테스트전문단계</option>
								</select>
							</td>
							<th class="detail_title">흐름규칙코드</th><td><input type="text" readonly="readonly" name="bjobRuleCd" style="width:100%"/></td>
							<th class="detail_title">흐름단계코드</th><td><input type="text" readonly="readonly" name="bjobStgeCd" style="width:100%"/></td>
						</tr>
						<tr>
							<th class="detail_title">단계수행번호</th><td><input type="text" readonly="readonly" name="bjobNodeCasNo" style="width:100%"/></td>
							<th class="detail_title">Flow클래스명</th><td><input type="text" readonly="readonly" name="bjobFlowCmpoClsName" style="width:100%"/></td>
							<th class="detail_title">단계유형</th><td><input type="text" readonly="readonly" name="bjobStgePtrnName" style="width:100%"/></td>
						</tr>
						<tr>
							<th class="detail_title">전문결정수행정보<br>(RECV시)</th>
							<td>
								<table width="100%" >
									<tr>
										<td style="border-right:0;border-bottom:0;height:10px;">- TelegramID : </td><td style="border-right:0;border-bottom:0;height:10px;"><input type="text" readonly="readonly" name="telgmDcsnID" style="width:100%;border:0px"/></td>
									</tr>
									<tr>
										<td style="border-right:0;border-bottom:0;height:10px;">- 클래스명  : </td><td style="border-right:0;border-bottom:0;height:10px;"><input type="text" readonly="readonly" name="telgmDcsnClsName" style="width:100%;border:0px"/></td>
									</tr>
									<tr>
										<td style="border-right:0;border-bottom:0;height:10px;">- 전문코드  : </td><td style="border-right:0;border-bottom:0;height:10px;"><input type="text" readonly="readonly" name="telgmDcsnMsgCd" style="width:100%;border:0px"/></td>
									</tr>
								</table>
							</td>
							<th class="detail_title">단계수행정보</th>
							<td>
								<table width="100%" style="border:0px;">
									<tr>
										<td style="border-right:0;border-bottom:0;height:10px;">- TelegramID : </td><td style="border-right:0;border-bottom:0;height:10px;"><input type="text" readonly="readonly" name="thisStgeTelgmID" style="width:100%;border:0px"/></td>
									</tr>
									<tr>
										<td style="border-right:0;border-bottom:0;height:10px;">- 클래스명  : </td><td style="border-right:0;border-bottom:0;height:10px;"><input type="text" readonly="readonly" name="thisStgeClsName" style="width:100%;border:0px"/></td>
									</tr>
									<tr>
										<td style="border-right:0;border-bottom:0;height:10px;">- 전문코드  : </td><td style="border-right:0;border-bottom:0;height:10px;"><input type="text" readonly="readonly" name="thisStgeMsgCd" style="width:100%;border:0px"/></td>
									</tr>
								</table>
							</td>
							<th class="detail_title">전문필드정보</th>
							<td>
								<table style="width:100%;border:0px">
									<tr>
										<td style="border-right:0;border-bottom:0;height:10px;">- 전문종별코드 값 : </td><td style="border-right:0;border-bottom:0;height:10px;"><input type="text" readonly="readonly" name="telgmPertypCdValCtnt" style="width:100%;border:0px"/></td>
									</tr>
									<tr>
										<td style="border-right:0;border-bottom:0;height:10px;">- 거래구분코드 값 : </td><td style="border-right:0;border-bottom:0;height:10px;"><input type="text" readonly="readonly" name="telgmDstcdValCtnt" style="width:100%;border:0px"/></td>
									</tr>
									<tr>
										<td style="border-right:0;border-bottom:0;height:10px;">- 업무관리코드 값 : </td><td style="border-right:0;border-bottom:0;height:10px;"><input type="text" readonly="readonly" name="telgmMgtCdValCtnt" style="width:100%;border:0px"/></td>
									</tr>
									<tr>
										<td style="border-right:0;border-bottom:0;height:10px;">- 응답코드 값  : </td><td style="border-right:0;border-bottom:0;height:10px;"><input type="text" readonly="readonly" name="rspnsCdValCtnt" style="width:100%;border:0px"/></td>
									</tr>
								</table>
							</td>
						</tr>
						<tr>
							<th class="detail_title">거래구분</th><td><input type="text" readonly="readonly" name="bjobMsgDstcd" style="width:100%"/></td>
							<th class="detail_title">거래파일명</th><td><input type="text" readonly="readonly" name="sndrcvFileName" style="width:100%"/></td>
							<th class="detail_title">저장된파일명</th><td><input type="text" readonly="readonly" name="bkupSndrcvFileName" style="width:100%"/></td>
						</tr>
						<tr>
							<th class="detail_title">파일경로</th><td><input type="text" readonly="readonly" name="rqstRecvFileStorgDirName" style="width:100%"/></td>
							<th class="detail_title">단계처리시간</th><td><input type="text" readonly="readonly" name="thisStgeStartHMS" style="width:100%"/></td>
							<th class="detail_title">단계상태</th>
							<td>
								<select name="thisStgePrcssRsultCd" style="width:100%">
									<option value=""></option>
									<option value="Q">수행대기</option>
									<option value="S">진행중</option>
									<option value="T">정상종료</option>
									<option value="E">비정상종료</option>
									<option value="C">사용자중지</option>
									<option value="N">파일없음</option>
								</select>
							</td>
						</tr>
						<tr>
							<th class="detail_title">장애내용</th><td colspan="5"><textarea  name="eAIObstclOccurCausCtnt" readonly="readonly" style="width:100%;height:100%"></textarea></td>
						</tr>
						<tr>
							<th class="detail_title">전문헤더</th><td colspan="5"><textarea  name="bjobTelgmHdr"readonly="readonly" style="width:100%;height:100%"></textarea></td>
						</tr>
						<tr>
							<th class="detail_title">전문바디</th><td colspan="5"><textarea  name="bjobTelgmTbody" readonly="readonly" style="width:100%;height:100%"></textarea></td>
						</tr>
					</table>
				</form>
			</div>
		</div>
	</div>
</div>
</body>
</html>