<%@ page language="java" contentType="text/html; charset=utf-8"%>
<%@ page import="java.io.*"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ include file="/jsp/common/include/localemessage.jsp" %>
<%
	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" >
var url = '<c:url value="/onl/transaction/tracking/trackingMan.json" />';

var eaiSvcSerno = window.dialogArguments["eaiSvcSerno"];
var msgDpstYMS = window.dialogArguments["msgDpstYMS"];
var eaiBzwkDstcd = window.dialogArguments["eaiBzwkDstcd"];
var logPrcssSerno = window.dialogArguments["logPrcssSerno"];

$(document).ready(function() {	
	
	console.log("eaiSvcSerno :"+ eaiSvcSerno);
	$('#grid').jqGrid({
		datatype:"json",
		mtype: 'POST',
		url: url,
		postData : { cmd : 'DETAIL_INPTMDIA' , eaiSvcSerno : eaiSvcSerno, logPrcssSerno:logPrcssSerno,eaiBzwkDstcd:eaiBzwkDstcd,msgDpstYMS:msgDpstYMS 
		},
		colNames : ['순서',
		            '이름',
		            '설명', 
		            '값',
		            '길이'
       	  ],
		colModel : [ { name : 'rownum'  , align : 'center' , width:'30' },
			 		 { name : 'name' 	, align : 'left'   , width:'100'}, 
		             { name : 'desc' 	, align : 'left'   , width:'100'},
		             { name : 'value'   , align : 'left'   , width:'120'},
		             { name : 'len'   	, align : 'center' , width:'40' }
	              ],
		cmTemplate: {
			sortable: false,	
		},
        jsonReader: {
            repeatitems:false
        },	 
        rowNum: 10000,  
	    height: '500',
		autowidth: true,
		viewrecords: true,
		ondblClickRow: function(rowId) {
           
       }	
       
	    
	});

	$("#btn_close").click(function(){
		window.close();
	});
	
	buttonControl();
	
});
 
</script>
</head>
	<body>

	<div class="popup_box">
		<div class="search_wrap">
			<img id="btn_close" src="<c:url value="/img/btn_close.png"/>"         level="R" status="DETAIL,NEW"/>
		</div>
		<div class="title">입력매체부</div>	
		<table id="grid" ></table>
		<div id="pager"></div>
	</div><!-- end content_middle -->
	
	</body>
</html>

