Package edu.asu.securebanking.model

Examples of edu.asu.securebanking.model.InternalUserTransaction


    return "TransactionMonitoringEmployeeHomePage";
  }

  @RequestMapping(value="/internalUsersTransactions")
  public String internalUsers(ModelMap model) {
    InternalUserTransaction transaction = new InternalUserTransaction();

    //command object
    model.addAttribute("transaction", transaction);

    //return form view
View Full Code Here




  @RequestMapping("/InternalUserTransaction")
  public ModelAndView showInternalUserTransactionForm() {
    return new ModelAndView("InternalUserTransactionCreation","command",new InternalUserTransaction());
  }
View Full Code Here

    InternalUserTransactionBO internalUserTransactionBO = (InternalUserTransactionBO)appContext.getBean("internalUserTransactionBO");

    internalUserTransactionBO.save(internalUserTransaction);

    return new ModelAndView("InternalUserTransactionCreation","command",new InternalUserTransaction());

  }
View Full Code Here

  @RequestMapping(value="/findInternalTransaction", method = RequestMethod.POST)
  public synchronized ModelAndView findtransactionbyid(@ModelAttribute("transaction") InternalUserTransaction transaction,
      BindingResult result) throws InternalException {
    ModelAndView modelAndView = new ModelAndView("findInternalTransaction");
    InternalUserTransaction transactionbyid = internalTransactionBO.findTransactionById(transaction.getTransId());
    System.out.println("transaction.getEmployeeId()"+ transactionbyid.getEmployeeId() + "transaction.getDescription()" + transactionbyid.getDescription()+"transaction.getTransId()" + transactionbyid.getTransId()+" transaction.getStatus()" +transactionbyid.getStatus());
    modelAndView.addObject("transactionbyid", transactionbyid);
    return modelAndView;
  }
View Full Code Here

    ApplicationContext appContext = new ClassPathXmlApplicationContext("spring/config/BeanLocations.xml");

    InternalUserTransactionBO internalUserTransactionBO = (InternalUserTransactionBO)appContext.getBean("internalUserTransactionBO");

    InternalUserTransaction internalTransaction = internalUserTransactionBO.findTransactionById(transId);

    return new ModelAndView("updateInternalTransaction","command",internalTransaction);

  }
View Full Code Here

  CreateInternalAccountBO intBo;

  @RequestMapping(method = RequestMethod.GET)
  public String initForm(ModelMap model){

    InternalUserTransaction transaction = new InternalUserTransaction();

    //command object
    model.addAttribute("transaction", transaction);

    //return form view
View Full Code Here

    InternalAccount currentuser = intBo.findUserByusername(name);

    if(currentuser.getDeptid() == 5){
      ModelAndView modelAndView = new ModelAndView("CompanyManagementTransactionCreation");

      InternalUserTransaction trans = new InternalUserTransaction();
      modelAndView.addObject("trans", trans);
      modelAndView.addObject("currentuser", currentuser);

      return modelAndView;
    } else{
View Full Code Here

      if(errors != "")
      {
        ModelAndView modelAndView = new ModelAndView("CompanyManagementTransactionCreation");
        modelAndView.addObject("currentuser", currentuser);

        InternalUserTransaction trans1 = new InternalUserTransaction();
        modelAndView.addObject("trans", trans1);

        modelAndView.addObject("errors", errors);

        return modelAndView;

      } else{

        trans.setStatus("approved");

        trans.setDeptId(5);//5:Schedule Meeting

        String res =  transactionBO.save(trans);

        if(res.matches("fail")){
          errors = errors + "Employee ID does'nt exist!";
          ModelAndView modelAndView = new ModelAndView("CompanyManagementTransactionCreation");
          modelAndView.addObject("currentuser", currentuser);

          InternalUserTransaction trans1 = new InternalUserTransaction();
          modelAndView.addObject("trans", trans1);

          modelAndView.addObject("errors", errors);

          return modelAndView;
View Full Code Here

    if(currentuser.getDeptid() == 5){
      ModelAndView modelAndView = new ModelAndView("CompanyManagementListMeetings");
      List<InternalUserTransaction> transactions = transactionBO.getDeptInternalUserTransactions(5); //5:Company Management
      System.out.println(transactions.listIterator());
      InternalUserTransaction trans = new InternalUserTransaction();
      modelAndView.addObject("transactions", transactions);
      modelAndView.addObject("trans", trans);
      modelAndView.addObject("currentuser", currentuser);
      return modelAndView;
    } else{
View Full Code Here

    String name = principal.getName();
    InternalAccount currentuser = intBo.findUserByusername(name);

    if(currentuser.getDeptid() == 5){

      InternalUserTransaction internalTransaction = transactionBO.findTransactionById(transaction.getTransId());
      ModelAndView modelAndView = new ModelAndView("CompanyManagementMeetingUpdate");

     
      modelAndView.addObject("internalTransaction", internalTransaction);
      modelAndView.addObject("currentuser", currentuser);
View Full Code Here

TOP

Related Classes of edu.asu.securebanking.model.InternalUserTransaction

Copyright © 2018 www.massapicom. 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.