<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/jsp/tags.jsp"%>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/ticket/ticket.js"></script>
<%-- 1: 仕入 --%>
<s:set var="inModeFlg" value="@mobi.yoggy.erp.constant.Constant$TicketMode@IN_MODE_FLG"/>
<%-- 2:払出 --%>
<s:set var="outModeFlg" value="@mobi.yoggy.erp.constant.Constant$TicketMode@OUT_MODE_FLG"/>
<h2 class="capL01">チケット管理:チケット分配入力</h2>
<%-- error messages --%>
<s:include value="/WEB-INF/jsp/base/messages.jsp"></s:include>
<s:form id="dataCheck" action="ticket/input/search" method="post" namespace="/erp" theme="simple" autocomplete="off">
<web:dateToken />
<table cellpadding="0" cellspacing="0" class="specialTable">
<tr>
<th width="20%">仕入払出区分</th>
<td width="30%">
<select id="modeType" class="modeType" name="modeType" οnchange="TicketControl.changeMode(value);">
<option
<s:if test='modeType == #inModeFlg'>selected="selected"</s:if>
value="1">仕入
</option>
<option
<s:if test='modeType == #outModeFlg'>selected="selected"</s:if>
value="2">払出
</option>
</select>
</td>
<th width="20%"><span id="inputDay" <s:if test='#inModeFlg == modeType || "" == modeType'></s:if><s:else>style="display: none;" </s:else>>チケット仕入日</span>
<span id="outDay" <s:if test='#outModeFlg == modeType'></s:if><s:else>style="display: none;" </s:else>>チケット分配日</span>
<span class="textRed"></span></th>
<td width="30%">
<input id="startDay" οnchange="TicketControl.dateChange();" class="commonDatePiker" title="yyyy/mm/dd" name="startDay" type="text" value="<s:property value='startDay'/>" maxlength="10" />
</tr>
</table>
<table cellpadding="0" cellspacing="0" class="specialTable">
<s:if test='#inModeFlg == modeType || "" == modeType'>
<s:set var="disable" value="true"/>
</s:if>
<s:elseif test='#outModeFlg == modeType'>
<s:set var="disable" value="false"/>
</s:elseif>
<tr>
<th width="20%">チケット分配元<span <s:if test='#inModeFlg == modeType || "" == modeType'>style="display: none;"</s:if> id="FromL" class="textRed">[必須]</span></th>
<td width="30%">
<s:select id="from_list" list="distributePullDownFromList" listKey="facilityCd" disabled="#disable"
listValue="facilityName" theme="simple" name="distributeFromCd" value="distributeFromCd" headerKey="" headerValue="">
</s:select>
</td>
<th width="20%">チケット分配先<span <s:if test='#inModeFlg == modeType || "" == modeType'>style="display: none;"</s:if> id="TOL" class="textRed">[必須]</span></th>
<td width="30%">
<s:select id="to_list" list="distributePullDownToList" disabled="#disable"
listKey="facilityCd" listValue="facilityName" theme="simple"
name="distributeToCd" value="distributeToCd" headerKey=""
headerValue="">
</s:select>
</td>
</tr>
</table>
<p class="specialButton">
<input type="submit" value="検索" />
</p>
</s:form>
<s:form id="ticketInput" action="ticket/input/confirm" method="post" namespace="/erp" theme="simple" autocomplete="off">
<input type="hidden" name="modeType" value="<s:property value="modeType" />" />
<s:if test='#inModeFlg == modeType && null !=distributionFromList'>
<input type="hidden" class="inDay" name="startDay" value="<web:extDate name="startDay" format="yyyy/MM/dd" />" />
<table>
<tr>
<th rowspan="2">行番号</th>
<th rowspan="2">券種</th>
<th colspan="3">本社</th>
</tr>
<tr>
<th>在庫枚数</th>
<th>仕入枚数</th>
<th>仕入後枚数</th>
</tr>
<s:iterator value="distributionFromList" var="ticketGroupMaster" status="st">
<tr id="inputAmt" <s:if test="#st.even">class="evenLine"</s:if>>
<td class="alignRight"><s:property value="#st.count" /></td>
<td><s:property value='#ticketGroupMaster.ticketGroupName' />
<input type="hidden" name="<s:property value="%{'distributionFromList['+#st.index+'].ticketGroupName'}"/>" value='<s:property value="#ticketGroupMaster.ticketGroupName"/>' />
<input type="hidden" name="<s:property value="%{'distributionFromList['+#st.index+'].ticketGroupCd'}"/>" value="<s:property value="#ticketGroupMaster.ticketGroupCd" />" />
<%-- チケット在庫.更新日時 --%>
<input type="hidden" name="<s:property value="%{'distributionFromList['+#st.index+'].modDtHid'}"/>" value="<s:property value="#ticketGroupMaster.modDtHid" />" />
</td>
<td class="alignRight">
<s:property value='#ticketGroupMaster.amt' />
<input type="hidden" class="amt" name="<s:property value="%{'distributionFromList['+#st.index+'].amt'}"/>" value='<s:property value='#ticketGroupMaster.amt' />' />
</td>
<td class="alignRight">
<input class="inAmt" size="3" name="<s:property value="%{'distributionFromList['+#st.index+'].inAmt'}"/>" type="text" value="<s:property value='#ticketGroupMaster.inAmt' default="0" />" οninput="TicketControl.add(this);" onpropertychange="TicketControl.add(this);" maxlength="4" />
</td>
<td class="alignRight">
<span class="outAmt">
<s:if test="null == outAmt">
<s:property value='#ticketGroupMaster.amt' />
</s:if>
<s:else>
<s:property value='#ticketGroupMaster.outAmt' />
</s:else>
</span>
<input class="outAmt" name="<s:property value="%{'distributionFromList['+#st.index+'].outAmt'}"/>"
<s:if test="null == outAmt">
value="<s:property value='#ticketGroupMaster.amt' />"
</s:if>
<s:else>
value="<s:property value='#ticketGroupMaster.outAmt' />"
</s:else>
type="hidden" maxlength="10" />
</td>
</tr>
</s:iterator>
</table>
<p class="specialButton table1">
<input type="submit" value="確認" />
</p>
</s:if>
<s:elseif test='#outModeFlg == modeType && "" != distributeFromCd && "" != distributeToCd && null != distributionFromList'>
<input type="hidden" class="outDay" name="startDay" value="<web:extDate name="startDay" format="yyyy/MM/dd" />" />
<input type="hidden" name="distributeFromCd" value="<s:property value="distributeFromCd" />" />
<input type="hidden" name="distributeToCd" value="<s:property value="distributeToCd" />" />
<input id="facilityFromName" type="hidden" name="facilityFromName" />
<input id="facilityToName" type="hidden" name="facilityToName" />
<table>
<tr>
<th rowspan="2">行番号</th>
<th rowspan="2">券種</th>
<th colspan="3">分配元</th>
<th colspan="2">分配先</th>
</tr>
<tr>
<th>在庫枚数</th>
<th>分配枚数</th>
<th>分配後枚数</th>
<th>在庫枚数</th>
<th>分配後枚数</th>
</tr>
<s:iterator value="distributionFromList" var="tGM" status="st">
<tr id="inputAmt1" <s:if test="#st.even">class="evenLine"</s:if>>
<td class="alignRight"><s:property value="#st.count" /></td>
<td><s:property value='#tGM.ticketGroupName' />
<input type="hidden" name="<s:property value="%{'distributionFromList['+#st.index+'].ticketGroupName'}"/>" value='<s:property value="#tGM.ticketGroupName"/>' />
<input type="hidden" name="<s:property value="%{'distributionFromList['+#st.index+'].ticketGroupCd'}"/>" value='<s:property value="#tGM.ticketGroupCd"/>' />
<%-- チケット在庫.更新日時 --%>
<input type="hidden" name="<s:property value="%{'distributionFromList['+#st.index+'].modDtHid'}"/>" value="<s:property value="#tGM.modDtHid" />" />
</td>
<td class="alignRight">
<s:property value='#tGM.amt' />
<input class="amt1" name="<s:property value="%{'distributionFromList['+#st.index+'].amt'}"/>" type="hidden" value="<s:property value='#tGM.amt' />" />
</td>
<td class="alignRight">
<input class="inAmt1" size="3" name="<s:property value="%{'distributionFromList['+#st.index+'].inAmt1'}"/>" type="text" maxlength="4" value="<s:property value='#tGM.inAmt1' default="0" />" οninput="TicketControl.minus(this);" onpropertychange="TicketControl.minus(this);" />
</td>
<td class="alignRight">
<span class="outAmt1">
<s:if test="null == outAmt1 || '' == outAmt1 || 0 == outAmt1">
<s:property value='#tGM.amt' />
</s:if>
<s:else>
<s:property value='#tGM.outAmt1' />
</s:else>
</span>
<input class="outAmt1" name="<s:property value="%{'distributionFromList['+#st.index+'].outAmt1'}"/>" value="<s:property value='#tGM.outAmt1' default="0" />" type="hidden" maxlength="10" />
</td>
<td class="alignRight">
<s:property value='distributionToList.get(#st.index).amt' />
<input class="amt2" name="<s:property value="%{'distributionToList['+#st.index+'].amt'}"/>" type="hidden" value="<s:property value='distributionToList.get(#st.index).amt' />" maxlength="10" />
<%-- チケット在庫.更新日時 --%>
<input type="hidden" name="<s:property value="%{'distributionToList['+#st.index+'].modDtHid'}"/>" value="<s:property value='distributionToList.get(#st.index).modDtHid' />" />
</td>
<td id="outAmt3" class="alignRight">
<span class="amt3">
<s:if test="null == distributionToList.get(#st.index).amt3">
<s:property value='distributionToList.get(#st.index).amt' default='0' />
</s:if>
<s:elseif test="null != distributionToList.get(#st.index).amt3">
<s:property value='distributionToList.get(#st.index).amt3' />
</s:elseif>
</span>
<input class="amt3" name="<s:property value="%{'distributionToList['+#st.index+'].amt3'}"/>"
<s:if test="null == distributionToList.get(#st.index).amt3">
value="<s:property value='distributionToList.get(#st.index).amt' default='0' />"
</s:if>
<s:else>
value="<s:property value='distributionToList.get(#st.index).amt3' />"
</s:else>
type="hidden" maxlength="4" />
</td>
</tr>
</s:iterator>
</table>
<p class="specialButton table2">
<input type="submit" value="確認" />
</p>
</s:elseif>
</s:form>
####################################
2.ticket_search_detail.jsp
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/jsp/tags.jsp"%>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/common/member/member.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/ticket/ticket.js"></script>
<%-- 1:凍結中 --%>
<s:set var="freezingFlg" value="@mobi.yoggy.erp.constant.Constant$TicketMode@FREEZING_FLG"/>
<%-- 0:使用中 --%>
<s:set var="usingFlg" value="@mobi.yoggy.erp.constant.Constant$TicketMode@USING_FLG"/>
<%-- 2:使用済 --%>
<s:set var="usedFlg" value="@mobi.yoggy.erp.constant.Constant$TicketMode@USED_FLG"/>
<%-- 3:期限切 --%>
<s:set var="expirationFlg" value="@mobi.yoggy.erp.constant.Constant$TicketMode@EXPIRATION_FLG"/>
<%-- 4:繰越済 --%>
<s:set var="alreadyFlg" value="@mobi.yoggy.erp.constant.Constant$TicketMode@ALREADY_FLG"/>
<%-- 5:交換済 --%>
<s:set var="exchangeFlg" value="@mobi.yoggy.erp.constant.Constant$TicketMode@EXCHANGE_FLG"/>
<!--▼user▼-->
<s:form id="ticketSearchDetail" action="" method="post" namespace="/erp" theme="simple">
<input type="hidden" name="ticketBean.modtHid" value="<s:property value='ticketBean.modtHid'/>" />
<input type="hidden" name="statusFlg" value="<s:property value='statusFlg'/>" />
<input type="hidden" name="ticketBean.modDtJyohoHid" value="<s:property value='ticketBean.modDtJyohoHid'/>" />
<input type="hidden" name="ticketBean.memberIdT" id="memberIdT" value="<s:property value='ticketBean.memberIdT'/>" />
<web:dateToken />
<h2 class="capL01">チケット管理:チケット明細</h2>
<%-- error messages --%>
<s:include value="/WEB-INF/jsp/base/messages.jsp"></s:include>
<table cellpadding="0" cellspacing="0" class="specialTable">
<s:if test="statusFlg == 1"><div class="finishBox">チケットを凍結しました。</div></s:if>
<s:if test="statusFlg == 2"><div class="finishBox">チケットを凍結解除しました。</div></s:if>
<s:if test="statusFlg == 3"><div class="finishBox">会員を確定しました。</div></s:if>
<tr>
<th width="20%">券種</th>
<td width="30%">
<s:property value="ticketBean.ticketGroupName" />
<input type="hidden" name="ticketGroupName" value="<s:property value='ticketBean.ticketGroupCd'/>" />
<input type="hidden" name="ticketBean.ticketGroupName" value="<s:property value='ticketBean.ticketGroupName'/>" />
</td>
<th width="20%">チケット№</th>
<td width="30%" >
<s:property value='ticketBean.ticketNo'/>
<input type="hidden" name="ticketCd" value="<s:property value='ticketBean.ticketNo'/>" />
<input type="hidden" name="ticketBean.ticketNo" value="<s:property value='ticketBean.ticketNo'/>" />
</td>
</tr>
<tr>
<th>購入スタジオ</th>
<td><s:property value="ticketBean.name" /></td>
<th>購入日</th>
<td ><web:extDate name="ticketBean.startDt" format="yyyy/MM/dd" /></td>
</tr>
<tr>
<th>ステータス</th>
<td>
<s:if test="%{#usingFlg == ticketBean.status}">使用中</s:if><s:elseif
test="%{#freezingFlg == ticketBean.status}">凍結中</s:elseif> <s:elseif
test="%{#usedFlg == ticketBean.status}">使用済</s:elseif><s:elseif
test="%{#expirationFlg == ticketBean.status}">期限切</s:elseif> <s:elseif
test="%{#alreadyFlg == ticketBean.status}">繰越済</s:elseif><s:elseif
test="%{#exchangeFlg == ticketBean.status}">交換済</s:elseif>
</td>
<th>使用期限</th>
<td>
<s:if test="%{#freezingFlg == ticketBean.status}">
<input id="userDate" class="commonDatePiker" title="yyyy/mm/dd" name="ticketBean.limitDtStr" type="text" value="<s:property value='ticketBean.limitDtStr'/>" maxlength="10" />
</s:if>
<s:else><web:extDate name="ticketBean.limitDtStr" format="yyyy/MM/dd" /></s:else>
</td>
</tr>
<tr>
<th>購入者会員番号</th>
<td><s:property value="ticketBean.memberIdHdr" /></td>
<th>購入者</th>
<td><s:property value="ticketBean.firstnameKanjiHdr" /></td>
</tr>
<tr>
<th>利用者会員番号</th>
<td >
<span id="mid"><s:property value="ticketBean.memberIdT" /></span>
<s:if test="%{null == ticketBean.memberIdT || '' == ticketBean.memberIdT}">
<input type="button" value=" 会員選択 " οnclick="MemberSearch.f1();return false;"/>
</s:if>
</td>
<th>利用者</th>
<td>
<span id="mName"><s:property value="ticketBean.firstnameKanjiT" /></span>
</td>
</tr>
</table>
<table cellpadding="0" cellspacing="0">
<tr>
<th>行番号</th>
<th>利用スタジオ</th>
<th>利用日</th>
<th>開始日時</th>
<th>利用クラス</th>
<th>講師</th>
</tr>
<s:iterator value="classReceptionList" var="classRecption" status="st">
<tr>
<td class="alignRight"><s:property value="#st.count" /></td>
<td><s:property value="#classRecption.name" /></td>
<td ><web:extDate name="#classRecption.startDt" format="yyyy/MM/dd" /></td>
<td ><web:extDate name="#classRecption.startDt" format="HH:mm" /></td>
<td><s:property value="#classRecption.label" /></td>
<td><s:property value="#classRecption.nickName" /></td>
</tr>
</s:iterator>
</table>
<table cellpadding="0" cellspacing="0" class="specialTable">
<tr>
<th width="20%">利用回数</th>
<td width="30%" class="alignRight">
<s:property value="ticketBean.useTimes" />
</td>
<th width="20%">残回数</th>
<td width="30%" class="alignRight">
<s:property value="ticketBean.remainTimes" />
</td>
</tr>
</table>
</s:form>
<p class="specialButton">
<input type="button" value="チケット照会画面へ戻る"
οnclick="commonForm.Submit('ticketSearchDetail','<s:url action="ticket/search/top" namespace="/erp"/>')" />
<s:if test="%{#usingFlg == ticketBean.status}">
<input type="button" value=" 凍結 " οnclick="commonForm.Submit('ticketSearchDetail','<s:url action="ticket/frozen/commit" namespace="/erp" />')" />
</s:if>
<s:if test="%{#freezingFlg == ticketBean.status}">
<input type="button" value=" 凍結解除 " οnclick="CancelButton.submit('ticketSearchDetail','<s:url action="ticket/unfreeze/commit" namespace="/erp" />')" />
</s:if>
<s:if test="%{null == ticketBean.memberIdT || '' == ticketBean.memberIdT}">
<input type="button" value=" 会員確定 " οnclick="commonForm.Submit('ticketSearchDetail','<s:url action="ticket/memberDefinition/commit" namespace="/erp" />')" />
</s:if>
</p>
<!--↑link↑-->
<!--▲user▲-->
###################################
3.ticket_stock_list.jsp
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/jsp/tags.jsp"%>
<h2 class="capL01">チケット管理:チケット在庫一覧</h2>
<%-- error messages --%>
<s:include value="/WEB-INF/jsp/base/messages.jsp"></s:include>
<s:if test='0 == ticketStockList.size()'>
<div class="finishBox">検索結果は0件です。</div>
</s:if>
<s:form id="ticketStockCheck" action="" method="post" namespace="/erp"
theme="simple">
<table cellpadding="0" cellspacing="0" class="specialTable">
<tr>
<th width="36%">スタジオ</th>
<td width="64%">
<s:if test="studioList != null && 0 != studioList.size()">
<s:select list="studioList" listKey="facilityCd" listValue="facilityName" theme="simple"
name="facilityCd" value="facilityCd" headerKey="" headerValue="">
</s:select>
</s:if>
<s:if test="customerList != null && 0 != customerList.size()">
<s:select list="customerList" listKey="shipmentCd" listValue="shipmentName" theme="simple"
name="facilityCd" value="facilityCd" headerKey="" headerValue="">
</s:select>
</s:if>
</td>
</tr>
</table>
<input type="hidden" name="flg" value="1" />
<p class="specialButton"><input name="button2" type="button" value=" 検索 " οnclick="commonForm.Submit('ticketStockCheck','<s:url action="ticket/stock/list" namespace="/erp" />')" />
</p>
</s:form>
<s:form id="ticketStockBack" action="" method="post" namespace="/erp" theme="simple">
<s:if test="1 == flg && 0 != ticketStockList.size()">
<table cellpadding="0" cellspacing="0">
<tr>
<th>行番号</th>
<th class="toggle">スタジオ</th>
<s:iterator value="ticketGroupList" var="ticketGroupMaster">
<th><s:property value="#ticketGroupMaster.ticketGroupName" />(枚数)</th>
</s:iterator>
</tr>
<s:iterator value="ticketStockList" status="st">
<tr>
<td class="alignRight"><s:property value="#st.count" /></td>
<td><s:property value="facilityName"/></td>
<s:iterator value="amtList">
<td class="alignRight"><s:property/></td>
</s:iterator>
</tr>
</s:iterator>
</table>
</s:if>
</s:form>
##############################
4.ticket_confirm.jsp
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/jsp/tags.jsp"%>
<%-- 1: 仕入 --%>
<s:set var="inModeFlg" value="@mobi.yoggy.erp.constant.Constant$TicketMode@IN_MODE_FLG"/>
<%-- 2:払出 --%>
<s:set var="outModeFlg" value="@mobi.yoggy.erp.constant.Constant$TicketMode@OUT_MODE_FLG"/>
<div class="finishBox">下記内容でチケット移動を登録致します。<br/>
下記内容で宜しければ「確定」ボタンを押下してください。<br/>
修正する場合は「修正」ボタンを押下してください。
</div>
<s:form id="ticketConfirm" action="" method="post" namespace="/erp"
theme="simple">
<web:dateToken />
<h2 class="capL01">チケット管理:チケット分配確認</h2>
<s:if test='#inModeFlg == modeType'>
<table cellpadding="0" cellspacing="0" class="specialTable table1" id="table1">
<tr>
<th>仕入払出区分</th>
<td>
仕入
<input type="hidden" name="modeType" value="1"/>
</td>
</tr>
<tr>
<th>チケット仕入日</th>
<td>
<s:property value="startDay" />
<input type="hidden" name="startDay" value="<s:property value='startDay'/>" />
</td>
</tr>
</table>
<table>
<tr>
<th rowspan="2">行番号</th>
<th rowspan="2">券種</th>
<th colspan="3">本社</th>
</tr>
<tr>
<th>在庫枚数</th>
<th>仕入枚数</th>
<th>仕入後枚数</th>
</tr>
<s:iterator value="distributionFromList" var="GL" status="st">
<tr <s:if test="#st.even">class="evenLine"</s:if>>
<td><s:property value="#st.count" /></td>
<td><s:property value='#GL.ticketGroupName' /></td>
<td><s:property value='#GL.amt' /></td>
<td><s:property value='#GL.inAmt' /></td>
<td><s:property value='#GL.outAmt'/></td>
</tr>
<input type="hidden" name="<s:property value="%{'distributionFromList['+#st.index+'].ticketGroupName'}"/>" value="<s:property value='#GL.ticketGroupName' />" />
<input type="hidden" name="<s:property value="%{'distributionFromList['+#st.index+'].ticketGroupCd'}"/>" value="<s:property value='#GL.ticketGroupCd' />" />
<input type="hidden" name="<s:property value="%{'distributionFromList['+#st.index+'].amt'}"/>" value="<s:property value='#GL.amt'/>" />
<input type="hidden" name="<s:property value="%{'distributionFromList['+#st.index+'].inAmt'}"/>" value="<s:property value='#GL.inAmt'/>" />
<input type="hidden" name="<s:property value="%{'distributionFromList['+#st.index+'].outAmt'}"/>" value="<s:property value='#GL.outAmt'/>" />
<input type="hidden" name="<s:property value="%{'distributionFromList['+#st.index+'].modDtHid'}"/>" value="<s:property value='#GL.modDtHid'/>" />
</s:iterator>
</table>
</s:if>
<s:elseif test='#outModeFlg == modeType'>
<table cellpadding="0" cellspacing="0" class="specialTable table1" id="table1">
<tr>
<th>仕入払出区分</th>
<td>
払出
<input type="hidden" name="modeType" value="2"/>
</td>
</tr>
<tr>
<th>チケット分配日</th>
<td>
<s:property value="startDay" />
<input type="hidden" name="startDay" value="<s:property value='startDay'/>" />
</td>
</tr>
<tr>
<th>チケット分配元</th>
<td>
<s:property value="facilityFromName" />
<input type="hidden" name="distributeFromCd" value="<s:property value="distributeFromCd" />" />
<input type="hidden" name="facilityFromName" value="<s:property value="facilityFromName" />" />
</td>
</tr>
<tr>
<th>チケット分配先</th>
<td>
<s:property value="facilityToName" />
<input type="hidden" name="distributeToCd" value="<s:property value="distributeToCd" />" />
<input type="hidden" name="facilityToName" value="<s:property value="facilityToName" />" />
</td>
</tr>
</table>
<table>
<tr>
<th rowspan="2">行番号</th>
<th rowspan="2">券種</th>
<th colspan="3">分配元</th>
<th colspan="2">分配先</th>
</tr>
<tr>
<th>在庫枚数</th>
<th>分配枚数</th>
<th>分配後枚数</th>
<th>在庫枚数</th>
<th>分配後枚数</th>
</tr>
<s:iterator value="distributionFromList" var="GL" status="st">
<tr <s:if test="#st.even">class="evenLine"</s:if>>
<td>
<s:property value='#st.count' />
</td>
<td>
<s:property value='#GL.ticketGroupName' />
<input type="hidden" name="<s:property value="%{'distributionFromList['+#st.index+'].ticketGroupCd'}"/>" value="<s:property value='#GL.ticketGroupCd' />" />
<input type="hidden" name="<s:property value="%{'distributionFromList['+#st.index+'].ticketGroupName'}"/>" value="<s:property value='#GL.ticketGroupName' />" />
<input type="hidden" name="<s:property value="%{'distributionFromList['+#st.index+'].modDtHid'}"/>" value="<s:property value='#GL.modDtHid' />" />
</td>
<td>
<s:property value='#GL.amt' />
<input type="hidden" name="<s:property value="%{'distributionFromList['+#st.index+'].amt'}"/>" value="<s:property value='#GL.amt' />" />
</td>
<td>
<s:property value='#GL.inAmt1' />
<input type="hidden" name="<s:property value="%{'distributionFromList['+#st.index+'].inAmt1'}"/>" value="<s:property value='#GL.inAmt1' />" />
</td>
<td>
<web:money name='#GL.amt - #GL.inAmt1' />
<input type="hidden" name="<s:property value="%{'distributionFromList['+#st.index+'].outAmt1'}"/>" value="<web:money name='#GL.amt - #GL.inAmt1' />" />
</td>
<td>
<s:property value='distributionToList.get(#st.index).amt' />
<input type="hidden" name="<s:property value="%{'distributionToList['+#st.index+'].amt'}"/>" value="<s:property value='distributionToList.get(#st.index).amt' />" />
<input type="hidden" name="<s:property value="%{'distributionToList['+#st.index+'].modDtHid'}"/>" value="<s:property value='distributionToList.get(#st.index).modDtHid' />" />
</td>
<td>
<s:property value='distributionToList.get(#st.index).amt3' />
<input type="hidden" name="<s:property value="%{'distributionToList['+#st.index+'].amt3'}"/>" value="<s:property value='distributionToList.get(#st.index).amt3' />" />
</td>
</tr>
</s:iterator>
</table>
</s:elseif>
<p class="specialButton table1">
<input type="button" value="修正" οnclick="commonForm.Submit('ticketConfirm','<s:url action="ticket/input/edit" namespace="/erp"/>')" />
<input type="button" value="確定" οnclick="commonForm.Submit('ticketConfirm','<s:url action="ticket/input/complete" namespace="/erp" />')" />
</p>
</s:form>
###################################
5.ticket_complete.jsp
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/jsp/tags.jsp"%>
<%-- 1: 仕入 --%>
<s:set var="inModeFlg" value="@mobi.yoggy.erp.constant.Constant$TicketMode@IN_MODE_FLG"/>
<%-- 2:払出 --%>
<s:set var="outModeFlg" value="@mobi.yoggy.erp.constant.Constant$TicketMode@OUT_MODE_FLG"/>
<div class="finishBox">チケット移動を登録しました。</div>
<h2 class="capL01">チケット管理:チケット分配確定</h2>
<s:if test='#inModeFlg == modeType'>
<table cellpadding="0" cellspacing="0" class="specialTable table1" id="table1">
<tr>
<th>仕入払出区分</th>
<td>
仕入
</td>
</tr>
<tr>
<th>チケット仕入日</th>
<td>
<s:property value="startDay" />
</td>
</tr>
</table>
<table>
<tr>
<th rowspan="2">行番号</th>
<th rowspan="2">券種</th>
<th colspan="3">本社</th>
</tr>
<tr>
<th>在庫枚数</th>
<th>仕入枚数</th>
<th>仕入後枚数</th>
</tr>
<s:iterator value="distributionFromList" var="GL" status="st">
<tr <s:if test="#st.even">class="evenLine"</s:if>>
<td><s:property value="#st.count" /></td>
<td><s:property value='#GL.ticketGroupName' /></td>
<td><s:property value='#GL.amt' /></td>
<td><s:property value='#GL.inAmt' /></td>
<td><s:property value='#GL.outAmt'/></td>
</tr>
</s:iterator>
</table>
</s:if>
<s:elseif test='#outModeFlg == modeType'>
<table cellpadding="0" cellspacing="0" class="specialTable table1" id="table1">
<tr>
<th>仕入払出区分</th>
<td>
払出
</td>
</tr>
<tr>
<th>チケット分配日</th>
<td>
<s:property value="startDay" />
</td>
</tr>
<tr>
<th>チケット分配元</th>
<td>
<s:property value="facilityFromName" />
</td>
</tr>
<tr>
<th>チケット分配先</th>
<td>
<s:property value="facilityToName" />
</td>
</tr>
</table>
<table>
<tr>
<th rowspan="2">行番号</th>
<th rowspan="2">券種</th>
<th colspan="3">分配元</th>
<th colspan="2">分配先</th>
</tr>
<tr>
<th>在庫枚数</th>
<th>分配枚数</th>
<th>分配後枚数</th>
<th>在庫枚数</th>
<th>分配後枚数</th>
</tr>
<s:iterator value="distributionFromList" var="GL" status="st">
<tr <s:if test="#st.even">class="evenLine"</s:if>>
<td>
<s:property value='#st.count' />
</td>
<td>
<s:property value='#GL.ticketGroupName' />
</td>
<td>
<s:property value='#GL.amt' />
</td>
<td>
<s:property value='#GL.inAmt1' />
</td>
<td>
<s:property value='#GL.outAmt1' />
</td>
<td>
<s:property value='distributionToList.get(#st.index).amt' default='0' />
</td>
<td>
<s:property value='distributionToList.get(#st.index).amt3' />
</td>
</tr>
</s:iterator>
</table>
</s:elseif>
<p class="specialButton table1">
<input type="button" value="トップメニューへ戻る" οnclick="window.location.href='<s:url action="ticket/input/top" namespace="/erp"/>'" />
</p>