Examples of PartialPayment


Examples of com.finiac.model.PartialPayment

        bill1.setAmount(amt);
        billDAO.updateBill(bill1);
      }
    ModelMap modelMap = new ModelMap();
    modelMap.addAttribute("items", partialPaymentDAO.listAll());
    modelMap.addAttribute("partialPay", new PartialPayment());
    return new ModelAndView("partialPayment",modelMap);
  }
View Full Code Here

Examples of com.finiac.model.PartialPayment

    Bill bill= new Bill();
    Student student= new Student();
    bill=billDAO.selectBill(billNo);
    student=studentDAO.selectByAdmissionNo(admissionNo);
    balanceAmt=bill.getAmount()-amount;
    PartialPayment pay = new PartialPayment(student, bill, balanceAmt);
    partialPaymentDAO.addDetails(pay);
    return new ModelAndView("redirect:listPartialPay.htm");
  }
View Full Code Here

Examples of com.finiac.model.PartialPayment

    return new ModelAndView("redirect:listPartialPay.htm");
  }
  public ModelAndView updatePartialPayPage(HttpServletRequest request, HttpServletResponse response)throws Exception
  {
    long id=Long.parseLong(request.getParameter("id"));
    PartialPayment partialPay = new PartialPayment();
    partialPay= partialPaymentDAO.selectById(id);
    if(request.getParameter("from").equals("search"))
      request.getSession().setAttribute("from",partialPay.getStudentId().getId());
    else
      request.getSession().setAttribute("from","main");
    return new ModelAndView("updatePartialPay", "partialPay", partialPay);
  }
View Full Code Here

Examples of com.finiac.model.PartialPayment

  }
  public ModelAndView updatePartialPay(HttpServletRequest request, HttpServletResponse response)throws Exception
  {
    float newAmount = Float.parseFloat(request.getParameter("newAmount"));
    long id=Long.parseLong(request.getParameter("partialPayId"));
    PartialPayment partialPay = new PartialPayment();
    partialPay= partialPaymentDAO.selectById(id);
    if(partialPay.getAmount()> newAmount)
      partialPay.setAmount(partialPay.getAmount()-newAmount);
    partialPaymentDAO.addDetails(partialPay);
    if(partialPay.getAmount()== newAmount)
      partialPaymentDAO.deletePartialPay(id);
    if(request.getSession().getAttribute("from").equals("main"))
      return new ModelAndView("redirect:listPartialPay.htm");
    return new ModelAndView("redirect:searchPartialPay.htm?studentId="+request.getSession().getAttribute("from"));
  }
View Full Code Here

Examples of com.finiac.model.PartialPayment

      studentId=0;
    else
      studentId=Long.parseLong(request.getParameter("studentId"));
    ModelMap modelMap = new ModelMap();
    modelMap.addAttribute("items", partialPaymentDAO.selectByStudent(studentId));
    modelMap.addAttribute("partialPay", new PartialPayment());
    return new ModelAndView("searchPartialPay",modelMap);
   
  }
View Full Code Here

Examples of com.finiac.model.PartialPayment


  @SuppressWarnings("unchecked")
  @Override
  public PartialPayment selectById(long id) {
    PartialPayment partialPay = new PartialPayment();
    List<PartialPayment> partialPayList= hibernateTemplate.find("from PartialPayment where id="+id +" and isActive =1");
    for(int i=0;i<partialPayList.size();i++)
    {
      partialPay = partialPayList.get(i);
    }
View Full Code Here

Examples of com.finiac.model.PartialPayment

  }


  @Override
  public void deletePartialPay(long id) {
    PartialPayment partialPay = new PartialPayment();
    partialPay = this.selectById(id);
    partialPay.setIsActive(0);
    partialPay.setAmount(0);
    this.addDetails(partialPay);
   
  }
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.