You need to sign in to do that
Don't have an account?
vivek singh 26
How we make its tracker please reply
public with sharing class clsNoticeToQuit {
public boolean ShowHQ {get; set;}
public boolean HideHQ {get; set;}
public Date dDate {get; set;}
public UserRole objUserRole {get; set;}
public clsNoticeToQuit(ApexPages.StandardController controller)
{
if(ApexPages.currentPage().getParameters().get('dd')!=null){
dDate = Date.valueOf(ApexPages.currentPage().getParameters().get('dd'));
}
string RoleId = UserInfo.getUserRoleId();
objUserRole = [Select u.Id, u.Name from UserRole u where id =:RoleId];
if(objUserRole.Name == 'L4L HQ Partner Manager' || objUserRole.Name=='CEO')
{
ShowHQ = true;
HideHQ = false;
}
else
{
ShowHQ = false;
HideHQ = true;
}
}
public boolean ShowHQ {get; set;}
public boolean HideHQ {get; set;}
public Date dDate {get; set;}
public UserRole objUserRole {get; set;}
public clsNoticeToQuit(ApexPages.StandardController controller)
{
if(ApexPages.currentPage().getParameters().get('dd')!=null){
dDate = Date.valueOf(ApexPages.currentPage().getParameters().get('dd'));
}
string RoleId = UserInfo.getUserRoleId();
objUserRole = [Select u.Id, u.Name from UserRole u where id =:RoleId];
if(objUserRole.Name == 'L4L HQ Partner Manager' || objUserRole.Name=='CEO')
{
ShowHQ = true;
HideHQ = false;
}
else
{
ShowHQ = false;
HideHQ = true;
}
}
bob_buzzard
Can you clarify what you mean by 'its tracker' ? That doesn't mean anything to me I'm afraid.