-
Notifications
You must be signed in to change notification settings - Fork 0
/
dl_remainderBank.html
320 lines (296 loc) · 10.4 KB
/
dl_remainderBank.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
#{extends 'main.html' /}
#{set title:messages.get('views.detaillist.remainderBank.title') /}
<style>
<!--
*,
*:after,
*::before {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
-->
</style>
<script type="text/javascript" src="@{'/public/javascripts/funcCheckVal.js'}" ></script>
<script type="text/javascript" src="@{'/public/javascripts/dateformat.js'}" ></script>
<script type="text/javascript">
<!--
jQuery(function(){
/* 左クリックか右クリックでメニュー表示 */
jQuery('.menu_cell').mousedown(function(e) {
if (e.which==1 || e.which==3) {
//家計簿編集へジャンプする際のID・呼び出し元をセット
jQuery('#idRecordEdit').val(jQuery('.ToReId', jQuery(this).closest("li")).val());
jQuery('#reEdCalledFrom').val("${request.actionMethod}");
//収支明細へジャンプする際の絞込項目セット
jQuery('#hBalanceTypeId').val(jQuery('.ToDlBalanceTypeId', jQuery(this).closest("li")).val());
jQuery('#hHandlingId').val(jQuery('.ToDlHandlingId', jQuery(this).closest("li")).val());
jQuery('#hDebitDateFr').val(jQuery('.ToDlDebitDateFr', jQuery(this).closest("li")).val());
jQuery('#hDebitDateTo').val(jQuery('.ToDlDebitDateTo', jQuery(this).closest("li")).val());
e.preventDefault();
jQuery('.menu_cell').contextMenu({x: e.pageX, y: e.pageY});
}
});
jQuery.contextMenu({
selector: '.menu_cell',
trigger: 'none',
build: function($trigger, e) {
var options = {
callback: function(key, options) {
if (key=="toRecordEdit") {
// jQuery('#submitRecordEdit').click();
dl_recordEdit(parseInt(jQuery('#idRecordEdit').val()));
}
if (key=="toRecordDel") {
dl_recordDel(parseInt(jQuery('#idRecordEdit').val()));
}
if (key=="toDlBalance") {
jQuery('#submitDlBalance').click(); // .submit() だと、srch=nullになるため .click() でサブミットする
jQuery('body').attr("disabled", "disabled");
}
},
items: {}
};
if (jQuery('#idRecordEdit').val()!=0) {
options.items.toRecordEdit = {name: "&{'views.common.menu.toRecordEdit'}"};
options.items.toRecordDel = {name: "&{'views.common.menu.toRecordDel'}"};
} else {
options.items.toDlBalance = {name: "&{'views.common.menu.toDlBalance'}"};
}
return options;
}
});
/* 「公開フラグ」・「取扱(実際)」の変更イベント */
jQuery("#idHdSecretRecFlg, #dlCmbHdHandling").change(function() {
jQuery('#idSrch').click();
jQuery('body').attr("disabled", "disabled");
});
/* 「引落日」の変更イベント */
jQuery("#frJump, #toJump").change(function() {
var sDate = jQuery(this).val().substr(0,10);
if (sDate=='' || ckDate(sDate)==true) {
jQuery('#idSrch').click();
jQuery('body').attr("disabled", "disabled");
}
});
});
// -->
</script>
<script type="text/javascript" src="@{'/public/javascripts/jquery.contextMenu.js'}"></script>
<link rel="stylesheet" type="text/css" href="@{'/public/stylesheets/jquery.contextMenu.css'}" />
#{set 'moreMenu'}
#{include 'headerMenu.html' /}
#{/set}
#{set 'headerTools'}
#{include 'headerTools.html' /}
#{/set}
#{set 'moreHeader'}
<div id="fill2">
<div id="dlHeader">
<div id="dlHeaderInner1">
<!-- 収支明細へジャンプ用フォーム(非表示) -->
#{include 'toDetailList_dl_balance.html' /}
<!-- 家計簿編集へジャンプ用フォーム(非表示) -->
#{include 'toRecordEdit_recordEdit.html' /}
<!-- 明細表共通ヘッダー -->
#{include 'DetailList/dl_header.html' /}
</div> <!-- dlHeaderInner1 -->
<div id="dlHeaderInner2"></div>
<div id="dlHeaderInner3"></div>
<div id="dlHeaderInner4">
#{form @DetailList.dl_remainderBank(), id:'frmDlRemainder'}
<!-- 絞込のサブミット(非表示) -->
<input type="submit" id="idSrch" name="srch" class="invisible" />
<div id="dl_tblFrameHd">
<div id="dlRm_tblContentHd" >
<ul class="dl_tbl">
<!-- ヘッダー行 -->
<li>
#{if session.get('actionMode')!='View'}
<!-- 非公開フラグ -->
<div id="idHdSecretRecFlg" class="dl_secret_rec_flg dl_head dl_borderLeft" >
公<br>開<br>
<select class="dl_tbl_content" name="h_secret_rec_flg">
<option value="0"${h_secret_rec_flg==0 ? ' selected' : ''}>--</option>
<option value="1"${h_secret_rec_flg==1 ? ' selected' : ''}>公</option>
<option value="2"${h_secret_rec_flg==2 ? ' selected' : ''}>非</option>
</select>
</div>
#{/if}
<!-- 引落日 -->
%{
clDlRmDebitDateHd = 'dlRm_debit_date dl_head'
if (session.get('actionMode')=='View'){
clDlRmDebitDateHd += ' dl_borderLeft'
}
}%
<div class="${clDlRmDebitDateHd}">
&{'debit_date'}<br>
<input type="text" class="dl_tbl_content dl_payment_date_text" id="frJump" name="h_debit_date_fr" value="${h_debit_date_fr}" />
<br><label for="to">~</label><br>
<input type="text" class="dl_tbl_content dl_payment_date_text" id="toJump" name="h_debit_date_to" value="${h_debit_date_to}" />
</div>
<!-- 支払日 -->
<div class="dl_payment_date dl_head">
&{'payment_date'}
</div>
<!-- 収支種類 -->
<div class="dl_balance_type dl_head">
&{'balance_type_mst'}<br>
</div>
<!-- 取扱(実際) -->
<div class="dl_common_column dl_head">
&{'handling_mst'}<br>
<select id="dlCmbHdHandling" class="dl_tbl_content" name="h_handling_id">
#{list items:handlings, as:'handling'}
<option value="${handling.id}"${h_handling_id==handling.id ? ' selected' : ''}>${handling.handling_name}</option>
#{/list}
</select>
</div>
<!-- 取扱(Parllet) -->
<div class="dl_common_column dl_head">
&{'parllet_mst'}<br>
</div>
<!-- 引出 -->
<div class="dlRm_amount dl_head">
&{'views.detaillist.remainderCommon.out'}<br>
</div>
<!-- 預入 -->
<div class="dlRm_amount dl_head">
&{'views.detaillist.remainderCommon.in'}<br>
</div>
<!-- お店 -->
<div class="dl_common_column dl_head">
&{'store'}<br>
</div>
<!-- 残高 -->
<div class="dlRm_remainder dl_head">
&{'views.detaillist.remainder'}<br>
</div>
</li>
</ul>
</div> <!-- dlRm_tblContentHd -->
</div> <!-- dl_tblFrameHd -->
#{/form}
</div> <!-- dlHeaderInner4 -->
</div> <!-- dlHeader -->
</div> <!-- fill2 -->
#{/set}
<div id="dlMain">
<div id="dlMainInner">
<div id="dl_tblFrame">
<div id="dlRm_tblContent" >
<ul class="dl_tbl">
<!-- 明細行 -->
#{if lWDRR?.size() > 0}
#{list items:lWDRR, as:'wdrr'}
%{strBbf = messages.get('views.detaillist.remainderBank.balanceBroughtForward')}%
<li>
<input type="hidden" class="ToReId" value="${wdrr?.lngId}" />
<input type="hidden" class="ToDlBalanceTypeId" value="${wdrr?.lngBalanceTypeId}" />
<input type="hidden" class="ToDlHandlingId" value="${wdrr?.lngHandlingId}" />
<input type="hidden" class="ToDlDebitDateFr" value="${wdrr?.strDebitDate}" />
<input type="hidden" class="ToDlDebitDateTo" value="${wdrr?.strDebitDate}" />
#{if session.get('actionMode')!='View'}
<!-- 非公開フラグ -->
<div class="dl_secret_rec_flg dl_borderLeft${wdrr?.strBalanceTypeName==strBbf ? '' : ' menu_cell'}">
${wdrr?.strBalanceTypeName==strBbf ? '' : (wdrr?.bolSecretRecFlg ? '非' : '公')}
</div>
#{/if}
<!-- 引落日 -->
%{
clDlRmDebitDate = 'dlRm_debit_date'
clDlRmDebitDate += wdrr?.strBalanceTypeName==strBbf ? '' : ' menu_cell'
if (session.get('actionMode')=='View'){
clDlRmDebitDate += ' dl_borderLeft'
}
}%
<div class="${clDlRmDebitDate}">
<span class="dl_string">
${wdrr?.strDebitDate}
</span>
</div>
<!-- 支払日 -->
<div class="dl_payment_date${wdrr?.strBalanceTypeName==strBbf ? '' : ' menu_cell'}">
<span class="dl_string">
#{if wdrr?.strPaymentDate!=''}
#{if wdrr?.strPaymentDate.getAt(11..15)=='00:00'}
${wdrr?.strPaymentDate.getAt(0..9)}
#{/if}
#{else}
${wdrr?.strPaymentDate.getAt(0..9)}<br>
${wdrr?.strPaymentDate.getAt(11..15)}
#{/else}
#{/if}
</span>
</div>
<!-- 収支種類 -->
<div class="dl_balance_type${wdrr?.strBalanceTypeName==strBbf ? '' : ' menu_cell'}">
<span class="dl_string">
${wdrr?.strBalanceTypeName}
</span>
</div>
<!-- 取扱(実際) -->
<div class="dl_common_column${wdrr?.strBalanceTypeName==strBbf ? '' : ' menu_cell'}">
<span class="dl_string">
${wdrr?.strHandlingName}
</span>
</div>
<!-- 取扱(Parllet) -->
<div class="dl_common_column${wdrr?.strBalanceTypeName==strBbf ? '' : ' menu_cell'}">
<span class="dl_string">
${wdrr?.strParlletName}
</span>
</div>
<!-- 項目 -->
<!--
<div class="dl_common_column">
<span class="dl_string">
${record?.item_mst?.item_name}
</span>
</div>
-->
<!-- 引出 -->
<div class="dlRm_amount${wdrr?.strBalanceTypeName==strBbf ? '' : ' menu_cell'}">
<span class="padR4">
${wdrr?.strBalanceTypeName==messages.get('BalanceType.out') || wdrr?.strBalanceTypeName==messages.get('BalanceType.bank_out') ? wdrr?.lngAmount.format('###,###') : ''}
</span>
</div>
<!-- 預入 -->
<div class="dlRm_amount${wdrr?.strBalanceTypeName==strBbf ? '' : ' menu_cell'}">
<span class="padR4">
${wdrr?.strBalanceTypeName==messages.get('BalanceType.in') || wdrr?.strBalanceTypeName==messages.get('BalanceType.bank_in') ? wdrr?.lngAmount.format('###,###') : ''}
</span>
</div>
<!-- お店 -->
<div class="dl_common_column${wdrr?.strBalanceTypeName==strBbf ? '' : ' menu_cell'}">
<span class="dl_string">
${wdrr?.strStore}
</span>
</div>
<!-- 残高 -->
<div class="dlRm_remainder${wdrr?.strBalanceTypeName==strBbf ? '' : ' menu_cell'}">
<span class="padR4">
${wdrr?.lngRemainder.format('###,###')}
</span>
</div>
</li>
#{/list}
#{/if}
</ul>
</div> <!-- dlRm_tblContent -->
</div> <!-- dl_tblFrame -->
</div> <!-- dlMainInner -->
</div> <!-- dlMain -->
<div id="dlFooter">
<div id="dlFooterInner">
<div id="dl_tblFrameFt">
<div id="dlRmChartFrame">
<div id="dlRmChart"></div>
</div>
</div> <!-- dl_tblFrameFt -->
<div id="configListPagination">
#{DetailList.dl_remainder_bank.pagination /}
</div>
</div> <!-- dlFooterInner -->
</div> <!-- dlFooter -->