calendarplan custom control

43
CalendarPlan Custom Control Calendar schedule chart Gantt chart

Upload: guido

Post on 19-Jan-2016

38 views

Category:

Documents


0 download

DESCRIPTION

CalendarPlan Custom Control. Calendar schedule chart Gantt chart. About the Project. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: CalendarPlan Custom Control

CalendarPlan Custom Control

Calendar schedule chart

Gantt chart

Page 2: CalendarPlan Custom Control

About the Project

CalendarPlan is a ready-to-use custom control for planning projects schedule with Dojo fast and easy. It consists of two custom controls. They are: ccCalendar (with ccSelectParameters) which is used to show projects filtered by special parameters on selected day, and ccGantt which demonstrates the sequence of projects, their durations and responsible persons.

Page 3: CalendarPlan Custom Control

Select Chart

/CalendarPlan.nsf/FirstXPage.xsp

Page 4: CalendarPlan Custom Control

Calendar Chart

A Calendar chart is used to display months of the year with marked days when projects were planned. If you click on the day on which projects were assigned, on the right there will appear the date, a list of planned tasks and responsible persons.

In the Filter Settings you can choose the following parameters: - person name - person surname - task type - task name - start date - year - quantity on months

This custom control can be used for social, commercial, or administrative purposes.

Page 5: CalendarPlan Custom Control

Calendar Chart Properties You can control the following Calendar chart properties:

- server name - database name - view name (required field) - disabled task type (if you want to mark f.e. holidays as

disabled) - disable weekends (if you wish to indicate weekends as

disabled) - project style (“ProjectStyle1”, “ProjectStyle2”,

“ProjectStyle3”, required field, used to mark days when projects were scheduled, these styles are declared in MarkDays.css)

If server name or database name is not defined, the view would be taken from the current database.

Page 6: CalendarPlan Custom Control

Document Fields

The documents in the view you specified must have such fields:PersonNamePersonSurnameTaskTypeTaskNameStartDateDurationTaskID

Page 7: CalendarPlan Custom Control

Filter Settings for Calendar Chart Select person name, person surname, task type and

task name from the lists.

Page 8: CalendarPlan Custom Control

Filter Settings for Calendar Chart

Select quantity of months

Page 9: CalendarPlan Custom Control

Filter Settings for Calendar Chart Select year. There is the current year, two previous years and

two next years in the list.

Page 10: CalendarPlan Custom Control

Filter Settings for Calendar Chart You can use <Previous> and <Next> buttons to choose year

which is not shown in the list.

Page 11: CalendarPlan Custom Control

Filter Settings for Calendar Chart

Use <Show> and <Hide> buttons to control Filter Settings. <Refresh> button is used to show calendar.

Page 12: CalendarPlan Custom Control

Calendar Chart

Page 13: CalendarPlan Custom Control

Calendar Chart Description

Hereinabove you can see projects marked with blue squares, vacations marked as disabled date and noted weekends. 12 month have been selected. The current month is always situated in the centre of calendar.

Page 14: CalendarPlan Custom Control

Calendar Chart Click on the marked day and see projects on this day (f. e. the 12th of

August is selected)

Page 15: CalendarPlan Custom Control

Calendar Chart, ProjectStyle parameter

You can use ProjectStyle parameter of the ccSelectParameters custom control to mark days in calendar when projects are scheduled.

If dojo 1.4.3 is installed at your server, use such name of the style to indicate that ProjectStyle=ProjectStyle1

dojoxCalendar td.dijitCalendarCurrentProjectStyle1

For dojo 1.6.1 simply use ProjectStyle in style sheet definition to set ProjectStyle=ProjectStyle

MarkDays.css

dojoxCalendar td.dijitCalendarCurrentProjectStyle1 { background-color: #B9CBF1 !important; color: blue; border:#2222c8 solid 1px !important; font-size: 12px; } .dojoxCalendar td.dijitCalendarCurrentProjectStyle2 { background-color: #bc93d1 !important; color: 4c0b55; border:#5b0570 solid 1px !important; font-family: tahoma, verdana, helvetica; font-size: 12px; } .dojoxCalendar td.dijitCalendarCurrentProjectStyle3 { background-color: #98FB98 !important; color: green; border:#006400 solid 1px !important; font-family: tahoma, verdana, helvetica; font-size: 11px; font-weight: bold; } .ProjectStyle { color: blue; border:#2222c8 solid 1px !important; }

Page 16: CalendarPlan Custom Control

Calendar Chart

Page 17: CalendarPlan Custom Control

Deployment of Calendar Chart

To deploy Calendar Chart into your project you need to put this custom control on your xPage. Add ccCalendar and ccSelectParameters to the custom controls of your application. Add style sheets calendars.css and MarkDays.css.

Page 18: CalendarPlan Custom Control

Gantt Chart

A Gantt chart is a type of bar chart that illustrates a project schedule. Gantt charts illustrate the start and finish dates of the terminal elements and summary elements of a project. Terminal elements and summary elements comprise the work breakdown structure of the project.

Page 19: CalendarPlan Custom Control

Gantt Chart Properties

You can control the following Gantt Chart properties: - server name - database name - view name (required field) - sorting (allow multiple instances)

parameter name (id, name, startTime, duration, percentage, taskOwner, previousTaskId)

sort type (ascending, descending) sort order (1, 2, 3, …)

If server name or database name is not defined, the view would be taken from the current database.

Initial task in the project tree is the first task got after sorting.

Page 20: CalendarPlan Custom Control

Document Fields

The documents in the view you specified must have such fields: PersonName PersonSurname TaskType TaskName StartDate Duration (quantity of days) Percentage PreviousTaskID TaskID

Page 21: CalendarPlan Custom Control

Gantt chart

Page 22: CalendarPlan Custom Control

Gantt Chart Parameters

GanttChart (dojox.gantt.GanttChart) is an integrated widget for project and resource management. It includes a set of feature as follows. Toolbar - Providing general time line control and

save/load button. Project Tree - Listing projects and their tasks. Task Cascade View - A task view with dependency, that

can be modified visually. Resource View - A read-only view shows people

resource occupation.

Page 23: CalendarPlan Custom Control

Gantt Chart Toolbar

Gantt chart toolbar provides some handy controls like zooming time line time zone, and save/load button for gantt chart data.

Page 24: CalendarPlan Custom Control

Enlarge timeline Enlarge Time Line: it shows a more accurate time line when it enlarged.

Page 25: CalendarPlan Custom Control

Shrink timeline Shrink Time Line: it shows a more general time line when it shrink.

Page 26: CalendarPlan Custom Control

Zoom in time zone (microscope view)

Zoom in Time Zone.

Page 27: CalendarPlan Custom Control

Zoom out time zone (telescope view)

Zoom out Time Zone.

Page 28: CalendarPlan Custom Control

Save gantt data to json file

Page 29: CalendarPlan Custom Control

Load gantt data from json file

Page 30: CalendarPlan Custom Control

Gantt Chart Project Tree

Project tree shows all the projects and their tasks, each task has a visual bar in task cascade view in the same row. It shows the task menu when task item is hovered. The menu lists many functionality of task.

Page 31: CalendarPlan Custom Control

Gantt Chart Task Cascade View

The task cascade view shows the task sequence and dependency between them. The "task bar" can be modified on starting time by moving horizontally, and set task duration by dragging the right end of it.

Page 32: CalendarPlan Custom Control

Gantt Chart Resource View

Resource view shows the people resource occupation and the what task the resource occupied to. The following image indicates the Bill's (Gillian’s) resource occupation, the lighter blue bar shows the resource occupation on relevant task.

Page 33: CalendarPlan Custom Control

Deployment of Gantt Chart

To deploy Gantt Chart into your project you need to put this custom control on your xPage. Add style sheets claro.css and gantt.css that could be find in the dojo folder (or in this application) to the resources. Add images from the same place to the resources of your project.

Page 34: CalendarPlan Custom Control

Used Style Sheets and Images

\dojox\gantt\resources\gantt.css\dijit\themes\claro\claro.css\dojox\gantt\resources\images\

Page 35: CalendarPlan Custom Control

Dojo on the Server

On your server must be installed: \dojox\gantt\GanttChart.js \dojox\gantt\GanttProjectItem.js \dojox\gantt\GanttResourceItem.js \dojox\gantt\GanttTaskItem.js \dojox\gantt\TabMenu.js

If on the server you have earlier version of dojo that doesn’t contain dojox.gantt.GanttChart simply copy folder \dojox\gantt\ from dojo version 1.6.1 which can be find at http://dojotoolkit.org/ (licensed under the Dojo license at http://bugs.dojotoolkit.org/browser/dojo/trunk/LICENSE)

Page 36: CalendarPlan Custom Control

Internet Java Script resources

Alternative way is using Java Script libraries from the Internet (not used in this project).

Page 37: CalendarPlan Custom Control

Internet Java Script Resources

http://ajax.googleapis.com/ajax/libs/dojo/1.6/dojox/gantt/GanttChart.xd.js

http://ajax.googleapis.com/ajax/libs/dojo/1.6/dojo/parser.xd.js

http://ajax.googleapis.com/ajax/libs/dojo/1.6/dojo/data/ItemFileReadStore.xd.js

http://ajax.googleapis.com/ajax/libs/dojo/1.6/dojo/dojo.xd.js

Page 38: CalendarPlan Custom Control

Script Libraries in the Project

Of course you can copy code from the specified links, create your own Java Script Library, paste the code there and than attach it to the project (not used in this project).

Page 39: CalendarPlan Custom Control

Gantt Chart Additional Files

To save gantt data to json file you need to add file saveGanttData.php to the project. You can find it in dojo folder: \dojox\gantt\tests\ saveGanttData.php

To load gantt data from json file you need to add file gantt_default.json to the project. Simply create new empty file.

Page 40: CalendarPlan Custom Control

System requirements

This project was tested on such system:Windows server 2003Lotus Domino Server 8.5.2Fix pack 1, fix pack 2, fix pack 3dojo-1.4.3 (catalog gantt was copied from

dojo version 1.6.1)Mozilla Firefox 5.0.1

Page 41: CalendarPlan Custom Control

Restrictions

If you select 12 month (maximum value) in Filter Settings of the ccSelectParameters, script execution in your Web Browser takes much more time.

This application may not run at the local machine, replicate it to the server and test there.

Don’t replace entire folder dojo-1.4.3 with the folder dojo-1.6.1. The project may not work.

Page 42: CalendarPlan Custom Control

Video

Find this project on YouTube. http://www.youtube.com/watch?v=av84VOqwIdI

Page 43: CalendarPlan Custom Control

Contact

If you have any questions, please contact us. Kateryna Czerniachowska [email protected] Grzegorz Pawlak [email protected]