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
4e0d862b
Commit
4e0d862b
authored
Mar 21, 2019
by
zhkwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CIT--fixbug
parent
88d15195
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
29 additions
and
22 deletions
+29
-22
POIUtil.java
atms-api/src/main/java/pwc/taxtech/atms/common/POIUtil.java
+3
-0
TemplateController.java
.../java/pwc/taxtech/atms/controller/TemplateController.java
+3
-0
MenuServiceImpl.java
...n/java/pwc/taxtech/atms/service/impl/MenuServiceImpl.java
+1
-0
TemplateGroupServiceImpl.java
...c/taxtech/atms/service/impl/TemplateGroupServiceImpl.java
+3
-0
cit-import-asset-list.ctrl.js
...mport/cit-import-asset-list/cit-import-asset-list.ctrl.js
+15
-19
import-cit-journal-adjust.ctrl.js
...port-cit-journal-adjust/import-cit-journal-adjust.ctrl.js
+4
-3
No files found.
atms-api/src/main/java/pwc/taxtech/atms/common/POIUtil.java
View file @
4e0d862b
...
@@ -42,6 +42,9 @@ public class POIUtil {
...
@@ -42,6 +42,9 @@ public class POIUtil {
}
}
Row
targetRow
=
targetSheet
.
createRow
(
r
);
Row
targetRow
=
targetSheet
.
createRow
(
r
);
for
(
int
c
=
row
.
getFirstCellNum
();
c
<=
row
.
getLastCellNum
();
c
++)
{
for
(
int
c
=
row
.
getFirstCellNum
();
c
<=
row
.
getLastCellNum
();
c
++)
{
if
(
c
<
0
){
continue
;
}
Cell
cell
=
row
.
getCell
(
c
);
Cell
cell
=
row
.
getCell
(
c
);
if
(
null
==
cell
)
{
if
(
null
==
cell
)
{
continue
;
continue
;
...
...
atms-api/src/main/java/pwc/taxtech/atms/controller/TemplateController.java
View file @
4e0d862b
...
@@ -91,6 +91,9 @@ public class TemplateController extends BaseController {
...
@@ -91,6 +91,9 @@ public class TemplateController extends BaseController {
for
(
int
r
=
sheet
.
getFirstRowNum
();
r
<=
sheet
.
getLastRowNum
();
r
++)
{
for
(
int
r
=
sheet
.
getFirstRowNum
();
r
<=
sheet
.
getLastRowNum
();
r
++)
{
Row
row
=
sheet
.
getRow
(
r
);
Row
row
=
sheet
.
getRow
(
r
);
for
(
int
c
=
row
.
getFirstCellNum
();
c
<=
row
.
getLastCellNum
();
c
++)
{
for
(
int
c
=
row
.
getFirstCellNum
();
c
<=
row
.
getLastCellNum
();
c
++)
{
if
(
c
<
0
){
continue
;
}
Cell
cell
=
row
.
getCell
(
c
);
Cell
cell
=
row
.
getCell
(
c
);
if
(
cell
!=
null
&&
!
cell
.
getCellStyle
().
getLocked
())
{
if
(
cell
!=
null
&&
!
cell
.
getCellStyle
().
getLocked
())
{
cell
.
setCellValue
(
StringUtils
.
EMPTY
);
cell
.
setCellValue
(
StringUtils
.
EMPTY
);
...
...
atms-api/src/main/java/pwc/taxtech/atms/service/impl/MenuServiceImpl.java
View file @
4e0d862b
...
@@ -154,6 +154,7 @@ public class MenuServiceImpl {
...
@@ -154,6 +154,7 @@ public class MenuServiceImpl {
menuIds
.
add
(
"a9b1cd87-89ef-4dae-b798-b19e9bbe0828"
);
menuIds
.
add
(
"a9b1cd87-89ef-4dae-b798-b19e9bbe0828"
);
menuIds
.
add
(
"a9b1cd87-89ef-4dae-b798-b19e9bbe0829"
);
menuIds
.
add
(
"a9b1cd87-89ef-4dae-b798-b19e9bbe0829"
);
menuIds
.
add
(
"a9b1cd87-89ef-4dae-b798-b19e9bbe0830"
);
menuIds
.
add
(
"a9b1cd87-89ef-4dae-b798-b19e9bbe0830"
);
// menuIds.add("a9b1cd87-89ef-4dae-b798-b19e9bbe0831");
menuIds
.
add
(
"b8c74ee9-e5d7-467b-8565-e77efe6a499f"
);
menuIds
.
add
(
"b8c74ee9-e5d7-467b-8565-e77efe6a499f"
);
}
else
if
(
moduleId
==
4
){
}
else
if
(
moduleId
==
4
){
// 这里的权限之后需要在数据库中加上对应的权限数据
// 这里的权限之后需要在数据库中加上对应的权限数据
...
...
atms-api/src/main/java/pwc/taxtech/atms/service/impl/TemplateGroupServiceImpl.java
View file @
4e0d862b
...
@@ -406,6 +406,9 @@ public class TemplateGroupServiceImpl extends AbstractService {
...
@@ -406,6 +406,9 @@ public class TemplateGroupServiceImpl extends AbstractService {
for
(
int
r
=
sheet
.
getFirstRowNum
();
r
<=
sheet
.
getLastRowNum
();
r
++)
{
for
(
int
r
=
sheet
.
getFirstRowNum
();
r
<=
sheet
.
getLastRowNum
();
r
++)
{
Row
row
=
sheet
.
getRow
(
r
);
Row
row
=
sheet
.
getRow
(
r
);
for
(
int
c
=
row
.
getFirstCellNum
();
c
<=
row
.
getLastCellNum
();
c
++)
{
for
(
int
c
=
row
.
getFirstCellNum
();
c
<=
row
.
getLastCellNum
();
c
++)
{
if
(
c
<
0
){
continue
;
}
Cell
cell
=
row
.
getCell
(
c
);
Cell
cell
=
row
.
getCell
(
c
);
if
(
cell
==
null
)
{
if
(
cell
==
null
)
{
continue
;
//todo cell == null 如何处理
continue
;
//todo cell == null 如何处理
...
...
atms-web/src/main/webapp/app/cit/import/cit-import-asset-list/cit-import-asset-list.ctrl.js
View file @
4e0d862b
...
@@ -276,7 +276,7 @@
...
@@ -276,7 +276,7 @@
// }
// }
// });
// });
$scope
.
assetsResultData
=
data
;
$scope
.
assetsResultData
=
data
;
// $scope.TotalCount = data.length
;
$scope
.
TotalCount
=
data
.
total
;
// $scope.TotalAccountAcquisitionValue = PWC.round($scope.TotalAccountAcquisitionValue, 2);
// $scope.TotalAccountAcquisitionValue = PWC.round($scope.TotalAccountAcquisitionValue, 2);
// $scope.TotalAccountYearDepreciationAmount = PWC.round($scope.TotalAccountYearDepreciationAmount, 2);
// $scope.TotalAccountYearDepreciationAmount = PWC.round($scope.TotalAccountYearDepreciationAmount, 2);
// $scope.TotalTaxCurrentYearDepreciationAmount = PWC.round($scope.TotalTaxCurrentYearDepreciationAmount, 2);
// $scope.TotalTaxCurrentYearDepreciationAmount = PWC.round($scope.TotalTaxCurrentYearDepreciationAmount, 2);
...
@@ -286,7 +286,6 @@
...
@@ -286,7 +286,6 @@
$scope
.
TotalTaxCurrentYearDepreciationAmount
=
PWC
.
round
(
data
[
0
].
totalTaxCurrentYearDepreciationAmount
,
2
);
$scope
.
TotalTaxCurrentYearDepreciationAmount
=
PWC
.
round
(
data
[
0
].
totalTaxCurrentYearDepreciationAmount
,
2
);
$scope
.
TotalYearDifferenceAmount
=
PWC
.
round
(
data
[
0
].
totalYearDifferenceAmount
,
2
);
$scope
.
TotalYearDifferenceAmount
=
PWC
.
round
(
data
[
0
].
totalYearDifferenceAmount
,
2
);
}
}
$scope
.
totalItemsTemp
=
assetListData
.
data
.
total
;
$scope
.
pagingOptions
.
totalItems
=
assetListData
.
data
.
total
;
$scope
.
pagingOptions
.
totalItems
=
assetListData
.
data
.
total
;
});
});
}
}
...
@@ -979,19 +978,13 @@
...
@@ -979,19 +978,13 @@
//开始
//开始
(
function
initialize
()
{
(
function
initialize
()
{
$scope
.
totalItemsTemp
=
0
;
//分页的设置
//分页的设置
debugger
;
debugger
;
//分页的设置
$scope
.
pagingOptions
=
{
$scope
.
pagingOptions
=
{
pageIndex
:
1
,
//当前页码
pageIndex
:
1
,
//当前页码
pageSize
:
constant
.
page
.
pageSizeArrary
[
3
],
//每页多少条数据
totalItems
:
0
,
//总数据
totalItems
:
0
,
//总数据
totalPages
:
0
,
//总页数
pageSize
:
100
,
//每页多少条数据
pageSizeString
:
constant
.
page
.
pageSizeArrary
[
3
].
toString
(),
firstPage
:
'<<'
,
//$translate.instant('PagingFirstPage'),
previousPage
:
'<'
,
//$translate.instant('PagingPreviousPage'),
nextPage
:
'>'
,
// $translate.instant('PagingNextPage'),
lastPage
:
'>>'
//$translate.instant('PagingLastPage'),
};
};
/**************************************** function start*************************************************/
/**************************************** function start*************************************************/
$scope
.
displayType
=
2
;
$scope
.
displayType
=
2
;
...
@@ -1002,15 +995,18 @@
...
@@ -1002,15 +995,18 @@
$scope
.
initIncomeInvoiceTotalColumnsIndex
=
[];
$scope
.
initIncomeInvoiceTotalColumnsIndex
=
[];
$scope
.
changeSheet
=
changeSheet
;
$scope
.
changeSheet
=
changeSheet
;
debugger
;
debugger
;
initColumns
();
function
init
(){
initDxGrid
();
initAssetResultDxGrid
();
initColumns
();
getAssetResultList
(
1
);
initDxGrid
();
debugger
;
initAssetResultDxGrid
();
getGroupList
();
getAssetResultList
(
1
);
getGroupDetailList
();
debugger
;
getUserPermission
();
getGroupList
();
$scope
.
pagingOptions
.
totalItems
=
$scope
.
totalItemsTemp
;
getGroupDetailList
();
getUserPermission
();
}
init
();
// $scope.$watch('fileNameWrapper', function (newValue, oldValue) {
// $scope.$watch('fileNameWrapper', function (newValue, oldValue) {
// if (newValue != null && newValue !== oldValue) {
// if (newValue != null && newValue !== oldValue) {
// //设置上传文件名
// //设置上传文件名
...
...
atms-web/src/main/webapp/app/common/controls/import/import-cit-journal-adjust/import-cit-journal-adjust.ctrl.js
View file @
4e0d862b
...
@@ -171,11 +171,12 @@
...
@@ -171,11 +171,12 @@
},
},
__RequestVerificationToken
:
token
,
__RequestVerificationToken
:
token
,
withCredentials
:
true
withCredentials
:
true
}).
then
(
function
(
resp
)
{
}).
then
(
function
(
data
)
{
var
resp
=
data
.
data
;
debugger
;
debugger
;
$
(
'#busy-indicator-container'
).
hide
();
$
(
'#busy-indicator-container'
).
hide
();
deferred
.
resolve
();
deferred
.
resolve
();
if
(
resp
.
result
||
resp
.
data
)
{
if
(
resp
.
result
)
{
debugger
;
debugger
;
logDto
.
UpdateState
=
$translate
.
instant
(
'ImportSuccess'
);
logDto
.
UpdateState
=
$translate
.
instant
(
'ImportSuccess'
);
vatOperationLogService
.
addOperationLog
(
logDto
);
vatOperationLogService
.
addOperationLog
(
logDto
);
...
@@ -183,7 +184,7 @@
...
@@ -183,7 +184,7 @@
}
else
{
}
else
{
debugger
;
debugger
;
if
(
resp
.
resultMsg
&&
resp
.
resultMsg
.
length
>
0
)
{
if
(
resp
.
resultMsg
&&
resp
.
resultMsg
.
length
>
0
)
{
SweetAlert
.
warning
(
$translate
.
instant
(
resp
.
resultMsg
)
);
SweetAlert
.
warning
(
resp
.
resultMsg
);
}
else
{
}
else
{
SweetAlert
.
error
(
$translate
.
instant
(
'ImportFailed'
));
SweetAlert
.
error
(
$translate
.
instant
(
'ImportFailed'
));
}
}
...
...
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