Package Entities

Examples of Entities.Approvalchain


         //FinalFinance
         finalFinance = accHandler.findSpecificAccount("FinalFinance");
         finalComplete = 0;
         finalApprFK = appr5;
        
         apprChainRef = new Approvalchain();
        
         apprChainRef.setAccountid(accHandler.getAccount(accountID));
         apprChainRef.setApplicationcomplete(appComplete);
         apprChainRef.setApplicationid(appRef);
         //School Admin
View Full Code Here


    //    }
    @Override
    public String updateApproval(Approval approval) {

        List<Approvalchain> chainList = appcfl.findAll();
        Approvalchain chain = null;

        for (Approvalchain each : chainList) {
            if (approval.getApplicationIdapplication().equals(each.getApplicationid())) {
                chain = each;
            }
        }
       
        daoApproval.edit(approval);
       
        String nextAcc = "";
       
        if (chain != null) {
            if (chain.getSchooladmincomplete() != 1) {
                chain.setSchooladmincomplete(1);
                nextAcc = chain.getHod().getUsername();
            } else if (chain.getHodcomplete() != 1) {
                chain.setHodcomplete(1);
                nextAcc = chain.getFinance().getUsername();
            } else if (chain.getFinancecomplete() != 1) {
                chain.setFinancecomplete(1);
                nextAcc = chain.getPvc().getUsername();
            } else if (chain.getPvccomplete() != 1) {
                chain.setPvccomplete(1);
                nextAcc = chain.getFinalfinance().getUsername();
            } else if (chain.getFinalcomplete() != 1) {
                chain.setFinalcomplete(1);
                nextAcc = chain.getApplicationid().getAccountIdaccount().getUsername();
            }
        }


        return nextAcc;
View Full Code Here

         //FinalFinance
         finalFinance = accHandler.findSpecificAccount("FinalFinance");
         finalComplete = 0;
         finalApprFK = appr5;
        
         apprChainRef = new Approvalchain();
        
         apprChainRef.setAccountid(accHandler.getAccount(accountID));
         apprChainRef.setApplicationcomplete(appComplete);
         apprChainRef.setApplicationid(appRef);
         //School Admin
View Full Code Here

    //    }
    @Override
    public String updateApproval(Approval approval) {
       
        List<Approvalchain> chainList = appcfl.findAll();
        Approvalchain chain = null;
       
        for (Approvalchain each : chainList) {
            if (approval.getApplicationIdapplication().equals(each.getApplicationid())) {
                chain = each;
            }
        }
       
        daoApproval.edit(approval);
       
        String nextAcc = "";
       
        if (chain != null) {
            if (chain.getSchooladmincomplete() != 1) {
                chain.setSchooladmincomplete(1);
                nextAcc = chain.getHod().getUsername();
            } else if (chain.getHodcomplete() != 1) {
                chain.setHodcomplete(1);
                nextAcc = chain.getFinance().getUsername();
            } else if (chain.getFinancecomplete() != 1) {
                chain.setFinancecomplete(1);
                nextAcc = chain.getPvc().getUsername();
            } else if (chain.getPvccomplete() != 1) {
                chain.setPvccomplete(1);
                nextAcc = chain.getFinalfinance().getUsername();
            } else if (chain.getFinalcomplete() != 1) {
                chain.setFinalcomplete(1);
                nextAcc = chain.getApplicationid().getAccountIdaccount().getUsername();
            }
        }
       
       
        return nextAcc;
View Full Code Here

    //    }
    @Override
    public String updateApproval(Approval approval) {
       
        List<Approvalchain> chainList = appcfl.findAll();
        Approvalchain chain = null;
       
        for (Approvalchain each : chainList) {
            if (approval.getApplicationIdapplication().equals(each.getApplicationid())) {
                chain = each;
            }
        }
       
        daoApproval.edit(approval);
       
        String nextAcc = "";
       
        if (chain != null) {
            if (chain.getSchooladmincomplete() != 1) {
                chain.setSchooladmincomplete(1);
                nextAcc = chain.getHod().getUsername();
            } else if (chain.getHodcomplete() != 1) {
                chain.setHodcomplete(1);
                nextAcc = chain.getFinance().getUsername();
            } else if (chain.getFinancecomplete() != 1) {
                chain.setFinancecomplete(1);
                nextAcc = chain.getPvc().getUsername();
            } else if (chain.getPvccomplete() != 1) {
                chain.setPvccomplete(1);
                nextAcc = chain.getFinalfinance().getUsername();
            } else if (chain.getFinalcomplete() != 1) {
                chain.setFinalcomplete(1);
                nextAcc = chain.getApplicationid().getAccountIdaccount().getUsername();
            }
        }
       
       
        return nextAcc;
View Full Code Here

        //FinalFinance
        finalFinance = accHandler.findSpecificAccount("FinalFinance");
        finalComplete = 0;
        finalApprFK = appr5;

        apprChainRef = new Approvalchain();

        apprChainRef.setAccountid(accHandler.getAccount(accountID));
        apprChainRef.setApplicationcomplete(appComplete);
        apprChainRef.setApplicationid(appRef);
        //School Admin
View Full Code Here

         //FinalFinance
         finalFinance = accHandler.getAccount(7);
         finalComplete = 0;
         finalApprFK = appr5;
        
         apprChainRef = new Approvalchain();
        
         apprChainRef.setAccountid(accHandler.getAccount(accountID));
         apprChainRef.setApplicationcomplete(appComplete);
         apprChainRef.setApplicationid(appRef);
         //School Admin
View Full Code Here

TOP

Related Classes of Entities.Approvalchain

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.