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
9ad4b6dc
Commit
9ad4b6dc
authored
Apr 20, 2019
by
zhkwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、红字信息表覆盖导入;2、预提重分类展示;3、固资损失报废日期展示;
parent
841ba56d
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
163 additions
and
20 deletions
+163
-20
DataImportService.java
...java/pwc/taxtech/atms/service/impl/DataImportService.java
+1
-1
CitAssetEamMappingExtendsMapper.xml
...tech/atms/dao/extends/CitAssetEamMappingExtendsMapper.xml
+1
-1
cit.json
atms-web/src/main/webapp/app-resources/i18n/en-us/cit.json
+11
-2
cit.json
atms-web/src/main/webapp/app-resources/i18n/zh-CN/cit.json
+12
-7
cit-import-asset-list.ctrl.js
...mport/cit-import-asset-list/cit-import-asset-list.ctrl.js
+1
-0
cit-preview-salaryAdvance-list.ctrl.js
...salaryAdvance-list/cit-preview-salaryAdvance-list.ctrl.js
+18
-7
cit-asset-eam-mapping.ctrl.js
...ction/cit-asset-eam-mapping/cit-asset-eam-mapping.ctrl.js
+2
-2
cit-report-view.ctrl.js
...pp/app/cit/report/cit-report-view/cit-report-view.ctrl.js
+117
-0
No files found.
atms-api/src/main/java/pwc/taxtech/atms/service/impl/DataImportService.java
View file @
9ad4b6dc
...
...
@@ -1046,7 +1046,7 @@ public class DataImportService extends BaseService {
}
if
(
validateRes
&&
EnumTbImportType
.
CoverImport
.
getCode
().
equals
(
importType
))
{
RedLetterInfoTableExample
redLetterInfoTableExample
=
new
RedLetterInfoTableExample
();
redLetterInfoTableExample
.
createCriteria
().
andSubjectNumEqualTo
(
companyCode
).
and
FillInDateEqualTo
(
rlits
.
get
(
0
).
getFillInDate
());
redLetterInfoTableExample
.
createCriteria
().
andSubjectNumEqualTo
(
companyCode
).
and
PeriodEqualTo
(
rlits
.
get
(
0
).
getPeriod
());
redLetterInfoTableMapper
.
deleteByExample
(
redLetterInfoTableExample
);
}
redLetterInfoTableMapper
.
insertBatch
(
rlits
);
...
...
atms-dao/src/main/resources/pwc/taxtech/atms/dao/extends/CitAssetEamMappingExtendsMapper.xml
View file @
9ad4b6dc
...
...
@@ -62,7 +62,7 @@
</choose>
<choose>
<when
test=
"item.disposedDate != null"
>
#{item.disposedDate,jdbcType=TIMESTAMP},
</when>
<otherwise>
CURRENT_TIMESTAMP
,
</otherwise>
<otherwise>
null
,
</otherwise>
</choose>
<choose>
<when
test=
"item.residualRate != null"
>
#{item.residualRate,jdbcType=DECIMAL},
</when>
...
...
atms-web/src/main/webapp/app-resources/i18n/en-us/cit.json
View file @
9ad4b6dc
...
...
@@ -46,7 +46,7 @@
"TotalYearDifferenceAmount"
:
"Total Year Difference Amount:"
,
"AdjustmentValue"
:
"Adjustment Value"
,
"DisposedDate"
:
"Disposed Date"
,
"ResidualRate"
:
"Residual
Rate
"
,
"ResidualRate"
:
"Residual
Amount
"
,
"ResidualValue"
:
"Residual Value"
,
"TaxMonthDepreciationAmount"
:
"Monthly Depreciation Amount(Tax)"
,
"TaxToCurrentYearDepreciationAmount"
:
"Up To Current Year Depreciation Amount(Tax)"
,
...
...
@@ -1158,6 +1158,14 @@
"BeginOfNextYear"
:
"Begin Of Next Year"
,
"PreClassified"
:
"Pre Classified"
,
"AssetType"
:
"Asset Type"
,
"TaxGroupName"
:
"TaxGroupName"
"TaxGroupName"
:
"TaxGroupName"
,
"ProjectDescription"
:
"Project Description"
,
"ProductDescription"
:
"Product Description"
,
"Company"
:
"Company"
,
"CompanyDescription"
:
"Company Description"
,
"Segment1"
:
"Segment1"
,
"Segment1Description"
:
"Segment1 Description"
,
"Segment2"
:
"Segment2"
,
"Segment2Description"
:
"Segment2 Description"
}
\ No newline at end of file
atms-web/src/main/webapp/app-resources/i18n/zh-CN/cit.json
View file @
9ad4b6dc
...
...
@@ -46,7 +46,7 @@
"TotalYearDifferenceAmount"
:
"差异额:"
,
"AdjustmentValue"
:
"原值调整值"
,
"DisposedDate"
:
"报废日期"
,
"ResidualRate"
:
"残值
率
"
,
"ResidualRate"
:
"残值
额
"
,
"ResidualValue"
:
"残值"
,
"TaxMonthDepreciationAmount"
:
"每月折旧额(税务)"
,
"TaxToCurrentYearDepreciationAmount"
:
"截止本年累计折旧额(税务)"
,
...
...
@@ -1212,8 +1212,13 @@
"PreClassified"
:
"预提重分类"
,
"AssetType"
:
"资产类型"
,
"TaxGroupName"
:
"税务资产分类"
,
"ImportNotMatch"
:
"导入文件与选择机构或期间不匹配"
}
\ No newline at end of file
"ImportNotMatch"
:
"导入文件与选择机构或期间不匹配"
,
"ProjectDescription"
:
"项目描述"
,
"ProductDescription"
:
"产品描述"
,
"Company"
:
"公司间"
,
"CompanyDescription"
:
"公司间描述"
,
"Segment1"
:
"备用段"
,
"Segment1Description"
:
"备用段描述"
,
"Segment2"
:
"备用段"
,
"Segment2Description"
:
"备用段描述"
}
\ No newline at end of file
atms-web/src/main/webapp/app/cit/import/cit-import-asset-list/cit-import-asset-list.ctrl.js
View file @
9ad4b6dc
...
...
@@ -896,6 +896,7 @@
onValueChanged
:
function
(
data
)
{
$scope
.
citAssetsListDto
.
taxAccountCompare
=
data
.
value
;
$scope
.
taxAccountDifferenceOptions
.
value
=
data
.
value
;
getAssetResultList
(
$scope
.
displayType
-
1
);
}
};
...
...
atms-web/src/main/webapp/app/cit/preview/cit-preview-salaryAdvance-list/cit-preview-salaryAdvance-list.ctrl.js
View file @
9ad4b6dc
...
...
@@ -53,13 +53,24 @@
{
caption
:
$translate
.
instant
(
'usableInvoiceAmount'
),
dataField
:
"usableInvoiceAmount"
,
allowEditing
:
false
,
fixed
:
true
,
width
:
150
},
{
caption
:
$translate
.
instant
(
'usableBalance'
),
dataField
:
"usableBalance"
,
allowEditing
:
false
,
fixed
:
true
,
width
:
150
},
{
caption
:
$translate
.
instant
(
'advanceWriteOff'
),
dataField
:
"advanceWriteOff"
,
allowEditing
:
false
,
fixed
:
true
,
width
:
150
},
{
caption
:
$translate
.
instant
(
'checkOne'
),
dataField
:
"checkOne"
,
allowEditing
:
false
,
fixed
:
true
,
width
:
150
},
{
caption
:
$translate
.
instant
(
'reclassifyAmount'
),
dataField
:
"reclassifyAmount"
,
allowEditing
:
false
,
fixed
:
true
,
width
:
150
},
{
caption
:
$translate
.
instant
(
'exchangeRate'
),
dataField
:
"exchangeRate"
,
allowEditing
:
false
,
fixed
:
true
,
width
:
150
},
{
caption
:
$translate
.
instant
(
'ledgerId'
),
dataField
:
"ledgerId"
,
allowEditing
:
false
,
fixed
:
true
,
width
:
150
},
{
caption
:
$translate
.
instant
(
'debitAdvanceGene'
),
dataField
:
"debitAdvanceGene"
,
allowEditing
:
false
,
fixed
:
true
,
width
:
150
},
{
caption
:
$translate
.
instant
(
'creditPrepaidAccounts'
),
dataField
:
"creditPrepaidAccounts"
,
allowEditing
:
false
,
fixed
:
true
,
width
:
150
},
{
caption
:
$translate
.
instant
(
'remark'
),
dataField
:
"remark"
,
allowEditing
:
false
,
fixed
:
true
,
width
:
150
}
{
caption
:
$translate
.
instant
(
'Account'
),
dataField
:
"subjectCode"
,
allowEditing
:
false
,
fixed
:
true
,
width
:
150
},
{
caption
:
$translate
.
instant
(
'AccountDescription'
),
dataField
:
"subjectDescription"
,
allowEditing
:
false
,
fixed
:
true
,
width
:
150
},
{
caption
:
$translate
.
instant
(
'AuxiliarySubject'
),
dataField
:
"auxiliarySubject"
,
allowEditing
:
false
,
fixed
:
true
,
width
:
150
},
{
caption
:
$translate
.
instant
(
'AuxiliarySubjectDescription'
),
dataField
:
"auxiliarySubjectDescription"
,
allowEditing
:
false
,
fixed
:
true
,
width
:
150
},
{
caption
:
$translate
.
instant
(
'RevSearchProfitCenterCode'
),
dataField
:
"profitCenter"
,
allowEditing
:
false
,
fixed
:
true
,
width
:
150
},
{
caption
:
$translate
.
instant
(
'RevSearchProfitCenterName'
),
dataField
:
"profitCenterDescription"
,
allowEditing
:
false
,
fixed
:
true
,
width
:
150
},
{
caption
:
$translate
.
instant
(
'RevDetailProduct'
),
dataField
:
"product"
,
allowEditing
:
false
,
fixed
:
true
,
width
:
150
},
{
caption
:
$translate
.
instant
(
'ProductDescription'
),
dataField
:
"productDescription"
,
allowEditing
:
false
,
fixed
:
true
,
width
:
150
},
{
caption
:
$translate
.
instant
(
'c_projectID'
),
dataField
:
"project"
,
allowEditing
:
false
,
fixed
:
true
,
width
:
150
},
{
caption
:
$translate
.
instant
(
'ProjectDescription'
),
dataField
:
"projectDescription"
,
allowEditing
:
false
,
fixed
:
true
,
width
:
150
},
{
caption
:
$translate
.
instant
(
'Company'
),
dataField
:
"company"
,
allowEditing
:
false
,
fixed
:
true
,
width
:
150
},
{
caption
:
$translate
.
instant
(
'CompanyDescription'
),
dataField
:
"companyDescription"
,
allowEditing
:
false
,
fixed
:
true
,
width
:
150
},
{
caption
:
$translate
.
instant
(
'Segment1'
),
dataField
:
"segment1"
,
allowEditing
:
false
,
fixed
:
true
,
width
:
150
},
{
caption
:
$translate
.
instant
(
'Segment1Description'
),
dataField
:
"segment1Description"
,
allowEditing
:
false
,
fixed
:
true
,
width
:
150
},
{
caption
:
$translate
.
instant
(
'Segment2'
),
dataField
:
"segment2"
,
allowEditing
:
false
,
fixed
:
true
,
width
:
150
},
{
caption
:
$translate
.
instant
(
'Segment2Description'
),
dataField
:
"segment2Description"
,
allowEditing
:
false
,
fixed
:
true
,
width
:
150
},
];
$scope
.
assetsResultGridOptions
=
{
...
...
atms-web/src/main/webapp/app/cit/reduction/cit-asset-eam-mapping/cit-asset-eam-mapping.ctrl.js
View file @
9ad4b6dc
...
...
@@ -245,8 +245,8 @@
{
caption
:
$translate
.
instant
(
'AssetName'
),
dataField
:
"assetDescription"
,
width
:
200
},
{
caption
:
$translate
.
instant
(
'BuyDate'
),
dataField
:
"buyDate"
,
dataType
:
"date"
,
format
:
"yyyy-MM-dd"
,
width
:
100
},
{
caption
:
$translate
.
instant
(
'D
epreciationDate2
'
),
dataField
:
"d
epreciation
Date"
,
caption
:
$translate
.
instant
(
'D
isposedDate
'
),
dataField
:
"d
isposed
Date"
,
dataType
:
"date"
,
format
:
"yyyy-MM-dd"
,
width
:
100
...
...
atms-web/src/main/webapp/app/cit/report/cit-report-view/cit-report-view.ctrl.js
View file @
9ad4b6dc
...
...
@@ -1013,6 +1013,24 @@ debugger;
}
}
});
if
(
'export'
==
$scope
.
evenType
)
{
var
xhr
=
new
XMLHttpRequest
();
xhr
.
onload
=
function
(
e
)
{
var
arraybuffer
=
xhr
.
response
;
exportToExcel
(
arraybuffer
,
vatSessionService
.
project
.
name
+
'-'
+
vatSessionService
.
month
+
'-纳税申报.xlsx'
);
$
(
'#busy-indicator-container'
).
hide
();
};
xhr
.
open
(
"POST"
,
apiInterceptor
.
webApiHostUrl
+
'/citReport/exportReportData/'
+
vatSessionService
.
project
.
id
+
'/'
+
0
,
true
);
xhr
.
setRequestHeader
(
"Authorization"
,
apiInterceptor
.
tokenType
+
' '
+
apiInterceptor
.
apiToken
());
xhr
.
setRequestHeader
(
"Content-Type"
,
'application/json;charset=UTF-8'
);
xhr
.
responseType
=
"arraybuffer"
;
xhr
.
send
(
JSON
.
stringify
({
reportIds
:
reportIds
}));
return
;
}
if
(
'upload'
==
$scope
.
evenType
)
{
var
xhr
=
new
XMLHttpRequest
();
xhr
.
onload
=
function
(
e
)
{
...
...
@@ -1105,6 +1123,105 @@ debugger;
return
;
};
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'
);
return
defer
.
promise
;
};
var
timeOutCount
=
0
;
function
timeOutExportSpread
(
exportReportData
)
{
...
...
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