table.php 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. <?php
  2. $config->testreport->dtable = new stdclass();
  3. global $lang, $app;
  4. $config->testreport->actionList['edit']['icon'] = 'edit';
  5. $config->testreport->actionList['edit']['hint'] = $lang->testreport->edit;
  6. $config->testreport->actionList['edit']['text'] = $lang->testreport->edit;
  7. $config->testreport->actionList['edit']['url'] = array('module' => 'testreport', 'method' => 'edit', 'params' => 'reportID={id}');
  8. $config->testreport->actionList['edit']['data-app'] = $app->tab;
  9. $config->testreport->actionList['delete']['icon'] = 'trash';
  10. $config->testreport->actionList['delete']['hint'] = $lang->testreport->delete;
  11. $config->testreport->actionList['delete']['text'] = $lang->testreport->delete;
  12. $config->testreport->actionList['delete']['url'] = array('module' => 'testreport', 'method' => 'delete', 'params' => 'reportID={id}');
  13. $config->testreport->actionList['delete']['className'] = 'ajax-submit';
  14. $config->testreport->actionList['delete']['data-confirm'] = array('message' => $lang->testreport->confirmDelete, 'icon' => 'icon-exclamation-sign', 'iconClass' => 'warning-pale rounded-full icon-2x');
  15. $config->testreport->actionList['create']['icon'] = 'refresh';
  16. $config->testreport->actionList['create']['hint'] = $lang->testreport->recreate;
  17. $config->testreport->actionList['create']['text'] = $lang->testreport->recreate;
  18. $config->testreport->actionList['create']['url'] = array('module' => 'testreport', 'method' => 'create', 'params' => 'reportID={objectID}&objectType={objectType}&extra={tasks}');
  19. $config->testreport->actionList['create']['data-app'] = $app->tab;
  20. $config->testreport->dtable->fieldList['id']['name'] = 'id';
  21. $config->testreport->dtable->fieldList['id']['title'] = $lang->idAB;
  22. $config->testreport->dtable->fieldList['id']['type'] = 'ID';
  23. $config->testreport->dtable->fieldList['id']['align'] = 'left';
  24. $config->testreport->dtable->fieldList['id']['fixed'] = 'left';
  25. $config->testreport->dtable->fieldList['id']['sortType'] = true;
  26. $config->testreport->dtable->fieldList['id']['group'] = 1;
  27. $config->testreport->dtable->fieldList['title']['name'] = 'title';
  28. $config->testreport->dtable->fieldList['title']['title'] = $lang->testreport->title;
  29. $config->testreport->dtable->fieldList['title']['type'] = 'title';
  30. $config->testreport->dtable->fieldList['title']['minWidth'] = '200';
  31. $config->testreport->dtable->fieldList['title']['fixed'] = 'left';
  32. $config->testreport->dtable->fieldList['title']['link'] = array('module' => 'testreport', 'method' => 'view', 'params' => 'testreportID={id}');
  33. $config->testreport->dtable->fieldList['title']['sortType'] = true;
  34. $config->testreport->dtable->fieldList['title']['data-app'] = $app->tab;
  35. $config->testreport->dtable->fieldList['title']['group'] = 2;
  36. $config->testreport->dtable->fieldList['execution']['name'] = 'execution';
  37. $config->testreport->dtable->fieldList['execution']['title'] = $lang->testreport->object;
  38. $config->testreport->dtable->fieldList['execution']['sortType'] = true;
  39. $config->testreport->dtable->fieldList['execution']['hint'] = true;
  40. $config->testreport->dtable->fieldList['execution']['type'] = 'category';
  41. $config->testreport->dtable->fieldList['execution']['width'] = '180px';
  42. $config->testreport->dtable->fieldList['execution']['group'] = 3;
  43. $config->testreport->dtable->fieldList['tasks']['name'] = 'taskName';
  44. $config->testreport->dtable->fieldList['tasks']['title'] = $lang->testreport->testtask;
  45. $config->testreport->dtable->fieldList['tasks']['type'] = 'text';
  46. $config->testreport->dtable->fieldList['tasks']['group'] = 4;
  47. $config->testreport->dtable->fieldList['createdBy']['name'] = 'createdBy';
  48. $config->testreport->dtable->fieldList['createdBy']['title'] = $lang->testreport->createdBy;
  49. $config->testreport->dtable->fieldList['createdBy']['type'] = 'user';
  50. $config->testreport->dtable->fieldList['createdBy']['sortType'] = true;
  51. $config->testreport->dtable->fieldList['createdBy']['align'] = 'left';
  52. $config->testreport->dtable->fieldList['createdDate']['name'] = 'createdDate';
  53. $config->testreport->dtable->fieldList['createdDate']['title'] = $lang->testreport->createdDate;
  54. $config->testreport->dtable->fieldList['createdDate']['type'] = 'datetime';
  55. $config->testreport->dtable->fieldList['createdDate']['sortType'] = true;
  56. $config->testreport->dtable->fieldList['actions']['name'] = 'actions';
  57. $config->testreport->dtable->fieldList['actions']['title'] = $lang->actions;
  58. $config->testreport->dtable->fieldList['actions']['type'] = 'actions';
  59. $config->testreport->dtable->fieldList['actions']['fixed'] = 'right';
  60. $config->testreport->dtable->fieldList['actions']['list'] = $config->testreport->actionList;
  61. $config->testreport->dtable->fieldList['actions']['menu'] = array('create', 'edit', 'delete');
  62. $app->loadLang('story');
  63. $app->loadModuleConfig('story');
  64. $config->testreport->story = new stdclass();
  65. $config->testreport->story->dtable = new stdclass();
  66. $config->testreport->story->dtable->fieldList = array();
  67. $config->testreport->story->dtable->fieldList['id']['name'] = 'id';
  68. $config->testreport->story->dtable->fieldList['id']['title'] = $lang->idAB;
  69. $config->testreport->story->dtable->fieldList['id']['type'] = 'id';
  70. $config->testreport->story->dtable->fieldList['id']['sort'] = false;
  71. $config->testreport->story->dtable->fieldList['title'] = $config->story->dtable->fieldList['title'];
  72. $config->testreport->story->dtable->fieldList['pri'] = $config->story->dtable->fieldList['pri'];
  73. $config->testreport->story->dtable->fieldList['openedBy'] = $config->story->dtable->fieldList['openedBy'];
  74. $config->testreport->story->dtable->fieldList['assignedTo'] = $config->story->dtable->fieldList['assignedTo'];
  75. $config->testreport->story->dtable->fieldList['estimate'] = $config->story->dtable->fieldList['estimate'];
  76. $config->testreport->story->dtable->fieldList['status'] = $config->story->dtable->fieldList['status'];
  77. $config->testreport->story->dtable->fieldList['stage'] = $config->story->dtable->fieldList['stage'];
  78. $config->testreport->story->dtable->fieldList['pri'] = $config->story->dtable->fieldList['pri'];
  79. $config->testreport->story->dtable->fieldList['title']['sort'] = false;
  80. $config->testreport->story->dtable->fieldList['pri']['sort'] = false;
  81. $config->testreport->story->dtable->fieldList['openedBy']['sort'] = false;
  82. $config->testreport->story->dtable->fieldList['assignedTo']['sort'] = false;
  83. $config->testreport->story->dtable->fieldList['estimate']['sort'] = false;
  84. $config->testreport->story->dtable->fieldList['status']['sort'] = false;
  85. $config->testreport->story->dtable->fieldList['stage']['sort'] = false;
  86. $config->testreport->story->dtable->fieldList['pri']['sort'] = false;
  87. $config->testreport->story->dtable->fieldList['title']['nestedToggle'] = false;
  88. $config->testreport->story->dtable->fieldList['assignedTo']['type'] = 'user';
  89. $app->loadLang('bug');
  90. $app->loadModuleConfig('bug');
  91. $config->testreport->bug = new stdclass();
  92. $config->testreport->bug->dtable = new stdclass();
  93. $config->testreport->bug->dtable->fieldList = array();
  94. $config->testreport->bug->dtable->fieldList['id']['name'] = 'id';
  95. $config->testreport->bug->dtable->fieldList['id']['title'] = $lang->idAB;
  96. $config->testreport->bug->dtable->fieldList['id']['type'] = 'id';
  97. $config->testreport->bug->dtable->fieldList['id']['sort'] = false;
  98. $config->testreport->bug->dtable->fieldList['title'] = $config->bug->dtable->fieldList['title'];
  99. $config->testreport->bug->dtable->fieldList['severity'] = $config->bug->dtable->fieldList['severity'];
  100. $config->testreport->bug->dtable->fieldList['pri'] = $config->bug->dtable->fieldList['pri'];
  101. $config->testreport->bug->dtable->fieldList['status'] = $config->bug->dtable->fieldList['status'];
  102. $config->testreport->bug->dtable->fieldList['openedBy'] = $config->bug->dtable->fieldList['openedBy'];
  103. $config->testreport->bug->dtable->fieldList['resolvedBy'] = $config->bug->dtable->fieldList['resolvedBy'];
  104. $config->testreport->bug->dtable->fieldList['resolution'] = $config->bug->dtable->fieldList['resolution'];
  105. $config->testreport->bug->dtable->fieldList['resolvedDate'] = $config->bug->dtable->fieldList['resolvedDate'];
  106. $config->testreport->bug->dtable->fieldList['title']['sort'] = false;
  107. $config->testreport->bug->dtable->fieldList['severity']['sort'] = false;
  108. $config->testreport->bug->dtable->fieldList['pri']['sort'] = false;
  109. $config->testreport->bug->dtable->fieldList['status']['sort'] = false;
  110. $config->testreport->bug->dtable->fieldList['openedBy']['sort'] = false;
  111. $config->testreport->bug->dtable->fieldList['resolvedBy']['sort'] = false;
  112. $config->testreport->bug->dtable->fieldList['resolution']['sort'] = false;
  113. $config->testreport->bug->dtable->fieldList['resolvedDate']['sort'] = false;
  114. $app->loadLang('build');
  115. $app->loadModuleConfig('build');
  116. $config->testreport->build = new stdclass();
  117. $config->testreport->build->dtable = new stdclass();
  118. $config->testreport->build->dtable->fieldList = array();
  119. $config->testreport->build->dtable->fieldList['id']['name'] = 'id';
  120. $config->testreport->build->dtable->fieldList['id']['title'] = $lang->idAB;
  121. $config->testreport->build->dtable->fieldList['id']['type'] = 'id';
  122. $config->testreport->build->dtable->fieldList['id']['sort'] = false;
  123. $config->testreport->build->dtable->fieldList['name'] = $config->build->dtable->fieldList['name'];
  124. $config->testreport->build->dtable->fieldList['builder'] = $config->build->dtable->fieldList['builder'];
  125. $config->testreport->build->dtable->fieldList['date'] = $config->build->dtable->fieldList['date'];
  126. $config->testreport->build->dtable->fieldList['name']['sort'] = false;
  127. $config->testreport->build->dtable->fieldList['builder']['sort'] = false;
  128. $config->testreport->build->dtable->fieldList['date']['sort'] = false;
  129. $app->loadLang('testcase');
  130. $app->loadModuleConfig('testcase');
  131. $config->testreport->testcase = new stdclass();
  132. $config->testreport->testcase->dtable = new stdclass();
  133. $config->testreport->testcase->dtable->fieldList = array();
  134. $config->testreport->testcase->dtable->fieldList['id']['name'] = 'id';
  135. $config->testreport->testcase->dtable->fieldList['id']['title'] = $lang->idAB;
  136. $config->testreport->testcase->dtable->fieldList['id']['type'] = 'id';
  137. $config->testreport->testcase->dtable->fieldList['id']['sort'] = false;
  138. $config->testreport->testcase->dtable->fieldList['title'] = $config->testcase->dtable->fieldList['title'];
  139. $config->testreport->testcase->dtable->fieldList['pri'] = $config->testcase->dtable->fieldList['pri'];
  140. $config->testreport->testcase->dtable->fieldList['status'] = $config->testcase->dtable->fieldList['status'];
  141. $config->testreport->testcase->dtable->fieldList['type'] = $config->testcase->dtable->fieldList['type'];
  142. $config->testreport->testcase->dtable->fieldList['title']['sort'] = false;
  143. $config->testreport->testcase->dtable->fieldList['pri']['sort'] = false;
  144. $config->testreport->testcase->dtable->fieldList['status']['sort'] = false;
  145. $config->testreport->testcase->dtable->fieldList['type']['sort'] = false;
  146. $config->testreport->testcase->dtable->fieldList['assignedTo']['title'] = $lang->testcase->assignedTo;
  147. $config->testreport->testcase->dtable->fieldList['assignedTo']['type'] = 'user';
  148. $config->testreport->testcase->dtable->fieldList['assignedTo']['sort'] = false;
  149. $config->testreport->testcase->dtable->fieldList['lastRunner'] = $config->testcase->dtable->fieldList['lastRunner'];
  150. $config->testreport->testcase->dtable->fieldList['lastRunDate'] = $config->testcase->dtable->fieldList['lastRunDate'];
  151. $config->testreport->testcase->dtable->fieldList['lastRunResult'] = $config->testcase->dtable->fieldList['lastRunResult'];
  152. $config->testreport->testcase->dtable->fieldList['lastRunner']['sort'] = false;
  153. $config->testreport->testcase->dtable->fieldList['lastRunDate']['sort'] = false;
  154. $config->testreport->testcase->dtable->fieldList['lastRunResult']['sort'] = false;
  155. $config->testreport->testcase->dtable->fieldList['title']['nestedToggle'] = false;