<og:query command="{@command}" debug="{@debug}" dbid="{@DBID1}" maxRowCount="{@maxRowCount}" quotCheck="false" >
	select SYSTEM_ID,TBLSYU,CLM,count(*) as CNT,'1' as UNIQ
	from  GF05
	where SYSTEM_ID = '{@SYSTEM_ID1}'
	and   TBLSYU    = '{@TBLSYU1}'
	and   FGJ       = '1'
	and   CLM  in ( {@CLMS} )
	and   FGCOM     = '0'
	group by SYSTEM_ID,TBLSYU,CLM
	order by CLM
</og:query>

<og:value key="lblKey" value="C" />

<og:hidden name="names" value=",," />
<og:hidden name="SQL">
	UPDATE GF05 SET
			FGCOM     = '1',
			CDKH      = 'C',
			FGJ       = '1',
			DYUPD     = '{@USER.YMDH}',
			USRUPD    = '{@USER.ID}',
			PRGUPD    = '{@GUI.KEY}'
	WHERE SYSTEM_ID = [SYSTEM_ID]
	AND   TBLSYU    = [TBLSYU]
	AND   CLM       = [CLM]
</og:hidden>
