<?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" >
	<script src="adjustFrame.js?v={@SYS.START_TIME}"><!-- --></script>
</og:head>
<jsp:directive.include file="/jsp/custom/result_info.jsp" />
<og:comment
	system	= "GF:エンジンサンプル"
	pgid	= "GF9160"
	title	= "3ペインサンプル"
	date	= "2017/06/30"
	author	= "XXXXX"
	text	= ""
	version	= "001">
</og:comment>

<!-- ﾜｰﾆﾝｸﾞﾒｯｾｰｼﾞです｡ここでは､登録完了のﾒｯｾｰｼﾞを表示します｡ -->
<og:equals val1="{@command}" val2="NEW|RESET" matches="true">
	<br/>
</og:equals>
<og:errorMessage command="{@command}" clear="{@clear}" displayMsg="{@displayMsg}" />

<!-- 入力ﾁｪｯｸ -->
<og:columnCheck command="{@command}" columns="*" />

<!-- 取り消しﾎﾞﾀﾝが押された時に必要です｡ -->
<og:entry command="{@command}" tableId="3PAIN" useConsistency="false" />

<!-- DB検索 -->
<og:query command="{@command}" debug="{@debug}" maxRowCount="{@maxRowCount}" tableId="3PAIN">
	SELECT	 A.EMPNO
			,A.ENAME
			,A.JOB
			,A.MGR
			,A.HIREDATE
			,A.SAL
			,A.COMM
			,A.DEPTNO
			,B.DNAME
			,B.LOC
			,C.JOB		AS B_JOB
			,C.SAL		AS B_SAL
			,C.COMM		AS B_COMM
	FROM	EMP A left outer join DEPT B
			on A.DEPTNO = B.DEPTNO
				left outer join BONUS C
				on A.ENAME = C.ENAME
	<og:where>
		<og:and value = "A.EMPNO	=		'{@EMPNO}'"		/>
		<og:and value = "A.ENAME	LIKE	'{@ENAME}%'"	/>
	</og:where>
	<!-- (表示順) -->
	<og:appear startKey="ORDER BY" value="{@ORDER_BY}" defaultVal="A.EMPNO" />
</og:query>

<!-- formﾀｸﾞでﾘｸｴｽﾄﾌｨｰﾙﾄﾞを囲います｡ -->
<form method="POST" action="forward.jsp" target="INPUT">
	<!-- ﾎﾞﾀﾝ作成 -->
	<og:writeCheck>
		<og:submit action="INSERT" />
		<og:submit action="COPY" />
		<og:submit action="MODIFY" />
		<og:submit action="DELETE" />
		<og:submit action="VIEW" />
	</og:writeCheck>

	<!-- DB検索結果を表示 -->
	<!-- 2016/10/21 追加 -->
	<og:view
		viewFormType	= "HTMLTable"
		command			= "{@command}"
		selectedType	= "radio"
		tableId			= "3PAIN"
		viewFormId		= "3PAIN" />
</form>

<og:equals val1="{@command}" val2="NEW|RENEW" matches="true" >
	<!-- ﾌﾚｰﾑｻｲｽﾞを調整する -->
	<script>
		adjustLeftFrameWidth();
	</script>
</og:equals>

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