コード例 #1
0
 private void jasperContent(Employee_n emps, int i) {
   String name = emps.getFirstname() + " " + emps.getMidlename() + " " + emps.getLastname();
   m_data.addElement(m_panel.getUnitDescription());
   m_data.addElement(m_panel.getMonthYearString());
   m_data.addElement(Integer.toString(i + 1));
   m_data.addElement(emps.getEmployeeno());
   m_data.addElement(name);
   m_data.addElement(emps.getJobtitle());
 }
コード例 #2
0
 void addEmptyRow() {
   if (m_summary) {
     m_model.addRow(new Object[] {"", "", "", "", "", ""});
   } else {
     m_model.addRow(
         new Object[] {
           m_panel.getUnitDescription(), m_panel.getMonthYearString(), "", "", "", "", ""
         });
   }
 }
コード例 #3
0
 private void reportContent(EmployeeMealAllowanceSubmit submit, int i) {
   m_data.add(m_panel.getUnitDescription());
   m_data.add(m_panel.getMonthYearString());
   m_data.addElement(String.valueOf(i + 1));
   m_data.addElement(submit.getEmployeeNo());
   String name = submit.getName();
   m_data.addElement(name);
   m_data.addElement(submit.getJobTitle());
   int presence = submit.getPresence();
   m_data.addElement(String.valueOf(new Integer(presence)));
 }