<jsp:directive.page pageEncoding="UTF-8" />
<!-- ユーザー画面集計 -->
<og:query command="{@command}" debug="{@debug}" maxRowCount="{@maxRowCount}">
		select A.USERID,A.GUIKEY,B.NAME_JA
				, sum(A.USED_TIME)		AS USED_TIME
				, sum(A.CNT_ACCESS)		AS SUM_ACCESS
				, sum(A.CNT_ERROR)		AS SUM_ERROR
				, sum(A.CNT_READ)		AS SUM_READ
				, sum(A.CNT_WRITE)		AS SUM_WRITE
				, sum(A.TM_TOTAL_QUERY) AS SUM_TOTAL_QUERY
				, max(A.TM_MAX_QUERY)	AS TM_MAX_QUERY
		from GE15 A left outer join GEA11 B
		on      A.SYSTEM_ID = B.SYSTEM_ID
		and     A.GUIKEY    = B.GUIKEY
	<og:where>
		<og:and value = "A.SYSTEM_ID  =    '{@SYSTEM_ID}'"   />
		<og:and value = "A.GUIKEY     like '{@GUIKEY}'"     />
		<og:and value = "A.USERID     =    '{@USERID}'"      />
		<og:and value = "A.DYLOGIN    like '{@DATE}'"       /> 
	</og:where>
	group by A.USERID,A.GUIKEY,B.NAME_JA
	order by {@SORT} A.USERID,A.GUIKEY
</og:query>

<og:viewLink command="{@command}">
	<og:link column="GUIKEY" gamenId="GE0002" href="index.jsp" target="CONTENTS"
		keys="command,SYSTEM_ID,GUIKEY,LANG"
		vals="NEW,{@SYSTEM_ID},[GUIKEY],ja" />
	<og:link column="USERID" gamenId="GE0001" href="index.jsp" target="CONTENTS"
		keys="command,SYSTEM_ID,USERID"
		vals="NEW,{@SYSTEM_ID},[USERID]" />
	<og:link column="TM_MAX_QUERY" href="result.jsp" target="RESULT"
		keys="command,SYSTEM_ID,USERID,GUIKEY,ACTION,TM_MAX_QUERY"
		vals="NEW,{@SYSTEM_ID},[USERID],[GUIKEY],GEM0020,[TM_MAX_QUERY]" />
</og:viewLink>

<og:view
	viewFormType = "HTMLTable"
	command      = "{@command}"
	checked      = "{@checked}"
	startNo      = "{@startNo}"
	pageSize     = "{@pageSize}" />
