dtable.php 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474
  1. <?php
  2. global $app;
  3. $isEn = $app->getClientLang() == 'en';
  4. $config->product->dtable = new stdclass();
  5. $config->product->dtable->fieldList['name']['name'] = 'name';
  6. $config->product->dtable->fieldList['name']['title'] = $lang->product->name;
  7. $config->product->dtable->fieldList['name']['width'] = 0.2;
  8. $config->product->dtable->fieldList['name']['type'] = 'title';
  9. $config->product->dtable->fieldList['name']['flex'] = 1;
  10. $config->product->dtable->fieldList['name']['nestedToggle'] = false;
  11. $config->product->dtable->fieldList['name']['checkbox'] = true;
  12. $config->product->dtable->fieldList['name']['sortType'] = true;
  13. $config->product->dtable->fieldList['name']['align'] = 'left';
  14. $config->product->dtable->fieldList['name']['border'] = 'right';
  15. $config->product->dtable->fieldList['name']['link'] = helper::createLink('product', 'browse', "productID={id}");
  16. $config->product->dtable->fieldList['productLine']['name'] = 'productLine';
  17. $config->product->dtable->fieldList['productLine']['title'] = $lang->product->belongingLine;
  18. $config->product->dtable->fieldList['productLine']['width'] = 136;
  19. $config->product->dtable->fieldList['productLine']['type'] = 'format';
  20. $config->product->dtable->fieldList['productLine']['sortType'] = false;
  21. $config->product->dtable->fieldList['productLine']['border'] = 'right';
  22. $config->product->dtable->fieldList['productLine']['align'] = 'left';
  23. $config->product->dtable->fieldList['PO']['name'] = 'PO';
  24. $config->product->dtable->fieldList['PO']['title'] = $lang->product->manager;
  25. $config->product->dtable->fieldList['PO']['minWidth'] = 108;
  26. $config->product->dtable->fieldList['PO']['type'] = 'avatarBtn';
  27. $config->product->dtable->fieldList['PO']['sortType'] = true;
  28. $config->product->dtable->fieldList['PO']['border'] = 'right';
  29. $config->product->dtable->fieldList['PO']['align'] = 'left';
  30. $config->product->dtable->fieldList['draftStories']['name'] = 'draftStories';
  31. $config->product->dtable->fieldList['draftStories']['title'] = $lang->product->draftStory;
  32. $config->product->dtable->fieldList['draftStories']['minWidth'] = 64;
  33. $config->product->dtable->fieldList['draftStories']['type'] = 'number';
  34. $config->product->dtable->fieldList['draftStories']['sortType'] = false;
  35. $config->product->dtable->fieldList['draftStories']['align'] = 'center';
  36. $config->product->dtable->fieldList['activeStories']['name'] = 'activeStories';
  37. $config->product->dtable->fieldList['activeStories']['title'] = $lang->product->activeStory;
  38. $config->product->dtable->fieldList['activeStories']['minWidth'] = 64;
  39. $config->product->dtable->fieldList['activeStories']['type'] = 'number';
  40. $config->product->dtable->fieldList['activeStories']['sortType'] = false;
  41. $config->product->dtable->fieldList['activeStories']['align'] = 'center';
  42. $config->product->dtable->fieldList['changingStories']['name'] = 'changingStories';
  43. $config->product->dtable->fieldList['changingStories']['title'] = $lang->product->changingStory;
  44. $config->product->dtable->fieldList['changingStories']['minWidth'] = 64;
  45. $config->product->dtable->fieldList['changingStories']['type'] = 'number';
  46. $config->product->dtable->fieldList['changingStories']['sortType'] = false;
  47. $config->product->dtable->fieldList['changingStories']['align'] = 'center';
  48. $config->product->dtable->fieldList['reviewingStories']['name'] = 'reviewingStories';
  49. $config->product->dtable->fieldList['reviewingStories']['title'] = $lang->product->reviewingStory;
  50. $config->product->dtable->fieldList['reviewingStories']['minWidth'] = 64;
  51. $config->product->dtable->fieldList['reviewingStories']['type'] = 'number';
  52. $config->product->dtable->fieldList['reviewingStories']['sortType'] = false;
  53. $config->product->dtable->fieldList['reviewingStories']['align'] = 'center';
  54. $config->product->dtable->fieldList['storyCompleteRate']['name'] = 'storyCompleteRate';
  55. $config->product->dtable->fieldList['storyCompleteRate']['title'] = $lang->product->completeRate;
  56. $config->product->dtable->fieldList['storyCompleteRate']['minWidth'] = 64;
  57. $config->product->dtable->fieldList['storyCompleteRate']['type'] = 'progress';
  58. $config->product->dtable->fieldList['storyCompleteRate']['sortType'] = false;
  59. $config->product->dtable->fieldList['storyCompleteRate']['border'] = 'right';
  60. $config->product->dtable->fieldList['storyCompleteRate']['align'] = 'center';
  61. $config->product->dtable->fieldList['plans']['name'] = 'plans';
  62. $config->product->dtable->fieldList['plans']['title'] = $lang->product->plan;
  63. $config->product->dtable->fieldList['plans']['minWidth'] = 64;
  64. $config->product->dtable->fieldList['plans']['type'] = 'number';
  65. $config->product->dtable->fieldList['plans']['sortType'] = false;
  66. $config->product->dtable->fieldList['plans']['border'] = 'right';
  67. $config->product->dtable->fieldList['plans']['align'] = 'center';
  68. $config->product->dtable->fieldList['status']['name'] = 'status';
  69. $config->product->dtable->fieldList['status']['title'] = $lang->product->status;
  70. $config->product->dtable->fieldList['status']['minWidth'] = 64;
  71. $config->product->dtable->fieldList['status']['type'] = 'status';
  72. $config->product->dtable->fieldList['status']['sortType'] = false;
  73. $config->product->dtable->fieldList['status']['statusMap'] = $lang->product->statusList;
  74. $config->product->dtable->fieldList['status']['border'] = 'right';
  75. $config->product->dtable->fieldList['status']['align'] = 'center';
  76. $config->product->dtable->fieldList['execution']['name'] = 'execution';
  77. $config->product->dtable->fieldList['execution']['title'] = $lang->execution->common;
  78. $config->product->dtable->fieldList['execution']['minWidth'] = 64;
  79. $config->product->dtable->fieldList['execution']['type'] = 'number';
  80. $config->product->dtable->fieldList['execution']['sortType'] = false;
  81. $config->product->dtable->fieldList['execution']['border'] = 'right';
  82. $config->product->dtable->fieldList['execution']['align'] = 'center';
  83. $config->product->dtable->fieldList['testCaseCoverage']['name'] = 'testCaseCoverage';
  84. $config->product->dtable->fieldList['testCaseCoverage']['title'] = $lang->product->testCaseCoverage;
  85. $config->product->dtable->fieldList['testCaseCoverage']['minWidth'] = 86;
  86. $config->product->dtable->fieldList['testCaseCoverage']['type'] = 'progress';
  87. $config->product->dtable->fieldList['testCaseCoverage']['hint'] = $lang->product->testCaseCoverageInfo;
  88. $config->product->dtable->fieldList['testCaseCoverage']['sortType'] = false;
  89. $config->product->dtable->fieldList['testCaseCoverage']['border'] = 'right';
  90. $config->product->dtable->fieldList['unresolvedBugs']['name'] = 'unresolvedBugs';
  91. $config->product->dtable->fieldList['unresolvedBugs']['title'] = $lang->product->activatedBug;
  92. $config->product->dtable->fieldList['unresolvedBugs']['minWidth'] = 64;
  93. $config->product->dtable->fieldList['unresolvedBugs']['type'] = 'number';
  94. $config->product->dtable->fieldList['unresolvedBugs']['sortType'] = false;
  95. $config->product->dtable->fieldList['unresolvedBugs']['align'] = 'center';
  96. $config->product->dtable->fieldList['bugFixedRate']['name'] = 'bugFixedRate';
  97. $config->product->dtable->fieldList['bugFixedRate']['title'] = $lang->product->bugFixedRate;
  98. $config->product->dtable->fieldList['bugFixedRate']['minWidth'] = 64;
  99. $config->product->dtable->fieldList['bugFixedRate']['type'] = 'progress';
  100. $config->product->dtable->fieldList['bugFixedRate']['sortType'] = false;
  101. $config->product->dtable->fieldList['bugFixedRate']['align'] = 'center';
  102. $config->product->dtable->fieldList['bugFixedRate']['border'] = 'right';
  103. $config->product->dtable->fieldList['releases']['name'] = 'releases';
  104. $config->product->dtable->fieldList['releases']['title'] = $lang->product->release;
  105. $config->product->dtable->fieldList['releases']['minWidth'] = 64;
  106. $config->product->dtable->fieldList['releases']['type'] = 'number';
  107. $config->product->dtable->fieldList['releases']['sortType'] = false;
  108. $config->product->dtable->fieldList['releases']['align'] = 'center';
  109. $config->product->dtable->fieldList['actions']['name'] = 'actions';
  110. $config->product->dtable->fieldList['actions']['title'] = $lang->actions;
  111. $config->product->dtable->fieldList['actions']['type'] = 'actions';
  112. $config->product->dtable->fieldList['actions']['minWidth'] = '60';
  113. $config->product->dtable->fieldList['actions']['fixed'] = 'right';
  114. $config->product->dtable->fieldList['actions']['menu'] = array('edit');
  115. $config->product->dtable->fieldList['actions']['list'] = $config->product->actionList;
  116. /* Default definition of WorkFlow extend fields. */
  117. $config->product->dtable->extendField['name'] = 'field';
  118. $config->product->dtable->extendField['title'] = 'name';
  119. $config->product->dtable->extendField['minWidth'] = 64;
  120. $config->product->dtable->extendField['type'] = 'number';
  121. $config->product->dtable->extendField['sortType'] = false;
  122. $config->product->dtable->extendField['align'] = 'center';
  123. $config->product->dtable->extendField['border'] = 'left';
  124. $config->productProject = new stdclass();
  125. $config->productProject->showFields = array('id', 'program', 'name', 'status', 'PM', 'storyPoints', 'storyCount', 'executionCount', 'budget', 'teamCount', 'invested', 'begin', 'end', 'realBegan', 'realEnd', 'estimate', 'consume', 'progress');
  126. /* Fields of product list page. */
  127. if(!isset($config->product->all)) $config->product->all = new stdclass();
  128. $config->product->all->dtable = new stdclass();
  129. $config->product->all->dtable->fieldList['name']['name'] = 'name';
  130. $config->product->all->dtable->fieldList['name']['shortTitle'] = $lang->product->name;
  131. $config->product->all->dtable->fieldList['name']['width'] = 0.2;
  132. $config->product->all->dtable->fieldList['name']['type'] = 'title';
  133. $config->product->all->dtable->fieldList['name']['show'] = true;
  134. $config->product->all->dtable->fieldList['name']['nestedToggle'] = false;
  135. $config->product->all->dtable->fieldList['name']['checkbox'] = true;
  136. $config->product->all->dtable->fieldList['name']['link'] = array('module' => 'product', 'method' => 'browse', 'params' => "productID={id}");
  137. $config->product->all->dtable->fieldList['name']['sortType'] = true;
  138. $config->product->all->dtable->fieldList['name']['group'] = 'g1';
  139. if(!empty($config->setCode))
  140. {
  141. $config->product->all->dtable->fieldList['code']['name'] = 'code';
  142. $config->product->all->dtable->fieldList['code']['title'] = $lang->product->code;
  143. $config->product->all->dtable->fieldList['code']['width'] = 80;
  144. $config->product->all->dtable->fieldList['code']['type'] = 'format';
  145. $config->product->all->dtable->fieldList['code']['show'] = true;
  146. $config->product->all->dtable->fieldList['code']['sortType'] = true;
  147. $config->product->all->dtable->fieldList['code']['group'] = 'g1';
  148. }
  149. $config->product->all->dtable->fieldList['productLine']['name'] = 'productLine';
  150. $config->product->all->dtable->fieldList['productLine']['title'] = $lang->product->belongingLine;
  151. $config->product->all->dtable->fieldList['productLine']['width'] = 136;
  152. $config->product->all->dtable->fieldList['productLine']['type'] = 'format';
  153. $config->product->all->dtable->fieldList['productLine']['show'] = true;
  154. $config->product->all->dtable->fieldList['productLine']['sortType'] = true;
  155. $config->product->all->dtable->fieldList['productLine']['group'] = 'g2';
  156. $config->product->all->dtable->fieldList['PO']['name'] = 'PO';
  157. $config->product->all->dtable->fieldList['PO']['title'] = $lang->product->manager;
  158. $config->product->all->dtable->fieldList['PO']['width'] = 108;
  159. $config->product->all->dtable->fieldList['PO']['type'] = 'avatarBtn';
  160. $config->product->all->dtable->fieldList['PO']['show'] = true;
  161. $config->product->all->dtable->fieldList['PO']['sortType'] = true;
  162. $config->product->all->dtable->fieldList['PO']['group'] = 'g3';
  163. $config->product->all->dtable->fieldList['createdBy']['name'] = 'createdBy';
  164. $config->product->all->dtable->fieldList['createdBy']['title'] = $lang->openedByAB;
  165. $config->product->all->dtable->fieldList['createdBy']['width'] = 80;
  166. $config->product->all->dtable->fieldList['createdBy']['type'] = 'user';
  167. $config->product->all->dtable->fieldList['createdBy']['sortType'] = true;
  168. $config->product->all->dtable->fieldList['createdBy']['group'] = '1';
  169. $config->product->all->dtable->fieldList['createdDate']['name'] = 'createdDate';
  170. $config->product->all->dtable->fieldList['createdDate']['title'] = $lang->product->createdDate;
  171. $config->product->all->dtable->fieldList['createdDate']['width'] = 90;
  172. $config->product->all->dtable->fieldList['createdDate']['type'] = 'date';
  173. $config->product->all->dtable->fieldList['createdDate']['sortType'] = true;
  174. $config->product->all->dtable->fieldList['createdDate']['group'] = '1';
  175. if($config->enableER)
  176. {
  177. $config->product->all->dtable->fieldList['draftEpics']['name'] = 'draftEpics';
  178. $config->product->all->dtable->fieldList['draftEpics']['title'] = $lang->product->draftStory;
  179. $config->product->all->dtable->fieldList['draftEpics']['width'] = 64;
  180. $config->product->all->dtable->fieldList['draftEpics']['type'] = 'number';
  181. $config->product->all->dtable->fieldList['draftEpics']['show'] = true;
  182. $config->product->all->dtable->fieldList['draftEpics']['sortType'] = true;
  183. $config->product->all->dtable->fieldList['draftEpics']['group'] = 'epicCount';
  184. $config->product->all->dtable->fieldList['draftEpics']['headerGroup'] = $lang->ERCommon;
  185. $config->product->all->dtable->fieldList['activeEpics']['name'] = 'activeEpics';
  186. $config->product->all->dtable->fieldList['activeEpics']['title'] = $lang->product->activeStory;
  187. $config->product->all->dtable->fieldList['activeEpics']['width'] = 64;
  188. $config->product->all->dtable->fieldList['activeEpics']['type'] = 'number';
  189. $config->product->all->dtable->fieldList['activeEpics']['show'] = true;
  190. $config->product->all->dtable->fieldList['activeEpics']['sortType'] = true;
  191. $config->product->all->dtable->fieldList['activeEpics']['group'] = 'epicCount';
  192. $config->product->all->dtable->fieldList['activeEpics']['headerGroup'] = $lang->ERCommon;
  193. $config->product->all->dtable->fieldList['changingEpics']['name'] = 'changingEpics';
  194. $config->product->all->dtable->fieldList['changingEpics']['title'] = $lang->product->changingStory;
  195. $config->product->all->dtable->fieldList['changingEpics']['width'] = 64;
  196. $config->product->all->dtable->fieldList['changingEpics']['type'] = 'number';
  197. $config->product->all->dtable->fieldList['changingEpics']['show'] = true;
  198. $config->product->all->dtable->fieldList['changingEpics']['sortType'] = true;
  199. $config->product->all->dtable->fieldList['changingEpics']['group'] = 'epicCount';
  200. $config->product->all->dtable->fieldList['changingEpics']['headerGroup'] = $lang->ERCommon;
  201. $config->product->all->dtable->fieldList['reviewingEpics']['name'] = 'reviewingEpics';
  202. $config->product->all->dtable->fieldList['reviewingEpics']['title'] = $lang->product->reviewingStory;
  203. $config->product->all->dtable->fieldList['reviewingEpics']['width'] = 64;
  204. $config->product->all->dtable->fieldList['reviewingEpics']['type'] = 'number';
  205. $config->product->all->dtable->fieldList['reviewingEpics']['show'] = true;
  206. $config->product->all->dtable->fieldList['reviewingEpics']['sortType'] = true;
  207. $config->product->all->dtable->fieldList['reviewingEpics']['group'] = 'epicCount';
  208. $config->product->all->dtable->fieldList['reviewingEpics']['headerGroup'] = $lang->ERCommon;
  209. $config->product->all->dtable->fieldList['totalEpics']['name'] = 'totalEpics';
  210. $config->product->all->dtable->fieldList['totalEpics']['title'] = $lang->product->totalEpics;
  211. $config->product->all->dtable->fieldList['totalEpics']['width'] = 92;
  212. $config->product->all->dtable->fieldList['totalEpics']['minWidth'] = 100;
  213. $config->product->all->dtable->fieldList['totalEpics']['type'] = 'number';
  214. $config->product->all->dtable->fieldList['totalEpics']['sortType'] = true;
  215. $config->product->all->dtable->fieldList['totalEpics']['group'] = 'epicCount';
  216. $config->product->all->dtable->fieldList['totalEpics']['headerGroup'] = $lang->ERCommon;
  217. $config->product->all->dtable->fieldList['epicCompleteRate']['name'] = 'epicCompleteRate';
  218. $config->product->all->dtable->fieldList['epicCompleteRate']['title'] = $lang->product->completeRate;
  219. $config->product->all->dtable->fieldList['epicCompleteRate']['width'] = 64;
  220. $config->product->all->dtable->fieldList['epicCompleteRate']['type'] = 'progress';
  221. $config->product->all->dtable->fieldList['epicCompleteRate']['show'] = true;
  222. $config->product->all->dtable->fieldList['epicCompleteRate']['sortType'] = false;
  223. $config->product->all->dtable->fieldList['epicCompleteRate']['group'] = 'epicCount';
  224. $config->product->all->dtable->fieldList['epicCompleteRate']['headerGroup'] = $lang->ERCommon;
  225. if($isEn)
  226. {
  227. $config->product->all->dtable->fieldList['changingEpics']['width'] = 96;
  228. $config->product->all->dtable->fieldList['reviewingEpics']['width'] = 96;
  229. $config->product->all->dtable->fieldList['epicCompleteRate']['width'] = 112;
  230. }
  231. }
  232. if($config->URAndSR)
  233. {
  234. $config->product->all->dtable->fieldList['draftRequirements']['name'] = 'draftRequirements';
  235. $config->product->all->dtable->fieldList['draftRequirements']['title'] = $lang->product->draftStory;
  236. $config->product->all->dtable->fieldList['draftRequirements']['width'] = 64;
  237. $config->product->all->dtable->fieldList['draftRequirements']['type'] = 'number';
  238. $config->product->all->dtable->fieldList['draftRequirements']['show'] = true;
  239. $config->product->all->dtable->fieldList['draftRequirements']['sortType'] = true;
  240. $config->product->all->dtable->fieldList['draftRequirements']['group'] = 'requirementCount';
  241. $config->product->all->dtable->fieldList['draftRequirements']['headerGroup'] = $lang->URCommon;
  242. $config->product->all->dtable->fieldList['activeRequirements']['name'] = 'activeRequirements';
  243. $config->product->all->dtable->fieldList['activeRequirements']['title'] = $lang->product->activeStory;
  244. $config->product->all->dtable->fieldList['activeRequirements']['width'] = 64;
  245. $config->product->all->dtable->fieldList['activeRequirements']['type'] = 'number';
  246. $config->product->all->dtable->fieldList['activeRequirements']['show'] = true;
  247. $config->product->all->dtable->fieldList['activeRequirements']['sortType'] = true;
  248. $config->product->all->dtable->fieldList['activeRequirements']['group'] = 'requirementCount';
  249. $config->product->all->dtable->fieldList['activeRequirements']['headerGroup'] = $lang->URCommon;
  250. $config->product->all->dtable->fieldList['changingRequirements']['name'] = 'changingRequirements';
  251. $config->product->all->dtable->fieldList['changingRequirements']['title'] = $lang->product->changingStory;
  252. $config->product->all->dtable->fieldList['changingRequirements']['width'] = 64;
  253. $config->product->all->dtable->fieldList['changingRequirements']['type'] = 'number';
  254. $config->product->all->dtable->fieldList['changingRequirements']['show'] = true;
  255. $config->product->all->dtable->fieldList['changingRequirements']['sortType'] = true;
  256. $config->product->all->dtable->fieldList['changingRequirements']['group'] = 'requirementCount';
  257. $config->product->all->dtable->fieldList['changingRequirements']['headerGroup'] = $lang->URCommon;
  258. $config->product->all->dtable->fieldList['reviewingRequirements']['name'] = 'reviewingRequirements';
  259. $config->product->all->dtable->fieldList['reviewingRequirements']['title'] = $lang->product->reviewingStory;
  260. $config->product->all->dtable->fieldList['reviewingRequirements']['width'] = 64;
  261. $config->product->all->dtable->fieldList['reviewingRequirements']['type'] = 'number';
  262. $config->product->all->dtable->fieldList['reviewingRequirements']['show'] = true;
  263. $config->product->all->dtable->fieldList['reviewingRequirements']['sortType'] = true;
  264. $config->product->all->dtable->fieldList['reviewingRequirements']['group'] = 'requirementCount';
  265. $config->product->all->dtable->fieldList['reviewingRequirements']['headerGroup'] = $lang->URCommon;
  266. $config->product->all->dtable->fieldList['totalRequirements']['name'] = 'totalRequirements';
  267. $config->product->all->dtable->fieldList['totalRequirements']['title'] = $lang->product->totalRequirements;
  268. $config->product->all->dtable->fieldList['totalRequirements']['width'] = 92;
  269. $config->product->all->dtable->fieldList['totalRequirements']['minWidth'] = 100;
  270. $config->product->all->dtable->fieldList['totalRequirements']['type'] = 'number';
  271. $config->product->all->dtable->fieldList['totalRequirements']['sortType'] = true;
  272. $config->product->all->dtable->fieldList['totalRequirements']['group'] = 'requirementCount';
  273. $config->product->all->dtable->fieldList['totalRequirements']['headerGroup'] = $lang->URCommon;
  274. $config->product->all->dtable->fieldList['requirementCompleteRate']['name'] = 'requirementCompleteRate';
  275. $config->product->all->dtable->fieldList['requirementCompleteRate']['title'] = $lang->product->completeRate;
  276. $config->product->all->dtable->fieldList['requirementCompleteRate']['width'] = 64;
  277. $config->product->all->dtable->fieldList['requirementCompleteRate']['type'] = 'progress';
  278. $config->product->all->dtable->fieldList['requirementCompleteRate']['show'] = true;
  279. $config->product->all->dtable->fieldList['requirementCompleteRate']['sortType'] = false;
  280. $config->product->all->dtable->fieldList['requirementCompleteRate']['group'] = 'requirementCount';
  281. $config->product->all->dtable->fieldList['requirementCompleteRate']['headerGroup'] = $lang->URCommon;
  282. if($isEn)
  283. {
  284. $config->product->all->dtable->fieldList['changingRequirements']['width'] = 96;
  285. $config->product->all->dtable->fieldList['reviewingRequirements']['width'] = 96;
  286. $config->product->all->dtable->fieldList['requirementCompleteRate']['width'] = 112;
  287. }
  288. }
  289. $config->product->all->dtable->fieldList['draftStories']['name'] = 'draftStories';
  290. $config->product->all->dtable->fieldList['draftStories']['title'] = $lang->product->draftStory;
  291. $config->product->all->dtable->fieldList['draftStories']['width'] = 64;
  292. $config->product->all->dtable->fieldList['draftStories']['type'] = 'number';
  293. $config->product->all->dtable->fieldList['draftStories']['show'] = true;
  294. $config->product->all->dtable->fieldList['draftStories']['sortType'] = true;
  295. $config->product->all->dtable->fieldList['draftStories']['group'] = 'storyCount';
  296. $config->product->all->dtable->fieldList['draftStories']['headerGroup'] = $lang->SRCommon;
  297. $config->product->all->dtable->fieldList['activeStories']['name'] = 'activeStories';
  298. $config->product->all->dtable->fieldList['activeStories']['title'] = $lang->product->activeStory;
  299. $config->product->all->dtable->fieldList['activeStories']['width'] = 64;
  300. $config->product->all->dtable->fieldList['activeStories']['type'] = 'number';
  301. $config->product->all->dtable->fieldList['activeStories']['show'] = true;
  302. $config->product->all->dtable->fieldList['activeStories']['sortType'] = true;
  303. $config->product->all->dtable->fieldList['activeStories']['group'] = 'storyCount';
  304. $config->product->all->dtable->fieldList['activeStories']['headerGroup'] = $lang->SRCommon;
  305. $config->product->all->dtable->fieldList['changingStories']['name'] = 'changingStories';
  306. $config->product->all->dtable->fieldList['changingStories']['title'] = $lang->product->changingStory;
  307. $config->product->all->dtable->fieldList['changingStories']['width'] = 64;
  308. $config->product->all->dtable->fieldList['changingStories']['type'] = 'number';
  309. $config->product->all->dtable->fieldList['changingStories']['show'] = true;
  310. $config->product->all->dtable->fieldList['changingStories']['sortType'] = true;
  311. $config->product->all->dtable->fieldList['changingStories']['group'] = 'storyCount';
  312. $config->product->all->dtable->fieldList['changingStories']['headerGroup'] = $lang->SRCommon;
  313. $config->product->all->dtable->fieldList['reviewingStories']['name'] = 'reviewingStories';
  314. $config->product->all->dtable->fieldList['reviewingStories']['title'] = $lang->product->reviewingStory;
  315. $config->product->all->dtable->fieldList['reviewingStories']['width'] = 64;
  316. $config->product->all->dtable->fieldList['reviewingStories']['type'] = 'number';
  317. $config->product->all->dtable->fieldList['reviewingStories']['show'] = true;
  318. $config->product->all->dtable->fieldList['reviewingStories']['sortType'] = true;
  319. $config->product->all->dtable->fieldList['reviewingStories']['group'] = 'storyCount';
  320. $config->product->all->dtable->fieldList['reviewingStories']['headerGroup'] = $lang->SRCommon;
  321. $config->product->all->dtable->fieldList['totalStories']['name'] = 'totalStories';
  322. $config->product->all->dtable->fieldList['totalStories']['title'] = $lang->product->totalStories;
  323. $config->product->all->dtable->fieldList['totalStories']['width'] = 92;
  324. $config->product->all->dtable->fieldList['totalStories']['minWidth'] = 100;
  325. $config->product->all->dtable->fieldList['totalStories']['type'] = 'number';
  326. $config->product->all->dtable->fieldList['totalStories']['sortType'] = true;
  327. $config->product->all->dtable->fieldList['totalStories']['group'] = 'storyCount';
  328. $config->product->all->dtable->fieldList['totalStories']['headerGroup'] = $lang->SRCommon;
  329. $config->product->all->dtable->fieldList['storyCompleteRate']['name'] = 'storyCompleteRate';
  330. $config->product->all->dtable->fieldList['storyCompleteRate']['title'] = $lang->product->completeRate;
  331. $config->product->all->dtable->fieldList['storyCompleteRate']['width'] = 64;
  332. $config->product->all->dtable->fieldList['storyCompleteRate']['type'] = 'progress';
  333. $config->product->all->dtable->fieldList['storyCompleteRate']['show'] = true;
  334. $config->product->all->dtable->fieldList['storyCompleteRate']['sortType'] = false;
  335. $config->product->all->dtable->fieldList['storyCompleteRate']['group'] = 'storyCount';
  336. $config->product->all->dtable->fieldList['storyCompleteRate']['headerGroup'] = $lang->SRCommon;
  337. $config->product->all->dtable->fieldList['plans']['name'] = 'plans';
  338. $config->product->all->dtable->fieldList['plans']['title'] = $lang->product->plan;
  339. $config->product->all->dtable->fieldList['plans']['width'] = 64;
  340. $config->product->all->dtable->fieldList['plans']['type'] = 'number';
  341. $config->product->all->dtable->fieldList['plans']['show'] = true;
  342. $config->product->all->dtable->fieldList['plans']['sortType'] = true;
  343. $config->product->all->dtable->fieldList['plans']['group'] = 'g5';
  344. $config->product->all->dtable->fieldList['executions']['name'] = 'executions';
  345. $config->product->all->dtable->fieldList['executions']['title'] = $lang->execution->common;
  346. $config->product->all->dtable->fieldList['executions']['width'] = 64;
  347. $config->product->all->dtable->fieldList['executions']['type'] = 'number';
  348. $config->product->all->dtable->fieldList['executions']['show'] = true;
  349. $config->product->all->dtable->fieldList['executions']['sortType'] = false;
  350. $config->product->all->dtable->fieldList['executions']['group'] = 'g6';
  351. $config->product->all->dtable->fieldList['testCaseCoverage']['name'] = 'testCaseCoverage';
  352. $config->product->all->dtable->fieldList['testCaseCoverage']['title'] = $lang->product->testCaseCoverage;
  353. $config->product->all->dtable->fieldList['testCaseCoverage']['width'] = 80;
  354. $config->product->all->dtable->fieldList['testCaseCoverage']['type'] = 'progress';
  355. $config->product->all->dtable->fieldList['testCaseCoverage']['minWidth'] = 80;
  356. $config->product->all->dtable->fieldList['testCaseCoverage']['show'] = true;
  357. $config->product->all->dtable->fieldList['testCaseCoverage']['sortType'] = false;
  358. $config->product->all->dtable->fieldList['testCaseCoverage']['hint'] = $lang->product->testCaseCoverageInfo;
  359. $config->product->all->dtable->fieldList['testCaseCoverage']['group'] = 'g7';
  360. $config->product->all->dtable->fieldList['unresolvedBugs']['name'] = 'unresolvedBugs';
  361. $config->product->all->dtable->fieldList['unresolvedBugs']['title'] = $lang->product->activatedBug;
  362. $config->product->all->dtable->fieldList['unresolvedBugs']['width'] = 64;
  363. $config->product->all->dtable->fieldList['unresolvedBugs']['minWidth'] = 86;
  364. $config->product->all->dtable->fieldList['unresolvedBugs']['type'] = 'number';
  365. $config->product->all->dtable->fieldList['unresolvedBugs']['show'] = true;
  366. $config->product->all->dtable->fieldList['unresolvedBugs']['sortType'] = true;
  367. $config->product->all->dtable->fieldList['unresolvedBugs']['group'] = 'g8';
  368. $config->product->all->dtable->fieldList['totalBugs']['name'] = 'totalBugs';
  369. $config->product->all->dtable->fieldList['totalBugs']['title'] = $lang->product->totalBugs;
  370. $config->product->all->dtable->fieldList['totalBugs']['width'] = 64;
  371. $config->product->all->dtable->fieldList['totalBugs']['minWidth'] = 86;
  372. $config->product->all->dtable->fieldList['totalBugs']['type'] = 'number';
  373. $config->product->all->dtable->fieldList['totalBugs']['sortType'] = true;
  374. $config->product->all->dtable->fieldList['totalBugs']['group'] = 'g8';
  375. $config->product->all->dtable->fieldList['bugFixedRate']['name'] = 'bugFixedRate';
  376. $config->product->all->dtable->fieldList['bugFixedRate']['title'] = $lang->product->bugFixedRate;
  377. $config->product->all->dtable->fieldList['bugFixedRate']['width'] = 64;
  378. $config->product->all->dtable->fieldList['bugFixedRate']['type'] = 'progress';
  379. $config->product->all->dtable->fieldList['bugFixedRate']['show'] = true;
  380. $config->product->all->dtable->fieldList['bugFixedRate']['sortType'] = false;
  381. $config->product->all->dtable->fieldList['bugFixedRate']['group'] = 'g8';
  382. $config->product->all->dtable->fieldList['releases']['name'] = 'releases';
  383. $config->product->all->dtable->fieldList['releases']['title'] = $lang->product->release;
  384. $config->product->all->dtable->fieldList['releases']['width'] = 95;
  385. $config->product->all->dtable->fieldList['releases']['type'] = 'number';
  386. $config->product->all->dtable->fieldList['releases']['show'] = true;
  387. $config->product->all->dtable->fieldList['releases']['sortType'] = true;
  388. $config->product->all->dtable->fieldList['releases']['group'] = 'g9';
  389. $config->product->all->dtable->fieldList['latestReleaseDate']['name'] = 'latestReleaseDate';
  390. $config->product->all->dtable->fieldList['latestReleaseDate']['title'] = $lang->product->latestReleaseDate;
  391. $config->product->all->dtable->fieldList['latestReleaseDate']['width'] = 120;
  392. $config->product->all->dtable->fieldList['latestReleaseDate']['minWidth'] = 120;
  393. $config->product->all->dtable->fieldList['latestReleaseDate']['type'] = 'date';
  394. $config->product->all->dtable->fieldList['latestReleaseDate']['sortType'] = false;
  395. $config->product->all->dtable->fieldList['latestReleaseDate']['group'] = 'g9';
  396. $config->product->all->dtable->fieldList['latestRelease']['name'] = 'latestRelease';
  397. $config->product->all->dtable->fieldList['latestRelease']['title'] = $lang->product->latestRelease;
  398. $config->product->all->dtable->fieldList['latestRelease']['width'] = 136;
  399. $config->product->all->dtable->fieldList['latestRelease']['minWidth'] = 80;
  400. $config->product->all->dtable->fieldList['latestRelease']['type'] = 'text';
  401. $config->product->all->dtable->fieldList['latestRelease']['filterType'] = true;
  402. $config->product->all->dtable->fieldList['latestRelease']['group'] = 'g9';
  403. if($isEn)
  404. {
  405. $config->product->all->dtable->fieldList['changingStories']['width'] = 96;
  406. $config->product->all->dtable->fieldList['reviewingStories']['width'] = 96;
  407. $config->product->all->dtable->fieldList['storyCompleteRate']['width'] = 112;
  408. $config->product->all->dtable->fieldList['executions']['width'] = 80;
  409. $config->product->all->dtable->fieldList['testCaseCoverage']['width'] = 136;
  410. $config->product->all->dtable->fieldList['unresolvedBugs']['width'] = 120;
  411. $config->product->all->dtable->fieldList['releases']['width'] = 120;
  412. $config->product->all->dtable->fieldList['PO']['width'] = 150;
  413. }
  414. if($config->systemMode != 'ALM' && $config->systemMode != 'PLM')
  415. {
  416. unset($config->product->dtable->fieldList['productLine']);
  417. unset($config->product->all->dtable->fieldList['productLine']);
  418. }