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
d21bfb54
Commit
d21bfb54
authored
Mar 22, 2019
by
chase
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merge 档案管理
parent
376af30c
Show whitespace changes
Inline
Side-by-side
Showing
31 changed files
with
706 additions
and
376 deletions
+706
-376
FileTypesController.java
...java/pwc/taxtech/atms/controller/FileTypesController.java
+1
-0
TaxDocumentController.java
...va/pwc/taxtech/atms/controller/TaxDocumentController.java
+3
-2
CitTrialBalanceExportDto.java
...n/java/pwc/taxtech/atms/dto/CitTrialBalanceExportDto.java
+2
-1
JournalMergeExportDto.java
...main/java/pwc/taxtech/atms/dto/JournalMergeExportDto.java
+2
-1
OrgBasicDto.java
...n/java/pwc/taxtech/atms/dto/organization/OrgBasicDto.java
+1
-1
OrgInfoDto.java
...in/java/pwc/taxtech/atms/dto/organization/OrgInfoDto.java
+1
-1
CitEAMAssetsDisposalExport.java
...tech/atms/dto/previewData/CitEAMAssetsDisposalExport.java
+1
-3
InputInvoiceDetailExportDto.java
.../taxtech/atms/dto/vatdto/InputInvoiceDetailExportDto.java
+1
-1
InputInvoiceExportDto.java
...va/pwc/taxtech/atms/dto/vatdto/InputInvoiceExportDto.java
+1
-1
OutputVATInvoiceInfoDto.java
.../pwc/taxtech/atms/dto/vatdto/OutputVATInvoiceInfoDto.java
+1
-2
BalanceSheetExportDto.java
...pwc/taxtech/atms/dto/vatdto/dd/BalanceSheetExportDto.java
+2
-4
JournalEntryExportDto.java
...pwc/taxtech/atms/dto/vatdto/dd/JournalEntryExportDto.java
+1
-3
ProfitLossStatementExportDto.java
...tech/atms/dto/vatdto/dd/ProfitLossStatementExportDto.java
+2
-3
TrialBalanceExportDto.java
...pwc/taxtech/atms/dto/vatdto/dd/TrialBalanceExportDto.java
+2
-1
ExcelUtil.java
.../src/main/java/pwc/taxtech/atms/thirdparty/ExcelUtil.java
+13
-29
SUM2.java
.../taxtech/atms/vat/service/impl/report/functions/SUM2.java
+0
-1
pom.xml
atms-dao/pom.xml
+5
-0
ExcelCell.java
atms-dao/src/main/java/pwc/taxtech/atms/anno/ExcelCell.java
+3
-2
FileTypes.java
...-dao/src/main/java/pwc/taxtech/atms/entity/FileTypes.java
+11
-0
OperationLogFileType.java
...in/java/pwc/taxtech/atms/entity/OperationLogFileType.java
+9
-0
OperationLogTaxDocument.java
...java/pwc/taxtech/atms/entity/OperationLogTaxDocument.java
+9
-0
TaxDocument.java
...ao/src/main/java/pwc/taxtech/atms/entity/TaxDocument.java
+115
-206
doc-manage.ctrl.js
...app/app/admin/infrastructure/docManage/doc-manage.ctrl.js
+124
-0
doc-manage.html
...webapp/app/admin/infrastructure/docManage/doc-manage.html
+11
-5
doc-manage.svc.js
...bapp/app/admin/infrastructure/docManage/doc-manage.svc.js
+18
-0
app-usr-operate-log.ctrl.js
...framework/app-usr-operate-log/app-usr-operate-log.ctrl.js
+132
-10
app-usr-operate-log.html
...pp/framework/app-usr-operate-log/app-usr-operate-log.html
+18
-1
app-usr-operate-log.svc.js
.../framework/app-usr-operate-log/app-usr-operate-log.svc.js
+36
-4
tax-document-list.ctrl.js
...ocumentManage/tax-document-list/tax-document-list.ctrl.js
+83
-32
tax-document-list.html
...axDocumentManage/tax-document-list/tax-document-list.html
+74
-59
tax-document-list.svc.js
...DocumentManage/tax-document-list/tax-document-list.svc.js
+24
-3
No files found.
atms-api/src/main/java/pwc/taxtech/atms/controller/FileTypesController.java
View file @
d21bfb54
...
...
@@ -96,6 +96,7 @@ public class FileTypesController {
headers
.
put
(
"id"
,
"id"
);
headers
.
put
(
"file_attr"
,
"档案属性"
);
headers
.
put
(
"file_type"
,
"档案类型"
);
headers
.
put
(
"file_type"
,
"必填字段"
);
headers
.
put
(
"description"
,
"说明"
);
headers
.
put
(
"creator"
,
"办事人"
);
headers
.
put
(
"create_time"
,
"创建时间"
);
...
...
atms-api/src/main/java/pwc/taxtech/atms/controller/TaxDocumentController.java
View file @
d21bfb54
...
...
@@ -96,7 +96,7 @@ public class TaxDocumentController {
headers
.
put
(
"business_line"
,
"业务线"
);
headers
.
put
(
"company_name"
,
"公司名称"
);
headers
.
put
(
"tax_type"
,
"税种"
);
headers
.
put
(
"file_time"
,
"文件日期"
);
headers
.
put
(
"file_time"
,
"文件
生效
日期"
);
headers
.
put
(
"effective_time"
,
"有效日期"
);
headers
.
put
(
"creator"
,
"创建人"
);
headers
.
put
(
"create_time"
,
"创建时间"
);
...
...
@@ -105,9 +105,10 @@ public class TaxDocumentController {
headers
.
put
(
"keeper"
,
"保管人"
);
headers
.
put
(
"remark"
,
"档案备注"
);
headers
.
put
(
"file_position_url"
,
"文件存储的位置"
);
headers
.
put
(
"own_time"
,
"所属期间"
);
List
<
TaxDocument
>
TaxDocument
=
taxDocumentService
.
selectTaxDocumentList
(
taxDocumentDto
);
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
(
"
taxDocument.xlsx
"
.
getBytes
(
"GB2312"
),
"ISO-8859-1"
));
OutputStream
ouputStream
=
response
.
getOutputStream
();
ExcelUtil
.
exportExcel
(
headers
,
TaxDocument
,
ouputStream
);
}
catch
(
Exception
e
)
{
...
...
atms-api/src/main/java/pwc/taxtech/atms/dto/CitTrialBalanceExportDto.java
View file @
d21bfb54
package
pwc
.
taxtech
.
atms
.
dto
;
import
pwc.taxtech.atms.thirdparty.ExcelCell
;
import
pwc.taxtech.atms.anno.ExcelCell
;
import
java.math.BigDecimal
;
import
java.util.Date
;
...
...
atms-api/src/main/java/pwc/taxtech/atms/dto/JournalMergeExportDto.java
View file @
d21bfb54
package
pwc
.
taxtech
.
atms
.
dto
;
import
pwc.taxtech.atms.thirdparty.ExcelCell
;
import
pwc.taxtech.atms.anno.ExcelCell
;
import
java.math.BigDecimal
;
import
java.util.Date
;
...
...
atms-api/src/main/java/pwc/taxtech/atms/dto/organization/OrgBasicDto.java
View file @
d21bfb54
package
pwc
.
taxtech
.
atms
.
dto
.
organization
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
import
pwc.taxtech.atms.
thirdparty
.ExcelCell
;
import
pwc.taxtech.atms.
anno
.ExcelCell
;
public
class
OrgBasicDto
{
//@JsonProperty("ID")
...
...
atms-api/src/main/java/pwc/taxtech/atms/dto/organization/OrgInfoDto.java
View file @
d21bfb54
package
pwc
.
taxtech
.
atms
.
dto
.
organization
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
import
pwc.taxtech.atms.
thirdparty
.ExcelCell
;
import
pwc.taxtech.atms.
anno
.ExcelCell
;
import
java.util.Date
;
...
...
atms-api/src/main/java/pwc/taxtech/atms/dto/previewData/CitEAMAssetsDisposalExport.java
View file @
d21bfb54
package
pwc
.
taxtech
.
atms
.
dto
.
previewData
;
import
com.fasterxml.jackson.databind.annotation.JsonSerialize
;
import
pwc.taxtech.atms.
entity.BaseEntity
;
import
pwc.taxtech.atms.
anno.ExcelCell
;
import
pwc.taxtech.atms.entity.CustomDateSerializer
;
import
pwc.taxtech.atms.thirdparty.ExcelCell
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
import
java.util.Date
;
...
...
atms-api/src/main/java/pwc/taxtech/atms/dto/vatdto/InputInvoiceDetailExportDto.java
View file @
d21bfb54
package
pwc
.
taxtech
.
atms
.
dto
.
vatdto
;
import
pwc.taxtech.atms.
thirdparty
.ExcelCell
;
import
pwc.taxtech.atms.
anno
.ExcelCell
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
...
...
atms-api/src/main/java/pwc/taxtech/atms/dto/vatdto/InputInvoiceExportDto.java
View file @
d21bfb54
package
pwc
.
taxtech
.
atms
.
dto
.
vatdto
;
import
pwc.taxtech.atms.
thirdparty
.ExcelCell
;
import
pwc.taxtech.atms.
anno
.ExcelCell
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
...
...
atms-api/src/main/java/pwc/taxtech/atms/dto/vatdto/OutputVATInvoiceInfoDto.java
View file @
d21bfb54
package
pwc
.
taxtech
.
atms
.
dto
.
vatdto
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
import
pwc.taxtech.atms.constant.enums.EnumOutputInvoiceType
;
import
pwc.taxtech.atms.thirdparty.ExcelCell
;
import
pwc.taxtech.atms.anno.ExcelCell
;
import
java.math.BigDecimal
;
import
java.util.Date
;
...
...
atms-api/src/main/java/pwc/taxtech/atms/dto/vatdto/dd/BalanceSheetExportDto.java
View file @
d21bfb54
package
pwc
.
taxtech
.
atms
.
dto
.
vatdto
.
dd
;
import
com.fasterxml.jackson.databind.annotation.JsonSerialize
;
import
pwc.taxtech.atms.common.util.PwCIdSerialize
;
import
pwc.taxtech.atms.thirdparty.ExcelCell
;
import
java.io.Serializable
;
import
pwc.taxtech.atms.anno.ExcelCell
;
import
java.math.BigDecimal
;
import
java.util.Date
;
...
...
atms-api/src/main/java/pwc/taxtech/atms/dto/vatdto/dd/JournalEntryExportDto.java
View file @
d21bfb54
package
pwc
.
taxtech
.
atms
.
dto
.
vatdto
.
dd
;
import
com.fasterxml.jackson.databind.annotation.JsonSerialize
;
import
pwc.taxtech.atms.common.util.PwCIdSerialize
;
import
pwc.taxtech.atms.thirdparty.ExcelCell
;
import
pwc.taxtech.atms.anno.ExcelCell
;
import
java.math.BigDecimal
;
import
java.util.Date
;
...
...
atms-api/src/main/java/pwc/taxtech/atms/dto/vatdto/dd/ProfitLossStatementExportDto.java
View file @
d21bfb54
package
pwc
.
taxtech
.
atms
.
dto
.
vatdto
.
dd
;
import
com.fasterxml.jackson.databind.annotation.JsonSerialize
;
import
pwc.taxtech.atms.common.util.PwCIdSerialize
;
import
pwc.taxtech.atms.thirdparty.ExcelCell
;
import
pwc.taxtech.atms.anno.ExcelCell
;
import
java.math.BigDecimal
;
import
java.util.Date
;
...
...
atms-api/src/main/java/pwc/taxtech/atms/dto/vatdto/dd/TrialBalanceExportDto.java
View file @
d21bfb54
package
pwc
.
taxtech
.
atms
.
dto
.
vatdto
.
dd
;
import
pwc.taxtech.atms.thirdparty.ExcelCell
;
import
pwc.taxtech.atms.anno.ExcelCell
;
import
java.math.BigDecimal
;
import
java.util.Date
;
...
...
atms-api/src/main/java/pwc/taxtech/atms/thirdparty/ExcelUtil.java
View file @
d21bfb54
package
pwc
.
taxtech
.
atms
.
thirdparty
;
import
java.io.IOException
;
import
java.io.OutputStream
;
import
java.lang.reflect.Field
;
import
java.math.BigDecimal
;
import
java.text.*
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.Collection
;
import
java.util.Collections
;
import
java.util.Comparator
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.Iterator
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Set
;
import
org.apache.commons.beanutils.BeanComparator
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.collections.ComparatorUtils
;
import
org.apache.commons.collections.comparators.ComparableComparator
;
import
org.apache.commons.collections.comparators.ComparatorChain
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.poi.hssf.usermodel.HSSFCell
;
import
org.apache.poi.hssf.usermodel.HSSFDateUtil
;
import
org.apache.poi.hssf.usermodel.HSSFRichTextString
;
import
org.apache.poi.hssf.usermodel.HSSFRow
;
import
org.apache.poi.hssf.usermodel.HSSFSheet
;
import
org.apache.poi.hssf.usermodel.HSSFWorkbook
;
import
org.apache.poi.ss.usermodel.Cell
;
import
org.apache.poi.ss.usermodel.CellType
;
import
org.apache.poi.ss.usermodel.DateUtil
;
import
org.apache.poi.ss.usermodel.Row
;
import
org.apache.poi.ss.usermodel.Sheet
;
import
org.apache.poi.ss.usermodel.Workbook
;
import
org.apache.poi.hssf.usermodel.*
;
import
org.apache.poi.ss.usermodel.*
;
import
org.apache.poi.ss.util.CellReference
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
pwc.taxtech.atms.anno.ExcelCell
;
import
java.io.IOException
;
import
java.io.OutputStream
;
import
java.lang.reflect.Field
;
import
java.math.BigDecimal
;
import
java.text.DecimalFormat
;
import
java.text.MessageFormat
;
import
java.text.ParseException
;
import
java.text.SimpleDateFormat
;
import
java.util.*
;
/**
* The <code>ExcelUtil</code> 与 {@link ExcelCell}搭配使用
...
...
atms-api/src/main/java/pwc/taxtech/atms/vat/service/impl/report/functions/SUM2.java
View file @
d21bfb54
...
...
@@ -9,7 +9,6 @@ import org.apache.poi.ss.formula.functions.FreeRefFunction;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
pwc.taxtech.atms.exception.Exceptions
;
import
pwc.taxtech.atms.thirdparty.ExcelCell
;
import
java.math.BigDecimal
;
import
java.util.HashMap
;
...
...
atms-dao/pom.xml
View file @
d21bfb54
...
...
@@ -14,6 +14,11 @@
</parent>
<dependencies>
<dependency>
<groupId>
org.apache.commons
</groupId>
<artifactId>
commons-lang3
</artifactId>
<version>
3.7
</version>
</dependency>
<dependency>
<groupId>
org.mybatis
</groupId>
<artifactId>
mybatis
</artifactId>
...
...
atms-
api/src/main/java/pwc/taxtech/atms/thirdparty
/ExcelCell.java
→
atms-
dao/src/main/java/pwc/taxtech/atms/anno
/ExcelCell.java
View file @
d21bfb54
package
pwc
.
taxtech
.
atms
.
thirdparty
;
package
pwc
.
taxtech
.
atms
.
anno
;
import
org.apache.commons.lang3.StringUtils
;
import
java.lang.annotation.ElementType
;
import
java.lang.annotation.Retention
;
import
java.lang.annotation.RetentionPolicy
;
import
java.lang.annotation.Target
;
import
org.apache.commons.lang3.StringUtils
;
/**
* The <code>ExcelCell</code><br>
...
...
atms-dao/src/main/java/pwc/taxtech/atms/entity/FileTypes.java
View file @
d21bfb54
...
...
@@ -2,6 +2,7 @@ package pwc.taxtech.atms.entity;
import
com.alibaba.fastjson.JSONArray
;
import
org.springframework.util.StringUtils
;
import
pwc.taxtech.atms.anno.ExcelCell
;
import
java.io.Serializable
;
import
java.util.Date
;
...
...
@@ -24,6 +25,7 @@ public class FileTypes implements Serializable {
*
* @mbg.generated
*/
@ExcelCell
(
index
=
1
)
private
Long
id
;
/**
...
...
@@ -35,6 +37,7 @@ public class FileTypes implements Serializable {
*
* @mbg.generated
*/
@ExcelCell
(
index
=
2
)
private
String
fileAttr
;
/**
...
...
@@ -57,6 +60,7 @@ public class FileTypes implements Serializable {
*
* @mbg.generated
*/
@ExcelCell
(
index
=
3
)
private
String
fileType
;
...
...
@@ -69,6 +73,7 @@ public class FileTypes implements Serializable {
*
* @mbg.generated
*/
@ExcelCell
(
index
=
4
)
private
List
<
String
>
requiredField
;
...
...
@@ -85,6 +90,7 @@ public class FileTypes implements Serializable {
*
* @mbg.generated
*/
@ExcelCell
(
index
=
5
)
private
String
description
;
/**
...
...
@@ -105,6 +111,7 @@ public class FileTypes implements Serializable {
*
* @mbg.generated
*/
@ExcelCell
(
index
=
6
)
private
String
creator
;
/**
...
...
@@ -116,6 +123,7 @@ public class FileTypes implements Serializable {
*
* @mbg.generated
*/
@ExcelCell
(
index
=
7
)
private
Date
createTime
;
/**
...
...
@@ -127,6 +135,7 @@ public class FileTypes implements Serializable {
*
* @mbg.generated
*/
@ExcelCell
(
index
=
8
)
private
Date
updateTime
;
/**
...
...
@@ -138,6 +147,7 @@ public class FileTypes implements Serializable {
*
* @mbg.generated
*/
@ExcelCell
(
index
=
9
)
private
String
status
;
/**
...
...
@@ -149,6 +159,7 @@ public class FileTypes implements Serializable {
*
* @mbg.generated
*/
@ExcelCell
(
index
=
10
)
private
String
remarks
;
/**
...
...
atms-dao/src/main/java/pwc/taxtech/atms/entity/OperationLogFileType.java
View file @
d21bfb54
package
pwc
.
taxtech
.
atms
.
entity
;
import
pwc.taxtech.atms.anno.ExcelCell
;
import
java.io.Serializable
;
import
java.util.Date
;
import
java.util.List
;
...
...
@@ -19,6 +21,7 @@ public class OperationLogFileType implements Serializable {
*
* @mbg.generated
*/
@ExcelCell
(
index
=
1
)
private
String
id
;
/**
...
...
@@ -55,6 +58,7 @@ public class OperationLogFileType implements Serializable {
*
* @mbg.generated
*/
@ExcelCell
(
index
=
2
)
private
String
operationAction
;
/**
...
...
@@ -73,6 +77,7 @@ public class OperationLogFileType implements Serializable {
*
* @mbg.generated
*/
@ExcelCell
(
index
=
3
)
private
String
updateState
;
/**
...
...
@@ -82,6 +87,7 @@ public class OperationLogFileType implements Serializable {
*
* @mbg.generated
*/
@ExcelCell
(
index
=
4
)
private
String
operationUser
;
/**
...
...
@@ -91,6 +97,7 @@ public class OperationLogFileType implements Serializable {
*
* @mbg.generated
*/
@ExcelCell
(
index
=
5
)
private
String
ip
;
/**
...
...
@@ -100,6 +107,7 @@ public class OperationLogFileType implements Serializable {
*
* @mbg.generated
*/
@ExcelCell
(
index
=
5
)
private
String
comment
;
/**
...
...
@@ -109,6 +117,7 @@ public class OperationLogFileType implements Serializable {
*
* @mbg.generated
*/
@ExcelCell
(
index
=
6
)
private
Date
createTime
;
private
List
<
String
>
fileTypeIds
;
...
...
atms-dao/src/main/java/pwc/taxtech/atms/entity/OperationLogTaxDocument.java
View file @
d21bfb54
package
pwc
.
taxtech
.
atms
.
entity
;
import
pwc.taxtech.atms.anno.ExcelCell
;
import
java.io.Serializable
;
import
java.util.Date
;
import
java.util.List
;
...
...
@@ -19,6 +21,7 @@ public class OperationLogTaxDocument implements Serializable {
*
* @mbg.generated
*/
@ExcelCell
(
index
=
1
)
private
String
id
;
/**
...
...
@@ -55,6 +58,7 @@ public class OperationLogTaxDocument implements Serializable {
*
* @mbg.generated
*/
@ExcelCell
(
index
=
2
)
private
String
operationAction
;
/**
...
...
@@ -73,6 +77,7 @@ public class OperationLogTaxDocument implements Serializable {
*
* @mbg.generated
*/
@ExcelCell
(
index
=
3
)
private
String
updateState
;
/**
...
...
@@ -82,6 +87,7 @@ public class OperationLogTaxDocument implements Serializable {
*
* @mbg.generated
*/
@ExcelCell
(
index
=
4
)
private
String
operationUser
;
/**
...
...
@@ -91,6 +97,7 @@ public class OperationLogTaxDocument implements Serializable {
*
* @mbg.generated
*/
@ExcelCell
(
index
=
5
)
private
String
ip
;
/**
...
...
@@ -100,6 +107,7 @@ public class OperationLogTaxDocument implements Serializable {
*
* @mbg.generated
*/
@ExcelCell
(
index
=
6
)
private
String
comment
;
/**
...
...
@@ -109,6 +117,7 @@ public class OperationLogTaxDocument implements Serializable {
*
* @mbg.generated
*/
@ExcelCell
(
index
=
7
)
private
Date
createTime
;
List
<
String
>
ids
;
...
...
atms-dao/src/main/java/pwc/taxtech/atms/entity/TaxDocument.java
View file @
d21bfb54
package
pwc
.
taxtech
.
atms
.
entity
;
import
pwc.taxtech.atms.anno.ExcelCell
;
import
java.io.Serializable
;
import
java.util.Date
;
...
...
@@ -10,7 +12,7 @@ import java.util.Date;
*
* @mbg.generated do_not_delete_during_merge
*/
public
class
TaxDocument
extends
BaseEntity
implements
Serializable
{
public
class
TaxDocument
implements
Serializable
{
/**
* Database Column Remarks:
* 档案ID
...
...
@@ -20,6 +22,7 @@ public class TaxDocument extends BaseEntity implements Serializable {
*
* @mbg.generated
*/
@ExcelCell
(
index
=
1
)
private
Long
id
;
/**
...
...
@@ -31,6 +34,7 @@ public class TaxDocument extends BaseEntity implements Serializable {
*
* @mbg.generated
*/
@ExcelCell
(
index
=
2
)
private
String
fileAttr
;
/**
...
...
@@ -53,6 +57,7 @@ public class TaxDocument extends BaseEntity implements Serializable {
*
* @mbg.generated
*/
@ExcelCell
(
index
=
3
)
private
String
fileType
;
/**
...
...
@@ -64,6 +69,7 @@ public class TaxDocument extends BaseEntity implements Serializable {
*
* @mbg.generated
*/
@ExcelCell
(
index
=
4
)
private
String
fileName
;
/**
...
...
@@ -75,6 +81,7 @@ public class TaxDocument extends BaseEntity implements Serializable {
*
* @mbg.generated
*/
@ExcelCell
(
index
=
5
)
private
String
businessLine
;
/**
...
...
@@ -97,6 +104,7 @@ public class TaxDocument extends BaseEntity implements Serializable {
*
* @mbg.generated
*/
@ExcelCell
(
index
=
6
)
private
String
companyName
;
/**
...
...
@@ -108,40 +116,44 @@ public class TaxDocument extends BaseEntity implements Serializable {
*
* @mbg.generated
*/
@ExcelCell
(
index
=
7
)
private
String
taxType
;
/**
* Database Column Remarks:
*
期间
*
文件生效日期
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column tax_document.
own
_time
* This field corresponds to the database column tax_document.
file
_time
*
* @mbg.generated
*/
private
Integer
ownTime
;
@ExcelCell
(
index
=
8
)
private
Date
fileTime
;
/**
* Database Column Remarks:
*
文件生效日期
*
到期日
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column tax_document.
fil
e_time
* This field corresponds to the database column tax_document.
effectiv
e_time
*
* @mbg.generated
*/
private
Date
fileTime
;
@ExcelCell
(
index
=
9
)
private
Date
effectiveTime
;
/**
* Database Column Remarks:
*
到期日
*
所属期间
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column tax_document.
effective
_time
* This field corresponds to the database column tax_document.
own
_time
*
* @mbg.generated
*/
private
Date
effectiveTime
;
@ExcelCell
(
index
=
17
)
private
Integer
ownTime
;
/**
*
...
...
@@ -161,22 +173,20 @@ public class TaxDocument extends BaseEntity implements Serializable {
*
* @mbg.generated
*/
@ExcelCell
(
index
=
10
)
private
String
creator
;
/**
* Database Column Remarks:
* 创建时间
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column tax_document.create_time
*
* @mbg.generated
*/
@ExcelCell
(
index
=
11
)
private
Date
createTime
;
/**
* Database Column Remarks:
* 更新时间
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column tax_document.update_time
...
...
@@ -194,6 +204,7 @@ public class TaxDocument extends BaseEntity implements Serializable {
*
* @mbg.generated
*/
@ExcelCell
(
index
=
12
)
private
Date
uploadTime
;
/**
...
...
@@ -205,6 +216,7 @@ public class TaxDocument extends BaseEntity implements Serializable {
*
* @mbg.generated
*/
@ExcelCell
(
index
=
13
)
private
String
storageArea
;
/**
...
...
@@ -225,6 +237,7 @@ public class TaxDocument extends BaseEntity implements Serializable {
*
* @mbg.generated
*/
@ExcelCell
(
index
=
14
)
private
String
keeper
;
/**
...
...
@@ -247,6 +260,7 @@ public class TaxDocument extends BaseEntity implements Serializable {
*
* @mbg.generated
*/
@ExcelCell
(
index
=
15
)
private
String
remark
;
/**
...
...
@@ -269,51 +283,53 @@ public class TaxDocument extends BaseEntity implements Serializable {
*
* @mbg.generated
*/
@ExcelCell
(
index
=
16
)
private
String
filePositionUrl
;
/**
* Database Column Remarks:
*
按年份分区的冗余字段
*
上传文件id
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column tax_document.
year_redundancy
* This field corresponds to the database column tax_document.
file_upload_id
*
* @mbg.generated
*/
private
Integer
yearRedundancy
;
private
String
fileUploadId
;
/**
* Database Column Remarks:
*
审核状态(暂时无用);0:未审核;1:审核通过;-1:审核不通过;
*
按年份分区的冗余字段
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column tax_document.
audit_status
* This field corresponds to the database column tax_document.
year_redundancy
*
* @mbg.generated
*/
private
Integer
auditStatus
;
private
Integer
yearRedundancy
;
/**
* Database Column Remarks:
*
是否启用,T:启用;F:不启用;用于逻辑删除
*
审核状态
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column tax_document.
enable
* This field corresponds to the database column tax_document.
audit_status
*
* @mbg.generated
*/
private
String
enable
;
private
Integer
auditStatus
;
/**
* Database Column Remarks:
* 文件上传表id
*
* 是否可用
* T:可用
* F:不可用
* This field was generated by MyBatis Generator.
* This field corresponds to the database column tax_document.
file_upload_id
* This field corresponds to the database column tax_document.
enable
*
* @mbg.generated
*/
private
String
fileUploadId
;
private
String
enable
;
/**
* This field was generated by MyBatis Generator.
...
...
@@ -323,6 +339,46 @@ public class TaxDocument extends BaseEntity implements Serializable {
*/
private
static
final
long
serialVersionUID
=
1L
;
public
String
getEnable
()
{
return
enable
;
}
public
String
getFileUploadId
()
{
return
fileUploadId
;
}
public
void
setFileUploadId
(
String
fileUploadId
)
{
this
.
fileUploadId
=
fileUploadId
;
}
public
void
setEnable
(
String
enable
)
{
this
.
enable
=
enable
;
}
public
Integer
getAuditStatus
()
{
return
auditStatus
;
}
public
void
setAuditStatus
(
Integer
auditStatus
)
{
this
.
auditStatus
=
auditStatus
;
}
public
Integer
getOwnTime
()
{
return
ownTime
;
}
public
void
setOwnTime
(
Integer
ownTime
)
{
this
.
ownTime
=
ownTime
;
}
public
String
getPhysicalIndexNumber
()
{
return
physicalIndexNumber
;
}
public
void
setPhysicalIndexNumber
(
String
physicalIndexNumber
)
{
this
.
physicalIndexNumber
=
physicalIndexNumber
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column tax_document.id
...
...
@@ -359,6 +415,14 @@ public class TaxDocument extends BaseEntity implements Serializable {
return
fileAttr
;
}
public
String
getFileOriginalName
()
{
return
fileOriginalName
;
}
public
void
setFileOriginalName
(
String
fileOriginalName
)
{
this
.
fileOriginalName
=
fileOriginalName
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column tax_document.file_attr
...
...
@@ -488,7 +552,7 @@ public class TaxDocument extends BaseEntity implements Serializable {
* @mbg.generated
*/
public
void
setCompanyId
(
String
companyId
)
{
this
.
companyId
=
companyId
==
null
?
null
:
companyId
.
trim
()
;
this
.
companyId
=
companyId
;
}
/**
...
...
@@ -539,30 +603,6 @@ public class TaxDocument extends BaseEntity implements Serializable {
this
.
taxType
=
taxType
==
null
?
null
:
taxType
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column tax_document.own_time
*
* @return the value of tax_document.own_time
*
* @mbg.generated
*/
public
Integer
getOwnTime
()
{
return
ownTime
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column tax_document.own_time
*
* @param ownTime the value for tax_document.own_time
*
* @mbg.generated
*/
public
void
setOwnTime
(
Integer
ownTime
)
{
this
.
ownTime
=
ownTime
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column tax_document.file_time
...
...
@@ -632,7 +672,7 @@ public class TaxDocument extends BaseEntity implements Serializable {
* @mbg.generated
*/
public
void
setCreatorId
(
String
creatorId
)
{
this
.
creatorId
=
creatorId
==
null
?
null
:
creatorId
.
trim
()
;
this
.
creatorId
=
creatorId
;
}
/**
...
...
@@ -776,7 +816,7 @@ public class TaxDocument extends BaseEntity implements Serializable {
* @mbg.generated
*/
public
void
setKeeperId
(
String
keeperId
)
{
this
.
keeperId
=
keeperId
==
null
?
null
:
keeperId
.
trim
()
;
this
.
keeperId
=
keeperId
;
}
/**
...
...
@@ -803,30 +843,6 @@ public class TaxDocument extends BaseEntity implements Serializable {
this
.
keeper
=
keeper
==
null
?
null
:
keeper
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column tax_document.physical_index_number
*
* @return the value of tax_document.physical_index_number
*
* @mbg.generated
*/
public
String
getPhysicalIndexNumber
()
{
return
physicalIndexNumber
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column tax_document.physical_index_number
*
* @param physicalIndexNumber the value for tax_document.physical_index_number
*
* @mbg.generated
*/
public
void
setPhysicalIndexNumber
(
String
physicalIndexNumber
)
{
this
.
physicalIndexNumber
=
physicalIndexNumber
==
null
?
null
:
physicalIndexNumber
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column tax_document.remark
...
...
@@ -851,30 +867,6 @@ public class TaxDocument extends BaseEntity implements Serializable {
this
.
remark
=
remark
==
null
?
null
:
remark
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column tax_document.file_original_name
*
* @return the value of tax_document.file_original_name
*
* @mbg.generated
*/
public
String
getFileOriginalName
()
{
return
fileOriginalName
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column tax_document.file_original_name
*
* @param fileOriginalName the value for tax_document.file_original_name
*
* @mbg.generated
*/
public
void
setFileOriginalName
(
String
fileOriginalName
)
{
this
.
fileOriginalName
=
fileOriginalName
==
null
?
null
:
fileOriginalName
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column tax_document.file_position_url
...
...
@@ -923,78 +915,6 @@ public class TaxDocument extends BaseEntity implements Serializable {
this
.
yearRedundancy
=
yearRedundancy
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column tax_document.audit_status
*
* @return the value of tax_document.audit_status
*
* @mbg.generated
*/
public
Integer
getAuditStatus
()
{
return
auditStatus
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column tax_document.audit_status
*
* @param auditStatus the value for tax_document.audit_status
*
* @mbg.generated
*/
public
void
setAuditStatus
(
Integer
auditStatus
)
{
this
.
auditStatus
=
auditStatus
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column tax_document.enable
*
* @return the value of tax_document.enable
*
* @mbg.generated
*/
public
String
getEnable
()
{
return
enable
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column tax_document.enable
*
* @param enable the value for tax_document.enable
*
* @mbg.generated
*/
public
void
setEnable
(
String
enable
)
{
this
.
enable
=
enable
==
null
?
null
:
enable
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column tax_document.file_upload_id
*
* @return the value of tax_document.file_upload_id
*
* @mbg.generated
*/
public
String
getFileUploadId
()
{
return
fileUploadId
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column tax_document.file_upload_id
*
* @param fileUploadId the value for tax_document.file_upload_id
*
* @mbg.generated
*/
public
void
setFileUploadId
(
String
fileUploadId
)
{
this
.
fileUploadId
=
fileUploadId
==
null
?
null
:
fileUploadId
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table tax_document
...
...
@@ -1004,38 +924,26 @@ public class TaxDocument extends BaseEntity implements Serializable {
@Override
public
String
toString
()
{
StringBuilder
sb
=
new
StringBuilder
();
sb
.
append
(
getClass
().
getSimpleName
());
sb
.
append
(
" ["
);
sb
.
append
(
"Hash = "
).
append
(
hashCode
());
sb
.
append
(
", id="
).
append
(
id
);
sb
.
append
(
", fileAttr="
).
append
(
fileAttr
);
sb
.
append
(
", fileTypeId="
).
append
(
fileTypeId
);
sb
.
append
(
", fileType="
).
append
(
fileType
);
sb
.
append
(
", fileName="
).
append
(
fileName
);
sb
.
append
(
", businessLine="
).
append
(
businessLine
);
sb
.
append
(
", companyId="
).
append
(
companyId
);
sb
.
append
(
", companyName="
).
append
(
companyName
);
sb
.
append
(
", taxType="
).
append
(
taxType
);
sb
.
append
(
", ownTime="
).
append
(
ownTime
);
sb
.
append
(
", fileTime="
).
append
(
fileTime
);
sb
.
append
(
", effectiveTime="
).
append
(
effectiveTime
);
sb
.
append
(
", creatorId="
).
append
(
creatorId
);
sb
.
append
(
", creator="
).
append
(
creator
);
sb
.
append
(
", createTime="
).
append
(
createTime
);
sb
.
append
(
", updateTime="
).
append
(
updateTime
);
sb
.
append
(
", uploadTime="
).
append
(
uploadTime
);
sb
.
append
(
", storageArea="
).
append
(
storageArea
);
sb
.
append
(
", keeperId="
).
append
(
keeperId
);
sb
.
append
(
", keeper="
).
append
(
keeper
);
sb
.
append
(
", physicalIndexNumber="
).
append
(
physicalIndexNumber
);
sb
.
append
(
", remark="
).
append
(
remark
);
sb
.
append
(
", fileOriginalName="
).
append
(
fileOriginalName
);
sb
.
append
(
", filePositionUrl="
).
append
(
filePositionUrl
);
sb
.
append
(
", yearRedundancy="
).
append
(
yearRedundancy
);
sb
.
append
(
", auditStatus="
).
append
(
auditStatus
);
sb
.
append
(
", enable="
).
append
(
enable
);
sb
.
append
(
", fileUploadId="
).
append
(
fileUploadId
);
sb
.
append
(
"]"
);
sb
.
append
(
"序号="
).
append
(
id
);
sb
.
append
(
"档案属性="
).
append
(
fileAttr
);
sb
.
append
(
"档案类型="
).
append
(
fileType
);
sb
.
append
(
"文件名称="
).
append
(
fileName
);
sb
.
append
(
"业务线="
).
append
(
businessLine
);
sb
.
append
(
"公司名称="
).
append
(
companyName
);
sb
.
append
(
"税种="
).
append
(
taxType
);
sb
.
append
(
"文件生效日期="
).
append
(
fileTime
==
null
?
null
:
fileTime
.
toLocaleString
());
sb
.
append
(
"到期日="
).
append
(
effectiveTime
==
null
?
null
:
effectiveTime
.
toLocaleString
()
);
sb
.
append
(
"所属期间="
).
append
(
ownTime
);
sb
.
append
(
"创建人="
).
append
(
creator
);
sb
.
append
(
"创建时间="
).
append
(
createTime
==
null
?
null
:
createTime
.
toLocaleString
());
sb
.
append
(
"更新时间="
).
append
(
updateTime
==
null
?
null
:
updateTime
.
toLocaleString
());
sb
.
append
(
"上传时间="
).
append
(
uploadTime
==
null
?
null
:
uploadTime
.
toLocaleString
());
sb
.
append
(
"实物存放地点="
).
append
(
storageArea
);
sb
.
append
(
"保管人="
).
append
(
keeper
);
sb
.
append
(
"实物索引号="
).
append
(
physicalIndexNumber
);
sb
.
append
(
"备注="
).
append
(
remark
);
sb
.
append
(
"审批状态="
).
append
(
null
==
auditStatus
?
null
:
auditStatus
==
0
?
"未审核"
:
auditStatus
==
1
?
"审核通过"
:
"审核不通过"
);
sb
.
append
(
"是否可用="
).
append
(
"T"
.
equals
(
enable
)?
"启用"
:
"未启用"
);
return
sb
.
toString
();
}
}
\ No newline at end of file
atms-web/src/main/webapp/app/admin/infrastructure/docManage/doc-manage.ctrl.js
View file @
d21bfb54
...
...
@@ -387,3 +387,126 @@
})();
}]);
infrastructureModule
.
directive
(
'exportPlugin'
,
function
(){
return
{
restrict
:
"EA"
,
controller
:[
'$scope'
,
'SweetAlert'
,
'$translate'
,
'docManageService'
,
'$q'
,
'$log'
,
function
(
$scope
,
SweetAlert
,
$translate
,
docManageService
,
$q
,
$log
){
$scope
.
exportTableData
=
function
()
{
docManageService
.
exportTableData
().
then
(
function
(
data
,
status
,
headers
)
{
if
(
status
===
204
){
SweetAlert
.
warning
(
"没有数据可以下载"
);
return
;
}
exportToExcel
(
data
,
'docType.xls'
);
},
function
()
{
SweetAlert
.
error
(
$translate
.
instant
(
'PleaseContactAdministrator'
));
})
};
//下载服务器上的xls文件
var
exportToExcel
=
function
(
data
,
filename
)
{
$
(
'#busy-indicator-container'
).
show
();
var
defer
=
$q
.
defer
();
// var octetStreamMime = 'application/vnd.ms-excel';
var
success
=
false
;
// Get the headers
// headers = headers();
// Get the filename from the x-filename header or default to "download.bin"
// var filename = decodeURI(headers['x-file-name']) + defaultFileName;
// Determine the content type from the header or default to "application/octet-stream"
// var contentType = headers['content-type'] || octetStreamMime;
try
{
// Try using msSaveBlob if supported
//console.log("Trying saveBlob method ...");
var
blob
=
new
Blob
([
data
],
{
type
:
"arraybuffer"
});
if
(
navigator
.
msSaveBlob
)
navigator
.
msSaveBlob
(
blob
,
filename
);
else
{
// Try using other saveBlob implementations, if available
var
saveBlob
=
navigator
.
webkitSaveBlob
||
navigator
.
mozSaveBlob
||
navigator
.
saveBlob
;
if
(
saveBlob
===
undefined
)
throw
"Not supported"
;
saveBlob
(
blob
,
filename
);
}
//console.log("saveBlob succeeded");
success
=
true
;
}
catch
(
ex
)
{
$log
.
debug
(
"saveBlob method failed with the following exception:"
);
$log
.
debug
(
ex
);
}
if
(
!
success
)
{
// Get the blob url creator
var
urlCreator
=
window
.
URL
||
window
.
webkitURL
||
window
.
mozURL
||
window
.
msURL
;
if
(
urlCreator
)
{
// Try to use a download link
var
link
=
document
.
createElement
(
'a'
);
if
(
'download'
in
link
)
{
// Try to simulate a click
try
{
// Prepare a blob URL
//console.log("Trying download link method with simulated click ...");
var
blobdownload
=
new
Blob
([
data
],
{
type
:
"arraybuffer"
});
var
urldownload
=
urlCreator
.
createObjectURL
(
blobdownload
);
link
.
setAttribute
(
'href'
,
urldownload
);
// Set the download attribute (Supported in Chrome 14+ / Firefox 20+)
link
.
setAttribute
(
"download"
,
filename
);
// Simulate clicking the download link
var
event
=
document
.
createEvent
(
'MouseEvents'
);
event
.
initMouseEvent
(
'click'
,
true
,
true
,
window
,
1
,
0
,
0
,
0
,
0
,
false
,
false
,
false
,
false
,
0
,
null
);
link
.
dispatchEvent
(
event
);
//console.log("Download link method with simulated click succeeded");
success
=
true
;
}
catch
(
ex
)
{
$log
.
debug
(
"Download link method with simulated click failed with the following exception:"
);
$log
.
debug
(
ex
);
$q
.
reject
();
}
}
if
(
!
success
)
{
// Fallback to window.location method
try
{
// Prepare a blob URL
// Use application/octet-stream when using window.location to force download
//console.log("Trying download link method with window.location ...");
var
blobsuccess
=
new
Blob
([
data
],
{
type
:
"arraybuffer"
});
var
urlsuccess
=
urlCreator
.
createObjectURL
(
blobsuccess
);
window
.
location
=
urlsuccess
;
//console.log("Download link method with window.location succeeded");
success
=
true
;
}
catch
(
ex
)
{
//console.log("Download link method with window.location failed with the following exception:");
$log
.
debug
(
ex
);
$q
.
reject
();
}
}
}
}
if
(
!
success
)
{
// Fallback to window.open method
$log
.
debug
(
"No methods worked for saving the arraybuffer, using last resort window.open"
);
window
.
open
(
httpPath
,
'_blank'
,
''
);
}
//Delete the file
// deleteFile(encodeURI(filename));
defer
.
resolve
(
'success'
);
$
(
'#busy-indicator-container'
).
hide
();
return
defer
.
promise
;
};
}]
}
});
\ No newline at end of file
atms-web/src/main/webapp/app/admin/infrastructure/docManage/doc-manage.html
View file @
d21bfb54
<div
class=
"land-manage-page"
>
<div
class=
"land-manage-page"
export-plugin
>
<style>
.DM-state-label
{
margin
:
0
;
...
...
@@ -12,6 +12,12 @@
display
:
none
;
}
.required-tip
{
color
:
red
;
position
:
absolute
;
left
:
2rem
;
top
:
0.7rem
;
}
</style>
<div
class=
"menu-header"
>
<div
class=
"menu-title"
translate=
"DocumentTypeSets"
></div>
...
...
@@ -22,7 +28,7 @@
</div>
<div
class=
"content-container"
>
<div
class=
"row"
style=
"margin-top:15px; text-align:right;padding:1rem;background: #fff"
>
<button
style=
"width: 150px;"
class=
"btn btn-in-panel-big"
ng-click=
"export
EventTrigger
()"
>
<button
style=
"width: 150px;"
class=
"btn btn-in-panel-big"
ng-click=
"export
TableData
()"
>
<i
class=
"fa fa-file-excel-o"
></i>
{{'ExportTable' | translate}}
</button>
...
...
@@ -68,7 +74,7 @@
<!--档案属性-->
<div
class=
"form-group"
>
<label
for=
"DocumentAttr"
class=
"col-sm-3 control-label"
>
<span
style=
"color:red
"
>
*
</span>
<span
class=
"required-tip
"
>
*
</span>
<span
translate=
"DocumentAttr"
></span>
</label>
<div
class=
"col-sm-11"
style=
"width:61.67%"
>
...
...
@@ -86,7 +92,7 @@
<div
class=
"form-group"
>
<label
for=
"DocumentType"
class=
"col-sm-3 control-label"
>
<span
style=
"color:red
"
>
*
</span>
<span
class=
"required-tip
"
>
*
</span>
<span
translate=
"DocumentType"
></span>
</label>
<div
class=
"col-sm-11"
style=
"width:61.67%"
>
...
...
@@ -116,7 +122,7 @@
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
<span
style=
"color:red
"
>
*
</span>
<span
class=
"required-tip
"
>
*
</span>
<span
translate=
"RequiredFields"
></span>
</label>
<div
class=
"col-sm-11"
style=
"width:61.67%"
id=
"appMultiSelectContainer"
>
...
...
atms-web/src/main/webapp/app/admin/infrastructure/docManage/doc-manage.svc.js
View file @
d21bfb54
...
...
@@ -15,6 +15,24 @@ function ($http, $q, apiConfig, apiInterceptor,jqFetch) {
editFileType
:
function
(
params
)
{
return
jqFetch
.
post
(
apiInterceptor
.
webApiHostUrl
+
'/fileTypes/edit'
,
params
);
},
exportTableData
:
function
(
params
){
$
(
'#busy-indicator-container'
).
show
();
var
defer
=
$q
.
defer
();
var
xhr
=
new
XMLHttpRequest
();
xhr
.
onload
=
function
(
e
)
{
var
arraybuffer
=
xhr
.
response
;
console
.
info
(
"arraybuffer:"
,
arraybuffer
);
defer
.
resolve
(
arraybuffer
,
xhr
.
status
,
xhr
.
getAllResponseHeaders
());
};
xhr
.
open
(
"POST"
,
apiInterceptor
.
webApiHostUrl
+
'/fileTypes/exportExcel'
,
true
);
xhr
.
setRequestHeader
(
"Authorization"
,
apiInterceptor
.
tokenType
+
' '
+
apiInterceptor
.
apiToken
());
xhr
.
setRequestHeader
(
"Content-Type"
,
'application/json;charset=UTF-8'
);
xhr
.
responseType
=
"arraybuffer"
;
xhr
.
send
(
JSON
.
stringify
(
params
));
return
defer
.
promise
;
},
};
}]);
atms-web/src/main/webapp/app/framework/app-usr-operate-log/app-usr-operate-log.ctrl.js
View file @
d21bfb54
...
...
@@ -70,16 +70,16 @@ frameworkModule.controller('appUsrOperateLogController',
descendingText
:
"Sort Descending"
,
mode
:
"single"
},
'export'
:
{
allowExportSelectedData
:
false
,
//允许选择导出
customizeExcelCell
:
null
,
enabled
:
true
,
//允许导出
excelFilterEnabled
:
false
,
excelWrapTextEnabled
:
false
,
fileName
:
"usrlog"
,
//名字
ignoreExcelErrors
:
true
,
},
//
'export': {
//
allowExportSelectedData: false,//允许选择导出
//
customizeExcelCell: null,
//
enabled: true,//允许导出
//
excelFilterEnabled: false,
//
excelWrapTextEnabled: false,
//
fileName: "usrlog",//名字
//
ignoreExcelErrors: true,
//
//
},
showRowLines
:
true
,
columnAutoWidth
:
true
,
allowColumnReordering
:
true
,
...
...
@@ -166,3 +166,124 @@ frameworkModule.controller('appUsrOperateLogController',
}]);
frameworkModule
.
directive
(
'usrLogExportPlugin'
,
function
(){
return
{
restrict
:
"EA"
,
controller
:[
'$scope'
,
'SweetAlert'
,
'$translate'
,
'usrOperateLogService'
,
'$q'
,
'$log'
,
function
(
$scope
,
SweetAlert
,
$translate
,
usrOperateLogService
,
$q
,
$log
){
$scope
.
exportTableData
=
function
()
{
usrOperateLogService
[
$scope
.
thisModuleName
+
"Export"
]().
then
(
function
(
data
,
status
,
headers
)
{
if
(
status
===
204
){
SweetAlert
.
warning
(
"没有数据可以下载"
);
return
;
}
exportToExcel
(
data
,
$scope
.
thisModuleName
+
'.xls'
);
},
function
()
{
SweetAlert
.
error
(
$translate
.
instant
(
'PleaseContactAdministrator'
));
})
};
//下载服务器上的xls文件
var
exportToExcel
=
function
(
data
,
filename
)
{
var
defer
=
$q
.
defer
();
// var octetStreamMime = 'application/vnd.ms-excel';
var
success
=
false
;
// Get the headers
// headers = headers();
// Get the filename from the x-filename header or default to "download.bin"
// var filename = decodeURI(headers['x-file-name']) + defaultFileName;
// Determine the content type from the header or default to "application/octet-stream"
// var contentType = headers['content-type'] || octetStreamMime;
try
{
// Try using msSaveBlob if supported
//console.log("Trying saveBlob method ...");
var
blob
=
new
Blob
([
data
],
{
type
:
"arraybuffer"
});
if
(
navigator
.
msSaveBlob
)
navigator
.
msSaveBlob
(
blob
,
filename
);
else
{
// Try using other saveBlob implementations, if available
var
saveBlob
=
navigator
.
webkitSaveBlob
||
navigator
.
mozSaveBlob
||
navigator
.
saveBlob
;
if
(
saveBlob
===
undefined
)
throw
"Not supported"
;
saveBlob
(
blob
,
filename
);
}
//console.log("saveBlob succeeded");
success
=
true
;
}
catch
(
ex
)
{
$log
.
debug
(
"saveBlob method failed with the following exception:"
);
$log
.
debug
(
ex
);
}
if
(
!
success
)
{
// Get the blob url creator
var
urlCreator
=
window
.
URL
||
window
.
webkitURL
||
window
.
mozURL
||
window
.
msURL
;
if
(
urlCreator
)
{
// Try to use a download link
var
link
=
document
.
createElement
(
'a'
);
if
(
'download'
in
link
)
{
// Try to simulate a click
try
{
// Prepare a blob URL
//console.log("Trying download link method with simulated click ...");
var
blobdownload
=
new
Blob
([
data
],
{
type
:
"arraybuffer"
});
var
urldownload
=
urlCreator
.
createObjectURL
(
blobdownload
);
link
.
setAttribute
(
'href'
,
urldownload
);
// Set the download attribute (Supported in Chrome 14+ / Firefox 20+)
link
.
setAttribute
(
"download"
,
filename
);
// Simulate clicking the download link
var
event
=
document
.
createEvent
(
'MouseEvents'
);
event
.
initMouseEvent
(
'click'
,
true
,
true
,
window
,
1
,
0
,
0
,
0
,
0
,
false
,
false
,
false
,
false
,
0
,
null
);
link
.
dispatchEvent
(
event
);
//console.log("Download link method with simulated click succeeded");
success
=
true
;
}
catch
(
ex
)
{
$log
.
debug
(
"Download link method with simulated click failed with the following exception:"
);
$log
.
debug
(
ex
);
$q
.
reject
();
}
}
if
(
!
success
)
{
// Fallback to window.location method
try
{
// Prepare a blob URL
// Use application/octet-stream when using window.location to force download
//console.log("Trying download link method with window.location ...");
var
blobsuccess
=
new
Blob
([
data
],
{
type
:
"arraybuffer"
});
var
urlsuccess
=
urlCreator
.
createObjectURL
(
blobsuccess
);
window
.
location
=
urlsuccess
;
//console.log("Download link method with window.location succeeded");
success
=
true
;
}
catch
(
ex
)
{
//console.log("Download link method with window.location failed with the following exception:");
$log
.
debug
(
ex
);
$q
.
reject
();
}
}
}
}
if
(
!
success
)
{
// Fallback to window.open method
$log
.
debug
(
"No methods worked for saving the arraybuffer, using last resort window.open"
);
window
.
open
(
httpPath
,
'_blank'
,
''
);
}
//Delete the file
// deleteFile(encodeURI(filename));
defer
.
resolve
(
'success'
);
$
(
'#busy-indicator-container'
).
hide
();
return
defer
.
promise
;
};
}]
}
});
\ No newline at end of file
atms-web/src/main/webapp/app/framework/app-usr-operate-log/app-usr-operate-log.html
View file @
d21bfb54
<div
class=
"operate-log-wrapper"
>
<div
class=
"operate-log-wrapper"
usr-log-export-plugin
>
<style>
.log-export-btn
{
position
:
absolute
;
right
:
550px
;
z-index
:
2
;
top
:
1.3rem
;
background
:
#fff
;
}
.log-export-btn
:hover
{
background
:
#E6E6E6
;
}
</style>
<button
class=
"btn btn-not-important"
ng-click=
"openUsrOperateLogPop()"
><i
class=
"material-icons"
>
description
</i><span
translate=
"log"
>
日志
</span></button>
<script
type=
"text/html"
id=
"usrOperateLogPopContainer"
>
<
div
class
=
"modal fade"
id
=
"usrOperateLogPop"
tabindex
=
"-1"
role
=
"dialog"
aria
-
labelledby
=
"myModal"
data
-
backdrop
=
"static"
data
-
keyboard
=
"false"
>
...
...
@@ -19,6 +31,11 @@
<!--<
div
ui
-
grid
=
"operateLogGridOptions"
ui
-
grid
-
selection
style
=
"width:1140px; height:510px;margin:0px;"
><
/div>--
>
<
div
class
=
"dx-viewport demo-container"
>
<
button
class
=
"btn log-export-btn"
ng
-
click
=
"exportTableData()"
>
<
i
class
=
"fa fa-file-excel-o"
><
/i
>
<
span
translate
=
"ExportTable"
><
/span
>
<
/button
>
<
div
dx
-
data
-
grid
=
"dataGridOptions"
><
/div
>
<
/div
>
...
...
atms-web/src/main/webapp/app/framework/app-usr-operate-log/app-usr-operate-log.svc.js
View file @
d21bfb54
...
...
@@ -2,8 +2,8 @@
* Created by Administrator on 2019/2/28 0028.
*/
frameworkModule
.
factory
(
'usrOperateLogService'
,
[
'$q'
,
'apiConfig'
,
'jqFetch'
,
'apiInterceptor'
,
function
(
$q
,
apiConfig
,
jqFetch
,
apiInterceptor
)
{
[
'$q'
,
'apiConfig'
,
'jqFetch'
,
'apiInterceptor'
,
function
(
$q
,
apiConfig
,
jqFetch
,
apiInterceptor
)
{
'use strict'
;
return
{
docManageTypeLog
:
function
(
params
)
{
...
...
@@ -11,6 +11,38 @@ function ($q, apiConfig, jqFetch,apiInterceptor) {
},
docManageListLog
:
function
(
params
)
{
return
jqFetch
.
post
(
apiInterceptor
.
webApiHostUrl
+
'/operLogTaxDoc/selectListForLog'
,
params
);
},
docManageListLogExport
:
function
(){
$
(
'#busy-indicator-container'
).
show
();
return
exportFn
(
apiInterceptor
.
webApiHostUrl
+
'/operLogTaxDoc/exportExcel'
);
},
docManageTypeLogExport
:
function
(){
$
(
'#busy-indicator-container'
).
show
();
return
exportFn
(
apiInterceptor
.
webApiHostUrl
+
'/operLogFileTypes/exportExcel'
);
// http://etms.longi-silicon.com:8180//api/v1/operLogFileTypes/exportExcel
}
};
}]);
\ No newline at end of file
function
exportFn
(
url
)
{
var
defer
=
$q
.
defer
();
var
xhr
=
new
XMLHttpRequest
();
xhr
.
onload
=
function
(
e
)
{
var
arraybuffer
=
xhr
.
response
;
console
.
info
(
"arraybuffer:"
,
arraybuffer
);
defer
.
resolve
(
arraybuffer
,
xhr
.
status
,
xhr
.
getAllResponseHeaders
());
};
xhr
.
open
(
"POST"
,
url
,
true
);
xhr
.
setRequestHeader
(
"Authorization"
,
apiInterceptor
.
tokenType
+
' '
+
apiInterceptor
.
apiToken
());
xhr
.
setRequestHeader
(
"Content-Type"
,
'application/json;charset=UTF-8'
);
xhr
.
responseType
=
"arraybuffer"
;
xhr
.
send
();
return
defer
.
promise
;
}
}]);
\ No newline at end of file
atms-web/src/main/webapp/app/taxDocumentManage/tax-document-list/tax-document-list.ctrl.js
View file @
d21bfb54
...
...
@@ -60,16 +60,16 @@ taxDocumentManageModule.controller('taxDocumentListController',
descendingText
:
"Sort Descending"
,
mode
:
"single"
},
'export'
:
{
allowExportSelectedData
:
false
,
//允许选择导出
customizeExcelCell
:
null
,
enabled
:
true
,
//允许导出
excelFilterEnabled
:
false
,
excelWrapTextEnabled
:
false
,
fileName
:
"taxDocList"
,
//名字
ignoreExcelErrors
:
true
,
},
//
'export': {
//
allowExportSelectedData: false,//允许选择导出
//
customizeExcelCell: null,
//
enabled: true,//允许导出
//
excelFilterEnabled: false,
//
excelWrapTextEnabled: false,
//
fileName: "taxDocList",//名字
//
ignoreExcelErrors: true,
//
//
},
showRowLines
:
true
,
columnAutoWidth
:
true
,
allowColumnReordering
:
true
,
...
...
@@ -1525,8 +1525,8 @@ taxDocumentManageModule.directive('tempModule', function () {
return
result
;
}
$scope
.
intToDate
=
function
(
src
,
type
){
if
(
!
src
)
return
""
;
src
=
src
+
""
;
if
(
!
src
)
return
src
;
type
=
type
?
type
:
"/"
;
var
year
=
src
.
substr
(
0
,
4
);
var
mon
=
src
.
substr
(
4
,
2
);
...
...
@@ -1540,10 +1540,10 @@ taxDocumentManageModule.directive('tempModule', function () {
taxDocumentManageModule
.
directive
(
'downLoadModule'
,
function
()
{
return
{
restrict
:
'EA'
,
controller
:
[
'$scope'
,
'taxDocumentListService'
,
'$translate'
,
function
(
$scope
,
taxDocumentListService
,
$translate
)
{
controller
:
[
'$scope'
,
'taxDocumentListService'
,
'$translate'
,
'SweetAlert'
,
function
(
$scope
,
taxDocumentListService
,
$translate
,
SweetAlert
)
{
$scope
.
downloadAttachment
=
function
()
{
/*
$scope.downloadAttachment = function () {
var checkedIDs = [
// 'http://47.94.233.173:11007/static/erp_tax_system/3221D133-85B8-4E22-AE9B-DBEBD942D217?expire=1552361736&signiture=_Wz1_8Z6T8h5qnZAGpoRa8kNZeqmE7KoztKeehzYK4U=',
// 'http://47.94.233.173:11007/static/erp_tax_system/3221D133-85B8-4E22-AE9B-DBEBD942D217?expire=1552361736&signiture=_Wz1_8Z6T8h5qnZAGpoRa8kNZeqmE7KoztKeehzYK4U=',
...
...
@@ -1559,6 +1559,36 @@ taxDocumentManageModule.directive('downLoadModule', function () {
taxDocumentListService.downloadAllFile({
"ids":checkedIDs
});
};*/
$scope
.
downloadAttachment
=
function
()
{
var
checkedURLs
=
[
// 'http://47.94.233.173:11007/static/erp_tax_system/3221D133-85B8-4E22-AE9B-DBEBD942D217?expire=1552361736&signiture=_Wz1_8Z6T8h5qnZAGpoRa8kNZeqmE7KoztKeehzYK4U=',
// 'http://47.94.233.173:11007/static/erp_tax_system/3221D133-85B8-4E22-AE9B-DBEBD942D217?expire=1552361736&signiture=_Wz1_8Z6T8h5qnZAGpoRa8kNZeqmE7KoztKeehzYK4U=',
// 'http://47.94.233.173:11007/static/erp_tax_system/3221D133-85B8-4E22-AE9B-DBEBD942D217?expire=1552361736&signiture=_Wz1_8Z6T8h5qnZAGpoRa8kNZeqmE7KoztKeehzYK4U=',
// 'http://47.94.233.173:11007/static/erp_tax_system/3221D133-85B8-4E22-AE9B-DBEBD942D217?expire=1552361736&signiture=_Wz1_8Z6T8h5qnZAGpoRa8kNZeqmE7KoztKeehzYK4U=',
];
$
(
"input[name='dataGridCheckBox']"
).
each
(
function
(
index
,
item
)
{
if
(
item
.
checked
)
{
var
cellUrl
=
$
(
item
).
attr
(
"data-url"
);
checkedURLs
.
push
(
cellUrl
);
}
});
if
(
!
checkedURLs
.
length
)
return
SweetAlert
.
warning
(
$translate
.
instant
(
"NeedChecked"
));
var
triggerDelay
=
100
;
var
removeDelay
=
1000
;
checkedURLs
.
forEach
(
function
(
item
,
index
)
{
if
(
item
)
_createIFrame
(
item
,
index
*
triggerDelay
,
removeDelay
);
});
function
_createIFrame
(
url
,
_triggerDelay
,
_removeDelay
)
{
setTimeout
(
function
()
{
var
frame
=
$
(
'<iframe style="display: none;" class="multi-download"></iframe>'
);
frame
.
attr
(
'src'
,
url
);
document
.
body
.
appendChild
(
frame
[
0
]);
setTimeout
(
function
()
{
frame
.
remove
();
},
_removeDelay
);
},
_triggerDelay
);
}
};
}]
}
...
...
@@ -1566,46 +1596,67 @@ taxDocumentManageModule.directive('downLoadModule', function () {
taxDocumentManageModule
.
directive
(
'exportPlugin'
,
function
(){
return
{
restrict
:
"EA"
,
controller
:[
'$scope'
,
'SweetAlert'
,
'$translate'
,
function
(
$scope
,
SweetAlert
,
$translate
){
$scope
.
exportOrgList
=
function
()
controller
:[
'$scope'
,
'SweetAlert'
,
'$translate'
,
'taxDocumentListService'
,
'$q'
,
'$log'
,
function
(
$scope
,
SweetAlert
,
$translate
,
taxDocumentListService
,
$q
,
$log
){
$scope
.
exportTableData
=
function
()
{
var
exportData
=
{
"type"
:
"orgList"
,
"jsonData"
:
JSON
.
stringify
(
$scope
.
DataGridSource
)
};
orgService
.
downloadOrgListData
(
exportData
).
success
(
function
(
data
,
status
,
headers
)
{
$scope
.
queryFieldModel
.
currentPage
=
$scope
.
pagingOptions
.
pageIndex
;
$scope
.
queryFieldModel
.
pageSize
=
$scope
.
pagingOptions
.
pageSize
;
var
params
=
angular
.
copy
(
$scope
.
queryFieldModel
);
params
.
fileBeginTime
=
getQueryDate
(
params
.
fileBeginTime
,
"-"
);
params
.
fileEndTTime
=
getQueryDate
(
params
.
fileEndTTime
,
"-"
);
params
.
ownBeginTime
=
getQueryDate
(
params
.
ownBeginTime
,
"-"
);
params
.
ownEndTime
=
getQueryDate
(
params
.
ownEndTime
,
"-"
);
params
.
effectiveBeginTime
=
getQueryDate
(
params
.
effectiveBeginTime
,
"-"
);
params
.
effectiveEndTime
=
getQueryDate
(
params
.
effectiveEndTime
,
"-"
);
params
.
uploadBeginTime
=
getQueryDate
(
params
.
uploadBeginTime
,
"-"
);
params
.
uploadEndTime
=
getQueryDate
(
params
.
uploadEndTime
,
"-"
);
function
getQueryDate
(
time
,
mark
)
{
if
(
!
time
)
return
""
;
var
theDate
=
new
Date
(
time
);
var
year
=
theDate
.
getFullYear
();
var
mm
=
theDate
.
getMonth
()
+
1
;
var
dd
=
theDate
.
getDate
();
mm
=
(
mm
+
""
).
length
<
2
?
"0"
+
mm
:
mm
;
dd
=
(
dd
+
""
).
length
<
2
?
"0"
+
dd
:
dd
;
return
year
+
mark
+
mm
+
mark
+
dd
;
}
taxDocumentListService
.
exportTableData
(
params
).
then
(
function
(
data
,
status
,
headers
)
{
if
(
status
===
204
){
SweetAlert
.
warning
(
"没有数据可以下载"
);
return
;
}
exportToExcel
(
data
,
status
,
headers
,
'taxDocument.xls'
);
}).
error
(
function
()
{
exportToExcel
(
data
,
'taxDocument.xls'
);
},
function
()
{
SweetAlert
.
error
(
$translate
.
instant
(
'PleaseContactAdministrator'
));
});
})
/*.error(function () {
SweetAlert.error($translate.instant('PleaseContactAdministrator'));
});*/
};
//下载服务器上的xls文件
var
exportToExcel
=
function
(
data
,
status
,
headers
,
defaultFileN
ame
)
{
var
exportToExcel
=
function
(
data
,
filen
ame
)
{
$
(
'#busy-indicator-container'
).
show
();
var
defer
=
$q
.
defer
();
var
octetStreamMime
=
'application/vnd.ms-excel'
;
//
var octetStreamMime = 'application/vnd.ms-excel';
var
success
=
false
;
// Get the headers
headers
=
headers
();
//
headers = headers();
// Get the filename from the x-filename header or default to "download.bin"
var
filename
=
decodeURI
(
headers
[
'x-file-name'
])
+
defaultFileName
;
//
var filename = decodeURI(headers['x-file-name']) + defaultFileName;
// Determine the content type from the header or default to "application/octet-stream"
var
contentType
=
headers
[
'content-type'
]
||
octetStreamMime
;
//
var contentType = headers['content-type'] || octetStreamMime;
try
{
// Try using msSaveBlob if supported
//console.log("Trying saveBlob method ...");
var
blob
=
new
Blob
([
data
],
{
type
:
contentType
});
var
blob
=
new
Blob
([
data
],
{
type
:
"arraybuffer"
});
if
(
navigator
.
msSaveBlob
)
navigator
.
msSaveBlob
(
blob
,
filename
);
else
{
...
...
@@ -1632,7 +1683,7 @@ taxDocumentManageModule.directive('exportPlugin',function(){
try
{
// Prepare a blob URL
//console.log("Trying download link method with simulated click ...");
var
blobdownload
=
new
Blob
([
data
],
{
type
:
contentType
});
var
blobdownload
=
new
Blob
([
data
],
{
type
:
"arraybuffer"
});
var
urldownload
=
urlCreator
.
createObjectURL
(
blobdownload
);
link
.
setAttribute
(
'href'
,
urldownload
);
...
...
@@ -1659,7 +1710,7 @@ taxDocumentManageModule.directive('exportPlugin',function(){
// Prepare a blob URL
// Use application/octet-stream when using window.location to force download
//console.log("Trying download link method with window.location ...");
var
blobsuccess
=
new
Blob
([
data
],
{
type
:
octetStreamMime
});
var
blobsuccess
=
new
Blob
([
data
],
{
type
:
"arraybuffer"
});
var
urlsuccess
=
urlCreator
.
createObjectURL
(
blobsuccess
);
window
.
location
=
urlsuccess
;
//console.log("Download link method with window.location succeeded");
...
...
atms-web/src/main/webapp/app/taxDocumentManage/tax-document-list/tax-document-list.html
View file @
d21bfb54
<div
class=
"land-manage-page"
watch-group
temp-module
down-load-module
>
<div
class=
"land-manage-page"
watch-group
temp-module
down-load-module
export-plugin
>
<style>
ul
{
margin
:
0
;
padding
:
0
;
list-style
:
none
;
}
.edit-panel-left-part
{
padding-left
:
0
;
padding-right
:
0
;
}
.required-tip
{
color
:
red
;
}
.TDL-header
{
padding
:
1rem
;
...
...
@@ -139,10 +147,9 @@
}
.TDL-content-container
.DTL-content-head-bar
{
position
:
absolute
;
z-index
:
2
;
right
:
1
1rem
;
top
:
1rem
;
padding-right
:
1rem
;
margin-bottom
:
1rem
;
}
.TDL-content-container
.DTL-content-head-bar
button
{
...
...
@@ -177,7 +184,7 @@
color
:
inherit
;
}
.dx-toolbar
.dx-toolbar-after
.dx-toolbar-item-content
.dx-datagrid-toolbar-button
{
/*
.dx-toolbar .dx-toolbar-after .dx-toolbar-item-content .dx-datagrid-toolbar-button {
border: 0;
}
...
...
@@ -193,7 +200,7 @@
position: relative;
top: 0;
left: 0;
}
}*/
.DTL-special-external-btn
{
width
:
34px
;
...
...
@@ -583,12 +590,14 @@
<div
class=
"content-container TDL-content-container"
>
<div
class=
"DTL-content-head-bar"
>
<app-usr-operate-log
style=
"float:right"
this-module-name=
"docManageListLog"
this-module-id=
"checkedItemIds"
></app-usr-operate-log>
<div
style=
"text-align: right;"
>
<button
class=
"btn DTL-create-record"
ng-click=
"openMultiUploadPop()"
>
<i
class=
"fa fa-plus-square
"
></i>
<i
class=
"fa fa-tasks
"
></i>
<span
translate=
"MultiUpload"
></span>
</button>
<button
class=
"btn DTL-create-record"
ng-click=
"openSimpleUploadPop()"
>
...
...
@@ -603,6 +612,11 @@
<i
class=
"fa fa-download"
></i>
<span
translate=
"DownloadAttachment"
ng-click=
"downloadAttachment()"
></span>
</button>
<button
class=
"btn"
ng-click=
"exportTableData()"
>
<i
class=
"fa fa-file-excel-o"
></i>
<span
translate=
"ExportTable"
></span>
</button>
</div>
</div>
<div
style=
"padding:0 1rem;background:#fff"
>
<div
class=
"TDL-data-grid-container dx-viewport demo-container"
>
...
...
@@ -629,8 +643,8 @@
<div
class=
"modal-body"
>
<div
ng-if=
"isCreatePop"
class=
"col-sm-6 form-group"
>
<label
class=
"col-sm-3 control-label"
>
<span
style=
"color:red
"
>
*
</span>
<label
class=
"col-sm-3 control-label
edit-panel-left-part
"
>
<span
class=
"required-tip
"
>
*
</span>
{{'DocumentPath'|translate}}
</label>
<div
class=
"col-sm-11"
style=
"width:61.67%"
>
...
...
@@ -656,8 +670,8 @@
<div
style=
"clear:both"
></div>
<!--档案名称-->
<div
class=
"col-sm-6 form-group"
>
<label
class=
"col-sm-3 control-label"
>
<span
style=
"color:red
"
>
*
</span>
<label
class=
"col-sm-3 control-label
edit-panel-left-part
"
>
<span
class=
"required-tip
"
>
*
</span>
{{'DocumentName' | translate}}
</label>
<div
class=
"col-sm-11"
style=
"width:61.67%"
>
...
...
@@ -668,8 +682,8 @@
</div>
</div>
<div
class=
"col-sm-6 form-group"
>
<label
class=
"col-sm-3 control-label"
>
<span
style=
"color:red
"
>
*
</span>
<label
class=
"col-sm-3 control-label
edit-panel-left-part
"
>
<span
class=
"required-tip
"
>
*
</span>
{{'DocumentAttr' | translate}}
</label>
<div
class=
"col-sm-11"
style=
"width:61.67%"
id=
"fileAttrOptions"
>
...
...
@@ -691,8 +705,8 @@
</div>
</div>
<div
class=
"col-sm-6 form-group"
>
<label
class=
"col-sm-3 control-label"
>
<span
style=
"color:red
"
>
*
</span>
<label
class=
"col-sm-3 control-label
edit-panel-left-part
"
>
<span
class=
"required-tip
"
>
*
</span>
{{'CorporationName' | translate}}
</label>
<div
class=
"col-sm-11"
style=
"width:61.67%"
id=
"companyNameOptionsMap"
>
...
...
@@ -708,8 +722,8 @@
</div>
</div>
<div
class=
"col-sm-6 form-group"
>
<label
class=
"col-sm-3 control-label"
>
<span
style=
"color:red
"
>
*
</span>
<label
class=
"col-sm-3 control-label
edit-panel-left-part
"
>
<span
class=
"required-tip
"
>
*
</span>
{{'DocumentType' | translate}}
</label>
<div
class=
"col-sm-11"
style=
"width:61.67%"
>
...
...
@@ -726,8 +740,8 @@
</div>
</div>
<div
class=
"col-sm-6 form-group"
>
<label
class=
"col-sm-3 control-label"
>
<span
style=
"color:red
"
ng-if=
"isRequired('TaxType')"
>
*
</span>
<label
class=
"col-sm-3 control-label
edit-panel-left-part
"
>
<span
class=
"required-tip
"
ng-if=
"isRequired('TaxType')"
>
*
</span>
{{'TaxType' | translate}}
</label>
<div
class=
"col-sm-11"
style=
"width:61.67%"
>
...
...
@@ -748,8 +762,8 @@
</div>
</div>
<div
class=
"col-sm-6 form-group"
>
<label
class=
"col-sm-3 control-label"
>
<span
style=
"color:red
"
>
*
</span>
<label
class=
"col-sm-3 control-label
edit-panel-left-part
"
>
<span
class=
"required-tip
"
>
*
</span>
{{'Duration' | translate}}
</label>
<div
class=
"col-sm-11"
style=
"width:61.67%"
>
...
...
@@ -760,8 +774,8 @@
</div>
</div>
<div
class=
"col-sm-6 form-group"
>
<label
class=
"col-sm-3 control-label"
>
<span
style=
"color:red
"
ng-if=
"isRequired('AvailabilityDate')"
>
*
</span>
<label
class=
"col-sm-3 control-label
edit-panel-left-part
"
>
<span
class=
"required-tip
"
ng-if=
"isRequired('AvailabilityDate')"
>
*
</span>
{{'AvailabilityDate' | translate}}
</label>
<div
class=
"col-sm-11"
style=
"width:61.67%"
>
...
...
@@ -772,8 +786,8 @@
</div>
</div>
<div
class=
"col-sm-6 form-group"
>
<label
class=
"col-sm-3 control-label"
>
<span
style=
"color:red
"
ng-if=
"isRequired('DueDate')"
>
*
</span>
<label
class=
"col-sm-3 control-label
edit-panel-left-part
"
>
<span
class=
"required-tip
"
ng-if=
"isRequired('DueDate')"
>
*
</span>
{{'DueDate' | translate}}
</label>
<div
class=
"col-sm-11"
style=
"width:61.67%"
>
...
...
@@ -784,8 +798,8 @@
</div>
</div>
<div
class=
"col-sm-6 form-group"
>
<label
class=
"col-sm-3 control-label"
>
<span
style=
"color:red
"
ng-if=
"isRequired('EntityStorageLocation')"
>
*
</span>
<label
class=
"col-sm-3 control-label
edit-panel-left-part
"
>
<span
class=
"required-tip
"
ng-if=
"isRequired('EntityStorageLocation')"
>
*
</span>
{{'EntityStorageLocation' | translate}}
</label>
<div
class=
"col-sm-11"
style=
"width:61.67%"
>
...
...
@@ -803,8 +817,8 @@
</div>
</div>
<div
class=
"col-sm-6 form-group"
>
<label
class=
"col-sm-3 control-label"
>
<span
style=
"color:red
"
ng-if=
"isRequired('EntityCustodian')"
>
*
</span>
<label
class=
"col-sm-3 control-label
edit-panel-left-part
"
>
<span
class=
"required-tip
"
ng-if=
"isRequired('EntityCustodian')"
>
*
</span>
{{'EntityCustodian' | translate}}
</label>
<div
class=
"col-sm-11"
style=
"width:61.67%"
>
...
...
@@ -816,8 +830,8 @@
</div>
</div>
<div
class=
"col-sm-6 form-group"
>
<label
class=
"col-sm-3 control-label"
>
<span
style=
"color:red
"
ng-if=
"isRequired('EntityIndex')"
>
*
</span>
<label
class=
"col-sm-3 control-label
edit-panel-left-part
"
>
<span
class=
"required-tip
"
ng-if=
"isRequired('EntityIndex')"
>
*
</span>
{{'EntityIndex' | translate}}
</label>
<div
class=
"col-sm-11"
style=
"width:61.67%"
>
...
...
@@ -830,8 +844,8 @@
</div>
</div>
<div
class=
"form-group"
style=
"width:100%;float:left;"
>
<label
class=
"col-sm-3 control-label"
style=
"width:12.5%"
>
<span
style=
"color:red
"
ng-if=
"isRequired('Remarks')"
>
*
</span>
<label
class=
"col-sm-3 control-label
edit-panel-left-part
"
style=
"width:12.5%"
>
<span
class=
"required-tip
"
ng-if=
"isRequired('Remarks')"
>
*
</span>
{{'Remarks' | translate}}
</label></label>
<div
class=
"col-sm-11"
style=
"width:87.5%"
>
<textarea
class=
"form-control"
...
...
@@ -878,8 +892,8 @@
<ul>
<li
ng-repeat=
"editFieldItem in editFieldModel_multi"
ng-show=
"editFieldItem.iShow"
>
<div
class=
"col-sm-6 form-group"
>
<label
class=
"col-sm-3 control-label"
>
<span
style=
"color:red
"
>
*
</span>
<label
class=
"col-sm-3 control-label
edit-panel-left-part
"
>
<span
class=
"required-tip
"
>
*
</span>
{{'DocumentPath'|translate}}
</label>
<div
class=
"col-sm-11"
style=
"width:61.67%"
>
...
...
@@ -900,8 +914,8 @@
<div
style=
"clear:both"
></div>
<!--档案名称-->
<div
class=
"col-sm-6 form-group"
>
<label
class=
"col-sm-3 control-label"
>
<span
style=
"color:red
"
>
*
</span>
<label
class=
"col-sm-3 control-label
edit-panel-left-part
"
>
<span
class=
"required-tip
"
>
*
</span>
{{'DocumentName' | translate}}
</label>
<div
class=
"col-sm-11"
style=
"width:61.67%"
>
...
...
@@ -912,8 +926,8 @@
</div>
</div>
<div
class=
"col-sm-6 form-group"
>
<label
class=
"col-sm-3 control-label"
>
<span
style=
"color:red
"
>
*
</span>
<label
class=
"col-sm-3 control-label
edit-panel-left-part
"
>
<span
class=
"required-tip
"
>
*
</span>
{{'DocumentAttr' | translate}}
</label>
<div
class=
"col-sm-11"
style=
"width:61.67%"
>
...
...
@@ -934,8 +948,8 @@
</div>-->
</div>
<div
class=
"col-sm-6 form-group"
>
<label
class=
"col-sm-3 control-label"
>
<span
style=
"color:red
"
>
*
</span>
<label
class=
"col-sm-3 control-label
edit-panel-left-part
"
>
<span
class=
"required-tip
"
>
*
</span>
{{'CorporationName' | translate}}
</label>
<div
class=
"col-sm-11"
style=
"width:61.67%"
>
...
...
@@ -952,8 +966,8 @@
</div>
</div>
<div
class=
"col-sm-6 form-group"
>
<label
class=
"col-sm-3 control-label"
>
<span
style=
"color:red
"
>
*
</span>
<label
class=
"col-sm-3 control-label
edit-panel-left-part
"
>
<span
class=
"required-tip
"
>
*
</span>
{{'DocumentType' | translate}}
</label>
<div
class=
"col-sm-11"
style=
"width:61.67%"
>
...
...
@@ -970,8 +984,8 @@
</div>
</div>
<div
class=
"col-sm-6 form-group"
>
<label
class=
"col-sm-3 control-label"
>
<span
style=
"color:red
"
ng-if=
"isRequired('TaxType')"
>
*
</span>
<label
class=
"col-sm-3 control-label
edit-panel-left-part
"
>
<span
class=
"required-tip
"
ng-if=
"isRequired('TaxType')"
>
*
</span>
{{'TaxType' | translate}}
</label>
<div
class=
"col-sm-11"
style=
"width:61.67%"
>
...
...
@@ -987,8 +1001,8 @@
</div>
</div>
<div
class=
"col-sm-6 form-group"
>
<label
class=
"col-sm-3 control-label"
>
<span
style=
"color:red
"
>
*
</span>
<label
class=
"col-sm-3 control-label
edit-panel-left-part
"
>
<span
class=
"required-tip
"
>
*
</span>
{{'Duration' | translate}}
</label>
<div
class=
"col-sm-11"
style=
"width:61.67%"
>
...
...
@@ -999,8 +1013,8 @@
</div>
</div>
<div
class=
"col-sm-6 form-group"
>
<label
class=
"col-sm-3 control-label"
>
<span
style=
"color:red
"
ng-if=
"isRequired('AvailabilityDate')"
>
*
</span>
<label
class=
"col-sm-3 control-label
edit-panel-left-part
"
>
<span
class=
"required-tip
"
ng-if=
"isRequired('AvailabilityDate')"
>
*
</span>
{{'AvailabilityDate' | translate}}
</label>
<div
class=
"col-sm-11"
style=
"width:61.67%"
>
...
...
@@ -1011,8 +1025,8 @@
</div>
</div>
<div
class=
"col-sm-6 form-group"
>
<label
class=
"col-sm-3 control-label"
>
<span
style=
"color:red
"
ng-if=
"isRequired('DueDate')"
>
*
</span>
<label
class=
"col-sm-3 control-label
edit-panel-left-part
"
>
<span
class=
"required-tip
"
ng-if=
"isRequired('DueDate')"
>
*
</span>
{{'DueDate' | translate}}
</label>
<div
class=
"col-sm-11"
style=
"width:61.67%"
>
...
...
@@ -1023,8 +1037,8 @@
</div>
</div>
<div
class=
"col-sm-6 form-group"
>
<label
class=
"col-sm-3 control-label"
>
<span
style=
"color:red
"
ng-if=
"isRequired('EntityStorageLocation')"
>
*
</span>
<label
class=
"col-sm-3 control-label
edit-panel-left-part
"
>
<span
class=
"required-tip
"
ng-if=
"isRequired('EntityStorageLocation')"
>
*
</span>
{{'EntityStorageLocation' | translate}}
</label>
<div
class=
"col-sm-11"
style=
"width:61.67%"
>
...
...
@@ -1044,8 +1058,8 @@
</div>
</div>
<div
class=
"col-sm-6 form-group"
>
<label
class=
"col-sm-3 control-label"
>
<span
style=
"color:red
"
ng-if=
"isRequired('EntityCustodian')"
>
*
</span>
<label
class=
"col-sm-3 control-label
edit-panel-left-part
"
>
<span
class=
"required-tip
"
ng-if=
"isRequired('EntityCustodian')"
>
*
</span>
{{'EntityCustodian' | translate}}
</label>
<div
class=
"col-sm-11"
style=
"width:61.67%"
>
...
...
@@ -1057,8 +1071,8 @@
</div>
</div>
<div
class=
"col-sm-6 form-group"
>
<label
class=
"col-sm-3 control-label"
>
<span
style=
"color:red
"
ng-if=
"isRequired('EntityIndex')"
>
*
</span>
<label
class=
"col-sm-3 control-label
edit-panel-left-part
"
>
<span
class=
"required-tip
"
ng-if=
"isRequired('EntityIndex')"
>
*
</span>
{{'EntityIndex' | translate}}
</label>
<div
class=
"col-sm-11"
style=
"width:61.67%"
>
...
...
@@ -1071,8 +1085,8 @@
</div>
</div>
<div
class=
"form-group"
style=
"width:100%;float:left;"
>
<label
class=
"col-sm-3 control-label"
style=
"width:12.5%"
>
<span
style=
"color:red
"
ng-if=
"isRequired('Remarks')"
>
*
</span>
<label
class=
"col-sm-3 control-label
edit-panel-left-part
"
style=
"width:12.5%"
>
<span
class=
"required-tip
"
ng-if=
"isRequired('Remarks')"
>
*
</span>
{{'Remarks' | translate}}
</label>
<div
class=
"col-sm-11"
style=
"width:87.5%"
>
...
...
@@ -1180,6 +1194,7 @@
<button
class=
"TDL-pdf-paging-btn TDL-pdf-paging-btn-prev"
ng-click=
"prevPaging()"
title=
"上一页"
>
<
</button>
<button
class=
"TDL-pdf-paging-btn TDL-pdf-paging-btn-next"
ng-click=
"nextPaging()"
title=
"下一页"
>
>
</button>
</div>
<div
class=
"modal fade"
id=
"imgLayoutDialog"
img-preview
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModal"
data-backdrop=
"static"
data-keyboard=
"false"
>
<div
class=
"modal-dialog"
style=
"width:80%;max-width:1028px"
role=
"document"
>
...
...
atms-web/src/main/webapp/app/taxDocumentManage/tax-document-list/tax-document-list.svc.js
View file @
d21bfb54
...
...
@@ -79,8 +79,8 @@ taxDocumentManageModule.factory('taxDocumentListService',
return
jqFetch
.
get
(
apiInterceptor
.
webApiHostUrl
+
'/businessunit/getlist'
,
params
);
},
downloadAllFile
:
function
(
params
){
//post请求会自带http://etms.longi-silicon.com:8180//api/v1的前缀路径,get请求不会
var
xhr
=
new
XMLHttpRequest
();
var
fileName
=
'files.zip'
;
// 文件名称
xhr
.
open
(
'POST'
,
apiInterceptor
.
webApiHostUrl
+
"/taxDoc/downloadAllFile"
,
true
);
xhr
.
responseType
=
'arraybuffer'
;
// xhr.setRequestHeader(token, 'xxxxx') ;// 请求头中的验证信息等(如果有)
...
...
@@ -88,9 +88,11 @@ taxDocumentManageModule.factory('taxDocumentListService',
xhr
.
setRequestHeader
(
"Authorization"
,
apiInterceptor
.
tokenType
+
' '
+
apiInterceptor
.
apiToken
());
xhr
.
setRequestHeader
(
"Content-Type"
,
'application/json;charset=UTF-8'
);
xhr
.
onload
=
function
()
{
if
(
this
.
status
===
200
)
{
// let type = xhr.getResponseHeader('Content-Type');
var
fileName
=
'files.zip'
;
// 文件名称
var
headers
=
xhr
.
getAllResponseHeaders
();
fileName
=
headers
[
'x-file-name'
]
?
headers
[
'x-file-name'
]
:
fileName
;
if
(
this
.
status
===
200
)
{
var
blob
=
new
Blob
([
this
.
response
],
{
type
:
"arraybuffer"
});
if
(
typeof
window
.
navigator
.
msSaveBlob
!==
'undefined'
)
{
/*
...
...
@@ -138,6 +140,25 @@ taxDocumentManageModule.factory('taxDocumentListService',
oReq
.
responseType
=
"arraybuffer"
;
oReq
.
send
();
return
defer
.
promise
;
},
exportTableData
:
function
(
params
){
$
(
'#busy-indicator-container'
).
show
();
var
defer
=
$q
.
defer
();
var
xhr
=
new
XMLHttpRequest
();
xhr
.
onload
=
function
(
e
)
{
var
arraybuffer
=
xhr
.
response
;
console
.
info
(
"arraybuffer:"
,
arraybuffer
);
defer
.
resolve
(
arraybuffer
,
xhr
.
status
,
xhr
.
getAllResponseHeaders
());
};
xhr
.
open
(
"POST"
,
apiInterceptor
.
webApiHostUrl
+
'/taxDoc/exportExcel'
,
true
);
xhr
.
setRequestHeader
(
"Authorization"
,
apiInterceptor
.
tokenType
+
' '
+
apiInterceptor
.
apiToken
());
xhr
.
setRequestHeader
(
"Content-Type"
,
'application/json;charset=UTF-8'
);
xhr
.
responseType
=
"arraybuffer"
;
xhr
.
send
(
JSON
.
stringify
(
params
));
return
defer
.
promise
;
}
};
...
...
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