文件上传增加样例和摘要业务文件的的总文件大小、单个文件大小、文件类型校验

This commit is contained in:
duandongmei
2018-07-06 17:13:46 +08:00
parent 9d0f8072c1
commit 7c6251e859
15 changed files with 1774 additions and 38 deletions

View File

@@ -1,6 +1,5 @@
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/include/taglib.jsp"%>
<h3 class="form-section"><spring:message code="basic_config"/></h3>
<%@ include file="/WEB-INF/include/taglib.jsp"%><h3 class="form-section"><spring:message code="basic_config"/></h3>
<div class="row">
<div class="col-md-6">
@@ -162,7 +161,95 @@
</c:forEach>
</select> --%>
</div>
</div>
</div>
</div>
<%-- <div class="row">
<div class="col-md-6">
<div class="form-group">
<label class="control-label col-md-3"><spring:message code="attribute"/></label>
<div class="col-md-6">
<div class="input-group">
<input id="classifyId" name="classify" class="form-control singleClass" value="" type="hidden">
<input id="classifyName" onclick="openSelct(this);" name="classifyName" readonly="readonly" value="" data-msg-required="" placeholder="" class="form-control" style="background-color:transparent" type="text">
<div class="input-group-btn">
<a id="classifyButton" class="btn btn-default dropdown-toggle" href="javascript:void(0);" style=""><i class="fa fa-angle-down"></i></a>
</div>
</div>
<select name="classifyTest" multiple="multiple" class="form-control">
<c:forEach items="${fls}" var="fl">
<c:choose>
<c:when test="${_cfg.classify==null or _cfg.classify==''}">
<option value="${fl.serviceDictId}" data-section="${fl.pNames}">${fl.itemValue}</option>
</c:when>
<c:otherwise>
<c:if test="${fl.isValid!=0}">
<option value="${fl.serviceDictId}"
<c:forEach items="${fn:split(_cfg.classify,',')}" var="_classify">
<c:if test="${fn:trim(fl.serviceDictId) eq _classify}">selected</c:if>
</c:forEach>
data-section="${fl.pNames}"
>
${fl.itemValue}
</option>
</c:if>
<option value="${fl.serviceDictId}"
<c:forEach items="${fn:split(_cfg.classify,',')}" var="_classify">
<c:if test="${fl.isValid==0}">disabled="disabled"</c:if>
data-section="${fl.pNames}"
<c:if test="${fn:trim(fl.serviceDictId) eq _classify}">selected</c:if>
</c:forEach>
>${fl.itemValue}</option>
</c:otherwise>
</c:choose>
</c:forEach>
</select>
</div>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label class="control-label col-md-3"><spring:message code="label"/></label>
<div class="col-md-6">
<div class="btn-group bootstrap-select form-control required dropup">
<button aria-expanded="true" title="" type="button" class="btn dropdown-toggle btn-default" data-toggle="dropdown">
<span class="caret"></span></button>
</div>
<select name="lableTest" multiple="multiple" title=<spring:message code="select"/>>
<c:forEach items="${lables}" var="lable">
<c:choose>
<c:when test="${_cfg.lable==null or _cfg.lable==''}">
<option value="${lable.serviceDictId}" data-section="${lable.pNames}">${lable.itemValue}</option>
</c:when>
<c:otherwise>
<c:if test="${lable.isValid!=0}">
<option value="${lable.serviceDictId}"
<c:forEach items="${fn:split(_cfg.lable,',')}" var="_lable">
<c:if test="${fn:trim(lable.serviceDictId) eq _lable}">selected</c:if>
</c:forEach>
data-section="${lable.pNames}"
>
${lable.itemValue}
</option>
</c:if>
<c:forEach items="${fn:split(_cfg.lable,',')}" var="_lable">
<option value="${lable.serviceDictId}"
<c:if test="${lable.isValid==0}"> readonly</c:if>
<c:if test="${fn:trim(lable.serviceDictId) eq _lable}">selected</c:if>
data-section="${lable.pNames}"
>${lable.itemValue}</option>
</c:forEach>
</c:otherwise>
</c:choose>
</c:forEach>
</select>
</div>
</div>
</div>
</div> --%>