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
c5446c98
Commit
c5446c98
authored
Mar 18, 2019
by
chase
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merge档案管理代码
parent
c897feee
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
25 additions
and
21 deletions
+25
-21
TaxesCalculateReportEnum.java
...taxtech/atms/constant/enums/TaxesCalculateReportEnum.java
+10
-9
TemplateController.java
.../java/pwc/taxtech/atms/controller/TemplateController.java
+1
-1
TemplateGroupServiceImpl.java
...c/taxtech/atms/service/impl/TemplateGroupServiceImpl.java
+10
-1
ReportServiceImpl.java
.../pwc/taxtech/atms/vat/service/impl/ReportServiceImpl.java
+0
-0
WPNAME.java
...axtech/atms/vat/service/impl/report/functions/WPNAME.java
+1
-7
tax-document-list.svc.js
...DocumentManage/tax-document-list/tax-document-list.svc.js
+3
-3
No files found.
atms-api/src/main/java/pwc/taxtech/atms/constant/enums/TaxesCalculateReportEnum.java
View file @
c5446c98
...
...
@@ -10,15 +10,16 @@ public class TaxesCalculateReportEnum {
Column_1
(
0
,
"序号"
),
Column_2
(
1
,
"收入类型名称"
),
Column_3
(
2
,
"税金项目"
),
Column_4
(
3
,
"账载收入-明细"
),
Column_5
(
4
,
"销项开票收入数-专票"
),
Column_6
(
5
,
"销项开票收入数-普票"
),
Column_7
(
6
,
"计税基数(应税收入)"
),
Column_8
(
7
,
"税率"
),
Column_9
(
8
,
"税额(元)"
),
Column_10
(
9
,
"收入类别"
),
Column_11
(
10
,
"计税方式"
),
Column_12
(
11
,
"备注"
)
Column_4
(
3
,
"期间"
),
Column_5
(
4
,
"账载收入-明细"
),
Column_6
(
5
,
"销项开票收入数-专票"
),
Column_7
(
6
,
"销项开票收入数-普票"
),
Column_8
(
7
,
"计税基数(应税收入)"
),
Column_9
(
8
,
"税率"
),
Column_10
(
9
,
"税额(元)"
),
Column_11
(
10
,
"收入类别"
),
Column_12
(
11
,
"计税方式"
),
Column_13
(
12
,
"备注"
)
;
private
Integer
index
;
private
String
name
;
...
...
atms-api/src/main/java/pwc/taxtech/atms/controller/TemplateController.java
View file @
c5446c98
...
...
@@ -185,7 +185,7 @@ public class TemplateController extends BaseController {
@RequestParam
(
name
=
"projectId"
)
String
projectId
,
HttpServletResponse
response
)
throws
URISyntaxException
{
period
=
0
;
//
period = 0;
String
filePath
;
File
templateFile
;
InputStream
inputStream
=
null
;
...
...
atms-api/src/main/java/pwc/taxtech/atms/service/impl/TemplateGroupServiceImpl.java
View file @
c5446c98
...
...
@@ -258,7 +258,12 @@ public class TemplateGroupServiceImpl extends AbstractService {
cellTemplate
.
setCreateTime
(
now
);
cellTemplate
.
setUpdateTime
(
now
);
cellTemplate
.
setRowIndex
(
r
);
cellTemplate
.
setRowName
(
StringUtils
.
EMPTY
);
//税金计算表单独处理
if
(
"VAT020"
.
equals
(
template
.
getCode
())){
cellTemplate
.
setRowName
(
POIUtil
.
getCellFormulaString
(
cell
));
}
else
{
cellTemplate
.
setRowName
(
StringUtils
.
EMPTY
);
}
cellTemplate
.
setColumnName
(
StringUtils
.
EMPTY
);
cellTemplate
.
setComment
(
StringUtils
.
EMPTY
);
cellTemplate
.
setCopyFromId
(
0L
);
...
...
@@ -407,6 +412,10 @@ public class TemplateGroupServiceImpl extends AbstractService {
continue
;
//todo cell == null 如何处理
}
CellTemplate
cellTemplate
=
new
CellTemplate
();
//税金计算表单独处理
if
(
"VAT020"
.
equals
(
template
.
getCode
())){
cellTemplate
.
setRowName
(
POIUtil
.
getCellFormulaString
(
cell
));
}
cellTemplate
.
setColumnIndex
(
c
);
cellTemplate
.
setCreateTime
(
now
);
cellTemplate
.
setUpdateTime
(
now
);
...
...
atms-api/src/main/java/pwc/taxtech/atms/vat/service/impl/ReportServiceImpl.java
View file @
c5446c98
This diff is collapsed.
Click to expand it.
atms-api/src/main/java/pwc/taxtech/atms/vat/service/impl/report/functions/WPNAME.java
View file @
c5446c98
...
...
@@ -8,18 +8,12 @@ import org.apache.poi.ss.formula.functions.FreeRefFunction;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
pwc.taxtech.atms.common.util.MyAsserts
;
import
pwc.taxtech.atms.constant.DataSourceName
;
import
pwc.taxtech.atms.constant.enums.FormulaDataSourceDetailType
;
import
pwc.taxtech.atms.dpo.CellTemplatePerGroupDto
;
import
pwc.taxtech.atms.dto.vatdto.BBParasBo
;
import
pwc.taxtech.atms.dto.vatdto.CurrentPeriodBo
;
import
pwc.taxtech.atms.dto.vatdto.ReportCellDataSourceDto
;
import
pwc.taxtech.atms.dto.vatdto.WPNAMEParasBo
;
import
pwc.taxtech.atms.entity.Project
;
import
pwc.taxtech.atms.exception.Exceptions
;
import
pwc.taxtech.atms.exception.FormulaException
;
import
pwc.taxtech.atms.vat.entity.PeriodCellData
;
import
pwc.taxtech.atms.vat.entity.PeriodDataSource
;
import
java.math.BigDecimal
;
import
java.util.ArrayList
;
...
...
@@ -65,7 +59,7 @@ public class WPNAME extends FunctionBase implements FreeRefFunction {
MyAsserts
.
assertNotEmpty
(
cellTemplateDataList
,
Exceptions
.
BB_CELL_TEMP_NULL
);
cellTemplateData
=
cellTemplateDataList
.
get
(
0
);
int
index
=
ec
.
getWorkbook
().
getSheetIndex
(
bo
.
getReportCode
());
cellValue
=
getCellValue
(
index
,
ec
,
formulaContext
,
agent
,
cellTemplateData
.
getRowIndex
(),
bo
.
getColumnIndex
()
-
1
,
cellValue
=
getCellValue
(
index
,
ec
,
formulaContext
,
agent
,
cellTemplateData
.
getRowIndex
(),
"VAT020"
.
equals
(
bo
.
getReportCode
())?
bo
.
getColumnIndex
():(
bo
.
getColumnIndex
()
-
1
)
,
Long
.
parseLong
(
cellTemplateData
.
getCellTemplateId
()));
nullCellDto
.
extractFromGroup
(
bo
,
formulaContext
.
getPeriod
(),
formulaContext
.
getYear
(),
cellTemplateData
);
nullCellDto
.
setAmount
(
cellValue
);
...
...
atms-web/src/main/webapp/app/taxDocumentManage/tax-document-list/tax-document-list.svc.js
View file @
c5446c98
...
...
@@ -67,16 +67,16 @@ taxDocumentManageModule.factory('taxDocumentListService',
return
jqFetch
.
post
(
apiInterceptor
.
webApiHostUrl
+
'/fileTypes/query4SelectionBox'
,
params
);
},
getCompanyNameOptions
:
function
(
params
){
return
jqFetch
.
post
(
apiInterceptor
.
webApiHostUrl
+
'/org/query4SelectionBox
'
,
params
);
return
jqFetch
.
get
(
apiInterceptor
.
webApiHostUrl
+
'/org/getMyOrgList
'
,
params
);
},
delFileRecordItems
:
function
(
params
){
return
jqFetch
.
post
(
apiInterceptor
.
webApiHostUrl
+
'/taxDoc/batchDelete'
,
params
);
},
getDocumentsAttrAndType
:
function
(
params
){
return
jqFetch
.
post
(
apiInterceptor
.
webApiHostUrl
+
'/
v1/
fileTypes/selectList'
,
params
);
return
jqFetch
.
post
(
apiInterceptor
.
webApiHostUrl
+
'/fileTypes/selectList'
,
params
);
},
getBusinessList
:
function
(
params
){
return
jqFetch
.
get
(
apiInterceptor
.
webApiHostUrl
+
'/
v1/
businessunit/getlist'
,
params
);
return
jqFetch
.
get
(
apiInterceptor
.
webApiHostUrl
+
'/businessunit/getlist'
,
params
);
},
downloadAllFile
:
function
(
params
){
var
xhr
=
new
XMLHttpRequest
();
...
...
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