trustApplySupplement.jsp
3.95 KB
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
<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<!DOCTYPE html>
<html>
<head>
<jsp:include page="${ctx }/WEB-INF/view/meta.jsp"></jsp:include>
<script type="text/javascript" src="${ctx}/resource/js/ration/trustApplySupplement.js?r=${random}"></script>
</head>
<body>
<div class="easyui-panel" data-options="fit:true">
<div class="easyui-panel" style="padding:10px;"
data-options="title:'查询条件', collapsible:true, width:'100%', height:'20%'">
<form id="search-form" action="/admin/search" method="post">
<table class="search-table">
<tr>
<td>
藏品代码:<input name="otcCode" class="easyui-textbox search-input">
</td>
<td>
藏品名称:<input name="otcName" class="easyui-textbox search-input">
</td>
<td>
<a href="javascript:TrustApplySupplement.search()" class="easyui-linkbutton search-button" data-options="iconCls:'icon-search'">搜索</a>
</td>
</tr>
</table>
</form>
</div>
<div class="easyui-panel" data-options="height:'80%',title:'查询结果'">
<!-- DataGrid -->
<table id="data-grid" class="easyui-datagrid"
data-options="fitColumns:true, singleSelect:true, fit:true, pagination:true,
rownumbers:true, toolbar:'#toolbar', selectOnCheck:true, selectOnCheck:true, pageSize:20, showFooter:true">
<thead>
<tr>
<th data-options="field:'id', checkbox:true"></th>
<th data-options="field:'otcCode'">藏品编号</th>
<th data-options="field:'otcName'">藏品名称</th>
<th data-options="field:'totalAmount'">入库总量</th>
<th data-options="field:'turnover'">流通量</th>
<th data-options="field:'applyCount'">有效申请量</th>
<th data-options="field:'lowAmount', formatter:TrustApplySupplement.applyAmount">计算可托管总量</th>
<th data-options="field:'applicableAmount'">当前可申请数量</th>
</tr>
</thead>
<tbody></tbody>
</table>
</div>
<div id="toolbar">
<a href="javascript:TrustApplySupplement.beforeUpdateTotalAmount()" class="easyui-linkbutton" style="with:120px;">设定入库总量</a>
</div>
</div>
<!-- Add Form -->
<div id="add-dialog" class="easyui-dialog" style="padding:10px; width: 420px;"
data-options="closed:true, title:'编辑托管', buttons:'#add-dialog-buttons'">
<form id="add-form" method="post" data-options="novalidate: false">
<input name="id" type="hidden">
<ul class="simple-ul">
<li>
<label>藏品代码:</label>
<input name="otcCode" class="easyui-textbox add-input" data-options="required:true">
</li>
<li>
<label>可申请总量:</label>
<input name="applicableAmount" class="easyui-numberbox add-input" data-options="required:true">
</li>
<li>
<label>入库总量:</label>
<input name="totalAmount" class="easyui-numberbox add-input" data-options="required:true">
</li>
<li>
<label>备注:</label>
<input name="remark" class="easyui-textbox add-input" data-options="multiline: true"
style="height: 60px;">
</li>
<li>
<p>1、可申请数量必须填写一个有效的数字。</p>
<p>2、新品托管的入库总量填0,补货托管的正确填写。</p>
</li>
</ul>
</form>
</div>
<div id="add-dialog-buttons" style="text-align:center;">
<a href="javascript:TrustApplySupplement.updateTotalAmount()" class="easyui-linkbutton c6 search-button" data-options="iconCls:'icon-ok'">提交</a>
<a href="javascript:App.closeAddDialog()" class="easyui-linkbutton search-button" data-options="iconCls:'icon-cancel'">取消</a>
</div>
</body>
</html>