Package Business

Examples of Business.business


        telephone = login.getTelephone();
        birth = login.getDayofbirth();
    }

    public void updateInformation() {
        this.login = new business().getLoginFacade().getUserID(getUsername());
        int userID = login.getUserID();
        if(fullname.length() < 6)
        {
              messages.taoTB(FacesMessage.SEVERITY_ERROR, "Full Name must be greater than 6 characters", "error");
        }else if(city.length() < 6)
        {
            messages.taoTB(FacesMessage.SEVERITY_ERROR, "City must be greater than 6 characters", "error");
        }else if(address.length()<6)
        {
              messages.taoTB(FacesMessage.SEVERITY_ERROR, "Address must be greater than 6 characters", "error");
        }else if(email.length()<6)
        {
            messages.taoTB(FacesMessage.SEVERITY_ERROR, "Email must be greater than 6 characters !", "error");
        }else{
        if(login != null)
        {
            String mail=email+variableEmail;
        login.setFullname(fullname);
        login.setDayofbirth(birth);
        login.setGender(gender);
        login.setCity(city);
        login.setAddress(address);
        login.setCardnumber(card);
        login.setTelephone(telephone);
        login.setEmail(mail);
            new business().getLoginFacade().edit(login);
              messages.taoTB(FacesMessage.SEVERITY_INFO, "Update Successfull !", "Successfull");
        }
      }
    }
View Full Code Here


    }

    public String allInvolve() {
        title = titleEvent;
        operationSession.ganGiaTriChoSession("tieude", title);
        this.login = new business().getLoginFacade().getUserID((String) operationSession.layGTSession("user"));
        if (this.login.getRoles().equals("admin")) {
            return "/admin/viewInvolve";
        } else {
            return "/staff/viewInvolve";
        }
View Full Code Here

            return "/staff/viewInvolve";
        }
    }

    public List<Enroll> getListInvolve() {
        lstInvolve = new business().getInvolveFacade().getListEnroll((String) operationSession.layGTSession("tieude"));
        return lstInvolve;
    }
View Full Code Here

    public List<Enroll> getListInvolve() {
        lstInvolve = new business().getInvolveFacade().getListEnroll((String) operationSession.layGTSession("tieude"));
        return lstInvolve;
    }
    public List<Enroll> getListInvolveByMemberAndTitle() {
        this.login = new business().getLoginFacade().getUserID((String) operationSession.layGTSession("user"));
        lstInvolve = new business().getInvolveFacade().getEnrollUser( login.getUserID());
        return lstInvolve;
    }
View Full Code Here

TOP

Related Classes of Business.business

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.