Commit 3230b2bb authored by zhkwei's avatar zhkwei

Merge remote-tracking branch 'origin/dev_mysql' into dev_mysql

parents 6badbf04 41515c6b
......@@ -12,7 +12,7 @@ public class ErrorMessage {
public static final String NoSelectSheet = "NoSelectSheet";
public static final String DIDNOTSELECTPERIOD = "You should select period!";
public static final String ImportFailed = "ImportFailed!";
public static final String ImportFailed = "导入失败!";
public static final String ImportNotMatch = "导入文件与选择机构或期间不匹配!";
public static final String ExportFailed = "ExportFailed!";
public static final String NoData = "无数据!";
......
......@@ -105,8 +105,8 @@ public class AnalysisJobServiceImpl extends BaseService {
private final static String MONEYTYPE = "CNY";
private final static List<Integer> YEAR_LIST = Lists.newArrayList(2017, 2018, 2019);
private static List<Integer> periodInit = Lists.newArrayList();
private static final String ZZSNSSBB = "增值税纳税申报表";//增值税申报表(一般纳税人)
private static final String QYSDSYJB = "企业所得税预缴表";//企业所得税预缴表
private static final String ZZSNSSBB = "增值税纳税申报表";//增值税申报表(一般纳税人) todo 模板名称改的话这里也要改
private static final String QYSDSYJB = "预缴纳税申报表";//企业所得税预缴表 todo 模板名称改的话这里也要改
private String gzzscode = null;//一般纳税人
private String szzscode = null;//小规模纳税人
......@@ -847,7 +847,7 @@ public class AnalysisJobServiceImpl extends BaseService {
private String qysdscode = null;
public void analysisTax(List<Organization> orgs, Integer period, Integer type) {
qysdscode = projectMapper.getTemplateCode("1", QYSDSYJB).get(0).getName();//一般纳税人
qysdscode = projectMapper.getTemplateCode("1", QYSDSYJB).size() != 0 ? projectMapper.getTemplateCode("1", QYSDSYJB).get(0).getName() : null;//一般纳税人
List<String> orgIds = orgs.stream().map(Organization::getId).collect(Collectors.toList());
if (type.equals(EnumTbImportType.CoverImport.getCode())) {
AnalysisTaxExample example = new AnalysisTaxExample();
......
......@@ -307,6 +307,24 @@ public class AnalysisServiceImpl extends BaseService {
return null;
}
public Organization getOrgById(String organizationId) {
OrganizationExample organizationExample = new OrganizationExample();
organizationExample.createCriteria().andIdEqualTo(organizationId);
List<Organization> organizations = organizationMapper.selectByExample(organizationExample);
if (organizations.size() != 0)
return organizations.get(0);
return null;
}
public Organization getOrgByCompanyName(String companyName) {
OrganizationExample organizationExample = new OrganizationExample();
organizationExample.createCriteria().andNameEqualTo(companyName);
List<Organization> organizations = organizationMapper.selectByExample(organizationExample);
if (organizations.size() != 0)
return organizations.get(0);
return null;
}
private void importAnalysisReturnTaxExcelFile(MultipartFile file, String periodDate) {
try {
......@@ -392,6 +410,12 @@ public class AnalysisServiceImpl extends BaseService {
continue;
}
model.setCompanyName(getCellStringValue(sheet.getRow(j).getCell(0)));
try {
model.setSeqNo(getSeqNoByPeriod(getOrgByCompanyName(getCellStringValue(sheet.getRow(j).getCell(0))).getId(), selectedPer));
} catch (Exception e) {
logger.warn(getCellStringValue(sheet.getRow(j).getCell(0)) + "公司名称匹配不成功");
continue;
}
model.setFullTimeAmount(getCellBigDecimalValue(sheet.getRow(j).getCell(1)));
model.setInternAmount(getCellBigDecimalValue(sheet.getRow(j).getCell(2)));
model.setVendorAmount(getCellBigDecimalValue(sheet.getRow(j).getCell(3)));
......@@ -521,7 +545,7 @@ public class AnalysisServiceImpl extends BaseService {
}
private void importAnalysisInterTaxDataExcelFile(MultipartFile file, String periodDate,
String companyName, String country) {
String organizationId, String country) {
try {
InputStream inputStream = file.getInputStream();
Workbook workbook = WorkbookFactory.create(inputStream);
......@@ -542,15 +566,22 @@ public class AnalysisServiceImpl extends BaseService {
AnalysisInternationalTaxData model = new AnalysisInternationalTaxData();
model.setId(idService.nextId());
model.setPeriod(selectedPer);
model.setCompanyName(companyName);
model.setOrganizationId(organizationId);
model.setCompanyName(getOrgById(organizationId).getName());
model.setCountry(country);
try {
model.setSeqNo(getSeqNoByPeriod(organizationId, DateUtils.strToPeriod(periodDate)));
} catch (Exception e) {
continue;
}
model.setTaxCategory(getCellStringValue(sheet.getRow(j).getCell(0)));
model.setTaxType(getCellStringValue(sheet.getRow(j).getCell(1)));
model.setTaxAmount(getCellBigDecimalValue(sheet.getRow(j).getCell(2)));
lists.add(model);
}
AnalysisInternationalTaxDataExample example = new AnalysisInternationalTaxDataExample();
example.createCriteria().andPeriodEqualTo(selectedPer).andCountryEqualTo(country).andCompanyNameEqualTo(companyName);
example.createCriteria().andPeriodEqualTo(selectedPer).andCountryEqualTo(country).andOrganizationIdEqualTo(organizationId);
analysisInternationalTaxDataMapper.deleteByExample(example);
lists.forEach(l -> {
analysisInternationalTaxDataMapper.insertSelective(l);
......@@ -566,7 +597,7 @@ public class AnalysisServiceImpl extends BaseService {
}
private void importAnalysisInterBuDataExcelFile(MultipartFile file, String periodDate,
String companyName, String country) {
String organizationId, String country) {
try {
InputStream inputStream = file.getInputStream();
Workbook workbook = WorkbookFactory.create(inputStream);
......@@ -585,10 +616,12 @@ public class AnalysisServiceImpl extends BaseService {
AnalysisInternationalBusinessData model = new AnalysisInternationalBusinessData();
model.setId(idService.nextId());
model.setPeriod(selectedPer);
model.setCompanyName(companyName);
model.setOrganizationId(organizationId);
model.setCountry(country);
Cell cell1 = sheet.getRow(j).getCell(0);
if (null == cell1 || StringUtils.isEmpty(getCellStringValue(cell1))) {
try {
model.setSeqNo(getSeqNoByPeriod(organizationId, DateUtils.strToPeriod(periodDate)));
} catch (Exception e) {
continue;
}
model.setGmv(getCellBigDecimalValue(cell1));
......@@ -606,7 +639,7 @@ public class AnalysisServiceImpl extends BaseService {
lists.add(model);
}
AnalysisInternationalBusinessDataExample example = new AnalysisInternationalBusinessDataExample();
example.createCriteria().andPeriodEqualTo(selectedPer).andCountryEqualTo(country).andCompanyNameEqualTo(companyName);
example.createCriteria().andPeriodEqualTo(selectedPer).andCountryEqualTo(country).andOrganizationIdEqualTo(organizationId);
analysisInternationalBusinessDataMapper.deleteByExample(example);
lists.forEach(l -> {
analysisInternationalBusinessDataMapper.insertSelective(l);
......@@ -848,7 +881,6 @@ public class AnalysisServiceImpl extends BaseService {
jdbcTemplate.update(sql);
}
//e.createCriteria().andIsActiveEqualTo(true);
List<Organization> orgs = organizationMapper.selectByExample(e);
//首先要先初始化master表数据,所有的数据要依赖master表
......
......@@ -962,10 +962,13 @@ public class DataImportService extends BaseService {
rlits.stream().collect(Collectors.groupingBy(RedLetterInfoTable::getSubjectNum));
atsGroupRes.forEach((k, v) -> processRlits(k, v, orgIds, tmsPeriod, importType, dataImportLogs));
}
if(dataImportLogs.size() == 0)
return OperationResultDto.error(ErrorMessage.NoData);
addDataImportLog(dataImportLogs);
int isSuccess = (int) dataImportLogs.stream().filter(di -> Boolean.TRUE.equals(di.getImportResult())).count();
if (isSuccess < 1) {
return OperationResultDto.error(ErrorMessage.NoData);
return OperationResultDto.error(ErrorMessage.ImportNotMatch);
}
return operationResultDto.success();
} catch (Exception e) {
......@@ -1068,6 +1071,8 @@ public class DataImportService extends BaseService {
atsGroupRes.forEach((k, v) -> processAts(k, v, orgIds, tmsPeriod, importType, dataImportLogs));
}
addDataImportLog(dataImportLogs);
if(dataImportLogs.size() == 0)
return OperationResultDto.error(ErrorMessage.NoData);
int isSuccess = (int) dataImportLogs.stream().filter(di -> Boolean.TRUE.equals(di.getImportResult())).count();
if (isSuccess < 1) {
return OperationResultDto.error(ErrorMessage.ImportNotMatch);
......@@ -1172,9 +1177,12 @@ public class DataImportService extends BaseService {
atsGroupRes.forEach((k, v) -> processCprs(k, v, orgIds, tmsPeriod, importType, dataImportLogs));
}
int isSuccess = (int) dataImportLogs.stream().filter(di -> Boolean.TRUE.equals(di.getImportResult())).count();
if(dataImportLogs.size() == 0)
return OperationResultDto.error(ErrorMessage.NoData);
addDataImportLog(dataImportLogs);
if (isSuccess < 1) {
return OperationResultDto.error(ErrorMessage.NoData);
return OperationResultDto.error(ErrorMessage.ImportNotMatch);
}
return OperationResultDto.success();
} catch (ServiceException e) {
......@@ -1458,10 +1466,13 @@ public class DataImportService extends BaseService {
irs.stream().collect(Collectors.groupingBy(InvoiceRecord::getBillingBody));
atsGroupRes.forEach((k, v) -> processIrs(k, v, orgIds, tmsPeriod, importType, dataImportLogs));
}
if(dataImportLogs.size() == 0)
return OperationResultDto.error(ErrorMessage.NoData);
int isSuccess = (int) dataImportLogs.stream().filter(di -> Boolean.TRUE.equals(di.getImportResult())).count();
addDataImportLog(dataImportLogs);
if (isSuccess < 1) {
return OperationResultDto.error(ErrorMessage.NoData);
return OperationResultDto.error(ErrorMessage.ImportNotMatch);
}
return OperationResultDto.success();
} catch (ServiceException e) {
......
infrastructureModule
.controller('OrganizationManageController', ['$scope', '$log', 'orgService', '$interval', 'uiGridTreeViewConstants', 'uiGridConstants', 'SweetAlert', 'projectService', '$translate', '$timeout', 'organizationStructureService', 'areaRegionService', 'apiInterceptor', 'enterpriseAccountService', 'businessUnitService', 'userService', 'roleService', '$q', 'permissionService', 'dimensionService','region','equityService','orgExtraService',
function ($scope, $log, orgService, $interval, uiGridTreeViewConstants, uiGridConstants, SweetAlert, projectService, $translate, $timeout, organizationStructureService, areaRegionService, apiInterceptor, enterpriseAccountService, businessUnitService, userService, roleService, $q, permissionService, dimensionService, region,equityService,orgExtraService) {
.controller('OrganizationManageController', ['$scope', '$log', 'orgService', '$interval', 'uiGridTreeViewConstants', 'uiGridConstants', 'SweetAlert', 'projectService', '$translate', '$timeout', 'organizationStructureService', 'areaRegionService', 'apiInterceptor', 'enterpriseAccountService', 'businessUnitService', 'userService', 'roleService', '$q', 'permissionService', 'dimensionService', 'region', 'equityService', 'orgExtraService',
function ($scope, $log, orgService, $interval, uiGridTreeViewConstants, uiGridConstants, SweetAlert, projectService, $translate, $timeout, organizationStructureService, areaRegionService, apiInterceptor, enterpriseAccountService, businessUnitService, userService, roleService, $q, permissionService, dimensionService, region, equityService, orgExtraService) {
'use strict';
$scope.expanded = false;
......@@ -23,8 +23,8 @@
$scope.isNotHundred = false;
$scope.editOrgExtraModel = {};
var translate={
Enabled:$translate.instant('BusinessUnitActive'), //已启用
var translate = {
Enabled: $translate.instant('BusinessUnitActive'), //已启用
Disabled: $translate.instant('BusinessUnitDisabled')//已停用
};
......@@ -46,7 +46,7 @@
if ($scope.isLoadComplete) {
var y = $(".company-detail").height();
var parent = $('.org-right-container').height();
return { height: parent - y + 'px' };
return {height: parent - y + 'px'};
}
return {};
......@@ -117,8 +117,7 @@
});
if (findResult) {
return findResult.name;
}
else {
} else {
return '';
}
},
......@@ -128,8 +127,7 @@
});
if (findResult) {
return findResult.name;
}
else {
} else {
return '';
}
}
......@@ -261,25 +259,25 @@
},*/
columns: [
{
dataField : "id",
visible : false,
allowHeaderFiltering:false
dataField: "id",
visible: false,
allowHeaderFiltering: false
},
{
dataField: "eNum",
visible : false,
visible: false,
sortOrder: "asc",
allowHeaderFiltering:false
allowHeaderFiltering: false
},
{
dataField: "organizationId",
visible : false,
allowHeaderFiltering:false
visible: false,
allowHeaderFiltering: false
},
{
dataField: "investorName",
caption: $translate.instant('InvestorName'),
allowHeaderFiltering:false
allowHeaderFiltering: false
},
{
dataField: "investorEconomicNature",
......@@ -317,7 +315,7 @@
},
{
dataField: "payableShareholderIdNum",
visible : false,
visible: false,
caption: $translate.instant('PayableShareholderIdNum'),
allowHeaderFiltering: false
},
......@@ -339,10 +337,9 @@
],
onContentReady: function (e) {
$scope.orgEquityListInstance = e.component;
var totalCount =e.component.totalCount();
if(totalCount>0)
{
$scope.totalCount=totalCount;
var totalCount = e.component.totalCount();
if (totalCount > 0) {
$scope.totalCount = totalCount;
}
},
loadPanel: {
......@@ -401,7 +398,7 @@
{
dataField: "createTime",
caption: $translate.instant('RevisionDate'),
allowHeaderFiltering:false,
allowHeaderFiltering: false,
dataType: "date"
},
{
......@@ -416,9 +413,9 @@
},
{
caption: $translate.instant('Operation'),
width : '10%',
cellTemplate: function(cellElement, cellInfo) {
if(cellInfo.rowIndex===0){
width: '10%',
cellTemplate: function (cellElement, cellInfo) {
if (cellInfo.rowIndex === 0) {
var $button = $("<button>")
.text(" 撤销变更")
.addClass("btn")
......@@ -449,10 +446,9 @@
},
onContentReady: function (e) {
$scope.equityDetailInstance = e.component;
var totalCount =e.component.totalCount();
if(totalCount>0)
{
$scope.totalCount=totalCount;
var totalCount = e.component.totalCount();
if (totalCount > 0) {
$scope.totalCount = totalCount;
}
},
loadPanel: {
......@@ -503,10 +499,10 @@
},
function (isConfirm) {
if (isConfirm) {
equityService.cancelChange(rowData.data.originalState,rowData.data.updateState).success(function (data) {
if(data){
equityService.cancelChange(rowData.data.originalState, rowData.data.updateState).success(function (data) {
if (data) {
SweetAlert.success($translate.instant('CancelChangeEquitySuccess'));
}else{
} else {
SweetAlert.error($translate.instant('CancelChangeEquityFailed'));
}
});
......@@ -520,18 +516,18 @@
//todo 绑定数据
dataSource: new DevExpress.data.DataSource({
load: function (loadOptions) {
if(key.rowIndex === 1){
if (key.rowIndex === 1) {
var deferred = $q.defer();
return equityService.getEquityById(key.data.id).success(function (response) {
deferred.resolve({ data: response, totalCount: response.length });
deferred.resolve({data: response, totalCount: response.length});
}).error(function () {
deferred.reject("Data Loading Error");
});
return deferred.promise;
}else{
} else {
var deferred = $q.defer();
return equityService.getEquityHisById(key.data.id).success(function (response) {
deferred.resolve({ data: response, totalCount: response.length });
deferred.resolve({data: response, totalCount: response.length});
}).error(function () {
deferred.reject("Data Loading Error");
});
......@@ -543,25 +539,25 @@
showBorders: true,
columns: [
{
dataField : "id",
visible : false,
allowHeaderFiltering:false
dataField: "id",
visible: false,
allowHeaderFiltering: false
},
{
dataField: "eNum",
visible : false,
visible: false,
sortOrder: "asc",
allowHeaderFiltering:false
allowHeaderFiltering: false
},
{
dataField: "organizationId",
visible : false,
allowHeaderFiltering:false
visible: false,
allowHeaderFiltering: false
},
{
dataField: "investorName",
caption: $translate.instant('InvestorName'),
allowHeaderFiltering:false
allowHeaderFiltering: false
},
{
dataField: "investorEconomicNature",
......@@ -599,7 +595,7 @@
},
{
dataField: "payableShareholderIdNum",
visible : false,
visible: false,
caption: $translate.instant('PayableShareholderIdNum'),
allowHeaderFiltering: false
},
......@@ -622,11 +618,11 @@
summary: {
totalItems: [{
column: "money",
customizeText:"总出资额(万元)",
customizeText: "总出资额(万元)",
summaryType: "sum"
}, {
column: "rate"+"%",
customizeText:"股权总比",
column: "rate" + "%",
customizeText: "股权总比",
summaryType: "sum"
}]
......@@ -645,11 +641,11 @@
};
var getEquityHistoryById = function (key) {
if(key.rowIndex === 1){
if (key.rowIndex === 1) {
equityService.getEquityById(key.data.id).success(function (data) {
return data;
});
}else{
} else {
equityService.getEquityHisById(key.data.id).success(function (data) {
return data;
});
......@@ -674,15 +670,15 @@
columns: [
{
dataField: "id",
visible : false,
visible: false,
allowHeaderFiltering: false,
caption: $translate.instant('id')
},{
}, {
dataField: "index",
width : '5%',
width: '5%',
allowHeaderFiltering: false,
caption: $translate.instant('SequenceNoCol')
},{
}, {
dataField: "groupName",
allowHeaderFiltering: false,
caption: $translate.instant('TaxGroup'),
......@@ -691,7 +687,7 @@
displayExpr: "type",
valueExpr: "type"
}
},{
}, {
dataField: "taxDecCycle",
allowHeaderFiltering: true,
caption: $translate.instant('TaxDecCycle'),
......@@ -700,7 +696,7 @@
displayExpr: "type",
valueExpr: "type"
}
},{
}, {
dataField: "taxDecType",
allowHeaderFiltering: true,
caption: $translate.instant('TaxDecType')
......@@ -708,19 +704,18 @@
],
onContentReady: function (e) {
$scope.TaxRuleListInstance = e.component;
var totalCount =e.component.totalCount();
if(totalCount>0)
{
$scope.totalCount=totalCount;
var totalCount = e.component.totalCount();
if (totalCount > 0) {
$scope.totalCount = totalCount;
}
},
onEditingStart: function(e) {
onEditingStart: function (e) {
},
onInitNewRow: function(e) {
onInitNewRow: function (e) {
},
onRowInserting: function(e) {
var dataList= [];
onRowInserting: function (e) {
var dataList = [];
var rowData = e.data;
rowData.organizationId = $scope.selectCompany.id;
delete rowData.__KEY__;
......@@ -729,40 +724,40 @@
if (data) {
getTaxRuleList($scope.selectCompany.id);
return;
}else{
} else {
SweetAlert.error($translate.instant('SaveFail'));
}
});
},
onRowInserted: function(e) {
onRowInserted: function (e) {
SweetAlert.success($translate.instant('SaveSuccess'));
},
onRowUpdating: function(e) {
onRowUpdating: function (e) {
var updateData = e.newData;
updateData.id = e.key.id;
orgExtraService.updateTaxRule(updateData).success(function (data) {
if (data) {
getTaxRuleList($scope.selectCompany.id);
return;
}else{
} else {
SweetAlert.error($translate.instant('UpdateFail'));
}
});
},
onRowUpdated: function(e) {
onRowUpdated: function (e) {
SweetAlert.success($translate.instant('UpdateSuccess'));
},
onRowRemoving: function(e) {
onRowRemoving: function (e) {
orgExtraService.deleteTaxRule(e.key.id).success(function (data) {
if (data) {
getTaxRuleList($scope.selectCompany.id);
return;
}else{
} else {
SweetAlert.error($translate.instant('DeleteFail'));
}
});
},
onRowRemoved: function(e) {
onRowRemoved: function (e) {
SweetAlert.success($translate.instant('DeleteSuccess'));
},
loadPanel: {
......@@ -803,16 +798,16 @@
if (data) {
$scope.TaxRuleGridSource = data;
for (var i = 1; i <= $scope.TaxRuleGridSource.length; i++) {
$scope.TaxRuleGridSource[i-1].index = i;
$scope.TaxRuleGridSource[i - 1].index = i;
}
}
});
};
$scope.visiableTaxRule = function () {
if($scope.showTaxRule){
if ($scope.showTaxRule) {
$scope.showTaxRule = false;
}else{
} else {
$scope.showTaxRule = true;
}
};
......@@ -835,15 +830,15 @@
columns: [
{
dataField: "id",
visible : false,
visible: false,
allowHeaderFiltering: false,
caption: $translate.instant('id')
},{
}, {
dataField: "index",
width : '5%',
width: '5%',
allowHeaderFiltering: false,
caption: $translate.instant('SequenceNoCol')
},{
}, {
dataField: "invoiceTypeName",
allowHeaderFiltering: false,
caption: $translate.instant('InvoiceTypeName'),
......@@ -852,7 +847,7 @@
displayExpr: "type",
valueExpr: "type"
}
},{
}, {
dataField: "unit",
allowHeaderFiltering: false,
caption: $translate.instant('InvoiceUnit'),
......@@ -861,15 +856,15 @@
displayExpr: "type",
valueExpr: "type"
}
},{
}, {
dataField: "monthlyMaxTicketsPurchased",
allowHeaderFiltering: true,
caption: $translate.instant('MonthlyMaxTicketsPurchased')
},{
}, {
dataField: "singleInvoicingMaxLimit",
allowHeaderFiltering: true,
caption: $translate.instant('SingleInvoicingMaxLimit')
},{
}, {
dataField: "offlineBillingTimeLimit",
allowHeaderFiltering: true,
caption: $translate.instant('OfflineBillingTimeLimit')
......@@ -877,19 +872,18 @@
],
onContentReady: function (e) {
$scope.invoiceInfoListInstance = e.component;
var totalCount =e.component.totalCount();
if(totalCount>0)
{
$scope.totalCount=totalCount;
var totalCount = e.component.totalCount();
if (totalCount > 0) {
$scope.totalCount = totalCount;
}
},
onEditingStart: function(e) {
onEditingStart: function (e) {
},
onInitNewRow: function(e) {
onInitNewRow: function (e) {
},
onRowInserting: function(e) {
var dataList= [];
onRowInserting: function (e) {
var dataList = [];
var rowData = e.data;
rowData.organizationId = $scope.selectCompany.id;
delete rowData.__KEY__;
......@@ -898,40 +892,40 @@
if (data) {
getInvoiceInfoList($scope.selectCompany.id);
return;
}else{
} else {
SweetAlert.error($translate.instant('SaveFail'));
}
});
},
onRowInserted: function(e) {
onRowInserted: function (e) {
SweetAlert.success($translate.instant('SaveSuccess'));
},
onRowUpdating: function(e) {
onRowUpdating: function (e) {
var updateData = e.newData;
updateData.id = e.key.id;
orgExtraService.updateInvoice(updateData).success(function (data) {
if (data) {
getInvoiceInfoList($scope.selectCompany.id);
return;
}else{
} else {
SweetAlert.error($translate.instant('UpdateFail'));
}
});
},
onRowUpdated: function(e) {
onRowUpdated: function (e) {
SweetAlert.success($translate.instant('UpdateSuccess'));
},
onRowRemoving: function(e) {
onRowRemoving: function (e) {
orgExtraService.deleteInvoice(e.key.id).success(function (data) {
if (data) {
getInvoiceInfoList($scope.selectCompany.id);
return;
}else{
} else {
SweetAlert.error($translate.instant('DeleteFail'));
}
});
},
onRowRemoved: function(e) {
onRowRemoved: function (e) {
SweetAlert.success($translate.instant('DeleteSuccess'));
},
loadPanel: {
......@@ -972,16 +966,16 @@
if (data) {
$scope.InvoiceInfoGridSource = data;
for (var i = 1; i <= $scope.InvoiceInfoGridSource.length; i++) {
$scope.InvoiceInfoGridSource[i-1].index = i;
$scope.InvoiceInfoGridSource[i - 1].index = i;
}
}
});
};
$scope.visiableInvoiceInfo = function () {
if($scope.showInvoiceInfo){
if ($scope.showInvoiceInfo) {
$scope.showInvoiceInfo = false;
}else{
} else {
$scope.showInvoiceInfo = true;
}
};
......@@ -1007,19 +1001,19 @@
},
columns: [{
dataField: "id",
visible : false,
visible: false,
allowHeaderFiltering: false,
caption: $translate.instant('id')
},{
}, {
dataField: "index",
width : '5%',
width: '5%',
allowHeaderFiltering: false,
caption: $translate.instant('SequenceNoCol')
},{
}, {
dataField: "groupName",
allowHeaderFiltering: false,
caption: $translate.instant('TaxGroup'),
width : '30%',
width: '30%',
lookup: {
dataSource: constant.GroupTypeList,
displayExpr: "type",
......@@ -1029,32 +1023,31 @@
{
dataField: "returnRate",
allowHeaderFiltering: false,
width : '15%',
width: '15%',
caption: $translate.instant('ReturnRate')
},
{
dataField: "startDate",
allowHeaderFiltering: false,
width : '25%',
width: '25%',
dataType: "date",
caption: $translate.instant('StartingDate')
}
],
onContentReady: function (e) {
$scope.returnRateListInstance = e.component;
var totalCount =e.component.totalCount();
if(totalCount>0)
{
$scope.totalCount=totalCount;
var totalCount = e.component.totalCount();
if (totalCount > 0) {
$scope.totalCount = totalCount;
}
},
onEditingStart: function(e) {
onEditingStart: function (e) {
},
onInitNewRow: function(e) {
onInitNewRow: function (e) {
},
onRowInserting: function(e) {
var dataList= [];
onRowInserting: function (e) {
var dataList = [];
var rowData = e.data;
rowData.organizationId = $scope.selectCompany.id;
delete rowData.__KEY__;
......@@ -1063,40 +1056,40 @@
if (data) {
getReturnRateInfoList($scope.selectCompany.id);
return;
}else{
} else {
SweetAlert.error($translate.instant('SaveFail'));
}
});
},
onRowInserted: function(e) {
onRowInserted: function (e) {
SweetAlert.success($translate.instant('SaveSuccess'));
},
onRowUpdating: function(e) {
onRowUpdating: function (e) {
var updateData = e.newData;
updateData.id = e.key.id;
orgExtraService.updateReturnRate(updateData).success(function (data) {
if (data) {
getReturnRateInfoList($scope.selectCompany.id);
return;
}else{
} else {
SweetAlert.error($translate.instant('UpdateFail'));
}
});
},
onRowUpdated: function(e) {
onRowUpdated: function (e) {
SweetAlert.success($translate.instant('UpdateSuccess'));
},
onRowRemoving: function(e) {
onRowRemoving: function (e) {
orgExtraService.deleteReturnRate(e.key.id).success(function (data) {
if (data) {
getReturnRateInfoList($scope.selectCompany.id);
return;
}else{
} else {
SweetAlert.error($translate.instant('DeleteFail'));
}
});
},
onRowRemoved: function(e) {
onRowRemoved: function (e) {
SweetAlert.success($translate.instant('DeleteSuccess'));
},
loadPanel: {
......@@ -1137,16 +1130,16 @@
if (data) {
$scope.ReturnGridSource = data;
for (var i = 1; i <= $scope.ReturnGridSource.length; i++) {
$scope.ReturnGridSource[i-1].index = i;
$scope.ReturnGridSource[i - 1].index = i;
}
}
});
};
$scope.visiableReturnRateInfo = function () {
if($scope.showReturnRateInfo){
if ($scope.showReturnRateInfo) {
$scope.showReturnRateInfo = false;
}else{
} else {
$scope.showReturnRateInfo = true;
}
};
......@@ -1177,6 +1170,11 @@
width: '10%',
allowHeaderFiltering: false,
caption: $translate.instant('SequenceNoCol')
}, {
dataField: "rate",
allowHeaderFiltering: false,
width: '10%',
caption: $translate.instant('AccountingRate')
}, {
dataField: "currencyFrom",
allowHeaderFiltering: false,
......@@ -1199,11 +1197,6 @@
width: '20%',
dataType: "date",
caption: $translate.instant('EndPeriod')
}, {
dataField: "rate",
allowHeaderFiltering: false,
width: '10%',
caption: $translate.instant('AccountingRate')
}
],
onContentReady: function (e) {
......@@ -1213,13 +1206,13 @@
$scope.totalCount = totalCount;
}
},
onEditingStart: function(e) {
onEditingStart: function (e) {
},
onInitNewRow: function(e) {
onInitNewRow: function (e) {
},
onRowInserting: function(e) {
var dataList= [];
onRowInserting: function (e) {
var dataList = [];
var rowData = e.data;
rowData.organizationId = $scope.selectCompany.id;
delete rowData.__KEY__;
......@@ -1228,40 +1221,40 @@
if (data) {
getAccountingRateInfoList($scope.selectCompany.id);
return;
}else{
} else {
SweetAlert.error($translate.instant('SaveFail'));
}
});
},
onRowInserted: function(e) {
onRowInserted: function (e) {
SweetAlert.success($translate.instant('SaveSuccess'));
},
onRowUpdating: function(e) {
onRowUpdating: function (e) {
var updateData = e.newData;
updateData.id = e.key.id;
orgExtraService.updateAccountingRate(updateData).success(function (data) {
if (data) {
getAccountingRateInfoList($scope.selectCompany.id);
return;
}else{
} else {
SweetAlert.error($translate.instant('UpdateFail'));
}
});
},
onRowUpdated: function(e) {
onRowUpdated: function (e) {
SweetAlert.success($translate.instant('UpdateSuccess'));
},
onRowRemoving: function(e) {
onRowRemoving: function (e) {
orgExtraService.deleteAccountingRate(e.key.id).success(function (data) {
if (data) {
getAccountingRateInfoList($scope.selectCompany.id);
return;
}else{
} else {
SweetAlert.error($translate.instant('DeleteFail'));
}
});
},
onRowRemoved: function(e) {
onRowRemoved: function (e) {
SweetAlert.success($translate.instant('DeleteSuccess'));
},
loadPanel: {
......@@ -1309,9 +1302,9 @@
};
$scope.visiableAccountingRateInfo = function () {
if($scope.showAccountingRateInfo){
if ($scope.showAccountingRateInfo) {
$scope.showAccountingRateInfo = false;
}else{
} else {
$scope.showAccountingRateInfo = true;
}
};
......@@ -1383,19 +1376,18 @@
],
onContentReady: function (e) {
$scope.approvedLevyListInstance = e.component;
var totalCount =e.component.totalCount();
if(totalCount>0)
{
$scope.totalCount=totalCount;
var totalCount = e.component.totalCount();
if (totalCount > 0) {
$scope.totalCount = totalCount;
}
},
onEditingStart: function(e) {
onEditingStart: function (e) {
},
onInitNewRow: function(e) {
onInitNewRow: function (e) {
},
onRowInserting: function(e) {
var dataList= [];
onRowInserting: function (e) {
var dataList = [];
var rowData = e.data;
rowData.organizationId = $scope.selectCompany.id;
delete rowData.__KEY__;
......@@ -1404,40 +1396,40 @@
if (data) {
getApprovedLevyList($scope.selectCompany.id);
return;
}else{
} else {
SweetAlert.error($translate.instant('SaveFail'));
}
});
},
onRowInserted: function(e) {
onRowInserted: function (e) {
SweetAlert.success($translate.instant('SaveSuccess'));
},
onRowUpdating: function(e) {
onRowUpdating: function (e) {
var updateData = e.newData;
updateData.id = e.key.id;
orgExtraService.updateApprovedLevyInfo(updateData).success(function (data) {
if (data) {
getApprovedLevyList($scope.selectCompany.id);
return;
}else{
} else {
SweetAlert.error($translate.instant('UpdateFail'));
}
});
},
onRowUpdated: function(e) {
onRowUpdated: function (e) {
SweetAlert.success($translate.instant('UpdateSuccess'));
},
onRowRemoving: function(e) {
onRowRemoving: function (e) {
orgExtraService.deleteApprovedLevyInfo(e.key.id).success(function (data) {
if (data) {
getApprovedLevyList($scope.selectCompany.id);
return;
}else{
} else {
SweetAlert.error($translate.instant('DeleteFail'));
}
});
},
onRowRemoved: function(e) {
onRowRemoved: function (e) {
SweetAlert.success($translate.instant('DeleteSuccess'));
},
loadPanel: {
......@@ -1485,9 +1477,9 @@
};
$scope.visiableApprovedLevyInfo = function () {
if($scope.showApprovedLevyInfo){
if ($scope.showApprovedLevyInfo) {
$scope.showApprovedLevyInfo = false;
}else{
} else {
$scope.showApprovedLevyInfo = true;
}
};
......@@ -1509,44 +1501,43 @@
},
columns: [{
dataField: "id",
visible : false,
visible: false,
allowHeaderFiltering: false,
caption: $translate.instant('id')
},{
}, {
dataField: "index",
width : '5%',
width: '5%',
allowHeaderFiltering: false,
caption: $translate.instant('SequenceNoCol')
},{
}, {
dataField: "taxOfficerName",
allowHeaderFiltering: false,
caption: $translate.instant('TaxOfficerName'),
width : '25%'
},{
width: '25%'
}, {
dataField: "taxOfficerPhoneNum",
allowHeaderFiltering: false,
caption: $translate.instant('TaxOfficerPhoneNum'),
width : '25%'
},{
width: '25%'
}, {
dataField: "remark",
allowHeaderFiltering: false,
caption: $translate.instant('TaxOfficerRemark'),
width : '25%'
width: '25%'
}],
onContentReady: function (e) {
$scope.taxOfficerListInstance = e.component;
var totalCount =e.component.totalCount();
if(totalCount>0)
{
$scope.totalCount=totalCount;
var totalCount = e.component.totalCount();
if (totalCount > 0) {
$scope.totalCount = totalCount;
}
},
onEditingStart: function(e) {
onEditingStart: function (e) {
},
onInitNewRow: function(e) {
onInitNewRow: function (e) {
},
onRowInserting: function(e) {
var dataList= [];
onRowInserting: function (e) {
var dataList = [];
var rowData = e.data;
rowData.organizationId = $scope.selectCompany.id;
delete rowData.__KEY__;
......@@ -1555,40 +1546,40 @@
if (data) {
getTaxOfficerList($scope.selectCompany.id);
return;
}else{
} else {
SweetAlert.error($translate.instant('SaveFail'));
}
});
},
onRowInserted: function(e) {
onRowInserted: function (e) {
SweetAlert.success($translate.instant('SaveSuccess'));
},
onRowUpdating: function(e) {
onRowUpdating: function (e) {
var updateData = e.newData;
updateData.id = e.key.id;
orgExtraService.updateTaxOfficer(updateData).success(function (data) {
if (data) {
getTaxOfficerList($scope.selectCompany.id);
return;
}else{
} else {
SweetAlert.error($translate.instant('UpdateFail'));
}
});
},
onRowUpdated: function(e) {
onRowUpdated: function (e) {
SweetAlert.success($translate.instant('UpdateSuccess'));
},
onRowRemoving: function(e) {
onRowRemoving: function (e) {
orgExtraService.deleteTaxOfficer(e.key.id).success(function (data) {
if (data) {
getTaxOfficerList($scope.selectCompany.id);
return;
}else{
} else {
SweetAlert.error($translate.instant('DeleteFail'));
}
});
},
onRowRemoved: function(e) {
onRowRemoved: function (e) {
SweetAlert.success($translate.instant('DeleteSuccess'));
},
loadPanel: {
......@@ -1636,9 +1627,9 @@
};
$scope.visiableTaxOfficerInfo = function () {
if($scope.showTaxOfficerInfo){
if ($scope.showTaxOfficerInfo) {
$scope.showTaxOfficerInfo = false;
}else{
} else {
$scope.showTaxOfficerInfo = true;
}
};
......@@ -1687,19 +1678,18 @@
}],
onContentReady: function (e) {
$scope.employeeListInstance = e.component;
var totalCount =e.component.totalCount();
if(totalCount>0)
{
$scope.totalCount=totalCount;
var totalCount = e.component.totalCount();
if (totalCount > 0) {
$scope.totalCount = totalCount;
}
},
onEditingStart: function(e) {
onEditingStart: function (e) {
},
onInitNewRow: function(e) {
onInitNewRow: function (e) {
},
onRowInserting: function(e) {
var dataList= [];
onRowInserting: function (e) {
var dataList = [];
var rowData = e.data;
rowData.organizationId = $scope.selectCompany.id;
delete rowData.__KEY__;
......@@ -1708,40 +1698,40 @@
if (data) {
getEmployeeList($scope.selectCompany.id);
return;
}else{
} else {
SweetAlert.error($translate.instant('SaveFail'));
}
});
},
onRowInserted: function(e) {
onRowInserted: function (e) {
SweetAlert.success($translate.instant('SaveSuccess'));
},
onRowUpdating: function(e) {
onRowUpdating: function (e) {
var updateData = e.newData;
updateData.id = e.key.id;
orgExtraService.updateEmployee(updateData).success(function (data) {
if (data) {
getEmployeeList($scope.selectCompany.id);
return;
}else{
} else {
SweetAlert.error($translate.instant('UpdateFail'));
}
});
},
onRowUpdated: function(e) {
onRowUpdated: function (e) {
SweetAlert.success($translate.instant('UpdateSuccess'));
},
onRowRemoving: function(e) {
onRowRemoving: function (e) {
orgExtraService.deleteEmployee(e.key.id).success(function (data) {
if (data) {
getEmployeeList($scope.selectCompany.id);
return;
}else{
} else {
SweetAlert.error($translate.instant('DeleteFail'));
}
});
},
onRowRemoved: function(e) {
onRowRemoved: function (e) {
SweetAlert.success($translate.instant('DeleteSuccess'));
},
loadPanel: {
......@@ -1789,9 +1779,9 @@
};
$scope.visiableEmployee = function () {
if($scope.showEmployee){
if ($scope.showEmployee) {
$scope.showEmployee = false;
}else{
} else {
$scope.showEmployee = true;
}
};
......@@ -1853,19 +1843,18 @@
],
onContentReady: function (e) {
$scope.taxpayerQualificationListInstance = e.component;
var totalCount =e.component.totalCount();
if(totalCount>0)
{
$scope.totalCount=totalCount;
var totalCount = e.component.totalCount();
if (totalCount > 0) {
$scope.totalCount = totalCount;
}
},
onEditingStart: function(e) {
onEditingStart: function (e) {
},
onInitNewRow: function(e) {
onInitNewRow: function (e) {
},
onRowInserting: function(e) {
var dataList= [];
onRowInserting: function (e) {
var dataList = [];
var rowData = e.data;
rowData.organizationId = $scope.selectCompany.id;
delete rowData.__KEY__;
......@@ -1874,40 +1863,40 @@
if (data) {
getTaxpayerQualificationList($scope.selectCompany.id);
return;
}else{
} else {
SweetAlert.error($translate.instant('SaveFail'));
}
});
},
onRowInserted: function(e) {
onRowInserted: function (e) {
SweetAlert.success($translate.instant('SaveSuccess'));
},
onRowUpdating: function(e) {
onRowUpdating: function (e) {
var updateData = e.newData;
updateData.id = e.key.id;
orgExtraService.updateTaxpayerQualification(updateData).success(function (data) {
if (data) {
getTaxpayerQualificationList($scope.selectCompany.id);
return;
}else{
} else {
SweetAlert.error($translate.instant('UpdateFail'));
}
});
},
onRowUpdated: function(e) {
onRowUpdated: function (e) {
SweetAlert.success($translate.instant('UpdateSuccess'));
},
onRowRemoving: function(e) {
onRowRemoving: function (e) {
orgExtraService.deleteTaxpayerQualification(e.key.id).success(function (data) {
if (data) {
getTaxpayerQualificationList($scope.selectCompany.id);
return;
}else{
} else {
SweetAlert.error($translate.instant('DeleteFail'));
}
});
},
onRowRemoved: function(e) {
onRowRemoved: function (e) {
SweetAlert.success($translate.instant('DeleteSuccess'));
},
loadPanel: {
......@@ -1955,9 +1944,9 @@
};
$scope.visiableTaxpayerQualification = function () {
if($scope.showTaxpayerQualification){
if ($scope.showTaxpayerQualification) {
$scope.showTaxpayerQualification = false;
}else{
} else {
$scope.showTaxpayerQualification = true;
}
};
......@@ -1983,7 +1972,6 @@
};
// 保存启用、启用的操作结果
$scope.updateIsActive = function () {
$scope.isCanOrganizationIsActiveBtn = false;
......@@ -2162,16 +2150,16 @@
// TODO 将这个方法添加到切换功能里
$scope.updateOrgExtraCancel = function () {
$scope.selectCompanyExtra = $scope.comExtraOldData;
$scope.selectCompanyExtra.unifiedSocialCreditCode=$scope.selectCompany.taxPayerNumber;
$scope.selectCompanyExtra.unifiedSocialCreditCode = $scope.selectCompany.taxPayerNumber;
$scope.editOrgExtraModel = $scope.editOldData;
generalSelectCompanyExtraText();
cancelWebChange();
};
var cancelWebChange = function(){
var cancelWebChange = function () {
$('.tax-extra-info-content .col-sm-8 span').removeAttr("hidden");
$('.tax-reg-info-content .col-sm-4 span').removeAttr("hidden");
$('.extra-organization-info .right-option .button2position').attr("hidden","hidden");
$('.extra-organization-info .right-option .button2position').attr("hidden", "hidden");
$('.extra-organization-info .right-option .updOrgBtn').removeAttr("hidden");
for (var i = 0; i < $('.tax-reg-info-content .col-sm-4 input').length; i++) {
$('.tax-reg-info-content .col-sm-4 input')[i].style.display = "none";
......@@ -2232,23 +2220,23 @@
});
};
var generalSelectCompanyExtraText = function(){
if($scope.selectCompanyExtra.smallMeagerProfit!=null){
$scope.selectCompanyExtra.smallMeagerProfit = $scope.selectCompanyExtra.smallMeagerProfit?"是":"否";
var generalSelectCompanyExtraText = function () {
if ($scope.selectCompanyExtra.smallMeagerProfit != null) {
$scope.selectCompanyExtra.smallMeagerProfit = $scope.selectCompanyExtra.smallMeagerProfit ? "是" : "否";
}
if($scope.selectCompanyExtra.listedCompany!=null){
$scope.selectCompanyExtra.listedCompany = $scope.selectCompanyExtra.listedCompany?"是":"否";
if ($scope.selectCompanyExtra.listedCompany != null) {
$scope.selectCompanyExtra.listedCompany = $scope.selectCompanyExtra.listedCompany ? "是" : "否";
}
if($scope.selectCompanyExtra.signTripartiteAgreement!=null){
if ($scope.selectCompanyExtra.signTripartiteAgreement != null) {
$scope.selectCompanyExtra.signTripartiteAgreement =
$scope.selectCompanyExtra.signTripartiteAgreement?"是":"否";
$scope.selectCompanyExtra.signTripartiteAgreement ? "是" : "否";
}
if($scope.selectCompanyExtra.completeRecordTotalInstitutions!=null){
if ($scope.selectCompanyExtra.completeRecordTotalInstitutions != null) {
$scope.selectCompanyExtra.completeRecordTotalInstitutions =
$scope.selectCompanyExtra.completeRecordTotalInstitutions?"是":"否";
$scope.selectCompanyExtra.completeRecordTotalInstitutions ? "是" : "否";
}
if($scope.selectCompanyExtra.regFinancialAccountingType!=null){
$scope.regFinancialAccountingTypeList.map(function(value,index){
if ($scope.selectCompanyExtra.regFinancialAccountingType != null) {
$scope.regFinancialAccountingTypeList.map(function (value, index) {
if (value.code === $scope.selectCompanyExtra.regFinancialAccountingType) {
$scope.selectCompanyExtra.regFinancialAccountingType = value.type;
return;
......@@ -2257,20 +2245,20 @@
}
};
var generalSelectCompanyText = function(){
if($scope.selectCompany.engageNationalProhibitIndustry!=null){
$scope.selectCompany.engageNationalProhibitIndustryStr = $scope.selectCompany.engageNationalProhibitIndustry?"是":"否";
var generalSelectCompanyText = function () {
if ($scope.selectCompany.engageNationalProhibitIndustry != null) {
$scope.selectCompany.engageNationalProhibitIndustryStr = $scope.selectCompany.engageNationalProhibitIndustry ? "是" : "否";
}
if($scope.selectCompany.nationalEconomicIndustry!=null){
$scope.nationalEconomicIndustryList.map(function(value,index){
if ($scope.selectCompany.nationalEconomicIndustry != null) {
$scope.nationalEconomicIndustryList.map(function (value, index) {
if (value.code === $scope.selectCompany.nationalEconomicIndustry) {
$scope.selectCompany.nationalEconomicIndustryStr = value.code+"-"+value.type;
$scope.selectCompany.nationalEconomicIndustryStr = value.code + "-" + value.type;
return;
}
});
if(null==$scope.selectCompany.nationalEconomicIndustryStr||""===$scope.selectCompany.nationalEconomicIndustryStr){
$scope.selectCompany.nationalEconomicIndustryStr=$scope.selectCompany.nationalEconomicIndustry;
if (null == $scope.selectCompany.nationalEconomicIndustryStr || "" === $scope.selectCompany.nationalEconomicIndustryStr) {
$scope.selectCompany.nationalEconomicIndustryStr = $scope.selectCompany.nationalEconomicIndustry;
}
}
};
......@@ -2359,8 +2347,12 @@
if (data && data.length > 0) {
data.forEach(function (row) {
var uniqRoleList = _.uniq(row.roleInfoList, function (item) { return item.name });
row.roleNameList = _.map(uniqRoleList, function (x) { return x.name; }).join(constant.comma);
var uniqRoleList = _.uniq(row.roleInfoList, function (item) {
return item.name
});
row.roleNameList = _.map(uniqRoleList, function (x) {
return x.name;
}).join(constant.comma);
//var roleNames = _.pluck(row.roleInfoList, 'name');
//row.roleNameList = roleNames.join(',');
......@@ -2371,7 +2363,7 @@
row.hasEditPermission = $scope.hasEditPermission;
userRoleShowList.push({ id: row.id, userName: row.userName, roleNameList: row.roleNameList });
userRoleShowList.push({id: row.id, userName: row.userName, roleNameList: row.roleNameList});
row.roleInfoList.forEach(function (role) {
var one = _.find(roleStaticsList, function (data) {
return data.id === role.id;
......@@ -2400,7 +2392,6 @@
$scope.selectOrganization = function (branch) {
var org = branch.data;
$scope.output = "You selected: " + org.id;
......@@ -2446,7 +2437,7 @@
$scope.isInternational = $scope.selectCompany.oversea;
$scope.editOrgExtraModel.unifiedSocialCreditCode = $scope.selectCompany.taxPayerNumber;
$scope.selectCompanyExtra.unifiedSocialCreditCode=$scope.selectCompany.taxPayerNumber;
$scope.selectCompanyExtra.unifiedSocialCreditCode = $scope.selectCompany.taxPayerNumber;
//加载用户权限list
loadUserRoleList(org.id);
generalSelectCompanyText();
......@@ -2457,7 +2448,7 @@
orgService.getSingleOrgExtra(org.id).success(function (data) {
if(data){
if (data) {
$scope.selectCompanyExtra = data;
$scope.editOrgExtraModel = angular.copy(data);
generalSelectCompanyExtraText();
......@@ -2981,8 +2972,6 @@
};
var getAllRolePermission = function () {
roleService.getAllRolePermission(constant.serviceType.VAT).success(function (data) {
if (data) {
......@@ -3007,10 +2996,10 @@
amountTotal: amountTotal,
proportionTotal: proportionTotal
};
if($scope.EquitySumInfo.proportionTotal!==100){
$scope.isNotHundred=true;
}else{
$scope.isNotHundred=false;
if ($scope.EquitySumInfo.proportionTotal !== 100) {
$scope.isNotHundred = true;
} else {
$scope.isNotHundred = false;
}
} else {
SweetAlert.warning($translate.instant('NoEquityInfo'));
......@@ -3018,7 +3007,7 @@
});
};
$scope.refreshEquityList = function (){
$scope.refreshEquityList = function () {
getEquityListByOrgId($scope.selectCompany.id);
getEquityChangeList($scope.selectCompany.name);
};
......@@ -3108,7 +3097,7 @@
$scope.getGridHeight = function () {
return { height: $(".dx-viewport").height() + "px" };
return {height: $(".dx-viewport").height() + "px"};
};
//获取当前角色对应的权限列表
......
......@@ -397,6 +397,7 @@
};
var getImportInternationalBUData = function () {
param.type = $scope.importType;
vatImportService.displayAnalysisInternationalImportData(param).success(function (data) {
if (data.data) {
$scope.internationalBUDataGridSource = data.data;
......@@ -475,6 +476,7 @@
};
var getImportInternationalTaxData = function () {
param.type = $scope.importType;
vatImportService.displayAnalysisInternationalImportData(param).success(function (data) {
if (data.data) {
$scope.internationalTaxDataGridSource = data.data;
......
......@@ -229,8 +229,11 @@
</div>
</div>
<div class="modal-footer">
<!-- <button style="margin-left: 22px;" type="button" class="btn btn-primary" ng-click="saveAssetGroupInfo()"-->
<!-- ng-disabled="!hasEditPermission">{{'Confirm' | translate }}-->
<!-- </button>-->
<button style="margin-left: 22px;" type="button" class="btn btn-primary" ng-click="saveAssetGroupInfo()"
ng-disabled="!hasEditPermission">{{'Confirm' | translate }}
>{{'Confirm' | translate }}
</button>
<button type="button" class="btn btn-third" ng-click="cancelAsset()" ng-if="!isDisabled"
ng-disabled="isDisabled">{{'ButtonCancel' | translate }}
......
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