Commit 80e37989 authored by gary's avatar gary

1、fixbug

parent e713cd9f
...@@ -13,5 +13,7 @@ public class ErrorMessageCN { ...@@ -13,5 +13,7 @@ public class ErrorMessageCN {
public static final String BusinssUnitRepeat = "事业部重复!"; public static final String BusinssUnitRepeat = "事业部重复!";
public static final String BusinssUnitUpdateFailed = "未对事业部名称或状态进行修改!"; public static final String BusinssUnitUpdateFailed = "未对事业部名称或状态进行修改!";
public static final String OrgStructureFailed = "未对事业部名称或状态进行修改!"; public static final String OrgStructureFailed = "未对事业部名称或状态进行修改!";
public static final String NoLedgerID = "该机构未同步主数据账套ID!";
public static final String NoCompanyCode = "该机构缺少机构代码字段!";
} }
...@@ -17,6 +17,8 @@ public class EbsCallResp { ...@@ -17,6 +17,8 @@ public class EbsCallResp {
private String companyCode; private String companyCode;
private String segment1;
private String period; private String period;
private String prcFlag; private String prcFlag;
...@@ -99,5 +101,11 @@ public class EbsCallResp { ...@@ -99,5 +101,11 @@ public class EbsCallResp {
return taskDesc; return taskDesc;
} }
public String getSegment1() {
return segment1;
}
public void setSegment1(String segment1) {
this.segment1 = segment1;
}
} }
...@@ -494,7 +494,7 @@ public class AnalysisServiceImpl extends BaseService { ...@@ -494,7 +494,7 @@ public class AnalysisServiceImpl extends BaseService {
}catch (ServiceException se){ }catch (ServiceException se){
throw se; throw se;
}catch (Exception e){ }catch (Exception e){
String errMsg = "分析模块-导入国际税务数据异常"; String errMsg = "分析模块-导入国际税务数据异常";
logger.error(errMsg,e); logger.error(errMsg,e);
throw new ServiceException(errMsg); throw new ServiceException(errMsg);
} }
...@@ -543,7 +543,7 @@ public class AnalysisServiceImpl extends BaseService { ...@@ -543,7 +543,7 @@ public class AnalysisServiceImpl extends BaseService {
}catch (ServiceException se){ }catch (ServiceException se){
throw se; throw se;
}catch (Exception e){ }catch (Exception e){
String errMsg = "分析模块-导入国际业务数据异常"; String errMsg = "分析模块-导入国际业务数据异常";
logger.error(errMsg,e); logger.error(errMsg,e);
throw new ServiceException(errMsg); throw new ServiceException(errMsg);
} }
......
...@@ -309,7 +309,7 @@ public class DataImportService extends BaseService { ...@@ -309,7 +309,7 @@ public class DataImportService extends BaseService {
continue; continue;
} }
// 所选期间与导入文件期间不相等 且非 所选期间12期导入文件为13期 // 所选期间与导入文件期间不相等 且非 所选期间12期导入文件为13期
boolean isThirteenPeriod = period / 1000 != 13 && tmsPeriod != 12; boolean isThirteenPeriod = period % 100 == 13 && tmsPeriod % 100 == 12;
if (!tmsPeriod.equals(period) && isThirteenPeriod) { if (!tmsPeriod.equals(period) && isThirteenPeriod) {
dataImportLog.setImportResult(false); dataImportLog.setImportResult(false);
dataImportLog.setErrorMsg(ErrorMessageCN.ExistDataPeriodsError); dataImportLog.setErrorMsg(ErrorMessageCN.ExistDataPeriodsError);
...@@ -317,8 +317,8 @@ public class DataImportService extends BaseService { ...@@ -317,8 +317,8 @@ public class DataImportService extends BaseService {
continue; continue;
} }
String currencyCode = sheet.getRow(5).getCell(0).getStringCellValue().replace(" ", "").substring(3); String currencyCode = getCellStringValue(sheet.getRow(5).getCell(0)).replace(" ", "").substring(3);
String dataDateStr = sheet.getRow(0).getCell(4).getStringCellValue().substring(3).replace(" ", ""); String dataDateStr = getCellStringValue(sheet.getRow(0).getCell(4)).substring(3).replace(" ", "");
SimpleDateFormat sdf = new SimpleDateFormat("dd-MM-yyyyHH:mm:ss"); SimpleDateFormat sdf = new SimpleDateFormat("dd-MM-yyyyHH:mm:ss");
Date dataDate = sdf.parse(dataDateStr); Date dataDate = sdf.parse(dataDateStr);
...@@ -342,11 +342,11 @@ public class DataImportService extends BaseService { ...@@ -342,11 +342,11 @@ public class DataImportService extends BaseService {
if (null == cell1) { if (null == cell1) {
continue; continue;
} }
pl.setItemName(cell1.getStringCellValue()); pl.setItemName(getCellStringValue(cell1));
Cell cell2 = row.getCell(1); Cell cell2 = row.getCell(1);
if (cell2.getCellTypeEnum().equals(CellType.STRING)) { if (cell2.getCellTypeEnum().equals(CellType.STRING)) {
String value1 = cell2.getStringCellValue().replace(",", ""); String value1 = getCellStringValue(cell2).replace(",", "");
pl.setPeriodAmt(new BigDecimal(value1)); pl.setPeriodAmt(new BigDecimal(value1));
} else { } else {
pl.setPeriodAmt(new BigDecimal(cell2.getNumericCellValue())); pl.setPeriodAmt(new BigDecimal(cell2.getNumericCellValue()));
...@@ -354,7 +354,7 @@ public class DataImportService extends BaseService { ...@@ -354,7 +354,7 @@ public class DataImportService extends BaseService {
Cell cell3 = row.getCell(2); Cell cell3 = row.getCell(2);
if (cell3.getCellTypeEnum().equals(CellType.STRING)) { if (cell3.getCellTypeEnum().equals(CellType.STRING)) {
String value2 = cell3.getStringCellValue().replace(",", ""); String value2 = getCellStringValue(cell3).replace(",", "");
pl.setYtdAmt(new BigDecimal(value2)); pl.setYtdAmt(new BigDecimal(value2));
} else { } else {
pl.setYtdAmt(new BigDecimal(cell3.getNumericCellValue())); pl.setYtdAmt(new BigDecimal(cell3.getNumericCellValue()));
...@@ -434,7 +434,7 @@ public class DataImportService extends BaseService { ...@@ -434,7 +434,7 @@ public class DataImportService extends BaseService {
Sheet sheet = workbook.getSheetAt(i); Sheet sheet = workbook.getSheetAt(i);
if (isSheetEmpty(sheet)) continue; if (isSheetEmpty(sheet)) continue;
List<BalanceSheet> bls = Lists.newArrayList(); List<BalanceSheet> bls = Lists.newArrayList();
String companyName = sheet.getRow(5).getCell(1).getStringCellValue(); String companyName = getCellStringValue(sheet.getRow(5).getCell(1));
OrganizationExample example = new OrganizationExample(); OrganizationExample example = new OrganizationExample();
example.createCriteria().andNameEqualTo(companyName); example.createCriteria().andNameEqualTo(companyName);
List<Organization> organizations = organizationMapper.selectByExample(example); List<Organization> organizations = organizationMapper.selectByExample(example);
...@@ -482,15 +482,15 @@ public class DataImportService extends BaseService { ...@@ -482,15 +482,15 @@ public class DataImportService extends BaseService {
continue; continue;
} }
// 所选期间与导入文件期间不相等 且非 所选期间12期导入文件为13期 // 所选期间与导入文件期间不相等 且非 所选期间12期导入文件为13期
boolean isThirteenPeriod = period / 1000 != 13 && tmsPeriod != 12; boolean isThirteenPeriod = period % 100 == 13 && tmsPeriod % 100 == 12;
if (!tmsPeriod.equals(period) && isThirteenPeriod) { if (!tmsPeriod.equals(period) && isThirteenPeriod) {
dataImportLog.setImportResult(false); dataImportLog.setImportResult(false);
dataImportLog.setErrorMsg(ErrorMessageCN.ExistDataPeriodsError); dataImportLog.setErrorMsg(ErrorMessageCN.ExistDataPeriodsError);
dataImportLogs.add(dataImportLog); dataImportLogs.add(dataImportLog);
continue; continue;
} }
String currencyCode = sheet.getRow(5).getCell(0).getStringCellValue().replace(" ", "").substring(3); String currencyCode = getCellStringValue(sheet.getRow(5).getCell(0)).replace(" ", "").substring(3);
String dataDateStr = sheet.getRow(0).getCell(4).getStringCellValue().substring(3).replace(" ", ""); String dataDateStr = getCellStringValue(sheet.getRow(0).getCell(4)).substring(3).replace(" ", "");
SimpleDateFormat sdf = new SimpleDateFormat("dd-MM-yyyyHH:mm:ss"); SimpleDateFormat sdf = new SimpleDateFormat("dd-MM-yyyyHH:mm:ss");
Date dataDate = sdf.parse(dataDateStr); Date dataDate = sdf.parse(dataDateStr);
for (int j = 11; j < sheet.getLastRowNum(); j++) { for (int j = 11; j < sheet.getLastRowNum(); j++) {
...@@ -512,11 +512,11 @@ public class DataImportService extends BaseService { ...@@ -512,11 +512,11 @@ public class DataImportService extends BaseService {
if (null == cell1) { if (null == cell1) {
continue; continue;
} }
bl.setItemName(cell1.getStringCellValue()); bl.setItemName(getCellStringValue(cell1));
Cell cell2 = row.getCell(1); Cell cell2 = row.getCell(1);
if (cell2.getCellTypeEnum().equals(CellType.STRING)) { if (cell2.getCellTypeEnum().equals(CellType.STRING)) {
String value1 = cell2.getStringCellValue().replace(",", ""); String value1 = getCellStringValue(cell2).replace(",", "");
bl.setEndBal(new BigDecimal(value1)); bl.setEndBal(new BigDecimal(value1));
} else { } else {
bl.setEndBal(new BigDecimal(cell2.getNumericCellValue())); bl.setEndBal(new BigDecimal(cell2.getNumericCellValue()));
...@@ -524,7 +524,7 @@ public class DataImportService extends BaseService { ...@@ -524,7 +524,7 @@ public class DataImportService extends BaseService {
Cell cell3 = row.getCell(2); Cell cell3 = row.getCell(2);
if (cell3.getCellTypeEnum().equals(CellType.STRING)) { if (cell3.getCellTypeEnum().equals(CellType.STRING)) {
String value2 = cell3.getStringCellValue().replace(",", ""); String value2 = getCellStringValue(cell3).replace(",", "");
bl.setBegBal(new BigDecimal(value2)); bl.setBegBal(new BigDecimal(value2));
} else { } else {
bl.setBegBal(new BigDecimal(cell3.getNumericCellValue())); bl.setBegBal(new BigDecimal(cell3.getNumericCellValue()));
...@@ -581,7 +581,7 @@ public class DataImportService extends BaseService { ...@@ -581,7 +581,7 @@ public class DataImportService extends BaseService {
Sheet sheet = workbook.getSheetAt(i); Sheet sheet = workbook.getSheetAt(i);
if (isSheetEmpty(sheet)) continue; if (isSheetEmpty(sheet)) continue;
List<CashFlow> cfs = Lists.newArrayList(); List<CashFlow> cfs = Lists.newArrayList();
String companyName = sheet.getRow(4).getCell(1).getStringCellValue(); String companyName = getCellStringValue(sheet.getRow(4).getCell(1));
OrganizationExample example = new OrganizationExample(); OrganizationExample example = new OrganizationExample();
example.createCriteria().andNameEqualTo(companyName); example.createCriteria().andNameEqualTo(companyName);
List<Organization> organizations = organizationMapper.selectByExample(example); List<Organization> organizations = organizationMapper.selectByExample(example);
...@@ -597,7 +597,7 @@ public class DataImportService extends BaseService { ...@@ -597,7 +597,7 @@ public class DataImportService extends BaseService {
} }
String periodStr = getCellStringValue(sheet.getRow(4).getCell(8)); String periodStr = getCellStringValue(sheet.getRow(4).getCell(8));
String fileType = getCellStringValue(sheet.getRow(0).getCell(0)); String fileType = getCellStringValue(sheet.getRow(0).getCell(0));
Date dataDate = DateUtils.strToDate2(sheet.getRow(4).getCell(10).getStringCellValue()); Date dataDate = DateUtils.strToDate2(getCellStringValue(sheet.getRow(4).getCell(10)));
Integer period = DateUtils.strToPeriod(periodStr); Integer period = DateUtils.strToPeriod(periodStr);
Integer tmsPeriod = DateUtils.strToPeriod(periodDate); Integer tmsPeriod = DateUtils.strToPeriod(periodDate);
...@@ -630,7 +630,7 @@ public class DataImportService extends BaseService { ...@@ -630,7 +630,7 @@ public class DataImportService extends BaseService {
continue; continue;
} }
// 所选期间与导入文件期间不相等 且非 所选期间12期导入文件为13期 // 所选期间与导入文件期间不相等 且非 所选期间12期导入文件为13期
boolean isThirteenPeriod = period / 1000 != 13 && tmsPeriod != 12; boolean isThirteenPeriod = period % 100 == 13 && tmsPeriod % 100 == 12;
if (!tmsPeriod.equals(period) && isThirteenPeriod) { if (!tmsPeriod.equals(period) && isThirteenPeriod) {
dataImportLog.setImportResult(false); dataImportLog.setImportResult(false);
dataImportLog.setErrorMsg(ErrorMessageCN.ExistDataPeriodsError); dataImportLog.setErrorMsg(ErrorMessageCN.ExistDataPeriodsError);
...@@ -651,17 +651,17 @@ public class DataImportService extends BaseService { ...@@ -651,17 +651,17 @@ public class DataImportService extends BaseService {
Row row = sheet.getRow(j); Row row = sheet.getRow(j);
Cell cell1 = row.getCell(0); Cell cell1 = row.getCell(0);
if (null == cell1 || StringUtils.isEmpty(cell1.getStringCellValue())) { if (null == cell1 || StringUtils.isEmpty(getCellStringValue(cell1))) {
continue; continue;
} }
cf.setItemName(cell1.getStringCellValue()); cf.setItemName(getCellStringValue(cell1));
Cell cell2 = row.getCell(1); Cell cell2 = row.getCell(1);
cf.setItemName2(cell2.getStringCellValue()); cf.setItemName2(getCellStringValue(cell2));
Cell cell3 = row.getCell(2); Cell cell3 = row.getCell(2);
if (cell3.getCellTypeEnum().equals(CellType.STRING)) { if (cell3.getCellTypeEnum().equals(CellType.STRING)) {
String value1 = cell3.getStringCellValue().replace(",", ""); String value1 = getCellStringValue(cell3).replace(",", "");
cf.setPeriodAmt(new BigDecimal(value1)); cf.setPeriodAmt(new BigDecimal(value1));
} else { } else {
cf.setPeriodAmt(new BigDecimal(cell3.getNumericCellValue())); cf.setPeriodAmt(new BigDecimal(cell3.getNumericCellValue()));
...@@ -669,7 +669,7 @@ public class DataImportService extends BaseService { ...@@ -669,7 +669,7 @@ public class DataImportService extends BaseService {
Cell cell4 = row.getCell(3); Cell cell4 = row.getCell(3);
if (cell3.getCellTypeEnum().equals(CellType.STRING)) { if (cell3.getCellTypeEnum().equals(CellType.STRING)) {
String value2 = cell4.getStringCellValue().replace(",", ""); String value2 = getCellStringValue(cell4).replace(",", "");
cf.setYtdAmt(new BigDecimal(value2)); cf.setYtdAmt(new BigDecimal(value2));
} else { } else {
cf.setYtdAmt(new BigDecimal(cell4.getNumericCellValue())); cf.setYtdAmt(new BigDecimal(cell4.getNumericCellValue()));
...@@ -689,6 +689,7 @@ public class DataImportService extends BaseService { ...@@ -689,6 +689,7 @@ public class DataImportService extends BaseService {
} }
} }
cashFlowManualMapper.insertBatch(cfs); cashFlowManualMapper.insertBatch(cfs);
cashFlowFinalMapper.insertBatch(cfs);
dataImportLog.setRecordSize(cfs.size()); dataImportLog.setRecordSize(cfs.size());
dataImportLog.setImportResult(true); dataImportLog.setImportResult(true);
dataImportLogs.add(dataImportLog); dataImportLogs.add(dataImportLog);
...@@ -779,7 +780,7 @@ public class DataImportService extends BaseService { ...@@ -779,7 +780,7 @@ public class DataImportService extends BaseService {
continue; continue;
} }
// 所选期间与导入文件期间不相等 且非 所选期间12期导入文件为13期 // 所选期间与导入文件期间不相等 且非 所选期间12期导入文件为13期
boolean isThirteenPeriod = period / 1000 != 13 && tmsPeriod != 12; boolean isThirteenPeriod = period % 100 == 13 && tmsPeriod % 100 == 12;
if (!tmsPeriod.equals(period) && isThirteenPeriod) { if (!tmsPeriod.equals(period) && isThirteenPeriod) {
dataImportLog.setImportResult(false); dataImportLog.setImportResult(false);
dataImportLog.setErrorMsg(ErrorMessageCN.ExistDataPeriodsError); dataImportLog.setErrorMsg(ErrorMessageCN.ExistDataPeriodsError);
...@@ -799,10 +800,10 @@ public class DataImportService extends BaseService { ...@@ -799,10 +800,10 @@ public class DataImportService extends BaseService {
iData.setCountType(j); iData.setCountType(j);
Cell cell1 = sheet.getRow(1).getCell(j); Cell cell1 = sheet.getRow(1).getCell(j);
if (null == cell1 || StringUtils.isEmpty(cell1.getStringCellValue())) { if (null == cell1 || StringUtils.isEmpty(getCellStringValue(cell1))) {
continue; continue;
} }
iData.setCompanyName(cell1.getStringCellValue()); iData.setCompanyName(getCellStringValue(cell1));
Cell cell2 = sheet.getRow(2).getCell(j); Cell cell2 = sheet.getRow(2).getCell(j);
iData.setSpecialInvoiceAmount1(getCellLongDecimalValue(cell2)); iData.setSpecialInvoiceAmount1(getCellLongDecimalValue(cell2));
...@@ -1016,8 +1017,8 @@ public class DataImportService extends BaseService { ...@@ -1016,8 +1017,8 @@ public class DataImportService extends BaseService {
RedLetterInfoTableExample redLetterInfoTableExample = new RedLetterInfoTableExample(); RedLetterInfoTableExample redLetterInfoTableExample = new RedLetterInfoTableExample();
redLetterInfoTableExample.createCriteria().andSubjectNumEqualTo(companyCode).andFillInDateEqualTo(rlits.get(0).getFillInDate()); redLetterInfoTableExample.createCriteria().andSubjectNumEqualTo(companyCode).andFillInDateEqualTo(rlits.get(0).getFillInDate());
redLetterInfoTableMapper.deleteByExample(redLetterInfoTableExample); redLetterInfoTableMapper.deleteByExample(redLetterInfoTableExample);
redLetterInfoTableMapper.insertBatch(rlits);
} }
redLetterInfoTableMapper.insertBatch(rlits);
// 1、记录数据导入记录与数据处理校验记录 // 1、记录数据导入记录与数据处理校验记录
dataImportLogs.add(dataImportLog); dataImportLogs.add(dataImportLog);
} }
...@@ -1119,8 +1120,8 @@ public class DataImportService extends BaseService { ...@@ -1119,8 +1120,8 @@ public class DataImportService extends BaseService {
AdjustmentTableExample adjustmentTableExample = new AdjustmentTableExample(); AdjustmentTableExample adjustmentTableExample = new AdjustmentTableExample();
adjustmentTableExample.createCriteria().andSegment1EqualTo(companyCode).andPeriodEqualTo(ats.get(0).getPeriod()); adjustmentTableExample.createCriteria().andSegment1EqualTo(companyCode).andPeriodEqualTo(ats.get(0).getPeriod());
adjustmentTableMapper.deleteByExample(adjustmentTableExample); adjustmentTableMapper.deleteByExample(adjustmentTableExample);
adjustmentTableMapper.insertBatch(ats);
} }
adjustmentTableMapper.insertBatch(ats);
// 1、记录数据导入记录与数据处理校验记录 // 1、记录数据导入记录与数据处理校验记录
dataImportLogs.add(dataImportLog); dataImportLogs.add(dataImportLog);
} }
...@@ -1225,8 +1226,8 @@ public class DataImportService extends BaseService { ...@@ -1225,8 +1226,8 @@ public class DataImportService extends BaseService {
CoupaPurchasingReportExample coupaPurchasingReportExample = new CoupaPurchasingReportExample(); CoupaPurchasingReportExample coupaPurchasingReportExample = new CoupaPurchasingReportExample();
coupaPurchasingReportExample.createCriteria().andCompanyCodeEqualTo(companyCode).andPeriodEqualTo(cprs.get(0).getPeriod()); coupaPurchasingReportExample.createCriteria().andCompanyCodeEqualTo(companyCode).andPeriodEqualTo(cprs.get(0).getPeriod());
coupaPurchasingReportMapper.deleteByExample(coupaPurchasingReportExample); coupaPurchasingReportMapper.deleteByExample(coupaPurchasingReportExample);
coupaPurchasingReportMapper.insertBatch(cprs);
} }
coupaPurchasingReportMapper.insertBatch(cprs);
// 1、记录数据导入记录与数据处理校验记录 // 1、记录数据导入记录与数据处理校验记录
dataImportLogs.add(dataImportLog); dataImportLogs.add(dataImportLog);
} }
...@@ -1251,7 +1252,7 @@ public class DataImportService extends BaseService { ...@@ -1251,7 +1252,7 @@ public class DataImportService extends BaseService {
Sheet sheet = workbook.getSheetAt(i); Sheet sheet = workbook.getSheetAt(i);
if (isSheetEmpty(sheet)) continue; if (isSheetEmpty(sheet)) continue;
List<CertifiedInvoicesList> cils = Lists.newArrayList(); List<CertifiedInvoicesList> cils = Lists.newArrayList();
String tayPayerIdNum = sheet.getRow(1).getCell(1).getStringCellValue(); String tayPayerIdNum = getCellStringValue(sheet.getRow(1).getCell(1));
OrganizationExample example = new OrganizationExample(); OrganizationExample example = new OrganizationExample();
example.createCriteria().andTaxPayerNumberEqualTo(tayPayerIdNum); example.createCriteria().andTaxPayerNumberEqualTo(tayPayerIdNum);
List<Organization> organizations = organizationMapper.selectByExample(example); List<Organization> organizations = organizationMapper.selectByExample(example);
...@@ -1299,14 +1300,14 @@ public class DataImportService extends BaseService { ...@@ -1299,14 +1300,14 @@ public class DataImportService extends BaseService {
String companyName = organizations.get(0).getName(); String companyName = organizations.get(0).getName();
dataImportLog.setCompanyName(companyName); dataImportLog.setCompanyName(companyName);
// 所选期间与导入文件期间不相等 且非 所选期间12期导入文件为13期 // 所选期间与导入文件期间不相等 且非 所选期间12期导入文件为13期
boolean isThirteenPeriod = period / 1000 != 13 && tmsPeriod != 12; boolean isThirteenPeriod = period % 100 == 13 && tmsPeriod % 100 == 12;
if (!tmsPeriod.equals(period) && isThirteenPeriod) { if (!tmsPeriod.equals(period) && isThirteenPeriod) {
dataImportLog.setImportResult(false); dataImportLog.setImportResult(false);
dataImportLog.setErrorMsg(ErrorMessageCN.ExistDataPeriodsError); dataImportLog.setErrorMsg(ErrorMessageCN.ExistDataPeriodsError);
dataImportLogs.add(dataImportLog); dataImportLogs.add(dataImportLog);
continue; continue;
} }
String unit = sheet.getRow(1).getCell(11).getStringCellValue().replace(" ", "").substring(3); String unit = getCellStringValue(sheet.getRow(1).getCell(11)).replace(" ", "").substring(3);
for (int j = 3; j < sheet.getLastRowNum(); j++) { for (int j = 3; j < sheet.getLastRowNum(); j++) {
Long plId = idService.nextId(); Long plId = idService.nextId();
CertifiedInvoicesList cil = new CertifiedInvoicesList(); CertifiedInvoicesList cil = new CertifiedInvoicesList();
...@@ -1497,8 +1498,8 @@ public class DataImportService extends BaseService { ...@@ -1497,8 +1498,8 @@ public class DataImportService extends BaseService {
InvoiceRecordExample invoiceRecordExample = new InvoiceRecordExample(); InvoiceRecordExample invoiceRecordExample = new InvoiceRecordExample();
invoiceRecordExample.createCriteria().andBillingBodyEqualTo(billingBody).andPeriodEqualTo(irs.get(0).getPeriod()); invoiceRecordExample.createCriteria().andBillingBodyEqualTo(billingBody).andPeriodEqualTo(irs.get(0).getPeriod());
invoiceRecordMapper.deleteByExample(invoiceRecordExample); invoiceRecordMapper.deleteByExample(invoiceRecordExample);
invoiceRecordMapper.insertBatch(irs);
} }
invoiceRecordMapper.insertBatch(irs);
// 1、记录数据导入记录与数据处理校验记录 // 1、记录数据导入记录与数据处理校验记录
dataImportLogs.add(dataImportLog); dataImportLogs.add(dataImportLog);
} }
...@@ -1663,10 +1664,10 @@ public class DataImportService extends BaseService { ...@@ -1663,10 +1664,10 @@ public class DataImportService extends BaseService {
return ""; return "";
} }
if (cell.getCellTypeEnum().equals(CellType.STRING)) { if (cell.getCellTypeEnum().equals(CellType.STRING)) {
return cell.getStringCellValue(); return cell.getStringCellValue().trim();
} else if(cell.getCellTypeEnum().equals(CellType.NUMERIC)) { } else if(cell.getCellTypeEnum().equals(CellType.NUMERIC)) {
// 取整 // 取整
return String.valueOf((int)cell.getNumericCellValue()); return String.valueOf((int)cell.getNumericCellValue()).trim();
} }
logger.warn("获取单元格数据类型未匹配"); logger.warn("获取单元格数据类型未匹配");
return null; return null;
...@@ -1701,7 +1702,7 @@ public class DataImportService extends BaseService { ...@@ -1701,7 +1702,7 @@ public class DataImportService extends BaseService {
return null; return null;
} }
if (cell.getCellTypeEnum().equals(CellType.STRING)) { if (cell.getCellTypeEnum().equals(CellType.STRING)) {
return Integer.valueOf(cell.getStringCellValue()); return Integer.valueOf(cell.getStringCellValue().trim());
} else if(cell.getCellTypeEnum().equals(CellType.NUMERIC)) { } else if(cell.getCellTypeEnum().equals(CellType.NUMERIC)) {
return (int)cell.getNumericCellValue(); return (int)cell.getNumericCellValue();
} }
...@@ -1714,7 +1715,7 @@ public class DataImportService extends BaseService { ...@@ -1714,7 +1715,7 @@ public class DataImportService extends BaseService {
return null; return null;
} }
if (cell.getCellTypeEnum().equals(CellType.STRING)) { if (cell.getCellTypeEnum().equals(CellType.STRING)) {
return new BigDecimal(cell.getStringCellValue()); return new BigDecimal(cell.getStringCellValue().trim());
} else if(cell.getCellTypeEnum().equals(CellType.NUMERIC)) { } else if(cell.getCellTypeEnum().equals(CellType.NUMERIC)) {
return new BigDecimal(cell.getNumericCellValue()); return new BigDecimal(cell.getNumericCellValue());
} }
...@@ -1727,7 +1728,7 @@ public class DataImportService extends BaseService { ...@@ -1727,7 +1728,7 @@ public class DataImportService extends BaseService {
return null; return null;
} }
if (cell.getCellTypeEnum().equals(CellType.STRING)) { if (cell.getCellTypeEnum().equals(CellType.STRING)) {
return Long.valueOf(cell.getStringCellValue()); return Long.valueOf(cell.getStringCellValue().trim());
} else if(cell.getCellTypeEnum().equals(CellType.NUMERIC)) { } else if(cell.getCellTypeEnum().equals(CellType.NUMERIC)) {
return new Double(cell.getNumericCellValue()).longValue(); return new Double(cell.getNumericCellValue()).longValue();
} }
...@@ -1893,7 +1894,7 @@ public class DataImportService extends BaseService { ...@@ -1893,7 +1894,7 @@ public class DataImportService extends BaseService {
private boolean isSheetEmpty(Sheet sheet) { private boolean isSheetEmpty(Sheet sheet) {
if (sheet.getLastRowNum() > 0 && if (sheet.getLastRowNum() > 0 &&
(null == sheet.getRow(0).getCell(0) || "Version".equals(sheet.getRow(0).getCell(0).getStringCellValue())) && (null == sheet.getRow(0).getCell(0) || "Version".equals(getCellStringValue(sheet.getRow(0).getCell(0)))) &&
null == sheet.getRow(0).getCell(2)) { null == sheet.getRow(0).getCell(2)) {
return true; return true;
} }
...@@ -1957,7 +1958,7 @@ public class DataImportService extends BaseService { ...@@ -1957,7 +1958,7 @@ public class DataImportService extends BaseService {
} }
@Override @Override
public Object call(){ public Integer call(){
String response = null; String response = null;
String ledgerId = org.getEnterpriseAccountCode(); String ledgerId = org.getEnterpriseAccountCode();
String code = org.getCode(); String code = org.getCode();
...@@ -1976,6 +1977,19 @@ public class DataImportService extends BaseService { ...@@ -1976,6 +1977,19 @@ public class DataImportService extends BaseService {
log.setPeriodStatus("EBS抽取"); log.setPeriodStatus("EBS抽取");
log.setOperator(authUserHelper.getCurrentAuditor().get()); log.setOperator(authUserHelper.getCurrentAuditor().get());
try { try {
if (StringUtils.isEmpty(org.getEnterpriseAccountCode())) {
log.setId(idService.nextId());
log.setImportResult(false);
log.setErrorMsg(String.format(EnumApiCodeMsg.CALLFAILED.getMsg(), ErrorMessageCN.NoLedgerID));
}else if(StringUtils.isEmpty(org.getCode())) {
log.setId(idService.nextId());
log.setImportResult(false);
log.setErrorMsg(String.format(EnumApiCodeMsg.CALLFAILED.getMsg(), ErrorMessageCN.NoCompanyCode));
}
if (StringUtils.isNotEmpty(log.getErrorMsg())) {
dataImportLogMapper.insertSelective(log);
return 0;
}
switch (type) { switch (type) {
case EbsExtractTypeConstant.TB: case EbsExtractTypeConstant.TB:
response = HttpUtil.post(ebsCallUrl + "/glMonthlyBal?ledgerId="+ledgerId+"&companyCode="+ code + "&period=" + period, response = HttpUtil.post(ebsCallUrl + "/glMonthlyBal?ledgerId="+ledgerId+"&companyCode="+ code + "&period=" + period,
...@@ -2019,12 +2033,6 @@ public class DataImportService extends BaseService { ...@@ -2019,12 +2033,6 @@ public class DataImportService extends BaseService {
break; break;
} }
if (StringUtils.isNotEmpty(response)) { if (StringUtils.isNotEmpty(response)) {
if(EbsExtractTypeConstant.RATE==type){
EbsCallRateResp resp = JSON.parseObject(response, EbsCallRateResp.class);
log.setId(idService.nextId());
log.setImportResult(true);
log.setErrorMsg(String.format(EnumApiCodeMsg.CALLSUCCESS.getMsg(),resp.getRequestStatus()));
}else{
EbsCallResp resp = JSON.parseObject(response, EbsCallResp.class); EbsCallResp resp = JSON.parseObject(response, EbsCallResp.class);
long taskId = Long.valueOf(resp.getTaskId()); long taskId = Long.valueOf(resp.getTaskId());
if (taskId == -1) { if (taskId == -1) {
...@@ -2032,13 +2040,15 @@ public class DataImportService extends BaseService { ...@@ -2032,13 +2040,15 @@ public class DataImportService extends BaseService {
log.setImportResult(false); log.setImportResult(false);
log.setErrorMsg(String.format(EnumApiCodeMsg.CALLFAILED.getMsg(), resp.getTaskDesc())); log.setErrorMsg(String.format(EnumApiCodeMsg.CALLFAILED.getMsg(), resp.getTaskDesc()));
} else { } else {
if(EbsExtractTypeConstant.JE==type){
resp.setCompanyCode(null!=resp.getSegment1()?resp.getSegment1():"");
}
log.setId(taskId); log.setId(taskId);
log.setImportResult(true); log.setImportResult(true);
log.setErrorMsg(String.format(EnumApiCodeMsg.CALLSUCCESS.getMsg(), resp.getTaskDesc())); log.setErrorMsg(String.format(EnumApiCodeMsg.CALLSUCCESS.getMsg(), resp.getTaskDesc()));
} }
} }
dataImportLogMapper.insertSelective(log); dataImportLogMapper.insertSelective(log);
}
} catch (Exception e) { } catch (Exception e) {
log.setId(idService.nextId()); log.setId(idService.nextId());
log.setImportResult(false); log.setImportResult(false);
...@@ -2046,7 +2056,7 @@ public class DataImportService extends BaseService { ...@@ -2046,7 +2056,7 @@ public class DataImportService extends BaseService {
dataImportLogMapper.insertSelective(log); dataImportLogMapper.insertSelective(log);
logger.error(String.format(EnumApiCodeMsg.CALLFAILED.getMsg(), e.getMessage()), e); logger.error(String.format(EnumApiCodeMsg.CALLFAILED.getMsg(), e.getMessage()), e);
} }
return null; return 1;
} }
} }
......
...@@ -29,7 +29,15 @@ public class UserDto { ...@@ -29,7 +29,15 @@ public class UserDto {
} }
public void setId(String id) { public void setId(String id) {
id = id; this.id = id;
}
public String getID() {
return id;
}
public void setID(String id) {
this.id = id;
} }
public String getUserName() { public String getUserName() {
......
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
resetErrorStatus(); resetErrorStatus();
userService.getSingleUser(userId).success(function (userData) { userService.getSingleUser(userId).success(function (userData) {
$scope.editUserModel.IsAdmin = userData.isAdmin; $scope.editUserModel.IsAdmin = userData.isAdmin;
$scope.editUserModel.ID = userData.id; $scope.editUserModel.id = userData.ID;
$scope.editUserModel.UserName = userData.userName; $scope.editUserModel.UserName = userData.userName;
$scope.editUserModel.Status = userData.status; $scope.editUserModel.Status = userData.status;
$scope.editUserModel.OrganizationID = userData.organizationID; $scope.editUserModel.OrganizationID = userData.organizationID;
...@@ -125,7 +125,6 @@ ...@@ -125,7 +125,6 @@
function (isConfirm) { function (isConfirm) {
if (isConfirm) { if (isConfirm) {
// 选中 // 选中
debugger;
userService.enableOrDisableUser(user.id, 0).success(function (or) { userService.enableOrDisableUser(user.id, 0).success(function (or) {
if (or) { if (or) {
if (or.result === true) { if (or.result === true) {
......
...@@ -33,23 +33,23 @@ ...@@ -33,23 +33,23 @@
readonly="readonly" ng-model="UploadPeriodTime"/> readonly="readonly" ng-model="UploadPeriodTime"/>
<i class="fa fa-calendar imp-subheader red-color" style="width:20px;"></i> <i class="fa fa-calendar imp-subheader red-color" style="width:20px;"></i>
</div> </div>
<button type="button" atms-permission permission-code="{{$root.vatPermission.dataImport.balanceSheet.importCode}}" <button type="button"
ngf-select="" type="file" ng-model="importExcelFile" ngf-drag-over-class="'dragover'" accept=".xls,.xlsx" ngf-multiple="false" ngf-select="" type="file" ng-model="importExcelFile" ngf-drag-over-class="'dragover'" accept=".xls,.xlsx" ngf-multiple="false"
ngf-allow-dir="false" class="btn btn-vat-third" style="margin-right:10px;margin-left:10px"> ngf-allow-dir="false" class="btn btn-vat-third" style="margin-right:10px;margin-left:10px">
{{fileName ? ((fileName)|limitString:maxTitleLength):'SelectFile' | translate}} {{fileName ? ((fileName)|limitString:maxTitleLength):'SelectFile' | translate}}
</button> </button>
<button type="button" atms-permission permission-control-type="ngIf" permission-code="{{$root.vatPermission.dataImport.balanceSheet.importCode}}" <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;"
translate="ExportBtn" translate="ExportBtn"
ng-click="doExport()"></button> ng-click="doExport()"></button>
<button type="button" atms-permission permission-control-type="ngIf" <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;"
translate="ImportBtn" translate="ImportBtn"
ng-click="doUpload()"></button> ng-click="doUpload()"></button>
<button type="button" atms-permission permission-control-type="ngIf" <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;"
translate="TemplateBtn" translate="TemplateBtn"
ng-click="downloadTemplate()"></button> ng-click="downloadTemplate()"></button>
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
</div> </div>
<span class="text-bold" translate="Period"></span>: <span class="text-bold" translate="Period"></span>:
<div class="period-picker" style="margin-left:10px"> <div class="period-picker" style="margin-left:10px">
<input type="text" id="periodDatepicker" class="datepicker imp-subheader" style="width:120px;" <input type="text" id="periodDatepicker" class="datepicker imp-subheader" style="width:80px;"
readonly="readonly" ng-model="UploadPeriodTime"/> readonly="readonly" ng-model="UploadPeriodTime"/>
<i class="fa fa-calendar imp-subheader red-color" style="width:20px;"></i> <i class="fa fa-calendar imp-subheader red-color" style="width:20px;"></i>
</div> </div>
...@@ -51,11 +51,11 @@ ...@@ -51,11 +51,11 @@
<span class="text-bold" translate="Company"></span>: <span class="text-bold" translate="Company"></span>:
<div class="dropdown" style="margin-left:10px"> <div class="dropdown" style="margin-left:10px">
<button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu4" <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu4"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" style="width: 250px;"> data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" style="width: 320px;">
{{selectCompany ? ((selectCompany)|translate):('PleaseSelect' | translate)}} {{selectCompany ? ((selectCompany)|translate):('PleaseSelect' | translate)}}
<span class="caret" style="float: right "></span> <span class="caret" style="float: right "></span>
</button> </button>
<ul class="dropdown-menu" style="width: 250px;max-height: 300px;overflow-y: auto;" aria-labelledby="dropdownMenu4"> <ul class="dropdown-menu" style="width: 320px;max-height: 300px;overflow-y: auto;" aria-labelledby="dropdownMenu4">
<li ng-repeat="i in companyList" ng-click="selectCompanyEvent(i)"> <li ng-repeat="i in companyList" ng-click="selectCompanyEvent(i)">
<div class="checkbox-custom checkbox-default"> <div class="checkbox-custom checkbox-default">
<span style="margin-left:15px; float: left;">{{i.name}}</span> <span style="margin-left:15px; float: left;">{{i.name}}</span>
...@@ -70,20 +70,20 @@ ...@@ -70,20 +70,20 @@
{{fileName ? ((fileName)|limitString:5):'SelectFile' | translate}} {{fileName ? ((fileName)|limitString:5):'SelectFile' | translate}}
</button> </button>
<button type="button" atms-permission permission-control-type="ngIf" <button type="button"
class="btn btn-vat-primary" style="float:right;margin-left: 15px;margin-top: 8px;" class="btn btn-vat-primary" style=""
translate="ExportBtn" translate="TemplateBtn"
ng-click="doExport()"></button> ng-click="downloadTemplate()"></button>
<button type="button" atms-permission permission-control-type="ngIf" <button type="button"
class="btn btn-vat-primary" style="float:right;margin-top: 8px;" class="btn btn-vat-primary" style=""
translate="ImportBtn" translate="ImportBtn"
ng-click="doUpload()"></button> ng-click="doUpload()"></button>
<button type="button" atms-permission permission-control-type="ngIf" <button type="button"
class="btn btn-vat-primary" style="float:right;margin-top: 8px;" class="btn btn-vat-primary" style="margin-top: 8px;margin-right:0px;"
translate="TemplateBtn" translate="ExportBtn"
ng-click="downloadTemplate()"></button> ng-click="doExport()"></button>
</div> </div>
</div> </div>
</form> </form>
......
...@@ -118,7 +118,7 @@ ...@@ -118,7 +118,7 @@
} }
.period-picker { .period-picker {
width: 150px; width: 110px;
border: 1px solid #c7c5c0; border: 1px solid #c7c5c0;
display: inline-block; display: inline-block;
line-height: 20px; line-height: 20px;
......
...@@ -98,6 +98,7 @@ controller('editEquityChangeModalController', ['$scope', '$log', '$translate', ' ...@@ -98,6 +98,7 @@ controller('editEquityChangeModalController', ['$scope', '$log', '$translate', '
{ {
dataField: "certificateType", dataField: "certificateType",
caption: $translate.instant('CertificateType'), caption: $translate.instant('CertificateType'),
width: "140px",
lookup: { lookup: {
dataSource: constant.CertificateTypeList, dataSource: constant.CertificateTypeList,
displayExpr: "type", displayExpr: "type",
......
...@@ -86,6 +86,7 @@ controller('editEquityModalController', ['$scope', '$log', '$translate', 'uiGrid ...@@ -86,6 +86,7 @@ controller('editEquityModalController', ['$scope', '$log', '$translate', 'uiGrid
{ {
dataField: "certificateType", dataField: "certificateType",
caption: $translate.instant('CertificateType'), caption: $translate.instant('CertificateType'),
width: "140px",
lookup: { lookup: {
dataSource: constant.CertificateTypeList, dataSource: constant.CertificateTypeList,
displayExpr: "type", displayExpr: "type",
......
...@@ -98,7 +98,6 @@ controller('editOrganizationModalController', ['$scope', '$log', '$translate', ' ...@@ -98,7 +98,6 @@ controller('editOrganizationModalController', ['$scope', '$log', '$translate', '
// 保存机构 // 保存机构
$scope.saveOrg = function () { $scope.saveOrg = function () {
debugger;
if($scope.isInternational){ if($scope.isInternational){
saveInternationalOrg(); saveInternationalOrg();
}else{ }else{
......
...@@ -24,7 +24,7 @@ controller('editUserModalController', ['$scope', '$log', '$translate', 'uiGridCo ...@@ -24,7 +24,7 @@ controller('editUserModalController', ['$scope', '$log', '$translate', 'uiGridCo
resetErrorStatus(); resetErrorStatus();
userService.getSingleUser(userId).success(function(userData) { userService.getSingleUser(userId).success(function(userData) {
$scope.editUserModel = {}; $scope.editUserModel = {};
$scope.editUserModel.ID = userData.id; $scope.editUserModel.id = userData.ID;
$scope.editUserModel.UserName = userData.userName; $scope.editUserModel.UserName = userData.userName;
$scope.editUserModel.Status = userData.status; $scope.editUserModel.Status = userData.status;
$scope.editUserModel.OrganizationID = userData.organizationID; $scope.editUserModel.OrganizationID = userData.organizationID;
......
...@@ -14,11 +14,11 @@ ...@@ -14,11 +14,11 @@
<span class="text-bold" translate="SelectedOrganization"></span>: <span class="text-bold" translate="SelectedOrganization"></span>:
<div class="dropdown" style="margin-left:10px"> <div class="dropdown" style="margin-left:10px">
<button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" style="width: 250px;"> data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" style="width: 380px;">
{{checkedCompanyTypeList ? ((checkedCompanyTypeList)|limitString:maxTitleLength):('PleaseSelect' | translate)}} {{checkedCompanyTypeList ? ((checkedCompanyTypeList)|limitString:maxTitleLength):('PleaseSelect' | translate)}}
<span class="caret" style="float: right "></span> <span class="caret" style="float: right "></span>
</button> </button>
<ul class="dropdown-menu" style="width: 250px;" aria-labelledby="dropdownMenu1"> <ul class="dropdown-menu" style="width: 380px;" aria-labelledby="dropdownMenu1">
<li><input type="checkbox" ng-model="selectedAll" ng-change="selectAll()" <li><input type="checkbox" ng-model="selectedAll" ng-change="selectAll()"
style="float: left;margin-left: 10px; margin-top: 7px; width: 15px" checked> style="float: left;margin-left: 10px; margin-top: 7px; width: 15px" checked>
<span style="margin-left:5px;float: left;">全选</span></li> <span style="margin-left:5px;float: left;">全选</span></li>
......
...@@ -14,11 +14,11 @@ ...@@ -14,11 +14,11 @@
<span class="text-bold" translate="SelectedOrganization"></span>: <span class="text-bold" translate="SelectedOrganization"></span>:
<div class="dropdown" style="margin-left:10px"> <div class="dropdown" style="margin-left:10px">
<button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" style="width: 250px;"> data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" style="width: 380px;">
{{checkedCompanyTypeList ? ((checkedCompanyTypeList)|limitString:maxTitleLength):('PleaseSelect' | translate)}} {{checkedCompanyTypeList ? ((checkedCompanyTypeList)|limitString:maxTitleLength):('PleaseSelect' | translate)}}
<span class="caret" style="float: right "></span> <span class="caret" style="float: right "></span>
</button> </button>
<ul class="dropdown-menu" style="width: 250px;" aria-labelledby="dropdownMenu1"> <ul class="dropdown-menu" style="width: 380px;" aria-labelledby="dropdownMenu1">
<li><input type="checkbox" ng-model="selectedAll" ng-change="selectAll()" <li><input type="checkbox" ng-model="selectedAll" ng-change="selectAll()"
style="float: left;margin-left: 10px; margin-top: 7px; width: 15px" checked> style="float: left;margin-left: 10px; margin-top: 7px; width: 15px" checked>
<span style="margin-left:5px;float: left;">全选</span></li> <span style="margin-left:5px;float: left;">全选</span></li>
......
...@@ -14,11 +14,11 @@ ...@@ -14,11 +14,11 @@
<span class="text-bold" translate="SelectedOrganization"></span>: <span class="text-bold" translate="SelectedOrganization"></span>:
<div class="dropdown" style="margin-left:10px"> <div class="dropdown" style="margin-left:10px">
<button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" style="width: 250px;"> data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" style="width: 380px;">
{{checkedCompanyTypeList ? ((checkedCompanyTypeList)|limitString:maxTitleLength):('PleaseSelect' | translate)}} {{checkedCompanyTypeList ? ((checkedCompanyTypeList)|limitString:maxTitleLength):('PleaseSelect' | translate)}}
<span class="caret" style="float: right "></span> <span class="caret" style="float: right "></span>
</button> </button>
<ul class="dropdown-menu" style="width: 250px;" aria-labelledby="dropdownMenu1"> <ul class="dropdown-menu" style="width: 380px;" aria-labelledby="dropdownMenu1">
<li><input type="checkbox" ng-model="selectedAll" ng-change="selectAll()" <li><input type="checkbox" ng-model="selectedAll" ng-change="selectAll()"
style="float: left;margin-left: 10px; margin-top: 7px; width: 15px" checked> style="float: left;margin-left: 10px; margin-top: 7px; width: 15px" checked>
<span style="margin-left:5px;float: left;">全选</span></li> <span style="margin-left:5px;float: left;">全选</span></li>
......
...@@ -14,11 +14,11 @@ ...@@ -14,11 +14,11 @@
<span class="text-bold" translate="SelectedOrganization"></span>: <span class="text-bold" translate="SelectedOrganization"></span>:
<div class="dropdown" style="margin-left:10px"> <div class="dropdown" style="margin-left:10px">
<button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" style="width: 250px;"> data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" style="width: 380px;">
{{checkedCompanyTypeList ? ((checkedCompanyTypeList)|limitString:maxTitleLength):('PleaseSelect' | translate)}} {{checkedCompanyTypeList ? ((checkedCompanyTypeList)|limitString:maxTitleLength):('PleaseSelect' | translate)}}
<span class="caret" style="float: right "></span> <span class="caret" style="float: right "></span>
</button> </button>
<ul class="dropdown-menu" style="width: 250px;" aria-labelledby="dropdownMenu1"> <ul class="dropdown-menu" style="width: 380px;" aria-labelledby="dropdownMenu1">
<li><input type="checkbox" ng-model="selectedAll" ng-change="selectAll()" <li><input type="checkbox" ng-model="selectedAll" ng-change="selectAll()"
style="float: left;margin-left: 10px; margin-top: 7px; width: 15px" checked> style="float: left;margin-left: 10px; margin-top: 7px; width: 15px" checked>
<span style="margin-left:5px;float: left;">全选</span></li> <span style="margin-left:5px;float: left;">全选</span></li>
......
...@@ -11,11 +11,11 @@ ...@@ -11,11 +11,11 @@
<span class="text-bold" translate="SelectedOrganization"></span>: <span class="text-bold" translate="SelectedOrganization"></span>:
<div class="dropdown" style="margin-left:10px"> <div class="dropdown" style="margin-left:10px">
<button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" style="width: 250px;"> data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" style="width: 380px;">
{{checkedCompanyTypeList ? ((checkedCompanyTypeList)|limitString:maxTitleLength):('PleaseSelect' | translate)}} {{checkedCompanyTypeList ? ((checkedCompanyTypeList)|limitString:maxTitleLength):('PleaseSelect' | translate)}}
<span class="caret" style="float: right "></span> <span class="caret" style="float: right "></span>
</button> </button>
<ul class="dropdown-menu" style="width: 250px;" aria-labelledby="dropdownMenu1"> <ul class="dropdown-menu" style="width: 380px;" aria-labelledby="dropdownMenu1">
<li><input type="checkbox" ng-model="selectedAll" ng-change="selectAll()" <li><input type="checkbox" ng-model="selectedAll" ng-change="selectAll()"
style="float: left;margin-left: 10px; margin-top: 7px; width: 15px" checked> style="float: left;margin-left: 10px; margin-top: 7px; width: 15px" checked>
<span style="margin-left:5px;float: left;">全选</span></li> <span style="margin-left:5px;float: left;">全选</span></li>
......
...@@ -11,11 +11,11 @@ ...@@ -11,11 +11,11 @@
<span class="text-bold" translate="SelectedOrganization"></span>: <span class="text-bold" translate="SelectedOrganization"></span>:
<div class="dropdown" style="margin-left:10px"> <div class="dropdown" style="margin-left:10px">
<button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" style="width: 250px;"> data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" style="width: 380px;">
{{checkedCompanyTypeList ? ((checkedCompanyTypeList)|limitString:maxTitleLength):('PleaseSelect' | translate)}} {{checkedCompanyTypeList ? ((checkedCompanyTypeList)|limitString:maxTitleLength):('PleaseSelect' | translate)}}
<span class="caret" style="float: right "></span> <span class="caret" style="float: right "></span>
</button> </button>
<ul class="dropdown-menu" style="width: 250px;" aria-labelledby="dropdownMenu1"> <ul class="dropdown-menu" style="width: 380px;" aria-labelledby="dropdownMenu1">
<li><input type="checkbox" ng-model="selectedAll" ng-change="selectAll()" <li><input type="checkbox" ng-model="selectedAll" ng-change="selectAll()"
style="float: left;margin-left: 10px; margin-top: 7px; width: 15px" checked> style="float: left;margin-left: 10px; margin-top: 7px; width: 15px" checked>
<span style="margin-left:5px;float: left;">全选</span></li> <span style="margin-left:5px;float: left;">全选</span></li>
......
...@@ -11,11 +11,11 @@ ...@@ -11,11 +11,11 @@
<span class="text-bold" translate="SelectedOrganization"></span>: <span class="text-bold" translate="SelectedOrganization"></span>:
<div class="dropdown" style="margin-left:10px"> <div class="dropdown" style="margin-left:10px">
<button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" style="width: 250px;"> data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" style="width: 380px;">
{{checkedCompanyTypeList ? ((checkedCompanyTypeList)|limitString:maxTitleLength):('PleaseSelect' | translate)}} {{checkedCompanyTypeList ? ((checkedCompanyTypeList)|limitString:maxTitleLength):('PleaseSelect' | translate)}}
<span class="caret" style="float: right "></span> <span class="caret" style="float: right "></span>
</button> </button>
<ul class="dropdown-menu" style="width: 250px;" aria-labelledby="dropdownMenu1"> <ul class="dropdown-menu" style="width: 380px;" aria-labelledby="dropdownMenu1">
<li><input type="checkbox" ng-model="selectedAll" ng-change="selectAll()" <li><input type="checkbox" ng-model="selectedAll" ng-change="selectAll()"
style="float: left;margin-left: 10px; margin-top: 7px; width: 15px" checked> style="float: left;margin-left: 10px; margin-top: 7px; width: 15px" checked>
<span style="margin-left:5px;float: left;">全选</span></li> <span style="margin-left:5px;float: left;">全选</span></li>
......
...@@ -11,11 +11,11 @@ ...@@ -11,11 +11,11 @@
<span class="text-bold" translate="SelectedOrganization"></span>: <span class="text-bold" translate="SelectedOrganization"></span>:
<div class="dropdown" style="margin-left:10px"> <div class="dropdown" style="margin-left:10px">
<button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" style="width: 250px;"> data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" style="width: 380px;">
{{checkedCompanyTypeList ? ((checkedCompanyTypeList)|limitString:maxTitleLength):('PleaseSelect' | translate)}} {{checkedCompanyTypeList ? ((checkedCompanyTypeList)|limitString:maxTitleLength):('PleaseSelect' | translate)}}
<span class="caret" style="float: right "></span> <span class="caret" style="float: right "></span>
</button> </button>
<ul class="dropdown-menu" style="width: 250px;" aria-labelledby="dropdownMenu1"> <ul class="dropdown-menu" style="width: 380px;" aria-labelledby="dropdownMenu1">
<li><input type="checkbox" ng-model="selectedAll" ng-change="selectAll()" <li><input type="checkbox" ng-model="selectedAll" ng-change="selectAll()"
style="float: left;margin-left: 10px; margin-top: 7px; width: 15px" checked> style="float: left;margin-left: 10px; margin-top: 7px; width: 15px" checked>
<span style="margin-left:5px;float: left;">全选</span></li> <span style="margin-left:5px;float: left;">全选</span></li>
......
...@@ -11,11 +11,11 @@ ...@@ -11,11 +11,11 @@
<span class="text-bold" translate="SelectedOrganization"></span>: <span class="text-bold" translate="SelectedOrganization"></span>:
<div class="dropdown" style="margin-left:10px"> <div class="dropdown" style="margin-left:10px">
<button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" style="width: 250px;"> data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" style="width: 380px;">
{{checkedCompanyTypeList ? ((checkedCompanyTypeList)|limitString:maxTitleLength):('PleaseSelect' | translate)}} {{checkedCompanyTypeList ? ((checkedCompanyTypeList)|limitString:maxTitleLength):('PleaseSelect' | translate)}}
<span class="caret" style="float: right "></span> <span class="caret" style="float: right "></span>
</button> </button>
<ul class="dropdown-menu" style="width: 250px;" aria-labelledby="dropdownMenu1"> <ul class="dropdown-menu" style="width: 380px;" aria-labelledby="dropdownMenu1">
<li><input type="checkbox" ng-model="selectedAll" ng-change="selectAll()" <li><input type="checkbox" ng-model="selectedAll" ng-change="selectAll()"
style="float: left;margin-left: 10px; margin-top: 7px; width: 15px" checked> style="float: left;margin-left: 10px; margin-top: 7px; width: 15px" checked>
<span style="margin-left:5px;float: left;">全选</span></li> <span style="margin-left:5px;float: left;">全选</span></li>
......
...@@ -14,11 +14,11 @@ ...@@ -14,11 +14,11 @@
<span class="text-bold" translate="SelectedOrganization"></span>: <span class="text-bold" translate="SelectedOrganization"></span>:
<div class="dropdown" style="margin-left:10px"> <div class="dropdown" style="margin-left:10px">
<button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" style="width: 250px;"> data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" style="width: 380px;">
{{checkedCompanyTypeList ? ((checkedCompanyTypeList)|limitString:maxTitleLength):('PleaseSelect' | translate)}} {{checkedCompanyTypeList ? ((checkedCompanyTypeList)|limitString:maxTitleLength):('PleaseSelect' | translate)}}
<span class="caret" style="float: right "></span> <span class="caret" style="float: right "></span>
</button> </button>
<ul class="dropdown-menu" style="width: 250px;" aria-labelledby="dropdownMenu1"> <ul class="dropdown-menu" style="width: 380px;" aria-labelledby="dropdownMenu1">
<li><input type="checkbox" ng-model="selectedAll" ng-change="selectAll()" <li><input type="checkbox" ng-model="selectedAll" ng-change="selectAll()"
style="float: left;margin-left: 10px; margin-top: 7px; width: 15px" checked> style="float: left;margin-left: 10px; margin-top: 7px; width: 15px" checked>
<span style="margin-left:5px;float: left;">全选</span></li> <span style="margin-left:5px;float: left;">全选</span></li>
......
...@@ -14,11 +14,11 @@ ...@@ -14,11 +14,11 @@
<span class="text-bold" translate="SelectedOrganization"></span>: <span class="text-bold" translate="SelectedOrganization"></span>:
<div class="dropdown" style="margin-left:10px"> <div class="dropdown" style="margin-left:10px">
<button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" style="width: 250px;"> data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" style="width: 380px;">
{{checkedCompanyTypeList ? ((checkedCompanyTypeList)|limitString:maxTitleLength):('PleaseSelect' | translate)}} {{checkedCompanyTypeList ? ((checkedCompanyTypeList)|limitString:maxTitleLength):('PleaseSelect' | translate)}}
<span class="caret" style="float: right "></span> <span class="caret" style="float: right "></span>
</button> </button>
<ul class="dropdown-menu" style="width: 250px;" aria-labelledby="dropdownMenu1"> <ul class="dropdown-menu" style="width: 380px;" aria-labelledby="dropdownMenu1">
<li><input type="checkbox" ng-model="selectedAll" ng-change="selectAll()" <li><input type="checkbox" ng-model="selectedAll" ng-change="selectAll()"
style="float: left;margin-left: 10px; margin-top: 7px; width: 15px" checked> style="float: left;margin-left: 10px; margin-top: 7px; width: 15px" checked>
<span style="margin-left:5px;float: left;">全选</span></li> <span style="margin-left:5px;float: left;">全选</span></li>
......
...@@ -14,11 +14,11 @@ ...@@ -14,11 +14,11 @@
<span class="text-bold" translate="SelectedOrganization"></span>: <span class="text-bold" translate="SelectedOrganization"></span>:
<div class="dropdown" style="margin-left:10px"> <div class="dropdown" style="margin-left:10px">
<button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" style="width: 250px;"> data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" style="width: 380px;">
{{checkedCompanyTypeList ? ((checkedCompanyTypeList)|limitString:maxTitleLength):('PleaseSelect' | translate)}} {{checkedCompanyTypeList ? ((checkedCompanyTypeList)|limitString:maxTitleLength):('PleaseSelect' | translate)}}
<span class="caret" style="float: right "></span> <span class="caret" style="float: right "></span>
</button> </button>
<ul class="dropdown-menu" style="width: 250px;" aria-labelledby="dropdownMenu1"> <ul class="dropdown-menu" style="width: 380px;" aria-labelledby="dropdownMenu1">
<li><input type="checkbox" ng-model="selectedAll" ng-change="selectAll()" <li><input type="checkbox" ng-model="selectedAll" ng-change="selectAll()"
style="float: left;margin-left: 10px; margin-top: 7px; width: 15px" checked> style="float: left;margin-left: 10px; margin-top: 7px; width: 15px" checked>
<span style="margin-left:5px;float: left;">全选</span></li> <span style="margin-left:5px;float: left;">全选</span></li>
......
...@@ -14,11 +14,11 @@ ...@@ -14,11 +14,11 @@
<span class="text-bold" translate="SelectedOrganization"></span>: <span class="text-bold" translate="SelectedOrganization"></span>:
<div class="dropdown" style="margin-left:10px"> <div class="dropdown" style="margin-left:10px">
<button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" style="width: 250px;"> data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" style="width: 380px;">
{{checkedCompanyTypeList ? ((checkedCompanyTypeList)|limitString:maxTitleLength):('PleaseSelect' | translate)}} {{checkedCompanyTypeList ? ((checkedCompanyTypeList)|limitString:maxTitleLength):('PleaseSelect' | translate)}}
<span class="caret" style="float: right "></span> <span class="caret" style="float: right "></span>
</button> </button>
<ul class="dropdown-menu" style="width: 250px;" aria-labelledby="dropdownMenu1"> <ul class="dropdown-menu" style="width: 380px;" aria-labelledby="dropdownMenu1">
<li><input type="checkbox" ng-model="selectedAll" ng-change="selectAll()" <li><input type="checkbox" ng-model="selectedAll" ng-change="selectAll()"
style="float: left;margin-left: 10px; margin-top: 7px; width: 15px" checked> style="float: left;margin-left: 10px; margin-top: 7px; width: 15px" checked>
<span style="margin-left:5px;float: left;">全选</span></li> <span style="margin-left:5px;float: left;">全选</span></li>
......
...@@ -14,11 +14,11 @@ ...@@ -14,11 +14,11 @@
<span class="text-bold" translate="SelectedOrganization"></span>: <span class="text-bold" translate="SelectedOrganization"></span>:
<div class="dropdown" style="margin-left:10px"> <div class="dropdown" style="margin-left:10px">
<button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" style="width: 250px;"> data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" style="width: 380px;">
{{checkedCompanyTypeList ? ((checkedCompanyTypeList)|limitString:maxTitleLength):('PleaseSelect' | translate)}} {{checkedCompanyTypeList ? ((checkedCompanyTypeList)|limitString:maxTitleLength):('PleaseSelect' | translate)}}
<span class="caret" style="float: right "></span> <span class="caret" style="float: right "></span>
</button> </button>
<ul class="dropdown-menu" style="width: 250px;" aria-labelledby="dropdownMenu1"> <ul class="dropdown-menu" style="width: 380px;" aria-labelledby="dropdownMenu1">
<li><input type="checkbox" ng-model="selectedAll" ng-change="selectAll()" <li><input type="checkbox" ng-model="selectedAll" ng-change="selectAll()"
style="float: left;margin-left: 10px; margin-top: 7px; width: 15px" checked> style="float: left;margin-left: 10px; margin-top: 7px; width: 15px" checked>
<span style="margin-left:5px;float: left;">全选</span></li> <span style="margin-left:5px;float: left;">全选</span></li>
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
<button type="button" <button type="button"
ngf-select="" type="file" ng-model="importExcelFile" ngf-drag-over-class="'dragover'" accept=".xls,.xlsx" ngf-multiple="false" ngf-select="" type="file" ng-model="importExcelFile" ngf-drag-over-class="'dragover'" accept=".xls,.xlsx" ngf-multiple="false"
ngf-allow-dir="false" class="btn btn-vat-third" style="margin-right:10px;margin-left:30px"> ngf-allow-dir="false" class="btn btn-vat-third" style="margin-right:10px;margin-left:30px">
{{'SelectFile' | translate}} {{'SelectFile' | etranslate}}
</button> </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;"
......
...@@ -11,7 +11,6 @@ ...@@ -11,7 +11,6 @@
}, },
controller: 'appDataImportController', controller: 'appDataImportController',
link: function (scope, element, attr) { link: function (scope, element, attr) {
debugger;
$('.nav-element-left a').removeClass('active'); $('.nav-element-left a').removeClass('active');
$('.main-contents')[0].style.width = "260px"; $('.main-contents')[0].style.width = "260px";
$('.main-contents')[0].style.float = "left"; $('.main-contents')[0].style.float = "left";
......
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