<%@ 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"/>
<link rel="stylesheet" type="text/css" media="screen" href="<c:url value="/css/w2ui-1.4.3.css"/>" />
<jsp:include page="/jsp/common/include/script.jsp"/>
<script language="javascript" src="<c:url value="/js/w2ui-1.4.3.js"/>"></script>

<jsp:include page="/jsp/common/include/jqplotCss.jsp"/>
<jsp:include page="/jsp/common/include/jqplotScript.jsp"/>

<script language="javascript" >

var url = '<c:url value="/onl/statistics/eaisvcname/eaiSvcNameDailySituation.json" />';
var url_view = '<c:url value="/onl/statistics/eaisvcname/eaiSvcNameDailySituation.view" />';

function detail(){
	
	w2ui['myGrid'].clear();
	var postData = getSearchForJqgrid("cmd","LIST"); //jqgrid에서는 object 로 
	postData['totalCount']=0;
	postData['page']=1;
	postData['rows']=1;

	$.ajax({  
		type : "POST",
		url:url,
		dataType:"JSON",
		data:postData,
		success:function(json){
			var data = json;
			var records = data.rows;
			
			var summary = new Object();
			summary.recid ="";
			for(var i=1;i<=31;i++){
				summary["DDTRSMTNOITM"+i] =0;
				summary["DDERRNOITM"+i] =0;
			}
			
			for(var idx in records){
				//insert recid
				records[idx]['recid'] = parseInt(idx)+1;
				for(var i=1;i<=31;i++){
					summary["DDTRSMTNOITM"+i] = summary["DDTRSMTNOITM"+i] + records[idx]["DDTRSMTNOITM"+i] ;
					summary["DDERRNOITM"+i]   = summary["DDERRNOITM"+i]   + records[idx]["DDERRNOITM"+i];
				}				
				
			}
			w2ui['myGrid'].total = data.records;
			w2ui['myGrid'].records = records;

			w2ui['myGrid'].summary.push(summary);
			// End 합계 셋팅.
			w2ui['myGrid'].refresh();				
			
 			// Summary CSS 설정.
 			$("#grid_myGrid_rec_").css("background-color", "#D4F4FA");  // td 배경색
 			$("#grid_myGrid_rec_").children("td:eq(2)").text("<%= localeMessage.getString("eaiSvcDaily.sum") %>");	
 			$("#grid_myGrid_rec_").css("height", "30px");				// tr 높이
 			$("#grid_myGrid_rec_").css("font-size", "10pt");			// tr 글자 크기
 			$("#grid_myGrid_rec_").css("text-align", "center");			// td 글자 정렬
				
			
		},
    	error:function(xhr,status,error){
    		alert(JSON.parse(xhr.responseText).errorMsg);
    	}
	});
}

function w2GridToExcelSubmit(url_excel,cmd,gridObj,formObject,fileName){
	
	var postData = formObject.serializeArray();	
	postData.push({
		name : "cmd",
		value : cmd
	});
	//fileName 필수값 아님
	if (fileName != undefined){
		postData.push({
			name : "fileName",
			value : fileName
		});	
	}
	
	//grid data
	var data = gridObj.records;
	
	for(var idx in data){
		for(var i=1;i<=31;i++){
			data[idx]["DDTRSMTNOITM"+i] = String(data[idx]["DDTRSMTNOITM"+i]);
			data[idx]["DDERRNOITM"+i] = String(data[idx]["DDERRNOITM"+i]);
			data[idx]["DDRSPNSAVGVAL"+i] = String(data[idx]["DDRSPNSAVGVAL"+i]);
			data[idx]["recid"] = String(data[idx]["recid"]);
		}				
	}
	
	var gridData = new Array();
	for ( var i = 0; i < data.length; i++) {
		gridData.push(data[i]);
	}
	postData.push({
		name : "gridData",
		value : JSON.stringify(gridData)
	});
			
	//grid titles
	var colM = gridObj.columns;
	var headers      = new Array();
	var headerTitles = new Array(); 
	for(var i=0;i<colM.length;i++){
		if (colM[i].hidden){
		}else{
			headers.push(colM[i].field);
			headerTitles.push(colM[i].caption);
		}
	}
	postData.push({
		name : "header",
		value : JSON.stringify(headers)
	});		
	postData.push({
		name : "headerTitle",
		value : JSON.stringify(headerTitles)
	});	
		
	// var form="<form action='"+url_excel+"' method='post' target='excelDown' accept-charset='utf-8' >";
	var form="<form action='"+url_excel+"' method='post' target='excelDown'>";
	$.each(postData,function(_,obj){
	//debugger;
		form +="<input type='hidden' name='"+obj.name+"' value='"+obj.value+"'/>";
	});
	form += "</form>";
	$(form).appendTo("body").submit().remove();
}


$(document).ready(function() {

	$("input[name=searchStart],input[name=searchEnd]").inputmask("9999-99-99",{'autoUnmask':true});
	$("input[name=searchStart],input[name=searchEnd]").each(function(){
		if ($(this).val() == undefined || $(this).val() == null || $(this).val() == ""){
			$(this).val(getToday());
		}
	});
	function thousandsSeparator(record, ind, col_ind){
		var n = record[this.columns[col_ind].field];
		n = n.toString();
		while(true){
			var n2= n.replace(/(\d)(\d{3})($|,|\.)/g,'$1,$2$3');
			if (n==n2) break;
			n=n2;
		}
		return n;
	};
	$('#myGrid').w2grid({
	    name   : 'myGrid', 
	    datatype:'JSON',
	    method:'POST',
	    multiSelect : false,
	    autoLoad:false,
	    show :{
	    	emptyRecords:false
	    },
	    columnGroups : [
// 	    	{span : 1, master:true},
// 	    	{span : 1, master:true},
// 	    	{span : 1, master:true},
			{span : 3, caption:'IF'},
	    	{span : 2, caption:'1'},{span : 2, caption:'2'},{span : 2, caption:'3'},{span : 2, caption:'4'},{span : 2, caption:'5'},
	    	{span : 2, caption:'6'},{span : 2, caption:'7'},{span : 2, caption:'8'},{span : 2, caption:'9'},{span : 2, caption:'10'},
	    	{span : 2, caption:'11'},{span : 2, caption:'12'},{span : 2, caption:'13'},{span : 2, caption:'14'},{span : 2, caption:'15'},
	    	{span : 2, caption:'16'},{span : 2, caption:'17'},{span : 2, caption:'18'},{span : 2, caption:'19'},{span : 2, caption:'20'},
	    	{span : 2, caption:'21'},{span : 2, caption:'22'},{span : 2, caption:'23'},{span : 2, caption:'24'},{span : 2, caption:'25'},
	    	{span : 2, caption:'26'},{span : 2, caption:'27'},{span : 2, caption:'28'},{span : 2, caption:'29'},{span : 2, caption:'30'},
	    	{span : 2, caption:'31'}
	    ],
		columns:[
	        { field : 'recid'           , type:'number'   ,size:'40px'  ,caption:""  ,style :'text-align:right' },
	        { field : 'EAISVCNAME'      , type:'text'     ,size:'170px' ,caption:"<%= localeMessage.getString("eaiSvcDaily.bizCode") %>"},
	        { field : 'EAISVCDESC'      , type:'text'     ,size:'190px' ,caption:"<%= localeMessage.getString("eaiSvcDaily.bizName") %>"},
	        { field : 'DDTRSMTNOITM1'   , type:'number'   ,size:'85px'  ,caption:"<%= localeMessage.getString("eaiSvcDaily.trans") %>" ,style :'text-align:right' , render:thousandsSeparator },
	        { field : 'DDERRNOITM1'     , type:'number'   ,size:'85px'  ,caption:"<%= localeMessage.getString("eaiSvcDaily.err") %>" ,style :'text-align:right' , render:thousandsSeparator },
	        { field : 'DDTRSMTNOITM2'   , type:'number'   ,size:'85px'  ,caption:"<%= localeMessage.getString("eaiSvcDaily.trans") %>" ,style :'text-align:right' , render:thousandsSeparator },
	        { field : 'DDERRNOITM2'     , type:'number'   ,size:'85px'  ,caption:"<%= localeMessage.getString("eaiSvcDaily.err") %>" ,style :'text-align:right' , render:thousandsSeparator },
	        { field : 'DDTRSMTNOITM3'   , type:'number'   ,size:'85px'  ,caption:"<%= localeMessage.getString("eaiSvcDaily.trans") %>" ,style :'text-align:right' , render:thousandsSeparator },
	        { field : 'DDERRNOITM3'     , type:'number'   ,size:'85px'  ,caption:"<%= localeMessage.getString("eaiSvcDaily.err") %>" ,style :'text-align:right' , render:thousandsSeparator },
	        { field : 'DDTRSMTNOITM4'   , type:'number'   ,size:'85px'  ,caption:"<%= localeMessage.getString("eaiSvcDaily.trans") %>" ,style :'text-align:right' , render:thousandsSeparator },
	        { field : 'DDERRNOITM4'     , type:'number'   ,size:'85px'  ,caption:"<%= localeMessage.getString("eaiSvcDaily.err") %>" ,style :'text-align:right' , render:thousandsSeparator },
	        { field : 'DDTRSMTNOITM5'   , type:'number'   ,size:'85px'  ,caption:"<%= localeMessage.getString("eaiSvcDaily.trans") %>" ,style :'text-align:right' , render:thousandsSeparator },
	        { field : 'DDERRNOITM5'     , type:'number'   ,size:'85px'  ,caption:"<%= localeMessage.getString("eaiSvcDaily.err") %>" ,style :'text-align:right' , render:thousandsSeparator },
	        { field : 'DDTRSMTNOITM6'   , type:'number'   ,size:'85px'  ,caption:"<%= localeMessage.getString("eaiSvcDaily.trans") %>" ,style :'text-align:right' , render:thousandsSeparator },
	        { field : 'DDERRNOITM6'     , type:'number'   ,size:'85px'  ,caption:"<%= localeMessage.getString("eaiSvcDaily.err") %>" ,style :'text-align:right' , render:thousandsSeparator },
	        { field : 'DDTRSMTNOITM7'   , type:'number'   ,size:'85px'  ,caption:"<%= localeMessage.getString("eaiSvcDaily.trans") %>" ,style :'text-align:right' , render:thousandsSeparator },
	        { field : 'DDERRNOITM7'     , type:'number'   ,size:'85px'  ,caption:"<%= localeMessage.getString("eaiSvcDaily.err") %>" ,style :'text-align:right' , render:thousandsSeparator },
	        { field : 'DDTRSMTNOITM8'   , type:'number'   ,size:'85px'  ,caption:"<%= localeMessage.getString("eaiSvcDaily.trans") %>" ,style :'text-align:right' , render:thousandsSeparator },
	        { field : 'DDERRNOITM8'     , type:'number'   ,size:'85px'  ,caption:"<%= localeMessage.getString("eaiSvcDaily.err") %>" ,style :'text-align:right' , render:thousandsSeparator },
	        { field : 'DDTRSMTNOITM9'   , type:'number'   ,size:'85px'  ,caption:"<%= localeMessage.getString("eaiSvcDaily.trans") %>" ,style :'text-align:right' , render:thousandsSeparator },
	        { field : 'DDERRNOITM9'     , type:'number'   ,size:'85px'  ,caption:"<%= localeMessage.getString("eaiSvcDaily.err") %>" ,style :'text-align:right' , render:thousandsSeparator },
	        { field : 'DDTRSMTNOITM10'  , type:'number'   ,size:'85px'  ,caption:"<%= localeMessage.getString("eaiSvcDaily.trans") %>" ,style :'text-align:right' , render:thousandsSeparator },
	        { field : 'DDERRNOITM10'    , type:'number'   ,size:'85px'  ,caption:"<%= localeMessage.getString("eaiSvcDaily.err") %>" ,style :'text-align:right' , render:thousandsSeparator },
	        { field : 'DDTRSMTNOITM11'  , type:'number'   ,size:'85px'  ,caption:"<%= localeMessage.getString("eaiSvcDaily.trans") %>" ,style :'text-align:right' , render:thousandsSeparator },
	        { field : 'DDERRNOITM11'    , type:'number'   ,size:'85px'  ,caption:"<%= localeMessage.getString("eaiSvcDaily.err") %>" ,style :'text-align:right' , render:thousandsSeparator },
	        { field : 'DDTRSMTNOITM12'  , type:'number'   ,size:'85px'  ,caption:"<%= localeMessage.getString("eaiSvcDaily.trans") %>" ,style :'text-align:right' , render:thousandsSeparator },
	        { field : 'DDERRNOITM12'    , type:'number'   ,size:'85px'  ,caption:"<%= localeMessage.getString("eaiSvcDaily.err") %>" ,style :'text-align:right' , render:thousandsSeparator },
	        { field : 'DDTRSMTNOITM13'  , type:'number'   ,size:'85px'  ,caption:"<%= localeMessage.getString("eaiSvcDaily.trans") %>" ,style :'text-align:right' , render:thousandsSeparator },
	        { field : 'DDERRNOITM13'    , type:'number'   ,size:'85px'  ,caption:"<%= localeMessage.getString("eaiSvcDaily.err") %>" ,style :'text-align:right' , render:thousandsSeparator },
	        { field : 'DDTRSMTNOITM14'  , type:'number'   ,size:'85px'  ,caption:"<%= localeMessage.getString("eaiSvcDaily.trans") %>" ,style :'text-align:right' , render:thousandsSeparator },
	        { field : 'DDERRNOITM14'    , type:'number'   ,size:'85px'  ,caption:"<%= localeMessage.getString("eaiSvcDaily.err") %>" ,style :'text-align:right' , render:thousandsSeparator },
	        { field : 'DDTRSMTNOITM15'  , type:'number'   ,size:'85px'  ,caption:"<%= localeMessage.getString("eaiSvcDaily.trans") %>" ,style :'text-align:right' , render:thousandsSeparator },
	        { field : 'DDERRNOITM15'    , type:'number'   ,size:'85px'  ,caption:"<%= localeMessage.getString("eaiSvcDaily.err") %>" ,style :'text-align:right' , render:thousandsSeparator },
	        { field : 'DDTRSMTNOITM16'  , type:'number'   ,size:'85px'  ,caption:"<%= localeMessage.getString("eaiSvcDaily.trans") %>" ,style :'text-align:right' , render:thousandsSeparator },
	        { field : 'DDERRNOITM16'    , type:'number'   ,size:'85px'  ,caption:"<%= localeMessage.getString("eaiSvcDaily.err") %>" ,style :'text-align:right' , render:thousandsSeparator },
	        { field : 'DDTRSMTNOITM17'  , type:'number'   ,size:'85px'  ,caption:"<%= localeMessage.getString("eaiSvcDaily.trans") %>" ,style :'text-align:right' , render:thousandsSeparator },
	        { field : 'DDERRNOITM17'    , type:'number'   ,size:'85px'  ,caption:"<%= localeMessage.getString("eaiSvcDaily.err") %>" ,style :'text-align:right' , render:thousandsSeparator },
	        { field : 'DDTRSMTNOITM18'  , type:'number'   ,size:'85px'  ,caption:"<%= localeMessage.getString("eaiSvcDaily.trans") %>" ,style :'text-align:right' , render:thousandsSeparator },
	        { field : 'DDERRNOITM18'    , type:'number'   ,size:'85px'  ,caption:"<%= localeMessage.getString("eaiSvcDaily.err") %>" ,style :'text-align:right' , render:thousandsSeparator },
	        { field : 'DDTRSMTNOITM19'  , type:'number'   ,size:'85px'  ,caption:"<%= localeMessage.getString("eaiSvcDaily.trans") %>" ,style :'text-align:right' , render:thousandsSeparator },
	        { field : 'DDERRNOITM19'    , type:'number'   ,size:'85px'  ,caption:"<%= localeMessage.getString("eaiSvcDaily.err") %>" ,style :'text-align:right' , render:thousandsSeparator },
	        { field : 'DDTRSMTNOITM20'  , type:'number'   ,size:'85px'  ,caption:"<%= localeMessage.getString("eaiSvcDaily.trans") %>" ,style :'text-align:right' , render:thousandsSeparator },
	        { field : 'DDERRNOITM20'    , type:'number'   ,size:'85px'  ,caption:"<%= localeMessage.getString("eaiSvcDaily.err") %>" ,style :'text-align:right' , render:thousandsSeparator },
	        { field : 'DDTRSMTNOITM21'  , type:'number'   ,size:'85px'  ,caption:"<%= localeMessage.getString("eaiSvcDaily.trans") %>" ,style :'text-align:right' , render:thousandsSeparator },
	        { field : 'DDERRNOITM21'    , type:'number'   ,size:'85px'  ,caption:"<%= localeMessage.getString("eaiSvcDaily.err") %>" ,style :'text-align:right' , render:thousandsSeparator },
	        { field : 'DDTRSMTNOITM22'  , type:'number'   ,size:'85px'  ,caption:"<%= localeMessage.getString("eaiSvcDaily.trans") %>" ,style :'text-align:right' , render:thousandsSeparator },
	        { field : 'DDERRNOITM22'    , type:'number'   ,size:'85px'  ,caption:"<%= localeMessage.getString("eaiSvcDaily.err") %>" ,style :'text-align:right' , render:thousandsSeparator },
	        { field : 'DDTRSMTNOITM23'  , type:'number'   ,size:'85px'  ,caption:"<%= localeMessage.getString("eaiSvcDaily.trans") %>" ,style :'text-align:right' , render:thousandsSeparator },
	        { field : 'DDERRNOITM23'    , type:'number'   ,size:'85px'  ,caption:"<%= localeMessage.getString("eaiSvcDaily.err") %>" ,style :'text-align:right' , render:thousandsSeparator },
	        { field : 'DDTRSMTNOITM24'  , type:'number'   ,size:'85px'  ,caption:"<%= localeMessage.getString("eaiSvcDaily.trans") %>" ,style :'text-align:right' , render:thousandsSeparator },
	        { field : 'DDERRNOITM24'    , type:'number'   ,size:'85px'  ,caption:"<%= localeMessage.getString("eaiSvcDaily.err") %>" ,style :'text-align:right' , render:thousandsSeparator },
	        { field : 'DDTRSMTNOITM25'  , type:'number'   ,size:'85px'  ,caption:"<%= localeMessage.getString("eaiSvcDaily.trans") %>" ,style :'text-align:right' , render:thousandsSeparator },
	        { field : 'DDERRNOITM25'    , type:'number'   ,size:'85px'  ,caption:"<%= localeMessage.getString("eaiSvcDaily.err") %>" ,style :'text-align:right' , render:thousandsSeparator },
	        { field : 'DDTRSMTNOITM26'  , type:'number'   ,size:'85px'  ,caption:"<%= localeMessage.getString("eaiSvcDaily.trans") %>" ,style :'text-align:right' , render:thousandsSeparator },
	        { field : 'DDERRNOITM26'    , type:'number'   ,size:'85px'  ,caption:"<%= localeMessage.getString("eaiSvcDaily.err") %>" ,style :'text-align:right' , render:thousandsSeparator },
	        { field : 'DDTRSMTNOITM27'  , type:'number'   ,size:'85px'  ,caption:"<%= localeMessage.getString("eaiSvcDaily.trans") %>" ,style :'text-align:right' , render:thousandsSeparator },
	        { field : 'DDERRNOITM27'    , type:'number'   ,size:'85px'  ,caption:"<%= localeMessage.getString("eaiSvcDaily.err") %>" ,style :'text-align:right' , render:thousandsSeparator },
	        { field : 'DDTRSMTNOITM28'  , type:'number'   ,size:'85px'  ,caption:"<%= localeMessage.getString("eaiSvcDaily.trans") %>" ,style :'text-align:right' , render:thousandsSeparator },
	        { field : 'DDERRNOITM28'    , type:'number'   ,size:'85px'  ,caption:"<%= localeMessage.getString("eaiSvcDaily.err") %>" ,style :'text-align:right' , render:thousandsSeparator },
	        { field : 'DDTRSMTNOITM29'  , type:'number'   ,size:'85px'  ,caption:"<%= localeMessage.getString("eaiSvcDaily.trans") %>" ,style :'text-align:right' , render:thousandsSeparator },
	        { field : 'DDERRNOITM29'    , type:'number'   ,size:'85px'  ,caption:"<%= localeMessage.getString("eaiSvcDaily.err") %>" ,style :'text-align:right' , render:thousandsSeparator },
	        { field : 'DDTRSMTNOITM30'  , type:'number'   ,size:'85px'  ,caption:"<%= localeMessage.getString("eaiSvcDaily.trans") %>" ,style :'text-align:right' , render:thousandsSeparator },
	        { field : 'DDERRNOITM30'    , type:'number'   ,size:'85px'  ,caption:"<%= localeMessage.getString("eaiSvcDaily.err") %>" ,style :'text-align:right' , render:thousandsSeparator },
	        { field : 'DDTRSMTNOITM31'  , type:'number'   ,size:'85px'  ,caption:"<%= localeMessage.getString("eaiSvcDaily.trans") %>" ,style :'text-align:right' , render:thousandsSeparator },
	        { field : 'DDERRNOITM31'    , type:'number'   ,size:'85px'  ,caption:"<%= localeMessage.getString("eaiSvcDaily.err") %>" ,style :'text-align:right' , render:thousandsSeparator }
				],
		summary:[
	    	{ recid : "", EAISVCNAME:"", EAISVCDESC:"합 계", 
              DDTRSMTNOITM1:"0", DDERRNOITM1:"0", DDTRSMTNOITM2:"0", DDERRNOITM2:"0", DDTRSMTNOITM3:"0", DDERRNOITM3:"0", DDTRSMTNOITM4:"0", DDERRNOITM4:"0", DDTRSMTNOITM5:"0", DDERRNOITM5:"0", 
              DDTRSMTNOITM6:"0", DDERRNOITM6:"0", DDTRSMTNOITM7:"0", DDERRNOITM7:"0", DDTRSMTNOITM8:"0", DDERRNOITM8:"0", DDTRSMTNOITM9:"0", DDERRNOITM9:"0", DDTRSMTNOITM10:"0", DDERRNOITM10:"0", 
              DDTRSMTNOITM11:"0", DDERRNOITM11:"0", DDTRSMTNOITM12:"0", DDERRNOITM12:"0", DDTRSMTNOITM13:"0", DDERRNOITM13:"0", DDTRSMTNOITM14:"0", DDERRNOITM14:"0", DDTRSMTNOITM15:"0", DDERRNOITM15:"0", 
              DDTRSMTNOITM16:"0", DDERRNOITM16:"0", DDTRSMTNOITM17:"0", DDERRNOITM17:"0", DDTRSMTNOITM18:"0", DDERRNOITM18:"0", DDTRSMTNOITM19:"0", DDERRNOITM19:"0", DDTRSMTNOITM20:"0", DDERRNOITM20:"0", 
              DDTRSMTNOITM21:"0", DDERRNOITM21:"0", DDTRSMTNOITM22:"0", DDERRNOITM22:"0", DDTRSMTNOITM23:"0", DDERRNOITM23:"0", DDTRSMTNOITM24:"0", DDERRNOITM24:"0", DDTRSMTNOITM25:"0", DDERRNOITM25:"0", 
              DDTRSMTNOITM26:"0", DDERRNOITM26:"0", DDTRSMTNOITM27:"0", DDERRNOITM27:"0", DDTRSMTNOITM28:"0", DDERRNOITM28:"0", DDTRSMTNOITM29:"0", DDERRNOITM29:"0", DDTRSMTNOITM30:"0", DDERRNOITM30:"0", 
              DDTRSMTNOITM31:"0", DDERRNOITM31:"0"
	    	}
		],		
		
	});
	
    detail();   
	
	$("#btn_search").click(function(){
		var postData = getSearchForJqgrid("cmd","LIST"); //jqgrid에서는 object 로
		
		if(!isFromToDate(postData.searchStart, postData.searchEnd, "yyyymmdd"))
		{
			alert("입력한 날짜를 확인하여주십시요.\n"
				 + "시작일 : " + setDateFormat(postData.searchStart) + "\n"
				 + "종료일 : " + setDateFormat(postData.searchEnd));
			return;
		}
		
		// grid 조회
		detail();
	});
	
	$("input[name^=search]").keydown(function(key){
		if (key.keyCode == 13){
			$("#btn_search").click();
		}
	});
	
	buttonControl();

});
 
</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">
				<div class="search_wrap">					
					<button type="button" class="cssbtn" id="btn_search" level="R" ><i class="material-icons">search</i> <%= localeMessage.getString("button.search") %></button>		
				</div>
				<div class="title"><%= localeMessage.getString("eaiSvcDaily.title") %></div>
				
				<form id="ajaxForm" onsubmit="return false;">
				<table class="search_condition" cellspacing=0;>
					<tbody>
						<tr>
							<th style="width:120px;"><%= localeMessage.getString("eaiSvcDaily.bizName") %></th>
							<td>
								<input type="text" name="searchEaiBzwkDstcd" value="${param.searchEaiBzwkDstcd}">
							</td>
							<th style="width:120px;"><%= localeMessage.getString("eaiSvcDaily.period") %></th>
							<td>
								<input type="text" name="searchStart" value="${param.searchStart}" style="width:100px"> ~
								<input type="text" name="searchEnd" value="${param.searchEnd}" style="width:100px">					
							</td>							
						</tr>						
					</tbody>
				</table>
			<br>			
				<table width="100%">
					<tr width="100%">
						<td width="2%">&nbsp;</td>
						<td width="47%"><div id="chart1"></div></td>
						<td width="4%">&nbsp;</td>
						<td width="47%"><div id="chart2"></div></td>
					</tr>
					<tr width="100%">
						<td colspan=4>&nbsp;</td>
					</tr>
					<tr width="100%">
						<td colspan=4>&nbsp;</td>
					</tr>
				</table>
			</form>
	<!-- grid -->
	<div id="myGrid" style="width:100%;height:520px"></div>		
	</body>	
	
</html>