Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
traffic-front
Project
Project
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxiaoming
traffic-front
Commits
abd51483
Commit
abd51483
authored
Apr 17, 2019
by
kevin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_mysql' of
https://gitee.com/Memorydoc/atms
into dev_mysql
parents
156e2722
0603dea0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
19 deletions
+21
-19
ReportServiceImpl.java
.../pwc/taxtech/atms/vat/service/impl/ReportServiceImpl.java
+16
-12
tb-ebit-form.ctrl.js
...b/src/main/webapp/app/analysis/table/tb-ebit-form.ctrl.js
+5
-7
No files found.
atms-api/src/main/java/pwc/taxtech/atms/vat/service/impl/ReportServiceImpl.java
View file @
abd51483
...
...
@@ -2555,17 +2555,17 @@ public class ReportServiceImpl extends BaseService {
/* if (j <= 36)
continue;*/
for
(
int
k
=
1
;
k
<
sheet
.
getRow
(
0
).
getLastCellNum
();
k
++)
{
if
(
k
!=
1
||
k
!=
2
)
//这里只保存两列
continue
;
EbitCellData
ebitCellData1
=
new
EbitCellData
(
);
ebitCellData1
.
setId
(
idService
.
nextId
()
);
ebitCellData1
.
setOrganizationId
(
orgI
d
);
ebitCellData1
.
setPeriod
(
period
);
ebitCellData1
.
setCreateTime
(
new
Date
()
);
ebitCellData1
.
setCol
(
k
);
ebitCellData1
.
setRow
(
j
);
ebitCellData1
.
setData
(
getCellStringValue
(
sheet
.
getRow
(
j
).
getCell
(
j
))
);
ebitCellDataList
.
add
(
ebitCellData1
);
if
(
k
==
1
||
k
==
2
){
EbitCellData
ebitCellData1
=
new
EbitCellData
()
;
ebitCellData1
.
setId
(
idService
.
nextId
()
);
ebitCellData1
.
setOrganizationId
(
orgId
);
ebitCellData1
.
setPeriod
(
perio
d
);
ebitCellData1
.
setCreateTime
(
new
Date
()
);
ebitCellData1
.
setCol
(
k
);
ebitCellData1
.
setRow
(
j
);
ebitCellData1
.
setData
(
getCellStringValue
(
sheet
.
getRow
(
j
).
getCell
(
k
))
);
ebitCellDataList
.
add
(
ebitCellData1
);
}
//这里只保存两列{}
}
}
if
(
ebitCellDataList
.
size
()
==
0
)
{
...
...
@@ -2687,6 +2687,9 @@ public class ReportServiceImpl extends BaseService {
sheetAt
.
createRow
(
i
).
createCell
(
0
).
setCellValue
(
ebitTitle
.
get
(
i
-
37
));
}
List
<
EbitDataDto
>
ebitCellDataList
=
new
ArrayList
<>();
if
(
finalMap
.
size
()
==
0
)
throw
new
Exception
(
"没有利润表模板,无法批量导出,请上传模板"
);
for
(
Map
.
Entry
<
String
,
List
<
EbitCellData
>>
entry
:
finalMap
.
entrySet
())
{
//加载计算ebit数据
...
...
@@ -2716,12 +2719,13 @@ public class ReportServiceImpl extends BaseService {
break
;
if
(
sheetAt
.
getRow
(
m
)
!=
null
&&
sheetAt
.
getRow
(
m
).
getCell
(
_index
+
1
)
!=
null
)
{
for
(
EbitCellData
ebitCellData
:
entry
.
getValue
())
{
if
(
m
==
ebitCellData
.
getRow
()
&&
ebitCellData
.
getCol
()
==
(
_index
+
1
)
)
{
if
(
m
==
ebitCellData
.
getRow
())
{
try
{
sheetAt
.
getRow
(
m
).
getCell
(
_index
+
1
).
setCellValue
(
ebitCellData
.
getData
());
}
catch
(
Exception
e
)
{
sheetAt
.
getRow
(
m
).
createCell
(
_index
+
1
).
setCellValue
(
ebitCellData
.
getData
());
}
System
.
out
.
println
(
ebitCellData
.
getData
());
}
}
}
...
...
atms-web/src/main/webapp/app/analysis/table/tb-ebit-form.ctrl.js
View file @
abd51483
...
...
@@ -1121,7 +1121,7 @@
});
};
var
loadCellData
=
function
(
period
,
orgId
)
{
var
loadCellData
=
function
(
period
)
{
//period = Number(period);
if
(
$scope
.
templateId
!==
undefined
)
{
//todo: according to templateId and period get reportId
...
...
@@ -2841,10 +2841,8 @@
}
var
_date
=
tempYear
.
toString
()
+
tempMonth
;
_date
=
Number
(
_date
);
if
(
$scope
.
relation
.
orgId
!=
null
)
{
$scope
.
relation
.
period
=
_date
;
loadCellData
(
_date
,
$scope
.
relation
.
orgId
);
//默认当前月
}
$scope
.
relation
.
period
=
_date
;
loadCellData
(
_date
,
$scope
.
relation
.
orgId
);
//默认当前月
}
};
...
...
@@ -3089,7 +3087,7 @@
$scope
.
relation
.
lockCell
(
$scope
.
spread
);
//关闭弹出层
$
(
'#busy-indicator-container'
).
hide
();
spreadTODb
();
},
function
(
e
)
{
alert
(
e
.
errorMessage
);
if
(
e
.
errorCode
===
2
/*noPassword*/
||
e
.
errorCode
===
3
/*invalidPassword*/
)
{
...
...
@@ -3144,7 +3142,7 @@
sheet
.
setValue
(
42
,
2
,
$scope
.
_ebitResult
.
sixAddtax
);
sheet
.
setValue
(
43
,
2
,
$scope
.
_ebitResult
.
klzcjsz
);
}
setTimeout
(
function
(){
spreadTODb
();},
1000
)
}
$scope
.
singleExport
=
function
()
{
...
...
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