<?xml version="1.0" encoding="UTF-8" ?>
<jsp:root
	xmlns:jsp="http://java.sun.com/JSP/Page"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:og="hybs-taglib.tld"
	version="2.0">
<jsp:directive.page language="java" contentType="text/html; charset=UTF-8" />
<og:head headType="init" />
<!-- comment -->

<og:upload
	fileURL     = "{@USER.REF_KEY}"
/>

<og:equals val1="{@FILE_1}" nullCheck="true" notEquals="true">
	<og:query command="NEW">
		insert into ge39 (
			uniq_id, seqno, suffix, ref_key, system_id, sykey, syfile, syname, save_folder, file_url, file_name, contents, DYFILESET, USRTOROKU
		) values (
			ge39s02.nextval, 1, '', '{@REF_KEY}', '{@SYS.SYSTEM_ID}', '**', 'FILE_1', '添付1', '{@SYS.REAL_PATH}{@directory}', '{@SYS.CONTEXT_URL}{@directory}{@FILE_1}', '{@FILE_1}', '{@CONTENTS_1}' , '{@USER.YMDH}', '{@USER.ID}'
		)
	</og:query>
</og:equals>

<og:equals val1="{@FILE_2}" nullCheck="true" notEquals="true">
	<og:query command="NEW">
		insert into ge39 (
			uniq_id, seqno, suffix, ref_key, system_id, sykey, syfile, syname, save_folder, file_url, file_name, contents, DYFILESET, USRTOROKU
		) values (
			ge39s02.nextval, 1, '', '{@REF_KEY}', '{@SYS.SYSTEM_ID}', '**', 'FILE_2', '添付2', '{@SYS.REAL_PATH}{@directory}', '{@SYS.CONTEXT_URL}{@directory}{@FILE_2}', '{@FILE_2}', '{@CONTENTS_2}', '{@USER.YMDH}', '{@USER.ID}'
		)
	</og:query>
</og:equals>

<og:equals val1="{@FILE_3}" nullCheck="true" notEquals="true">
	<og:query command="NEW">
		insert into ge39 (
			uniq_id, seqno, suffix, ref_key, system_id, sykey, syfile, syname, save_folder, file_url, file_name, contents, DYFILESET, USRTOROKU
		) values (
			ge39s02.nextval, 1, '', '{@REF_KEY}', '{@SYS.SYSTEM_ID}', '**', 'FILE_3', '添付3', '{@SYS.REAL_PATH}{@directory}', '{@SYS.CONTEXT_URL}{@directory}{@FILE_3}', '{@FILE_3}', '{@CONTENTS_3}', '{@USER.YMDH}', '{@USER.ID}'
		)
	</og:query>
</og:equals>

<og:equals val1="{@FILE_4}" nullCheck="true" notEquals="true">
	<og:query command="NEW">
		insert into ge39 (
			uniq_id, seqno, suffix, ref_key, system_id, sykey, syfile, syname, save_folder, file_url, file_name, contents, DYFILESET, USRTOROKU
		) values (
			ge39s02.nextval, 1, '', '{@REF_KEY}', '{@SYS.SYSTEM_ID}', '**', 'FILE_4', '添付4', '{@SYS.REAL_PATH}{@directory}', '{@SYS.CONTEXT_URL}{@directory}{@FILE_4}', '{@FILE_4}', '{@CONTENTS_4}', '{@USER.YMDH}', '{@USER.ID}'
		)
	</og:query>
</og:equals>

<og:equals val1="{@FILE_5}" nullCheck="true" notEquals="true">
	<og:query command="NEW">
		insert into ge39 (
			uniq_id, seqno, suffix, ref_key, system_id, sykey, syfile, syname, save_folder, file_url, file_name, contents, DYFILESET, USRTOROKU
		) values (
			ge39s02.nextval, 1, '', '{@REF_KEY}', '{@SYS.SYSTEM_ID}', '**', 'FILE_5', '添付5', '{@SYS.REAL_PATH}{@directory}', '{@SYS.CONTEXT_URL}{@directory}{@FILE_5}', '{@FILE_5}', '{@CONTENTS_5}', '{@USER.YMDH}', '{@USER.ID}'
		)
	</og:query>
</og:equals>

<og:message lbl="MSG0003" comment="ファイルの登録が完了しました。" />

<og:forward page="result.jsp" keys="command,REF_KEY" vals="NEW,{@REF_KEY}" />

<jsp:directive.include file="/jsp/common/htmlend.jsp" />
</jsp:root>
