PureDateMember startdate= new PureDateMember( "StartDate" ,(java.util.Date)hm.get("StartDate"),10 , "URL" , 'T' , false ,100 ,"EST");
PureDateMember enddate = new PureDateMember( "EndDate" ,(java.util.Date)hm.get("EndDate"),10 , "URL" , 'T' , false ,100 ,"EST");
StringMember cname = new StringMember( "CreatedBy", CreatedBy ,10 , "" , 'T' , true );
TimeSheetListElement ele = new TimeSheetListElement(TimeSheetId );
ele.put( "ID", intmem );
ele.put( "EmployeeID", new IntMember( "EmployeeID" , ((Long)hm.get("EmpIndvidualID")).intValue() , 10 , "", 'T' , false , 10 ));
ele.put( "Employee", sname );
ele.put( "StartDate", startdate );
ele.put( "EndDate", enddate );
//FloatMember duration= new FloatMember( "Duration", new Float(Duration) ,10 , "" , 'T' , false , 10 );
StringMember duration = null;
if ( Duration > 1.0 )
{
duration = new StringMember( "Duration" , Float.toString(Duration)+ " hours" , 10 , "URL", 'T' , false );
}
else if ( Duration == 1.0 )
{
duration = new StringMember( "Duration" , Float.toString(Duration)+ " hour" , 10 , "URL", 'T' , false );
}
else if ( Duration > 0.0 && Duration < 1.0 )
{
duration = new StringMember( "Duration" , Float.toString(Duration*60)+ " minutes" , 10 , "URL", 'T' , false );
}
else
{
duration = new StringMember( "Duration" , "" , 10 , "URL", 'T' , false );
}
ele.put( "Duration", duration );
ele.put( "Creator", new IntMember( "Creator" , ((Long)hm.get("Creator")).intValue() , 10 , "", 'T' , false , 10 ));
ele.put( "CreatedBy", cname );
StringBuffer sb = new StringBuffer("00000000000");
sb.setLength(11);
String str = (new Integer(i)).toString();