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

<og:head headType="init">
	<script type="text/javascript" src="antitimeout.js" ><!-- --></script>
	<script type="text/javascript" src="antireload.js" ><!-- --></script>
</og:head>

<!-- history.back() で戻るボタンを表示します。	-->
<!--
<jsp:directive.include file="/jsp/common/history_back.jsp" />
-->
<og:input type="button" onClick="antireloadBack();" lbl="MSG0079" accesskey="R" td="false" />

<!-- キーのチェック・復号化 -->
<og:bizLogic logics="an.OP0001S" keys="KEY" />
<og:value command="SET" key="CDANK" value="{@RETURN}" />

<og:query command="NEW" displayMsg="" notfoundMsg="" scope="request">
	select B.USERID, B.CDANK, B.CDSITSU, B.KBUNRUI, B.SEQNO, B.NAIYO, B.IMGNAI, B.SUPOINT, B.FGMUST, B.VDCDTN, B.KLENGTH, '{@SYS.SYSTEM_ID}_'||B.CDANK||'_'||B.CDSITSU CLM_LIST
	from AN01 A inner join AN02 B
	on A.USERID = B.USERID
	and A.CDANK = B.CDANK
	and B.FGJ = '1'
	where A.CDANK = '{@CDANK}'
	and A.FGJ = '1'
	order by B.SEQNO
</og:query>
<og:value command="SETTBL" action="ALL_APPEND" key="CLM_LIST" tblScope="request" />

<og:columnCheck
	command		= "NEW"
	columns		= "{@CLM_LIST}"
	tableId		= "DUMMY"
/>

<og:query command="NEW" displayMsg="" notfoundMsg="" scope="request" tableId="scale">
	select '{@SYS.SYSTEM_ID}_'||C.CDANK||'_'||C.KVAL CLM_LIST_SCALE
	from AN01 A
	inner join AN02 B
	on A.USERID = B.USERID
	and A.CDANK = B.CDANK
	and B.FGJ = '1'
	inner join AN03 C
	on B.USERID = C.USERID
	and B.CDANK = C.CDANK
	and B.CDSITSU = C.CDSITSU
	and C.FGJ = '1'
	where A.CDANK = '{@CDANK}'
	and A.FGJ = '1'
	and B.KBUNRUI = 'SCALE'
	order by B.SEQNO, C.SEQNO
</og:query>
<og:value command="SETTBL" action="ALL_APPEND" key="CLM_LIST_SCALE" tblScope="request" tableId="scale"/>

<og:equals val1="{@CLM_LIST_SCALE}" nullCheck="true" notEquals="true">
	<og:value command="SET" key="CLM_LIST" value="{@CLM_LIST},{@CLM_LIST_SCALE}" />
</og:equals>

<og:entry command="{@command}" scope="request" />

<og:bizLogic logics="an.OP1003A" keys="IPADDRESS,KUID,T_NOKAITO,{@CLM_LIST}" multi="true" selectedAll="true" scope="request" />

<og:value command="SQL">
	select A.FGSHUBETSU
	from AN01 A
	where A.CDANK = '{@CDANK}'
	and A.FGJ = '1'
</og:value>

<og:equals val1="{@FGSHUBETSU}" val2="2" notEquals="true">
	<og:forward page="msg.jsp" keys="KEY" vals="{@KEY}" useRedirect="true" target="parent.top" />
</og:equals>
<og:equals val1="{@FGSHUBETSU}" val2="2">
	<og:forward page="answer.jsp" keys="KEY,NOKAITO" vals="{@KEY},{@RETURN}" useRedirect="true" target="parent.top" />
</og:equals>


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