严智鑫
2025-11-13 945bc394f40d8af1072a53da9a94f24207124e6d
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
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
 
<html>
<head>
    <title>编辑料架和吊装位</title>
<link type="image/x-icon" href="${ctx}/static/images/favicon.ico" rel="shortcut icon">
<link href="${ctx}/static/bootstrap/2.3.2/css/bootstrap.min.css" type="text/css" rel="stylesheet" />
<link href="${ctx}/static/bootstrap/2.3.2/css/bootstrap-responsive.min.css" type="text/css" rel="stylesheet" />
<link href="${ctx}/static/jquery-validation/1.11.1/validate.css" type="text/css" rel="stylesheet" />
<link href="${ctx}/static/styles/default.css" type="text/css" rel="stylesheet" />
<link href="${ctx}/static/bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css" type="text/css" rel="stylesheet" />
<link href="${ctx}/static/bootstrap-switch/css/bootstrap2/bootstrap-switch.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="${ctx}/static/jquery/jquery-3.1.0.min.js"></script>
<script language="javascript" type="text/javascript" src="${ctx}/static/util.js"></script>     
 
    <script type="text/javascript">
    function myFunction(obj){
        window.location.href="${ctx}/shelf/findRank/"+obj;
    }
    function batchDeleteRanks() {
        var shelfRankCheckBoxes = $(":checkbox");
        var shelfRankIds = '';
        
        for (var i = 0; i < shelfRankCheckBoxes.size(); i++) {
            if (shelfRankCheckBoxes[i].checked) {
                shelfRankIds += (shelfRankCheckBoxes[i].id + ";");
            }
        }
        
        if (shelfRankIds == '') {
            $.MsgBox.Alert("WARM PROMPT", "没有料架被选中");
            return;
        }
        
        // 去掉最后一个分隔符
        shelfRankIds = shelfRankIds.substring(0, shelfRankIds.length - 1);
        
        $('#deleteConfirm').modal('toggle');
        $('#deleteConfirmForm').attr('action', '${ctx}/shelfrank/batchDeleteRanks');
        $('#deleteConfirmInput').attr('name', 'shelfRankIds');
        $('#deleteConfirmInput').attr('value', shelfRankIds);
    }
    
    function xinxi(id){
        window.location.href="${ctx}/shlef/findRank/"+id;
    }
    function deleteRank(shelfRankId) {
        $('#deleteConfirm').modal('toggle');
        $('#deleteConfirmForm').attr('action', '${ctx}/shelfrank/delete');
        $('#deleteConfirmInput').attr('name', 'shelfRankId');
        $('#deleteConfirmInput').attr('value', shelfRankId);
    }
    
    function deleteRawPackageForRank(shelfRankId) {
        $('#deleteConfirm').modal('toggle');
        $('#deleteConfirmForm').attr('action', '${ctx}/shelfrank/deleteRawPackageForRank');
        $('#deleteConfirmInput').attr('name', 'shelfRankId');
        $('#deleteConfirmInput').attr('value', shelfRankId);
    }
    
    function deleteHoist(shelfHoistId) {
        $('#deleteConfirm').modal('toggle');
        $('#deleteConfirmForm').attr('action', '${ctx}/shelfhoist/delete');
        $('#deleteConfirmInput').attr('name', 'shelfHoistId');
        $('#deleteConfirmInput').attr('value', shelfHoistId);
    }
    
    function deleteRawPackageForHoist(shelfHoistId) {
        $('#deleteConfirm').modal('toggle');
        $('#deleteConfirmForm').attr('action', '${ctx}/shelfhoist/deleteRawPackageForHoist');
        $('#deleteConfirmInput').attr('name', 'shelfHoistId');
        $('#deleteConfirmInput').attr('value', shelfHoistId);
    }
    </script>
     <script>
    $(document).ready(function() {
        $("#widthInput").focus();
    });
    </script>
</head>
<body>
<!-- Content Wrapper. Contains page content -->
      <div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <div>
        <section class="content-header">
              <h1>
            编辑料架
                <small></small>
              </h1>
          <ol class="breadcrumb">
            <li><a href="${ctx }/shelf/editRankAndHoist"><i class="fa fa-reply"></i>编辑料架</a></li>
            <li class="active"></li>
          </ol>
        </section>
    </div>
    <div>
    <!-- Main content -->
    <section class="content container-fluid">
    <div class="row">
        <div class="col-md-12">
          <div class="box">
            <div class="box-header with-border">
            <i class="fa fa-bar-chart-o"></i>
              <h3 class="box-title">仓储信息表</h3>
 
              <div class="box-tools pull-right">
               <!--  <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i>
                </button>
                <button type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button> -->
              </div>
            </div>
            <!-- /.box-header -->
            <div class="box-body">
              <div class="row">
                <div class="col-md-10">
                  <p class="text-center">
                    &nbsp;&nbsp;&nbsp;<span>
                <img src="${ctx}/static/images/101.png">二天以内使用过</span>
                &nbsp;&nbsp;&nbsp;<span>
                <img src="${ctx}/static/images/104.png">二天到四天之内使用过</span>
                &nbsp;&nbsp;&nbsp;<span>
                <img src="${ctx}/static/images/102.png">四天以上七天以下没有使用过</span>
                &nbsp;&nbsp;&nbsp;<span>
                <img src="${ctx}/static/images/103.png">七天以内没有使用过</span>
                &nbsp;&nbsp;&nbsp;<span>
                <img src="${ctx}/static/images/105.png">禁用</span>
                  </p>
                  <div style="width: 99%;margin-left:10px;margin-top:10px; overflow-y:auto">
                 ${shelfRankInfo }
                </div> 
                  <div class="chart">
                  </div>
                </div>
                <!-- /.col -->
                <div class="col-md-2">
                  <p class="text-center">
                    <strong>吊装位&&上片位</strong>
                  </p>
                ${loadAndShelfHoistInfo }
                </div>
                <!-- /.col -->
              </div>
              <!-- /.row -->
            </div>
          </div>
          <!-- /.box -->
        </div>
        <!-- /.col -->
      </div>
       <div style="width: 40%;float: left;  height: 361px;">
        <div class="box" style="height: 100%; overflow: auto;" align="center">
              <div class="box-header">
                <h3 class="box-title">料架信息</h3>
              </div>
          <!-- /.box-header -->
              <!-- <div class="callout callout-info">
              <h4>6号料架</h4>
              <p>料架状态:使用中</p>
            </div>
            <div class="box box-default">
                  <div class="box-header with-border">
                    <h3 class="box-title">原片信息</h3>
                  </div>
                  <div class="box-body" style="font-size:20px;">
                      <div style="margin-top:10px;">长度: 4880mm</div>
                      <div style="margin-top:10px;">宽度: 3660mm</div>
                      <div style="margin-top:10px;">厚度: 6mm</div>
                      <div style="margin-top:10px;">膜系: 白玻</div>
                      
                  </div>
            </div>
            <div class="box box-default">
                  <div class="box-header with-border">
                    <h3 class="box-title">原片使用情况</h3>
                  </div>
                  <div class="box-body" style="font-size:20px;">
                      <div style="margin-top:10px;">起始片数: 30片</div>
                      <div style="margin-top:10px;">剩余片数: 23片</div>
                      <div style="margin-top:10px;">目前所在位置: 上片位</div>
                      
                  </div>
            </div> --> 
            ${findShelfRankInfo}
        </div>
    </div>
    <div style="width: 59%;float: right; height: 361px;" class="box">
        <div class="box" style="height: 100%; overflow: auto;" align="center">
              <div class="box-header">
                <h3 class="box-title">编辑信息</h3>
              </div>
          <!-- /.box-header -->
              <%-- <div class="box box-default">
                  <div class="box-header with-border">
                    <h3 class="box-title">原片编辑</h3>
                  </div>
                  <div class="box-body" style="font-size:20px;">
                      <a href="${ctx}/rawpackage/updateForEditShelfRank/12" class='btn btn-large btn-info' >更新原片</a>
                       <a href="${ctx}/rawpackage/createForEditShelfRank/12" class='btn btn-large btn-success' style="margin: 50px">添加原片</a>
                  </div>
                  <div class="box-header with-border">
                    <h3 class="box-title">料架编辑</h3>
                  </div>
                  <div class="box-body" style="font-size:20px;">
                      <a href="${ctx}/rawpackage/enterForEditShelfRank/12" class="btn btn-large btn-success" style="margin: 50px">进库</a>
                      <a href="${ctx}/rawpackage/cancel" class="btn btn-large btn-primary" >出库</a>
                       <a href="${ctx}/rawpackage/single" class="btn btn-large btn-success" style="margin: 50px">退库</a>
                       <a href="${ctx}/rawpackage/single" class="btn btn-large btn-success" style="margin: 50px">禁用</a>
                  </div>
          <!-- /.box-body -->
            </div> --%>
            ${rankUserInfo}
            <%-- <a href="${ctx}/rawpackage/cancel" type="button" class="btn btn-danger btn-lg btn-large">禁用</a> --%>
            
        </div>
    </div>
    </section>
    </div>
    <!-- /.content -->
  </div>
  <div id="deleteConfirm" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="height: 200px;">
        <form id="deleteConfirmForm" method="post">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h3 id="myModalLabel">确定吗?</h3>
            </div>
            <div class="modal-body">
                <input type="hidden" id="deleteConfirmInput">
            </div>
            <div class="modal-footer">
                <button type="submit" class="btn btn-primary">提交</button>
                <button type="button" class="btn" data-dismiss="modal">关闭</button>
            </div>
        </form>
    </div>
</body>
</html>