Exemplo n.º 1
0
 private void getFiveAddRow(SearchTableModel model) {
   model.addRow(new Object[] {"Employee No", ""});
   model.addRow(new Object[] {"Name", ""});
   model.addRow(new Object[] {"Job Title", ""});
   model.addRow(new Object[] {"Work Agreement", ""});
   model.addRow(new Object[] {"Qualification", ""});
 }
Exemplo n.º 2
0
 private void getTwoAddRow(SearchTableModel model) {
   model.addRow(new Object[] {"Name", ""});
   model.addRow(new Object[] {"Job Title", ""});
 }
Exemplo n.º 3
0
 public SearchTable(String field) {
   SearchTableModel model = new SearchTableModel();
   model.addColumn("Attribute");
   model.addColumn("Description");
   if (field.equals("employee")) {
     model.addRow(new Object[] {"Employee No", ""});
     model.addRow(new Object[] {"Name", ""});
     model.addRow(new Object[] {"Education", ""});
     model.addRow(new Object[] {"Job Title", ""});
     model.addRow(new Object[] {"Department", ""});
     model.addRow(new Object[] {"Unit Code", ""});
     model.addRow(new Object[] {"Work Agreement", ""});
     model.addRow(new Object[] {"Sex", ""});
     model.addRow(new Object[] {"City", ""});
     model.addRow(new Object[] {"Province", ""});
     model.addRow(new Object[] {"Phone", ""});
     model.addRow(new Object[] {"Marital Status", ""});
     model.addRow(new Object[] {"Qualification", ""});
     model.addRow(new Object[] {"Status", "Active"});
   } else if (m_PayrollPaychequeSubmitPanel != null) {
     getTwoAddRow(model);
   } else if (m_PayrollMealAllowanceSubmitPanel != null) {
     getTwoAddRow(model);
   } else if (m_PayrollOvertimeSubmitPanel != null) {
     getTwoAddRow(model);
   } else if (m_PayrollTransportationAllowanceSubmitPanel != null) {
     getTwoAddRow(model);
   } else if (m_PayrollInsuranceAllowanceSubmitPanel != null) {
     getTwoAddRow(model);
   } else if (m_PayrollOtherAllowanceSubmitPanel != null) {
     getTwoAddRow(model);
   } else if (m_RptFieldAllowances != null) {
     getFiveAddRow(model);
   } else if (m_RptPersonalUtilization != null) {
     getFiveAddRow(model);
   } else if (m_PayrollTaxArt21SubmitPanel != null) {
     getTwoAddRow(model);
   } else if (m_PayrollTaxArt21VerificationPanel != null) {
     getTwoAddRow(model);
   } else if (m_payrollPaychequeVerificationPanel != null) {
     getTwoAddRow(model);
   }
   setModel(model);
   getColumnModel().getColumn(0).setPreferredWidth(100);
   getColumnModel().getColumn(0).setMaxWidth(100);
   getColumnModel().getColumn(0).setCellRenderer(new BaseTableCellRenderer());
 }