Package com.centraview.projects.project

Examples of com.centraview.projects.project.ProjectForm


   *
   * @param   form  ActionForm
   */
  public ProjectVOX(String TimeZone, ActionForm form)
  {
    ProjectForm projectForm = (ProjectForm)form;   
     
    //get all form values in local variable
    //to be removed after debug and change for long
    String title         = projectForm.getTitle();
    String description      = projectForm.getDescription();
    String entity         = projectForm.getEntity();   
    String contact         = projectForm.getContact();
    String manager         = projectForm.getManager();
    String team           = projectForm.getTeam();
    /*
    String customField1     = (String)dynaForm.get("CustomField1");
    String customField2     = (String)dynaForm.get("CustomField2");
    String customField3     = (String)dynaForm.get("CustomField3");
    */
    //int Status           = projectForm.getStatus();
    int budhr           = Integer.parseInt(projectForm.getBudhr());
    if (projectForm.getStartday() != null && !projectForm.getStartday().equals(""))
    {
      int startday         = Integer.parseInt(projectForm.getStartday());
      int startmonth         = Integer.parseInt(projectForm.getStartmonth()) - 1;
      int startyear         = Integer.parseInt(projectForm.getStartyear());
      setStart
      (
        CVUtility.convertTimeZone
        (
          new java.sql.Date(startyear,startmonth,startday),
          java.util.TimeZone.getTimeZone(TimeZone),
          java.util.TimeZone.getTimeZone("EST")         
        )       
      );
    }
    if (projectForm.getEndday() != null && !projectForm.getEndday().equals(""))
    {
      int endday           = Integer.parseInt(projectForm.getEndday());
      int endmonth         = Integer.parseInt(projectForm.getEndmonth()) - 1;
      int endyear         = Integer.parseInt(projectForm.getEndyear())
      setEnd
      (
        CVUtility.convertTimeZone
        (
          new java.sql.Date(endyear,endmonth,endday),
          java.util.TimeZone.getTimeZone(TimeZone),
          java.util.TimeZone.getTimeZone("EST"
        )
      );
    }
    int projectid         = projectForm.getProjectid()
       
   
    setTitle(title);
    setDescription(description);
   
    /*if(status.equals(""))
      status="-1";
      */
  //  setStatusID(Status);
    setProjectID(projectid);
   
    /*
    if(startyear != 0) 
      setStart(new java.sql.Date(startyear,startmonth,startday));
    if(endyear != 0)   
      setEnd(new java.sql.Date(endyear,endmonth,endday));
    */
    if(!entity.equals("")) 
    {
      setEntityID(projectForm.getEntityid());   
    }
    if(budhr != 0)
      setBudgetedHours(budhr);       

    if(!manager.equals(""))
    {
      setManagerID(projectForm.getManagerID());
    }
    if(!projectForm.getStatus().equals("")) 
      setStatusID(Integer.parseInt(projectForm.getStatus()));
    if(projectForm.getTeamID()!=0
      setGroupID(projectForm.getTeamID());
    if(projectForm.getContactID()!=0
      setContactID(projectForm.getContactID());
   
   
      
       
   
View Full Code Here

TOP

Related Classes of com.centraview.projects.project.ProjectForm

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.