ProjectFacadeHome pfh = (ProjectFacadeHome)
CVUtility.getHomeObject("com.centraview.projects.projectfacade.ProjectFacadeHome", "ProjectFacade");
try
{
ProjectFacade remote = (ProjectFacade) pfh.create();
remote.setDataSource(dataSource);
projectVO = remote.getProject(Integer.parseInt(rowId), individualID);
dynaForm.setProjectid(Integer.parseInt(rowId));
request.setAttribute("recordId", String.valueOf(rowId));
if (projectVO.getEntityID() != 0)
{
dynaForm.setEntity(projectVO.getEntityName());
dynaForm.setEntityid(projectVO.getEntityID());
request.setAttribute("parentId", String.valueOf(projectVO.getEntityID()));
request.setAttribute("parentName", java.net.URLEncoder.encode(projectVO.getEntityName(), "ISO-8859-1"));
}
if (projectVO.getContactID() != 0)
{
dynaForm.setContact(projectVO.getContactName());
dynaForm.setContactID(projectVO.getContactID());
}
if (projectVO.getGroupID() != 0)
{
dynaForm.setTeam(projectVO.getGroupName());
dynaForm.setTeamID(projectVO.getGroupID());
}
if (projectVO.getTitle() != null)
{
String projectTitle = projectVO.getTitle();
request.setAttribute("recordName", projectTitle);
dynaForm.setTitle(projectTitle);
}
if (projectVO.getDescription() != null)
{
dynaForm.setDescription(projectVO.getDescription());
}
if (projectVO.getEntityName() != null)
{
dynaForm.setEntity(projectVO.getEntityName());
}
if (projectVO.getContactName() != null)
{
dynaForm.setContact(projectVO.getContactName());
}
if (projectVO.getManagerID() != 0)
{
dynaForm.setManager(projectVO.getManager());
dynaForm.setManagerID(projectVO.getManagerID());
}
if (projectVO.getGroupName() != null)
{
dynaForm.setTeam(projectVO.getGroupName());
}
if (projectVO.getStart() != null)
{
Calendar calendar = Calendar.getInstance();
calendar.setTime(projectVO.getStart());
dynaForm.setStartday(String.valueOf(calendar.get(Calendar.DAY_OF_MONTH)));
dynaForm.setStartmonth(String.valueOf((calendar.get(Calendar.MONTH) + 1)));
dynaForm.setStartyear(String.valueOf(calendar.get(Calendar.YEAR)));
}
if (projectVO.getEnd() != null)
{
Calendar calendar = Calendar.getInstance();
calendar.setTime(projectVO.getEnd());
dynaForm.setEndday(String.valueOf(calendar.get(Calendar.DAY_OF_MONTH)));
dynaForm.setEndmonth(String.valueOf((calendar.get(Calendar.MONTH) + 1)));
dynaForm.setEndyear(String.valueOf(calendar.get(Calendar.YEAR)));
}
Vector statusCol = remote.getProjectStatusList();
dynaForm.setProjectStatusVec(statusCol);
if (projectVO.getBudgetedHours() != 0)
{
iBudHrs = projectVO.getBudgetedHours();