Package com.defaultcompany.web.gantt.model

Examples of com.defaultcompany.web.gantt.model.GanttChartModel


    boolean loggedUserIsMaster     = loggedUserIsAdmin && !org.uengine.util.UEngineUtil.isNotEmpty(loggedUserGlobalCom);
    String globalCom =    (String) session.getAttribute("loggedUserGlobalCom");
   
   
    GanttChartWebDAO ganttChartWebDao=null;
    GanttChartModel ganttChartModel=null;
    try{
      ganttChartWebDao = new GanttChartWebDAO(DefaultConnectionFactory.create());
      ganttChartWebDao.init(viewYear, endpoint, pd, globalCom, orderby, loggedUserIsMaster,strategyId);
      ganttChartModel = ganttChartWebDao.makeGanttChart();
   
   
      arg1.setContentType("text/html; charset=UTF-8");
      arg1.setHeader("Cache-Control", "no-cache");
     
      PrintWriter out = arg1.getWriter();
      out.write(type.equals("title")?ganttChartModel.ganttChartTitleToHTML(currentPage, intPageCnt):ganttChartModel.ganttChartListToHTML(currentPage, intPageCnt,viewMode));
     
      out.flush();
      out.close();
    }catch(Exception e){
      e.printStackTrace();
View Full Code Here


   
    //task.set("endpoint", endpoint);
    task.set("globalcom", globalCom);
    task.select();
   
    GanttChartModel ganttChartModel=new GanttChartModel();
    ganttChartModel.setEndpoint(getEndpoint());
    ganttChartModel.setFirstDate(getFirstDate());
    ganttChartModel.setFirstDayOfMonth(getFirstDayOfMonth());
    ganttChartModel.setLastDayOfMonth(getLastDayOfMonth());
    ganttChartModel.setGanntChartDao(task);
    ganttChartModel.setLastDate(getLastDate());
    ganttChartModel.setLoggedUserIsMaster(getLoggedUserIsMaster());
    ganttChartModel.setMonthOfNow(getMonthOfNow());
    ganttChartModel.setNowDate(getNowDate());
    ganttChartModel.setOrderby(getOrderby());
    ganttChartModel.setPd(getPd());
   
   
    return ganttChartModel;
  }
View Full Code Here

TOP

Related Classes of com.defaultcompany.web.gantt.model.GanttChartModel

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.