Commit df9f5f52 authored by chase's avatar chase

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

parents 25de119a 8bcf3ede
...@@ -490,7 +490,7 @@ public class AnalysisServiceImpl extends BaseService { ...@@ -490,7 +490,7 @@ public class AnalysisServiceImpl extends BaseService {
Sheet sheet = workbook.getSheetAt(i); Sheet sheet = workbook.getSheetAt(i);
if (isSheetEmpty(sheet)) continue; if (isSheetEmpty(sheet)) continue;
List<AnalysisInternationalTaxData> lists = Lists.newArrayList(); List<AnalysisInternationalTaxData> lists = Lists.newArrayList();
for (int j = 1; j <= sheet.getLastRowNum(); j++) { for (int j = 1; j <= 1; j++) {
Cell cell1 = sheet.getRow(j).getCell(0); Cell cell1 = sheet.getRow(j).getCell(0);
if (null == cell1 || StringUtils.isEmpty(getCellStringValue(cell1))) { if (null == cell1 || StringUtils.isEmpty(getCellStringValue(cell1))) {
continue; continue;
......
...@@ -996,6 +996,8 @@ ...@@ -996,6 +996,8 @@
"PleaseSelect": "Please Select...", "PleaseSelect": "Please Select...",
"PleaseSelectColumn": "Please Select Column Name", "PleaseSelectColumn": "Please Select Column Name",
"PleaseSelectFileFirst": "Please Choose at Lease One File!", "PleaseSelectFileFirst": "Please Choose at Lease One File!",
"PleaseSelectCountryFirst": "Please Choose at one country!",
"PleaseSelectCompanyFirst": "Please Choose at one company!",
"PostedBy": "Posted by", "PostedBy": "Posted by",
"PostingPeriod": "Posting Period", "PostingPeriod": "Posting Period",
"PreVoucherNumber": "Initial Value of Voucher Number", "PreVoucherNumber": "Initial Value of Voucher Number",
......
...@@ -1293,6 +1293,8 @@ ...@@ -1293,6 +1293,8 @@
"PleaseSelectColumn": "请选择列名", "PleaseSelectColumn": "请选择列名",
"PleaseSelectFile": "请先选择文件", "PleaseSelectFile": "请先选择文件",
"PleaseSelectFileFirst": "请先选择文件!", "PleaseSelectFileFirst": "请先选择文件!",
"PleaseSelectCountryFirst": "请先选择国家!",
"PleaseSelectCompanyFirst": "请先选择公司!",
"PleaseSelectProductType": "请选择商品种类", "PleaseSelectProductType": "请选择商品种类",
"PleaseSelectRecordToDelete": "请选择需要删除的记录!", "PleaseSelectRecordToDelete": "请选择需要删除的记录!",
"PleaseSelectServiceType": "请选择服务类型", "PleaseSelectServiceType": "请选择服务类型",
......
...@@ -194,10 +194,21 @@ ...@@ -194,10 +194,21 @@
return; return;
} }
if (!$scope.selectCountry||''===$scope.selectCountry){
SweetAlert.warning($translate.instant('PleaseSelectFileFirst'));
return;
}
if (!$scope.selectCompany||''===$scope.selectCompany){
SweetAlert.warning($translate.instant('PleaseSelectFileFirst'));
return;
}
var url = getUploadUrl(); var url = getUploadUrl();
var period = $scope.UploadPeriodTime; var period = $scope.UploadPeriodTime;
Upload.upload({ Upload.upload({
url: url, url: url,
data: { data: {
...@@ -297,39 +308,34 @@ ...@@ -297,39 +308,34 @@
columns: [ columns: [
{ {
dataField: "gmv", dataField: "gmv",
width: '14%', width: '16%',
allowHeaderFiltering: false, allowHeaderFiltering: false,
caption: 'Gmv' caption: 'Gmv'
}, { }, {
dataField: "trips", dataField: "trips",
allowHeaderFiltering: false, allowHeaderFiltering: false,
caption: 'Trips', caption: 'Trips',
width: '14%' width: '16%'
}, { }, {
dataField: "subsidyB", dataField: "subsidyB",
allowHeaderFiltering: false, allowHeaderFiltering: false,
width: '14%', width: '16%',
caption: 'SubsidyB' caption: 'SubsidyB'
}, { }, {
dataField: "subsidyC", dataField: "subsidyC",
allowHeaderFiltering: false, allowHeaderFiltering: false,
width: '14%', width: '16%',
caption: 'SubsidyC' caption: 'SubsidyC'
}, { }, {
dataField: "revenue", dataField: "revenue",
allowHeaderFiltering: false, allowHeaderFiltering: false,
width: '14%', width: '16%',
caption: 'Revenue' caption: 'Revenue'
}, { }, {
dataField: "profit", dataField: "profit",
allowHeaderFiltering: false, allowHeaderFiltering: false,
width: '14%', width: '16%',
caption: 'Profit' caption: 'Profit'
}, {
dataField: "exchangeRate",
allowHeaderFiltering: false,
width: '14%',
caption: 'ExchangeRate'
}], }],
onContentReady: function (e) { onContentReady: function (e) {
$scope.accountingRateListInstance = e.component; $scope.accountingRateListInstance = e.component;
......
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