oForm.setStageid(new Integer(oVO.getStageID()).toString());
oForm.setStatusid(new Integer(oVO.getStatusID()).toString());
oForm.setSourcename(oVO.getSource());
if (oVO.getEstimatedClose() != null) {
Timestamp date = (Timestamp)oVO.getEstimatedClose();
String strMonth = String.valueOf(date.getMonth() + 1);
String strDay = String.valueOf(date.getDate());
String strYear = String.valueOf(date.getYear() + 1900);
oForm.setEstimatedcloseday(strDay);
oForm.setEstimatedclosemonth(strMonth);
oForm.setEstimatedcloseyear(strYear);
}
if (oVO.getActualclose() != null) {
Timestamp date = (Timestamp)oVO.getActualclose();
String strMonth = String.valueOf(date.getMonth() + 1);
String strDay = String.valueOf(date.getDate());
String strYear = String.valueOf(date.getYear() + 1900);
oForm.setActualcloseday(strDay);
oForm.setActualclosemonth(strMonth);
oForm.setActualcloseyear(strYear);
}
oForm.setOpportunitytypeid((new Integer(oVO.getOpportunityTypeID())).toString());
oForm.setProbabilityid((new Integer(oVO.getProbability())).toString());
DecimalFormat currencyFormat = new DecimalFormat("###,###,##0.00");
String actualAmount = currencyFormat.format(oVO.getActualAmount());
oForm.setTotalamount(actualAmount);
String forecast = currencyFormat.format(oVO.getForecastedAmount());
oForm.setForecastedamount(forecast);
if (oVO.getCreateddate() != null) {
Timestamp date = (Timestamp)oVO.getCreateddate();
String strMonth = String.valueOf(date.getMonth() + 1);
String strDay = String.valueOf(date.getDate());
String strYear = String.valueOf(date.getYear() + 1900);
String strHours = String.valueOf(date.getHours());
String strMins = String.valueOf(date.getMinutes());
int hhmm[] = new int[2];
hhmm[0] = Integer.parseInt(strHours.trim());
hhmm[1] = Integer.parseInt(strMins.trim());
String strTime = CVUtility.convertTime24HrsFormatToStr(hhmm);
oForm.setCreateddate(strMonth + "/" + strDay + "/" + strYear + " - " + strTime + " ");
}
if (oVO.getModifieddate() != null) {
Timestamp date = (Timestamp)oVO.getModifieddate();
String strMonth = String.valueOf(date.getMonth() + 1);
String strDay = String.valueOf(date.getDate());
String strYear = String.valueOf(date.getYear() + 1900);
String strHours = String.valueOf(date.getHours());
String strMins = String.valueOf(date.getMinutes());
int hhmm[] = new int[2];
hhmm[0] = Integer.parseInt(strHours.trim());
hhmm[1] = Integer.parseInt(strMins.trim());
String strTime = CVUtility.convertTime24HrsFormatToStr(hhmm);