Advertisement
renatop

taskjug_renato

May 4th, 2012
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.12 KB | None | 0 0
  1. #-----
  2. # Simple project example for TaskJuggler 3
  3. # Based heavily on the tutorial project distributed with TaskJuggler, but
  4. # stripped to a minimum to serve as a starting point for learning TJ3.
  5. #-----
  6. # The project; most of the settings for the project have defaults, but
  7. # here we will override those defaults with US-based settings for
  8. # how stuff gets displayed:
  9.  
  10. project prj "Siena" 2012-04-01 +2m {
  11. # Timezone (defaults to UTC):
  12. timezone "Europe/Paris"
  13.  
  14.  
  15. scenario plan "planned scenario" {
  16. scenario test "tested scenario" {
  17. }
  18. scenario delayed "tested scenario" {
  19. }
  20. }
  21. trackingscenario plan
  22. # Hide the clock time; only show the date:
  23. #timeformat "%d-%m-%Y"
  24.  
  25. #include il file. tji
  26. # Use US format for numbers:
  27. numberformat "-" "" "," "." 1
  28.  
  29. # Use US financial format for currency values; don't show cents:
  30. currencyformat "(" ")" "," "." 0
  31.  
  32. #-----------------------------------------------
  33. # workinghours sun off
  34. # workinghours mon 9:00 - 13:00, 14:00 - 18:00
  35. # workinghours tue 9:00 - 13:00, 14:00 - 18:00
  36. # workinghours wed 9:00 - 13:00, 14:00 - 18:00
  37. # workinghours thu 9:00 - 13:00, 14:00 - 18:00
  38. # workinghours fri 9:00 - 13:00, 14:00 - 18:00
  39. # workinghours sat off
  40. #-------------------------------------------
  41. # Use US dollars for the currency (defaults to euros):
  42. currency "USD"
  43.  
  44. #---------------creo i campi Phone e cane da utilizzare nelle risorse per provare come si creano i campi
  45. extend resource {
  46. text Phone "Phone"
  47. }
  48. extend resource {
  49. text Cane "cane"
  50. }
  51. }
  52.  
  53. #------------------------resource-------------------------------------------
  54. # Default daily rate for all resources:
  55. # rate 100.0
  56. # Resources:
  57. resource sviluppo "sviluppo" {
  58. # managers boss
  59.  
  60. resource boss "Massimo Ferretti" {
  61.  
  62. email "jguardiola@fcb.com"
  63. Phone "2346"
  64. Cane "bau"
  65. rate 100.0
  66. }
  67. resource r1 "Renato" {
  68. managers boss
  69. email "renato.pontefice@gruppoinit.it"
  70. Phone "246"
  71. Cane "bau"
  72. rate 100.0
  73. }
  74. resource r2 "pippo" {
  75. managers boss
  76. email "jguardiola@fcb.com"
  77. Phone "2346"
  78. Cane "bio"
  79. rate 100.0
  80. }
  81.  
  82. resource r3 "pluto" {
  83. managers boss
  84. email "pluto@fcb.com"
  85. Phone "2346"
  86. Cane "bio"
  87. rate 100.0
  88. }
  89. }
  90.  
  91. #--------------------------------------tasks---------------------
  92.  
  93. # Work breakdown structure:
  94. task start "Project start" {
  95. # A task that has no duration is a milestone. It only needs a
  96. # start or end criterion. All other tasks depend on this task.
  97. # Here we use the built-in macro ${projectstart} to align the
  98. # start of the task with the above specified project time frame.
  99. start ${projectstart}
  100. # For some reason the actual start of the project got delayed.
  101. # We record this, so that we can compare the planned run to the
  102. # delayed run of the project.
  103. #delayed:start 2012-04-20
  104. # At the beginning of this task we receive a payment from the
  105. # customer. This is credited to the account associated with this
  106. # task when the task starts.
  107. # charge 21000.0 onstart
  108. }
  109.  
  110. #task rac "Siena" {
  111.  
  112. task t1 "INCONTRO" {
  113. # Effort to finish this task:
  114. effort 5d
  115. # duration 5d
  116. # Start date (using the built-in macro for the project start):
  117. start 2012-04-02
  118. # Resource allocation:
  119. allocate boss
  120. #complete 50
  121. scheduling asap
  122. booking boss 2012-04-02-09:00 +8.0h,
  123. 2012-04-03-09:00 +8.0h,
  124. 2012-04-04-09:00 +8.0h,
  125. 2012-04-05-09:00 +8.0h,
  126. 2012-04-06-09:00 +8.0h
  127. }
  128.  
  129. task t2 "pianificazione" {
  130. # Effort to finish this task:
  131. effort 5d
  132. depends !t1
  133. start 2012-04-09
  134. # Start date (using the built-in macro for the project start):
  135. # Resource allocation:
  136. allocate r1
  137. scheduling asap
  138. booking r1 2012-04-09-09:00 +8.0h,
  139. # 2012-04-9-09:00 +8.0h,
  140. 2012-04-10-09:00 +8.0h,
  141. 2012-04-11-09:00 +8.0h,
  142. 2012-04-12-09:00 +8.0h,
  143. 2012-04-13-09:00 +8.0h
  144. # booking r1 2012-04-09-09:00 +9h { sloppy 1 }
  145. # epilog "epilogo"
  146. }
  147.  
  148. task t3 "Lavoro" {
  149. depends !t2
  150. # Effort to finish this task:
  151. # effort 5d
  152. # Start date (using the built-in macro for the project start):
  153. # Resource allocation:
  154. # allocate r2,r3
  155. # start %{2011-11-25 + 5d}
  156. # booking r2 2012-04-16-09:00 +8.0h,
  157. # 2012-04-16-09:00 +8.0h,
  158. # 2012-04-17-09:00 +8.0h,
  159. # 2012-04-18-09:00 +8.0h,
  160. # 2012-04-19-09:00 +8.0h,
  161. # 2012-04-20-09:00 +8.0h
  162.  
  163. task t3_1 "documenti" {
  164. #depends !t3
  165. # Effort to finish this task:
  166. effort 5d
  167. # Start date (using the built-in macro for the project start):
  168. # Resource allocation:
  169. allocate r2,r3
  170. #start %{2011-11-25 + 5d}
  171. booking r2 2012-04-16-09:00 +4.0h,
  172. 2012-04-17-09:00 +4.0h,
  173. 2012-04-18-09:00 +4.0h,
  174. 2012-04-19-09:00 +4.0h,
  175. 2012-04-20-09:00 +4.0h
  176.  
  177. booking r3 2012-04-16-09:00 +4.0h,
  178. 2012-04-17-09:00 +4.0h,
  179. 2012-04-18-09:00 +4.0h,
  180. 2012-04-19-09:00 +4.0h,
  181. 2012-04-20-09:00 +4.0h
  182. }
  183. task t3_2 "progetto" {
  184. #depends !t3
  185. # Effort to finish this task:
  186. effort 5d
  187. # Start date (using the built-in macro for the project start):
  188. # Resource allocation:
  189. allocate r2,r3
  190. booking r2 2012-04-16-14:00 +3.0h ,
  191. 2012-04-17-14:00 +3.0h,
  192. 2012-04-18-14:00 +3.0h,
  193. 2012-04-19-14:00 +3.0h,
  194. 2012-04-20-14:00 +3.0h
  195.  
  196. booking r3 2012-04-16-14:00 +3.0h,
  197. 2012-04-17-14:00 +3.0h,
  198. 2012-04-18-14:00 +3.0h,
  199. 2012-04-19-14:00 +3.0h,
  200. 2012-04-20-14:00 +3.0h
  201. }
  202. }
  203. #------------------------------------------report-------------------------------
  204.  
  205. # Reports (taken pretty much verbatim from the TJ3 tutorial project):
  206.  
  207. navigator navbar {}
  208. textreport frame "" {
  209. header -8<-
  210. == Simple Projct Example ==
  211. <[navigator id="navbar"]>
  212. ->8-
  213. #footer "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
  214.  
  215. # A list of all employees with their contact details.
  216. resourcereport contactList "lista" {
  217. #scenarios delayed
  218. formats html
  219. headline "Contact list and duty plan"
  220. columns name,
  221. email { celltext 1 "[mailto:<-email-> <-email->]" },
  222. Phone,
  223. Cane,
  224. managers { title "Manager" },
  225. chart { scale day }
  226. #hideresource ~isleaf()
  227. #sortresources name.up
  228. #hidetask 1
  229. }
  230. #------------------------report dei task--------------------------
  231. taskreport "vista" {
  232. formats html
  233. #footer "-----------------piede----------------"
  234. columns no,resources, effort, effortdone, duration , name, start, end, chart{scale day}
  235. timeformat "%a %d-%m-%Y"
  236. loadunit days
  237. hideresource 0
  238. }
  239. #-----------------------------------------------
  240. # A list of tasks showing the resources assigned to each task.
  241. taskreport "Task Usage" {
  242. formats html
  243. headline "Task Usage Report"
  244. columns hierarchindex, name, start, end, effort { title "Work" }, duration, completed, chart
  245. timeformat "%Y-%m-%d"
  246. loadunit days
  247. hideresource 0
  248. }
  249. #--------------------------report delle risorse---------------------
  250. resourcereport "risorse" {
  251.  
  252. formats html
  253. columns no, name, scenario, start, end,daily
  254.  
  255. loadunit days
  256. # We only like to show leaf tasks for leaf resources.
  257. hidetask ~(isleaf() & isleaf_())
  258. #sorttasks plan.start.up
  259.  
  260. }
  261.  
  262. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement