Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
SmdBox
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 350c94e6
由
sunke
编写于
2021-05-20 10:56:27 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
Session超时时间改为30分钟,避免总是提示登陆
上传文件时增加取消按钮 产品编辑增加供应商名称
1 个父辈
1045729e
隐藏空白字符变更
内嵌
并排
正在显示
11 个修改的文件
包含
37 行增加
和
31 行删除
myproject/src/main/java/com/myproject/webapp/controller/FileUploadController.java
myproject/src/main/java/com/myproject/webapp/controller/webService/DataCache.java
myproject/src/main/resources/StorageResources.properties
myproject/src/main/resources/StorageResources_en.properties
myproject/src/main/resources/StorageResources_jp.properties
myproject/src/main/resources/StorageResources_zh_CN.properties
myproject/src/main/resources/mongo.xml
myproject/src/main/webapp/WEB-INF/pages/component/componentUpdate.jsp
myproject/src/main/webapp/WEB-INF/web.xml
myproject/src/main/webapp/common/fileUpload.jsp
myproject/src/main/webapp/decorators/metro.jsp
myproject/src/main/java/com/myproject/webapp/controller/FileUploadController.java
查看文件 @
350c94e
...
@@ -22,6 +22,7 @@ import org.springframework.stereotype.Controller;
...
@@ -22,6 +22,7 @@ import org.springframework.stereotype.Controller;
import
org.springframework.web.bind.annotation.ModelAttribute
;
import
org.springframework.web.bind.annotation.ModelAttribute
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.multipart.MultipartFile
;
import
org.springframework.web.multipart.MultipartHttpServletRequest
;
import
org.springframework.web.multipart.MultipartHttpServletRequest
;
import
org.springframework.web.multipart.commons.CommonsMultipartFile
;
import
org.springframework.web.multipart.commons.CommonsMultipartFile
;
import
org.springframework.web.servlet.ModelAndView
;
import
org.springframework.web.servlet.ModelAndView
;
...
@@ -96,7 +97,11 @@ public class FileUploadController extends BaseFormController {
...
@@ -96,7 +97,11 @@ public class FileUploadController extends BaseFormController {
// }*/
// }*/
MultipartHttpServletRequest
multipartRequest
=
(
MultipartHttpServletRequest
)
request
;
MultipartHttpServletRequest
multipartRequest
=
(
MultipartHttpServletRequest
)
request
;
CommonsMultipartFile
file
=
(
CommonsMultipartFile
)
multipartRequest
.
getFile
(
"file"
);
MultipartFile
uploadFile
=
multipartRequest
.
getFile
(
"file"
);
if
(
uploadFile
==
null
){
return
getCancelView
();
}
CommonsMultipartFile
file
=
(
CommonsMultipartFile
)
uploadFile
;
// the directory to upload to
// the directory to upload to
String
uploadDir
=
getServletContext
().
getRealPath
(
"/resources"
);
String
uploadDir
=
getServletContext
().
getRealPath
(
"/resources"
);
...
...
myproject/src/main/java/com/myproject/webapp/controller/webService/DataCache.java
查看文件 @
350c94e
...
@@ -275,19 +275,19 @@ public class DataCache{
...
@@ -275,19 +275,19 @@ public class DataCache{
barcode
.
setLabelAmount
(
currentLabelAmount
);
barcode
.
setLabelAmount
(
currentLabelAmount
);
needUpdate
=
true
;
needUpdate
=
true
;
}
}
Date
produceDate
=
barcodeFromRule
.
getProduceDate
();
//
Date produceDate = barcodeFromRule.getProduceDate();
if
(
produceDate
!=
null
){
//
if(produceDate != null){
//抓取到了生产日期,未抓取到过期日期,重新设置过期日期
//
//抓取到了生产日期,未抓取到过期日期,重新设置过期日期
if
(
barcode
.
getExpireDate
()
==
null
){
//
if(barcode.getExpireDate() == null){
if
(
validDay
>
0
){
//
if(validDay > 0){
log
.
info
(
"重新设置"
+
codeBeanFromRule
.
getCodeStr
()+
"生产日期和过期日期"
);
//
log.info("重新设置"+codeBeanFromRule.getCodeStr()+"生产日期和过期日期");
Date
expireDate
=
DateUtil
.
addDays
(
produceDate
,
validDay
);
//
Date expireDate = DateUtil.addDays(produceDate, validDay);
barcode
.
setExpireDate
(
expireDate
);
//
barcode.setExpireDate(expireDate);
barcode
.
setProduceDate
(
produceDate
);
//
barcode.setProduceDate(produceDate);
needUpdate
=
true
;
//
needUpdate = true;
}
//
}
}
//
}
}
//
}
if
(
needUpdate
){
if
(
needUpdate
){
try
{
try
{
...
...
myproject/src/main/resources/StorageResources.properties
查看文件 @
350c94e
...
@@ -460,4 +460,5 @@ solder.status.6=Outting
...
@@ -460,4 +460,5 @@ solder.status.6=Outting
solder.status.7
=
Retreat storage
solder.status.7
=
Retreat storage
order.out.executing
=
The order is executing.
order.out.executing
=
The order is executing.
order.out.maxOrder
=
The maximum number of executable orders has been reached
order.out.maxOrder
=
The maximum number of executable orders has been reached
order.out.noTask
=
The order has no reel to out.
\ No newline at end of file
\ No newline at end of file
order.out.noTask
=
The order has no reel to out.
barcode.supplierName
=
Supplier Name
\ No newline at end of file
\ No newline at end of file
myproject/src/main/resources/StorageResources_en.properties
查看文件 @
350c94e
...
@@ -391,7 +391,7 @@ dataLog.date=Date
...
@@ -391,7 +391,7 @@ dataLog.date=Date
menu.batch.feeder
=
Feeder Station Sequence
menu.batch.feeder
=
Feeder Station Sequence
shelf.msg.fastop
=
Barcode operation is too frequent, please try again later
shelf.msg.fastop
=
Barcode operation is too frequent, please try again later
order.num.modify
=
Order Qty Modify
order.num.modify
=
Order Qty Modify
barcode.supplier
Pn
=
Supplier PN
barcode.supplier
Name
=
Supplier Name
op.status.executing
=
In process
op.status.executing
=
In process
cabinet.error.posError
=
Illegal operation
\:
door not found
cabinet.error.posError
=
Illegal operation
\:
door not found
user.email
=
Email
user.email
=
Email
...
...
myproject/src/main/resources/StorageResources_jp.properties
查看文件 @
350c94e
...
@@ -390,7 +390,7 @@ dataLog.date=\u65E5\u4ED8
...
@@ -390,7 +390,7 @@ dataLog.date=\u65E5\u4ED8
menu.batch.feeder
=
\u
30D5
\u
30A3
\u
30FC
\u
30C0
\u
30FC
\u
30EA
\u
30B9
\u
30C8
menu.batch.feeder
=
\u
30D5
\u
30A3
\u
30FC
\u
30C0
\u
30FC
\u
30EA
\u
30B9
\u
30C8
shelf.msg.fastop
=
\u
30D0
\u
30FC
\u
30B3
\u
30FC
\u
30C9
\u
306E
\u
64CD
\u
4F5C
\u
304C
\u
983B
\u
7E41
\u3067\u3059\u
306E
\u3067\u3001\u
5F8C
\u3067\u
8A66
\u3057\u3066\u
304F
\u3060\u3055\u3044\u3002
shelf.msg.fastop
=
\u
30D0
\u
30FC
\u
30B3
\u
30FC
\u
30C9
\u
306E
\u
64CD
\u
4F5C
\u
304C
\u
983B
\u
7E41
\u3067\u3059\u
306E
\u3067\u3001\u
5F8C
\u3067\u
8A66
\u3057\u3066\u
304F
\u3060\u3055\u3044\u3002
order.num.modify
=
\u
30AA
\u
30FC
\u
30C0
\u
30FC
\u6570\u
91CF
\u3092\u5909\u
66F4
order.num.modify
=
\u
30AA
\u
30FC
\u
30C0
\u
30FC
\u6570\u
91CF
\u3092\u5909\u
66F4
barcode.supplier
Pn
=
\u
30B5
\u
30D7
\u
30E9
\u
30A4
\u
30E4
\u
30FCPN
barcode.supplier
Name
=
\u
30B5
\u
30D7
\u
30E9
\u
30A4
\u
30E4
\u
30FC
op.status.executing
=
\u
5B9F
\u
884C
\u
4E2D
op.status.executing
=
\u
5B9F
\u
884C
\u
4E2D
cabinet.error.posError
=
\u
4E0D
\u
6B63
\u
64CD
\u
4F5C
\u
FF1A
\u
30C9
\u
30A2
\u
304C
\u
898B
\u3064\u
304B
\u3089\u
306A
\u3044
cabinet.error.posError
=
\u
4E0D
\u
6B63
\u
64CD
\u
4F5C
\u
FF1A
\u
30C9
\u
30A2
\u
304C
\u
898B
\u3064\u
304B
\u3089\u
306A
\u3044
user.email
=
\u
30E1
\u
30FC
\u
30EB
user.email
=
\u
30E1
\u
30FC
\u
30EB
...
...
myproject/src/main/resources/StorageResources_zh_CN.properties
查看文件 @
350c94e
...
@@ -392,7 +392,7 @@ error.storage.noPos=\u65E0\u53EF\u7528\u7684\u6599\u683C[{0}]\uFF0C\u65E0\u6CD5\
...
@@ -392,7 +392,7 @@ error.storage.noPos=\u65E0\u53EF\u7528\u7684\u6599\u683C[{0}]\uFF0C\u65E0\u6CD5\
dataLog.date
=
\u
65E5
\u
671F
dataLog.date
=
\u
65E5
\u
671F
menu.batch.feeder
=
\u
7AD9
\u
4F4D
\u5217\u8868
menu.batch.feeder
=
\u
7AD9
\u
4F4D
\u5217\u8868
shelf.msg.fastop
=
\u6761\u7801\u
64CD
\u
4F5C
\u9891\u
7E41
\u
FF0C
\u
8BF7
\u
7A0D
\u
540E
\u
518D
\u
8BD5
shelf.msg.fastop
=
\u6761\u7801\u
64CD
\u
4F5C
\u9891\u
7E41
\u
FF0C
\u
8BF7
\u
7A0D
\u
540E
\u
518D
\u
8BD5
barcode.supplier
Pn
=
\u
4F9B
\u
5E94
\u5546
PN
barcode.supplier
Name
=
\u
4F9B
\u
5E94
\u5546\u
540D
\u
79F0
order.num.modify
=
\u
5DE5
\u5355\u6570\u
91CF
\u
4FEE
\u6539
order.num.modify
=
\u
5DE5
\u5355\u6570\u
91CF
\u
4FEE
\u6539
op.status.executing
=
\u
6B63
\u5728\u6267\u
884C
op.status.executing
=
\u
6B63
\u5728\u6267\u
884C
user.email
=
\u
90AE
\u
7BB1
user.email
=
\u
90AE
\u
7BB1
...
...
myproject/src/main/resources/mongo.xml
查看文件 @
350c94e
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
<!--<mongo:mongo id="mongo" replica-set="${mongo.replica-set}">-->
<!--<mongo:mongo id="mongo" replica-set="${mongo.replica-set}">-->
<mongo:mongo
id=
"mongo"
host=
"
192.168.1.34
"
port=
"27017"
>
<mongo:mongo
id=
"mongo"
host=
"
${mongo.host}
"
port=
"27017"
>
<mongo:options
connections-per-host=
"${mongo.connectionsPerHost}"
<mongo:options
connections-per-host=
"${mongo.connectionsPerHost}"
threads-allowed-to-block-for-connection-multiplier=
"${mongo.threadsAllowedToBlockForConnectionMultiplier}"
threads-allowed-to-block-for-connection-multiplier=
"${mongo.threadsAllowedToBlockForConnectionMultiplier}"
connect-timeout=
"${mongo.connectTimeout}"
max-wait-time=
"${mongo.maxWaitTime}"
connect-timeout=
"${mongo.connectTimeout}"
max-wait-time=
"${mongo.maxWaitTime}"
...
...
myproject/src/main/webapp/WEB-INF/pages/component/componentUpdate.jsp
查看文件 @
350c94e
...
@@ -452,14 +452,14 @@
...
@@ -452,14 +452,14 @@
<form:input type="text" id="provider" path="provider" class="form-control"/>
<form:input type="text" id="provider" path="provider" class="form-control"/>
</div>
</div>
</div>
</div>
<%--
<%–供应商PN–%>
--%>
<%--
供应商PN
--%>
<
%--<label class="control-label col-md-2"><fmt:message key="barcode.supplierPn"/> </label>--%
>
<
label class="control-label col-md-2"><fmt:message key="barcode.supplierName"/> </label
>
<
%--<div class="col-md-3">--%
>
<
div class="col-md-3"
>
<
%--<div style="text-align:left" class="input-group">--%
>
<
div style="text-align:left" class="input-group"
>
<
%--<form:input type="text" id="supplierPn" path="supplierPn" class="form-control"/>--%
>
<
form:input type="text" id="supplierPn" path="producer" class="form-control"/
>
<
%--</div>--%
>
<
/div
>
<
%--</div>--%
>
<
/div
>
<%--<%–贵重物料–%>--%>
<%--<%–贵重物料–%>--%>
<%--<label class="control-label col-md-2"><fmt:message key="otherComponent.expensive"/> </label>--%>
<%--<label class="control-label col-md-2"><fmt:message key="otherComponent.expensive"/> </label>--%>
...
...
myproject/src/main/webapp/WEB-INF/web.xml
查看文件 @
350c94e
...
@@ -234,7 +234,7 @@
...
@@ -234,7 +234,7 @@
</jsp-config>
</jsp-config>
<session-config>
<session-config>
<session-timeout>
1
0
</session-timeout>
<session-timeout>
3
0
</session-timeout>
<cookie-config>
<cookie-config>
<http-only>
true
</http-only>
<http-only>
true
</http-only>
<!--<secure>true</secure>-->
<!--<secure>true</secure>-->
...
...
myproject/src/main/webapp/common/fileUpload.jsp
查看文件 @
350c94e
...
@@ -40,9 +40,9 @@
...
@@ -40,9 +40,9 @@
<button type="submit" name="upload" class="btn btn-primary" onclick="bCancel=false">
<button type="submit" name="upload" class="btn btn-primary" onclick="bCancel=false">
<i class="icon-upload icon-white"></i> <fmt:message key="button.upload"/>
<i class="icon-upload icon-white"></i> <fmt:message key="button.upload"/>
</button>
</button>
<
%--<button type="submit" name="cancel" class="btn btn-default" onclick="bCancel=true">--%
>
<
button type="submit" name="cancel" class="btn btn-default " data-dismiss="modal" aria-hidden="true" onclick="bCancel=true"
>
<
%--<i class="icon-remove"></i> <fmt:message key="button.cancel"/>--%
>
<
i class="icon-remove"></i> <fmt:message key="button.cancel"/
>
<
%--</button>--%
>
<
/button
>
</div>
</div>
</form>
</form>
</div>
</div>
...
...
myproject/src/main/webapp/decorators/metro.jsp
查看文件 @
350c94e
...
@@ -241,7 +241,7 @@
...
@@ -241,7 +241,7 @@
<div
class=
"page-footer-inner"
>
<div
class=
"page-footer-inner"
>
2016
©
<a
href=
"${ctx}/updateHistory.html"
>
SMD BOX
</a>
2016
©
<a
href=
"${ctx}/updateHistory.html"
>
SMD BOX
</a>
</div>
</div>
<span
class=
"right"
style=
"color: #a3a3a3;"
>
Version: 1.5.
1318
</span>
<span
class=
"right"
style=
"color: #a3a3a3;"
>
Version: 1.5.
2010
</span>
<div
class=
"scroll-to-top"
>
<div
class=
"scroll-to-top"
>
<i
class=
"icon-arrow-up"
></i>
<i
class=
"icon-arrow-up"
></i>
</div>
</div>
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论