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
e8f3ea5a
Commit
e8f3ea5a
authored
Apr 09, 2019
by
zhkwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CIT数据预览优化
parent
c0543dbc
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
109 additions
and
263 deletions
+109
-263
CitDataPreviewServiceImpl.java
.../taxtech/atms/service/impl/CitDataPreviewServiceImpl.java
+48
-12
citTrialBalanceMapping.xlsx
.../resources/cit_excel_template/citTrialBalanceMapping.xlsx
+0
-0
cit-preview-journal-merge.ctrl.js
...t-preview-journal-merge/cit-preview-journal-merge.ctrl.js
+22
-115
cit-preview-journal-merge.html
.../cit-preview-journal-merge/cit-preview-journal-merge.html
+5
-5
cit-preview-journal-merge.less
.../cit-preview-journal-merge/cit-preview-journal-merge.less
+0
-1
cit-preview-tb-generate-ver.html
...-preview-tb-generate-ver/cit-preview-tb-generate-ver.html
+1
-1
cit-preview-tb-mapping-ver.ctrl.js
...preview-tb-mapping-ver/cit-preview-tb-mapping-ver.ctrl.js
+28
-123
cit-preview-tb-mapping-ver.html
...it-preview-tb-mapping-ver/cit-preview-tb-mapping-ver.html
+5
-5
cit-preview-tb-mapping-ver.less
...it-preview-tb-mapping-ver/cit-preview-tb-mapping-ver.less
+0
-1
No files found.
atms-api/src/main/java/pwc/taxtech/atms/service/impl/CitDataPreviewServiceImpl.java
View file @
e8f3ea5a
...
...
@@ -11,6 +11,7 @@ import pwc.taxtech.atms.constant.Constant;
import
pwc.taxtech.atms.constant.CountTypeConstant
;
import
pwc.taxtech.atms.constant.ExportTemplatePathConstant
;
import
pwc.taxtech.atms.dao.CitJournalEntryAdjustMapper
;
import
pwc.taxtech.atms.dao.CitTbamMapper
;
import
pwc.taxtech.atms.dao.CitTrialBalanceMapper
;
import
pwc.taxtech.atms.dao.OrganizationMapper
;
import
pwc.taxtech.atms.dto.CitJournalAdjustDto
;
...
...
@@ -53,6 +54,8 @@ public class CitDataPreviewServiceImpl extends BaseService {
private
CitJournalEntryAdjustMapper
citJournalMapper
;
@Resource
private
CitTrialBalanceMapper
citTbMapper
;
@Resource
private
CitTbamMapper
citTbamMapper
;
/**
* 获取日记账合并版
...
...
@@ -167,10 +170,10 @@ public class CitDataPreviewServiceImpl extends BaseService {
CitTrialBalanceExample
.
Criteria
citTbExampleCriteria
=
citTbExample
.
createCriteria
();
citTbExampleCriteria
.
andProjectIdEqualTo
(
citTrialBalanceDto
.
getProjectId
());
if
(
citTrialBalanceDto
.
getAccountCode
()
!=
null
&&
!
""
.
equals
(
citTrialBalanceDto
.
getAccountCode
())){
citTbExampleCriteria
.
andAccountCode
EqualTo
(
citTrialBalanceDto
.
getAccountCode
()
);
citTbExampleCriteria
.
andAccountCode
Like
(
"%"
+
citTrialBalanceDto
.
getAccountCode
()+
"%"
);
}
if
(
citTrialBalanceDto
.
getAccountDescription
()
!=
null
&&
!
""
.
equals
(
citTrialBalanceDto
.
getAccountDescription
())){
citTbExampleCriteria
.
andAccountDescription
EqualTo
(
citTrialBalanceDto
.
getAccountDescription
()
);
citTbExampleCriteria
.
andAccountDescription
Like
(
"%"
+
citTrialBalanceDto
.
getAccountDescription
()+
"%"
);
}
List
<
CitTrialBalance
>
citTbList
=
citTbMapper
.
selectByExample
(
citTbExample
);
...
...
@@ -226,10 +229,10 @@ public class CitDataPreviewServiceImpl extends BaseService {
CitTrialBalanceExample
.
Criteria
citTbExampleCriteria
=
citTbExample
.
createCriteria
();
citTbExampleCriteria
.
andProjectIdEqualTo
(
citTrialBalanceDto
.
getProjectId
());
if
(
citTrialBalanceDto
.
getAccountCode
()
!=
null
&&
!
""
.
equals
(
citTrialBalanceDto
.
getAccountCode
())){
citTbExampleCriteria
.
andAccountCode
EqualTo
(
citTrialBalanceDto
.
getAccountCode
()
);
citTbExampleCriteria
.
andAccountCode
Like
(
"%"
+
citTrialBalanceDto
.
getAccountCode
()+
"%"
);
}
if
(
citTrialBalanceDto
.
getAccountDescription
()
!=
null
&&
!
""
.
equals
(
citTrialBalanceDto
.
getAccountDescription
())){
citTbExampleCriteria
.
andAccountDescription
EqualTo
(
citTrialBalanceDto
.
getAccountDescription
()
);
citTbExampleCriteria
.
andAccountDescription
Like
(
"%"
+
citTrialBalanceDto
.
getAccountDescription
()+
"%"
);
}
List
<
CitTrialBalance
>
citTbList
=
citTbMapper
.
selectByExample
(
citTbExample
);
if
(
citTbList
.
size
()==
0
){
...
...
@@ -269,14 +272,28 @@ public class CitDataPreviewServiceImpl extends BaseService {
*/
public
PageInfo
<
CitTrialBalanceDto
>
getTbMappingVerData
(
CitTrialBalanceDto
citTrialBalanceDto
)
{
Page
page
=
PageHelper
.
startPage
(
citTrialBalanceDto
.
getPageInfo
().
getPageIndex
(),
citTrialBalanceDto
.
getPageInfo
().
getPageSize
());
List
<
CitTrialBalanceDto
>
citTbList
=
citTbMapper
.
getTbMappingData
(
citTrialBalanceDto
);
// List<CitTrialBalanceDto> citTbDtos = Lists.newArrayList();
// citTbList.forEach(tb -> {
// CitTrialBalanceDto citTrialBalanceDtoTemp = new CitTrialBalanceDto();
// beanUtil.copyProperties(tb, citTrialBalanceDtoTemp);
// citTbDtos.add(citTrialBalanceDtoTemp);
// });
CitTbamExample
citTbamExample
=
new
CitTbamExample
();
CitTbamExample
.
Criteria
criteria
=
citTbamExample
.
createCriteria
();
criteria
.
andProjectIdEqualTo
(
citTrialBalanceDto
.
getProjectId
());
if
(
citTrialBalanceDto
.
getAccountCode
()
!=
null
&&
!
""
.
equals
(
citTrialBalanceDto
.
getAccountCode
())){
criteria
.
andAccountCodeLike
(
"%"
+
citTrialBalanceDto
.
getAccountCode
()+
"%"
);
}
if
(
citTrialBalanceDto
.
getAccountDescription
()
!=
null
&&
!
""
.
equals
(
citTrialBalanceDto
.
getAccountDescription
())){
criteria
.
andAccountDescriptionLike
(
"%"
+
citTrialBalanceDto
.
getAccountDescription
()+
"%"
);
}
if
(
citTrialBalanceDto
.
getAttribute
()
!=
null
&&
!
""
.
equals
(
citTrialBalanceDto
.
getAttribute
())){
criteria
.
andAttributeLike
(
"%"
+
citTrialBalanceDto
.
getAttribute
()+
"%"
);
}
List
<
CitTrialBalanceDto
>
citTbList
=
Lists
.
newArrayList
();
List
<
CitTbam
>
citTbams
=
citTbamMapper
.
selectByExample
(
citTbamExample
);
for
(
CitTbam
citTbam
:
citTbams
)
{
CitTrialBalanceDto
citTrialBalanceDtoTemp
=
new
CitTrialBalanceDto
();
beanUtil
.
copyProperties
(
citTbam
,
citTrialBalanceDtoTemp
);
citTbList
.
add
(
citTrialBalanceDtoTemp
);
}
// List<CitTrialBalanceDto> citTbList = citTbMapper.getTbMappingData(citTrialBalanceDto);
PageInfo
<
CitTrialBalanceDto
>
pageInfo
=
new
PageInfo
<>(
citTbList
);
pageInfo
.
setTotal
(
page
.
getTotal
());
pageInfo
.
setPageNum
(
citTrialBalanceDto
.
getPageInfo
().
getPageIndex
());
...
...
@@ -316,7 +333,25 @@ public class CitDataPreviewServiceImpl extends BaseService {
* @return
*/
public
int
exportTbMappingVerData2
(
CitTrialBalanceDto
citTrialBalanceDto
,
HttpServletResponse
response
){
List
<
CitTrialBalanceDto
>
citTbList
=
citTbMapper
.
getTbMappingData
(
citTrialBalanceDto
);
CitTbamExample
citTbamExample
=
new
CitTbamExample
();
CitTbamExample
.
Criteria
criteria
=
citTbamExample
.
createCriteria
();
criteria
.
andProjectIdEqualTo
(
citTrialBalanceDto
.
getProjectId
());
if
(
citTrialBalanceDto
.
getAccountCode
()
!=
null
&&
!
""
.
equals
(
citTrialBalanceDto
.
getAccountCode
())){
criteria
.
andAccountCodeLike
(
"%"
+
citTrialBalanceDto
.
getAccountCode
()+
"%"
);
}
if
(
citTrialBalanceDto
.
getAccountDescription
()
!=
null
&&
!
""
.
equals
(
citTrialBalanceDto
.
getAccountDescription
())){
criteria
.
andAccountDescriptionLike
(
"%"
+
citTrialBalanceDto
.
getAccountDescription
()+
"%"
);
}
if
(
citTrialBalanceDto
.
getAttribute
()
!=
null
&&
!
""
.
equals
(
citTrialBalanceDto
.
getAttribute
())){
criteria
.
andAttributeLike
(
"%"
+
citTrialBalanceDto
.
getAttribute
()+
"%"
);
}
List
<
CitTrialBalanceDto
>
citTbList
=
Lists
.
newArrayList
();
List
<
CitTbam
>
citTbams
=
citTbamMapper
.
selectByExample
(
citTbamExample
);
for
(
CitTbam
citTbam
:
citTbams
)
{
CitTrialBalanceDto
citTrialBalanceDtoTemp
=
new
CitTrialBalanceDto
();
beanUtil
.
copyProperties
(
citTbam
,
citTrialBalanceDtoTemp
);
citTbList
.
add
(
citTrialBalanceDtoTemp
);
}
if
(
citTbList
.
size
()==
0
){
return
0
;
}
...
...
@@ -330,4 +365,5 @@ public class CitDataPreviewServiceImpl extends BaseService {
return
1
;
}
}
atms-api/src/main/resources/cit_excel_template/citTrialBalanceMapping.xlsx
View file @
e8f3ea5a
No preview for this file type
atms-web/src/main/webapp/app/cit/preview/cit-preview-journal-merge/cit-preview-journal-merge.ctrl.js
View file @
e8f3ea5a
...
...
@@ -49,15 +49,12 @@
};
//从数据库中load数据
var
loadJournalEntryDataFromDB
=
function
(
pageIndex
)
{
initJournalEntryPagination
();
$scope
.
curJournalEntryPage
=
pageIndex
;
var
loadJournalEntryDataFromDB
=
function
()
{
//初始化查询信息
$scope
.
queryParams
.
pageInfo
=
{
totalCount
:
$scope
.
queryJournalEntryResult
.
pageInfo
.
totalCount
,
pageIndex
:
pageIndex
,
pageSize
:
$scope
.
queryJournalEntryResult
.
pageInfo
.
pageSize
,
totalCount
:
$scope
.
pagingOptions
.
totalItems
,
pageIndex
:
$scope
.
pagingOptions
.
pageIndex
,
pageSize
:
$scope
.
pagingOptions
.
pageSize
,
totalPage
:
0
};
$scope
.
getDataFromDatabase
(
$scope
.
queryParams
);
...
...
@@ -72,79 +69,10 @@
v
.
index
=
index
++
;
});
$scope
.
gridOptions
.
data
=
data
.
list
;
$scope
.
queryJournalEntryResult
.
pageInfo
=
data
;
computeJournalEntryPage
();
// $scope.ledgerName = data.list[0].ledgerName;
// $scope.currencyCode = data.list[0].currencyCode;
// $scope.status = data.list[0].status;
// $scope.importDate = $filter('date')(data.list[0].date, "yyyy-MM-dd hh:mm:ss");
}
});
};
//点击任意一页加载数据事件
var
loadIncomeInvoiceDataByPage
=
function
(
pageIndex
)
{
loadJournalEntryDataFromDB
(
pageIndex
);
};
//计算页数,创建分页栏
var
computeJournalEntryPage
=
function
()
{
if
(
$scope
.
queryJournalEntryResult
.
pageInfo
&&
$scope
.
queryJournalEntryResult
.
pageInfo
.
total
>
0
)
{
var
totalPage
=
parseInt
(
$scope
.
queryJournalEntryResult
.
pageInfo
.
total
/
$scope
.
queryJournalEntryResult
.
pageInfo
.
pageSize
);
totalPage
=
$scope
.
queryJournalEntryResult
.
pageInfo
.
totalCount
%
$scope
.
queryJournalEntryResult
.
pageInfo
.
pageSize
==
0
?
totalPage
:
totalPage
+
1
;
//计算本页记录数
if
(
$scope
.
queryJournalEntryResult
.
pageInfo
.
pageNum
===
totalPage
)
{
$scope
.
curPageItemCount
=
$scope
.
queryJournalEntryResult
.
pageInfo
.
total
%
$scope
.
queryJournalEntryResult
.
pageInfo
.
pageSize
;
$scope
.
pagingOptions
.
totalItems
=
data
.
total
;
}
else
{
$scope
.
curPageItemCount
=
$scope
.
queryJournalEntryResult
.
pageInfo
.
pageSize
;
}
$scope
.
queryJournalEntryResult
.
pageInfo
.
totalPage
=
totalPage
;
var
createPage
=
$
(
"#totalInvoicePage"
).
createPage
({
pageCount
:
totalPage
,
current
:
$scope
.
curJournalEntryPage
,
backFn
:
function
(
p
)
{
//单击回调方法,p是当前页码
loadIncomeInvoiceDataByPage
(
p
);
}
});
$
(
'#totalInvoicePage'
).
css
(
'display'
,
'inline-block'
);
}
else
{
//如果查询结果为0,则直接设置本页记录数为0
$scope
.
curPageItemCount
=
0
;
var
createPage
=
$
(
"#totalInvoicePage"
).
createPage
({
pageCount
:
0
,
current
:
$scope
.
curJournalEntryPage
,
backFn
:
function
(
p
)
{
//单击回调方法,p是当前页码
loadIncomeInvoiceDataByPage
(
p
);
}
});
$
(
'#totalInvoicePage'
).
css
(
'display'
,
'inline-block'
);
}
};
//初始化分页信息
var
initJournalEntryPagination
=
function
()
{
$scope
.
queryJournalEntryResult
=
{
list
:
[],
pageInfo
:
{
totalCount
:
-
1
,
pageIndex
:
1
,
pageSize
:
constant
.
pagesize
,
totalPage
:
0
,
}
}
$scope
.
curJournalEntryPage
=
1
;
});
};
//将选择了的查询条件显示在grid上方
...
...
@@ -153,38 +81,7 @@
$scope
.
queryParams
.
periodEnd
=
$scope
.
queryParams
.
periodStart
;
}
//设置需要去掉的查询条件的值为空
if
(
!
PWC
.
isNullOrEmpty
(
removeData
))
{
var
removeItem
=
removeData
.
split
(
"|"
);
removeItem
.
forEach
(
function
(
v
)
{
$scope
.
queryParams
[
v
]
=
null
;
// if ($scope.queryParams.subjectCode === null) {
// $scope.queryParams.subjectCode = '';
// }
// if ($scope.queryParams.subjectName === null) {
// $scope.queryParams.subjectName = '';
// }
// if ($scope.queryParams.orgCode === null) {
// $scope.queryParams.orgCode = '';
// }
// if ($scope.queryParams.orgName === null) {
// $scope.queryParams.orgName = '';
// }
// if ($scope.queryParams.documentDate === null) {
// $scope.queryParams.documentDate = '';
// }
});
}
loadJournalEntryDataFromDB
(
1
);
// if ($scope.criteriaList.length > 6) {
// $scope.criteriaListFirstRow = $scope.criteriaList.slice(0, 6);
// $scope.criteriaListSecondRow = $scope.criteriaList.slice(6, $scope.criteriaList.length);
// }
// else {
// $scope.criteriaListFirstRow = $scope.criteriaList.slice(0, $scope.criteriaList.length);
// }
loadJournalEntryDataFromDB
();
$
(
'.filter-button'
).
popover
(
"hide"
);
};
...
...
@@ -203,7 +100,7 @@
};
$scope
.
queryParams
.
periodStart
=
vatSessionService
.
year
*
100
+
1
;
$scope
.
queryParams
.
periodEnd
=
vatSessionService
.
year
*
100
+
12
;
loadJournalEntryDataFromDB
(
1
);
loadJournalEntryDataFromDB
();
$
(
'.filter-button'
).
popover
(
"hide"
);
};
...
...
@@ -274,10 +171,21 @@
SweetAlert
.
error
(
$translate
.
instant
(
'PleaseContactAdministrator'
));
});
};
$scope
.
refreshGrid
=
function
()
{
$log
.
debug
(
"refreshGrid"
);
loadJournalEntryDataFromDB
();
};
(
function
initialize
()
{
$log
.
debug
(
'VatPreviewInputInvoiceController.ctor()...'
);
//分页的设置
$scope
.
pagingOptions
=
{
pageIndex
:
1
,
//当前页码
totalItems
:
0
,
//总数据
pageSize
:
50
//每页多少条数据
};
$
(
'#input-invoice-period-picker'
).
focus
(
function
()
{
$
(
'.filter-button'
).
popover
(
"hide"
);
});
...
...
@@ -300,7 +208,7 @@
$scope
.
queryParams
.
periodStart
=
startMonth
;
$scope
.
queryParams
.
periodEnd
=
endMonth
;
loadJournalEntryDataFromDB
(
1
);
loadJournalEntryDataFromDB
();
});
...
...
@@ -370,7 +278,6 @@
$scope
.
handleJournal
=
handleJournal
;
initPeriods
();
initJournalEntryPagination
();
//初始化查询条件-期间范围
$scope
.
queryParams
.
periodStart
=
vatSessionService
.
year
*
100
+
1
;
$scope
.
queryParams
.
periodEnd
=
vatSessionService
.
year
*
100
+
12
;
...
...
@@ -380,7 +287,7 @@
// }else{
// $('.periodInput')[0].style.left = "250px";
// }
loadJournalEntryDataFromDB
(
1
);
loadJournalEntryDataFromDB
();
})();
}
]);
...
...
atms-web/src/main/webapp/app/cit/preview/cit-preview-journal-merge/cit-preview-journal-merge.html
View file @
e8f3ea5a
...
...
@@ -44,11 +44,11 @@
<div
class=
"inputInvoiceGrid"
ui-grid=
"gridOptions"
>
<div
class=
"watermark"
ng-show=
"!gridOptions.data.length"
><span
translate=
"NoDataAvailable"
></span></div>
</div>
<div
class=
"pagination-container"
>
<span>
本页{{curPageItemCount}}条记录,共{{queryJournalEntryResult.pageInfo.total}}条记录
</span>
<div
id=
"totalInvoicePage"
class=
"common-pagination"
style=
"display:none;"
>
</div>
</div>
</div>
<div
class=
"page-footer"
>
<ack-pagination
page-options=
"pagingOptions"
refresh-table=
"refreshGrid()"
></ack-pagination>
</div>
</div>
atms-web/src/main/webapp/app/cit/preview/cit-preview-journal-merge/cit-preview-journal-merge.less
View file @
e8f3ea5a
...
...
@@ -130,7 +130,6 @@
/*Filter Criteria tags:*/
/*******************************************/
.main-area {
height: 100%;
margin: 0 20px;
.watermark {
...
...
atms-web/src/main/webapp/app/cit/preview/cit-preview-tb-generate-ver/cit-preview-tb-generate-ver.html
View file @
e8f3ea5a
...
...
@@ -12,7 +12,7 @@
<span
class=
"text-bold"
translate=
"InvoiceQJ"
style=
"display: none"
></span>
<input
type=
"text"
class=
"form-control input-width-middle periodInput"
style=
"position: relative; top: -30px; left: 180px;display: none;"
id=
"input-invoice-period-picker"
/>
<span
ng-click=
"downloadJE()"
style=
"position: relative; left: 8
5
%;"
><i
class=
"fa fa-file-excel-o"
<span
ng-click=
"downloadJE()"
style=
"position: relative; left: 8
0
%;"
><i
class=
"fa fa-file-excel-o"
aria-hidden=
"true"
></i>
{{'ExportBtn' | translate}}
</span>
</div>
...
...
atms-web/src/main/webapp/app/cit/preview/cit-preview-tb-mapping-ver/cit-preview-tb-mapping-ver.ctrl.js
View file @
e8f3ea5a
...
...
@@ -50,15 +50,12 @@
};
//从数据库中load数据
var
loadJournalEntryDataFromDB
=
function
(
pageIndex
)
{
initJournalEntryPagination
();
$scope
.
curJournalEntryPage
=
pageIndex
;
var
loadJournalEntryDataFromDB
=
function
()
{
//初始化查询信息
$scope
.
queryParams
.
pageInfo
=
{
totalCount
:
$scope
.
queryJournalEntryResult
.
pageInfo
.
totalCount
,
pageIndex
:
pageIndex
,
pageSize
:
$scope
.
queryJournalEntryResult
.
pageInfo
.
pageSize
,
totalCount
:
$scope
.
pagingOptions
.
totalItems
,
pageIndex
:
$scope
.
pagingOptions
.
pageIndex
,
pageSize
:
$scope
.
pagingOptions
.
pageSize
,
totalPage
:
0
};
$scope
.
getDataFromDatabase
(
$scope
.
queryParams
);
...
...
@@ -73,135 +70,32 @@
v
.
index
=
index
++
;
});
$scope
.
gridOptions
.
data
=
data
.
list
;
$scope
.
queryJournalEntryResult
.
pageInfo
=
data
;
computeJournalEntryPage
();
// $scope.ledgerName = data.list[0].ledgerName;
// $scope.currencyCode = data.list[0].currencyCode;
// $scope.status = data.list[0].status;
// $scope.importDate = $filter('date')(data.list[0].date, "yyyy-MM-dd hh:mm:ss");
}
});
};
//点击任意一页加载数据事件
var
loadIncomeInvoiceDataByPage
=
function
(
pageIndex
)
{
loadJournalEntryDataFromDB
(
pageIndex
);
};
//计算页数,创建分页栏
var
computeJournalEntryPage
=
function
()
{
if
(
$scope
.
queryJournalEntryResult
.
pageInfo
&&
$scope
.
queryJournalEntryResult
.
pageInfo
.
total
>
0
)
{
var
totalPage
=
parseInt
(
$scope
.
queryJournalEntryResult
.
pageInfo
.
total
/
$scope
.
queryJournalEntryResult
.
pageInfo
.
pageSize
);
totalPage
=
$scope
.
queryJournalEntryResult
.
pageInfo
.
totalCount
%
$scope
.
queryJournalEntryResult
.
pageInfo
.
pageSize
==
0
?
totalPage
:
totalPage
+
1
;
//计算本页记录数
if
(
$scope
.
queryJournalEntryResult
.
pageInfo
.
pageNum
===
totalPage
)
{
$scope
.
curPageItemCount
=
$scope
.
queryJournalEntryResult
.
pageInfo
.
total
%
$scope
.
queryJournalEntryResult
.
pageInfo
.
pageSize
;
}
else
{
$scope
.
curPageItemCount
=
$scope
.
queryJournalEntryResult
.
pageInfo
.
pageSize
;
}
$scope
.
queryJournalEntryResult
.
pageInfo
.
totalPage
=
totalPage
;
var
createPage
=
$
(
"#totalInvoicePage"
).
createPage
({
pageCount
:
totalPage
,
current
:
$scope
.
curJournalEntryPage
,
backFn
:
function
(
p
)
{
//单击回调方法,p是当前页码
loadIncomeInvoiceDataByPage
(
p
);
}
});
$
(
'#totalInvoicePage'
).
css
(
'display'
,
'inline-block'
);
}
else
{
//如果查询结果为0,则直接设置本页记录数为0
$scope
.
curPageItemCount
=
0
;
var
createPage
=
$
(
"#totalInvoicePage"
).
createPage
({
pageCount
:
0
,
current
:
$scope
.
curJournalEntryPage
,
backFn
:
function
(
p
)
{
//单击回调方法,p是当前页码
loadIncomeInvoiceDataByPage
(
p
);
}
});
$
(
'#totalInvoicePage'
).
css
(
'display'
,
'inline-block'
);
}
};
//初始化分页信息
var
initJournalEntryPagination
=
function
()
{
$scope
.
queryJournalEntryResult
=
{
list
:
[],
pageInfo
:
{
totalCount
:
-
1
,
pageIndex
:
1
,
pageSize
:
constant
.
pagesize
,
totalPage
:
0
,
$scope
.
pagingOptions
.
totalItems
=
data
.
total
;
}
}
$scope
.
curJournalEntryPage
=
1
;
});
};
//将选择了的查询条件显示在grid上方
var
doDataFilter
=
function
(
removeData
)
{
// if ($scope.queryParams.periodStart > $scope.queryParams.periodEnd) {
// $scope.queryParams.periodEnd = $scope.queryParams.periodStart;
// }
// 设置需要去掉的查询条件的值为空
if
(
!
PWC
.
isNullOrEmpty
(
removeData
))
{
var
removeItem
=
removeData
.
split
(
"|"
);
removeItem
.
forEach
(
function
(
v
)
{
$scope
.
queryParams
[
v
]
=
null
;
// if ($scope.queryParams.accountCode === null) {
// $scope.queryParams.accountCode = '';
// }
// if ($scope.queryParams.accountDescription === null) {
// $scope.queryParams.accountDescription = '';
// }
// if ($scope.queryParams.attribute === null) {
// $scope.queryParams.attribute = '';
// }
});
}
loadJournalEntryDataFromDB
(
1
);
if
(
$scope
.
criteriaList
.
length
>
6
)
{
$scope
.
criteriaListFirstRow
=
$scope
.
criteriaList
.
slice
(
0
,
6
);
$scope
.
criteriaListSecondRow
=
$scope
.
criteriaList
.
slice
(
6
,
$scope
.
criteriaList
.
length
);
}
else
{
$scope
.
criteriaListFirstRow
=
$scope
.
criteriaList
.
slice
(
0
,
$scope
.
criteriaList
.
length
);
}
loadJournalEntryDataFromDB
();
$
(
'.filter-button'
).
popover
(
"hide"
);
};
//去掉所有的查询条件,重新load数据
var
doDataFilterReset
=
function
()
{
$scope
.
queryParams
=
{
pageInfo
:
{},
periodStart
:
''
,
periodEnd
:
''
,
// segment3: null,
// segment3Name: null,
// segment5: null,
// segment5Name: null,
// segment6: null,
// segment6Name: null,
// description: null,
// containsAdjustmentRecord: null
pageInfo
:
{},
periodStart
:
''
,
periodEnd
:
''
,
accountCode
:
''
,
accountDescription
:
''
,
attribute
:
''
,
projectId
:
vatSessionService
.
project
.
id
};
$scope
.
queryParams
.
periodStart
=
$scope
.
startMonth
;
$scope
.
queryParams
.
periodEnd
=
$scope
.
endMonth
;
loadJournalEntryDataFromDB
(
1
);
loadJournalEntryDataFromDB
();
$
(
'.filter-button'
).
popover
(
"hide"
);
};
...
...
@@ -256,9 +150,21 @@
});
};
$scope
.
refreshGrid
=
function
()
{
$log
.
debug
(
"refreshGrid"
);
loadJournalEntryDataFromDB
();
};
(
function
initialize
()
{
$log
.
debug
(
'citPreviewTbGeneVerController.ctor()...'
);
//分页的设置
$scope
.
pagingOptions
=
{
pageIndex
:
1
,
//当前页码
totalItems
:
0
,
//总数据
pageSize
:
50
//每页多少条数据
};
$
(
'#input-invoice-period-picker'
).
focus
(
function
()
{
$
(
'.filter-button'
).
popover
(
"hide"
);
});
...
...
@@ -281,7 +187,7 @@
$scope
.
queryParams
.
periodStart
=
startMonth
;
$scope
.
queryParams
.
periodEnd
=
endMonth
;
loadJournalEntryDataFromDB
(
1
);
loadJournalEntryDataFromDB
();
});
...
...
@@ -312,7 +218,6 @@
$scope
.
downloadJE
=
downloadJE
;
initPeriods
();
initJournalEntryPagination
();
//初始化查询条件-期间范围
$scope
.
queryParams
.
periodStart
=
vatSessionService
.
year
*
100
+
vatSessionService
.
month
;
$scope
.
queryParams
.
periodEnd
=
vatSessionService
.
year
*
100
+
vatSessionService
.
month
;
...
...
@@ -322,7 +227,7 @@
}
else
{
$
(
'.periodInput'
)[
0
].
style
.
left
=
"150px"
;
}
loadJournalEntryDataFromDB
(
1
);
loadJournalEntryDataFromDB
();
})();
}
]);
...
...
atms-web/src/main/webapp/app/cit/preview/cit-preview-tb-mapping-ver/cit-preview-tb-mapping-ver.html
View file @
e8f3ea5a
...
...
@@ -43,11 +43,11 @@
<div
class=
"inputInvoiceGrid"
ui-grid=
"gridOptions"
>
<div
class=
"watermark"
ng-show=
"!gridOptions.data.length"
><span
translate=
"NoDataAvailable"
></span></div>
</div>
<div
class=
"pagination-container"
>
<span>
本页{{curPageItemCount}}条记录,共{{queryJournalEntryResult.pageInfo.total}}条记录
</span>
<div
id=
"totalInvoicePage"
class=
"common-pagination"
style=
"display:none;"
>
</div>
</div>
</div>
<div
class=
"page-footer"
>
<ack-pagination
page-options=
"pagingOptions"
refresh-table=
"refreshGrid()"
></ack-pagination>
</div>
</div>
atms-web/src/main/webapp/app/cit/preview/cit-preview-tb-mapping-ver/cit-preview-tb-mapping-ver.less
View file @
e8f3ea5a
...
...
@@ -79,7 +79,6 @@
/*Filter Criteria tags:*/
/*******************************************/
.main-area {
height: 100%;
margin: 0 20px;
.watermark {
...
...
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