Package com.centraview.common

Examples of com.centraview.common.ListElementMember


        int rowSize = 0;
        ReportContentString contentRow = null;
        ArrayList row = null;
        ArrayList outputRow = null;
        Object column = null;
        ListElementMember element = null;
        int leaderCount = 0;
        String previousLeaderValue = null;
        String currentLeaderValue = "";
        int leaderHeaderIndex = 0;

        ReportColumn[] cols = getColumns();
        int colNumber = cols.length;

        float currCost = 0;
        float currAmount = 0;
        float currProfit = 0;
        float repTotalCost = 0;
        float repTotalAmount = 0;
        float repTotalProfit = 0;

        switch (i) {
            case 0:
                size = res.size();

                // set leader line index
                leaderHeaderIndex = result.size();

                // add table header line for new leader
                result.add(getTableHeader());

                for (int j = 0; j < size; ++j) {
                    row = (ArrayList) res.get(j);
                    contentRow = new ReportContentString();
                    outputRow = new ArrayList();
                    rowSize = row.size();
                    for (int k = 0; k < rowSize; ++k) {
                        if ( k < colNumber ) {
                            column = row.get(k);
                            element = outputObject(column, getColumnName(k));
                            if ( cols[k].isVisible() ) {
                                outputRow.add(element);
                            }

                            if (k == getLeader()) {
                                // get leader column value
                                currentLeaderValue = element.getDisplayString();
                            }
                            if (k == 8) {
                                // cost
                                if (column instanceof Float) {
                                    currCost = ( (Float) column).floatValue();
View Full Code Here


        int rowSize = 0;
        ReportContentString contentRow = null;
        ArrayList row = null;
        ArrayList outputRow = null;
        Object column = null;
        ListElementMember element = null;
        int leaderCount = 0;
        String previousLeaderValue = null;
        String currentLeaderValue = "";
        int leaderHeaderIndex = 0;
View Full Code Here

          break;
      }
      str = "";
      int size1 = (rowElements == null) ? 0 : rowElements.size();
      for (int j = 0; j < size1; ++j) {
        ListElementMember column = (ListElementMember) rowElements.get(j);
        str += column.getDisplayString() + ";";
      }
      logger.error(str);
      logger.error("==========================================");
    }
  }
View Full Code Here

    int numberOfColumns = 0;
    ReportContentString contentRow = null;
    ArrayList row = null;
    ArrayList outputRow = null;
    Object column = null;
    ListElementMember element = null;
    String previousIndividualName = null;
    String currentIndividualName = "";
    int individualIndex = 0;
    String entityName = "";
    int entityIndex = 1;
    String accountManagerName = "";
    int amIndex = 2;
    int leaderHeaderIndex = 0;
   
    ReportColumn[] cols = getColumns();
    int colNumber = cols.length;
   
    numberOfRows = queryResults.size();
    // set leader line index
    leaderHeaderIndex = reportOutput.size();
    // set header line
    reportOutput.add(getTableHeader());
    // process each row.
    for (int j = 0; j < numberOfRows; ++j) {
      row = (ArrayList) queryResults.get(j);
      contentRow = new ReportContentString();
      outputRow = new ArrayList();
      numberOfColumns = row.size();
      // process each column
      for (int k = 0; k < numberOfColumns; ++k) {
        if (k < colNumber) {
          column = row.get(k);
          element = outputObject(column, getColumnName(k));
          if (cols[k].isVisible()) {
            outputRow.add(element);
          }
          if (k == individualIndex) {
            currentIndividualName = element.getDisplayString();
          }
          if (k == entityIndex) {
            entityName = element.getDisplayString();
          }
          if (k == amIndex) {
            accountManagerName = element.getDisplayString();
          }
        }
      }
      // update the leader info.
      if (previousIndividualName == null || !previousIndividualName.equals(currentIndividualName)) {
View Full Code Here

        int rowSize = 0;
        ReportContentString contentRow = null;
        ArrayList row = null;
        ArrayList outputRow = null;
        Object column = null;
        ListElementMember element = null;
        int leaderCount = 0;
        String previousLeaderValue = null;
        String currentLeaderValue = "";
        String currentLeaderValue2 = "";
        String currentLeaderValue3 = "";
        int leaderHeaderIndex = 0;

        ReportColumn[] cols = getColumns();
        int colNumber = cols.length;
        int rowId = 0;

        switch (i) {
            case 0:
                size = res.size();

                // set leader line index
                leaderHeaderIndex = result.size();

                // add table header line for new leader
                result.add(getTableHeader());

                for (int j = 0; j < size; ++j) {
                    row = (ArrayList) res.get(j);
                    contentRow = new ReportContentString();
                    outputRow = new ArrayList();
                    rowSize = row.size();
                    for (int k = 0; k < rowSize; ++k) {
                        if (k < colNumber) {
                            column = row.get(k);
                            element = outputObject(column, getColumnName(k));
                            if (cols[k].isVisible()) {
                                outputRow.add(element);
                            }
                            if ( reportId == SUPPORT2_REPORT_ID) {
                                if (k == 3) {
                                    // get leader Id column value
                                    currentLeaderValue2 = element.getDisplayString();
                                }
                                if (k == 4) {
                                    // get leader Id2 column value
                                    currentLeaderValue3 = element.getDisplayString();
                                }
                            }
                            if (k == getLeader()) {
                                // get leader column value
                                currentLeaderValue = element.getDisplayString();
                            }
                            if (k == 0 && reportId != SUPPORT1_REPORT_ID) {
                                rowId = Integer.parseInt(column.toString());
                            }
                        }
View Full Code Here

        ArrayList row = null;
        ArrayList outputRow = null;
        Object column = null;
        Object prevBindObject = null;
        Object currBindObject = null;
        ListElementMember element = null;
        int leaderCount = 0;
        String previousLeaderValue = null;
        String currentLeaderValue = "";
        int leaderHeaderIndex = 0;

        ReportColumn[] cols = getColumns();
        int colNumber = cols.length;

        float currTotalAmount = 0;
        float currForAmount = 0;
        float totalAmount = 0;
        float forecastAmount = 0;
        float repTotalAmount = 0;
        float repForecastAmount = 0;
        String prevBindValue = null;
        String currBindValue = "";


        switch (i) {
            case 0:
                size = res.size();

                // set leader line index
                leaderHeaderIndex = result.size();

                // add table header line for new leader
                result.add(getTableHeader());

                for (int j = 0; j < size; ++j) {
                    row = (ArrayList) res.get(j);
                    contentRow = new ReportContentString();
                    outputRow = new ArrayList();
                    rowSize = row.size();
                    for (int k = 0; k < rowSize; ++k) {
                        if ( k < colNumber ) {
                            column = row.get(k);
                            element = outputObject(column, getColumnName(k));
                            if ( cols[k].isVisible() ) {
                                outputRow.add(element);
                            }

                            if (k == getLeader()) {
                                // get leader column value
                                currentLeaderValue = element.getDisplayString();
                            }
                            if (k == leaderBind) {
                                // save leader object for binding
                                currBindObject = column;
                                currBindValue = element.getDisplayString();
                            }

                            if (k == 10) {
                                // total amount sum
                                if (column  instanceof Float) {
View Full Code Here

    int rowSize = 0;
    ReportContentString contentRow = null;
    ArrayList row = null;
    ArrayList outputRow = null;
    Object column = null;
    ListElementMember element = null;
    int totalCount = 0;

    ReportColumn[] cols = getColumns();
    int colNumber = cols.length;

    switch (i) {
      case 0:
           size = res.size();

           // set header line
           result.add(getTableHeader());

           for (int j = 0; j<size; ++j) {

               row = (ArrayList)res.get(j);
               contentRow = new ReportContentString();
               outputRow = new ArrayList();
               rowSize = row.size();
               for (int k = 0; k < rowSize; ++k) {

                   if ( k < colNumber ) {

                     column = row.get(k);

                     element = outputObject(column, getColumnName(k));
                     if ( cols[k].isVisible() ) {
                         outputRow.add(element);
                     }

                     if ( k == 2 ) {
                        // calculate total activities
                        try {
                          totalCount += Integer.parseInt(element.getDisplayString());
                        }
                        catch (Exception e) {}
                     }
                   }
               }
View Full Code Here

        ArrayList row = null;
        ArrayList outputRow = null;
        Object column = null;
        Object prevBindObject = null;
        Object currBindObject = null;
        ListElementMember element = null;
        int leaderCount = 0;
        String previousLeaderValue = null;
        String currentLeaderValue = "";
        int leaderHeaderIndex = 0;

        ReportColumn[] cols = getColumns();
        int colNumber = cols.length;

        float currTotal1Amount = 0;
        float currTotal2Amount = 0;
        float currTotal3Amount = 0;
        float total1Amount = 0;
        float total2Amount = 0;
        float total3Amount = 0;
        float repTotal1Amount = 0;
        float repTotal2Amount = 0;
        float repTotal3Amount = 0;
        String prevBindValue = null;
        String currBindValue = "";

        switch (i) {
            case 0:
                size = res.size();

                // set leader line index
                leaderHeaderIndex = result.size();

                // add table header line for new leader
                result.add(getTableHeader());

                for (int j = 0; j < size; ++j) {
                    row = (ArrayList) res.get(j);
                    contentRow = new ReportContentString();
                    outputRow = new ArrayList();
                    rowSize = row.size();
                    for (int k = 0; k < rowSize; ++k) {
                        if ( k < colNumber ) {
                            column = row.get(k);

                            if (k == 4) {
                                // quantiy
                               column = new String(column.toString());
                            }

                            element = outputObject(column, getColumnName(k));

                            if ( cols[k].isVisible() ) {
                                outputRow.add(element);
                            }

                            if (k == getLeader()) {
                                // get leader column value
                                currentLeaderValue = element.getDisplayString();
                            }
                            if (k == leaderBind) {
                                // save leader object for binding
                                currBindObject = column;
                                currBindValue = element.getDisplayString();
                            }

                            if (k == 6) {
                                // total amount sum 1
                                if (column instanceof Float) {
View Full Code Here

    int rowSize = 0;
    ReportContentString contentRow = null;
    ArrayList row = null;
    ArrayList outputRow = null;
    Object column = null;
    ListElementMember element = null;
    int totalCount = 0;

    ReportColumn[] cols = getColumns();
    int colNumber = cols.length;

    switch (i) {
      case 0:
           size = res.size();

           // set header line
           result.add(getTableHeader());

           for (int j = 0; j<size; ++j) {

               row = (ArrayList)res.get(j);
               contentRow = new ReportContentString();
               outputRow = new ArrayList();
               rowSize = row.size();
               for (int k = 0; k < rowSize; ++k) {

                   if ( k < colNumber ) {

                     column = row.get(k);

                     element = outputObject(column, getColumnName(k));
                     if ( cols[k].isVisible() ) {
                         outputRow.add(element);
                     }

                     if ( k == 2 ) {
                        // calculate total activities
                        try {
                          totalCount += Integer.parseInt(element.getDisplayString());
                        }
                        catch (Exception e) {}
                     }
                   }
               }
View Full Code Here

        int rowSize = 0;
        ReportContentString contentRow = null;
        ArrayList row = null;
        ArrayList outputRow = null;
        Object column = null;
        ListElementMember element = null;
        int leaderCount = 0;
        String previousLeaderValue = null;
        String currentLeaderValue = "";
        int leaderHeaderIndex = 0;

        ReportColumn[] cols = getColumns();
        int colNumber = cols.length;

        switch (i) {
            case 0:
                size = res.size();

                // set leader line index
                leaderHeaderIndex = result.size();

                // add table header line for new leader
                result.add(getTableHeader());

                for (int j = 0; j < size; ++j) {
                    row = (ArrayList) res.get(j);
                    contentRow = new ReportContentString();
                    outputRow = new ArrayList();
                    rowSize = row.size();
                    for (int k = 0; k < rowSize; ++k) {
                        if ( k < colNumber ) {
                            column = row.get(k);
                            element = outputObject(column, getColumnName(k));

                            // Id value
                            if (k == getLeader()) {
                                // get leader column value
                                currentLeaderValue = element.getDisplayString();
                            }

                            if ( cols[k].isVisible() ) {
                                outputRow.add(element);
                            }
View Full Code Here

TOP

Related Classes of com.centraview.common.ListElementMember

Copyright © 2018 www.massapicom. 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.