private void presentingData() {
    PayrollColumnHelper helper = new PayrollColumnHelper();
    long tempIndex = -1;
    int no = 0;
    int leftMargin = 0;
    helper.prepareColumnHelper(m_payrollComponents);
    m_data = new Vector();
    for (int i = 0; i < m_empMealAllowSubmit.length; i++) {
      if (m_empMealAllowSubmit[i] != null) {
        if (tempIndex != m_empMealAllowSubmit[i].getEmployeeIndex()) {
          if (m_data.size() > 0) m_panel.m_table.addRow(m_data);
          m_data = new Vector();
          tableContent(m_empMealAllowSubmit[i], no++);
          tempIndex = m_empMealAllowSubmit[i].getEmployeeIndex();
          leftMargin = m_data.size();
        }
        int colIdx = helper.getColumnIndex(m_empMealAllowSubmit[i].getPayrollComponentIndex());
        if (colIdx != -1) {
          double value = m_empMealAllowSubmit[i].getValue();
          Object content = null;
          if (value != -1) content = new Double(value);
          else content = "";

          helper.addDataAtColumn(m_data, colIdx + leftMargin, content);
        }
      }
    } // end  for
    if (m_data.size() > 0) {
      m_data.addElement("");
      m_panel.m_table.addRow(m_data);
    }
    m_panel.m_table.setModelKu();
  }
 private void presentingDataReport() {
   PayrollColumnHelper helper = new PayrollColumnHelper();
   long tempIndex = -1;
   int no = 0;
   //		int leftMargin = 0;
   helper.prepareColumnHelper(m_payrollComponents);
   m_data = new Vector();
   for (int i = 0; i < m_empMealAllowSubmit.length; i++) {
     if (m_empMealAllowSubmit[i] != null) {
       if (tempIndex != m_empMealAllowSubmit[i].getEmployeeIndex()) {
         if (m_summary) {
           if (m_data.size() > 0) {
             m_data.addElement(m_GajiPokok[0]);
             m_data.addElement(m_GajiPokok[1]);
             m_data.addElement(new Integer(0));
             m_model.addRow(m_data);
           }
           m_data = new Vector();
           summaryContent(m_empMealAllowSubmit[i], no++);
           tempIndex = m_empMealAllowSubmit[i].getEmployeeIndex();
         } else {
           if (m_data.size() > 0) {
             m_data.addElement(m_GajiPokok[0]);
             m_data.addElement(m_GajiPokok[1]);
             m_model.addRow(m_data);
           }
           m_data = new Vector();
           reportContent(m_empMealAllowSubmit[i], no++);
           tempIndex = m_empMealAllowSubmit[i].getEmployeeIndex();
         }
         //					leftMargin = m_data.size();
       }
       int colIdx = helper.getColumnIndex(m_empMealAllowSubmit[i].getPayrollComponentIndex());
       if (colIdx != -1) {
         double value = m_empMealAllowSubmit[i].getValue();
         if (value != -1) {
           m_total[colIdx] += value;
           m_GajiPokok[colIdx] = m_formatDesimal.format(value);
         } else {
           m_GajiPokok[colIdx] = "";
         }
       }
     }
   }
   if (m_data.size() > 0) {
     m_data.addElement(m_GajiPokok[0]);
     m_data.addElement(m_GajiPokok[1]);
     if (m_summary) {
       m_data.addElement(new Integer(0));
     }
     m_model.addRow(m_data);
   }
 }