Examples of EmployeeSalary


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

    this.scrollPaneNotes.setViewportView(this.txtrNotes);
  }

  @Override
  protected void doNew() throws Exception {
    EmployeeSalary salary = new EmployeeSalary();
    Calendar calendar = Calendar.getInstance();
    calendar.set(Calendar.DAY_OF_MONTH, 1);
    salary.setSalaryDate(calendar.getTime());
    dbObject = salary;
  }
View Full Code Here

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

  @Override
  protected void doInsert() throws Exception {
    try {
      SQLMapHolder.sqlMap.startTransaction();
      EmployeeSalary salary = (EmployeeSalary) dbObject;
      salary.getVoucher().setAmount(salary.getAmount() * (-1));
      SQLMapHolder.sqlMap.insert("insertVoucher", salary.getVoucher());
      List<SalaryPayment> payments = salary.getPayments();

      SQLMapHolder.sqlMap.insert("insertEmployeeSalary", salary);
      for (SalaryPayment payment : payments) {
        payment.setEmployeeSalary(salary);
        payment.setVoucher(salary.getVoucher());

        SQLMapHolder.sqlMap.insert("insertSalaryPayment", payment);
      }
      SQLMapHolder.sqlMap.commitTransaction();

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.