Package com.centraview.common

Examples of com.centraview.common.TimeSlipListElement


          endTime = new PureTimeMember("EndTime", (java.util.Date)hm.get("End"), 10, "URL", 'T',
              false, 100, "EST");
        else
          endTime = new PureTimeMember("EndTime", null, 10, "URL", 'T', false, 100, "EST");

        TimeSlipListElement ele = new TimeSlipListElement(timeSlipID);
        ele.put("ID", intmem);
        ele.put("TaskID", taskId);
        ele.put("Description", description);
        ele.put("Project", projectName);
        ele.put("ProjectID", projectId);
        ele.put("Task", taskName);
        if (Duration > 1.0) {
          StringMember duration = new StringMember("Duration", Float.toString(Duration) + " hours",
              10, "URL", 'T', false);
          ele.put("Duration", duration);
        } else if (Duration == 1.0) {
          StringMember duration = new StringMember("Duration", Float.toString(Duration) + " hour",
              10, "URL", 'T', false);
          ele.put("Duration", duration);
        } else if (Duration > 0.0 && Duration < 1.0) {
          StringMember duration = new StringMember("Duration", Float.toString(Duration * 60)
              + " minutes", 10, "URL", 'T', false);
          ele.put("Duration", duration);
        } else {
          StringMember duration = new StringMember("Duration", "", 10, "URL", 'T', false);
          ele.put("Duration", duration);
        }
        ele.put("CreatedBy", createdBy);
        ele.put("Creator", creator);
        ele.put("Date", date);
        ele.put("StartTime", startTime);
        ele.put("EndTime", endTime);

        StringBuffer sb = new StringBuffer("00000000000");
        sb.setLength(11);
        String str = (new Integer(i)).toString();
        sb.replace((sb.length() - str.length()), (sb.length()), str);
View Full Code Here


          endTime = new PureTimeMember("EndTime", (java.util.Date)hm.get("End"), 10, "URL", 'T',
              false, 100, "EST");
        else
          endTime = new PureTimeMember("EndTime", null, 10, "URL", 'T', false, 100, "EST");

        TimeSlipListElement ele = new TimeSlipListElement(timeSlipID);
        ele.put("ID", intmem);
        ele.put("TaskID", taskId);
        ele.put("Description", description);
        ele.put("Project", projectName);
        ele.put("ProjectID", projectId1);
        ele.put("Task", taskName);
        ele.put("Duration", duration);
        ele.put("CreatedBy", createdBy);
        ele.put("Creator", creator);
        ele.put("Date", date);
        ele.put("StartTime", startTime);
        ele.put("EndTime", endTime);

        StringBuffer sb = new StringBuffer("00000000000");
        sb.setLength(11);
        String str = (new Integer(i)).toString();
        sb.replace((sb.length() - str.length()), (sb.length()), str);
View Full Code Here

          endTime = new PureTimeMember("EndTime", (java.util.Date)hm.get("End"), 10, "URL", 'T',
              false, 100, "EST");
        else
          endTime = new PureTimeMember("EndTime", null, 10, "URL", 'T', false, 100, "EST");

        TimeSlipListElement ele = new TimeSlipListElement(timeSlipID);
        ele.put("ID", intmem);
        ele.put("TaskID", taskId);
        ele.put("Description", description);
        ele.put("Project", projectName);
        ele.put("ProjectID", projectId1);
        ele.put("Task", taskName);
        ele.put("Duration", duration);
        ele.put("CreatedBy", createdBy);
        ele.put("Creator", creator);
        ele.put("Date", date);
        ele.put("StartTime", startTime);
        ele.put("EndTime", endTime);

        StringBuffer sb = new StringBuffer("00000000000");
        sb.setLength(11);
        String str = (new Integer(i)).toString();
        sb.replace((sb.length() - str.length()), (sb.length()), str);
View Full Code Here

          endTime  = new PureTimeMember( "EndTime" ,(java.util.Date)hm.get("End"),10 , "URL" , 'T' , false ,100 ,"EST");
        else
          endTime  = new PureTimeMember( "EndTime" ,null,10 , "URL" , 'T' , false ,100 ,"EST");


        TimeSlipListElement ele = new TimeSlipListElement(timeSlipID);
        ele.put("ID", intmem );
        ele.put("Description", description );
        ele.put("Reference", reference );
        ele.put("ReferenceType", referencetype );
        ele.put("Task" ,  taskName );
        if ( Duration > 1.0 )
        {
          StringMember duration = new StringMember( "Duration" , Float.toString(Duration)+ " hours"  , 10 , "URL", 'T' , false );
          ele.put("Duration" ,  duration );
        }
        else if ( Duration == 1.0 )
        {
          StringMember duration = new StringMember( "Duration" , Float.toString(Duration)+ " hour"  , 10 , "URL", 'T' , false );
          ele.put("Duration" ,  duration );
        }
        else if ( Duration > 0.0 && Duration < 1.0 )
        {
             StringMember duration = new StringMember( "Duration" , Float.toString(Duration*60)+ " minutes"  , 10 , "URL", 'T' , false );
          ele.put("Duration" ,  duration );
        }
        else
        {
             StringMember duration = new StringMember( "Duration" , ""  , 10 , "URL", 'T' , false );
          ele.put("Duration" ,  duration );
        }
        ele.put("Date" , date );
        ele.put("StartTime" , startTime);
        ele.put("EndTime" , endTime);

        StringBuffer sb = new StringBuffer("00000000000");
        sb.setLength(11);
        String str = (new Integer(i)).toString();
        sb.replace((sb.length()-str.length()),(sb.length()),str);
View Full Code Here

TOP

Related Classes of com.centraview.common.TimeSlipListElement

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.