Commit 281e5c4d authored by zhkwei's avatar zhkwei

CIT--fixbug

parent d06e561c
...@@ -90,6 +90,9 @@ public class TemplateController extends BaseController { ...@@ -90,6 +90,9 @@ public class TemplateController extends BaseController {
Sheet sheet = workbook.getSheetAt(i); Sheet sheet = workbook.getSheetAt(i);
for (int r = sheet.getFirstRowNum(); r <= sheet.getLastRowNum(); r++) { for (int r = sheet.getFirstRowNum(); r <= sheet.getLastRowNum(); r++) {
Row row = sheet.getRow(r); Row row = sheet.getRow(r);
if(row == null){
continue;
}
for (int c = row.getFirstCellNum(); c <= row.getLastCellNum(); c++) { for (int c = row.getFirstCellNum(); c <= row.getLastCellNum(); c++) {
if(c < 0){ if(c < 0){
continue; continue;
......
...@@ -1277,6 +1277,7 @@ public class CitImportExcelServiceImpl extends BaseService { ...@@ -1277,6 +1277,7 @@ public class CitImportExcelServiceImpl extends BaseService {
beanUtil.copyProperties(trialBalance,citTbam); beanUtil.copyProperties(trialBalance,citTbam);
citTbam.setId(idService.nextId()); citTbam.setId(idService.nextId());
citTbam.setAttribute(daMapping.getAttribute()); citTbam.setAttribute(daMapping.getAttribute());
citTbam.setAccountDescription(citJournal.getSubjectName());
citTbamList.add(citTbam); citTbamList.add(citTbam);
} }
// citDraftAccountMappings.stream().forEach(daMapping -> { // citDraftAccountMappings.stream().forEach(daMapping -> {
......
...@@ -370,6 +370,9 @@ public class TemplateGroupServiceImpl extends AbstractService { ...@@ -370,6 +370,9 @@ public class TemplateGroupServiceImpl extends AbstractService {
Sheet temp = wtemp.getSheetAt(0); Sheet temp = wtemp.getSheetAt(0);
for(int j = temp.getFirstRowNum(); j < temp.getLastRowNum(); j ++){ for(int j = temp.getFirstRowNum(); j < temp.getLastRowNum(); j ++){
Row row = temp.getRow(j); Row row = temp.getRow(j);
if(row == null){
continue;
}
for(int k = row.getFirstCellNum(); k < row.getLastCellNum(); k++){ for(int k = row.getFirstCellNum(); k < row.getLastCellNum(); k++){
Cell cell = row.getCell(k); Cell cell = row.getCell(k);
if (cell == null) { if (cell == null) {
...@@ -405,6 +408,9 @@ public class TemplateGroupServiceImpl extends AbstractService { ...@@ -405,6 +408,9 @@ public class TemplateGroupServiceImpl extends AbstractService {
List<PeriodDataSource> periodDataSourceList = Lists.newArrayList(); List<PeriodDataSource> periodDataSourceList = Lists.newArrayList();
for (int r = sheet.getFirstRowNum(); r <= sheet.getLastRowNum(); r++) { for (int r = sheet.getFirstRowNum(); r <= sheet.getLastRowNum(); r++) {
Row row = sheet.getRow(r); Row row = sheet.getRow(r);
if(row == null){
continue;
}
for (int c = row.getFirstCellNum(); c <= row.getLastCellNum(); c++) { for (int c = row.getFirstCellNum(); c <= row.getLastCellNum(); c++) {
if(c<0){ if(c<0){
continue; continue;
......
...@@ -34,8 +34,10 @@ ...@@ -34,8 +34,10 @@
"AssetGroupName": "Asset GroupName", "AssetGroupName": "Asset GroupName",
"AssetGroupNameValidation": "Pleas Enter Asset GroupName", "AssetGroupNameValidation": "Pleas Enter Asset GroupName",
"AssetDescription": "Asset Description", "AssetDescription": "Asset Description",
"AssetName": "Asset Name",
"BuyDate": "Buy Date", "BuyDate": "Buy Date",
"DepreciationDate": "Depreciation Start Date", "DepreciationDate": "Depreciation Start Date",
"DepreciationDate2": "Depreciation Date",
"DepreciationPeriod": "Depreciation Period", "DepreciationPeriod": "Depreciation Period",
"AcquisitionValue": "Acquisition Value", "AcquisitionValue": "Acquisition Value",
"TotalAccountAcquisitionValue": "Total Account Acquisition Value:", "TotalAccountAcquisitionValue": "Total Account Acquisition Value:",
...@@ -45,6 +47,7 @@ ...@@ -45,6 +47,7 @@
"AdjustmentValue": "Adjustment Value", "AdjustmentValue": "Adjustment Value",
"DisposedDate": "Disposed Date", "DisposedDate": "Disposed Date",
"ResidualRate": "Residual Rate", "ResidualRate": "Residual Rate",
"ResidualValue": "Residual Value",
"TaxMonthDepreciationAmount": "Monthly Depreciation Amount(Tax)", "TaxMonthDepreciationAmount": "Monthly Depreciation Amount(Tax)",
"TaxToCurrentYearDepreciationAmount": "Up To Current Year Depreciation Amount(Tax)", "TaxToCurrentYearDepreciationAmount": "Up To Current Year Depreciation Amount(Tax)",
"ReportExportConfirm": "The Report Data Has not Been Saved, and the Operation Result May be Inconsistent With the Actual.Confirm to perform this operation??", "ReportExportConfirm": "The Report Data Has not Been Saved, and the Operation Result May be Inconsistent With the Actual.Confirm to perform this operation??",
......
...@@ -34,8 +34,10 @@ ...@@ -34,8 +34,10 @@
"AssetGroupName": "资产类别", "AssetGroupName": "资产类别",
"AssetGroupNameValidation": "请输入资产类别", "AssetGroupNameValidation": "请输入资产类别",
"AssetDescription": "资产描述", "AssetDescription": "资产描述",
"AssetName": "资产名称",
"BuyDate": "购入日期", "BuyDate": "购入日期",
"DepreciationDate": "开始折旧日期", "DepreciationDate": "开始折旧日期",
"DepreciationDate2": "报废日期",
"DepreciationPeriod": "折旧期限", "DepreciationPeriod": "折旧期限",
"AcquisitionValue": "原值", "AcquisitionValue": "原值",
"TotalAccountAcquisitionValue": "资产原值:", "TotalAccountAcquisitionValue": "资产原值:",
...@@ -45,6 +47,7 @@ ...@@ -45,6 +47,7 @@
"AdjustmentValue": "原值调整值", "AdjustmentValue": "原值调整值",
"DisposedDate": "报废日期", "DisposedDate": "报废日期",
"ResidualRate": "残值率", "ResidualRate": "残值率",
"ResidualValue": "残值",
"TaxMonthDepreciationAmount": "每月折旧额(税务)", "TaxMonthDepreciationAmount": "每月折旧额(税务)",
"TaxToCurrentYearDepreciationAmount": "截止本年累计折旧额(税务)", "TaxToCurrentYearDepreciationAmount": "截止本年累计折旧额(税务)",
"ReportExportConfirm": "报表数据还未保存,操作结果可能和实际不一致,确定要执行这个操作吗?", "ReportExportConfirm": "报表数据还未保存,操作结果可能和实际不一致,确定要执行这个操作吗?",
......
...@@ -92,26 +92,26 @@ function ($scope, $q, $log, $translate, $location, loginContext, enums, vatSessi ...@@ -92,26 +92,26 @@ function ($scope, $q, $log, $translate, $location, loginContext, enums, vatSessi
$scope.nodeDicKey = constant.DictionaryDictKey.DataImport; $scope.nodeDicKey = constant.DictionaryDictKey.DataImport;
$scope.linkShort = enums.linkShort.ImportData; $scope.linkShort = enums.linkShort.ImportData;
$scope.menus = [ $scope.menus = [
{ // {
name: 'balanceSheet', permission: constant.citPermission.dataImport.balanceSheet.queryCode, // name: 'balanceSheet', permission: constant.citPermission.dataImport.balanceSheet.queryCode,
text: $translate.instant('balanceSheet'), icon: 'fa fa-bank' // text: $translate.instant('balanceSheet'), icon: 'fa fa-bank'
}, // },
{ // {
name: 'documentList', permission: constant.citPermission.dataImport.documentList.queryCode, // name: 'documentList', permission: constant.citPermission.dataImport.documentList.queryCode,
text: $translate.instant('documentList'), icon: 'fa fa-file-text-o' // text: $translate.instant('documentList'), icon: 'fa fa-file-text-o'
}, // },
{ // {
name: 'journalEntry', permission: constant.citPermission.dataImport.journalEntry.queryCode, // name: 'journalEntry', permission: constant.citPermission.dataImport.journalEntry.queryCode,
text: $translate.instant('journalEntry'), icon: 'fa fa-align-left' // text: $translate.instant('journalEntry'), icon: 'fa fa-align-left'
}, // },
{ // {
name: 'erpData', permission: constant.citPermission.dataImport.erpImport.queryCode, // name: 'erpData', permission: constant.citPermission.dataImport.erpImport.queryCode,
text: $translate.instant('erpData'), icon: 'fa fa-list-ul' // text: $translate.instant('erpData'), icon: 'fa fa-list-ul'
}, // },
{ // {
name: 'auditAdjust', permission: constant.citPermission.dataImport.auditAdjust.queryCode, // name: 'auditAdjust', permission: constant.citPermission.dataImport.auditAdjust.queryCode,
text: $translate.instant('auditAdjust'), icon: 'fa fa-adjust' // text: $translate.instant('auditAdjust'), icon: 'fa fa-adjust'
}, // },
{ {
name: 'assetList', permission: constant.citPermission.dataImport.assetList.queryCode, name: 'assetList', permission: constant.citPermission.dataImport.assetList.queryCode,
text: $translate.instant('AssetList'), icon: 'fa fa-list-ul' text: $translate.instant('AssetList'), icon: 'fa fa-list-ul'
......
...@@ -312,7 +312,7 @@ ...@@ -312,7 +312,7 @@
{ name: $translate.instant('AccountCode'), width: 200, cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.accountCode}}<span></div>' }, { name: $translate.instant('AccountCode'), width: 200, cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.accountCode}}<span></div>' },
{ name: $translate.instant('AccountDescription'), width: 200,cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.accountDescription}}<span></div>' }, { name: $translate.instant('AccountDescription'), width: 200,cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.accountDescription}}<span></div>' },
{ name: $translate.instant('AccountPeriod'), width: 200,cellTemplate: '<div class="ui-grid-cell-contents"><span >{{row.entity.accountPeriod}}</span></div>' }, { name: $translate.instant('AccountPeriod'), width: 200,cellTemplate: '<div class="ui-grid-cell-contents"><span >{{row.entity.accountPeriod}}</span></div>' },
{ name: $translate.instant('DebitAmount'), width: 200,cellTemplate: '<div class="ui-grid-cell-contents"><span >{{row.entity.debitAmount | date:"yyyy-MM-dd"}}</span></div>' }, { name: $translate.instant('DebitAmount'), width: 200,cellTemplate: '<div class="ui-grid-cell-contents"><span >{{row.entity.debitAmount}}</span></div>' },
{ name: $translate.instant('CreditAmount'), width: 200,cellTemplate: '<div class="ui-grid-cell-contents"><span >{{row.entity.creditAmount}}</span></div>' }, { name: $translate.instant('CreditAmount'), width: 200,cellTemplate: '<div class="ui-grid-cell-contents"><span >{{row.entity.creditAmount}}</span></div>' },
{ name: $translate.instant('BeginningBalance'), width: 200,cellTemplate: '<div class="ui-grid-cell-contents"><span >{{row.entity.beginningBalance}}</span></div>' }, { name: $translate.instant('BeginningBalance'), width: 200,cellTemplate: '<div class="ui-grid-cell-contents"><span >{{row.entity.beginningBalance}}</span></div>' },
{ name: $translate.instant('EndingBalance'), width: 200,cellTemplate: '<div class="ui-grid-cell-contents"><span >{{row.entity.endingBalance}}</span></div>' }, { name: $translate.instant('EndingBalance'), width: 200,cellTemplate: '<div class="ui-grid-cell-contents"><span >{{row.entity.endingBalance}}</span></div>' },
......
...@@ -316,7 +316,7 @@ ...@@ -316,7 +316,7 @@
{ name: $translate.instant('AccountCode'), width: 200, cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.accountCode}}<span></div>' }, { name: $translate.instant('AccountCode'), width: 200, cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.accountCode}}<span></div>' },
{ name: $translate.instant('AccountDescription'), width: 200,cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.accountDescription}}<span></div>' }, { name: $translate.instant('AccountDescription'), width: 200,cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.accountDescription}}<span></div>' },
{ name: $translate.instant('AccountPeriod'), width: 200,cellTemplate: '<div class="ui-grid-cell-contents"><span >{{row.entity.accountPeriod}}</span></div>' }, { name: $translate.instant('AccountPeriod'), width: 200,cellTemplate: '<div class="ui-grid-cell-contents"><span >{{row.entity.accountPeriod}}</span></div>' },
{ name: $translate.instant('DebitAmount'), width: 200,cellTemplate: '<div class="ui-grid-cell-contents"><span >{{row.entity.debitAmount | date:"yyyy-MM-dd"}}</span></div>' }, { name: $translate.instant('DebitAmount'), width: 200,cellTemplate: '<div class="ui-grid-cell-contents"><span >{{row.entity.debitAmount}}</span></div>' },
{ name: $translate.instant('CreditAmount'), width: 200,cellTemplate: '<div class="ui-grid-cell-contents"><span >{{row.entity.creditAmount}}</span></div>' }, { name: $translate.instant('CreditAmount'), width: 200,cellTemplate: '<div class="ui-grid-cell-contents"><span >{{row.entity.creditAmount}}</span></div>' },
{ name: $translate.instant('BeginningBalance'), width: 200,cellTemplate: '<div class="ui-grid-cell-contents"><span >{{row.entity.beginningBalance}}</span></div>' }, { name: $translate.instant('BeginningBalance'), width: 200,cellTemplate: '<div class="ui-grid-cell-contents"><span >{{row.entity.beginningBalance}}</span></div>' },
{ name: $translate.instant('EndingBalance'), width: 200,cellTemplate: '<div class="ui-grid-cell-contents"><span >{{row.entity.endingBalance}}</span></div>' }, { name: $translate.instant('EndingBalance'), width: 200,cellTemplate: '<div class="ui-grid-cell-contents"><span >{{row.entity.endingBalance}}</span></div>' },
......
...@@ -284,12 +284,12 @@ ...@@ -284,12 +284,12 @@
columnDefs: [ columnDefs: [
{ name: $translate.instant('AssetType'), width: 200, cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.assetType}}<span></div>' }, { name: $translate.instant('AssetType'), width: 200, cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.assetType}}<span></div>' },
{ name: $translate.instant('AssetNumber'), width: 200,cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.assetNumber}}<span></div>' }, { name: $translate.instant('AssetNumber'), width: 200,cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.assetNumber}}<span></div>' },
{ name: $translate.instant('AssetDescription'), width: 200,cellTemplate: '<div class="ui-grid-cell-contents"><span >{{row.entity.assetDescription}}</span></div>' }, { name: $translate.instant('AssetName'), width: 200,cellTemplate: '<div class="ui-grid-cell-contents"><span >{{row.entity.assetDescription}}</span></div>' },
{ name: $translate.instant('BuyDate'), width: 200,cellTemplate: '<div class="ui-grid-cell-contents"><span >{{row.entity.buyDate | date:"yyyy-MM-dd"}}</span></div>' }, { name: $translate.instant('BuyDate'), width: 200,cellTemplate: '<div class="ui-grid-cell-contents"><span >{{row.entity.buyDate | date:"yyyy-MM-dd"}}</span></div>' },
{ name: $translate.instant('DepreciationDate'), width: 200,cellTemplate: '<div class="ui-grid-cell-contents"><span >{{row.entity.depreciationDate | date:"yyyy-MM-dd"}}</span></div>' }, { name: $translate.instant('DepreciationDate2'), width: 200,cellTemplate: '<div class="ui-grid-cell-contents"><span >{{row.entity.depreciationDate | date:"yyyy-MM-dd"}}</span></div>' },
{ name: $translate.instant('AssetGroupName'), width: 200,cellTemplate: '<div class="ui-grid-cell-contents"><span >{{row.entity.assetGroupName}}</span></div>' }, { name: $translate.instant('AssetGroupName'), width: 200,cellTemplate: '<div class="ui-grid-cell-contents"><span >{{row.entity.assetGroupName}}</span></div>' },
{ name: $translate.instant('AcquisitionValue'), width: 200,cellTemplate: '<div class="ui-grid-cell-contents"><span >{{row.entity.acquisitionValue}}</span></div>' }, { name: $translate.instant('AcquisitionValue'), width: 200,cellTemplate: '<div class="ui-grid-cell-contents"><span >{{row.entity.acquisitionValue}}</span></div>' },
{ name: $translate.instant('ResidualRate'), width: 200,cellTemplate: '<div class="ui-grid-cell-contents"><span >{{row.entity.residualRate}}</span></div>' }, { name: $translate.instant('ResidualValue'), width: 200,cellTemplate: '<div class="ui-grid-cell-contents"><span >{{row.entity.residualRate}}</span></div>' },
{ name: $translate.instant('YearEndValue'), width: 200,cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.yearEndValue}}</span></div>' }, { name: $translate.instant('YearEndValue'), width: 200,cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.yearEndValue}}</span></div>' },
{ name: $translate.instant('CompensationSaleAmount'), width: 200,cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.compensationSaleAmount}}</span></div>' }, { name: $translate.instant('CompensationSaleAmount'), width: 200,cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.compensationSaleAmount}}</span></div>' },
......
<div class="cit-asset-eam-mapping" id="mainPreviewDiv"> <div class="cit-asset-eam-mapping" id="mainPreviewDiv">
<div class="top-area-wrapper" style="margin-top: 10px"> <div class="top-area-wrapper" style="margin-top: 10px">
<span translate="JournalTitle" class="text-bold"></span> &nbsp;&nbsp;|&nbsp;&nbsp;<span class="text-bold" translate="InvoiceQJ"></span> <span translate="JournalTitle" class="text-bold"></span> &nbsp;&nbsp;|&nbsp;&nbsp;
<input type="text" class="form-control input-width-middle periodInput" style="position: relative; top: -30px; left: 180px;" id="input-invoice-period-picker" /> <span class="text-bold" translate="InvoiceQJ" style="display: none"></span>
<input type="text" class="form-control input-width-middle periodInput" style="position: relative; top: -30px; left: 180px;display: none" id="input-invoice-period-picker" />
<span ng-click="downloadJE()" style="position: relative; top: -61px; left: 95%;"><i class="fa fa-file-excel-o" aria-hidden="true"></i>{{'ExportBtn' | translate}}</span> <span ng-click="downloadJE()" style="position: relative; top: -61px; left: 95%;"><i class="fa fa-file-excel-o" aria-hidden="true"></i>{{'ExportBtn' | translate}}</span>
</div> </div>
......
...@@ -2,14 +2,14 @@ ...@@ -2,14 +2,14 @@
<!--Report SpreadJS--> <!--Report SpreadJS-->
<div ng-if="!isDocumentList" class="row"> <div ng-if="!isDocumentList" class="row">
<span ng-if="!isBSPL" ng-click="openExportPop('export');"><i class="fa fa-download"></i>&nbsp;{{'ExportExcel' | translate}}</span> <span ng-if="!isBSPL" ng-click="openExportPop('export');"><i class="fa fa-download"></i>&nbsp;{{'ExportExcel' | translate}}</span>
<span ng-if="!isBSPL" ng-click="commitApprove();"><i <!--<span ng-if="!isBSPL" ng-click="commitApprove();"><i-->
class="fa fa-floppy-o"></i>&nbsp;{{'报表提审'}}</span> <!--class="fa fa-floppy-o"></i>&nbsp;{{'报表提审'}}</span>-->
<span ng-if="!isBSPL" ng-click="doApprove();"><i <!--<span ng-if="!isBSPL" ng-click="doApprove();"><i-->
class="fa fa-floppy-o"></i>&nbsp;{{'报表审批'}}</span> <!--class="fa fa-floppy-o"></i>&nbsp;{{'报表审批'}}</span>-->
<span ng-if="!isBSPL" ng-click="upLoadManual();"><i <!--<span ng-if="!isBSPL" ng-click="upLoadManual();"><i-->
class="fa fa-floppy-o"></i>&nbsp;{{'上传手工数据'}} <!--class="fa fa-floppy-o"></i>&nbsp;{{'上传手工数据'}}-->
</span> <!--</span>-->
<span ng-if="!isBSPL" ng-click="openExportPop('upload');"><i class="fa fa-upload"></i>&nbsp;{{'UploadExcel' | translate}}</span> <!--<span ng-if="!isBSPL" ng-click="openExportPop('upload');"><i class="fa fa-upload"></i>&nbsp;{{'UploadExcel' | translate}}</span>-->
<!--<span ng-if="!isBSPL" ng-click="saveReportCache();"><i--> <!--<span ng-if="!isBSPL" ng-click="saveReportCache();"><i-->
<!--class="fa fa-floppy-o"></i>&nbsp;{{'Save' | translate}}</span>--> <!--class="fa fa-floppy-o"></i>&nbsp;{{'Save' | translate}}</span>-->
</div> </div>
......
...@@ -597,23 +597,23 @@ constant.citPermission = { ...@@ -597,23 +597,23 @@ constant.citPermission = {
dataImportCode: '03.001', dataImportCode: '03.001',
balanceSheet: { balanceSheet: {
queryCode: '03.001.001', queryCode: '03.001.001',
importCode: '03.001.002' // importCode: '03.001.002'
}, },
journalEntry: { journalEntry: {
queryCode: '03.001.003', queryCode: '03.001.003',
importCode: '03.001.004' // importCode: '03.001.004'
}, },
erpImport: { erpImport: {
queryCode: '03.001.005', queryCode: '03.001.005',
importCode: '03.001.006' // importCode: '03.001.006'
}, },
auditAdjust: { auditAdjust: {
queryCode: '03.001.007', queryCode: '03.001.007',
importCode: '03.001.008' // importCode: '03.001.008'
}, },
documentList: { documentList: {
queryCode: '03.001.009', queryCode: '03.001.009',
importCode: '03.001.010' // importCode: '03.001.010'
}, },
assetList: { assetList: {
queryCode: '03.001.011', queryCode: '03.001.011',
...@@ -914,11 +914,11 @@ constant.analysisPermisson = { ...@@ -914,11 +914,11 @@ constant.analysisPermisson = {
}; };
constant.citMenuList = [ constant.citMenuList = [
constant.citPermission.dataImport.balanceSheet.queryCode, // constant.citPermission.dataImport.balanceSheet.queryCode,
constant.citPermission.dataImport.journalEntry.queryCode, // constant.citPermission.dataImport.journalEntry.queryCode,
constant.citPermission.dataImport.erpImport.queryCode, // constant.citPermission.dataImport.erpImport.queryCode,
constant.citPermission.dataImport.auditAdjust.queryCode, // constant.citPermission.dataImport.auditAdjust.queryCode,
constant.citPermission.dataImport.documentList.queryCode, // constant.citPermission.dataImport.documentList.queryCode,
constant.citPermission.dataImport.assetList.queryCode, constant.citPermission.dataImport.assetList.queryCode,
constant.citPermission.dataPreview.balanceSheet.queryCode, constant.citPermission.dataPreview.balanceSheet.queryCode,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment