<?xml version="1.0" encoding="UTF-8" ?>
<jsp:root
	xmlns:jsp="http://java.sun.com/JSP/Page"
	xmlns:og="hybs-taglib.tld" 
	version="2.0">
<jsp:directive.page language="java" contentType="text/html; charset=UTF-8" />

<og:head headType="result" >
	<style type="text/css">
		.x7698 , .x1121 + .SU { background-color:#ccff00; }
		.MANAGER { background-color:#ccff00; }
	</style>
</og:head>
<jsp:directive.include file="/jsp/custom/result_info.jsp" />
<og:comment
	system	= "GF:エンジンサンプル"
	pgid	= "GF6070"
	title	= "クロス集計"
	date	= "2008/10/27"
	author	= "Hiroki.Nakamura"
	text	= ""
	version	= "001"
/>
<!-- 入力チェック -->
<og:columnCheck
	command   = "{@command}"
/>

<og:query command="{@command}" debug="{@debug}" maxRowCount="{@maxRowCount}">
		SELECT JOB,MGR,SUM(SAL) AS KEI,count(*) AS SU
		FROM EMP,DEPT
		WHERE EMP.DEPTNO = DEPT.DEPTNO
		GROUP BY JOB,MGR
		ORDER BY JOB,MGR
</og:query>

<og:columnEditor column="MGR" renderer="DBMENU" param="select MGR,ENAME from EMP" />
<og:value command="SET" key="KEI_VIEW" value='KEI,SU' caseKey="{@keiView}" caseVal="false" />

<!-- DB検索結果を表示させます。 -->
<og:view
	viewFormType = "HTML{@CROSS}Table"
	command    = "{@command}" 
	checked    = "{@checked}"
	startNo    = "{@startNo}" 
	pageSize   = "{@pageSize}" 
	useParam   = "true"
	noDisplay  = "{@KEI_VIEW}"
>
	<og:crossParam
		sumNumber      = "2"
		gokeiLabel     = " "
		cubeXColumn    = "JOB"
		cubeYColumn    = "MGR"
		cubeSortType	= "{@cubeSortType}"
		saveTableId		= "{@saveTableId}"
		useClassAdd		= "{@useClassAdd}"
		firstClmGokei	= "{@firstClmGokei}"
		useHeaderColumn = "{@useHeaderColumn}"
		useHeaderResource	= "{@useHeaderResource}"
	/>
</og:view>

<jsp:directive.include file="/jsp/common/htmlend.jsp" />
</jsp:root>
