Commit 4e0d862b authored by zhkwei's avatar zhkwei

CIT--fixbug

parent 88d15195
...@@ -42,6 +42,9 @@ public class POIUtil { ...@@ -42,6 +42,9 @@ public class POIUtil {
} }
Row targetRow = targetSheet.createRow(r); Row targetRow = targetSheet.createRow(r);
for (int c = row.getFirstCellNum(); c <= row.getLastCellNum(); c++) { for (int c = row.getFirstCellNum(); c <= row.getLastCellNum(); c++) {
if(c < 0 ){
continue;
}
Cell cell = row.getCell(c); Cell cell = row.getCell(c);
if (null == cell) { if (null == cell) {
continue; continue;
......
...@@ -91,6 +91,9 @@ public class TemplateController extends BaseController { ...@@ -91,6 +91,9 @@ public class TemplateController extends BaseController {
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);
for (int c = row.getFirstCellNum(); c <= row.getLastCellNum(); c++) { for (int c = row.getFirstCellNum(); c <= row.getLastCellNum(); c++) {
if(c < 0){
continue;
}
Cell cell = row.getCell(c); Cell cell = row.getCell(c);
if (cell != null && !cell.getCellStyle().getLocked()) { if (cell != null && !cell.getCellStyle().getLocked()) {
cell.setCellValue(StringUtils.EMPTY); cell.setCellValue(StringUtils.EMPTY);
......
...@@ -154,6 +154,7 @@ public class MenuServiceImpl { ...@@ -154,6 +154,7 @@ public class MenuServiceImpl {
menuIds.add("a9b1cd87-89ef-4dae-b798-b19e9bbe0828"); menuIds.add("a9b1cd87-89ef-4dae-b798-b19e9bbe0828");
menuIds.add("a9b1cd87-89ef-4dae-b798-b19e9bbe0829"); menuIds.add("a9b1cd87-89ef-4dae-b798-b19e9bbe0829");
menuIds.add("a9b1cd87-89ef-4dae-b798-b19e9bbe0830"); menuIds.add("a9b1cd87-89ef-4dae-b798-b19e9bbe0830");
// menuIds.add("a9b1cd87-89ef-4dae-b798-b19e9bbe0831");
menuIds.add("b8c74ee9-e5d7-467b-8565-e77efe6a499f"); menuIds.add("b8c74ee9-e5d7-467b-8565-e77efe6a499f");
}else if(moduleId==4){ }else if(moduleId==4){
// 这里的权限之后需要在数据库中加上对应的权限数据 // 这里的权限之后需要在数据库中加上对应的权限数据
......
...@@ -406,6 +406,9 @@ public class TemplateGroupServiceImpl extends AbstractService { ...@@ -406,6 +406,9 @@ public class TemplateGroupServiceImpl extends AbstractService {
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);
for (int c = row.getFirstCellNum(); c <= row.getLastCellNum(); c++) { for (int c = row.getFirstCellNum(); c <= row.getLastCellNum(); c++) {
if(c<0){
continue;
}
Cell cell = row.getCell(c); Cell cell = row.getCell(c);
if (cell == null) { if (cell == null) {
continue;//todo cell == null 如何处理 continue;//todo cell == null 如何处理
......
...@@ -276,7 +276,7 @@ ...@@ -276,7 +276,7 @@
// } // }
// }); // });
$scope.assetsResultData = data; $scope.assetsResultData = data;
// $scope.TotalCount = data.length; $scope.TotalCount = data.total;
// $scope.TotalAccountAcquisitionValue = PWC.round($scope.TotalAccountAcquisitionValue, 2); // $scope.TotalAccountAcquisitionValue = PWC.round($scope.TotalAccountAcquisitionValue, 2);
// $scope.TotalAccountYearDepreciationAmount = PWC.round($scope.TotalAccountYearDepreciationAmount, 2); // $scope.TotalAccountYearDepreciationAmount = PWC.round($scope.TotalAccountYearDepreciationAmount, 2);
// $scope.TotalTaxCurrentYearDepreciationAmount = PWC.round($scope.TotalTaxCurrentYearDepreciationAmount, 2); // $scope.TotalTaxCurrentYearDepreciationAmount = PWC.round($scope.TotalTaxCurrentYearDepreciationAmount, 2);
...@@ -286,7 +286,6 @@ ...@@ -286,7 +286,6 @@
$scope.TotalTaxCurrentYearDepreciationAmount = PWC.round(data[0].totalTaxCurrentYearDepreciationAmount, 2); $scope.TotalTaxCurrentYearDepreciationAmount = PWC.round(data[0].totalTaxCurrentYearDepreciationAmount, 2);
$scope.TotalYearDifferenceAmount = PWC.round(data[0].totalYearDifferenceAmount, 2); $scope.TotalYearDifferenceAmount = PWC.round(data[0].totalYearDifferenceAmount, 2);
} }
$scope.totalItemsTemp = assetListData.data.total;
$scope.pagingOptions.totalItems = assetListData.data.total; $scope.pagingOptions.totalItems = assetListData.data.total;
}); });
} }
...@@ -979,19 +978,13 @@ ...@@ -979,19 +978,13 @@
//开始 //开始
(function initialize() { (function initialize() {
$scope.totalItemsTemp = 0;
//分页的设置 //分页的设置
debugger; debugger;
//分页的设置
$scope.pagingOptions = { $scope.pagingOptions = {
pageIndex: 1, //当前页码 pageIndex: 1, //当前页码
pageSize: constant.page.pageSizeArrary[3], //每页多少条数据
totalItems: 0, //总数据 totalItems: 0, //总数据
totalPages: 0,//总页数 pageSize: 100, //每页多少条数据
pageSizeString: constant.page.pageSizeArrary[3].toString(),
firstPage: '<<', //$translate.instant('PagingFirstPage'),
previousPage: '<', //$translate.instant('PagingPreviousPage'),
nextPage:'>',// $translate.instant('PagingNextPage'),
lastPage: '>>' //$translate.instant('PagingLastPage'),
}; };
/**************************************** function start*************************************************/ /**************************************** function start*************************************************/
$scope.displayType = 2; $scope.displayType = 2;
...@@ -1002,6 +995,8 @@ ...@@ -1002,6 +995,8 @@
$scope.initIncomeInvoiceTotalColumnsIndex = []; $scope.initIncomeInvoiceTotalColumnsIndex = [];
$scope.changeSheet = changeSheet; $scope.changeSheet = changeSheet;
debugger; debugger;
function init(){
initColumns(); initColumns();
initDxGrid(); initDxGrid();
initAssetResultDxGrid(); initAssetResultDxGrid();
...@@ -1010,7 +1005,8 @@ ...@@ -1010,7 +1005,8 @@
getGroupList(); getGroupList();
getGroupDetailList(); getGroupDetailList();
getUserPermission(); getUserPermission();
$scope.pagingOptions.totalItems = $scope.totalItemsTemp; }
init();
// $scope.$watch('fileNameWrapper', function (newValue, oldValue) { // $scope.$watch('fileNameWrapper', function (newValue, oldValue) {
// if (newValue != null && newValue !== oldValue) { // if (newValue != null && newValue !== oldValue) {
// //设置上传文件名 // //设置上传文件名
......
...@@ -171,11 +171,12 @@ ...@@ -171,11 +171,12 @@
}, },
__RequestVerificationToken: token, __RequestVerificationToken: token,
withCredentials: true withCredentials: true
}).then(function(resp) { }).then(function(data) {
var resp = data.data;
debugger; debugger;
$('#busy-indicator-container').hide(); $('#busy-indicator-container').hide();
deferred.resolve(); deferred.resolve();
if (resp.result || resp.data) { if (resp.result) {
debugger; debugger;
logDto.UpdateState = $translate.instant('ImportSuccess'); logDto.UpdateState = $translate.instant('ImportSuccess');
vatOperationLogService.addOperationLog(logDto); vatOperationLogService.addOperationLog(logDto);
...@@ -183,7 +184,7 @@ ...@@ -183,7 +184,7 @@
} else { } else {
debugger; debugger;
if (resp.resultMsg && resp.resultMsg.length > 0) { if (resp.resultMsg && resp.resultMsg.length > 0) {
SweetAlert.warning($translate.instant(resp.resultMsg)); SweetAlert.warning(resp.resultMsg);
}else{ }else{
SweetAlert.error($translate.instant('ImportFailed')); SweetAlert.error($translate.instant('ImportFailed'));
} }
......
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