Commit 9c653913 authored by kevin's avatar kevin

Merge branch 'dev_mysql' of http://code.tech.tax.asia.pwcinternal.com/root/atms into dev_mysql

parents d17a613b 6c293162
...@@ -57,6 +57,7 @@ public class CitDataPreviewServiceImpl extends BaseService { ...@@ -57,6 +57,7 @@ public class CitDataPreviewServiceImpl extends BaseService {
public PageInfo<CitJournalAdjustDto> getJournalMergeData(CitJournalAdjustDto citJournalAdjustDto) { public PageInfo<CitJournalAdjustDto> getJournalMergeData(CitJournalAdjustDto citJournalAdjustDto) {
CitJournalEntryAdjust citJournalEntryAdjust = beanUtil.copyProperties(citJournalAdjustDto, new CitJournalEntryAdjust()); CitJournalEntryAdjust citJournalEntryAdjust = beanUtil.copyProperties(citJournalAdjustDto, new CitJournalEntryAdjust());
List<String> orgList = getOrgList(citJournalAdjustDto.getProjectId()); List<String> orgList = getOrgList(citJournalAdjustDto.getProjectId());
//判断选择的期间是否为12月,若为12月份则需查询出到13期的内容
if (citJournalEntryAdjust.getPeriodEnd() != null && citJournalEntryAdjust.getPeriodEnd() % 100 == 12) { if (citJournalEntryAdjust.getPeriodEnd() != null && citJournalEntryAdjust.getPeriodEnd() % 100 == 12) {
citJournalEntryAdjust.setPeriodEnd(citJournalEntryAdjust.getPeriodEnd() / 100 * 100 + 13); citJournalEntryAdjust.setPeriodEnd(citJournalEntryAdjust.getPeriodEnd() / 100 * 100 + 13);
} }
......
...@@ -234,7 +234,7 @@ public class CitReportServiceImpl extends BaseService { ...@@ -234,7 +234,7 @@ public class CitReportServiceImpl extends BaseService {
setStatus(genJob, STATUS_END); setStatus(genJob, STATUS_END);
periodJobMapper.updateByPrimaryKey(genJob); periodJobMapper.updateByPrimaryKey(genJob);
reportGenerator.citUpdateWorkbookCaclsValueToDb(projectId, periodParam, workbook, resources, isMergeManualData, genJob); reportGenerator.updateWorkbookCaclsValueToDb(projectId, periodParam, workbook, resources, isMergeManualData, genJob);
//===============================================start validation compute========================================================== //===============================================start validation compute==========================================================
//todo: 1.get the data from workbook, then put the data into new workbook //todo: 1.get the data from workbook, then put the data into new workbook
...@@ -1704,7 +1704,7 @@ public class CitReportServiceImpl extends BaseService { ...@@ -1704,7 +1704,7 @@ public class CitReportServiceImpl extends BaseService {
ByteArrayOutputStream bout = new ByteArrayOutputStream(); ByteArrayOutputStream bout = new ByteArrayOutputStream();
Workbook tWorkbook = null; Workbook tWorkbook = null;
try { try {
tWorkbook = reportGenerator.createWorkBookByPeriodTemplate(dataList); tWorkbook = reportGenerator.createCitWorkBookByPeriodTemplate(dataList);
tWorkbook.write(bout); tWorkbook.write(bout);
// FileUpload fileUpload = didiFileUploadService.uploadFile(bout.toByteArray(), "demo.xlsx", FileUploadEnum.BizSource.PERIOD_REPORT_TEMPLATE_UPLOAD.name()); // FileUpload fileUpload = didiFileUploadService.uploadFile(bout.toByteArray(), "demo.xlsx", FileUploadEnum.BizSource.PERIOD_REPORT_TEMPLATE_UPLOAD.name());
......
...@@ -144,7 +144,7 @@ public class TBM extends FunctionBase implements FreeRefFunction { ...@@ -144,7 +144,7 @@ public class TBM extends FunctionBase implements FreeRefFunction {
dto.setAmount(balance.getEndBalBeq().multiply(new BigDecimal(-1))); dto.setAmount(balance.getEndBalBeq().multiply(new BigDecimal(-1)));
} }
} }
amount = amount.add(dto.getAmount()); amount = amount.add(dto.getAmount()==null?(new BigDecimal(0)):dto.getAmount());
dto.setPeriod(period); dto.setPeriod(period);
dto.setIsOnlyManualInput(Boolean.FALSE); dto.setIsOnlyManualInput(Boolean.FALSE);
dto.setName(Constant.DataSourceName.ReportDataSource); dto.setName(Constant.DataSourceName.ReportDataSource);
......
...@@ -868,5 +868,6 @@ ...@@ -868,5 +868,6 @@
"NumOfBranches":"分公司数量", "NumOfBranches":"分公司数量",
"ConditionColumnNum": "Search Condition Column Num", "ConditionColumnNum": "Search Condition Column Num",
"Condition": "Search Condition", "Condition": "Search Condition",
"RevenueTypeConfiguration":"Revenue Type Config" "RevenueTypeConfiguration":"Revenue Type Config",
"FinancialStatementsType": "Financial Statements"
} }
{ {
"DocumentAttr":"DocumentAttr", "Document Attribute":"Document Attribute",
"DocumentType":"DocumentType", "Document Type":"Document Type",
"DocumentName":"DocumentName", "Document Name":"Document Name",
"IsRequired":"Is Required", "IsRequired":"Is Required",
"PleaseChecksRequired":"Please Checks Required", "PleaseChecksRequired":"Please Checks Required",
"BusinessLine":"BusinessLine", "Business Line":"Business Line",
"CorporationName":"CorporationName", "Company Name":"Company Name",
"AvailabilityDate":"AvailabilityDate", "Effective_Date":"Effective_Date",
"Duration":"Duration", "Period":"Period",
"DueDate":"DueDate", "Due Date":"Due Date",
"TaxType":"TaxType", "Tax Type":"Tax Type",
"EntityIndex":"EntityIndex", "Storage Index":"Storage Index",
"EntityStorageLocation":"EntityStorageLocation", "Storage Location":"Storage Location",
"EntityCustodian":"EntityCustodian", "Custodian":"Custodian",
"ApprovalStatus":"ApprovalStatus", "Approval Status":"Approval Status",
"ApprovalPass":"ApprovalPass", "ApprovalPass":"ApprovalPass",
"ApprovalReject":"ApprovalReject", "ApprovalReject":"ApprovalReject",
"ApprovalStandby":"ApprovalStandby", "ApprovalStandby":"ApprovalStandby",
"UploadDate":"UploadDate", "Upload Date":"Upload Date",
"Creator":"Creator", "Creator":"Creator",
"Remarks":"Remarks", "Remarks":"Remarks",
"MoreFields":"MoreFields", "More":"More",
"LessFields":"LessFields", "Less":"Less",
"Search":"Search", "Search":"Search",
"Reset":"Reset", "Reset":"Reset",
"Preview":"Preview", "Preview":"Preview",
"DelRecord":"DelRecord", "Delete Record":"Delete Record",
"CreateRecord":"CreateRecord", "Create Record":"Create Record",
"ExportTable":"ExportTable", "Export Record":"Export Record",
"DownloadAttachment":"DownloadAttachment", "Download Attachment":"Download Attachment",
"Log":"Log", "Log":"Log",
"MultiUpload":"MultiUpload", "Multiple File Upload":"Multiple File Upload",
"MultiUploadFailList":"MultiUploadFailList", "MultiUploadFailList":"MultiUploadFailList",
"UnFile":"UnFile", "UnFile":"UnFile",
"UnRecord":"UnRecord", "UnRecord":"UnRecord",
...@@ -44,18 +44,20 @@ ...@@ -44,18 +44,20 @@
"Edited":"Edited", "Edited":"Edited",
"Created":"Created", "Created":"Created",
"CoverConfirm":"CoverConfirm", "CoverConfirm":"CoverConfirm",
"NoData":"NoData", "No Data":"No Data",
"PleaseSelected":"PleaseSelected", "Please Select":"Please Select",
"PleaseType":"PleaseType", "Please Type":"Please Type",
"Tips":"Tips", "Tips":"Tips",
"EntityStorageDescription":"EntityStorageDescription", "EntityStorageDescription":"EntityStorageDescription",
"multiUpload":"multiUpload", "multiUpload":"multiUpload",
"UploadAttach":"UploadAttach", "UploadAttach":"UploadAttach",
"Edit":"Edit", "Edit":"Edit",
"DocumentPath":"DocumentPath", "Document Path":"Document Path",
"PreviewFile":"PreviewFile", "PreviewFile":"PreviewFile",
"UploadSuccessCount":"UploadSuccessCount", "UploadSuccessCount":"UploadSuccessCount",
"UploadFailCount":"UploadFailCount", "UploadFailCount":"UploadFailCount",
"DeleteConfirm":"DeleteConfirm", "Confirm delete":"Confirm delete",
"FileTimeDateRangeError":"FileTimeDateRangeError" "FileTimeDateRangeError":"FileTimeDateRangeError",
"Warning":"Warning",
"Page {0} of {1} ({2} items)":"Page {0} of {1} ({2} items)"
} }
\ No newline at end of file
...@@ -928,5 +928,6 @@ ...@@ -928,5 +928,6 @@
"ConditionColumnNum": "条件列", "ConditionColumnNum": "条件列",
"Condition": "查询条件", "Condition": "查询条件",
"Cancel4Tax": "取消", "Cancel4Tax": "取消",
"FinancialStatementsType": "财务报表",
"~MustBeEndOneApp": "I Must be the End One, please!" "~MustBeEndOneApp": "I Must be the End One, please!"
} }
{ {
"DocumentAttr":"档案属性", "Document Attribute":"档案属性",
"Document":"档案", "Document":"档案",
"IsRequired":"为必填字段,不能为空,请检查", "IsRequired":"为必填字段,不能为空,请检查",
"PleaseChecksRequired":"请检查必填字段", "PleaseChecksRequired":"请检查必填字段",
"DocumentType":"档案类型", "Document Type":"档案类型",
"DocumentName":"档案名称", "Document Name":"档案名称",
"BusinessLine":"业务线", "Business Line":"业务线",
"CorporationName":"公司名称", "Company Name":"公司名称",
"AvailabilityDate":"文件生效日期", "Effective_Date":"文件生效日期",
"Duration":"所属期间", "Period":"所属期间",
"DueDate":"到期日", "Due Date":"到期日",
"TaxType":"税种", "Tax Type":"税种",
"EntityIndex":"实物索引号", "Storage Index":"实物索引号",
"EntityStorageLocation":"实物存放地点", "Storage Location":"实物存放地点",
"EntityCustodian":"保管人", "Custodian":"保管人",
"ApprovalStatus":"审批状态", "Approval Status":"审批状态",
"ApprovalPass":"审批通过", "ApprovalPass":"审批通过",
"ApprovalReject":"拒绝审批", "ApprovalReject":"拒绝审批",
"ApprovalStandby":"待审批", "ApprovalStandby":"待审批",
"UploadDate":"上传日期", "Upload Date":"上传日期",
"Creator":"创建人", "Creator":"创建人",
"Remarks":"档案备注", "Remarks":"档案备注",
"MoreFields":"查看更多", "More":"查看更多",
"LessFields":"收起", "Less":"收起",
"Search":"查询", "Search":"查询",
"Reset":"重置", "Reset":"重置",
"Preview":"预览", "Preview":"预览",
"DelRecord":"删除记录", "Delete Record":"删除记录",
"CreateRecord":"新建记录", "Create Record":"新建记录",
"ExportTable":"导出列表", "Export Record":"导出列表",
"DownloadAttachment":"下载附件", "Download Attachment":"下载附件",
"Log":"日志", "Log":"日志",
"MultiUpload":"批量上传", "Multiple File Upload":"批量上传",
"MultiUploadFailList":"批量上传失败列表", "MultiUploadFailList":"批量上传失败列表",
"UnFile":"未支持的文件类型", "UnFile":"未支持的文件类型",
"UnRecord":"当前记录没有附件信息", "UnRecord":"当前记录没有附件信息",
...@@ -46,17 +46,19 @@ ...@@ -46,17 +46,19 @@
"Created":"新建成功", "Created":"新建成功",
"CoverConfirm":"当前记录已经存在,是否进行覆盖?", "CoverConfirm":"当前记录已经存在,是否进行覆盖?",
"NoData":"当前无数据可下载", "NoData":"当前无数据可下载",
"PleaseSelected":"请选择", "Please Select":"请选择",
"PleaseType":"请输入", "Please Type":"请输入",
"Tips":"提示讯息", "Tips":"提示讯息",
"EntityStorageDescription":"请将实物档案存放地址精确到某个档案柜", "EntityStorageDescription":"请将实物档案存放地址精确到某个档案柜",
"multiUpload":"批量上传", "multiUpload":"批量上传",
"UploadAttach":"上传附件", "UploadAttach":"上传附件",
"Edit":"编辑", "Edit":"编辑",
"DocumentPath":"档案路径", "Document Path":"档案路径",
"PreviewFile":"预览文件", "PreviewFile":"预览文件",
"UploadSuccessCount":"个档案上传成功:", "UploadSuccessCount":"个档案上传成功:",
"UploadFailCount":"个档案上传失败:", "UploadFailCount":"个档案上传失败:",
"DeleteConfirm":"是否确认删除记录?", "Confirm delete":"是否确认删除记录?",
"FileTimeDateRangeError": "'到期日'不能早于'文件生效日期'" "FileTimeDateRangeError": "'到期日'不能早于'文件生效日期'",
"Warning":"提示",
"Page {0} of {1} ({2} items)":"当前 {0}页 /共 {1}页 ({2} 项)"
} }
\ No newline at end of file
...@@ -211,7 +211,26 @@ ...@@ -211,7 +211,26 @@
var m = data.year.substring(0, data.year.length - 1); var m = data.year.substring(0, data.year.length - 1);
$scope.fixedAssetsObject.year = m; $scope.fixedAssetsObject.year = m;
} }
//根据当前资产的一级分类判断当前modal需要显示的标签
if (type == "1"){
$scope.assetAdd = "StandardFixedAssetsAdd";
$scope.assetEdit = "StandardFixedAssetsEdit";
$scope.assetCode = "FixedAssetsCode";
$scope.assetName = "FixedAssetsName";
$scope.assetAgeLimit = "FixedAssetsAgeLimit";
} else if(type == "2") {
$scope.assetAdd = "LongTermPendingAdd";
$scope.assetEdit = "LongTermPendingEdit";
$scope.assetCode = "LongTermPendingCode";
$scope.assetName = "LongTermPendingName";
$scope.assetAgeLimit = "LongTermPendingAgeLimit";
} else if(type == "3") {
$scope.assetAdd = "IntangibleAssetsAdd";
$scope.assetEdit = "IntangibleAssetsEdit";
$scope.assetCode = "IntangibleAssetsCode";
$scope.assetName = "IntangibleAssetsName";
$scope.assetAgeLimit = "IntangibleAssetsAgeLimit";
}
$(editModalSelector).modal('show'); $(editModalSelector).modal('show');
}; };
$scope.editMapping = function (data) { $scope.editMapping = function (data) {
......
...@@ -519,7 +519,7 @@ ...@@ -519,7 +519,7 @@
rowData.taxDepreciationPeriod = null; rowData.taxDepreciationPeriod = null;
} else { } else {
rowData.assetDetailGroupId = aseetDetailList[0].id; rowData.assetDetailGroupId = aseetDetailList[0].id;
rowData.taxDepreciationPeriod = aseetDetailList[0].groupYear; rowData.taxDepreciationPeriod = aseetDetailList[0].groupYear * 12;
} }
; ;
}, },
...@@ -543,7 +543,7 @@ ...@@ -543,7 +543,7 @@
return item.id == value; return item.id == value;
}); });
if (aseetDetailList.length > 0) { if (aseetDetailList.length > 0) {
rowData.taxDepreciationPeriod = aseetDetailList[0].groupYear; rowData.taxDepreciationPeriod = aseetDetailList[0].groupYear * 12;
} }
}, },
lookup: { lookup: {
......
...@@ -21,6 +21,12 @@ ...@@ -21,6 +21,12 @@
<input class="form-control input-width-middle" type="text" id="description" ng-model="queryParams.description" /> <input class="form-control input-width-middle" type="text" id="description" ng-model="queryParams.description" />
</td> </td>
</tr> </tr>
<tr>
<td>
<span translate="importWay"></span>
<input class="form-control input-width-middle" type="text" id="source" ng-model="queryParams.source" />
</td>
</tr>
<tr style="display: none"> <tr style="display: none">
<td> <td>
<span translate="orgCode"></span> <span translate="orgCode"></span>
......
...@@ -43,6 +43,7 @@ ...@@ -43,6 +43,7 @@
subjectCode: null, subjectCode: null,
subjectName: null, subjectName: null,
description: null, description: null,
source: null,
orgCode: null, orgCode: null,
orgName: null, orgName: null,
documentDate: null, documentDate: null,
...@@ -97,6 +98,7 @@ ...@@ -97,6 +98,7 @@
subjectCode: null, subjectCode: null,
subjectName: null, subjectName: null,
description: null, description: null,
source: null,
orgCode: null, orgCode: null,
orgName: null, orgName: null,
documentDate: null, documentDate: null,
......
...@@ -578,7 +578,6 @@ debugger; ...@@ -578,7 +578,6 @@ debugger;
var tasks = JSON.parse(job.status); var tasks = JSON.parse(job.status);
if (job.jobStatus == 'End') { if (job.jobStatus == 'End') {
items.forEach(function (item, index) { items.forEach(function (item, index) {
item.status = 'completed'; item.status = 'completed';
...@@ -632,10 +631,11 @@ debugger; ...@@ -632,10 +631,11 @@ debugger;
items.forEach(function (item, index) { items.forEach(function (item, index) {
item.items.forEach(function (_task, index) { item.items.forEach(function (_task, index) {
var temp = false;
tasks.forEach(function (task) { tasks.forEach(function (task) {
if (task.code == _task.code) { if (task.code == _task.code) {
temp = true;
if (task.status == 'Error') { if (task.status == 'Error') {
_task.status = 'error'; _task.status = 'error';
} else if (task.status == 'End') { } else if (task.status == 'End') {
...@@ -645,7 +645,12 @@ debugger; ...@@ -645,7 +645,12 @@ debugger;
} }
_task.text = $translate.instant(_task.status); _task.text = $translate.instant(_task.status);
} }
}) });
//此时证明该code还未开始
if(!temp){
_task.status = 'unstarted';
_task.text = $translate.instant(_task.status);
}
}) })
}); });
} }
......
...@@ -980,7 +980,7 @@ ...@@ -980,7 +980,7 @@
//批量导出EXCEL //批量导出EXCEL
$scope.export = function () { $scope.export = function () {
debugger; $('#busy-indicator-container').show();
var grp = _.find($scope.$parent.$parent.groups, function (g) { var grp = _.find($scope.$parent.$parent.groups, function (g) {
return g.name == 'TaxReturnType'; return g.name == 'TaxReturnType';
}); });
...@@ -1028,6 +1028,7 @@ debugger; ...@@ -1028,6 +1028,7 @@ debugger;
xhr.send(JSON.stringify({ xhr.send(JSON.stringify({
reportIds: reportIds reportIds: reportIds
})); }));
$('#busy-indicator-container').hide();
return; return;
} }
...@@ -1048,6 +1049,7 @@ debugger; ...@@ -1048,6 +1049,7 @@ debugger;
xhr.send(JSON.stringify({ xhr.send(JSON.stringify({
reportIds: reportIds reportIds: reportIds
})); }));
$('#busy-indicator-container').hide();
return; return;
} }
......
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
ng-click="downloadTemplate()"></button> ng-click="downloadTemplate()"></button>
<button type="button" <button type="button"
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-right: 10px;margin-left: 30px;margin-top: 8px;display: none"
translate="AddImportBtn" translate="AddImportBtn"
ng-click="importFile(importEnum.AddImport)"></button> ng-click="importFile(importEnum.AddImport)"></button>
......
...@@ -66,7 +66,8 @@ constant.citReportTypeList = [ ...@@ -66,7 +66,8 @@ constant.citReportTypeList = [
{value: 2, name: 'QuarterlyFilingReturnType', orderIndex: 2}, {value: 2, name: 'QuarterlyFilingReturnType', orderIndex: 2},
{value: 3, name: 'WorkingPaperType', orderIndex: 3}, {value: 3, name: 'WorkingPaperType', orderIndex: 3},
{value: 4, name: 'DocumentListType', orderIndex: 4}, {value: 4, name: 'DocumentListType', orderIndex: 4},
{value: 5, name: 'OtherTaxes', orderIndex: 5}]; {value: 5, name: 'FinancialStatementsType', orderIndex: 5},
{value: 6, name: 'OtherTaxes', orderIndex: 6}];
constant.cfReportTypeList = [ constant.cfReportTypeList = [
{value: 1, name: '企业所得税预算'}, {value: 1, name: '企业所得税预算'},
......
...@@ -107,6 +107,17 @@ ...@@ -107,6 +107,17 @@
allowHeaderFiltering: false, allowHeaderFiltering: false,
width: '15%', width: '15%',
caption: $translate.instant('Status') caption: $translate.instant('Status')
}, {
dataField: "operator",
allowHeaderFiltering: false,
width: '10%',
caption: $translate.instant('Creator')
},{
dataField: "createTime",
dataType: "date",
format: "yyyy-MM-dd HH:mm:ss",
width: '15%',
caption: $translate.instant('OperateTime')
} }
], ],
onContentReady: function (e) { onContentReady: function (e) {
......
...@@ -78,7 +78,7 @@ frameworkModule.controller('appUsrOperateLogController', ...@@ -78,7 +78,7 @@ frameworkModule.controller('appUsrOperateLogController',
}, },
pager: { pager: {
allowedPageSizes: 5, allowedPageSizes: 5,
infoText: "当前 {0}页 /共 {1}页 ({2} 项)", infoText:$translate.instant('Page {0} of {1} ({2} items)'),
showInfo: true, showInfo: true,
showNavigationButtons: true, showNavigationButtons: true,
showPageSizeSelector: true, showPageSizeSelector: true,
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
<button class="btn log-export-btn" ng-click="exportTableData()"> <button class="btn log-export-btn" ng-click="exportTableData()">
<i class="fa fa-file-excel-o"></i> <i class="fa fa-file-excel-o"></i>
<span translate="ExportTable"></span> <span translate="Export Record"></span>
</button> </button>
<div dx-data-grid="dataGridOptions"></div> <div dx-data-grid="dataGridOptions"></div>
</div> </div>
......
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