<?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     = "GE0007"
	title    = "システムパラメーター"
	date     = "2007/12/12"
	author   = "K.HASEGAWA"
	text     = "ZZZZ"
	version  = "001"
/>

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

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

<og:equals val1="{@sqlType}" val2="DELETE" notEquals="true" >
	<og:dataCheck
		dbid		= "{@MEM.DBID}"
		command		= "{@command}"
		from		= "GE12"
		where		= "SYSTEM_ID=[SYSTEM_ID] AND PARAM_ID=[PARAM_ID] AND KBSAKU=[KBSAKU] AND FGJ in ('0','1')"
		errRemove	= "{@errRemove}"
	/>
</og:equals>

<og:tableUpdate
	dbid			= "{@MEM.DBID}"
	command			= "{@command}"
	queryType		= "JDBCTableUpdate">
	<og:tableUpdateParam
		sqlType			= "{@sqlType}"
		table			= "GE12"
		where			= "UNIQ = [UNIQ] AND NOT ( SYSTEM_ID = '**' AND KBSAKU = '0' )"
		names			= "SYSTEM_ID,TITLE,PARAM_ID,PARAM,PARAM_LVL,SEQNO,CONTENTS,KBSAKU,CONTXT_PATH"
		logicalDelete	= "{@logicalDelete}"
	/>
</og:tableUpdate>

<og:engine allClear = "true" />

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