Commit f09cd069 authored by zhkwei's avatar zhkwei

CIT数据导入CSS样式更改

parent 4e1f53ea
...@@ -172,6 +172,10 @@ public class CitImportExcelServiceImpl extends BaseService { ...@@ -172,6 +172,10 @@ public class CitImportExcelServiceImpl extends BaseService {
citDataImportLogError.setRecordSize(1); citDataImportLogError.setRecordSize(1);
//获取该行数据 //获取该行数据
Row rowData = sheet.getRow(rowNum); Row rowData = sheet.getRow(rowNum);
if(rowData == null){
citDataImportLogError.setErrorMsg("数据错误,第"+(rowNum+1)+"整行为空");
citDataImportLogList.add(citDataImportLogError);
}
//拼接日记账调整版的实体 //拼接日记账调整版的实体
CitJournalEntryAdjust citJournal = new CitJournalEntryAdjust(); CitJournalEntryAdjust citJournal = new CitJournalEntryAdjust();
citJournal.setId(idService.nextId()); citJournal.setId(idService.nextId());
...@@ -180,12 +184,27 @@ public class CitImportExcelServiceImpl extends BaseService { ...@@ -180,12 +184,27 @@ public class CitImportExcelServiceImpl extends BaseService {
citJournal.setCreatedBy(currentUserName); citJournal.setCreatedBy(currentUserName);
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
citJournal.setAccountPeriod(new Integer(CitCommonUtil.getValue(rowData.getCell(2)).toString().replace("-", ""))); Object cellValue = CitCommonUtil.getValue(rowData.getCell(2));
if(cellValue == null){
citDataImportLogError.setErrorMsg("数据错误,第"+(rowNum+1)+"行会计期间为空");
citDataImportLogList.add(citDataImportLogError);
continue;
}
citJournal.setAccountPeriod(new Integer(cellValue.toString().replace("-", "")));
citJournal.setAccountingDate(sdf.parse(CitCommonUtil.getValue(rowData.getCell(3)).toString())); citJournal.setAccountingDate(sdf.parse(CitCommonUtil.getValue(rowData.getCell(3)).toString()));
citJournal.setVoucherNum(CitCommonUtil.getValue(rowData.getCell(7)).toString()); citJournal.setVoucherNum(CitCommonUtil.getValue(rowData.getCell(7)).toString());
citJournal.setDescription(CitCommonUtil.getValue(rowData.getCell(8)).toString()); citJournal.setDescription(CitCommonUtil.getValue(rowData.getCell(8)).toString());
citJournal.setOrgCode(CitCommonUtil.getValue(rowData.getCell(9)).toString());
Object cellValue = CitCommonUtil.getValue(rowData.getCell(11)); cellValue = CitCommonUtil.getValue(rowData.getCell(9));
if(cellValue == null){
citDataImportLogError.setErrorMsg("数据错误,第"+(rowNum+1)+"行主体为空");
citDataImportLogList.add(citDataImportLogError);
continue;
}
citJournal.setOrgCode(cellValue.toString());
cellValue = CitCommonUtil.getValue(rowData.getCell(11));
if(cellValue == null){ if(cellValue == null){
citDataImportLogError.setErrorMsg("数据错误,第"+(rowNum+1)+"行科目代码为空"); citDataImportLogError.setErrorMsg("数据错误,第"+(rowNum+1)+"行科目代码为空");
citDataImportLogList.add(citDataImportLogError); citDataImportLogList.add(citDataImportLogError);
......
...@@ -60,8 +60,8 @@ ...@@ -60,8 +60,8 @@
totalItems: 0, //总数据 totalItems: 0, //总数据
totalPages: 10, //总页数 totalPages: 10, //总页数
maxSize: 5, //分页数字的限制。 maxSize: 5, //分页数字的限制。
pageSize: constant.page.pageSizeArrary[3], //每页多少条数据,100条 pageSize: constant.page.pageSizeArrary[1], //每页多少条数据,100条
pageSizeString: constant.page.pageSizeArrary[3].toString(), pageSizeString: constant.page.pageSizeArrary[1].toString(),
firstPage: $translate.instant('PagingFirstPage'), firstPage: $translate.instant('PagingFirstPage'),
previousPage: $translate.instant('PagingPreviousPage'), previousPage: $translate.instant('PagingPreviousPage'),
nextPage: $translate.instant('PagingNextPage'), nextPage: $translate.instant('PagingNextPage'),
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
/*background-color: @color-white;*/ /*background-color: @color-white;*/
padding-left: 20px; padding-left: 20px;
/*min-height: 800px;*/ /*min-height: 800px;*/
height: 96%; height: 100%;
.nav-wrapper { .nav-wrapper {
/*padding-bottom: 5px; /*padding-bottom: 5px;
......
...@@ -57,8 +57,8 @@ ...@@ -57,8 +57,8 @@
totalItems: 0, //总数据 totalItems: 0, //总数据
totalPages: 10, //总页数 totalPages: 10, //总页数
maxSize: 5, //分页数字的限制。 maxSize: 5, //分页数字的限制。
pageSize: constant.page.pageSizeArrary[3], //每页多少条数据,100条 pageSize: constant.page.pageSizeArrary[1], //每页多少条数据,100条
pageSizeString: constant.page.pageSizeArrary[3].toString(), pageSizeString: constant.page.pageSizeArrary[1].toString(),
firstPage: $translate.instant('PagingFirstPage'), firstPage: $translate.instant('PagingFirstPage'),
previousPage: $translate.instant('PagingPreviousPage'), previousPage: $translate.instant('PagingPreviousPage'),
nextPage: $translate.instant('PagingNextPage'), nextPage: $translate.instant('PagingNextPage'),
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
/*background-color: @color-white;*/ /*background-color: @color-white;*/
padding-left: 20px; padding-left: 20px;
/*min-height: 800px;*/ /*min-height: 800px;*/
height: 96%; height: 100%;
.nav-wrapper { .nav-wrapper {
/*padding-bottom: 5px; /*padding-bottom: 5px;
......
...@@ -57,8 +57,8 @@ ...@@ -57,8 +57,8 @@
totalItems: 0, //总数据 totalItems: 0, //总数据
totalPages: 10, //总页数 totalPages: 10, //总页数
maxSize: 5, //分页数字的限制。 maxSize: 5, //分页数字的限制。
pageSize: constant.page.pageSizeArrary[3], //每页多少条数据,100条 pageSize: constant.page.pageSizeArrary[1], //每页多少条数据,100条
pageSizeString: constant.page.pageSizeArrary[3].toString(), pageSizeString: constant.page.pageSizeArrary[1].toString(),
firstPage: $translate.instant('PagingFirstPage'), firstPage: $translate.instant('PagingFirstPage'),
previousPage: $translate.instant('PagingPreviousPage'), previousPage: $translate.instant('PagingPreviousPage'),
nextPage: $translate.instant('PagingNextPage'), nextPage: $translate.instant('PagingNextPage'),
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
/*background-color: @color-white;*/ /*background-color: @color-white;*/
padding-left: 20px; padding-left: 20px;
/*min-height: 800px;*/ /*min-height: 800px;*/
height: 96%; height: 100%;
.nav-wrapper { .nav-wrapper {
/*padding-bottom: 5px; /*padding-bottom: 5px;
......
...@@ -62,8 +62,8 @@ ...@@ -62,8 +62,8 @@
totalItems: 0, //总数据 totalItems: 0, //总数据
totalPages: 10, //总页数 totalPages: 10, //总页数
maxSize: 5, //分页数字的限制。 maxSize: 5, //分页数字的限制。
pageSize: constant.page.pageSizeArrary[3], //每页多少条数据,100条 pageSize: constant.page.pageSizeArrary[1], //每页多少条数据,100条
pageSizeString: constant.page.pageSizeArrary[3].toString(), pageSizeString: constant.page.pageSizeArrary[1].toString(),
firstPage: $translate.instant('PagingFirstPage'), firstPage: $translate.instant('PagingFirstPage'),
previousPage: $translate.instant('PagingPreviousPage'), previousPage: $translate.instant('PagingPreviousPage'),
nextPage: $translate.instant('PagingNextPage'), nextPage: $translate.instant('PagingNextPage'),
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
/*background-color: @color-white;*/ /*background-color: @color-white;*/
padding-left: 20px; padding-left: 20px;
/*min-height: 800px;*/ /*min-height: 800px;*/
height: 96%; height: 100%;
.nav-wrapper { .nav-wrapper {
/*padding-bottom: 5px; /*padding-bottom: 5px;
......
...@@ -60,8 +60,8 @@ ...@@ -60,8 +60,8 @@
totalItems: 0, //总数据 totalItems: 0, //总数据
totalPages: 10, //总页数 totalPages: 10, //总页数
maxSize: 5, //分页数字的限制。 maxSize: 5, //分页数字的限制。
pageSize: constant.page.pageSizeArrary[3], //每页多少条数据,100条 pageSize: constant.page.pageSizeArrary[1], //每页多少条数据,100条
pageSizeString: constant.page.pageSizeArrary[3].toString(), pageSizeString: constant.page.pageSizeArrary[1].toString(),
firstPage: $translate.instant('PagingFirstPage'), firstPage: $translate.instant('PagingFirstPage'),
previousPage: $translate.instant('PagingPreviousPage'), previousPage: $translate.instant('PagingPreviousPage'),
nextPage: $translate.instant('PagingNextPage'), nextPage: $translate.instant('PagingNextPage'),
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
/*background-color: @color-white;*/ /*background-color: @color-white;*/
padding-left: 20px; padding-left: 20px;
/*min-height: 800px;*/ /*min-height: 800px;*/
height: 96%; height: 100%;
.nav-wrapper { .nav-wrapper {
/*padding-bottom: 5px; /*padding-bottom: 5px;
......
...@@ -61,8 +61,8 @@ ...@@ -61,8 +61,8 @@
totalItems: 0, //总数据 totalItems: 0, //总数据
totalPages: 10, //总页数 totalPages: 10, //总页数
maxSize: 5, //分页数字的限制。 maxSize: 5, //分页数字的限制。
pageSize: constant.page.pageSizeArrary[3], //每页多少条数据,100条 pageSize: constant.page.pageSizeArrary[1], //每页多少条数据,100条
pageSizeString: constant.page.pageSizeArrary[3].toString(), pageSizeString: constant.page.pageSizeArrary[1].toString(),
firstPage: $translate.instant('PagingFirstPage'), firstPage: $translate.instant('PagingFirstPage'),
previousPage: $translate.instant('PagingPreviousPage'), previousPage: $translate.instant('PagingPreviousPage'),
nextPage: $translate.instant('PagingNextPage'), nextPage: $translate.instant('PagingNextPage'),
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
/*background-color: @color-white;*/ /*background-color: @color-white;*/
padding-left: 20px; padding-left: 20px;
/*min-height: 800px;*/ /*min-height: 800px;*/
height: 96%; height: 100%;
.nav-wrapper { .nav-wrapper {
/*padding-bottom: 5px; /*padding-bottom: 5px;
......
...@@ -63,8 +63,8 @@ ...@@ -63,8 +63,8 @@
totalItems: 0, //总数据 totalItems: 0, //总数据
totalPages: 10, //总页数 totalPages: 10, //总页数
maxSize: 5, //分页数字的限制。 maxSize: 5, //分页数字的限制。
pageSize: constant.page.pageSizeArrary[3], //每页多少条数据,100条 pageSize: constant.page.pageSizeArrary[1], //每页多少条数据,100条
pageSizeString: constant.page.pageSizeArrary[3].toString(), pageSizeString: constant.page.pageSizeArrary[1].toString(),
firstPage: $translate.instant('PagingFirstPage'), firstPage: $translate.instant('PagingFirstPage'),
previousPage: $translate.instant('PagingPreviousPage'), previousPage: $translate.instant('PagingPreviousPage'),
nextPage: $translate.instant('PagingNextPage'), nextPage: $translate.instant('PagingNextPage'),
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
/*background-color: @color-white;*/ /*background-color: @color-white;*/
padding-left: 20px; padding-left: 20px;
/*min-height: 800px;*/ /*min-height: 800px;*/
height: 96%; height: 100%;
.nav-wrapper { .nav-wrapper {
/*padding-bottom: 5px; /*padding-bottom: 5px;
......
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