Examples of SalaryPayment


Examples of com.rakaizsys.eims.model.finance.SalaryPayment

    super(columns);
  }

  @Override
  public Object getValueAt(int row, int col) {
    SalaryPayment payment = (SalaryPayment) dbObjects.get(row);
    switch (col) {
    case 1:
      return payment.getId();
    case 2:
      return payment.getName();
    case 3:
      return payment.getType();
    case 4:
      return payment.getAmount();
    case 5:
      return payment.getNotes();
    case 6:
      return payment.getVoucher();
    default:
      return null;
    }
  }
View Full Code Here

Examples of com.rakaizsys.eims.model.finance.SalaryPayment

    }
  }

  @Override
  public void setValueAt(Object value, int row, int col) {
    SalaryPayment payment = (SalaryPayment) dbObjects.get(row);
    switch (col) {
    case 2:
      payment.setName((String) value);
      break;
    case 3:

      payment.setType((PaymentType) value);
      break;
    case 4:
      payment.setAmount(Double.parseDouble(value.toString()));
      break;
    case 5:
      payment.setNotes((String) value);
      break;
    case 0:
      if ("Delete".equals(value) && row > 0)
        removeDBObject(payment);
      else if ("Add".equals(value))
        addDBObject(new SalaryPayment());
      break;
    default:
      break;
    }
  }
View Full Code Here

Examples of com.rakaizsys.eims.model.finance.SalaryPayment

  public void processNewAction() {
    super.processNewAction();
    EmployeeSalaryPaymentTableModel model = (EmployeeSalaryPaymentTableModel) tablePayments
        .getModel();
    model.setDbObjects(new ArrayList<DBObject>());
    model.addDBObject(new SalaryPayment());
  }
View Full Code Here

Examples of com.rakaizsys.eims.model.finance.SalaryPayment

          .getEmployeePayments(employee);
      TemplateTableModel model = (TemplateTableModel) PropertyUtils
          .getProperty(tablePayments, "model");
      List<SalaryPayment> salaryPayments = new ArrayList<SalaryPayment>();
      for (EmployeePayment payment : payments) {
        SalaryPayment salaryPayment = new SalaryPayment(payment);
        salaryPayments.add(salaryPayment);
      }
      model.setDbObjects((List)salaryPayments);
    } catch (Exception ex) {
      ViewUtil
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.