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
b204ad4e
Commit
b204ad4e
authored
Jul 16, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024-07-16 新增业务账期同步添加会计期
parent
2e3a3e1d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
15 deletions
+12
-15
ServiceHGCW001.java
.../java/com/baosight/hggp/hg/cw/service/ServiceHGCW001.java
+1
-7
HGCW001.js
src/main/webapp/HG/CW/HGCW001.js
+10
-8
HGCW001.jsp
src/main/webapp/HG/CW/HGCW001.jsp
+1
-0
No files found.
src/main/java/com/baosight/hggp/hg/cw/service/ServiceHGCW001.java
View file @
b204ad4e
...
...
@@ -127,13 +127,7 @@ public class ServiceHGCW001 extends ServiceBase {
DaoUtils
.
insert
(
HGCW001
.
INSERT
,
hgcw001
);
HGCB001
hgcb001
=
new
HGCB001
();
BeanUtils
.
copyProperties
(
hgcw001
,
hgcb001
);
HGCB001
cb001
=
HGCBTools
.
HgCb001
.
select
(
new
HashMap
<
String
,
String
>(){{
put
(
HGCB001
.
FIELD_ACCOUNT_PERIOD
,
hgcw001
.
getAccountPeriod
());
put
(
HGCB001
.
FIELD_COMPANY_CODE
,
hgcw001
.
getCompanyCode
());
}});
if
(
cb001
==
null
)
{
DaoUtils
.
insert
(
HGCB001
.
INSERT
,
hgcb001
);
//同步添加会计期维护
}
HGCBTools
.
HgCb001
.
add
(
Collections
.
singletonList
(
hgcb001
));
}
/**
...
...
src/main/webapp/HG/CW/HGCW001.js
View file @
b204ad4e
$
(
function
()
{
$
(
".row"
).
children
().
attr
(
"class"
,
"col-md-3"
);
$
(
"#QUERY"
).
on
(
"click"
,
query
);
let
companyCodeBox
=
__eiInfo
.
getBlock
(
"roleCompany"
).
getMappedRows
();
IPLATUI
.
EFGrid
=
{
"result"
:{
pageable
:
{
...
...
@@ -66,19 +66,21 @@ $(function () {
});
grid
.
dataSource
.
bind
(
"change"
,
function
(
e
){
var
item
=
e
.
items
[
0
];
/* if(e.field == "accountYear"){
let accountPeriod = currMonth(item.accountYear);
resultGrid.setCellValue(item,'accountPeriod',accountPeriod)
//loadChange(grid,e,"accountPeriod");
}else */
if
(
e
.
field
==
"accountPeriod"
){
if
(
e
.
field
==
"companyCode"
){
for
(
let
i
=
0
;
i
<
companyCodeBox
.
length
;
i
++
)
{
if
(
item
.
companyCode
==
companyCodeBox
[
i
].
companyCode
){
resultGrid
.
setCellValue
(
item
,
'companyName'
,
companyCodeBox
[
i
].
companyName
);
break
;
}
}
}
else
if
(
e
.
field
==
"accountPeriod"
){
let
accountPeriod
=
dateFormate
(
item
.
accountPeriod
,
"yyyy-MM-dd"
)
let
accountPeriodDateStart
=
queryLast
(
item
.
companyCode
,
accountPeriod
);
resultGrid
.
setCellValue
(
item
,
'accountYear'
,
accountPeriod
.
substring
(
0
,
4
));
resultGrid
.
setCellValue
(
item
,
'accountPeriodDateStart'
,
dateFormate
(
new
Date
(
accountPeriodDateStart
),
"yyyyMMdd"
));
loadChange
(
grid
,
e
,
"accountPeriodDateEnd"
);
}
}
})
},
onSave
:
function
(
e
)
{
...
...
src/main/webapp/HG/CW/HGCW001.jsp
View file @
b204ad4e
...
...
@@ -30,6 +30,7 @@
filter=
"contains"
readonly=
"true"
>
<EF:EFOptions
blockId=
"roleCompany"
textField=
"companyName"
valueField=
"companyCode"
/>
</EF:EFComboColumn>
<EF:EFColumn
ename=
"companyName"
cname=
"公司名称"
hidden=
"true"
/>
<EF:EFColumn
ename=
"accountYear"
cname=
"会计年度"
enable=
"false"
width=
"100"
align=
"center"
start=
"decade"
depth=
"decade"
editType=
"date"
dateFormat=
"yyyy"
parseFormats=
"['yyyy']"
required=
"true"
/>
<EF:EFColumn
ename=
"accountPeriod"
cname=
"会计期"
readonly=
"true"
width=
"100"
align=
"center"
start=
"year"
depth=
"year"
...
...
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