Examples of ExcelTarget


Examples of org.jeecgframework.poi.excel.annotation.ExcelTarget

      Class<?> pojoClass, ImportParams params, Map<String, PictureData> picturesthrows Exception {
    Collection collection = new ArrayList();
    Map<String, ExcelImportEntity> excelParams = new HashMap<String, ExcelImportEntity>();
    List<ExcelCollectionParams> excelCollection = new ArrayList<ExcelCollectionParams>();
    Field fileds[] = ExcelPublicUtil.getClassFields(pojoClass);
    ExcelTarget etarget = pojoClass.getAnnotation(ExcelTarget.class);
    String targetId = null;
    if (etarget != null) {
      targetId = etarget.id();
    }
    getAllExcelField(targetId, fileds, excelParams, excelCollection,
        pojoClass, null);
    Iterator<Row> rows = sheet.rowIterator();
    for (int j = 0; j < params.getTitleRows(); j++) {
View Full Code Here

Examples of org.jeecgframework.poi.excel.annotation.ExcelTarget

      Workbook workbook) throws Exception {
    Drawing patriarch = sheet.createDrawingPatriarch();
    List<ExcelExportEntity> excelParams = new ArrayList<ExcelExportEntity>();
    // 得到所有字段
    Field fileds[] = ExcelPublicUtil.getClassFields(pojoClass);
    ExcelTarget etarget = pojoClass.getAnnotation(ExcelTarget.class);
    String targetId = null;
    if (etarget != null) {
      targetId = etarget.id();
    }
    getAllExcelField(targetId, fileds, excelParams, pojoClass, null);
    sortAllParams(excelParams);
    Iterator<?> its = dataSet.iterator();
    int index = sheet.getLastRowNum();
View Full Code Here

Examples of org.jeecgframework.poi.excel.annotation.ExcelTarget

      Map<String,HSSFCellStyle> styles = createStyles(workbook);
      Drawing patriarch = sheet.createDrawingPatriarch();
      List<ExcelExportEntity> excelParams = new ArrayList<ExcelExportEntity>();
      // 得到所有字段
      Field fileds[] = ExcelPublicUtil.getClassFields(pojoClass);
      ExcelTarget etarget = pojoClass.getAnnotation(ExcelTarget.class);
      String targetId = null;
      if (etarget != null) {
        targetId = etarget.id();
      }
      getAllExcelField(targetId, fileds, excelParams, pojoClass, null);
      sortAllParams(excelParams);
      int index = 0;
      int feildWidth = getFieldWidth(excelParams);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.