<jsp:directive.page pageEncoding="UTF-8" />
<!-- 読込ﾌﾗｸﾞ更新 -->
<!-- KBLBL 0:一般 1:ｶﾗﾑ 2:ﾃｰﾌﾞﾙ 3:画面 4:画面分類 5:ﾌﾟﾛｸﾞﾗﾑ 6:ｺｰﾄﾞ 7:ﾒｯｾｰｼﾞ 8:ｴﾗｰ A:ﾀｸﾞﾘﾌﾞ -->
<!-- ﾗﾍﾞﾙﾘｿｰｽのﾗﾍﾞﾙ区分(KBLBL)が、2:ﾃｰﾌﾞﾙ と、5:ﾌﾟﾛｸﾞﾗﾑ は、読込ﾌﾗｸﾞ(FGLOAD)を 0:個別読込 にします。-->
<og:query command="{@command}" debug="{@debug}" maxRowCount="{@maxRowCount}">
	select SYSTEM_ID,CLM,LANG,UNIQ
	from   GEA08
	where  SYSTEM_ID = '{@SYSTEM_ID}'
	and    FGJ       = '1'
	and    FGLOAD    = '1'
	and    KBLBL in ( '2','5' )
	union
	select SYSTEM_ID,CLM,LANG,UNIQ
	from   GEA08
	where  SYSTEM_ID = '{@SYSTEM_ID}'
	and    FGJ       = '1'
	and    FGLOAD    = '1'
	and    LANG     != 'ja'
</og:query>

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

<!-- UNIQ のみでユニークだが、安全の為、SYSTEM_IDとCLMも条件に入れておく -->
<og:hidden name="SQL">
	UPDATE GEA08 SET
			FGLOAD  = '0',
			DYUPD   = '{@USER.YMDH}',
			USRUPD  = '{@USER.ID}',
			PGUPD   = '{@GUI.KEY}'
	WHERE UNIQ      = [UNIQ]
	AND   SYSTEM_ID = [SYSTEM_ID]
	AND   CLM       = [CLM]
	AND   LANG      = [LANG]
</og:hidden>
