renatop

taskjug_renato

May 4th, 2012
90
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. Phone "2346"
  63. Cane "bau"
  64. rate 100.0
  65. }
  66. resource r1 "Renato" {
  67. managers boss
  68. Phone "246"
  69. Cane "bau"
  70. rate 100.0
  71. }
  72. resource r2 "pippo" {
  73. managers boss
  74. Phone "2346"
  75. Cane "bio"
  76. rate 100.0
  77. }
  78.  
  79. resource r3 "pluto" {
  80. managers boss
  81. Phone "2346"
  82. Cane "bio"
  83. rate 100.0
  84. }
  85. }
  86.  
  87. #--------------------------------------tasks---------------------
  88.  
  89. # Work breakdown structure:
  90. task start "Project start" {
  91. # A task that has no duration is a milestone. It only needs a
  92. # start or end criterion. All other tasks depend on this task.
  93. # Here we use the built-in macro ${projectstart} to align the
  94. # start of the task with the above specified project time frame.
  95. start ${projectstart}
  96. # For some reason the actual start of the project got delayed.
  97. # We record this, so that we can compare the planned run to the
  98. # delayed run of the project.
  99. #delayed:start 2012-04-20
  100. # At the beginning of this task we receive a payment from the
  101. # customer. This is credited to the account associated with this
  102. # task when the task starts.
  103. # charge 21000.0 onstart
  104. }
  105.  
  106. #task rac "Siena" {
  107.  
  108. task t1 "INCONTRO" {
  109. # Effort to finish this task:
  110. effort 5d
  111. # duration 5d
  112. # Start date (using the built-in macro for the project start):
  113. start 2012-04-02
  114. # Resource allocation:
  115. allocate boss
  116. #complete 50
  117. scheduling asap
  118. booking boss 2012-04-02-09:00 +8.0h,
  119. 2012-04-03-09:00 +8.0h,
  120. 2012-04-04-09:00 +8.0h,
  121. 2012-04-05-09:00 +8.0h,
  122. 2012-04-06-09:00 +8.0h
  123. }
  124.  
  125. task t2 "pianificazione" {
  126. # Effort to finish this task:
  127. effort 5d
  128. depends !t1
  129. start 2012-04-09
  130. # Start date (using the built-in macro for the project start):
  131. # Resource allocation:
  132. allocate r1
  133. scheduling asap
  134. booking r1 2012-04-09-09:00 +8.0h,
  135. # 2012-04-9-09:00 +8.0h,
  136. 2012-04-10-09:00 +8.0h,
  137. 2012-04-11-09:00 +8.0h,
  138. 2012-04-12-09:00 +8.0h,
  139. 2012-04-13-09:00 +8.0h
  140. # booking r1 2012-04-09-09:00 +9h { sloppy 1 }
  141. # epilog "epilogo"
  142. }
  143.  
  144. task t3 "Lavoro" {
  145. depends !t2
  146. # Effort to finish this task:
  147. # effort 5d
  148. # Start date (using the built-in macro for the project start):
  149. # Resource allocation:
  150. # allocate r2,r3
  151. # start %{2011-11-25 + 5d}
  152. # booking r2 2012-04-16-09:00 +8.0h,
  153. # 2012-04-16-09:00 +8.0h,
  154. # 2012-04-17-09:00 +8.0h,
  155. # 2012-04-18-09:00 +8.0h,
  156. # 2012-04-19-09:00 +8.0h,
  157. # 2012-04-20-09:00 +8.0h
  158.  
  159. task t3_1 "documenti" {
  160. #depends !t3
  161. # Effort to finish this task:
  162. effort 5d
  163. # Start date (using the built-in macro for the project start):
  164. # Resource allocation:
  165. allocate r2,r3
  166. #start %{2011-11-25 + 5d}
  167. booking r2 2012-04-16-09:00 +4.0h,
  168. 2012-04-17-09:00 +4.0h,
  169. 2012-04-18-09:00 +4.0h,
  170. 2012-04-19-09:00 +4.0h,
  171. 2012-04-20-09:00 +4.0h
  172.  
  173. booking r3 2012-04-16-09:00 +4.0h,
  174. 2012-04-17-09:00 +4.0h,
  175. 2012-04-18-09:00 +4.0h,
  176. 2012-04-19-09:00 +4.0h,
  177. 2012-04-20-09:00 +4.0h
  178. }
  179. task t3_2 "progetto" {
  180. #depends !t3
  181. # Effort to finish this task:
  182. effort 5d
  183. # Start date (using the built-in macro for the project start):
  184. # Resource allocation:
  185. allocate r2,r3
  186. booking r2 2012-04-16-14:00 +3.0h ,
  187. 2012-04-17-14:00 +3.0h,
  188. 2012-04-18-14:00 +3.0h,
  189. 2012-04-19-14:00 +3.0h,
  190. 2012-04-20-14:00 +3.0h
  191.  
  192. booking r3 2012-04-16-14:00 +3.0h,
  193. 2012-04-17-14:00 +3.0h,
  194. 2012-04-18-14:00 +3.0h,
  195. 2012-04-19-14:00 +3.0h,
  196. 2012-04-20-14:00 +3.0h
  197. }
  198. }
  199. #------------------------------------------report-------------------------------
  200.  
  201. # Reports (taken pretty much verbatim from the TJ3 tutorial project):
  202.  
  203. navigator navbar {}
  204. textreport frame "" {
  205. header -8<-
  206. == Simple Projct Example ==
  207. <[navigator id="navbar"]>
  208. ->8-
  209. #footer "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
  210.  
  211. # A list of all employees with their contact details.
  212. resourcereport contactList "lista" {
  213. #scenarios delayed
  214. formats html
  215. headline "Contact list and duty plan"
  216. columns name,
  217. email { celltext 1 "[mailto:<-email-> <-email->]" },
  218. Phone,
  219. Cane,
  220. managers { title "Manager" },
  221. chart { scale day }
  222. #hideresource ~isleaf()
  223. #sortresources name.up
  224. #hidetask 1
  225. }
  226. #------------------------report dei task--------------------------
  227. taskreport "vista" {
  228. formats html
  229. #footer "-----------------piede----------------"
  230. columns no,resources, effort, effortdone, duration , name, start, end, chart{scale day}
  231. timeformat "%a %d-%m-%Y"
  232. loadunit days
  233. hideresource 0
  234. }
  235. #-----------------------------------------------
  236. # A list of tasks showing the resources assigned to each task.
  237. taskreport "Task Usage" {
  238. formats html
  239. headline "Task Usage Report"
  240. columns hierarchindex, name, start, end, effort { title "Work" }, duration, completed, chart
  241. timeformat "%Y-%m-%d"
  242. loadunit days
  243. hideresource 0
  244. }
  245. #--------------------------report delle risorse---------------------
  246. resourcereport "risorse" {
  247.  
  248. formats html
  249. columns no, name, scenario, start, end,daily
  250.  
  251. loadunit days
  252. # We only like to show leaf tasks for leaf resources.
  253. hidetask ~(isleaf() & isleaf_())
  254. #sorttasks plan.start.up
  255.  
  256. }
  257.  
  258. }
Advertisement
Add Comment
Please, Sign In to add comment