dtable.php 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549
  1. <?php
  2. global $lang,$app;
  3. $isEn = $app->getClientLang() == 'en';
  4. $config->project->dtable = new stdclass();
  5. $config->project->dtable->team = new stdclass();
  6. $config->project->dtable->testtask = new stdclass();
  7. $config->project->dtable->defaultField = array('id', 'name', 'status', 'PM', 'budget', 'begin', 'end', 'progress', 'actions');
  8. $config->project->dtable->fieldList['id']['title'] = $lang->idAB;
  9. $config->project->dtable->fieldList['id']['name'] = 'id';
  10. $config->project->dtable->fieldList['id']['type'] = 'checkID';
  11. $config->project->dtable->fieldList['id']['sortType'] = true;
  12. $config->project->dtable->fieldList['id']['checkbox'] = true;
  13. $config->project->dtable->fieldList['id']['group'] = 1;
  14. $config->project->dtable->fieldList['id']['required'] = true;
  15. $config->project->dtable->fieldList['name']['title'] = $lang->project->name;
  16. $config->project->dtable->fieldList['name']['name'] = 'name';
  17. $config->project->dtable->fieldList['name']['type'] = 'title';
  18. $config->project->dtable->fieldList['name']['sortType'] = true;
  19. $config->project->dtable->fieldList['name']['link'] = array('module' => 'project', 'method' => 'index', 'params' => 'projectID={id}');
  20. if($config->vision != 'lite') $config->project->dtable->fieldList['name']['iconRender'] = 'RAWJS<function(val,row){ if(row.data.model == \'scrum\') return \'icon-sprint text-gray\'; if([\'waterfall\', \'kanban\', \'agileplus\', \'waterfallplus\', \'ipd\'].indexOf(row.data.model) !== -1) return \'icon-\' + row.data.model + \' text-gray\'; return \'\';}>RAWJS';
  21. $config->project->dtable->fieldList['name']['group'] = 1;
  22. $config->project->dtable->fieldList['name']['required'] = true;
  23. if(!empty($config->setCode))
  24. {
  25. $config->project->dtable->fieldList['code']['title'] = $lang->project->code;
  26. $config->project->dtable->fieldList['code']['name'] = 'code';
  27. $config->project->dtable->fieldList['code']['type'] = 'text';
  28. $config->project->dtable->fieldList['code']['sortType'] = true;
  29. $config->project->dtable->fieldList['code']['group'] = 1;
  30. $config->project->dtable->fieldList['code']['required'] = false;
  31. }
  32. $config->project->dtable->fieldList['status']['title'] = $lang->project->status;
  33. $config->project->dtable->fieldList['status']['name'] = 'status';
  34. $config->project->dtable->fieldList['status']['type'] = 'status';
  35. $config->project->dtable->fieldList['status']['sortType'] = true;
  36. $config->project->dtable->fieldList['status']['statusMap'] = $lang->project->statusList;
  37. $config->project->dtable->fieldList['status']['group'] = 2;
  38. $config->project->dtable->fieldList['status']['show'] = true;
  39. $config->project->dtable->fieldList['hasProduct']['title'] = $lang->project->type;
  40. $config->project->dtable->fieldList['hasProduct']['name'] = 'hasProduct';
  41. $config->project->dtable->fieldList['hasProduct']['type'] = 'category';
  42. $config->project->dtable->fieldList['hasProduct']['sortType'] = true;
  43. $config->project->dtable->fieldList['hasProduct']['map'] = $lang->project->projectTypeList;
  44. $config->project->dtable->fieldList['hasProduct']['group'] = 2;
  45. $config->project->dtable->fieldList['PM']['title'] = $lang->project->PM;
  46. $config->project->dtable->fieldList['PM']['name'] = 'PM';
  47. $config->project->dtable->fieldList['PM']['type'] = 'avatarBtn';
  48. $config->project->dtable->fieldList['PM']['sortType'] = true;
  49. $config->project->dtable->fieldList['PM']['link'] = array('module' => 'user', 'method' => 'profile', 'params' => 'userID={PMUserID}');
  50. $config->project->dtable->fieldList['PM']['data-toggle'] = 'modal';
  51. $config->project->dtable->fieldList['PM']['data-size'] = 'sm';
  52. $config->project->dtable->fieldList['PM']['group'] = 3;
  53. $config->project->dtable->fieldList['PM']['show'] = true;
  54. if($isEn) $config->project->dtable->fieldList['PM']['width'] = '150';
  55. $config->project->dtable->fieldList['storyPoints']['title'] = $lang->project->storyPoints;
  56. $config->project->dtable->fieldList['storyPoints']['type'] = 'count';
  57. $config->project->dtable->fieldList['storyPoints']['group'] = 4;
  58. $config->project->dtable->fieldList['storyPoints']['show'] = true;
  59. $config->project->dtable->fieldList['storyPoints']['width'] = '120px';
  60. $config->project->dtable->fieldList['storyPoints']['sortType'] = false;
  61. $config->project->dtable->fieldList['storyCount']['title'] = $lang->project->storyCount;
  62. $config->project->dtable->fieldList['storyCount']['type'] = 'number';
  63. $config->project->dtable->fieldList['storyCount']['show'] = true;
  64. $config->project->dtable->fieldList['storyCount']['group'] = 4;
  65. $config->project->dtable->fieldList['storyCount']['width'] = '120px';
  66. $config->project->dtable->fieldList['storyCount']['sortType'] = false;
  67. $config->project->dtable->fieldList['executionCount']['title'] = $lang->project->executionCount;
  68. $config->project->dtable->fieldList['executionCount']['type'] = 'count';
  69. $config->project->dtable->fieldList['executionCount']['group'] = 4;
  70. $config->project->dtable->fieldList['executionCount']['show'] = 4;
  71. $config->project->dtable->fieldList['executionCount']['sortType'] = false;
  72. if($isEn) $config->project->dtable->fieldList['executionCount']['width'] = '120px';
  73. $config->project->dtable->fieldList['budget']['title'] = $lang->project->budget;
  74. $config->project->dtable->fieldList['budget']['name'] = 'budget';
  75. $config->project->dtable->fieldList['budget']['type'] = 'money';
  76. $config->project->dtable->fieldList['budget']['group'] = 5;
  77. $config->project->dtable->fieldList['budget']['show'] = true;
  78. $config->project->dtable->fieldList['budget']['sortType'] = true;
  79. $config->project->dtable->fieldList['teamCount']['title'] = $lang->project->teamCount;
  80. $config->project->dtable->fieldList['teamCount']['name'] = 'teamCount';
  81. $config->project->dtable->fieldList['teamCount']['type'] = 'number';
  82. $config->project->dtable->fieldList['teamCount']['group'] = 5;
  83. $config->project->dtable->fieldList['teamCount']['sortType'] = false;
  84. if($isEn) $config->project->dtable->fieldList['teamCount']['width'] = '100px';
  85. $config->project->dtable->fieldList['invested']['title'] = $lang->project->invested;
  86. $config->project->dtable->fieldList['invested']['name'] = 'invested';
  87. $config->project->dtable->fieldList['invested']['type'] = 'count';
  88. $config->project->dtable->fieldList['invested']['group'] = 5;
  89. $config->project->dtable->fieldList['invested']['show'] = true;
  90. $config->project->dtable->fieldList['invested']['sortType'] = false;
  91. if($isEn) $config->project->dtable->fieldList['invested']['width'] = '120px';
  92. if(helper::hasFeature('deliverable') && in_array($config->edition, array('max', 'ipd')))
  93. {
  94. $config->project->dtable->fieldList['deliverable']['title'] = $lang->project->deliverableAbbr;
  95. $config->project->dtable->fieldList['deliverable']['name'] = 'deliverable';
  96. $config->project->dtable->fieldList['deliverable']['type'] = 'html';
  97. $config->project->dtable->fieldList['deliverable']['width'] = '120px';
  98. $config->project->dtable->fieldList['deliverable']['group'] = 5;
  99. $config->project->dtable->fieldList['deliverable']['show'] = true;
  100. $config->project->dtable->fieldList['deliverable']['sortType'] = false;
  101. }
  102. $config->project->dtable->fieldList['begin']['title'] = $lang->project->begin;
  103. $config->project->dtable->fieldList['begin']['name'] = 'begin';
  104. $config->project->dtable->fieldList['begin']['type'] = 'date';
  105. $config->project->dtable->fieldList['begin']['sortType'] = true;
  106. $config->project->dtable->fieldList['begin']['group'] = 6;
  107. $config->project->dtable->fieldList['begin']['show'] = true;
  108. if($isEn) $config->project->dtable->fieldList['begin']['width'] = '120px';
  109. $config->project->dtable->fieldList['end']['title'] = $lang->project->end;
  110. $config->project->dtable->fieldList['end']['name'] = 'end';
  111. $config->project->dtable->fieldList['end']['type'] = 'date';
  112. $config->project->dtable->fieldList['end']['sortType'] = true;
  113. $config->project->dtable->fieldList['end']['group'] = 6;
  114. $config->project->dtable->fieldList['end']['show'] = true;
  115. if($isEn) $config->project->dtable->fieldList['end']['width'] = '120px';
  116. $config->project->dtable->fieldList['realBegan']['title'] = $lang->project->realBeganAB;
  117. $config->project->dtable->fieldList['realBegan']['type'] = 'date';
  118. $config->project->dtable->fieldList['realBegan']['group'] = 6;
  119. $config->project->dtable->fieldList['realEnd']['title'] = $lang->project->realEndAB;
  120. $config->project->dtable->fieldList['realEnd']['type'] = 'date';
  121. $config->project->dtable->fieldList['realEnd']['group'] = 6;
  122. $config->project->dtable->fieldList['estimate']['title'] = $lang->project->estimate;
  123. $config->project->dtable->fieldList['estimate']['name'] = 'estimate';
  124. $config->project->dtable->fieldList['estimate']['type'] = 'number';
  125. $config->project->dtable->fieldList['estimate']['sortType'] = true;
  126. $config->project->dtable->fieldList['estimate']['group'] = 7;
  127. if($isEn) $config->project->dtable->fieldList['estimate']['width'] = '120px';
  128. $config->project->dtable->fieldList['consume']['title'] = $lang->project->consume;
  129. $config->project->dtable->fieldList['consume']['name'] = 'consume';
  130. $config->project->dtable->fieldList['consume']['type'] = 'number';
  131. $config->project->dtable->fieldList['consume']['group'] = 7;
  132. $config->project->dtable->fieldList['consume']['sortType'] = false;
  133. $config->project->dtable->fieldList['progress']['title'] = $lang->project->progress;
  134. $config->project->dtable->fieldList['progress']['name'] = 'progress';
  135. $config->project->dtable->fieldList['progress']['type'] = 'progress';
  136. $config->project->dtable->fieldList['progress']['group'] = 7;
  137. $config->project->dtable->fieldList['progress']['show'] = true;
  138. if($isEn) $config->project->dtable->fieldList['progress']['width'] = '100px';
  139. if($config->edition != 'open')
  140. {
  141. $config->project->dtable->fieldList['workflowGroup']['title'] = $lang->project->workflowGroup;
  142. $config->project->dtable->fieldList['workflowGroup']['name'] = 'workflowGroup';
  143. $config->project->dtable->fieldList['workflowGroup']['type'] = 'category';
  144. $config->project->dtable->fieldList['workflowGroup']['width'] = '200';
  145. $config->project->dtable->fieldList['workflowGroup']['group'] = 8;
  146. $config->project->dtable->fieldList['workflowGroup']['show'] = false;
  147. $config->project->dtable->fieldList['workflowGroup']['sortType'] = true;
  148. }
  149. $config->project->dtable->fieldList['actions']['name'] = 'actions';
  150. $config->project->dtable->fieldList['actions']['title'] = $lang->actions;
  151. $config->project->dtable->fieldList['actions']['type'] = 'actions';
  152. $config->project->dtable->fieldList['actions']['sortType'] = false;
  153. $config->project->dtable->fieldList['actions']['width'] = '140';
  154. $config->project->dtable->fieldList['actions']['list'] = $config->project->actionList;
  155. $config->project->dtable->fieldList['actions']['menu'] = array(array('start|activate|close', 'other' => array('suspend', 'activate|close')), 'edit', 'group', 'perm', 'more' => array('link', 'whitelist', 'delete'));
  156. $config->project->dtable->fieldList['actions']['show'] = true;
  157. global $app;
  158. $app->loadLang('execution');
  159. $app->loadConfig('execution');
  160. if(!isset($config->project->execution)) $config->project->execution = new stdclass();
  161. $config->project->execution->dtable = new stdclass();
  162. $config->project->execution->dtable->fieldList['rawID']['title'] = $lang->idAB;
  163. $config->project->execution->dtable->fieldList['rawID']['name'] = 'rawID';
  164. $config->project->execution->dtable->fieldList['rawID']['type'] = 'checkID';
  165. $config->project->execution->dtable->fieldList['rawID']['sortType'] = 'desc';
  166. $config->project->execution->dtable->fieldList['rawID']['checkbox'] = true;
  167. $config->project->execution->dtable->fieldList['rawID']['width'] = '80';
  168. $config->project->execution->dtable->fieldList['rawID']['show'] = true;
  169. $config->project->execution->dtable->fieldList['nameCol']['title'] = $lang->nameAB;
  170. $config->project->execution->dtable->fieldList['nameCol']['name'] = 'nameCol';
  171. $config->project->execution->dtable->fieldList['nameCol']['fixed'] = 'left';
  172. $config->project->execution->dtable->fieldList['nameCol']['flex'] = 1;
  173. $config->project->execution->dtable->fieldList['nameCol']['type'] = 'nestedTitle';
  174. $config->project->execution->dtable->fieldList['nameCol']['link'] = array('module' => 'execution', 'method' => 'task', 'params' => 'executionID={rawID}');
  175. $config->project->execution->dtable->fieldList['nameCol']['nestedToggle'] = true;
  176. $config->project->execution->dtable->fieldList['nameCol']['sortType'] = true;
  177. $config->project->execution->dtable->fieldList['nameCol']['show'] = true;
  178. $config->project->execution->dtable->fieldList['productName']['title'] = $lang->execution->product;
  179. $config->project->execution->dtable->fieldList['productName']['name'] = 'productName';
  180. $config->project->execution->dtable->fieldList['productName']['type'] = 'desc';
  181. $config->project->execution->dtable->fieldList['productName']['sortType'] = false;
  182. $config->project->execution->dtable->fieldList['productName']['minWidth'] = '160';
  183. $config->project->execution->dtable->fieldList['productName']['group'] = '1';
  184. $config->project->execution->dtable->fieldList['productName']['show'] = true;
  185. $config->project->execution->dtable->fieldList['status']['title'] = $lang->project->status;
  186. $config->project->execution->dtable->fieldList['status']['name'] = 'status';
  187. $config->project->execution->dtable->fieldList['status']['type'] = 'status';
  188. $config->project->execution->dtable->fieldList['status']['statusMap'] = $lang->execution->statusList + $lang->task->statusList;
  189. $config->project->execution->dtable->fieldList['status']['sortType'] = true;
  190. $config->project->execution->dtable->fieldList['status']['width'] = '80';
  191. $config->project->execution->dtable->fieldList['status']['group'] = '1';
  192. $config->project->execution->dtable->fieldList['status']['show'] = true;
  193. if(helper::hasFeature('deliverable') && in_array($config->edition, array('max', 'ipd')))
  194. {
  195. $config->project->execution->dtable->fieldList['deliverable']['title'] = $lang->project->deliverableAbbr;
  196. $config->project->execution->dtable->fieldList['deliverable']['name'] = 'deliverable';
  197. $config->project->execution->dtable->fieldList['deliverable']['type'] = 'html';
  198. $config->project->execution->dtable->fieldList['deliverable']['width'] = '100px';
  199. $config->project->execution->dtable->fieldList['deliverable']['group'] = '1';
  200. $config->project->execution->dtable->fieldList['deliverable']['show'] = true;
  201. $config->project->execution->dtable->fieldList['deliverable']['sortType'] = false;
  202. }
  203. $config->project->execution->dtable->fieldList['PM']['title'] = $lang->project->PM;
  204. $config->project->execution->dtable->fieldList['PM']['name'] = 'PM';
  205. $config->project->execution->dtable->fieldList['PM']['type'] = 'avatarBtn';
  206. $config->project->execution->dtable->fieldList['PM']['sortType'] = true;
  207. $config->project->execution->dtable->fieldList['PM']['width'] = '100';
  208. $config->project->execution->dtable->fieldList['PM']['group'] = '2';
  209. $config->project->execution->dtable->fieldList['PM']['show'] = true;
  210. if($isEn) $config->project->execution->dtable->fieldList['PM']['width'] = '150';
  211. $config->project->execution->dtable->fieldList['openedDate']['title'] = $lang->execution->openedDate;
  212. $config->project->execution->dtable->fieldList['openedDate']['name'] = 'openedDate';
  213. $config->project->execution->dtable->fieldList['openedDate']['type'] = 'date';
  214. $config->project->execution->dtable->fieldList['openedDate']['sortType'] = true;
  215. $config->project->execution->dtable->fieldList['openedDate']['width'] = '96';
  216. $config->project->execution->dtable->fieldList['openedDate']['group'] = '3';
  217. $config->project->execution->dtable->fieldList['openedDate']['show'] = true;
  218. if($isEn) $config->project->execution->dtable->fieldList['openedDate']['width'] = '120';
  219. $config->project->execution->dtable->fieldList['begin']['title'] = $lang->execution->begin;
  220. $config->project->execution->dtable->fieldList['begin']['name'] = 'begin';
  221. $config->project->execution->dtable->fieldList['begin']['type'] = 'date';
  222. $config->project->execution->dtable->fieldList['begin']['sortType'] = true;
  223. $config->project->execution->dtable->fieldList['begin']['width'] = '96';
  224. $config->project->execution->dtable->fieldList['begin']['group'] = '3';
  225. $config->project->execution->dtable->fieldList['begin']['show'] = true;
  226. if($isEn) $config->project->execution->dtable->fieldList['begin']['width'] = '120';
  227. $config->project->execution->dtable->fieldList['end']['title'] = $lang->execution->end;
  228. $config->project->execution->dtable->fieldList['end']['name'] = 'end';
  229. $config->project->execution->dtable->fieldList['end']['type'] = 'date';
  230. $config->project->execution->dtable->fieldList['end']['sortType'] = true;
  231. $config->project->execution->dtable->fieldList['end']['width'] = '96';
  232. $config->project->execution->dtable->fieldList['end']['group'] = '3';
  233. $config->project->execution->dtable->fieldList['end']['show'] = true;
  234. $config->project->execution->dtable->fieldList['realBegan']['title'] = $lang->execution->realBeganAB;
  235. $config->project->execution->dtable->fieldList['realBegan']['name'] = 'realBegan';
  236. $config->project->execution->dtable->fieldList['realBegan']['type'] = 'date';
  237. $config->project->execution->dtable->fieldList['realBegan']['sortType'] = true;
  238. $config->project->execution->dtable->fieldList['realBegan']['width'] = '106';
  239. $config->project->execution->dtable->fieldList['realBegan']['group'] = '3';
  240. $config->project->execution->dtable->fieldList['realBegan']['show'] = true;
  241. $config->project->execution->dtable->fieldList['realEnd']['title'] = $lang->execution->realEndAB;
  242. $config->project->execution->dtable->fieldList['realEnd']['name'] = 'realEnd';
  243. $config->project->execution->dtable->fieldList['realEnd']['type'] = 'date';
  244. $config->project->execution->dtable->fieldList['realEnd']['sortType'] = true;
  245. $config->project->execution->dtable->fieldList['realEnd']['width'] = '106';
  246. $config->project->execution->dtable->fieldList['realEnd']['group'] = '3';
  247. $config->project->execution->dtable->fieldList['realEnd']['show'] = true;
  248. $config->project->execution->dtable->fieldList['totalEstimate']['title'] = $lang->execution->totalEstimate;
  249. $config->project->execution->dtable->fieldList['totalEstimate']['name'] = 'estimate';
  250. $config->project->execution->dtable->fieldList['totalEstimate']['type'] = 'number';
  251. $config->project->execution->dtable->fieldList['totalEstimate']['sortType'] = false;
  252. $config->project->execution->dtable->fieldList['totalEstimate']['width'] = '64';
  253. $config->project->execution->dtable->fieldList['totalEstimate']['group'] = '4';
  254. $config->project->execution->dtable->fieldList['totalEstimate']['show'] = true;
  255. $config->project->execution->dtable->fieldList['totalConsumed']['title'] = $lang->execution->totalConsumed;
  256. $config->project->execution->dtable->fieldList['totalConsumed']['name'] = 'consumed';
  257. $config->project->execution->dtable->fieldList['totalConsumed']['type'] = 'number';
  258. $config->project->execution->dtable->fieldList['totalConsumed']['sortType'] = false;
  259. $config->project->execution->dtable->fieldList['totalConsumed']['width'] = '64';
  260. $config->project->execution->dtable->fieldList['totalConsumed']['group'] = '4';
  261. $config->project->execution->dtable->fieldList['totalConsumed']['show'] = true;
  262. $config->project->execution->dtable->fieldList['totalLeft']['title'] = $lang->execution->totalLeft;
  263. $config->project->execution->dtable->fieldList['totalLeft']['name'] = 'left';
  264. $config->project->execution->dtable->fieldList['totalLeft']['type'] = 'number';
  265. $config->project->execution->dtable->fieldList['totalLeft']['sortType'] = false;
  266. $config->project->execution->dtable->fieldList['totalLeft']['width'] = '64';
  267. $config->project->execution->dtable->fieldList['totalLeft']['group'] = '4';
  268. $config->project->execution->dtable->fieldList['totalLeft']['show'] = true;
  269. $config->project->execution->dtable->fieldList['progress']['title'] = $lang->execution->progress;
  270. $config->project->execution->dtable->fieldList['progress']['name'] = 'progress';
  271. $config->project->execution->dtable->fieldList['progress']['type'] = 'progress';
  272. $config->project->execution->dtable->fieldList['progress']['sortType'] = false;
  273. $config->project->execution->dtable->fieldList['progress']['width'] = '64';
  274. $config->project->execution->dtable->fieldList['progress']['group'] = '4';
  275. $config->project->execution->dtable->fieldList['progress']['show'] = true;
  276. $config->project->execution->dtable->fieldList['burns']['title'] = $lang->execution->burn;
  277. $config->project->execution->dtable->fieldList['burns']['name'] = 'burns';
  278. $config->project->execution->dtable->fieldList['burns']['type'] = 'burn';
  279. $config->project->execution->dtable->fieldList['burns']['sortType'] = false;
  280. $config->project->execution->dtable->fieldList['burns']['width'] = '88';
  281. $config->project->execution->dtable->fieldList['burns']['group'] = '4';
  282. $config->project->execution->dtable->fieldList['burns']['show'] = true;
  283. $config->project->execution->dtable->fieldList['actions']['name'] = 'actions';
  284. $config->project->execution->dtable->fieldList['actions']['title'] = $lang->actions;
  285. $config->project->execution->dtable->fieldList['actions']['type'] = 'actions';
  286. $config->project->execution->dtable->fieldList['actions']['width'] = '160';
  287. $config->project->execution->dtable->fieldList['actions']['sortType'] = false;
  288. $config->project->execution->dtable->fieldList['actions']['fixed'] = 'right';
  289. $config->project->execution->dtable->fieldList['actions']['actionsMap'] = $config->execution->actionList;
  290. $config->project->execution->dtable->fieldList['actions']['actionsMap']['startTask']['icon'] = 'play';
  291. $config->project->execution->dtable->fieldList['actions']['actionsMap']['startTask']['hint'] = $lang->task->start;
  292. $config->project->execution->dtable->fieldList['actions']['actionsMap']['startTask']['url'] = helper::createLink('task', 'start', 'taskID={rawID}');
  293. $config->project->execution->dtable->fieldList['actions']['actionsMap']['startTask']['data-toggle'] = 'modal';
  294. $config->project->execution->dtable->fieldList['actions']['actionsMap']['finishTask']['icon'] = 'checked';
  295. $config->project->execution->dtable->fieldList['actions']['actionsMap']['finishTask']['hint'] = $lang->task->finish;
  296. $config->project->execution->dtable->fieldList['actions']['actionsMap']['finishTask']['url'] = helper::createLink('task', 'finish', 'taskID={rawID}');
  297. $config->project->execution->dtable->fieldList['actions']['actionsMap']['finishTask']['data-toggle'] = 'modal';
  298. $config->project->execution->dtable->fieldList['actions']['actionsMap']['closeTask']['icon'] = 'off';
  299. $config->project->execution->dtable->fieldList['actions']['actionsMap']['closeTask']['hint'] = $lang->task->close;
  300. $config->project->execution->dtable->fieldList['actions']['actionsMap']['closeTask']['url'] = helper::createLink('task', 'close', 'taskID={rawID}');
  301. $config->project->execution->dtable->fieldList['actions']['actionsMap']['closeTask']['data-toggle'] = 'modal';
  302. $config->project->execution->dtable->fieldList['actions']['actionsMap']['recordWorkhour']['icon'] = 'time';
  303. $config->project->execution->dtable->fieldList['actions']['actionsMap']['recordWorkhour']['hint'] = $lang->task->record;
  304. $config->project->execution->dtable->fieldList['actions']['actionsMap']['recordWorkhour']['url'] = helper::createLink('task', 'recordWorkhour', 'taskID={rawID}');
  305. $config->project->execution->dtable->fieldList['actions']['actionsMap']['recordWorkhour']['data-toggle'] = 'modal';
  306. $config->project->execution->dtable->fieldList['actions']['actionsMap']['editTask']['icon'] = 'edit';
  307. $config->project->execution->dtable->fieldList['actions']['actionsMap']['editTask']['hint'] = $lang->task->edit;
  308. $config->project->execution->dtable->fieldList['actions']['actionsMap']['editTask']['url'] = helper::createLink('task', 'edit', 'taskID={rawID}');
  309. $config->project->execution->dtable->fieldList['actions']['actionsMap']['batchCreate']['icon'] = 'split';
  310. $config->project->execution->dtable->fieldList['actions']['actionsMap']['batchCreate']['hint'] = $lang->task->batchCreate;
  311. $config->project->execution->dtable->fieldList['actions']['actionsMap']['batchCreate']['url'] = helper::createLink('task', 'batchCreate', 'execution={execution}&storyID={story}&moduleID={module}&taskID={rawID}');
  312. $config->project->execution->dtable->fieldList['actions']['actionsMap']['confirmStoryChange']['icon'] = 'search';
  313. $config->project->execution->dtable->fieldList['actions']['actionsMap']['confirmStoryChange']['hint'] = $lang->task->confirmStoryChange;
  314. $config->project->execution->dtable->fieldList['actions']['actionsMap']['confirmStoryChange']['url'] = helper::createLink('task', 'confirmStoryChange', 'taskID={rawID}');
  315. $config->project->execution->dtable->fieldList['actions']['actionsMap']['confirmStoryChange']['data-app'] = $app->tab;
  316. $config->project->execution->dtable->actionsRule['scrum'] = array('start', 'createTask', 'edit', 'close|activate', 'delete');
  317. $config->project->execution->dtable->actionsRule['kanban'] = array('start', 'createTask', 'edit', 'close|activate', 'delete');
  318. $config->project->execution->dtable->actionsRule['agileplus'] = array('start', 'createTask', 'edit', 'close|activate', 'delete');
  319. $config->project->execution->dtable->actionsRule['waterfall'] = array('start', 'createTask', 'createChildStage', 'edit', 'close|activate', 'delete');
  320. $config->project->execution->dtable->actionsRule['waterfallplus'] = array('start', 'createTask', 'createChildStage', 'edit', 'close|activate', 'delete');
  321. $config->project->execution->dtable->actionsRule['task'] = array('startTask', 'finishTask', 'closeTask', 'recordWorkhour', 'editTask', 'batchCreate');
  322. $app->loadLang('group');
  323. $config->projectGroup = new stdclass();
  324. $config->projectGroup->dtable = new stdclass();
  325. $config->projectGroup->dtable->fieldList['id']['title'] = $lang->idAB;
  326. $config->projectGroup->dtable->fieldList['id']['name'] = 'id';
  327. $config->projectGroup->dtable->fieldList['id']['type'] = 'checkID';
  328. $config->projectGroup->dtable->fieldList['id']['sort'] = 'number';
  329. $config->projectGroup->dtable->fieldList['id']['fixed'] = 'left';
  330. $config->projectGroup->dtable->fieldList['id']['checkbox'] = false;
  331. $config->projectGroup->dtable->fieldList['id']['width'] = '80';
  332. $config->projectGroup->dtable->fieldList['id']['group'] = 1;
  333. $config->projectGroup->dtable->fieldList['name']['title'] = $lang->group->name;
  334. $config->projectGroup->dtable->fieldList['name']['name'] = 'name';
  335. $config->projectGroup->dtable->fieldList['name']['fixed'] = 'left';
  336. $config->projectGroup->dtable->fieldList['name']['flex'] = 1;
  337. $config->projectGroup->dtable->fieldList['name']['type'] = 'title';
  338. $config->projectGroup->dtable->fieldList['name']['sort'] = true;
  339. $config->projectGroup->dtable->fieldList['name']['group'] = 1;
  340. $config->projectGroup->dtable->fieldList['desc']['title'] = $lang->group->desc;
  341. $config->projectGroup->dtable->fieldList['desc']['name'] = 'desc';
  342. $config->projectGroup->dtable->fieldList['desc']['type'] = 'desc';
  343. $config->projectGroup->dtable->fieldList['desc']['sort'] = true;
  344. $config->projectGroup->dtable->fieldList['desc']['group'] = 2;
  345. $config->projectGroup->dtable->fieldList['users']['title'] = $lang->group->users;
  346. $config->projectGroup->dtable->fieldList['users']['name'] = 'users';
  347. $config->projectGroup->dtable->fieldList['users']['type'] = 'desc';
  348. $config->projectGroup->dtable->fieldList['users']['hint'] = true;
  349. $config->projectGroup->dtable->fieldList['users']['sort'] = true;
  350. $config->projectGroup->dtable->fieldList['users']['group'] = 3;
  351. $config->projectGroup->dtable->fieldList['actions']['name'] = 'actions';
  352. $config->projectGroup->dtable->fieldList['actions']['title'] = $lang->actions;
  353. $config->projectGroup->dtable->fieldList['actions']['type'] = 'actions';
  354. $config->projectGroup->dtable->fieldList['actions']['width'] = '140';
  355. $config->projectGroup->dtable->fieldList['actions']['menu'] = array('managePriv', 'manageGroupMember', 'edit', 'copyGroup', 'delete');
  356. $config->projectGroup->dtable->fieldList['actions']['sortType'] = false;
  357. $config->projectGroup->dtable->fieldList['actions']['fixed'] = 'right';
  358. $config->projectGroup->dtable->fieldList['actions']['list']['managePriv']['icon'] = 'lock';
  359. $config->projectGroup->dtable->fieldList['actions']['list']['managePriv']['text'] = $lang->group->managePriv;
  360. $config->projectGroup->dtable->fieldList['actions']['list']['managePriv']['hint'] = $lang->group->managePriv;
  361. $config->projectGroup->dtable->fieldList['actions']['list']['managePriv']['url'] = helper::createLink('project', 'managePriv', "projectID={project}&groupID={id}");
  362. $config->projectGroup->dtable->fieldList['actions']['list']['manageGroupMember']['icon'] = 'persons';
  363. $config->projectGroup->dtable->fieldList['actions']['list']['manageGroupMember']['text'] = $lang->group->manageMember;
  364. $config->projectGroup->dtable->fieldList['actions']['list']['manageGroupMember']['hint'] = $lang->group->manageMember;
  365. $config->projectGroup->dtable->fieldList['actions']['list']['manageGroupMember']['url'] = helper::createLink('project', 'manageGroupMember', "groupID={id}");
  366. $config->projectGroup->dtable->fieldList['actions']['list']['manageGroupMember']['data-toggle'] = 'modal';
  367. $config->projectGroup->dtable->fieldList['actions']['list']['manageGroupMember']['data-size'] = 'lg';
  368. $config->projectGroup->dtable->fieldList['actions']['list']['edit']['icon'] = 'edit';
  369. $config->projectGroup->dtable->fieldList['actions']['list']['edit']['text'] = $lang->group->edit;
  370. $config->projectGroup->dtable->fieldList['actions']['list']['edit']['hint'] = $lang->group->edit;
  371. $config->projectGroup->dtable->fieldList['actions']['list']['edit']['url'] = helper::createLink('project', 'editGroup', "groupID={id}");
  372. $config->projectGroup->dtable->fieldList['actions']['list']['edit']['data-toggle'] = 'modal';
  373. $config->projectGroup->dtable->fieldList['actions']['list']['edit']['data-size'] = 'sm';
  374. $config->projectGroup->dtable->fieldList['actions']['list']['copyGroup']['icon'] = 'copy';
  375. $config->projectGroup->dtable->fieldList['actions']['list']['copyGroup']['text'] = $lang->group->copy;
  376. $config->projectGroup->dtable->fieldList['actions']['list']['copyGroup']['hint'] = $lang->group->copy;
  377. $config->projectGroup->dtable->fieldList['actions']['list']['copyGroup']['url'] = helper::createLink('project', 'copyGroup', "groupID={id}");
  378. $config->projectGroup->dtable->fieldList['actions']['list']['copyGroup']['data-toggle'] = 'modal';
  379. $config->projectGroup->dtable->fieldList['actions']['list']['copyGroup']['data-size'] = 'sm';
  380. $config->projectGroup->dtable->fieldList['actions']['list']['delete']['icon'] = 'trash';
  381. $config->projectGroup->dtable->fieldList['actions']['list']['delete']['text'] = $lang->group->delete;
  382. $config->projectGroup->dtable->fieldList['actions']['list']['delete']['hint'] = $lang->group->delete;
  383. $config->projectGroup->dtable->fieldList['actions']['list']['delete']['url'] = 'javascript:confirmDelete("{id}", "{name}")';
  384. $app->loadLang('execution');
  385. $config->project->dtable->team->fieldList['account']['title'] = $lang->team->realname;
  386. $config->project->dtable->team->fieldList['account']['align'] = 'left';
  387. $config->project->dtable->team->fieldList['account']['name'] = 'realname';
  388. $config->project->dtable->team->fieldList['account']['type'] = 'user';
  389. $config->project->dtable->team->fieldList['account']['link'] = array('module' => 'user', 'method' => 'view', 'params' => 'userID={userID}');
  390. $config->project->dtable->team->fieldList['account']['sortType'] = false;
  391. $config->project->dtable->team->fieldList['role']['title'] = $lang->team->role;
  392. $config->project->dtable->team->fieldList['role']['type'] = 'user';
  393. $config->project->dtable->team->fieldList['role']['sortType'] = false;
  394. $config->project->dtable->team->fieldList['join']['title'] = $lang->team->join;
  395. $config->project->dtable->team->fieldList['join']['type'] = 'date';
  396. $config->project->dtable->team->fieldList['join']['sortType'] = false;
  397. $config->project->dtable->team->fieldList['days']['title'] = $lang->team->days;
  398. $config->project->dtable->team->fieldList['days']['type'] = 'number';
  399. $config->project->dtable->team->fieldList['days']['sortType'] = false;
  400. $config->project->dtable->team->fieldList['hours']['title'] = $lang->team->hours;
  401. $config->project->dtable->team->fieldList['hours']['type'] = 'number';
  402. $config->project->dtable->team->fieldList['hours']['sortType'] = false;
  403. $config->project->dtable->team->fieldList['total']['title'] = $lang->team->totalHours;
  404. $config->project->dtable->team->fieldList['total']['type'] = 'number';
  405. $config->project->dtable->team->fieldList['total']['sortType'] = false;
  406. $config->project->dtable->team->fieldList['limited']['title'] = $lang->team->limited;
  407. $config->project->dtable->team->fieldList['limited']['type'] = 'user';
  408. $config->project->dtable->team->fieldList['limited']['map'] = $lang->team->limitedList;
  409. $config->project->dtable->team->fieldList['limited']['sortType'] = false;
  410. $config->project->dtable->team->fieldList['actions']['type'] = 'actions';
  411. $config->project->dtable->team->fieldList['actions']['title'] = $lang->actions;
  412. $config->project->dtable->team->fieldList['actions']['minWidth'] = 60;
  413. $config->project->dtable->team->fieldList['actions']['actionsMap'] = $config->project->team->actionList;
  414. $app->loadLang('testcase');
  415. $app->loadLang('testtask');
  416. $app->loadModuleConfig('testtask');
  417. $config->project->dtable->testtask->fieldList['product']['name'] = 'productName';
  418. $config->project->dtable->testtask->fieldList['product']['title'] = $lang->testtask->product;
  419. $config->project->dtable->testtask->fieldList['product']['type'] = 'text';
  420. $config->project->dtable->testtask->fieldList['product']['group'] = '1';
  421. $config->project->dtable->testtask->fieldList['product']['fixed'] = 'left';
  422. $config->project->dtable->testtask->fieldList['id']['name'] = 'idName';
  423. $config->project->dtable->testtask->fieldList['id']['title'] = $lang->idAB;
  424. $config->project->dtable->testtask->fieldList['id']['type'] = 'checkID';
  425. $config->project->dtable->testtask->fieldList['id']['checkbox'] = true;
  426. $config->project->dtable->testtask->fieldList['id']['group'] = '2';
  427. $config->project->dtable->testtask->fieldList['id']['fixed'] = 'left';
  428. $config->project->dtable->testtask->fieldList['title']['name'] = 'name';
  429. $config->project->dtable->testtask->fieldList['title']['title'] = $lang->testtask->name;
  430. $config->project->dtable->testtask->fieldList['title']['type'] = 'title';
  431. $config->project->dtable->testtask->fieldList['title']['link'] = array('module' => 'testtask', 'method' => 'cases', 'params' => 'taskID={id}');
  432. $config->project->dtable->testtask->fieldList['title']['group'] = '2';
  433. $config->project->dtable->testtask->fieldList['title']['fixed'] = 'left';
  434. $config->project->dtable->testtask->fieldList['title']['width'] = '356';
  435. $config->project->dtable->testtask->fieldList['title']['data-app'] = 'project';
  436. $config->project->dtable->testtask->fieldList['pri']['name'] = 'pri';
  437. $config->project->dtable->testtask->fieldList['pri']['title'] = $lang->priAB;
  438. $config->project->dtable->testtask->fieldList['pri']['type'] = 'pri';
  439. $config->project->dtable->testtask->fieldList['pri']['show'] = true;
  440. $config->project->dtable->testtask->fieldList['build']['name'] = 'buildName';
  441. $config->project->dtable->testtask->fieldList['build']['title'] = $lang->testtask->build;
  442. $config->project->dtable->testtask->fieldList['build']['type'] = 'text';
  443. $config->project->dtable->testtask->fieldList['build']['link'] = array('module' => 'projectbuild', 'method' => 'view', 'params' => 'buildID={build}');
  444. $config->project->dtable->testtask->fieldList['build']['group'] = 'text';
  445. $config->project->dtable->testtask->fieldList['build']['group'] = '3';
  446. $config->project->dtable->testtask->fieldList['owner']['name'] = 'owner';
  447. $config->project->dtable->testtask->fieldList['owner']['title'] = $lang->testtask->owner;
  448. $config->project->dtable->testtask->fieldList['owner']['type'] = 'user';
  449. $config->project->dtable->testtask->fieldList['owner']['group'] = '4';
  450. $config->project->dtable->testtask->fieldList['begin']['name'] = 'begin';
  451. $config->project->dtable->testtask->fieldList['begin']['title'] = $lang->testtask->begin;
  452. $config->project->dtable->testtask->fieldList['begin']['type'] = 'date';
  453. $config->project->dtable->testtask->fieldList['begin']['group'] = '4';
  454. $config->project->dtable->testtask->fieldList['end']['name'] = 'end';
  455. $config->project->dtable->testtask->fieldList['end']['title'] = $lang->testtask->end;
  456. $config->project->dtable->testtask->fieldList['end']['type'] = 'date';
  457. $config->project->dtable->testtask->fieldList['end']['group'] = '4';
  458. $config->project->dtable->testtask->fieldList['status']['name'] = 'status';
  459. $config->project->dtable->testtask->fieldList['status']['title'] = $lang->testtask->status;
  460. $config->project->dtable->testtask->fieldList['status']['type'] = 'status';
  461. $config->project->dtable->testtask->fieldList['status']['statusMap'] = $lang->testtask->statusList;
  462. $config->project->dtable->testtask->fieldList['status']['group'] = '4';
  463. $config->project->dtable->testtask->fieldList['actions']['name'] = 'actions';
  464. $config->project->dtable->testtask->fieldList['actions']['title'] = $lang->actions;
  465. $config->project->dtable->testtask->fieldList['actions']['type'] = 'actions';
  466. $config->project->dtable->testtask->fieldList['actions']['sortType'] = false;
  467. $config->project->dtable->testtask->fieldList['actions']['fixed'] = 'right';
  468. $config->project->dtable->testtask->fieldList['actions']['list'] = $config->testtask->actionList;
  469. $config->project->dtable->testtask->fieldList['actions']['menu'] = array(array('start', 'other' => array('activate', 'close')), 'cases', 'linkCase', 'report', 'edit', 'delete');