<jsp:directive.page pageEncoding="UTF-8" />
<og:query command="{@command}" debug="{@debug}" maxRowCount="0" stopZero="true">
	select	TABLE_NAME,CLM,CLM_NAME,BIKO AS OLDBIKO,
			REPLACE(REPLACE(BIKO,'　',' '),'：',':') as BIKO,UNIQ,FGJ
	from GF80
	where SYSTEM_ID  = '{@SYSTEM_ID}'
	and   TBLSYU     = '{@TBLSYU}'
	<og:where startKey="and">
		<og:and value="TABLE_NAME like '{@TABLE_NAME}'" />
		<og:and value="CLM        like '{@CLM}'" />
	</og:where>
	and   KBCLM		<= '7'
	and   ( instr( BIKO, '　' ) > 0 or instr( BIKO, '：' ) > 0 )
	and   FGJ		= '1'
	order by TABLE_NAME,CLM,CLM_NAME
</og:query>

<og:viewLink command="{@command}">
	<og:link column="CLM" href="result.jsp" target="RESULT"
		keys="command,ACTION,SYSTEM_ID,TBLSYU,TABLE_NAME,CLM"
		vals="NEW,GFM0045B,{@SYSTEM_ID},{@TBLSYU},[TABLE_NAME],[CLM]" />
</og:viewLink>

<og:hidden name="SQL" >
	UPDATE GF80 SET
			BIKO	 	= [BIKO],
			COMMENTS	= '{@DATE.YMDF} {@LBL.@ACTION}',
			CDKH		= 'C',
			DYUPD		= '{@USER.YMDH}',
			USRUPD		= '{@USER.ID}',
			PGUPD		= '{@GUI.KEY}'
	WHERE SYSTEM_ID	= '{@SYSTEM_ID}'
	AND   TBLSYU	= '{@TBLSYU}'
	AND   UNIQ		= [UNIQ]
</og:hidden>

<og:hidden name="noWritable">CLM,TABLE_NAME,OLDBIKO</og:hidden>