Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hg-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
hg-smart
Commits
a35c0be3
Commit
a35c0be3
authored
Jun 04, 2024
by
wancheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
其他入库单,其他出库单
parent
18b3df0f
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
61 additions
and
9 deletions
+61
-9
ServiceHGKC006.java
.../java/com/baosight/hggp/hg/kc/service/ServiceHGKC006.java
+8
-1
ServiceHGKC007.java
.../java/com/baosight/hggp/hg/kc/service/ServiceHGKC007.java
+10
-1
HGKC006.js
src/main/webapp/HG/KC/HGKC006.js
+12
-1
HGKC006.jsp
src/main/webapp/HG/KC/HGKC006.jsp
+10
-3
HGKC007.js
src/main/webapp/HG/KC/HGKC007.js
+11
-0
HGKC007.jsp
src/main/webapp/HG/KC/HGKC007.jsp
+10
-3
No files found.
src/main/java/com/baosight/hggp/hg/kc/service/ServiceHGKC006.java
View file @
a35c0be3
...
@@ -10,6 +10,7 @@ import com.baosight.hggp.hg.cw.tools.HGCWTools;
...
@@ -10,6 +10,7 @@ import com.baosight.hggp.hg.cw.tools.HGCWTools;
import
com.baosight.hggp.hg.cw.vo.UserVO
;
import
com.baosight.hggp.hg.cw.vo.UserVO
;
import
com.baosight.hggp.hg.kc.domain.HGKC003
;
import
com.baosight.hggp.hg.kc.domain.HGKC003
;
import
com.baosight.hggp.hg.kc.domain.HGKC006
;
import
com.baosight.hggp.hg.kc.domain.HGKC006
;
import
com.baosight.hggp.hg.kc.domain.HGKC006
;
import
com.baosight.hggp.hg.kc.utils.HGKCUtils
;
import
com.baosight.hggp.hg.kc.utils.HGKCUtils
;
import
com.baosight.hggp.hg.utils.HGUtils
;
import
com.baosight.hggp.hg.utils.HGUtils
;
import
com.baosight.hggp.hg.xs.tools.HGXSTools
;
import
com.baosight.hggp.hg.xs.tools.HGXSTools
;
...
@@ -44,7 +45,11 @@ public class ServiceHGKC006 extends ServiceBase {
...
@@ -44,7 +45,11 @@ public class ServiceHGKC006 extends ServiceBase {
@OperationLogAnnotation
(
operModul
=
"其他入库单"
,
operType
=
"查询"
,
operDesc
=
"初始化"
)
@OperationLogAnnotation
(
operModul
=
"其他入库单"
,
operType
=
"查询"
,
operDesc
=
"初始化"
)
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
try
{
try
{
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
WH_RECORD_BLOCK_ID
));
Map
map
=
new
HashMap
();
map
.
put
(
HGKC006
.
FIELD_ACCOUNT_CODE
,
UserSessionUtils
.
getAccountCode
());
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
COMPANY_BOX_BLOCK_ID
,
DdynamicEnum
.
WH_RECORD_BLOCK_ID
),
map
,
false
);
inInfo
.
addBlock
(
EiConstant
.
resultBlock
).
addBlockMeta
(
new
HGKC006
().
eiMetadata
);
inInfo
.
addBlock
(
EiConstant
.
resultBlock
).
addBlockMeta
(
new
HGKC006
().
eiMetadata
);
}
catch
(
PlatException
e
)
{
}
catch
(
PlatException
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"初始化失败"
);
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"初始化失败"
);
...
@@ -89,7 +94,9 @@ public class ServiceHGKC006 extends ServiceBase {
...
@@ -89,7 +94,9 @@ public class ServiceHGKC006 extends ServiceBase {
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
HGKC006
hgkc006
=
new
HGKC006
();
HGKC006
hgkc006
=
new
HGKC006
();
hgkc006
.
fromMap
(
resultRows
.
get
(
i
));
hgkc006
.
fromMap
(
resultRows
.
get
(
i
));
hgkc006
.
setOtherEnterDate
(
DateUtils
.
formatShort
(
hgkc006
.
getOtherEnterDate
()));
if
(
hgkc006
.
getId
()
==
null
||
hgkc006
.
getId
()
==
0
)
{
if
(
hgkc006
.
getId
()
==
null
||
hgkc006
.
getId
()
==
0
)
{
hgkc006
.
setSubmitStatus
(
HGConstant
.
ProductStatus
.
WTJ
);
this
.
add
(
hgkc006
);
this
.
add
(
hgkc006
);
}
else
{
}
else
{
this
.
modify
(
hgkc006
);
this
.
modify
(
hgkc006
);
...
...
src/main/java/com/baosight/hggp/hg/kc/service/ServiceHGKC007.java
View file @
a35c0be3
...
@@ -3,6 +3,7 @@ package com.baosight.hggp.hg.kc.service;
...
@@ -3,6 +3,7 @@ package com.baosight.hggp.hg.kc.service;
import
com.baosight.hggp.aspect.annotation.OperationLogAnnotation
;
import
com.baosight.hggp.aspect.annotation.OperationLogAnnotation
;
import
com.baosight.hggp.common.DdynamicEnum
;
import
com.baosight.hggp.common.DdynamicEnum
;
import
com.baosight.hggp.core.dao.DaoUtils
;
import
com.baosight.hggp.core.dao.DaoUtils
;
import
com.baosight.hggp.core.security.UserSessionUtils
;
import
com.baosight.hggp.hg.constant.HGConstant
;
import
com.baosight.hggp.hg.constant.HGConstant
;
import
com.baosight.hggp.hg.cw.tools.HGCWTools
;
import
com.baosight.hggp.hg.cw.tools.HGCWTools
;
...
@@ -10,6 +11,7 @@ import com.baosight.hggp.hg.cw.vo.UserVO;
...
@@ -10,6 +11,7 @@ import com.baosight.hggp.hg.cw.vo.UserVO;
import
com.baosight.hggp.hg.kc.domain.HGKC003
;
import
com.baosight.hggp.hg.kc.domain.HGKC003
;
import
com.baosight.hggp.hg.kc.domain.HGKC007
;
import
com.baosight.hggp.hg.kc.domain.HGKC007
;
import
com.baosight.hggp.hg.kc.domain.HGKC007
;
import
com.baosight.hggp.hg.kc.domain.HGKC007
;
import
com.baosight.hggp.hg.kc.domain.HGKC007
;
import
com.baosight.hggp.hg.kc.utils.HGKCUtils
;
import
com.baosight.hggp.hg.kc.utils.HGKCUtils
;
import
com.baosight.hggp.hg.utils.HGUtils
;
import
com.baosight.hggp.hg.utils.HGUtils
;
import
com.baosight.hggp.hg.xs.tools.HGXSTools
;
import
com.baosight.hggp.hg.xs.tools.HGXSTools
;
...
@@ -22,6 +24,7 @@ import com.baosight.iplat4j.core.service.impl.ServiceBase;
...
@@ -22,6 +24,7 @@ import com.baosight.iplat4j.core.service.impl.ServiceBase;
import
com.baosight.iplat4j.ed.util.SequenceGenerator
;
import
com.baosight.iplat4j.ed.util.SequenceGenerator
;
import
java.util.Arrays
;
import
java.util.Arrays
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
...
@@ -43,7 +46,11 @@ public class ServiceHGKC007 extends ServiceBase {
...
@@ -43,7 +46,11 @@ public class ServiceHGKC007 extends ServiceBase {
@OperationLogAnnotation
(
operModul
=
"其他出库单"
,
operType
=
"查询"
,
operDesc
=
"初始化"
)
@OperationLogAnnotation
(
operModul
=
"其他出库单"
,
operType
=
"查询"
,
operDesc
=
"初始化"
)
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
try
{
try
{
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
WH_RECORD_BLOCK_ID
));
Map
map
=
new
HashMap
();
map
.
put
(
HGKC007
.
FIELD_ACCOUNT_CODE
,
UserSessionUtils
.
getAccountCode
());
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
COMPANY_BOX_BLOCK_ID
,
DdynamicEnum
.
WH_RECORD_BLOCK_ID
),
map
,
false
);
inInfo
.
addBlock
(
EiConstant
.
resultBlock
).
addBlockMeta
(
new
HGKC007
().
eiMetadata
);
inInfo
.
addBlock
(
EiConstant
.
resultBlock
).
addBlockMeta
(
new
HGKC007
().
eiMetadata
);
}
catch
(
PlatException
e
)
{
}
catch
(
PlatException
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"初始化失败"
);
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"初始化失败"
);
...
@@ -88,7 +95,9 @@ public class ServiceHGKC007 extends ServiceBase {
...
@@ -88,7 +95,9 @@ public class ServiceHGKC007 extends ServiceBase {
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
HGKC007
hgkc007
=
new
HGKC007
();
HGKC007
hgkc007
=
new
HGKC007
();
hgkc007
.
fromMap
(
resultRows
.
get
(
i
));
hgkc007
.
fromMap
(
resultRows
.
get
(
i
));
hgkc007
.
setOtherOutDate
(
DateUtils
.
formatShort
(
hgkc007
.
getOtherOutDate
()));
if
(
hgkc007
.
getId
()
==
null
||
hgkc007
.
getId
()
==
0
)
{
if
(
hgkc007
.
getId
()
==
null
||
hgkc007
.
getId
()
==
0
)
{
hgkc007
.
setSubmitStatus
(
HGConstant
.
ProductStatus
.
WTJ
);
this
.
add
(
hgkc007
);
this
.
add
(
hgkc007
);
}
else
{
}
else
{
this
.
modify
(
hgkc007
);
this
.
modify
(
hgkc007
);
...
...
src/main/webapp/HG/KC/HGKC006.js
View file @
a35c0be3
let
whNameGlobalData
=
[];
let
whNameGlobalData
=
[];
$
(
function
()
{
$
(
function
()
{
var
companyCodes
=
__eiInfo
.
getBlock
(
"companyBox_block_id"
).
getMappedRows
();
IPLATUI
.
EFGrid
.
result
=
{
IPLATUI
.
EFGrid
.
result
=
{
pageable
:
{
pageable
:
{
pageSize
:
20
,
pageSize
:
20
,
...
@@ -25,6 +25,17 @@ $(function () {
...
@@ -25,6 +25,17 @@ $(function () {
return
template
;
return
template
;
}
}
},{
},{
field
:
"companyCode"
,
template
:
function
(
dataItem
)
{
for
(
let
i
=
0
;
i
<
companyCodes
.
length
;
i
++
)
{
if
(
companyCodes
[
i
][
'valueField'
]
===
dataItem
[
'companyCode'
]){
dataItem
[
'companyName'
]
=
companyCodes
[
i
][
'textField'
]
return
companyCodes
[
i
][
'textField'
];
}
}
return
dataItem
[
"companyCode"
];
}
},{
field
:
"otherEnterDate"
,
field
:
"otherEnterDate"
,
attributes
:
{
attributes
:
{
class
:
"i-input-readonly"
class
:
"i-input-readonly"
...
...
src/main/webapp/HG/KC/HGKC006.jsp
View file @
a35c0be3
...
@@ -38,13 +38,20 @@
...
@@ -38,13 +38,20 @@
<EF:EFGrid
blockId=
"result"
autoDraw=
"override"
isFloat=
"true"
checkMode=
"row"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"override"
isFloat=
"true"
checkMode=
"row"
>
<EF:EFColumn
ename=
"id"
cname=
"内码"
hidden=
"true"
/>
<EF:EFColumn
ename=
"id"
cname=
"内码"
hidden=
"true"
/>
<EF:EFColumn
ename=
"operator"
cname=
"操作"
locked=
"true"
enable=
"false"
width=
"100"
align=
"center"
/>
<EF:EFColumn
ename=
"operator"
cname=
"操作"
locked=
"true"
enable=
"false"
width=
"100"
align=
"center"
/>
<EF:EFColumn
ename=
"companyName"
cname=
"公司名称"
enable=
"false"
width=
"140"
align=
"center"
/>
<EF:EFComboColumn
ename=
"companyCode"
cname=
"公司名称"
<EF:EFColumn
ename=
"otherEnterDate"
cname=
"单据日期"
enable=
"false"
width=
"100"
align=
"center"
editType=
"date"
columnTemplate=
"#=textField#"
itemTemplate=
"#=textField#"
textField=
"textField"
valueField=
"valueField"
maxLength=
"16"
width=
"120"
required=
"true"
align=
"center"
filter=
"contains"
sort=
"true"
>
<EF:EFOptions
blockId=
"companyBox_block_id"
textField=
"textField"
valueField=
"valueField"
/>
</EF:EFComboColumn>
<EF:EFColumn
ename=
"companyName"
cname=
"公司名称"
hidden=
"true"
/>
<EF:EFColumn
ename=
"otherEnterDate"
cname=
"单据日期"
width=
"100"
align=
"center"
editType=
"date"
dateFormat=
"yyyy-MM-dd"
parseFormats=
"['yyyyMMdd']"
required=
"true"
/>
dateFormat=
"yyyy-MM-dd"
parseFormats=
"['yyyyMMdd']"
required=
"true"
/>
<EF:EFColumn
ename=
"otherEnterNo"
cname=
"其他入库单号"
enable=
"false"
width=
"140"
align=
"center"
/>
<EF:EFColumn
ename=
"otherEnterNo"
cname=
"其他入库单号"
enable=
"false"
width=
"140"
align=
"center"
/>
<EF:EFColumn
ename=
"whCode"
cname=
"仓库名称"
width=
"120"
align=
"center"
required=
"true"
/>
<EF:EFColumn
ename=
"whCode"
cname=
"仓库名称"
width=
"120"
align=
"center"
required=
"true"
/>
<EF:EFColumn
ename=
"whName"
cname=
"仓库名称"
hidden=
"true"
/>
<EF:EFColumn
ename=
"whName"
cname=
"仓库名称"
hidden=
"true"
/>
<EF:EFComboColumn
cname=
"状态"
ename=
"submitStatus"
width=
"90"
align=
"center"
required=
"true"
defaultValue=
"0
"
>
<EF:EFComboColumn
cname=
"状态"
ename=
"submitStatus"
width=
"90"
align=
"center"
enable=
"false
"
>
<EF:EFCodeOption
codeName=
"hggp.hpkc.submitStatus"
/>
<EF:EFCodeOption
codeName=
"hggp.hpkc.submitStatus"
/>
</EF:EFComboColumn>
</EF:EFComboColumn>
</EF:EFGrid>
</EF:EFGrid>
...
...
src/main/webapp/HG/KC/HGKC007.js
View file @
a35c0be3
...
@@ -25,6 +25,17 @@ $(function () {
...
@@ -25,6 +25,17 @@ $(function () {
return
template
;
return
template
;
}
}
},{
},{
field
:
"companyCode"
,
template
:
function
(
dataItem
)
{
for
(
let
i
=
0
;
i
<
companyCodes
.
length
;
i
++
)
{
if
(
companyCodes
[
i
][
'valueField'
]
===
dataItem
[
'companyCode'
]){
dataItem
[
'companyName'
]
=
companyCodes
[
i
][
'textField'
]
return
companyCodes
[
i
][
'textField'
];
}
}
return
dataItem
[
"companyCode"
];
}
},{
field
:
"otherOutDate"
,
field
:
"otherOutDate"
,
attributes
:
{
attributes
:
{
class
:
"i-input-readonly"
class
:
"i-input-readonly"
...
...
src/main/webapp/HG/KC/HGKC007.jsp
View file @
a35c0be3
...
@@ -39,13 +39,20 @@
...
@@ -39,13 +39,20 @@
<EF:EFGrid
blockId=
"result"
autoDraw=
"override"
isFloat=
"true"
checkMode=
"row"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"override"
isFloat=
"true"
checkMode=
"row"
>
<EF:EFColumn
ename=
"id"
cname=
"内码"
hidden=
"true"
/>
<EF:EFColumn
ename=
"id"
cname=
"内码"
hidden=
"true"
/>
<EF:EFColumn
ename=
"operator"
cname=
"操作"
locked=
"true"
enable=
"false"
width=
"100"
align=
"center"
/>
<EF:EFColumn
ename=
"operator"
cname=
"操作"
locked=
"true"
enable=
"false"
width=
"100"
align=
"center"
/>
<EF:EFColumn
ename=
"companyName"
cname=
"公司名称"
enable=
"false"
width=
"140"
align=
"center"
/>
<EF:EFComboColumn
ename=
"companyCode"
cname=
"公司名称"
<EF:EFColumn
ename=
"otherOutDate"
cname=
"单据日期"
enable=
"false"
width=
"100"
align=
"center"
editType=
"date"
columnTemplate=
"#=textField#"
itemTemplate=
"#=textField#"
textField=
"textField"
valueField=
"valueField"
maxLength=
"16"
width=
"120"
required=
"true"
align=
"center"
filter=
"contains"
sort=
"true"
>
<EF:EFOptions
blockId=
"companyBox_block_id"
textField=
"textField"
valueField=
"valueField"
/>
</EF:EFComboColumn>
<EF:EFColumn
ename=
"companyName"
cname=
"公司名称"
hidden=
"true"
/>
<EF:EFColumn
ename=
"otherOutDate"
cname=
"单据日期"
width=
"100"
align=
"center"
editType=
"date"
dateFormat=
"yyyy-MM-dd"
parseFormats=
"['yyyyMMdd']"
required=
"true"
/>
dateFormat=
"yyyy-MM-dd"
parseFormats=
"['yyyyMMdd']"
required=
"true"
/>
<EF:EFColumn
ename=
"otherOutNo"
cname=
"其他入库单号"
enable=
"false"
width=
"140"
align=
"center"
/>
<EF:EFColumn
ename=
"otherOutNo"
cname=
"其他入库单号"
enable=
"false"
width=
"140"
align=
"center"
/>
<EF:EFColumn
ename=
"whCode"
cname=
"仓库名称"
width=
"120"
align=
"center"
required=
"true"
/>
<EF:EFColumn
ename=
"whCode"
cname=
"仓库名称"
width=
"120"
align=
"center"
required=
"true"
/>
<EF:EFColumn
ename=
"whName"
cname=
"仓库名称"
hidden=
"true"
/>
<EF:EFColumn
ename=
"whName"
cname=
"仓库名称"
hidden=
"true"
/>
<EF:EFComboColumn
cname=
"状态"
ename=
"submitStatus"
width=
"90"
align=
"center"
required=
"true"
defaultValue=
"0"
>
<EF:EFComboColumn
cname=
"状态"
ename=
"submitStatus"
width=
"90"
align=
"center"
enable=
"false"
>
<EF:EFCodeOption
codeName=
"hggp.hpkc.submitStatus"
/>
<EF:EFCodeOption
codeName=
"hggp.hpkc.submitStatus"
/>
</EF:EFComboColumn>
</EF:EFComboColumn>
...
...
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