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
8c4f8b55
Commit
8c4f8b55
authored
Jul 19, 2018
by
frank.xa.zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed datasource detail collect, then go to font-end put it to UI
parent
e6bd41d9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
26 additions
and
15 deletions
+26
-15
DataSourceDto.java
.../main/java/pwc/taxtech/atms/dto/vatdto/DataSourceDto.java
+0
-3
DataSourceExtendDto.java
...java/pwc/taxtech/atms/dto/vatdto/DataSourceExtendDto.java
+3
-0
ReportGeneratorImpl.java
...wc/taxtech/atms/vat/service/impl/ReportGeneratorImpl.java
+2
-2
ReportServiceImpl.java
.../pwc/taxtech/atms/vat/service/impl/ReportServiceImpl.java
+14
-2
FunctionBase.java
.../atms/vat/service/impl/report/functions/FunctionBase.java
+2
-4
GZSD.java
.../taxtech/atms/vat/service/impl/report/functions/GZSD.java
+1
-1
vat-report-view.ctrl.js
...p/common/controls/vat-report-view/vat-report-view.ctrl.js
+1
-1
vat-report-layout.ctrl.js
...pp/vat/report/vat-report-layout/vat-report-layout.ctrl.js
+0
-1
vat-report-layout.html
...p/app/vat/report/vat-report-layout/vat-report-layout.html
+3
-1
No files found.
atms-api/src/main/java/pwc/taxtech/atms/dto/vatdto/DataSourceDto.java
View file @
8c4f8b55
...
...
@@ -32,17 +32,14 @@ public class DataSourceDto {
// 1: Number, 2: Percentage, 3: Boolean, 4: String
Integer
resultType
;
Integer
type
;
String
keyValueDataID
;
String
creator
;
Date
createTime
;
String
updater
;
Date
updateTime
;
String
cellDataID
;
List
<
String
>
items
;
String
projectID
;
String
serviceTypeID
;
}
atms-api/src/main/java/pwc/taxtech/atms/dto/vatdto/DataSourceExtendDto.java
View file @
8c4f8b55
...
...
@@ -4,10 +4,13 @@ import lombok.Getter;
import
lombok.Setter
;
import
pwc.taxtech.atms.vat.entity.DataSource
;
import
java.util.List
;
@Getter
@Setter
public
class
DataSourceExtendDto
extends
DataSource
{
private
Integer
operationType
;
private
Long
cellTemplateID
;
private
Long
cellDataID
;
private
List
<
String
>
items
;
}
atms-api/src/main/java/pwc/taxtech/atms/vat/service/impl/ReportGeneratorImpl.java
View file @
8c4f8b55
...
...
@@ -291,8 +291,8 @@ public class ReportGeneratorImpl extends VatAbstractService implements ReportGen
//after insert celldata, insert the celldatasource for link celldata and datasource
DataSourceExample
dataSourceExample
=
new
DataSourceExample
();
dataSourceExample
.
createCriteria
().
andPeriodEqualTo
(
period
)
;
dataSourceExample
.
createCriteria
()
.
andCellTemplateIdEqualTo
(
tempPeriodCellTemplate
.
get
().
getCellTemplateId
());
dataSourceExample
.
createCriteria
().
andPeriodEqualTo
(
period
)
.
andCellTemplateIdEqualTo
(
tempPeriodCellTemplate
.
get
().
getCellTemplateId
());
List
<
DataSource
>
dataSourceList
=
SpringContextUtil
.
dataSourceMapper
.
selectByExample
(
dataSourceExample
);
for
(
int
ii
=
0
;
ii
<
dataSourceList
.
size
();
ii
++)
{
DataSource
dataSource
=
dataSourceList
.
get
(
ii
);
...
...
atms-api/src/main/java/pwc/taxtech/atms/vat/service/impl/ReportServiceImpl.java
View file @
8c4f8b55
...
...
@@ -333,7 +333,6 @@ public class ReportServiceImpl extends VatAbstractService implements ReportServi
.
andIsActiveAssociationEqualTo
(
true
);
List
<
PeriodTemplate
>
reportTemplates
=
periodTemplateMapper
.
selectByExample
(
example
);
List
<
Long
>
templateIDs
=
new
ArrayList
<>();
templateIDs
.
add
(
report
.
getTemplateId
());
List
<
CellCalcInfoDto
>
cellCfgList
=
reportGenerator
.
getCellCalcInfo
(
templateIDs
,
report
.
getPeriod
());
...
...
@@ -344,7 +343,7 @@ public class ReportServiceImpl extends VatAbstractService implements ReportServi
List
<
CellData
>
currentCellDataList
=
cellDataMapper
.
selectByExample
(
cellDataExample
);
PeriodFormulaBlockExample
periodFormulaBlockExample
=
new
PeriodFormulaBlockExample
();
periodFormulaBlockExample
.
createCriteria
().
andPeriodEqualTo
(
report
.
getPeriod
());
periodFormulaBlockExample
.
createCriteria
().
andPeriodEqualTo
(
report
.
getPeriod
())
.
andReportIdEqualTo
(
reportId
)
;
List
<
PeriodFormulaBlock
>
formulaBlocks
=
periodFormulaBlockMapper
.
selectByExample
(
periodFormulaBlockExample
);
dataDto
.
setFormulaBlocks
(
formulaBlocks
);
//todo: 关键字数据源稍后再加
...
...
@@ -379,6 +378,17 @@ public class ReportServiceImpl extends VatAbstractService implements ReportServi
//公式计算数据源 20180711 完成
List
<
DataSourceExtendDto
>
manualDataSourceList
=
dataSourceMapper
.
getFormulaDataSource
(
reportId
);
//loop the datasource to add datasource detail information
for
(
DataSourceExtendDto
dseo
:
manualDataSourceList
)
{
//dseo.getCellDataID()
DataSourceDetailExample
dataSourceDetailExample
=
new
DataSourceDetailExample
();
dataSourceDetailExample
.
createCriteria
().
andDataSourceIdEqualTo
(
dseo
.
getId
());
List
<
DataSourceDetail
>
dataSourceDetailList
=
dataSourceDetailMapper
.
selectByExample
(
dataSourceDetailExample
);
List
<
String
>
itemValues
=
new
ArrayList
<>();
dataSourceDetailList
.
forEach
(
a
->
itemValues
.
add
(
a
.
getItemValue
()));
dseo
.
setItems
(
itemValues
);
}
Map
<
Long
,
DataSourceDto
>
datasource
=
new
IdentityHashMap
<>();
manualDataSourceList
.
forEach
(
a
->
{
DataSourceDto
dataSourceDto
=
new
DataSourceDto
();
...
...
@@ -389,6 +399,8 @@ public class ReportServiceImpl extends VatAbstractService implements ReportServi
dataSourceDto
.
setDataSourceType
(
a
.
getType
());
dataSourceDto
.
setDescription
(
a
.
getDescription
());
dataSourceDto
.
setCreateTime
(
a
.
getCreateTime
());
dataSourceDto
.
setType
(
a
.
getType
());
dataSourceDto
.
setItems
(
a
.
getItems
());
datasource
.
put
(
a
.
getCellTemplateID
(),
dataSourceDto
);
});
dataDto
.
setManualDataSources
(
datasource
);
...
...
atms-api/src/main/java/pwc/taxtech/atms/vat/service/impl/report/functions/FunctionBase.java
View file @
8c4f8b55
...
...
@@ -9,12 +9,10 @@ import org.slf4j.Logger;
import
org.slf4j.LoggerFactory
;
import
pwc.taxtech.atms.common.util.SpringContextUtil
;
import
pwc.taxtech.atms.constant.enums.FormulaDataSourceDetailType
;
import
pwc.taxtech.atms.vat.entity.DataSource
;
import
pwc.taxtech.atms.vat.entity.DataSourceDetail
;
import
pwc.taxtech.atms.vat.entity.PeriodCellTemplateExample
;
import
pwc.taxtech.atms.vat.entity.PeriodFormulaBlock
;
import
pwc.taxtech.atms.vat.entity.*
;
import
pwc.taxtech.atms.vat.service.impl.FormulaAgent
;
import
java.lang.reflect.Type
;
import
java.math.BigDecimal
;
import
java.util.Date
;
import
java.util.HashMap
;
...
...
atms-api/src/main/java/pwc/taxtech/atms/vat/service/impl/report/functions/GZSD.java
View file @
8c4f8b55
...
...
@@ -88,7 +88,7 @@ public class GZSD extends FunctionBase implements FreeRefFunction {
List
<
FormulaDataSourceDto
>
dataSourceDtoList
=
new
ArrayList
<>();
FormulaDataSourceDto
formulaDataSourceDto
=
new
FormulaDataSourceDto
();
formulaDataSourceDto
.
setOperationType
(
EnumOperationType
.
Single
.
getCode
());
formulaDataSourceDto
.
setType
(
FormulaDataSourceType
.
Other
.
getCode
());
formulaDataSourceDto
.
setType
(
FormulaDataSourceType
.
Report
.
getCode
());
formulaDataSourceDto
.
setResultType
(
KeyValueConfigResultType
.
Percentage
.
getCode
());
formulaDataSourceDto
.
setAmount
(
matchedRule
.
get
().
getTaxRate
());
formulaDataSourceDto
.
setName
(
nf
.
format
(
matchedRule
.
get
().
getTaxRate
()));
...
...
atms-web/src/main/webapp/app/common/controls/vat-report-view/vat-report-view.ctrl.js
View file @
8c4f8b55
...
...
@@ -1046,7 +1046,7 @@
// $scope.isShowUpdateCell = false;
//}
});
}
}
;
var
loadCellData
=
function
(
period
)
{
if
(
$scope
.
isBSPL
)
{
...
...
atms-web/src/main/webapp/app/vat/report/vat-report-layout/vat-report-layout.ctrl.js
View file @
8c4f8b55
...
...
@@ -40,7 +40,6 @@
}
}
if
(
$scope
.
hasTaxReturnPermission
&&
$scope
.
hasQueryTaxReturnPermission
)
{
// 获取 申报表 Report Template
var
taxRtnGrp
=
{
...
...
atms-web/src/main/webapp/app/vat/report/vat-report-layout/vat-report-layout.html
View file @
8c4f8b55
...
...
@@ -13,7 +13,9 @@
<div
class=
"divider"
></div>
<div
ng-show=
"group.isExpand"
class=
"animate-show-hide"
>
<div
class=
"li tree"
ng-repeat=
"menu in group.children"
>
<a
ui-sref-active=
"active"
data-template-id=
"{{menu.id}}"
ng-class=
"{'active':selectedTemplateId===menu.id}"
ui-sref=
".reportView({ id: menu.reportId, templateid: menu.id, name:menu.name,templatecode:menu.code })"
ng-bind-html=
"::menu.name"
></a>
<a
ui-sref-active=
"active"
data-template-id=
"{{menu.id}}"
ng-class=
"{'active':selectedTemplateId===menu.id}"
ui-sref=
".reportView({ id: menu.reportId, templateid: menu.id, name:menu.name,templatecode:menu.code })"
ng-bind-html=
"::menu.name"
></a>
</div>
</div>
</li>
...
...
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