Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #-----
- # Simple project example for TaskJuggler 3
- # Based heavily on the tutorial project distributed with TaskJuggler, but
- # stripped to a minimum to serve as a starting point for learning TJ3.
- #-----
- # The project; most of the settings for the project have defaults, but
- # here we will override those defaults with US-based settings for
- # how stuff gets displayed:
- project prj "Siena" 2012-04-01 +2m {
- # Timezone (defaults to UTC):
- timezone "Europe/Paris"
- scenario plan "planned scenario" {
- scenario test "tested scenario" {
- }
- scenario delayed "tested scenario" {
- }
- }
- trackingscenario plan
- # Hide the clock time; only show the date:
- #timeformat "%d-%m-%Y"
- #include il file. tji
- # Use US format for numbers:
- numberformat "-" "" "," "." 1
- # Use US financial format for currency values; don't show cents:
- currencyformat "(" ")" "," "." 0
- #-----------------------------------------------
- # workinghours sun off
- # workinghours mon 9:00 - 13:00, 14:00 - 18:00
- # workinghours tue 9:00 - 13:00, 14:00 - 18:00
- # workinghours wed 9:00 - 13:00, 14:00 - 18:00
- # workinghours thu 9:00 - 13:00, 14:00 - 18:00
- # workinghours fri 9:00 - 13:00, 14:00 - 18:00
- # workinghours sat off
- #-------------------------------------------
- # Use US dollars for the currency (defaults to euros):
- currency "USD"
- #---------------creo i campi Phone e cane da utilizzare nelle risorse per provare come si creano i campi
- extend resource {
- text Phone "Phone"
- }
- extend resource {
- text Cane "cane"
- }
- }
- #------------------------resource-------------------------------------------
- # Default daily rate for all resources:
- # rate 100.0
- # Resources:
- resource sviluppo "sviluppo" {
- # managers boss
- resource boss "Massimo Ferretti" {
- email "jguardiola@fcb.com"
- Phone "2346"
- Cane "bau"
- rate 100.0
- }
- resource r1 "Renato" {
- managers boss
- email "renato.pontefice@gruppoinit.it"
- Phone "246"
- Cane "bau"
- rate 100.0
- }
- resource r2 "pippo" {
- managers boss
- email "jguardiola@fcb.com"
- Phone "2346"
- Cane "bio"
- rate 100.0
- }
- resource r3 "pluto" {
- managers boss
- email "pluto@fcb.com"
- Phone "2346"
- Cane "bio"
- rate 100.0
- }
- }
- #--------------------------------------tasks---------------------
- # Work breakdown structure:
- task start "Project start" {
- # A task that has no duration is a milestone. It only needs a
- # start or end criterion. All other tasks depend on this task.
- # Here we use the built-in macro ${projectstart} to align the
- # start of the task with the above specified project time frame.
- start ${projectstart}
- # For some reason the actual start of the project got delayed.
- # We record this, so that we can compare the planned run to the
- # delayed run of the project.
- #delayed:start 2012-04-20
- # At the beginning of this task we receive a payment from the
- # customer. This is credited to the account associated with this
- # task when the task starts.
- # charge 21000.0 onstart
- }
- #task rac "Siena" {
- task t1 "INCONTRO" {
- # Effort to finish this task:
- effort 5d
- # duration 5d
- # Start date (using the built-in macro for the project start):
- start 2012-04-02
- # Resource allocation:
- allocate boss
- #complete 50
- scheduling asap
- booking boss 2012-04-02-09:00 +8.0h,
- 2012-04-03-09:00 +8.0h,
- 2012-04-04-09:00 +8.0h,
- 2012-04-05-09:00 +8.0h,
- 2012-04-06-09:00 +8.0h
- }
- task t2 "pianificazione" {
- # Effort to finish this task:
- effort 5d
- depends !t1
- start 2012-04-09
- # Start date (using the built-in macro for the project start):
- # Resource allocation:
- allocate r1
- scheduling asap
- booking r1 2012-04-09-09:00 +8.0h,
- # 2012-04-9-09:00 +8.0h,
- 2012-04-10-09:00 +8.0h,
- 2012-04-11-09:00 +8.0h,
- 2012-04-12-09:00 +8.0h,
- 2012-04-13-09:00 +8.0h
- # booking r1 2012-04-09-09:00 +9h { sloppy 1 }
- # epilog "epilogo"
- }
- task t3 "Lavoro" {
- depends !t2
- # Effort to finish this task:
- # effort 5d
- # Start date (using the built-in macro for the project start):
- # Resource allocation:
- # allocate r2,r3
- # start %{2011-11-25 + 5d}
- # booking r2 2012-04-16-09:00 +8.0h,
- # 2012-04-16-09:00 +8.0h,
- # 2012-04-17-09:00 +8.0h,
- # 2012-04-18-09:00 +8.0h,
- # 2012-04-19-09:00 +8.0h,
- # 2012-04-20-09:00 +8.0h
- task t3_1 "documenti" {
- #depends !t3
- # Effort to finish this task:
- effort 5d
- # Start date (using the built-in macro for the project start):
- # Resource allocation:
- allocate r2,r3
- #start %{2011-11-25 + 5d}
- booking r2 2012-04-16-09:00 +4.0h,
- 2012-04-17-09:00 +4.0h,
- 2012-04-18-09:00 +4.0h,
- 2012-04-19-09:00 +4.0h,
- 2012-04-20-09:00 +4.0h
- booking r3 2012-04-16-09:00 +4.0h,
- 2012-04-17-09:00 +4.0h,
- 2012-04-18-09:00 +4.0h,
- 2012-04-19-09:00 +4.0h,
- 2012-04-20-09:00 +4.0h
- }
- task t3_2 "progetto" {
- #depends !t3
- # Effort to finish this task:
- effort 5d
- # Start date (using the built-in macro for the project start):
- # Resource allocation:
- allocate r2,r3
- booking r2 2012-04-16-14:00 +3.0h ,
- 2012-04-17-14:00 +3.0h,
- 2012-04-18-14:00 +3.0h,
- 2012-04-19-14:00 +3.0h,
- 2012-04-20-14:00 +3.0h
- booking r3 2012-04-16-14:00 +3.0h,
- 2012-04-17-14:00 +3.0h,
- 2012-04-18-14:00 +3.0h,
- 2012-04-19-14:00 +3.0h,
- 2012-04-20-14:00 +3.0h
- }
- }
- #------------------------------------------report-------------------------------
- # Reports (taken pretty much verbatim from the TJ3 tutorial project):
- navigator navbar {}
- textreport frame "" {
- header -8<-
- == Simple Projct Example ==
- <[navigator id="navbar"]>
- ->8-
- #footer "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
- # A list of all employees with their contact details.
- resourcereport contactList "lista" {
- #scenarios delayed
- formats html
- headline "Contact list and duty plan"
- columns name,
- email { celltext 1 "[mailto:<-email-> <-email->]" },
- Phone,
- Cane,
- managers { title "Manager" },
- chart { scale day }
- #hideresource ~isleaf()
- #sortresources name.up
- #hidetask 1
- }
- #------------------------report dei task--------------------------
- taskreport "vista" {
- formats html
- #footer "-----------------piede----------------"
- columns no,resources, effort, effortdone, duration , name, start, end, chart{scale day}
- timeformat "%a %d-%m-%Y"
- loadunit days
- hideresource 0
- }
- #-----------------------------------------------
- # A list of tasks showing the resources assigned to each task.
- taskreport "Task Usage" {
- formats html
- headline "Task Usage Report"
- columns hierarchindex, name, start, end, effort { title "Work" }, duration, completed, chart
- timeformat "%Y-%m-%d"
- loadunit days
- hideresource 0
- }
- #--------------------------report delle risorse---------------------
- resourcereport "risorse" {
- formats html
- columns no, name, scenario, start, end,daily
- loadunit days
- # We only like to show leaf tasks for leaf resources.
- hidetask ~(isleaf() & isleaf_())
- #sorttasks plan.start.up
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement