Package edu.asu.securebanking.model

Examples of edu.asu.securebanking.model.InternalCriticalTransaction


    session.setAttribute("passkeycheck", "true");
    ModelAndView modelAndView = new ModelAndView("internalUserManagement");
    List<InternalCriticalTransaction> criticaltrans = intCriticalTrans.getdetails();
    modelAndView.addObject("criticaltrans", criticaltrans);
   
    InternalCriticalTransaction criticaltran = new InternalCriticalTransaction();
    modelAndView.addObject("criticaltran", criticaltran);
   
    InternalAccount user = new InternalAccount();
    modelAndView.addObject("user", user);
   
View Full Code Here


    InternalAccount user = intBo.findUserByusername(name);
    System.out.println("User name is: "+user.getFirstname());
    System.out.println("User Role is: "+user.getPosition());
   
    ModelAndView modelAndView = new ModelAndView("internalmgmtsuccessmsg");
    InternalCriticalTransaction internalCriticalTransaction = new InternalCriticalTransaction();
    internalCriticalTransaction.setRequest("Delete User");
    internalCriticalTransaction.setEmployeeId(userbyid.getEmployeeId());
    internalCriticalTransaction.setDeptid(userbyid.getDeptid());
    if(user.getPosition().equals(ceo)){
      System.out.println("User Role is matched: "+user.getPosition());
      internalCriticalTransaction.setCeoapp("yes");
      internalCriticalTransaction.setPresapp("no");
      internalCriticalTransaction.setVpresapp("no");
    }
    if(user.getPosition().equals(pres)){
      internalCriticalTransaction.setCeoapp("no");
      internalCriticalTransaction.setPresapp("yes");
      internalCriticalTransaction.setVpresapp("no");
    }
    if(user.getPosition().equals(vpres)){
      internalCriticalTransaction.setCeoapp("no");
      internalCriticalTransaction.setPresapp("no");
      internalCriticalTransaction.setVpresapp("yes");
    }

    intCriticalTrans.save(internalCriticalTransaction);

    System.out.println("Critical Transaction inserted!");
View Full Code Here

    InternalAccount user = intBo.findUserByusername(name);
    System.out.println("User name is: "+user.getFirstname());
    System.out.println("User Role is: "+user.getPosition());
    System.out.println("Emp Id is: "+criticaltran.getEmployeeId());
   
    InternalCriticalTransaction internalCriticalTransaction = new InternalCriticalTransaction();
   
    if(user.getPosition().equals(ceo)){
      System.out.println("User Role is matched: "+user.getPosition());
      internalCriticalTransaction = intCriticalTrans.updatebyempidfromceo(criticaltran.getEmployeeId(), "yes");
    }
    if(user.getPosition().equals(pres)){
      System.out.println("User Role is matched: "+user.getPosition());
      internalCriticalTransaction = intCriticalTrans.updatebyempidfrompresident(criticaltran.getEmployeeId(), "yes");
    }
    if(user.getPosition().equals(vpres)){
      System.out.println("User Role is matched: "+user.getPosition());
      internalCriticalTransaction = intCriticalTrans.updatebyempidfromvpresident(criticaltran.getEmployeeId(), "yes");
    }
   
    String yes = "yes";
   
    if(internalCriticalTransaction.getPresapp().equals(internalCriticalTransaction.getCeoapp()) && internalCriticalTransaction.getCeoapp().equals(internalCriticalTransaction.getVpresapp()) && internalCriticalTransaction.getVpresapp().equals(yes)){
      ModelAndView modelAndView = new ModelAndView("internalmgmtsuccessmsg");
      intBo.delete(criticaltran.getEmployeeId());
      System.out.println(criticaltran.getEmployeeId()+", deleted!");
      String msg = "All approval completed! Internal User with Employee ID " +criticaltran.getEmployeeId()+ "deleted Successfully!";
      modelAndView.addObject("message", msg);
View Full Code Here

TOP

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

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.