Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hp-smart
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
platform
hp-smart
Commits
2efd8db8
Commit
2efd8db8
authored
Feb 20, 2024
by
yukang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
https://gitlab.baocloud.cn/bggf/smart/hp-smart
into dev
parents
6c0ac598
e75b2039
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
22 additions
and
35 deletions
+22
-35
CKExcelTools.java
...main/java/com/baosight/hpjx/hp/kc/tools/CKExcelTools.java
+0
-4
ServiceHPSC005A.java
...java/com/baosight/hpjx/hp/sc/service/ServiceHPSC005A.java
+2
-1
HPSC002A.xml
src/main/java/com/baosight/hpjx/hp/sc/sql/HPSC002A.xml
+3
-18
HPSC005B.xml
src/main/java/com/baosight/hpjx/hp/sc/sql/HPSC005B.xml
+1
-1
HPSC002B.jsp
src/main/webapp/HP/SC/HPSC002B.jsp
+1
-1
HPSC005.js
src/main/webapp/HP/SC/HPSC005.js
+7
-2
HPSC005A.js
src/main/webapp/HP/SC/HPSC005A.js
+1
-1
HPSC005A.jsp
src/main/webapp/HP/SC/HPSC005A.jsp
+5
-5
XSOG0801.jsp
src/main/webapp/XS/OG/XSOG0801.jsp
+1
-1
XS3001.jsp
src/main/webapp/XS/XS3001.jsp
+1
-1
No files found.
src/main/java/com/baosight/hpjx/hp/kc/tools/CKExcelTools.java
View file @
2efd8db8
package
com
.
baosight
.
hpjx
.
hp
.
kc
.
tools
;
import
com.baosight.hpjx.hp.kc.domain.HPKC004
;
import
com.baosight.hpjx.hp.pz.tools.HPPZTools
;
import
com.baosight.hpjx.util.DateUtils
;
import
com.baosight.hpjx.util.ExcelUtils
;
import
com.baosight.hpjx.util.MapUtils
;
...
...
@@ -21,9 +20,6 @@ import org.apache.poi.ss.util.CellRangeAddress;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
javax.servlet.jsp.PageContext
;
import
java.io.FileOutputStream
;
import
java.io.IOException
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
...
...
src/main/java/com/baosight/hpjx/hp/sc/service/ServiceHPSC005A.java
View file @
2efd8db8
...
...
@@ -225,7 +225,8 @@ public class ServiceHPSC005A extends ServiceBase {
// 更新订单主表数量
HPSCTools
.
checkAssignedNum
(
dbSc005
.
getProductionOrderNo
(),
dbSc005
.
getNum
());
// 写入子表数据
newSc005a
.
setProdTaskNo
(
SequenceGenerator
.
getNextSequence
(
HPConstant
.
SequenceId
.
PROD_TASK_NO
));
newSc005a
.
setProdTaskNo
(
SequenceGenerator
.
getNextSequence
(
HPConstant
.
SequenceId
.
PROD_TASK_NO
,
new
String
[]{
dbSc005
.
getProductionOrderNo
()}));
newSc005a
.
setProdOrderNo
(
dbSc005
.
getProductionOrderNo
());
newSc005a
.
setNum
(
dbSc005
.
getNum
());
newSc005a
.
setTotalWt
(
newSc005a
.
getNum
().
multiply
(
dbSc005
.
getUnitWt
()));
...
...
src/main/java/com/baosight/hpjx/hp/sc/sql/HPSC002A.xml
View file @
2efd8db8
...
...
@@ -37,23 +37,8 @@
<isNotEmpty
prepend=
" AND "
property=
"docId"
>
A.DOC_ID = #docId#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"createdBy"
>
A.CREATED_BY = #createdBy#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"createdName"
>
A.CREATED_NAME = #createdName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"createdTime"
>
A.CREATED_TIME = #createdTime#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"updatedBy"
>
A.UPDATED_BY = #updatedBy#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"updatedName"
>
A.UPDATED_NAME = #updatedName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"updatedTime"
>
A.UPDATED_TIME = #updatedTime#
<isNotEmpty
prepend=
" AND "
property=
"docName"
>
B.DOC_NAME LIKE CONCAT('%', #docName#, '%')
</isNotEmpty>
</sql>
...
...
@@ -69,7 +54,7 @@
<sql
id=
"order"
>
<dynamic
prepend=
"ORDER BY"
>
<isNotEmpty
property=
"order"
>
$order
By
$
$order$
</isNotEmpty>
<isEmpty
property=
"order"
>
A.ID DESC
...
...
src/main/java/com/baosight/hpjx/hp/sc/sql/HPSC005B.xml
View file @
2efd8db8
...
...
@@ -99,7 +99,7 @@
<sql
id=
"order"
>
<dynamic
prepend=
"ORDER BY"
>
<isNotEmpty
property=
"order"
>
$order
By
$
$order$
</isNotEmpty>
<isEmpty
property=
"order"
>
ID ASC
...
...
src/main/webapp/HP/SC/HPSC002B.jsp
View file @
2efd8db8
...
...
@@ -11,7 +11,7 @@
<div
class=
"row"
>
<EF:EFInput
cname=
"项目名称"
ename=
"projName"
blockId=
"inqu_status"
row=
"0"
colWidth=
"3"
readonly=
"true"
/>
<EF:EFInput
cname=
"部件名称"
ename=
"prdtName"
blockId=
"inqu_status"
row=
"0"
colWidth=
"3"
readonly=
"true"
/>
<EF:EFInput
cname=
"文件名称"
ename=
"docName"
blockId=
"inqu_status"
row=
"0"
colWidth=
"3"
readonly=
"true"
/>
<EF:EFInput
cname=
"文件名称"
ename=
"docName"
blockId=
"inqu_status"
row=
"0"
colWidth=
"3"
/>
<EF:EFDateSpan
startCname=
"创建日期(从)"
endCname=
"至"
blockId=
"inqu_status"
startName=
"createdDateFrom"
endName=
"createdDateTo"
row=
"0"
role=
"date"
format=
"yyyy-MM-dd"
ratio=
"3:3"
satrtRatio=
"4:8"
endRatio=
"4:8"
readonly=
"true"
>
...
...
src/main/webapp/HP/SC/HPSC005.js
View file @
2efd8db8
...
...
@@ -18,10 +18,15 @@ $(function () {
columns
:
[{
field
:
"operator"
,
template
:
function
(
item
)
{
let
status
=
item
.
status
;
let
prodOrderNo
=
item
.
productionOrderNo
;
let
filePath1
=
item
.
filePath1
;
let
template
=
'<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
let
template
=
''
;
// 非全部派工时展示拆单派工按钮
if
(
status
!=
2
)
{
template
+=
'<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+
'onclick="tearAssign(
\'
'
+
prodOrderNo
+
'
\'
)" >拆单派工</a>'
;
}
template
+=
'<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+
'onclick="showGroupDetail(
\'
'
+
prodOrderNo
+
'
\'
)" >详情</a>'
;
if
(
filePath1
)
{
...
...
@@ -51,7 +56,7 @@ function tearAssign(prodOrderNo) {
href
:
"HPSC005A?methodName=initLoad&inqu_status-0-prodOrderNo="
+
prodOrderNo
,
title
:
"<div style='text-align: center;'>拆单派工</div>"
,
width
:
"80%"
,
height
:
"
8
0%"
,
height
:
"
9
0%"
,
callbackName
:
tearAssignCallback
});
}
...
...
src/main/webapp/HP/SC/HPSC005A.js
View file @
2efd8db8
...
...
@@ -7,7 +7,7 @@ $(function () {
pageSizes
:
[
10
,
20
,
50
,
70
,
100
],
},
columns
:
[{
field
:
"
factory
Name"
,
field
:
"
org
Name"
,
attributes
:
{
class
:
"i-input-readonly"
}
...
...
src/main/webapp/HP/SC/HPSC005A.jsp
View file @
2efd8db8
...
...
@@ -37,17 +37,17 @@
<EF:EFGrid
blockId=
"result"
autoDraw=
"override"
checkMode=
"row"
>
<EF:EFColumn
ename=
"id"
cname=
"任务ID"
enable=
"false"
width=
"80"
align=
"center"
/>
<EF:EFColumn
ename=
"prodTaskNo"
cname=
"任务单号"
enable=
"false"
hidden=
"true"
/>
<EF:EFColumn
ename=
"
factoryCode"
cname=
"厂区编
码"
enable=
"false"
hidden=
"true"
/>
<EF:EFPopupColumn
ename=
"
factoryName"
cname=
"厂区
"
width=
"200"
align=
"center"
popupType=
"ServiceGrid"
popupTitle=
"
厂区
信息"
serviceName=
"HPPZ011"
methodName=
"queryComboBoxAll"
<EF:EFColumn
ename=
"
orgNo"
cname=
"生产组代
码"
enable=
"false"
hidden=
"true"
/>
<EF:EFPopupColumn
ename=
"
orgName"
cname=
"生产组
"
width=
"200"
align=
"center"
popupType=
"ServiceGrid"
popupTitle=
"
生产组
信息"
serviceName=
"HPPZ011"
methodName=
"queryComboBoxAll"
resultId=
"factory_group_ecord_block_id"
columnEnames=
"textField,param2Field"
columnCnames=
"厂区,生产组"
backFillColumnIds=
"param2Field,param1Field,valueField,textField"
backFillFieldIds=
"orgName,orgNo,factoryCode,factoryName"
valueField=
"textField"
textField=
"textField"
readonly=
"true"
required=
"true"
/>
<EF:EFColumn
ename=
"
orgNo"
cname=
"生产组代
码"
enable=
"false"
hidden=
"true"
/>
<EF:EFColumn
ename=
"
orgName"
cname=
"生产组
"
enable=
"false"
align=
"center"
/>
<EF:EFColumn
ename=
"
factoryCode"
cname=
"厂区编
码"
enable=
"false"
hidden=
"true"
/>
<EF:EFColumn
ename=
"
factoryName"
cname=
"厂区
"
enable=
"false"
align=
"center"
/>
<EF:EFColumn
ename=
"num"
cname=
"分派数量"
format=
"{0:N3}"
required=
"true"
/>
<EF:EFColumn
ename=
"totalWt"
cname=
"分派重量"
enable=
"false"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"completeNum"
cname=
"已完工数量"
enable=
"false"
format=
"{0:N3}"
/>
...
...
src/main/webapp/XS/OG/XSOG0801.jsp
View file @
2efd8db8
...
...
@@ -102,7 +102,7 @@
String loginPublicKey = LoginConstants.loginRsaPublicKey;
String cryptoPasswordEnable = LoginConstants.cryptoPasswordEnable;
String companyCode = UserSessionUtils.getCompanyCode();
String loginPrefix = StringUtils.isBlank(companyCode) ? "" : HPPZTools.
getPz009
(companyCode).getLoginPrefix();
String loginPrefix = StringUtils.isBlank(companyCode) ? "" : HPPZTools.
HpPz009.getByCode
(companyCode).getLoginPrefix();
%>
<c:set var="pwdRgx" value="<%=passwordRegex%>"/>
<c:set var="pwdDesc" value="<%=passwordDesc%>"/>
...
...
src/main/webapp/XS/XS3001.jsp
View file @
2efd8db8
...
...
@@ -21,7 +21,7 @@
request.setAttribute("passwordTip", "密码由不超过255位的英文字母或者数字字符或下划线组成。");
}
String companyCode = UserSessionUtils.getCompanyCode();
String loginPrefix = StringUtils.isBlank(companyCode) ? "" : HPPZTools.
getPz009
(companyCode).getLoginPrefix();
String loginPrefix = StringUtils.isBlank(companyCode) ? "" : HPPZTools.
HpPz009.getByCode
(companyCode).getLoginPrefix();
String username = UserSession.getUser().getUsername();
String passwordRegex = StringUtils.defaultIfEmpty(PlatApplicationContext.getProperty("xservices.security.checkpassword.regex"), "^(?=.*?[a-zA-Z])(?=.*?[0-9]).{1,}$");
String passwordDesc = StringUtils.defaultIfEmpty(PlatApplicationContext.getProperty("xservices.security.checkpassword.desc"), "密码必须包含英文及数字");
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment