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
3fcc0e38
Commit
3fcc0e38
authored
Apr 10, 2019
by
chase
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merge 档案管理
parent
19fd2bbf
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
63 additions
and
21 deletions
+63
-21
OperationLogTaxDocController.java
...taxtech/atms/controller/OperationLogTaxDocController.java
+4
-10
TaxDocumentServiceImpl.java
...pwc/taxtech/atms/service/impl/TaxDocumentServiceImpl.java
+0
-0
app-usr-operate-log.ctrl.js
...framework/app-usr-operate-log/app-usr-operate-log.ctrl.js
+15
-9
tax-document-list.ctrl.js
...ocumentManage/tax-document-list/tax-document-list.ctrl.js
+44
-2
No files found.
atms-api/src/main/java/pwc/taxtech/atms/controller/OperationLogTaxDocController.java
View file @
3fcc0e38
...
@@ -71,28 +71,22 @@ public class OperationLogTaxDocController {
...
@@ -71,28 +71,22 @@ public class OperationLogTaxDocController {
@RequestMapping
(
"exportExcel"
)
@RequestMapping
(
"exportExcel"
)
@ResponseBody
@ResponseBody
// public void exportExcelFile(HttpServletResponse response, @RequestBody OperationLogTaxDocument operationLogTaxDocument) {
public
void
exportExcelFile
(
HttpServletResponse
response
,
@RequestBody
OperationLogTaxDocument
operationLogTaxDocument
)
{
public
void
exportExcelFile
(
HttpServletResponse
response
)
{
try
{
try
{
Map
<
String
,
String
>
headers
=
new
LinkedHashMap
<>();
Map
<
String
,
String
>
headers
=
new
LinkedHashMap
<>();
headers
.
put
(
"id"
,
"id"
);
headers
.
put
(
"id"
,
"id"
);
// headers.put("operation_content", "操作内容");
// headers.put("module_name", "模块名称");
// headers.put("operation_object", "操作对象");
headers
.
put
(
"operation_action"
,
"操作action"
);
headers
.
put
(
"operation_action"
,
"操作action"
);
// headers.put("original_state", "原始状态");
// headers.put("update_state", "更新状态");
headers
.
put
(
"update_state"
,
"操作内容"
);
headers
.
put
(
"update_state"
,
"操作内容"
);
headers
.
put
(
"operation_user"
,
"操作者"
);
headers
.
put
(
"operation_user"
,
"操作者"
);
headers
.
put
(
"ip"
,
"操作ip"
);
headers
.
put
(
"ip"
,
"操作ip"
);
headers
.
put
(
"comment"
,
"内容"
);
headers
.
put
(
"comment"
,
"内容"
);
headers
.
put
(
"create_time"
,
"创建时间"
);
headers
.
put
(
"create_time"
,
"创建时间"
);
List
<
OperationLogTaxDocument
>
TaxDocuments
=
operationLogTaxDocService
.
selectTaxDocumentList
();
List
<
String
>
ids
=
operationLogTaxDocument
.
getIds
()
==
null
?
Lists
.
newArrayList
()
:
operationLogTaxDocument
.
getIds
();
// List<String> ids = operationLogTaxDocument.getIds() == null ? Lists.newArrayList() : operationLogTaxDocument.getIds(
);
List
<
OperationLogTaxDocument
>
taxDocuments
=
operationLogTaxDocService
.
selectListForLog
(
ids
);
response
.
setContentType
(
"multipart/form-data"
);
response
.
setContentType
(
"multipart/form-data"
);
response
.
setHeader
(
"Content-Disposition"
,
"attachment;fileName="
+
new
String
(
"档案列表日志"
.
getBytes
(
"GB2312"
),
"ISO-8859-1"
));
response
.
setHeader
(
"Content-Disposition"
,
"attachment;fileName="
+
new
String
(
"档案列表日志"
.
getBytes
(
"GB2312"
),
"ISO-8859-1"
));
OutputStream
ouputStream
=
response
.
getOutputStream
();
OutputStream
ouputStream
=
response
.
getOutputStream
();
ExcelUtil
.
exportExcel
(
headers
,
T
axDocuments
,
ouputStream
);
ExcelUtil
.
exportExcel
(
headers
,
t
axDocuments
,
ouputStream
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
...
...
atms-api/src/main/java/pwc/taxtech/atms/service/impl/TaxDocumentServiceImpl.java
View file @
3fcc0e38
This diff is collapsed.
Click to expand it.
atms-web/src/main/webapp/app/framework/app-usr-operate-log/app-usr-operate-log.ctrl.js
View file @
3fcc0e38
...
@@ -29,8 +29,8 @@ frameworkModule.controller('appUsrOperateLogController',
...
@@ -29,8 +29,8 @@ frameworkModule.controller('appUsrOperateLogController',
SweetAlert
.
warning
(
"没有数据可以下载"
);
SweetAlert
.
warning
(
"没有数据可以下载"
);
return
;
return
;
}
}
$scope
.
thisModuleId
=
[];
//清空查询id
$scope
.
dataGridUpdate
(
data
);
$scope
.
dataGridUpdate
(
data
);
$scope
.
thisModuleId
=
[];
//清空查询id
})
})
};
};
// $scope.sniffHelpPopRadio = function(){
// $scope.sniffHelpPopRadio = function(){
...
@@ -206,16 +206,22 @@ frameworkModule.directive('usrLogExportPlugin',function(){
...
@@ -206,16 +206,22 @@ frameworkModule.directive('usrLogExportPlugin',function(){
function
(
$scope
,
SweetAlert
,
$translate
,
usrOperateLogService
,
$q
,
$log
){
function
(
$scope
,
SweetAlert
,
$translate
,
usrOperateLogService
,
$q
,
$log
){
$scope
.
exportTableData
=
function
()
$scope
.
exportTableData
=
function
()
{
{
var
checkedItems
=
$
(
".log-export-checked-item"
);
//
var checkedItems = $(".log-export-checked-item");
var
ids
=
[];
var
ids
=
[];
if
(
checkedItems
.
length
)
/*
if(checkedItems.length)
checkedItems.find("span[data-name='logCheckedItem']")
checkedItems.find("span[data-name='logCheckedItem']")
.
each
(
function
(
index
,
checkedItem
){
.each(function(index,checkedItem){
var
idLike
=
checkedItem
.
getAttribute
(
'data-id'
);
var idLike = checkedItem.getAttribute('data-id');
if
(
idLike
||
idLike
==
0
){
if(idLike || idLike == 0){
ids
.
push
(
idLike
);
ids.push(idLike);
}
}
});
});*/
var
datas
=
$scope
.
localData
;
for
(
var
i
=
0
;
i
<
datas
.
length
;
i
++
){
if
(
datas
[
i
].
id
){
ids
.
push
(
datas
[
i
].
id
);
}
}
usrOperateLogService
[
$scope
.
thisModuleName
+
"Export"
]({
usrOperateLogService
[
$scope
.
thisModuleName
+
"Export"
]({
"ids"
:
ids
"ids"
:
ids
}).
then
(
function
(
data
,
status
,
headers
)
{
}).
then
(
function
(
data
,
status
,
headers
)
{
...
...
atms-web/src/main/webapp/app/taxDocumentManage/tax-document-list/tax-document-list.ctrl.js
View file @
3fcc0e38
...
@@ -18,7 +18,7 @@ taxDocumentManageModule.controller('taxDocumentListController',
...
@@ -18,7 +18,7 @@ taxDocumentManageModule.controller('taxDocumentListController',
};
};
$scope
.
localData
=
null
;
$scope
.
localData
=
null
;
$scope
.
loadMainData
=
function
()
{
$scope
.
loadMainData
=
function
()
{
checkReminder
();
$scope
.
queryFieldModel
.
currentPage
=
$scope
.
pagingOptions
.
pageIndex
;
$scope
.
queryFieldModel
.
currentPage
=
$scope
.
pagingOptions
.
pageIndex
;
$scope
.
queryFieldModel
.
pageSize
=
$scope
.
pagingOptions
.
pageSize
;
$scope
.
queryFieldModel
.
pageSize
=
$scope
.
pagingOptions
.
pageSize
;
...
@@ -51,6 +51,36 @@ taxDocumentManageModule.controller('taxDocumentListController',
...
@@ -51,6 +51,36 @@ taxDocumentManageModule.controller('taxDocumentListController',
})
})
};
};
function
checkReminder
(){
var
items
=
$scope
.
queryFieldModel
;
var
message
=
""
;
if
(
!
PWC
.
isNullOrEmpty
(
items
.
fileBeginTime
)
&&
!
PWC
.
isNullOrEmpty
(
items
.
fileEndTTime
)
&&
items
.
fileBeginTime
>
items
.
fileEndTTime
)
{
message
+=
$translate
.
instant
(
'AvailabilityDate'
)
+
","
;
}
if
(
!
PWC
.
isNullOrEmpty
(
items
.
ownBeginTime
)
&&
!
PWC
.
isNullOrEmpty
(
items
.
ownEndTime
)
&&
items
.
ownBeginTime
>
items
.
ownEndTime
)
{
message
+=
$translate
.
instant
(
'Duration'
)
+
","
;
}
if
(
!
PWC
.
isNullOrEmpty
(
items
.
effectiveBeginTime
)
&&
!
PWC
.
isNullOrEmpty
(
items
.
effectiveEndTime
)
&&
items
.
effectiveBeginTime
>
items
.
effectiveEndTime
)
{
message
+=
$translate
.
instant
(
'DueDate'
)
+
","
;
}
if
(
!
PWC
.
isNullOrEmpty
(
items
.
uploadBeginTime
)
&&
!
PWC
.
isNullOrEmpty
(
items
.
uploadEndTime
)
&&
items
.
uploadBeginTime
>
items
.
uploadEndTime
)
{
message
+=
$translate
.
instant
(
'UploadDate'
)
+
","
;
}
if
(
message
){
message
=
(
message
.
substring
(
message
.
length
-
1
)
==
','
)
?
message
.
substring
(
0
,
message
.
length
-
1
)
:
message
;
message
+=
"-"
+
$translate
.
instant
(
'DateWarningSearch'
);
window
.
swal
(
message
);
return
;
}
}
$scope
.
dataGridUpdate
=
function
(
_data
)
{
$scope
.
dataGridUpdate
=
function
(
_data
)
{
$scope
.
localData
=
_data
.
list
;
$scope
.
localData
=
_data
.
list
;
$scope
.
pagingOptions
.
pageIndex
=
_data
.
pageNo
;
$scope
.
pagingOptions
.
pageIndex
=
_data
.
pageNo
;
...
@@ -1827,7 +1857,7 @@ taxDocumentManageModule.directive('tempModule', function () {
...
@@ -1827,7 +1857,7 @@ taxDocumentManageModule.directive('tempModule', function () {
$scope
.
checkedItemIds
=
[];
$scope
.
checkedItemIds
=
[];
$scope
.
sniffCheckbox
=
function
()
{
$scope
.
sniffCheckbox
=
function
()
{
$scope
.
checkedItemIds
.
length
=
0
;
$scope
.
checkedItemIds
.
length
=
0
;
$
(
"
input[name='dataGridCheckBox
']"
).
each
(
function
(
index
,
item
)
{
$
(
"
tr td[name='logCheckedItem
']"
).
each
(
function
(
index
,
item
)
{
if
(
item
.
checked
)
{
if
(
item
.
checked
)
{
var
cellId
=
$
(
item
).
attr
(
"data-id"
);
var
cellId
=
$
(
item
).
attr
(
"data-id"
);
$scope
.
checkedItemIds
.
push
(
cellId
);
$scope
.
checkedItemIds
.
push
(
cellId
);
...
@@ -1938,6 +1968,8 @@ taxDocumentManageModule.directive('tempModule', function () {
...
@@ -1938,6 +1968,8 @@ taxDocumentManageModule.directive('tempModule', function () {
result
=
1
;
result
=
1
;
}
else
if
(
src
===
$translate
.
instant
(
'ApprovalReject'
)){
}
else
if
(
src
===
$translate
.
instant
(
'ApprovalReject'
)){
result
=
-
1
;
result
=
-
1
;
}
else
{
result
=
""
;
}
}
return
result
;
return
result
;
};
};
...
@@ -1950,6 +1982,8 @@ taxDocumentManageModule.directive('tempModule', function () {
...
@@ -1950,6 +1982,8 @@ taxDocumentManageModule.directive('tempModule', function () {
result
=
$translate
.
instant
(
'ApprovalPass'
);
result
=
$translate
.
instant
(
'ApprovalPass'
);
}
else
if
(
src
==
-
1
){
}
else
if
(
src
==
-
1
){
result
=
$translate
.
instant
(
'ApprovalReject'
);
result
=
$translate
.
instant
(
'ApprovalReject'
);
}
else
{
result
=
""
;
}
}
return
result
;
return
result
;
};
};
...
@@ -2068,7 +2102,15 @@ taxDocumentManageModule.directive('exportPlugin',function(){
...
@@ -2068,7 +2102,15 @@ taxDocumentManageModule.directive('exportPlugin',function(){
$scope
.
queryFieldModel
.
currentPage
=
$scope
.
pagingOptions
.
pageIndex
;
$scope
.
queryFieldModel
.
currentPage
=
$scope
.
pagingOptions
.
pageIndex
;
$scope
.
queryFieldModel
.
pageSize
=
$scope
.
pagingOptions
.
pageSize
;
$scope
.
queryFieldModel
.
pageSize
=
$scope
.
pagingOptions
.
pageSize
;
var
delIDs
=
[];
$
(
"input[name='dataGridCheckBox']"
).
each
(
function
(
index
,
tdCell
)
{
if
(
tdCell
.
checked
)
{
var
cellId
=
$
(
tdCell
).
attr
(
'data-id'
);
delIDs
.
push
(
cellId
);
}
});
var
params
=
angular
.
copy
(
$scope
.
queryFieldModel
);
var
params
=
angular
.
copy
(
$scope
.
queryFieldModel
);
params
.
ids
=
delIDs
;
params
.
fileBeginTime
=
getQueryDate
(
params
.
fileBeginTime
,
"-"
);
params
.
fileBeginTime
=
getQueryDate
(
params
.
fileBeginTime
,
"-"
);
params
.
fileEndTTime
=
getQueryDate
(
params
.
fileEndTTime
,
"-"
);
params
.
fileEndTTime
=
getQueryDate
(
params
.
fileEndTTime
,
"-"
);
params
.
ownBeginTime
=
getQueryDate
(
params
.
ownBeginTime
,
"-"
);
params
.
ownBeginTime
=
getQueryDate
(
params
.
ownBeginTime
,
"-"
);
...
...
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