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
a1399503
Commit
a1399503
authored
Mar 16, 2019
by
gary
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、数据抽取
2、fixbug
parent
c6bee104
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
52 changed files
with
452 additions
and
63 deletions
+452
-63
OrgSyncJob.java
...ain/java/pwc/taxtech/atms/common/schedule/OrgSyncJob.java
+9
-2
BaseThreadFactory.java
.../java/pwc/taxtech/atms/common/util/BaseThreadFactory.java
+41
-0
DateUtils.java
...src/main/java/pwc/taxtech/atms/common/util/DateUtils.java
+32
-0
EbsExtractTypeConstant.java
...ava/pwc/taxtech/atms/constant/EbsExtractTypeConstant.java
+19
-0
EnumApiCodeMsg.java
.../java/pwc/taxtech/atms/constant/enums/EnumApiCodeMsg.java
+15
-8
EnumEbsExtractType.java
...a/pwc/taxtech/atms/constant/enums/EnumEbsExtractType.java
+39
-0
EbsApiController.java
...in/java/pwc/taxtech/atms/controller/EbsApiController.java
+0
-0
DataExtractParam.java
.../src/main/java/pwc/taxtech/atms/dto/DataExtractParam.java
+20
-0
EbsCallRateResp.java
...ain/java/pwc/taxtech/atms/dto/ebsdto/EbsCallRateResp.java
+51
-0
EbsCallResp.java
...rc/main/java/pwc/taxtech/atms/dto/ebsdto/EbsCallResp.java
+103
-0
DataImportService.java
...java/pwc/taxtech/atms/service/impl/DataImportService.java
+0
-0
OrganizationServiceImpl.java
...wc/taxtech/atms/service/impl/OrganizationServiceImpl.java
+3
-1
conf.properties
atms-api/src/main/resources/conf/conf.properties
+3
-0
conf_profile_dev.properties
atms-api/src/main/resources/conf/conf_profile_dev.properties
+2
-0
conf_profile_pub.properties
atms-api/src/main/resources/conf/conf_profile_pub.properties
+2
-0
conf_profile_staging.properties
...i/src/main/resources/conf/conf_profile_staging.properties
+5
-0
CommonIT.java
atms-api/src/test/java/pwc/taxtech/atms/CommonIT.java
+2
-0
EbsApiServiceImplTest.java
.../pwc/taxtech/atms/service/impl/EbsApiServiceImplTest.java
+0
-0
GaryTest.java
...src/test/java/pwc/taxtech/atms/service/impl/GaryTest.java
+0
-0
app.json
atms-web/src/main/webapp/app-resources/i18n/en-us/app.json
+1
-0
vat.json
atms-web/src/main/webapp/app-resources/i18n/en-us/vat.json
+4
-0
app.json
atms-web/src/main/webapp/app-resources/i18n/zh-CN/app.json
+1
-0
vat.json
atms-web/src/main/webapp/app-resources/i18n/zh-CN/vat.json
+3
-0
international-data-import.ctrl.js
...ternational-data-import/international-data-import.ctrl.js
+5
-14
international-data-import.html
.../international-data-import/international-data-import.html
+13
-13
edit-organization-modal.ctrl.js
...s/edit-organization-modal/edit-organization-modal.ctrl.js
+15
-2
import-adjust-table.less
...trols/import/import-adjust-table/import-adjust-table.less
+2
-0
import-audit-adjust.less
...trols/import/import-audit-adjust/import-audit-adjust.less
+2
-0
import-balance-sheet.less
...ols/import/import-balance-sheet/import-balance-sheet.less
+2
-0
import-cash-flow.less
...on/controls/import/import-cash-flow/import-cash-flow.less
+2
-0
import-certified-invoices-list.less
...rtified-invoices-list/import-certified-invoices-list.less
+2
-0
import-cit-bs-prc-adjust.less
...rt/import-cit-bs-prc-adjust/import-cit-bs-prc-adjust.less
+2
-0
import-cit-draft-account-mapping.less
...aft-account-mapping/import-cit-draft-account-mapping.less
+2
-0
import-cit-eam-assets-disposal.less
...t-eam-assets-disposal/import-cit-eam-assets-disposal.less
+2
-0
import-cit-journal-adjust.less
.../import-cit-journal-adjust/import-cit-journal-adjust.less
+2
-0
import-cit-profit-prc-adjust.less
...t-cit-profit-prc-adjust/import-cit-profit-prc-adjust.less
+2
-0
import-cit-salary-advance.less
.../import-cit-salary-advance/import-cit-salary-advance.less
+2
-0
import-cit-trial-balance.less
...rt/import-cit-trial-balance/import-cit-trial-balance.less
+2
-0
import-coupa-purchasing-report.less
...upa-purchasing-report/import-coupa-purchasing-report.less
+2
-0
import-invoice-data.less
...trols/import/import-invoice-data/import-invoice-data.less
+2
-0
import-invoice-record.less
...s/import/import-invoice-record/import-invoice-record.less
+2
-0
import-journal-entry.less
...ols/import/import-journal-entry/import-journal-entry.less
+2
-0
import-profit-loss.less
...ontrols/import/import-profit-loss/import-profit-loss.less
+2
-0
import-red-letter-info-table.less
...t-red-letter-info-table/import-red-letter-info-table.less
+2
-0
import-trialbalance.less
...trols/import/import-trialbalance/import-trialbalance.less
+2
-0
constant.js
atms-web/src/main/webapp/app/common/utils/constant.js
+10
-10
extract-financial-data.ctrl.js
...ion/extract-financial-data/extract-financial-data.ctrl.js
+11
-4
extract-financial-data.html
...action/extract-financial-data/extract-financial-data.html
+1
-1
extract-financial-data.js
...traction/extract-financial-data/extract-financial-data.js
+1
-1
extract-invoice-data.ctrl.js
...raction/extract-invoice-data/extract-invoice-data.ctrl.js
+2
-2
extract-invoice-data.html
...extraction/extract-invoice-data/extract-invoice-data.html
+1
-1
vat-preview-invoice-data.ctrl.js
...vat-preview-invoice-data/vat-preview-invoice-data.ctrl.js
+0
-4
No files found.
atms-api/src/main/java/pwc/taxtech/atms/common/schedule/OrgSyncJob.java
View file @
a1399503
package
pwc
.
taxtech
.
atms
.
common
.
schedule
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.google.common.collect.Lists
;
import
org.quartz.JobDataMap
;
import
org.quartz.JobExecutionContext
;
import
org.quartz.JobExecutionException
;
...
...
@@ -50,11 +52,13 @@ public class OrgSyncJob extends QuartzJobBean {
headers
.
put
(
"Content-Type"
,
"application/x-www-form-urlencoded"
);
headers
.
put
(
"Idap"
,
"eddie.wu_v"
);
int
pageSize
=
1
;
List
<
OrgSyncData
>
failObjs
=
Lists
.
newArrayList
();
try
{
for
(
int
i
=
1
;
i
<=
pageSize
;
i
++)
{
String
response
=
HttpUtil
.
get
(
orgSyncUrl
+
"?currentPage="
+
i
,
headers
);
logger
.
info
(
"机构信息同步记录:"
+
response
);
DDSyncOrgInfo
ddSyncOrgInfo
=
JSONObject
.
parseObject
(
response
,
DDSyncOrgInfo
.
class
);
pageSize
=
ddSyncOrgInfo
.
get
PageSiz
e
();
pageSize
=
ddSyncOrgInfo
.
get
TotalPag
e
();
List
<
OrgSyncData
>
orgSyncDatas
=
ddSyncOrgInfo
.
getData
();
orgSyncDatas
.
forEach
(
osd
->
{
OrganizationExample
example
=
new
OrganizationExample
();
...
...
@@ -77,10 +81,13 @@ public class OrgSyncJob extends QuartzJobBean {
if
(
regions
.
size
()
>
0
)
{
o
.
setRegionId
(
regions
.
get
(
0
).
getId
());
}
if
(
organizationMapper
.
countByExample
(
example
)<
1
){
failObjs
.
add
(
osd
);
}
organizationMapper
.
updateByExampleSelective
(
o
,
example
);
});
}
logger
.
info
(
"同步未匹配的机构记录:"
+
JSON
.
toJSONString
(
failObjs
));
}
catch
(
Exception
e
)
{
logger
.
error
(
String
.
format
(
"机构信息同步异常:[%s]"
,
e
.
getMessage
()),
e
);
}
...
...
atms-api/src/main/java/pwc/taxtech/atms/common/util/BaseThreadFactory.java
0 → 100644
View file @
a1399503
package
pwc
.
taxtech
.
atms
.
common
.
util
;
import
java.util.concurrent.ThreadFactory
;
import
java.util.concurrent.atomic.AtomicInteger
;
/**
* @Auther: Gary J Li
* @Date: 16/03/2019 10:11
* @Description:
*/
public
class
BaseThreadFactory
implements
ThreadFactory
{
private
static
final
AtomicInteger
poolNumber
=
new
AtomicInteger
(
1
);
private
final
ThreadGroup
group
;
private
final
AtomicInteger
threadNumber
=
new
AtomicInteger
(
1
);
private
final
String
namePrefix
;
public
BaseThreadFactory
(
String
poolName
)
{
SecurityManager
s
=
System
.
getSecurityManager
();
group
=
(
s
!=
null
)
?
s
.
getThreadGroup
()
:
Thread
.
currentThread
().
getThreadGroup
();
namePrefix
=
poolName
+
"-pool-"
+
poolNumber
.
getAndIncrement
()
+
"-thread-"
;
}
@Override
public
Thread
newThread
(
Runnable
r
)
{
Thread
t
=
new
Thread
(
group
,
r
,
namePrefix
+
threadNumber
.
getAndIncrement
(),
0
);
if
(
t
.
isDaemon
())
t
.
setDaemon
(
false
);
if
(
t
.
getPriority
()
!=
Thread
.
NORM_PRIORITY
)
t
.
setPriority
(
Thread
.
NORM_PRIORITY
);
return
t
;
}
}
atms-api/src/main/java/pwc/taxtech/atms/common/util/DateUtils.java
View file @
a1399503
...
...
@@ -630,6 +630,38 @@ public class DateUtils {
return
true
;
}
/**
* 获得该月第一天
* @param year
* @param month
* @return
*/
public
static
String
getFirstDayOfMonth
(
int
year
,
int
month
){
Calendar
cal
=
Calendar
.
getInstance
();
cal
.
set
(
Calendar
.
YEAR
,
year
);
cal
.
set
(
Calendar
.
MONTH
,
month
-
1
);
int
firstDay
=
cal
.
getActualMinimum
(
Calendar
.
DAY_OF_MONTH
);
cal
.
set
(
Calendar
.
DAY_OF_MONTH
,
firstDay
);
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
return
sdf
.
format
(
cal
.
getTime
());
}
/**
* 获得该月最后一天
* @param year
* @param month
* @return
*/
public
static
String
getLastDayOfMonth
(
int
year
,
int
month
){
Calendar
cal
=
Calendar
.
getInstance
();
cal
.
set
(
Calendar
.
YEAR
,
year
);
cal
.
set
(
Calendar
.
MONTH
,
month
-
1
);
int
lastDay
=
cal
.
getActualMaximum
(
Calendar
.
DAY_OF_MONTH
);
cal
.
set
(
Calendar
.
DAY_OF_MONTH
,
lastDay
);
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
return
sdf
.
format
(
cal
.
getTime
());
}
public
static
String
getPeriodBegin
(
int
year
,
int
period
)
{
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
Calendar
calendar
=
Calendar
.
getInstance
();
...
...
atms-api/src/main/java/pwc/taxtech/atms/constant/EbsExtractTypeConstant.java
0 → 100644
View file @
a1399503
package
pwc
.
taxtech
.
atms
.
constant
;
/**
* @Auther: Gary J Li
* @Date: 16/03/2019 00:44
* @Description:
*/
public
class
EbsExtractTypeConstant
{
public
static
final
int
TB
=
100
;
public
static
final
int
JE
=
101
;
public
static
final
int
BSPRC
=
102
;
public
static
final
int
PLPRC
=
103
;
public
static
final
int
BS
=
104
;
public
static
final
int
PL
=
105
;
public
static
final
int
CF
=
106
;
public
static
final
int
OCTB
=
107
;
public
static
final
int
RATE
=
108
;
}
atms-api/src/main/java/pwc/taxtech/atms/constant/enums/Enum
Error
CodeMsg.java
→
atms-api/src/main/java/pwc/taxtech/atms/constant/enums/Enum
Api
CodeMsg.java
View file @
a1399503
package
pwc
.
taxtech
.
atms
.
constant
.
enums
;
public
enum
Enum
Error
CodeMsg
{
public
enum
Enum
Api
CodeMsg
{
SUCCESS
(
0
,
"成功"
),
APIERROR
(-
1
,
"接口异常"
),
APIDATAEMPTY
(-
2
,
"接口输入数据为空"
);
APIDATAEMPTY
(-
2
,
"接口输入数据为空"
),
/** ebs调用Msg**/
CALLSUCCESS
(
10000
,
"调用成功,获取数据中![%s]"
),
CALLFAILED
(-
10000
,
"调用EBS接口失败![%s]"
),
BUSY
(-
10001
,
"接口调用失败,系统正忙!"
),
;
private
Integer
code
;
private
String
msg
;
Enum
Error
CodeMsg
(
Integer
code
,
String
msg
)
{
Enum
Api
CodeMsg
(
Integer
code
,
String
msg
)
{
this
.
code
=
code
;
this
.
msg
=
msg
;
}
...
...
@@ -22,19 +29,19 @@ public enum EnumErrorCodeMsg {
return
msg
;
}
public
static
Enum
Error
CodeMsg
fromCode
(
Integer
code
){
for
(
Enum
ErrorCodeMsg
error:
EnumError
CodeMsg
.
values
()){
public
static
Enum
Api
CodeMsg
fromCode
(
Integer
code
){
for
(
Enum
ApiCodeMsg
error:
EnumApi
CodeMsg
.
values
()){
if
(
error
.
getCode
().
intValue
()==
code
.
intValue
())
return
error
;
}
// 超出范围值默认返回异常
return
Enum
Error
CodeMsg
.
APIERROR
;
return
Enum
Api
CodeMsg
.
APIERROR
;
}
public
static
String
getMsg
(
Integer
code
){
for
(
Enum
ErrorCodeMsg
error:
EnumError
CodeMsg
.
values
()){
for
(
Enum
ApiCodeMsg
error:
EnumApi
CodeMsg
.
values
()){
if
(
error
.
getCode
().
intValue
()==
code
.
intValue
())
return
error
.
msg
;
}
// 超出范围值默认返回异常
return
Enum
Error
CodeMsg
.
APIERROR
.
msg
;
return
Enum
Api
CodeMsg
.
APIERROR
.
msg
;
}
}
atms-api/src/main/java/pwc/taxtech/atms/constant/enums/EnumEbsExtractType.java
0 → 100644
View file @
a1399503
package
pwc
.
taxtech
.
atms
.
constant
.
enums
;
public
enum
EnumEbsExtractType
{
TB
(
100
,
"月度科目余额表"
),
JE
(
101
,
"日记账"
),
BSPRC
(
102
,
"资产负债表PRC"
),
PLPRC
(
103
,
"利润表PRC"
),
BS
(
104
,
"资产负债表"
),
PL
(
105
,
"利润表"
),
CF
(
106
,
"直接法现金流量表"
),
OCTB
(
107
,
"所有者权益变动表"
),
RATE
(
108
,
"汇率表"
);
private
int
code
;
private
String
file
;
EnumEbsExtractType
(
int
code
,
String
file
)
{
this
.
code
=
code
;
this
.
file
=
file
;
}
public
int
getCode
()
{
return
code
;
}
public
String
getFile
()
{
return
file
;
}
public
static
String
getNameByCode
(
int
code
){
for
(
EnumEbsExtractType
enumImportType
:
EnumEbsExtractType
.
values
()){
if
(
Integer
.
compare
(
code
,
enumImportType
.
getCode
())==
0
){
return
enumImportType
.
getFile
();
}
}
return
null
;
}
}
atms-api/src/main/java/pwc/taxtech/atms/controller/EbsApiController.java
View file @
a1399503
This diff is collapsed.
Click to expand it.
atms-api/src/main/java/pwc/taxtech/atms/dto/DataExtractParam.java
View file @
a1399503
...
...
@@ -11,6 +11,10 @@ public class DataExtractParam {
private
List
<
Integer
>
dataTypes
;
private
String
effectiveDateFrom
;
private
String
effectiveDateTo
;
public
String
getPeriod
()
{
return
period
;
}
...
...
@@ -34,4 +38,20 @@ public class DataExtractParam {
public
void
setDataTypes
(
List
<
Integer
>
dataTypes
)
{
this
.
dataTypes
=
dataTypes
;
}
public
String
getEffectiveDateFrom
()
{
return
effectiveDateFrom
;
}
public
void
setEffectiveDateFrom
(
String
effectiveDateFrom
)
{
this
.
effectiveDateFrom
=
effectiveDateFrom
;
}
public
String
getEffectiveDateTo
()
{
return
effectiveDateTo
;
}
public
void
setEffectiveDateTo
(
String
effectiveDateTo
)
{
this
.
effectiveDateTo
=
effectiveDateTo
;
}
}
atms-api/src/main/java/pwc/taxtech/atms/dto/ebsdto/EbsCallRateResp.java
0 → 100644
View file @
a1399503
package
pwc
.
taxtech
.
atms
.
dto
.
ebsdto
;
/**
* @Auther: eddie.wu_v
* @Date: 2019/3/16 16:55
* @Description:
*/
public
class
EbsCallRateResp
{
private
String
companyCode
;
private
int
requestStatus
;
private
String
errorMessage
;
private
String
records
;
public
void
setCompanyCode
(
String
companyCode
)
{
this
.
companyCode
=
companyCode
;
}
public
String
getCompanyCode
()
{
return
companyCode
;
}
public
void
setRequestStatus
(
int
requestStatus
)
{
this
.
requestStatus
=
requestStatus
;
}
public
int
getRequestStatus
()
{
return
requestStatus
;
}
public
void
setErrorMessage
(
String
errorMessage
)
{
this
.
errorMessage
=
errorMessage
;
}
public
String
getErrorMessage
()
{
return
errorMessage
;
}
public
void
setRecords
(
String
records
)
{
this
.
records
=
records
;
}
public
String
getRecords
()
{
return
records
;
}
}
atms-api/src/main/java/pwc/taxtech/atms/dto/ebsdto/EbsCallResp.java
0 → 100644
View file @
a1399503
package
pwc
.
taxtech
.
atms
.
dto
.
ebsdto
;
import
java.util.Date
;
/**
* @Auther: eddie.wu_v
* @Date: 2019/3/15 17:07
* @Description:
*/
public
class
EbsCallResp
{
private
String
errBuf
;
private
String
retCode
;
private
int
ledgerId
;
private
String
companyCode
;
private
String
period
;
private
String
prcFlag
;
private
int
taskId
;
private
String
taskStatus
;
private
String
taskDesc
;
public
void
setErrBuf
(
String
errBuf
)
{
this
.
errBuf
=
errBuf
;
}
public
String
getErrBuf
()
{
return
errBuf
;
}
public
void
setRetCode
(
String
retCode
)
{
this
.
retCode
=
retCode
;
}
public
String
getRetCode
()
{
return
retCode
;
}
public
void
setLedgerId
(
int
ledgerId
)
{
this
.
ledgerId
=
ledgerId
;
}
public
int
getLedgerId
()
{
return
ledgerId
;
}
public
void
setCompanyCode
(
String
companyCode
)
{
this
.
companyCode
=
companyCode
;
}
public
String
getCompanyCode
()
{
return
companyCode
;
}
public
void
setPeriod
(
String
period
)
{
this
.
period
=
period
;
}
public
String
getPeriod
()
{
return
period
;
}
public
void
setPrcFlag
(
String
prcFlag
)
{
this
.
prcFlag
=
prcFlag
;
}
public
String
getPrcFlag
()
{
return
prcFlag
;
}
public
void
setTaskId
(
int
taskId
)
{
this
.
taskId
=
taskId
;
}
public
int
getTaskId
()
{
return
taskId
;
}
public
void
setTaskStatus
(
String
taskStatus
)
{
this
.
taskStatus
=
taskStatus
;
}
public
String
getTaskStatus
()
{
return
taskStatus
;
}
public
void
setTaskDesc
(
String
taskDesc
)
{
this
.
taskDesc
=
taskDesc
;
}
public
String
getTaskDesc
()
{
return
taskDesc
;
}
}
atms-api/src/main/java/pwc/taxtech/atms/service/impl/DataImportService.java
View file @
a1399503
This diff is collapsed.
Click to expand it.
atms-api/src/main/java/pwc/taxtech/atms/service/impl/OrganizationServiceImpl.java
View file @
a1399503
...
...
@@ -2013,7 +2013,7 @@ public class OrganizationServiceImpl extends BaseService{
if
(
StringUtils
.
isEmpty
(
org
.
getStructureId
()))
{
org
.
setStructureId
(
"null"
);
}
organizationMapper
.
insert
(
org
);
organizationMapper
.
insert
Selective
(
org
);
OperationResultDto
<
Object
>
validateSetRet
=
validateEnterpriseAccountSetDateTimeOverlap
(
orgDto
.
getEnterpriseAccountSetOrgList
());
if
(!
validateSetRet
.
getResult
())
{
...
...
@@ -2023,6 +2023,7 @@ public class OrganizationServiceImpl extends BaseService{
}
// 添加账套
if
(!
orgDto
.
getOversea
()){
for
(
EnterpriseAccountSetOrgDto
p
:
orgDto
.
getEnterpriseAccountSetOrgList
())
{
EnterpriseAccountSetOrg
enterpriseAccountSetOrg
=
new
EnterpriseAccountSetOrg
();
enterpriseAccountSetOrg
.
setId
(
CommonUtils
.
getUUID
());
...
...
@@ -2080,6 +2081,7 @@ public class OrganizationServiceImpl extends BaseService{
// CopyModelTree(orgDto);//__restoreroy__
addOrgSelfDimensionList
(
orgDto
);
}
// C#中的内部类CommonLogParams 在JAVA中已经被合并到OperationLogDto中
UpdateLogParams
tempCommonLogParms
=
new
UpdateLogParams
();
tempCommonLogParms
.
setOperationModule
(
Organization
.
value
());
...
...
atms-api/src/main/resources/conf/conf.properties
View file @
a1399503
...
...
@@ -56,3 +56,5 @@ cookie.maxAgeSeconds=${cookie.maxAgeSeconds}
api_white_list
=
${api_white_list}
org_sync_url
=
${org_sync_url}
org_sync_token
=
${org_sync_token}
ebs_call_url
=
${ebs_call_url}
\ No newline at end of file
atms-api/src/main/resources/conf/conf_profile_dev.properties
View file @
a1399503
...
...
@@ -54,3 +54,5 @@ cookie.maxAgeSeconds=86400
api_white_list
=
/ebs/api/v1/dd;
org_sync_url
=
http://10.96.238.10/erp-main-data-test-v2/api/companies
org_sync_token
=
174af08f
ebs_call_url
=
http://172.20.201.201:8020/ebs-proxy-test/dts
atms-api/src/main/resources/conf/conf_profile_pub.properties
View file @
a1399503
...
...
@@ -57,3 +57,5 @@ cookie.maxAgeSeconds=18000
api_white_list
=
/ebs/api/v1/dd;
org_sync_url
=
http://10.96.238.10/erp-main-data-test-v2/api/companies
org_sync_token
=
174af08f
ebs_call_url
=
http://172.20.201.201:8020/ebs-proxy-test/dts
atms-api/src/main/resources/conf/conf_profile_staging.properties
View file @
a1399503
...
...
@@ -49,3 +49,8 @@ get_user_info_url=http://mis-test.diditaxi.com.cn/auth/sso/api/
app_id
=
2500
app_key
=
983258e7fd04d7fa0534735f7b1c33f3
cookie.maxAgeSeconds
=
86400
api_white_list
=
/ebs/api/v1/dd;
org_sync_url
=
http://10.96.238.10/erp-main-data-test-v2/api/companies
org_sync_token
=
174af08f
ebs_call_url
=
http://172.20.201.201:8020/ebs-proxy-test/dts
atms-api/src/test/java/pwc/taxtech/atms/CommonIT.java
View file @
a1399503
...
...
@@ -53,6 +53,8 @@ public abstract class CommonIT {
private
SqlSessionFactory
sqlSessionFactory
;
@Autowired
protected
ObjectMapper
objectMapper
;
@Autowired
protected
DataImportLogMapper
dataImportLogMapper
;
@Autowired
protected
AreaMapper
areaMapper
;
...
...
atms-api/src/test/java/pwc/taxtech/atms/service/impl/EbsApiServiceImplTest.java
View file @
a1399503
This diff is collapsed.
Click to expand it.
atms-api/src/test/java/pwc/taxtech/atms/service/impl/GaryTest.java
0 → 100644
View file @
a1399503
This diff is collapsed.
Click to expand it.
atms-web/src/main/webapp/app-resources/i18n/en-us/app.json
View file @
a1399503
...
...
@@ -809,6 +809,7 @@
"dateFormat4YearMonthDay"
:
"yyyy-mm-dd"
,
"dateFormat4YearMonthDayCh"
:
"yyyy-mm-dd"
,
"RecordSize"
:
"Record Size"
,
"ExtractFile"
:
"Extract File"
,
"TaxPayerIdNum"
:
"纳税人识别号"
,
"ExtractDistribution"
:
"Extract Distribution"
,
...
...
atms-web/src/main/webapp/app-resources/i18n/en-us/vat.json
View file @
a1399503
...
...
@@ -1913,5 +1913,8 @@
"Company"
:
"Company"
,
"CompanySimpleName"
:
"Company Simple Name"
,
"DriverType"
:
"Driver Type"
,
"FileExportSuccess"
:
"File Export Success"
,
"FileExportFailed"
:
"File Export Failed"
,
"~MustBeEndOneApp"
:
"I Must be the End One, please!"
}
\ No newline at end of file
atms-web/src/main/webapp/app-resources/i18n/zh-CN/app.json
View file @
a1399503
...
...
@@ -856,6 +856,7 @@
"startsWith"
:
"起始于"
,
"RecordSize"
:
"记录条数"
,
"ExtractFile"
:
"抽取类型"
,
"TaxPayerIdNum"
:
"纳税人识别号"
,
"ExtractDistribution"
:
"抽取分发"
,
"Log"
:
"日志"
,
...
...
atms-web/src/main/webapp/app-resources/i18n/zh-CN/vat.json
View file @
a1399503
...
...
@@ -2276,6 +2276,8 @@
"CompanySimpleName"
:
"公司简称"
,
"DriverType"
:
"司机类型"
,
"FileExportSuccess"
:
"文件下载成功!"
,
"FileExportFailed"
:
"文件下载失败!"
,
"~MustBeEndOneApp"
:
"我必须是最后一个!"
}
\ No newline at end of file
atms-web/src/main/webapp/app/analysis/data-import/international-data-import/international-data-import.ctrl.js
View file @
a1399503
...
...
@@ -52,7 +52,7 @@
$scope
.
selectCountry
=
''
;
$scope
.
internationalDataList
=
constant
.
internationalDataList
;
$scope
.
countryList
=
[]
;
$scope
.
countryList
=
constant
.
countryCNList
;
$scope
.
companyList
=
[];
var
date
=
new
Date
();
...
...
@@ -540,23 +540,15 @@
};
var
initCompanyList
=
function
()
{
vatImportService
.
getAnalysisInternationalCompanyList
(
$scope
.
importType
,
$scope
.
UploadPeriodTime
).
success
(
function
(
data
)
{
orgService
.
getOrgListByUserId
(
).
success
(
function
(
data
)
{
if
(
data
)
{
$scope
.
companyList
=
data
;
}
});
};
var
initCountryList
=
function
()
{
vatImportService
.
getAnalysisInternationalCountryList
(
$scope
.
importType
,
$scope
.
UploadPeriodTime
).
success
(
function
(
data
)
{
if
(
data
)
{
$scope
.
countryList
=
data
;
}
});
};
$scope
.
selectCompanyEvent
=
function
(
company
){
$scope
.
selectCompany
=
company
;
$scope
.
selectCompanyEvent
=
function
(
i
){
$scope
.
selectCompany
=
i
.
name
;
refreshGrid
();
};
...
...
@@ -632,8 +624,6 @@
default
:
break
;
}
initCompanyList
();
initCountryList
();
};
//开始
...
...
@@ -643,6 +633,7 @@
checkUserOrganizationPermissionList
();
getUserPermission
();
initDatePicker
();
initCompanyList
();
$scope
.
$watch
(
'importExcelFile'
,
function
(
newValue
,
oldValue
)
{
if
(
newValue
!==
null
&&
newValue
!==
oldValue
)
{
...
...
atms-web/src/main/webapp/app/analysis/data-import/international-data-import/international-data-import.html
View file @
a1399503
...
...
@@ -15,11 +15,11 @@
<span
class=
"text-bold"
translate=
"SelectedImportType"
></span>
:
<div
class=
"dropdown"
style=
"margin-left:10px"
>
<button
class=
"btn btn-default dropdown-toggle"
type=
"button"
id=
"dropdownMenu2"
data-toggle=
"dropdown"
aria-haspopup=
"true"
aria-expanded=
"true"
style=
"width: 1
2
0px;"
>
data-toggle=
"dropdown"
aria-haspopup=
"true"
aria-expanded=
"true"
style=
"width: 1
4
0px;"
>
{{selectType ? ((selectType)|translate):('PleaseSelect' | translate)}}
<span
class=
"caret"
style=
"float: right "
></span>
</button>
<ul
class=
"dropdown-menu"
style=
"width: 1
2
0px;"
aria-labelledby=
"dropdownMenu2"
>
<ul
class=
"dropdown-menu"
style=
"width: 1
4
0px;"
aria-labelledby=
"dropdownMenu2"
>
<li
ng-repeat=
"i in internationalDataList"
ng-click=
"changeTab(i)"
>
<div
class=
"checkbox-custom checkbox-default"
>
<span
style=
"margin-left:15px; float: left;"
>
{{(i.type)|translate}}
</span>
...
...
@@ -36,11 +36,11 @@
<span
class=
"text-bold"
translate=
"Country"
></span>
:
<div
class=
"dropdown"
style=
"margin-left:10px"
>
<button
class=
"btn btn-default dropdown-toggle"
type=
"button"
id=
"dropdownMenu3"
data-toggle=
"dropdown"
aria-haspopup=
"true"
aria-expanded=
"true"
style=
"width: 1
2
0px;"
>
data-toggle=
"dropdown"
aria-haspopup=
"true"
aria-expanded=
"true"
style=
"width: 1
5
0px;"
>
{{selectCountry ? ((selectCountry)|translate):('PleaseSelect' | translate)}}
<span
class=
"caret"
style=
"float: right "
></span>
</button>
<ul
class=
"dropdown-menu"
style=
"width: 1
20px
;"
aria-labelledby=
"dropdownMenu3"
>
<ul
class=
"dropdown-menu"
style=
"width: 1
50px;max-height: 300px;overflow-y: auto
;"
aria-labelledby=
"dropdownMenu3"
>
<li
ng-repeat=
"i in countryList"
ng-click=
"selectCountryEvent(i)"
>
<div
class=
"checkbox-custom checkbox-default"
>
<span
style=
"margin-left:15px; float: left;"
>
{{i}}
</span>
...
...
@@ -51,14 +51,14 @@
<span
class=
"text-bold"
translate=
"Company"
></span>
:
<div
class=
"dropdown"
style=
"margin-left:10px"
>
<button
class=
"btn btn-default dropdown-toggle"
type=
"button"
id=
"dropdownMenu4"
data-toggle=
"dropdown"
aria-haspopup=
"true"
aria-expanded=
"true"
style=
"width:
12
0px;"
>
data-toggle=
"dropdown"
aria-haspopup=
"true"
aria-expanded=
"true"
style=
"width:
25
0px;"
>
{{selectCompany ? ((selectCompany)|translate):('PleaseSelect' | translate)}}
<span
class=
"caret"
style=
"float: right "
></span>
</button>
<ul
class=
"dropdown-menu"
style=
"width:
120px
;"
aria-labelledby=
"dropdownMenu4"
>
<ul
class=
"dropdown-menu"
style=
"width:
250px;max-height: 300px;overflow-y: auto
;"
aria-labelledby=
"dropdownMenu4"
>
<li
ng-repeat=
"i in companyList"
ng-click=
"selectCompanyEvent(i)"
>
<div
class=
"checkbox-custom checkbox-default"
>
<span
style=
"margin-left:15px; float: left;"
>
{{i}}
</span>
<span
style=
"margin-left:15px; float: left;"
>
{{i
.name
}}
</span>
</div>
</li>
</ul>
...
...
@@ -66,22 +66,22 @@
<button
type=
"button"
ngf-select=
""
type=
"file"
ng-model=
"importExcelFile"
ngf-drag-over-class=
"'dragover'"
accept=
".xls,.xlsx"
ngf-multiple=
"false"
ngf-allow-dir=
"false"
class=
"btn btn-vat-third"
style=
"margin-right:10px;margin-left:10px"
>
{{fileName ? ((fileName)|limitString:
maxTitleLength
):'SelectFile' | translate}}
ngf-allow-dir=
"false"
class=
"btn btn-vat-third"
style=
"margin-right:10px;margin-left:10px
;max-width: 30px;
"
>
{{fileName ? ((fileName)|limitString:
5
):'SelectFile' | translate}}
</button>
<button
type=
"button"
atms-permission
permission-control-type=
"ngIf"
permission-code=
"{{$root.vatPermission.dataImport.balanceSheet.importCode}}"
class=
"btn btn-vat-primary"
style=
"float:right;
margin-right: 10px;margin-left: 30
px;margin-top: 8px;"
<button
type=
"button"
atms-permission
permission-control-type=
"ngIf"
class=
"btn btn-vat-primary"
style=
"float:right;
margin-left: 15
px;margin-top: 8px;"
translate=
"ExportBtn"
ng-click=
"doExport()"
></button>
<button
type=
"button"
atms-permission
permission-control-type=
"ngIf"
class=
"btn btn-vat-primary"
style=
"float:right;
margin-right: 10px;margin-left: 30px;
margin-top: 8px;"
class=
"btn btn-vat-primary"
style=
"float:right;margin-top: 8px;"
translate=
"ImportBtn"
ng-click=
"doUpload()"
></button>
<button
type=
"button"
atms-permission
permission-control-type=
"ngIf"
class=
"btn btn-vat-primary"
style=
"float:right;
margin-right: 10px;margin-left: 30px;
margin-top: 8px;"
class=
"btn btn-vat-primary"
style=
"float:right;margin-top: 8px;"
translate=
"TemplateBtn"
ng-click=
"downloadTemplate()"
></button>
</div>
...
...
atms-web/src/main/webapp/app/common/controls/edit-organization-modal/edit-organization-modal.ctrl.js
View file @
a1399503
...
...
@@ -7,7 +7,7 @@ controller('editOrganizationModalController', ['$scope', '$log', '$translate', '
$scope
.
pleaseSelect
=
$translate
.
instant
(
'PleaseSelect'
);
$scope
.
startDate
=
new
Date
(
new
Date
().
getFullYear
()
-
20
,
1
,
1
);
$scope
.
endDate
=
new
Date
(
new
Date
().
getFullYear
()
+
20
,
1
,
1
);
$scope
.
viewMode
=
1
;
$scope
.
viewMode
=
days
;
var
defaultSelcectRegion
=
{
id
:
0
,
...
...
@@ -114,6 +114,18 @@ controller('editOrganizationModalController', ['$scope', '$log', '$translate', '
// 是否为境外企业
editModel
.
oversea
=
$scope
.
isInternational
;
if
((
typeof
$scope
.
editOrgModel
.
logoutTime
)
===
"string"
){
if
(
""
!==
(
$scope
.
editOrgModel
.
logoutTime
))
{
$scope
.
editOrgModel
.
logoutTime
=
new
Date
(
$scope
.
editOrgModel
.
logoutTime
);
}
}
if
((
typeof
$scope
.
editOrgModel
.
foundationDate
)
===
"string"
){
if
(
""
!==
(
$scope
.
editOrgModel
.
foundationDate
))
{
$scope
.
editOrgModel
.
foundationDate
=
new
Date
(
$scope
.
editOrgModel
.
foundationDate
);
}
}
if
(
$scope
.
isAdd
)
{
editModel
.
isActive
=
true
;
orgService
.
addOrg
(
editModel
).
success
(
function
(
orgId
)
{
...
...
@@ -250,9 +262,10 @@ controller('editOrganizationModalController', ['$scope', '$log', '$translate', '
if
(
$scope
.
componentSelectedArea
)
{
editModel
.
areaID
=
$scope
.
selectedAreaId
;
}
if
((
typeof
$scope
.
editOrgModel
.
foundationDate
)
===
"string"
){
if
(
""
!==
(
$scope
.
editOrgModel
.
foundationDate
))
{
$scope
.
editOrgModel
.
foundationDate
=
new
Date
(
Date
.
parse
(
$scope
.
editOrgModel
.
foundationDate
.
replace
(
/-/g
,
"/"
))
);
$scope
.
editOrgModel
.
foundationDate
=
new
Date
(
$scope
.
editOrgModel
.
foundationDate
);
}
}
...
...
atms-web/src/main/webapp/app/common/controls/import/import-adjust-table/import-adjust-table.less
View file @
a1399503
...
...
@@ -85,6 +85,8 @@
.dropdown-menu {
min-width: 100px;
max-height: 300px;
overflow-y: auto;
li {
text-align: center;
...
...
atms-web/src/main/webapp/app/common/controls/import/import-audit-adjust/import-audit-adjust.less
View file @
a1399503
...
...
@@ -20,6 +20,8 @@
.dropdown-menu {
min-width: 100px;
max-height: 300px;
overflow-y: auto;
li {
padding: 5px;
...
...
atms-web/src/main/webapp/app/common/controls/import/import-balance-sheet/import-balance-sheet.less
View file @
a1399503
...
...
@@ -85,6 +85,8 @@
.dropdown-menu {
min-width: 100px;
max-height: 300px;
overflow-y: auto;
li {
text-align: center;
...
...
atms-web/src/main/webapp/app/common/controls/import/import-cash-flow/import-cash-flow.less
View file @
a1399503
...
...
@@ -85,6 +85,8 @@
.dropdown-menu {
min-width: 100px;
max-height: 300px;
overflow-y: auto;
li {
text-align: center;
...
...
atms-web/src/main/webapp/app/common/controls/import/import-certified-invoices-list/import-certified-invoices-list.less
View file @
a1399503
...
...
@@ -85,6 +85,8 @@
.dropdown-menu {
min-width: 100px;
max-height: 300px;
overflow-y: auto;
li {
text-align: center;
...
...
atms-web/src/main/webapp/app/common/controls/import/import-cit-bs-prc-adjust/import-cit-bs-prc-adjust.less
View file @
a1399503
...
...
@@ -85,6 +85,8 @@
.dropdown-menu {
min-width: 100px;
max-height: 300px;
overflow-y: auto;
li {
text-align: center;
...
...
atms-web/src/main/webapp/app/common/controls/import/import-cit-draft-account-mapping/import-cit-draft-account-mapping.less
View file @
a1399503
...
...
@@ -85,6 +85,8 @@
.dropdown-menu {
min-width: 100px;
max-height: 300px;
overflow-y: auto;
li {
text-align: center;
...
...
atms-web/src/main/webapp/app/common/controls/import/import-cit-eam-assets-disposal/import-cit-eam-assets-disposal.less
View file @
a1399503
...
...
@@ -85,6 +85,8 @@
.dropdown-menu {
min-width: 100px;
max-height: 300px;
overflow-y: auto;
li {
text-align: center;
...
...
atms-web/src/main/webapp/app/common/controls/import/import-cit-journal-adjust/import-cit-journal-adjust.less
View file @
a1399503
...
...
@@ -85,6 +85,8 @@
.dropdown-menu {
min-width: 100px;
max-height: 300px;
overflow-y: auto;
li {
text-align: center;
...
...
atms-web/src/main/webapp/app/common/controls/import/import-cit-profit-prc-adjust/import-cit-profit-prc-adjust.less
View file @
a1399503
...
...
@@ -85,6 +85,8 @@
.dropdown-menu {
min-width: 100px;
max-height: 300px;
overflow-y: auto;
li {
text-align: center;
...
...
atms-web/src/main/webapp/app/common/controls/import/import-cit-salary-advance/import-cit-salary-advance.less
View file @
a1399503
...
...
@@ -85,6 +85,8 @@
.dropdown-menu {
min-width: 100px;
max-height: 300px;
overflow-y: auto;
li {
text-align: center;
...
...
atms-web/src/main/webapp/app/common/controls/import/import-cit-trial-balance/import-cit-trial-balance.less
View file @
a1399503
...
...
@@ -85,6 +85,8 @@
.dropdown-menu {
min-width: 100px;
max-height: 300px;
overflow-y: auto;
li {
text-align: center;
...
...
atms-web/src/main/webapp/app/common/controls/import/import-coupa-purchasing-report/import-coupa-purchasing-report.less
View file @
a1399503
...
...
@@ -85,6 +85,8 @@
.dropdown-menu {
min-width: 100px;
max-height: 300px;
overflow-y: auto;
li {
text-align: center;
...
...
atms-web/src/main/webapp/app/common/controls/import/import-invoice-data/import-invoice-data.less
View file @
a1399503
...
...
@@ -85,6 +85,8 @@
.dropdown-menu {
min-width: 100px;
max-height: 300px;
overflow-y: auto;
li {
text-align: center;
...
...
atms-web/src/main/webapp/app/common/controls/import/import-invoice-record/import-invoice-record.less
View file @
a1399503
...
...
@@ -85,6 +85,8 @@
.dropdown-menu {
min-width: 100px;
max-height: 300px;
overflow-y: auto;
li {
text-align: center;
...
...
atms-web/src/main/webapp/app/common/controls/import/import-journal-entry/import-journal-entry.less
View file @
a1399503
...
...
@@ -82,6 +82,8 @@
.dropdown-menu {
min-width: 100px;
max-height: 300px;
overflow-y: auto;
li {
text-align: center;
...
...
atms-web/src/main/webapp/app/common/controls/import/import-profit-loss/import-profit-loss.less
View file @
a1399503
...
...
@@ -85,6 +85,8 @@
.dropdown-menu {
min-width: 100px;
max-height: 300px;
overflow-y: auto;
li {
text-align: center;
...
...
atms-web/src/main/webapp/app/common/controls/import/import-red-letter-info-table/import-red-letter-info-table.less
View file @
a1399503
...
...
@@ -85,6 +85,8 @@
.dropdown-menu {
min-width: 100px;
max-height: 300px;
overflow-y: auto;
li {
text-align: center;
...
...
atms-web/src/main/webapp/app/common/controls/import/import-trialbalance/import-trialbalance.less
View file @
a1399503
...
...
@@ -85,6 +85,8 @@
.dropdown-menu {
min-width: 100px;
max-height: 300px;
overflow-y: auto;
li {
text-align: center;
...
...
atms-web/src/main/webapp/app/common/utils/constant.js
View file @
a1399503
...
...
@@ -1538,15 +1538,15 @@ constant.citImportFileType = {
};
constant
.
fileTypeList
=
[
{
code
:
0
,
type
:
"月度科目余额表"
},
{
code
:
1
,
type
:
"日记账"
},
{
code
:
2
,
type
:
"资产负债表PRC"
},
{
code
:
3
,
type
:
"利润表PRC"
},
{
code
:
4
,
type
:
"资产负债表"
},
{
code
:
5
,
type
:
"利润表"
},
{
code
:
6
,
type
:
"直接法现金流量表"
},
{
code
:
7
,
type
:
"所有者权益变动表"
},
{
code
:
8
,
type
:
"汇率表"
}
{
code
:
10
0
,
type
:
"月度科目余额表"
},
{
code
:
1
01
,
type
:
"日记账"
},
{
code
:
10
2
,
type
:
"资产负债表PRC"
},
{
code
:
10
3
,
type
:
"利润表PRC"
},
{
code
:
10
4
,
type
:
"资产负债表"
},
{
code
:
10
5
,
type
:
"利润表"
},
{
code
:
10
6
,
type
:
"直接法现金流量表"
},
{
code
:
10
7
,
type
:
"所有者权益变动表"
},
{
code
:
10
8
,
type
:
"汇率表"
}
];
constant
.
domesticDataList
=
[
...
...
@@ -1615,7 +1615,7 @@ constant.anlDownLoadFileNameList = [
{
code
:
101
,
name
:
"国际税税务数据_"
}
];
constant
.
countryCNList
=
[
'安哥拉'
,
'阿富汗'
,
'阿尔巴尼亚'
,
'阿尔及利亚'
,
'安道尔共和国'
,
'安圭拉岛'
,
'安提瓜和巴布达'
,
'阿根廷'
,
'亚美尼亚'
,
'阿森松'
,
'澳大利亚'
,
'奥地利'
,
'阿塞拜疆'
,
'巴哈马'
,
'巴林'
,
'孟加拉国'
,
'巴巴多斯'
,
'白俄罗斯'
,
'比利时'
,
'伯利兹'
,
'贝宁'
,
'百慕大群岛'
,
'玻利维亚'
,
'博茨瓦纳'
,
'巴西'
,
'文莱'
,
'保加利亚'
,
'布基纳法索'
,
'缅甸'
,
'布隆迪'
,
'喀麦隆'
,
'加拿大'
,
'开曼群岛'
,
'中非共和国'
,
'乍得'
,
'智利'
,
'中国'
,
'哥伦比亚'
,
'刚果'
,
'库克群岛'
,
'哥斯达黎加'
,
'古巴'
,
'塞浦路斯'
,
'捷克'
,
'丹麦'
,
'吉布提'
,
'多米尼加共和国'
,
'厄瓜多尔'
,
'埃及'
,
'萨尔瓦多'
,
'爱沙尼亚'
,
'埃塞俄比亚'
,
'斐济'
,
'芬兰'
,
'法国'
,
'法属圭亚那'
,
'法属玻利尼西亚'
,
'加蓬'
,
'冈比亚'
,
'格鲁吉亚'
,
'德国'
,
'加纳'
,
'直布罗陀'
,
'希腊'
,
'格林纳达'
,
'关岛'
,
'危地马拉'
,
'几内亚'
,
'圭亚那'
,
'海地'
,
'洪都拉斯'
,
'香港'
,
'匈牙利'
,
'冰岛'
,
'印度'
,
'印度尼西亚'
,
'伊朗'
,
'伊拉克'
,
'爱尔兰'
,
'以色列'
,
'意大利'
,
'科特迪瓦'
,
'牙买加'
,
'日本'
,
'约旦'
,
'柬埔寨'
,
'哈萨克斯坦'
,
'肯尼亚'
,
'韩国'
,
'科威特'
,
'吉尔吉斯坦'
,
'老挝'
,
'拉脱维亚'
,
'黎巴嫩'
,
'莱索托'
,
'利比里亚'
,
'利比亚'
,
'列支敦士登'
,
'立陶宛'
,
'卢森堡'
,
'澳门'
,
'马达加斯加'
,
'马拉维'
,
'马来西亚'
,
'马尔代夫'
,
'马里'
,
'马耳他'
,
'马里亚那群岛'
,
'马提尼克'
,
'毛里求斯'
,
'墨西哥'
,
'摩尔多瓦'
,
'摩纳哥'
,
'蒙古'
,
'蒙特塞拉特岛'
,
'摩洛哥'
,
'莫桑比克'
,
'纳米比亚'
,
'瑙鲁'
,
'尼泊尔'
,
'荷属安的列斯'
,
'荷兰'
,
'新西兰'
,
'尼加拉瓜'
,
'尼日尔'
,
'尼日利亚'
,
'朝鲜'
,
'挪威'
,
'阿曼'
,
'巴基斯坦'
,
'巴拿马'
,
'巴布亚新几内亚'
,
'巴拉圭'
,
'秘鲁'
,
'菲律宾'
,
'波兰'
,
'葡萄牙'
,
'波多黎各'
,
'卡塔尔'
,
'留尼旺'
,
'罗马尼亚'
,
'俄罗斯'
,
'圣卢西亚'
,
'圣文森特岛'
,
'东萨摩亚(美)'
,
'西萨摩亚'
,
'圣马力诺'
,
'圣多美和普林西比'
,
'沙特阿拉伯'
,
'塞内加尔'
,
'塞舌尔'
,
'塞拉利昂'
,
'新加坡'
,
'斯洛伐克'
,
'斯洛文尼亚'
,
'所罗门群岛'
,
'索马里'
,
'南非'
,
'西班牙'
,
'斯里兰卡'
,
'圣
卢西亚'
,
'圣
文森特'
,
'苏丹'
,
'苏里南'
,
'斯威士兰'
,
'瑞典'
,
'瑞士'
,
'叙利亚'
,
'台湾省'
,
'塔吉克斯坦'
,
'坦桑尼亚'
,
'泰国'
,
'多哥'
,
'汤加'
,
'特立尼达和多巴哥'
,
'突尼斯'
,
'土耳其'
,
'土库曼斯坦'
,
'乌干达'
,
'乌克兰'
,
'阿拉伯联合酋长国'
,
'英国'
,
'美国'
,
'乌拉圭'
,
'乌兹别克斯坦'
,
'委内瑞拉'
,
'越南'
,
'也门'
,
'南斯拉夫'
,
'津巴布韦'
,
'扎伊尔'
,
'赞比亚'
];
constant
.
countryCNList
=
[
'安哥拉'
,
'阿富汗'
,
'阿尔巴尼亚'
,
'阿尔及利亚'
,
'安道尔共和国'
,
'安圭拉岛'
,
'安提瓜和巴布达'
,
'阿根廷'
,
'亚美尼亚'
,
'阿森松'
,
'澳大利亚'
,
'奥地利'
,
'阿塞拜疆'
,
'巴哈马'
,
'巴林'
,
'孟加拉国'
,
'巴巴多斯'
,
'白俄罗斯'
,
'比利时'
,
'伯利兹'
,
'贝宁'
,
'百慕大群岛'
,
'玻利维亚'
,
'博茨瓦纳'
,
'巴西'
,
'文莱'
,
'保加利亚'
,
'布基纳法索'
,
'缅甸'
,
'布隆迪'
,
'喀麦隆'
,
'加拿大'
,
'开曼群岛'
,
'中非共和国'
,
'乍得'
,
'智利'
,
'中国'
,
'哥伦比亚'
,
'刚果'
,
'库克群岛'
,
'哥斯达黎加'
,
'古巴'
,
'塞浦路斯'
,
'捷克'
,
'丹麦'
,
'吉布提'
,
'多米尼加共和国'
,
'厄瓜多尔'
,
'埃及'
,
'萨尔瓦多'
,
'爱沙尼亚'
,
'埃塞俄比亚'
,
'斐济'
,
'芬兰'
,
'法国'
,
'法属圭亚那'
,
'法属玻利尼西亚'
,
'加蓬'
,
'冈比亚'
,
'格鲁吉亚'
,
'德国'
,
'加纳'
,
'直布罗陀'
,
'希腊'
,
'格林纳达'
,
'关岛'
,
'危地马拉'
,
'几内亚'
,
'圭亚那'
,
'海地'
,
'洪都拉斯'
,
'香港'
,
'匈牙利'
,
'冰岛'
,
'印度'
,
'印度尼西亚'
,
'伊朗'
,
'伊拉克'
,
'爱尔兰'
,
'以色列'
,
'意大利'
,
'科特迪瓦'
,
'牙买加'
,
'日本'
,
'约旦'
,
'柬埔寨'
,
'哈萨克斯坦'
,
'肯尼亚'
,
'韩国'
,
'科威特'
,
'吉尔吉斯坦'
,
'老挝'
,
'拉脱维亚'
,
'黎巴嫩'
,
'莱索托'
,
'利比里亚'
,
'利比亚'
,
'列支敦士登'
,
'立陶宛'
,
'卢森堡'
,
'澳门'
,
'马达加斯加'
,
'马拉维'
,
'马来西亚'
,
'马尔代夫'
,
'马里'
,
'马耳他'
,
'马里亚那群岛'
,
'马提尼克'
,
'毛里求斯'
,
'墨西哥'
,
'摩尔多瓦'
,
'摩纳哥'
,
'蒙古'
,
'蒙特塞拉特岛'
,
'摩洛哥'
,
'莫桑比克'
,
'纳米比亚'
,
'瑙鲁'
,
'尼泊尔'
,
'荷属安的列斯'
,
'荷兰'
,
'新西兰'
,
'尼加拉瓜'
,
'尼日尔'
,
'尼日利亚'
,
'朝鲜'
,
'挪威'
,
'阿曼'
,
'巴基斯坦'
,
'巴拿马'
,
'巴布亚新几内亚'
,
'巴拉圭'
,
'秘鲁'
,
'菲律宾'
,
'波兰'
,
'葡萄牙'
,
'波多黎各'
,
'卡塔尔'
,
'留尼旺'
,
'罗马尼亚'
,
'俄罗斯'
,
'圣卢西亚'
,
'圣文森特岛'
,
'东萨摩亚(美)'
,
'西萨摩亚'
,
'圣马力诺'
,
'圣多美和普林西比'
,
'沙特阿拉伯'
,
'塞内加尔'
,
'塞舌尔'
,
'塞拉利昂'
,
'新加坡'
,
'斯洛伐克'
,
'斯洛文尼亚'
,
'所罗门群岛'
,
'索马里'
,
'南非'
,
'西班牙'
,
'斯里兰卡'
,
'圣文森特'
,
'苏丹'
,
'苏里南'
,
'斯威士兰'
,
'瑞典'
,
'瑞士'
,
'叙利亚'
,
'台湾省'
,
'塔吉克斯坦'
,
'坦桑尼亚'
,
'泰国'
,
'多哥'
,
'汤加'
,
'特立尼达和多巴哥'
,
'突尼斯'
,
'土耳其'
,
'土库曼斯坦'
,
'乌干达'
,
'乌克兰'
,
'阿拉伯联合酋长国'
,
'英国'
,
'美国'
,
'乌拉圭'
,
'乌兹别克斯坦'
,
'委内瑞拉'
,
'越南'
,
'也门'
,
'南斯拉夫'
,
'津巴布韦'
,
'扎伊尔'
,
'赞比亚'
];
constant
.
countryENList
=
[
'Angola'
,
'Afghanistan'
,
'Albania'
,
'Algeria'
,
'Andorra'
,
'Anguilla'
,
'Antigua and Barbuda'
,
'Argentina'
,
'Armenia'
,
'Ascension'
,
'Australia'
,
'Austria'
,
'Azerbaijan'
,
'Bahamas'
,
'Bahrain'
,
'Bangladesh'
,
'Barbados'
,
'Belarus'
,
'Belgium'
,
'Belize'
,
'Benin'
,
'Bermuda Is'
,
'Bolivia'
,
'Botswana'
,
'Brazil'
,
'Brunei'
,
'Bulgaria'
,
'Burkina Faso'
,
'Burma'
,
'Burundi'
,
'Cameroon'
,
'Canada'
,
'Cayman Is'
,
'Central African Republic'
,
'Chad'
,
'Chile'
,
'China'
,
'Colombia'
,
'Congo'
,
'Cook Is'
,
'Costa Rica'
,
'Cuba'
,
'Cyprus'
,
'Czech Republic'
,
'Denmark'
,
'Djibouti'
,
'Dominica Rep'
,
'Ecuador'
,
'Egypt'
,
'EI Salvador'
,
'Estonia'
,
'Ethiopia'
,
'Fiji'
,
'Finland'
,
'France'
,
'French Guiana'
,
'French Polynesia'
,
'Gabon'
,
'Gambia'
,
'Georgia'
,
'Germany'
,
'Ghana'
,
'Gibraltar'
,
'Greece'
,
'Grenada'
,
'Guam'
,
'Guatemala'
,
'Guinea'
,
'Guyana'
,
'Haiti'
,
'Honduras'
,
'Hongkong'
,
'Hungary'
,
'Iceland'
,
'India'
,
'Indonesia'
,
'Iran'
,
'Iraq'
,
'Ireland'
,
'Israel'
,
'Italy'
,
'Ivory Coast'
,
'Jamaica'
,
'Japan'
,
'Jordan'
,
'Kampuchea (Cambodia )'
,
'Kazakstan'
,
'Kenya'
,
'Korea'
,
'Kuwait'
,
'Kyrgyzstan'
,
'Laos'
,
'Latvia'
,
'Lebanon'
,
'Lesotho'
,
'Liberia'
,
'Libya'
,
'Liechtenstein'
,
'Lithuania'
,
'Luxembourg'
,
'Macao'
,
'Madagascar'
,
'Malawi'
,
'Malaysia'
,
'Maldives'
,
'Mali'
,
'Malta'
,
'Mariana Is'
,
'Martinique'
,
'Mauritius'
,
'Mexico'
,
'Moldova'
,
'Monaco'
,
'Mongolia'
,
'Montserrat Is'
,
'Morocco'
,
'Mozambique'
,
'Namibia'
,
'Nauru'
,
'Nepal'
,
'Netheriands Antilles'
,
'Netherlands'
,
'New Zealand'
,
'Nicaragua'
,
'Niger'
,
'Nigeria'
,
'North Korea'
,
'Norway'
,
'Oman'
,
'Pakistan'
,
'Panama'
,
'Papua New Cuinea'
,
'Paraguay'
,
'Peru'
,
'Philippines'
,
'Poland'
,
'Portugal'
,
'Puerto Rico'
,
'Qatar'
,
'Reunion'
,
'Romania'
,
'Russia'
,
'Saint Lueia'
,
'Saint Vincent'
,
'Samoa Eastern'
,
'Samoa Western'
,
'San Marino'
,
'Sao Tome and Principe'
,
'Saudi Arabia'
,
'Senegal'
,
'Seychelles'
,
'Sierra Leone'
,
'Singapore'
,
'Slovakia'
,
'Slovenia'
,
'Solomon Is'
,
'Somali'
,
'South Africa'
,
'Spain'
,
'SriLanka'
,
'St.Lucia'
,
'St.Vincent'
,
'Sudan'
,
'Suriname'
,
'Swaziland'
,
'Sweden'
,
'Switzerland'
,
'Syria'
,
'Taiwan'
,
'Tajikstan'
,
'Tanzania'
,
'Thailand'
,
'Togo'
,
'Tonga'
,
'Trinidad and Tobago'
,
'Tunisia'
,
'Turkey'
,
'Turkmenistan'
,
'Uganda'
,
'Ukraine'
,
'United Arab Emirates'
,
'United Kiongdom'
,
'United States of America'
,
'Uruguay'
,
'Uzbekistan'
,
'Venezuela'
,
'Vietnam'
,
'Yemen'
,
'Yugoslavia'
,
'Zimbabwe'
,
'Zaire'
,
'Zambia'
];
...
...
atms-web/src/main/webapp/app/dataImport/data-extraction/extract-financial-data/extract-financial-data.ctrl.js
View file @
a1399503
...
...
@@ -105,7 +105,7 @@
};
//导入事件
var
callApi
=
function
()
{
var
call
Financial
Api
=
function
()
{
var
periodStr
=
$scope
.
UploadPeriodTime
;
dataImportService
.
callExtractFinancialData
(
$scope
.
checkedCompanyCodeList
,
periodStr
,
$scope
.
checkedFileCodeList
).
success
(
function
(
data
)
{
if
(
data
)
{
...
...
@@ -150,17 +150,24 @@
allowHeaderFiltering
:
false
,
width
:
'27%'
,
caption
:
$translate
.
instant
(
'CompanyName'
)
},
{
dataField
:
"fileType"
,
allowHeaderFiltering
:
false
,
width
:
'27%'
,
caption
:
$translate
.
instant
(
'ExtractFile'
)
},
{
dataField
:
"periodYear"
,
allowHeaderFiltering
:
false
,
width
:
'5%'
,
caption
:
$translate
.
instant
(
'YearPeriod'
)
},
{
},
/*{
dataField: "periodMonth",
allowHeaderFiltering: false,
width: '10%',
caption: $translate.instant('TMSPeriod')
},
{
}, */
{
dataField
:
"periodMonth"
,
allowHeaderFiltering
:
false
,
width
:
'5%'
,
...
...
@@ -389,7 +396,7 @@
};
var
initParam
=
function
()
{
$scope
.
call
Api
=
cal
lApi
;
$scope
.
call
FinancialApi
=
callFinancia
lApi
;
$scope
.
initPagingControl
=
initPagingControl
;
$scope
.
setButtonWrapStyle
=
setButtonWrapStyle
;
$scope
.
getGridHeight
=
getGridHeight
;
...
...
atms-web/src/main/webapp/app/dataImport/data-extraction/extract-financial-data/extract-financial-data.html
View file @
a1399503
...
...
@@ -67,7 +67,7 @@
<button
type=
"button"
atms-permission
permission-control-type=
"ngIf"
permission-code=
"{{$root.vatPermission.dataImport.balanceSheet.importCode}}"
class=
"btn btn-vat-primary"
style=
"float:right; margin-right: 10px;margin-left: 30px;margin-top: 8px;"
translate=
"ImportBtn"
ng-click=
"callApi()"
></button>
ng-click=
"call
Financial
Api()"
></button>
</div>
</div>
</form>
...
...
atms-web/src/main/webapp/app/dataImport/data-extraction/extract-financial-data/extract-financial-data.js
View file @
a1399503
...
...
@@ -8,7 +8,7 @@
serviceTypeId
:
"=?"
,
periodId
:
"=?"
},
controller
:
'extract
Invoice
DataController'
,
controller
:
'extract
Financial
DataController'
,
link
:
function
(
scope
,
element
)
{
$
(
'.main-contents'
)[
0
].
style
.
width
=
"260px"
;
$
(
'.data-import-contents'
)[
0
].
style
.
display
=
"block"
;
...
...
atms-web/src/main/webapp/app/dataImport/data-extraction/extract-invoice-data/extract-invoice-data.ctrl.js
View file @
a1399503
...
...
@@ -105,7 +105,7 @@
};
//导入事件
var
callApi
=
function
()
{
var
call
Invoice
Api
=
function
()
{
var
periodStr
=
$scope
.
UploadPeriodTime
;
dataImportService
.
callExtractInvoiceData
(
$scope
.
checkedCompanyCodeList
,
periodStr
,
$scope
.
checkedFileCodeList
).
success
(
function
(
data
)
{
...
...
@@ -389,7 +389,7 @@
};
var
initParam
=
function
()
{
$scope
.
call
Api
=
call
Api
;
$scope
.
call
InvoiceApi
=
callInvoice
Api
;
$scope
.
initPagingControl
=
initPagingControl
;
$scope
.
setButtonWrapStyle
=
setButtonWrapStyle
;
$scope
.
getGridHeight
=
getGridHeight
;
...
...
atms-web/src/main/webapp/app/dataImport/data-extraction/extract-invoice-data/extract-invoice-data.html
View file @
a1399503
...
...
@@ -67,7 +67,7 @@
<button
type=
"button"
atms-permission
permission-control-type=
"ngIf"
permission-code=
"{{$root.vatPermission.dataImport.balanceSheet.importCode}}"
class=
"btn btn-vat-primary"
style=
"float:right; margin-right: 10px;margin-left: 30px;margin-top: 8px;"
translate=
"ImportBtn"
ng-click=
"callApi()"
></button>
ng-click=
"call
Invoice
Api()"
></button>
</div>
</div>
</form>
...
...
atms-web/src/main/webapp/app/vat/preview/vat-preview-invoice-data/vat-preview-invoice-data.ctrl.js
View file @
a1399503
...
...
@@ -279,13 +279,9 @@
var
localDate
=
$filter
(
'date'
)(
new
Date
(),
'yyyyMMddHHmmss'
);
var
fileName
=
constant
.
exportExcelFileName
.
invoiceData
+
localDate
;
vatPreviewService
.
initExportIDData
(
$scope
.
queryParams
,
fileName
).
then
(
function
(
data
)
{
if
(
data
)
{
ackMessageBox
.
success
(
translate
(
'FileExportSuccess'
));
}
});
};
$scope
.
gridOptions
=
{
rowHeight
:
constant
.
UIGrid
.
rowHeight
,
selectionRowHeaderWidth
:
constant
.
UIGrid
.
rowHeight
,
...
...
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