table.php 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417
  1. <?php
  2. global $lang, $app;
  3. $config->testcase->dtable = new stdclass();
  4. $config->testcase->dtable->fieldList['id']['title'] = $lang->idAB;
  5. $config->testcase->dtable->fieldList['id']['name'] = 'caseID';
  6. $config->testcase->dtable->fieldList['id']['type'] = 'checkID';
  7. $config->testcase->dtable->fieldList['id']['fixed'] = 'left';
  8. $config->testcase->dtable->fieldList['id']['sortType'] = true;
  9. $config->testcase->dtable->fieldList['id']['required'] = true;
  10. $config->testcase->dtable->fieldList['id']['group'] = 1;
  11. $config->testcase->dtable->fieldList['title']['title'] = $lang->testcase->title;
  12. $config->testcase->dtable->fieldList['title']['type'] = 'title';
  13. $config->testcase->dtable->fieldList['title']['fixed'] = 'left';
  14. $config->testcase->dtable->fieldList['title']['sortType'] = true;
  15. $config->testcase->dtable->fieldList['title']['nestedToggle'] = true;
  16. $config->testcase->dtable->fieldList['title']['link'] = array('module' => 'testcase', 'method' => 'view', 'params' => "caseID={caseID}");
  17. $config->testcase->dtable->fieldList['title']['required'] = true;
  18. $config->testcase->dtable->fieldList['title']['group'] = 1;
  19. $config->testcase->dtable->fieldList['title']['data-app'] = $app->tab;
  20. $config->testcase->dtable->fieldList['branch']['title'] = $lang->testcase->branch;
  21. $config->testcase->dtable->fieldList['branch']['type'] = 'text';
  22. $config->testcase->dtable->fieldList['branch']['group'] = 2;
  23. $config->testcase->dtable->fieldList['branch']['dataSource'] = array('module' => 'branch', 'method' => 'getPairs', 'params' => ['productID' => (int)'$productID']);
  24. $config->testcase->dtable->fieldList['pri']['title'] = $lang->testcase->pri;
  25. $config->testcase->dtable->fieldList['pri']['type'] = 'pri';
  26. $config->testcase->dtable->fieldList['pri']['sortType'] = true;
  27. $config->testcase->dtable->fieldList['pri']['show'] = true;
  28. $config->testcase->dtable->fieldList['pri']['group'] = 2;
  29. $config->testcase->dtable->fieldList['pri']['priList'] = $lang->testcase->priList;
  30. $config->testcase->dtable->fieldList['scene']['title'] = $lang->testcase->scene;
  31. $config->testcase->dtable->fieldList['scene']['type'] = 'category';
  32. $config->testcase->dtable->fieldList['scene']['map'] = $lang->testcase->typeList;
  33. $config->testcase->dtable->fieldList['scene']['group'] = 2;
  34. $config->testcase->dtable->fieldList['scene']['sortType'] = true;
  35. $config->testcase->dtable->fieldList['scene']['dataSource'] = array('module' => 'testcase', 'method' => 'getSceneMenu', 'params' => ['productID' => (int)'$productID', 'moduleID' => (int)'$moduleID', 'branch' => 'all']);
  36. $config->testcase->dtable->fieldList['type']['title'] = $lang->testcase->type;
  37. $config->testcase->dtable->fieldList['type']['type'] = 'category';
  38. $config->testcase->dtable->fieldList['type']['map'] = $lang->testcase->typeList;
  39. $config->testcase->dtable->fieldList['type']['group'] = 2;
  40. $config->testcase->dtable->fieldList['type']['sortType'] = true;
  41. $config->testcase->dtable->fieldList['status']['title'] = $lang->testcase->status;
  42. $config->testcase->dtable->fieldList['status']['type'] = 'status';
  43. $config->testcase->dtable->fieldList['status']['statusMap'] = $lang->testcase->statusList;
  44. $config->testcase->dtable->fieldList['status']['group'] = 2;
  45. $config->testcase->dtable->fieldList['status']['sortType'] = true;
  46. $config->testcase->dtable->fieldList['stage']['title'] = $lang->testcase->stage;
  47. $config->testcase->dtable->fieldList['stage']['type'] = 'text';
  48. $config->testcase->dtable->fieldList['stage']['group'] = 2;
  49. $config->testcase->dtable->fieldList['stage']['sortType'] = true;
  50. $config->testcase->dtable->fieldList['precondition']['title'] = $lang->testcase->precondition;
  51. $config->testcase->dtable->fieldList['precondition']['type'] = 'desc';
  52. $config->testcase->dtable->fieldList['precondition']['group'] = 3;
  53. $config->testcase->dtable->fieldList['precondition']['sortType'] = true;
  54. $config->testcase->dtable->fieldList['story']['title'] = $lang->testcase->story;
  55. $config->testcase->dtable->fieldList['story']['type'] = 'desc';
  56. $config->testcase->dtable->fieldList['story']['hint'] = '{storyTitle}';
  57. $config->testcase->dtable->fieldList['story']['link'] = array('module' => 'story', 'method' => 'view', 'params' => "storyID={story}");
  58. $config->testcase->dtable->fieldList['story']['group'] = 3;
  59. $config->testcase->dtable->fieldList['story']['control'] = 'select';
  60. $config->testcase->dtable->fieldList['story']['dataSource'] = array('module' => 'story', 'method' => 'getProductStoryPairs', 'params' => ['productIdList' => (int)'$productID', 'branch' => '$branch', 'moduleIdList' => '', 'status' => 'all', 'order' => 'id_desc', 'limit' => 0, 'type' => 'story']);
  61. $config->testcase->dtable->fieldList['keywords']['title'] = $lang->testcase->keywords;
  62. $config->testcase->dtable->fieldList['keywords']['type'] = 'text';
  63. $config->testcase->dtable->fieldList['keywords']['group'] = 3;
  64. $config->testcase->dtable->fieldList['keywords']['sortType'] = true;
  65. $config->testcase->dtable->fieldList['openedBy']['title'] = $lang->testcase->openedByAB;
  66. $config->testcase->dtable->fieldList['openedBy']['type'] = 'user';
  67. $config->testcase->dtable->fieldList['openedBy']['show'] = true;
  68. $config->testcase->dtable->fieldList['openedBy']['group'] = 4;
  69. $config->testcase->dtable->fieldList['openedBy']['sortType'] = true;
  70. $config->testcase->dtable->fieldList['openedDate']['title'] = $lang->testcase->openedDate;
  71. $config->testcase->dtable->fieldList['openedDate']['type'] = 'date';
  72. $config->testcase->dtable->fieldList['openedDate']['group'] = 4;
  73. $config->testcase->dtable->fieldList['openedDate']['sortType'] = true;
  74. $config->testcase->dtable->fieldList['reviewedBy']['title'] = $lang->testcase->reviewedByAB;
  75. $config->testcase->dtable->fieldList['reviewedBy']['type'] = 'text';
  76. $config->testcase->dtable->fieldList['reviewedBy']['group'] = 4;
  77. $config->testcase->dtable->fieldList['reviewedBy']['sortType'] = true;
  78. $config->testcase->dtable->fieldList['reviewedDate']['title'] = $lang->testcase->reviewedDate;
  79. $config->testcase->dtable->fieldList['reviewedDate']['type'] = 'date';
  80. $config->testcase->dtable->fieldList['reviewedDate']['group'] = 4;
  81. $config->testcase->dtable->fieldList['reviewedDate']['sortType'] = true;
  82. $config->testcase->dtable->fieldList['lastRunner']['title'] = $lang->testcase->lastRunner;
  83. $config->testcase->dtable->fieldList['lastRunner']['type'] = 'user';
  84. $config->testcase->dtable->fieldList['lastRunner']['show'] = true;
  85. $config->testcase->dtable->fieldList['lastRunner']['group'] = 4;
  86. $config->testcase->dtable->fieldList['lastRunner']['sortType'] = true;
  87. $config->testcase->dtable->fieldList['lastRunDate']['title'] = $lang->testcase->lastRunDate;
  88. $config->testcase->dtable->fieldList['lastRunDate']['type'] = 'datetime';
  89. $config->testcase->dtable->fieldList['lastRunDate']['sortType'] = true;
  90. $config->testcase->dtable->fieldList['lastRunDate']['show'] = true;
  91. $config->testcase->dtable->fieldList['lastRunDate']['group'] = 4;
  92. $config->testcase->dtable->fieldList['lastRunResult']['title'] = $lang->testcase->lastRunResult;
  93. $config->testcase->dtable->fieldList['lastRunResult']['type'] = 'status';
  94. $config->testcase->dtable->fieldList['lastRunResult']['statusMap'] = $lang->testcase->resultList;
  95. $config->testcase->dtable->fieldList['lastRunResult']['show'] = true;
  96. $config->testcase->dtable->fieldList['lastRunResult']['group'] = 4;
  97. $config->testcase->dtable->fieldList['lastRunResult']['sortType'] = true;
  98. $config->testcase->dtable->fieldList['lastRunResult']['dataSource'] = array('lang' => 'resultList');
  99. $config->testcase->dtable->fieldList['bugs']['title'] = $lang->testcase->bugsAB;
  100. $config->testcase->dtable->fieldList['bugs']['link'] = array('module' => 'testcase', 'method' => 'bugs', 'params' => "runID=0&caseID={caseID}");
  101. $config->testcase->dtable->fieldList['bugs']['type'] = 'number';
  102. $config->testcase->dtable->fieldList['bugs']['data-toggle'] = 'modal';
  103. $config->testcase->dtable->fieldList['bugs']['data-size'] = 'lg';
  104. $config->testcase->dtable->fieldList['bugs']['group'] = 5;
  105. $config->testcase->dtable->fieldList['bugs']['sortType'] = false;
  106. $config->testcase->dtable->fieldList['results']['title'] = $lang->testcase->resultsAB;
  107. $config->testcase->dtable->fieldList['results']['type'] = 'number';
  108. $config->testcase->dtable->fieldList['results']['group'] = 5;
  109. $config->testcase->dtable->fieldList['results']['sortType'] = false;
  110. $config->testcase->dtable->fieldList['stepNumber']['title'] = $lang->testcase->stepNumberAB;
  111. $config->testcase->dtable->fieldList['stepNumber']['type'] = 'number';
  112. $config->testcase->dtable->fieldList['stepNumber']['group'] = 5;
  113. $config->testcase->dtable->fieldList['stepNumber']['sortType'] = false;
  114. if($config->edition != 'open')
  115. {
  116. $app->loadLang('custom');
  117. $config->testcase->dtable->fieldList['relatedObject']['name'] = 'relatedObject';
  118. $config->testcase->dtable->fieldList['relatedObject']['title'] = $lang->custom->relateObject;
  119. $config->testcase->dtable->fieldList['relatedObject']['sortType'] = false;
  120. $config->testcase->dtable->fieldList['relatedObject']['width'] = '70';
  121. $config->testcase->dtable->fieldList['relatedObject']['type'] = 'text';
  122. $config->testcase->dtable->fieldList['relatedObject']['link'] = common::hasPriv('custom', 'showRelationGraph') ? "RAWJS<function(info){ if(info.row.data.relatedObject == 0) return 0; else return '" . helper::createLink('custom', 'showRelationGraph', 'objectID={caseID}&objectType=testcase') . "'; }>RAWJS" : null;
  123. $config->testcase->dtable->fieldList['relatedObject']['data-toggle'] = 'modal';
  124. $config->testcase->dtable->fieldList['relatedObject']['data-size'] = 'lg';
  125. $config->testcase->dtable->fieldList['relatedObject']['show'] = true;
  126. $config->testcase->dtable->fieldList['relatedObject']['group'] = 5;
  127. $config->testcase->dtable->fieldList['relatedObject']['flex'] = false;
  128. $config->testcase->dtable->fieldList['relatedObject']['align'] = 'center';
  129. if($app->getClientLang() == 'en') $config->testcase->dtable->fieldList['relatedObject']['width'] = '120';
  130. }
  131. $config->testcase->dtable->fieldList['version']['title'] = $lang->testcase->version;
  132. $config->testcase->dtable->fieldList['version']['type'] = 'text';
  133. $config->testcase->dtable->fieldList['version']['group'] = 5;
  134. $config->testcase->dtable->fieldList['version']['width'] = '80';
  135. $config->testcase->dtable->fieldList['version']['sortType'] = false;
  136. $config->testcase->dtable->fieldList['lastEditedBy']['title'] = $lang->testcase->lastEditedBy;
  137. $config->testcase->dtable->fieldList['lastEditedBy']['type'] = 'user';
  138. $config->testcase->dtable->fieldList['lastEditedBy']['group'] = 6;
  139. $config->testcase->dtable->fieldList['lastEditedBy']['width'] = '90';
  140. $config->testcase->dtable->fieldList['lastEditedBy']['sortType'] = true;
  141. $config->testcase->dtable->fieldList['lastEditedDate']['title'] = $lang->testcase->lastEditedDate;
  142. $config->testcase->dtable->fieldList['lastEditedDate']['type'] = 'date';
  143. $config->testcase->dtable->fieldList['lastEditedDate']['group'] = 6;
  144. $config->testcase->dtable->fieldList['lastEditedDate']['sortType'] = true;
  145. $config->testcase->dtable->fieldList['product']['title'] = $lang->testcase->product;
  146. $config->testcase->dtable->fieldList['product']['name'] = 'product';
  147. $config->testcase->dtable->fieldList['product']['control'] = 'hidden';
  148. $config->testcase->dtable->fieldList['product']['dataSource'] = array('module' => 'product', 'method' => 'getPairs', 'params' => ['mode' => '', 'programID' => 0, 'append' => '', 'shadow' => 'all']);
  149. $config->testcase->dtable->fieldList['product']['display'] = false;
  150. $config->testcase->dtable->fieldList['product']['hidden'] = true;
  151. $config->testcase->dtable->fieldList['module']['control'] = 'select';
  152. $config->testcase->dtable->fieldList['module']['dataSource'] = array('module' => 'testcase', 'method' => 'getDatatableModules', 'params' => ['productID' => (int)'$productID']);
  153. $config->testcase->dtable->fieldList['module']['display'] = false;
  154. $config->testcase->dtable->fieldList['actions']['title'] = $lang->actions;
  155. $config->testcase->dtable->fieldList['actions']['type'] = 'actions';
  156. $config->testcase->dtable->fieldList['actions']['list'] = $config->testcase->actionList;
  157. $config->testcase->dtable->fieldList['actions']['menu'] = array();
  158. $config->testcase->dtable->fieldList['actions']['width'] = '185';
  159. $config->testcase->dtable->fieldList['actions']['required'] = true;
  160. $config->testcase->dtable->fieldList['actions']['group'] = 7;
  161. $config->testcase->group = new stdclass();
  162. $config->testcase->group->dtable = new stdclass();
  163. $config->testcase->group->dtable->fieldList['storyTitle']['title'] = $lang->testcase->story;
  164. $config->testcase->group->dtable->fieldList['storyTitle']['width'] = 'auto';
  165. $config->testcase->group->dtable->fieldList['storyTitle']['type'] = 'title';
  166. $config->testcase->group->dtable->fieldList['storyTitle']['fixed'] = false;
  167. $config->testcase->group->dtable->fieldList['storyTitle']['sortType'] = true;
  168. $config->testcase->group->dtable->fieldList['storyTitle']['group'] = 'story';
  169. $config->testcase->group->dtable->fieldList['id'] = $config->testcase->dtable->fieldList['id'];
  170. $config->testcase->group->dtable->fieldList['id']['type'] = 'id';
  171. $config->testcase->group->dtable->fieldList['id']['fixed'] = false;
  172. $config->testcase->group->dtable->fieldList['title'] = $config->testcase->dtable->fieldList['title'];
  173. $config->testcase->group->dtable->fieldList['title']['width'] = 'auto';
  174. $config->testcase->group->dtable->fieldList['title']['nestedToggle'] = false;
  175. $config->testcase->group->dtable->fieldList['title']['fixed'] = false;
  176. $config->testcase->group->dtable->fieldList['pri'] = $config->testcase->dtable->fieldList['pri'];
  177. $config->testcase->group->dtable->fieldList['status'] = $config->testcase->dtable->fieldList['status'];
  178. $config->testcase->group->dtable->fieldList['lastRunResult'] = $config->testcase->dtable->fieldList['lastRunResult'];
  179. $config->testcase->group->dtable->fieldList['type'] = $config->testcase->dtable->fieldList['type'];
  180. $config->testcase->group->dtable->fieldList['bugs'] = $config->testcase->dtable->fieldList['bugs'];
  181. $config->testcase->group->dtable->fieldList['results'] = $config->testcase->dtable->fieldList['results'];
  182. $config->testcase->group->dtable->fieldList['stepNumber'] = $config->testcase->dtable->fieldList['stepNumber'];
  183. $config->testcase->group->dtable->fieldList['lastRunner'] = $config->testcase->dtable->fieldList['lastRunner'];
  184. $config->testcase->group->dtable->fieldList['lastRunDate'] = $config->testcase->dtable->fieldList['lastRunDate'];
  185. $config->testcase->group->dtable->fieldList['actions'] = $config->testcase->dtable->fieldList['actions'];
  186. $config->testcase->group->dtable->fieldList['actions']['fixed'] = false;
  187. $config->testcase->group->dtable->fieldList['actions']['menu'] = array('edit', 'delete');
  188. $config->testcase->bug = new stdclass();
  189. $config->testcase->bug->dtable = new stdclass();
  190. $config->testcase->bug->dtable->fieldList['id']['title'] = $lang->idAB;
  191. $config->testcase->bug->dtable->fieldList['id']['type'] = 'id';
  192. $app->loadLang('bug');
  193. $app->loadModuleConfig('bug');
  194. $config->testcase->bug->dtable->fieldList['title'] = $config->bug->dtable->fieldList['title'];
  195. $config->testcase->bug->dtable->fieldList['pri'] = $config->bug->dtable->fieldList['pri'];
  196. $config->testcase->bug->dtable->fieldList['status'] = $config->bug->dtable->fieldList['status'];
  197. $config->testcase->bug->dtable->fieldList['type'] = $config->bug->dtable->fieldList['type'];
  198. $config->testcase->bug->dtable->fieldList['assignedTo'] = $config->bug->dtable->fieldList['assignedTo'];
  199. $config->testcase->bug->dtable->fieldList['resolvedBy'] = $config->bug->dtable->fieldList['resolvedBy'];
  200. $config->testcase->bug->dtable->fieldList['resolution'] = $config->bug->dtable->fieldList['resolution'];
  201. if(!isset($config->testcase->zerocase)) $config->testcase->zerocase = new stdclass();
  202. $config->testcase->zerocase->dtable = new stdclass();
  203. $config->testcase->zerocase->dtable->fieldList['id']['title'] = $lang->idAB;
  204. $config->testcase->zerocase->dtable->fieldList['id']['type'] = 'checkID';
  205. $config->testcase->zerocase->dtable->fieldList['title']['title'] = $lang->story->title;
  206. $config->testcase->zerocase->dtable->fieldList['title']['type'] = 'title';
  207. $config->testcase->zerocase->dtable->fieldList['title']['link'] = array('module' => 'story', 'method' => 'view', 'params' => "storyID={id}&version=0");
  208. $config->testcase->zerocase->dtable->fieldList['pri']['title'] = $lang->story->pri;
  209. $config->testcase->zerocase->dtable->fieldList['pri']['type'] = 'pri';
  210. $config->testcase->zerocase->dtable->fieldList['planTitle']['title'] = $lang->story->planAB;
  211. $config->testcase->zerocase->dtable->fieldList['planTitle']['type'] = 'text';
  212. $config->testcase->zerocase->dtable->fieldList['status']['title'] = $lang->story->status;
  213. $config->testcase->zerocase->dtable->fieldList['status']['type'] = 'status';
  214. $config->testcase->zerocase->dtable->fieldList['status']['statusMap'] = $lang->story->statusList;
  215. $config->testcase->zerocase->dtable->fieldList['openedBy']['title'] = $lang->story->openedByAB;
  216. $config->testcase->zerocase->dtable->fieldList['openedBy']['type'] = 'user';
  217. $config->testcase->zerocase->dtable->fieldList['estimate']['title'] = $lang->story->estimate;
  218. $config->testcase->zerocase->dtable->fieldList['estimate']['type'] = 'count';
  219. $config->testcase->zerocase->dtable->fieldList['stage']['title'] = $lang->story->stage;
  220. $config->testcase->zerocase->dtable->fieldList['stage']['type'] = 'category';
  221. $config->testcase->zerocase->dtable->fieldList['stage']['map'] = $lang->story->stageList;
  222. $config->testcase->zerocase->dtable->fieldList['assignedTo']['title'] = $lang->story->assignedTo;
  223. $config->testcase->zerocase->dtable->fieldList['assignedTo']['type'] = 'assign';
  224. $config->testcase->zerocase->dtable->fieldList['source']['title'] = $lang->story->source;
  225. $config->testcase->zerocase->dtable->fieldList['source']['type'] = 'category';
  226. $config->testcase->zerocase->dtable->fieldList['source']['map'] = $lang->story->sourceList;
  227. $config->testcase->zerocase->dtable->fieldList['actions']['title'] = $lang->actions;
  228. $config->testcase->zerocase->dtable->fieldList['actions']['type'] = 'actions';
  229. $config->testcase->zerocase->dtable->fieldList['actions']['list'] = $config->testcase->zerocase->actionList;
  230. $config->testcase->zerocase->dtable->fieldList['actions']['menu'] = array('change', 'review', 'close', 'edit', 'createcase');
  231. $config->testcase->zerocase->dtable->fieldList['actions']['required'] = true;
  232. $config->testcase->zerocase->dtable->fieldList['actions']['group'] = '7';
  233. $config->testcase->zerocase->dtable->fieldList['actions']['sortType'] = false;
  234. $config->testcase->importfromlib = new stdclass();
  235. $config->testcase->importfromlib->dtable = new stdclass();
  236. $config->testcase->importfromlib->dtable->fieldList['id']['name'] = 'id';
  237. $config->testcase->importfromlib->dtable->fieldList['id']['title'] = $lang->idAB;
  238. $config->testcase->importfromlib->dtable->fieldList['id']['type'] = 'checkID';
  239. $config->testcase->importfromlib->dtable->fieldList['id']['fixed'] = false;
  240. $config->testcase->importfromlib->dtable->fieldList['branch']['name'] = 'branch';
  241. $config->testcase->importfromlib->dtable->fieldList['branch']['title'] = $lang->testcase->branch;
  242. $config->testcase->importfromlib->dtable->fieldList['branch']['type'] = 'control';
  243. $config->testcase->importfromlib->dtable->fieldList['branch']['control'] = array('type' => 'picker', 'props' => array('required' => true));
  244. $config->testcase->importfromlib->dtable->fieldList['branch']['width'] = '200px';
  245. $config->testcase->importfromlib->dtable->fieldList['pri']['name'] = 'pri';
  246. $config->testcase->importfromlib->dtable->fieldList['pri']['title'] = $lang->testcase->pri;
  247. $config->testcase->importfromlib->dtable->fieldList['pri']['type'] = 'pri';
  248. $config->testcase->importfromlib->dtable->fieldList['title']['name'] = 'title';
  249. $config->testcase->importfromlib->dtable->fieldList['title']['title'] = $lang->testcase->title;
  250. $config->testcase->importfromlib->dtable->fieldList['title']['type'] = 'title';
  251. $config->testcase->importfromlib->dtable->fieldList['title']['fixed'] = false;
  252. $config->testcase->importfromlib->dtable->fieldList['title']['link'] = array('module' => 'testcase', 'method' => 'view', 'params' => "caseID={id}");
  253. $config->testcase->importfromlib->dtable->fieldList['title']['data-toggle'] = 'modal';
  254. $config->testcase->importfromlib->dtable->fieldList['title']['data-size'] = 'lg';
  255. $config->testcase->importfromlib->dtable->fieldList['fromModule']['name'] = 'fromModule';
  256. $config->testcase->importfromlib->dtable->fieldList['fromModule']['title'] = $lang->testcase->fromModule;
  257. $config->testcase->importfromlib->dtable->fieldList['fromModule']['type'] = 'category';
  258. $config->testcase->importfromlib->dtable->fieldList['module']['name'] = 'module';
  259. $config->testcase->importfromlib->dtable->fieldList['module']['title'] = $lang->testcase->module;
  260. $config->testcase->importfromlib->dtable->fieldList['module']['type'] = 'control';
  261. $config->testcase->importfromlib->dtable->fieldList['module']['control'] = array('type' => 'picker');
  262. $config->testcase->importfromlib->dtable->fieldList['module']['width'] = '200px';
  263. $config->testcase->importfromlib->dtable->fieldList['type']['name'] = 'type';
  264. $config->testcase->importfromlib->dtable->fieldList['type']['title'] = $lang->testcase->type;
  265. $config->testcase->importfromlib->dtable->fieldList['type']['type'] = 'status';
  266. $config->testcase->importfromlib->dtable->fieldList['type']['statusMap'] = $lang->testcase->typeList;
  267. $config->testcase->importfromlib->dtable->fieldList['type']['width'] = '100px';
  268. $config->testcase->linkbugs = new stdclass();
  269. $config->testcase->linkbugs->dtable = new stdclass();
  270. $config->testcase->linkbugs->dtable->fieldList['id']['name'] = 'id';
  271. $config->testcase->linkbugs->dtable->fieldList['id']['title'] = $lang->idAB;
  272. $config->testcase->linkbugs->dtable->fieldList['id']['type'] = 'checkID';
  273. $config->testcase->linkbugs->dtable->fieldList['id']['fixed'] = false;
  274. $config->testcase->linkbugs->dtable->fieldList['pri']['name'] = 'pri';
  275. $config->testcase->linkbugs->dtable->fieldList['pri']['title'] = $lang->priAB;
  276. $config->testcase->linkbugs->dtable->fieldList['pri']['type'] = 'pri';
  277. $config->testcase->linkbugs->dtable->fieldList['title']['name'] = 'title';
  278. $config->testcase->linkbugs->dtable->fieldList['title']['title'] = $lang->bug->title;
  279. $config->testcase->linkbugs->dtable->fieldList['title']['type'] = 'title';
  280. $config->testcase->linkbugs->dtable->fieldList['title']['fixed'] = false;
  281. $config->testcase->linkbugs->dtable->fieldList['type']['name'] = 'type';
  282. $config->testcase->linkbugs->dtable->fieldList['type']['title'] = $lang->bug->type;
  283. $config->testcase->linkbugs->dtable->fieldList['type']['type'] = 'category';
  284. $config->testcase->linkbugs->dtable->fieldList['type']['map'] = $lang->bug->typeList;
  285. $config->testcase->linkbugs->dtable->fieldList['openedBy']['name'] = 'openedBy';
  286. $config->testcase->linkbugs->dtable->fieldList['openedBy']['title'] = $lang->openedByAB;
  287. $config->testcase->linkbugs->dtable->fieldList['openedBy']['type'] = 'user';
  288. $config->testcase->linkbugs->dtable->fieldList['status']['name'] = 'status';
  289. $config->testcase->linkbugs->dtable->fieldList['status']['title'] = $lang->statusAB;
  290. $config->testcase->linkbugs->dtable->fieldList['status']['type'] = 'status';
  291. $config->testcase->linkbugs->dtable->fieldList['status']['statusMap'] = $lang->bug->statusList;
  292. $config->testcase->linkcases = new stdclass();
  293. $config->testcase->linkcases->dtable = new stdclass();
  294. $config->testcase->linkcases->dtable->fieldList['id']['name'] = 'id';
  295. $config->testcase->linkcases->dtable->fieldList['id']['title'] = $lang->idAB;
  296. $config->testcase->linkcases->dtable->fieldList['id']['type'] = 'checkID';
  297. $config->testcase->linkcases->dtable->fieldList['id']['fixed'] = false;
  298. $config->testcase->linkcases->dtable->fieldList['pri']['name'] = 'pri';
  299. $config->testcase->linkcases->dtable->fieldList['pri']['title'] = $lang->priAB;
  300. $config->testcase->linkcases->dtable->fieldList['pri']['type'] = 'pri';
  301. $config->testcase->linkcases->dtable->fieldList['title']['name'] = 'title';
  302. $config->testcase->linkcases->dtable->fieldList['title']['title'] = $lang->testcase->title;
  303. $config->testcase->linkcases->dtable->fieldList['title']['type'] = 'title';
  304. $config->testcase->linkcases->dtable->fieldList['title']['fixed'] = false;
  305. $config->testcase->linkcases->dtable->fieldList['type']['name'] = 'type';
  306. $config->testcase->linkcases->dtable->fieldList['type']['title'] = $lang->testcase->type;
  307. $config->testcase->linkcases->dtable->fieldList['type']['type'] = 'category';
  308. $config->testcase->linkcases->dtable->fieldList['type']['map'] = $lang->testcase->typeList;
  309. $config->testcase->linkcases->dtable->fieldList['openedBy']['name'] = 'openedBy';
  310. $config->testcase->linkcases->dtable->fieldList['openedBy']['title'] = $lang->openedByAB;
  311. $config->testcase->linkcases->dtable->fieldList['openedBy']['type'] = 'user';
  312. $config->testcase->linkcases->dtable->fieldList['status']['name'] = 'status';
  313. $config->testcase->linkcases->dtable->fieldList['status']['title'] = $lang->statusAB;
  314. $config->testcase->linkcases->dtable->fieldList['status']['type'] = 'status';
  315. $config->testcase->linkcases->dtable->fieldList['status']['statusMap'] = $lang->testcase->statusList;
  316. $config->scene->dtable = new stdclass();
  317. $config->scene->dtable->fieldList['id']['title'] = $lang->idAB;
  318. $config->scene->dtable->fieldList['id']['type'] = 'checkID';
  319. $config->scene->dtable->fieldList['id']['fixed'] = 'left';
  320. $config->scene->dtable->fieldList['id']['sortType'] = true;
  321. $config->scene->dtable->fieldList['id']['required'] = true;
  322. $config->scene->dtable->fieldList['id']['group'] = 1;
  323. $config->scene->dtable->fieldList['title']['title'] = $lang->testcase->sceneTitle;
  324. $config->scene->dtable->fieldList['title']['type'] = 'title';
  325. $config->scene->dtable->fieldList['title']['fixed'] = 'left';
  326. $config->scene->dtable->fieldList['title']['nestedToggle'] = true;
  327. $config->scene->dtable->fieldList['title']['required'] = true;
  328. $config->scene->dtable->fieldList['title']['group'] = 1;
  329. $config->scene->dtable->fieldList['openedBy']['title'] = $lang->testcase->openedByAB;
  330. $config->scene->dtable->fieldList['openedBy']['type'] = 'user';
  331. $config->scene->dtable->fieldList['openedBy']['show'] = true;
  332. $config->scene->dtable->fieldList['openedBy']['group'] = 2;
  333. $config->scene->dtable->fieldList['openedDate']['title'] = $lang->testcase->openedDate;
  334. $config->scene->dtable->fieldList['openedDate']['type'] = 'date';
  335. $config->scene->dtable->fieldList['openedDate']['group'] = 2;
  336. $config->scene->dtable->fieldList['lastEditedBy']['title'] = $lang->testcase->lastEditedBy;
  337. $config->scene->dtable->fieldList['lastEditedBy']['type'] = 'user';
  338. $config->scene->dtable->fieldList['lastEditedBy']['group'] = 3;
  339. $config->scene->dtable->fieldList['lastEditedDate']['title'] = $lang->testcase->lastEditedDate;
  340. $config->scene->dtable->fieldList['lastEditedDate']['type'] = 'date';
  341. $config->scene->dtable->fieldList['lastEditedDate']['group'] = 3;
  342. $config->scene->dtable->fieldList['actions']['title'] = $lang->actions;
  343. $config->scene->dtable->fieldList['actions']['type'] = 'actions';
  344. $config->scene->dtable->fieldList['actions']['list'] = $config->scene->actionList;
  345. $config->scene->dtable->fieldList['actions']['menu'] = $config->scene->menu;
  346. $config->scene->dtable->fieldList['actions']['required'] = true;
  347. $config->scene->dtable->fieldList['actions']['group'] = 4;