/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package accessControl;
import EntityBean.Users;
import SessionBean.UsersSSBLocal;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import helper.operationSession;
/**
*
* @author Huynh Kim Toan
*/
@ManagedBean(name = "SrcMember")
@RequestScoped
public class beanSrsMember {
@EJB
private UsersSSBLocal loginFacade;
/** Creates a new instance of beanSrsMember */
public beanSrsMember() {
}
public String changPass()
{
return "/member/changPass";
}
public String Info()
{
Users login = this.loginFacade.getUserID((String) operationSession.layGTSession("user"));
// Member1 member = this.member1Facade.getAllMember(login.getUserID());
if(login == null)
{
return "/member/CreateInfomation";
}else
{
return "/member/ViewInfomation";
}
}
public String manageEvent()
{
return "/member/viewEvent";
}
public String viewEnrollEvent()
{
return "/member/ViewEventEnroll";
}
}