<?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" />
<og:comment
	system   = "GE:エンジンサンプル"
	pgid     = "GE0001"
	title    = "ユーザー定義"
	date     = "2007/12/12"
	author   = "K.HASEGAWA"
	text     = "ZZZZ"
	version  = "001"
/>

<og:equals val1="{@SYS.VER4_COMPATIBLE_MODE}" val2="true">
	<og:value command="SET" key="C_NAME_JA" value="NAME" />
</og:equals>
<og:equals val1="{@SYS.VER4_COMPATIBLE_MODE}" val2="true" notEquals="true">
	<og:value command="SET" key="C_NAME_JA" value="NAME_JA" />
</og:equals>

<!-- history.back() で戻るボタンを表示します。	-->
<jsp:directive.include file="/jsp/common/history_back.jsp" />

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

<og:equals val1="{@sqlType}" val2="COPY" >
	<og:tableExist
		dbid	= "{@MEM.TO_DBID}"
		command	= "{@command}"
		from	= "GEA10"
		where	= "SYSTEM_ID=[SYSTEM_ID] AND USERID=[USERID] AND ROLES=[ROLES] AND FGJ = '1'"
	/>

	<og:dataCheck
		dbid	= "{@MEM.TO_DBID}"
		command	= "{@command}"
		exist	= "false"
		conditionKey = "FGDEFAULT"
		conditionList = "0">
		SELECT COUNT(*) FROM GEA10
		WHERE SYSTEM_ID=[SYSTEM_ID] AND USERID=[USERID] AND FGDEFAULT='0' AND FGJ = '1'
	</og:dataCheck>

	<og:dataCheck
		dbid			= "{@MEM.TO_DBID}"
		command			= "{@command}"
		uniqCheckClms	= "SYSTEM_ID,USERID,ROLES"
	/>
</og:equals>

<og:tableUpdate
	dbid			= "{@MEM.TO_DBID}"
	command			= "{@command}"
	queryType		= "JDBCTableUpdate">
	<og:tableUpdateParam
		sqlType			= "{@sqlType}"
		table			= "GEA10"
		where			= "UNIQ = [UNIQ]"
		names			= "SYSTEM_ID,USERID,PASSWD,LANG,{@C_NAME_JA},ROLES,COMMENTS,DYPASSWD,DYVALID,FGDEFAULT,DROLES,MAILAD"
		logicalDelete	= "{@logicalDelete}"
	/>
</og:tableUpdate>

<og:forward page="result.jsp" keys="command" vals="RENEW" />
<jsp:directive.include file="/jsp/common/htmlend.jsp" />
</jsp:root>
