table.php 81 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280
  1. <?php
  2. global $lang,$config, $app;
  3. $app->loadLang('todo');
  4. $app->loadLang('score');
  5. $app->loadLang('task');
  6. $app->loadLang('story');
  7. $app->loadLang('bug');
  8. $app->loadLang('doc');
  9. $app->loadLang('testtask');
  10. $app->loadLang('testcase');
  11. $app->loadLang('product');
  12. $app->loadLang('project');
  13. $app->loadModuleConfig('testtask');
  14. $app->loadModuleConfig('testcase');
  15. $app->loadModuleConfig('company');
  16. $app->loadModuleConfig('project');
  17. $isEn = $app->getClientLang() == 'en';
  18. $space = '';
  19. $config->my->todo = new stdclass();
  20. $config->my->todo->actionList = array();
  21. $config->my->todo->actionList['start']['icon'] = 'play';
  22. $config->my->todo->actionList['start']['text'] = $lang->todo->start;
  23. $config->my->todo->actionList['start']['hint'] = $lang->todo->start;
  24. $config->my->todo->actionList['start']['className'] = 'ajax-submit';
  25. $config->my->todo->actionList['start']['url'] = array('module' => 'todo', 'method' => 'start', 'params' => 'todoID={id}');
  26. $config->my->todo->actionList['activate']['icon'] = 'magic';
  27. $config->my->todo->actionList['activate']['text'] = $lang->todo->activate;
  28. $config->my->todo->actionList['activate']['hint'] = $lang->todo->activate;
  29. $config->my->todo->actionList['activate']['url'] = array('module' => 'todo', 'method' => 'activate', 'params' => 'todoID={id}');
  30. $config->my->todo->actionList['close']['icon'] = 'off';
  31. $config->my->todo->actionList['close']['text'] = $lang->todo->close;
  32. $config->my->todo->actionList['close']['hint'] = $lang->todo->close;
  33. $config->my->todo->actionList['close']['url'] = array('module' => 'todo', 'method' => 'close', 'params' => 'todoID={id}');
  34. $config->my->todo->actionList['assignTo']['icon'] = 'hand-right';
  35. $config->my->todo->actionList['assignTo']['text'] = $lang->todo->assignedTo;
  36. $config->my->todo->actionList['assignTo']['hint'] = $lang->todo->assignedTo;
  37. $config->my->todo->actionList['assignTo']['url'] = array('module' => 'todo', 'method' => 'assignTo', 'params' => 'todoID={id}');
  38. $config->my->todo->actionList['assignTo']['data-toggle'] = 'modal';
  39. $config->my->todo->actionList['finish']['icon'] = 'checked';
  40. $config->my->todo->actionList['finish']['text'] = $lang->todo->finish;
  41. $config->my->todo->actionList['finish']['hint'] = $lang->todo->finish;
  42. $config->my->todo->actionList['finish']['url'] = array('module' => 'todo', 'method' => 'finish', 'params' => 'todoID={id}');
  43. $config->my->todo->actionList['finish']['className'] = 'ajax-submit';
  44. $config->my->todo->actionList['edit']['icon'] = 'edit';
  45. $config->my->todo->actionList['edit']['text'] = $lang->todo->edit;
  46. $config->my->todo->actionList['edit']['hint'] = $lang->todo->edit;
  47. $config->my->todo->actionList['edit']['url'] = array('module' => 'todo', 'method' => 'edit', 'params' => 'todoID={id}');
  48. $config->my->todo->actionList['edit']['data-toggle'] = 'modal';
  49. $config->my->todo->actionList['delete']['icon'] = 'trash';
  50. $config->my->todo->actionList['delete']['text'] = $lang->todo->delete;
  51. $config->my->todo->actionList['delete']['hint'] = $lang->todo->delete;
  52. $config->my->todo->actionList['delete']['url'] = array('module' => 'todo', 'method' => 'delete', 'params' => 'todoID={id}&confirm=no');
  53. $config->my->todo->dtable = new stdclass();
  54. $config->my->todo->dtable->fieldList['id']['name'] = 'id';
  55. $config->my->todo->dtable->fieldList['id']['title'] = $lang->idAB;
  56. $config->my->todo->dtable->fieldList['id']['type'] = 'checkID';
  57. $config->my->todo->dtable->fieldList['name']['name'] = 'name';
  58. $config->my->todo->dtable->fieldList['name']['title'] = $lang->todo->name;
  59. $config->my->todo->dtable->fieldList['name']['type'] = 'title';
  60. $config->my->todo->dtable->fieldList['name']['link'] = array('module' => 'todo', 'method' => 'view', 'params' => 'id={id}&from=my', 'onlybody' => true);
  61. $config->my->todo->dtable->fieldList['name']['data-toggle'] = 'modal';
  62. $config->my->todo->dtable->fieldList['name']['data-size'] = 'lg';
  63. $config->my->todo->dtable->fieldList['name']['fixed'] = 'left';
  64. $config->my->todo->dtable->fieldList['pri']['name'] = 'pri';
  65. $config->my->todo->dtable->fieldList['pri']['title'] = $lang->priAB;
  66. $config->my->todo->dtable->fieldList['pri']['type'] = 'pri';
  67. $config->my->todo->dtable->fieldList['pri']['group'] = 'pri';
  68. $config->my->todo->dtable->fieldList['pri']['flex'] = 1;
  69. $config->my->todo->dtable->fieldList['date']['name'] = 'date';
  70. $config->my->todo->dtable->fieldList['date']['title'] = $lang->todo->date;
  71. $config->my->todo->dtable->fieldList['date']['type'] = 'date';
  72. $config->my->todo->dtable->fieldList['date']['group'] = 'date';
  73. $config->my->todo->dtable->fieldList['date']['flex'] = 1;
  74. $config->my->todo->dtable->fieldList['begin']['name'] = 'begin';
  75. $config->my->todo->dtable->fieldList['begin']['title'] = $lang->todo->beginAB;
  76. $config->my->todo->dtable->fieldList['begin']['type'] = 'time';
  77. $config->my->todo->dtable->fieldList['begin']['group'] = 'date';
  78. $config->my->todo->dtable->fieldList['begin']['flex'] = 1;
  79. $config->my->todo->dtable->fieldList['end']['name'] = 'end';
  80. $config->my->todo->dtable->fieldList['end']['title'] = $lang->todo->endAB;
  81. $config->my->todo->dtable->fieldList['end']['type'] = 'time';
  82. $config->my->todo->dtable->fieldList['end']['group'] = 'date';
  83. $config->my->todo->dtable->fieldList['end']['flex'] = 1;
  84. $config->my->todo->dtable->fieldList['status']['name'] = 'status';
  85. $config->my->todo->dtable->fieldList['status']['title'] = $lang->todo->status;
  86. $config->my->todo->dtable->fieldList['status']['type'] = 'status';
  87. $config->my->todo->dtable->fieldList['status']['statusMap'] = $lang->todo->statusList;
  88. $config->my->todo->dtable->fieldList['status']['group'] = 'status';
  89. $config->my->todo->dtable->fieldList['status']['flex'] = 1;
  90. $config->my->todo->dtable->fieldList['type']['name'] = 'type';
  91. $config->my->todo->dtable->fieldList['type']['title'] = $lang->todo->type;
  92. $config->my->todo->dtable->fieldList['type']['type'] = 'category';
  93. $config->my->todo->dtable->fieldList['type']['map'] = $lang->todo->typeList;
  94. $config->my->todo->dtable->fieldList['type']['group'] = 'status';
  95. $config->my->todo->dtable->fieldList['type']['flex'] = 2;
  96. $config->my->todo->dtable->fieldList['assignedBy']['name'] = 'assignedBy';
  97. $config->my->todo->dtable->fieldList['assignedBy']['title'] = $lang->todo->assignedBy;
  98. $config->my->todo->dtable->fieldList['assignedBy']['type'] = 'user';
  99. $config->my->todo->dtable->fieldList['assignedBy']['width'] = $isEn ? 110 : 90;
  100. $config->my->todo->dtable->fieldList['assignedBy']['group'] = 'assignedBy';
  101. $config->my->todo->dtable->fieldList['assignedBy']['flex'] = 1;
  102. $config->my->todo->dtable->fieldList['assignedTo']['name'] = 'assignedTo';
  103. $config->my->todo->dtable->fieldList['assignedTo']['title'] = $lang->todo->assignedTo;
  104. $config->my->todo->dtable->fieldList['assignedTo']['type'] = 'user';
  105. $config->my->todo->dtable->fieldList['assignedTo']['group'] = 'assignedBy';
  106. $config->my->todo->dtable->fieldList['assignedTo']['flex'] = 1;
  107. $config->my->todo->dtable->fieldList['actions']['name'] = 'actions';
  108. $config->my->todo->dtable->fieldList['actions']['title'] = $lang->actions;
  109. $config->my->todo->dtable->fieldList['actions']['type'] = 'actions';
  110. $config->my->todo->dtable->fieldList['actions']['sortType'] = false;
  111. $config->my->todo->dtable->fieldList['actions']['list'] = $config->my->todo->actionList;
  112. $config->my->todo->dtable->fieldList['actions']['menu'] = array('start', 'activate|assignTo', 'close|finish', 'edit', 'delete');
  113. $config->my->score = new stdclass();
  114. $config->my->score->dtable = new stdclass();
  115. $config->my->score->dtable->fieldList['time']['name'] = 'time';
  116. $config->my->score->dtable->fieldList['time']['title'] = $lang->score->time;
  117. $config->my->score->dtable->fieldList['time']['type'] = 'datetime';
  118. $config->my->score->dtable->fieldList['time']['fixed'] = 'left';
  119. $config->my->score->dtable->fieldList['time']['sortType'] = false;
  120. $config->my->score->dtable->fieldList['time']['align'] = 'left';
  121. $config->my->score->dtable->fieldList['module']['name'] = 'module';
  122. $config->my->score->dtable->fieldList['module']['title'] = $lang->score->module;
  123. $config->my->score->dtable->fieldList['module']['type'] = 'category';
  124. $config->my->score->dtable->fieldList['module']['map'] = $lang->score->modules;
  125. $config->my->score->dtable->fieldList['module']['sortType'] = false;
  126. $config->my->score->dtable->fieldList['module']['align'] = 'left';
  127. $config->my->score->dtable->fieldList['method']['name'] = 'method';
  128. $config->my->score->dtable->fieldList['method']['title'] = $lang->score->method;
  129. $config->my->score->dtable->fieldList['method']['type'] = 'text';
  130. $config->my->score->dtable->fieldList['method']['map'] = $lang->score->methods;
  131. $config->my->score->dtable->fieldList['method']['sortType'] = false;
  132. $config->my->score->dtable->fieldList['before']['name'] = 'before';
  133. $config->my->score->dtable->fieldList['before']['title'] = $lang->score->before;
  134. $config->my->score->dtable->fieldList['before']['type'] = 'count';
  135. $config->my->score->dtable->fieldList['before']['sortType'] = false;
  136. $config->my->score->dtable->fieldList['before']['align'] = 'left';
  137. $config->my->score->dtable->fieldList['score']['name'] = 'score';
  138. $config->my->score->dtable->fieldList['score']['title'] = $lang->score->score;
  139. $config->my->score->dtable->fieldList['score']['type'] = 'number';
  140. $config->my->score->dtable->fieldList['score']['sortType'] = false;
  141. $config->my->score->dtable->fieldList['score']['align'] = 'left';
  142. $config->my->score->dtable->fieldList['after']['name'] = 'after';
  143. $config->my->score->dtable->fieldList['after']['title'] = $lang->score->after;
  144. $config->my->score->dtable->fieldList['after']['type'] = 'count';
  145. $config->my->score->dtable->fieldList['after']['sortType'] = false;
  146. $config->my->score->dtable->fieldList['after']['align'] = 'left';
  147. $config->my->score->dtable->fieldList['desc']['name'] = 'desc';
  148. $config->my->score->dtable->fieldList['desc']['title'] = $lang->score->desc;
  149. $config->my->score->dtable->fieldList['desc']['type'] = 'desc';
  150. $config->my->task = new stdclass();
  151. $config->my->task->actionList = array();
  152. $config->my->task->actionList['confirmStoryChange']['icon'] = 'search';
  153. $config->my->task->actionList['confirmStoryChange']['text'] = $lang->task->confirmStoryChange;
  154. $config->my->task->actionList['confirmStoryChange']['hint'] = $lang->task->confirmStoryChange;
  155. $config->my->task->actionList['confirmStoryChange']['url'] = array('module' => 'task', 'method' => 'confirmStoryChange', 'params' => 'taskID={id}');
  156. $config->my->task->actionList['confirmStoryChange']['className'] = 'ajax-submit';
  157. $config->my->task->actionList['start']['icon'] = 'play';
  158. $config->my->task->actionList['start']['text'] = $lang->task->start;
  159. $config->my->task->actionList['start']['hint'] = $lang->task->start;
  160. $config->my->task->actionList['start']['url'] = array('module' => 'task', 'method' => 'start', 'params' => 'taskID={id}');
  161. $config->my->task->actionList['start']['data-toggle'] = 'modal';
  162. $config->my->task->actionList['restart']['icon'] = 'play';
  163. $config->my->task->actionList['restart']['text'] = $lang->task->restart;
  164. $config->my->task->actionList['restart']['hint'] = $lang->task->restart;
  165. $config->my->task->actionList['restart']['url'] = array('module' => 'task', 'method' => 'restart', 'params' => 'taskID={id}');
  166. $config->my->task->actionList['restart']['data-toggle'] = 'modal';
  167. $config->my->task->actionList['finish']['icon'] = 'checked';
  168. $config->my->task->actionList['finish']['text'] = $lang->task->finish;
  169. $config->my->task->actionList['finish']['hint'] = $lang->task->finish;
  170. $config->my->task->actionList['finish']['url'] = array('module' => 'task', 'method' => 'finish', 'params' => 'taskID={id}');
  171. $config->my->task->actionList['finish']['data-toggle'] = 'modal';
  172. $config->my->task->actionList['close']['icon'] = 'off';
  173. $config->my->task->actionList['close']['text'] = $lang->task->close;
  174. $config->my->task->actionList['close']['hint'] = $lang->task->close;
  175. $config->my->task->actionList['close']['url'] = array('module' => 'task', 'method' => 'close', 'params' => 'taskID={id}');
  176. $config->my->task->actionList['close']['data-toggle'] = 'modal';
  177. $config->my->task->actionList['record']['icon'] = 'time';
  178. $config->my->task->actionList['record']['text'] = $lang->task->logEfforts;
  179. $config->my->task->actionList['record']['hint'] = $lang->task->logEfforts;
  180. $config->my->task->actionList['record']['url'] = array('module' => 'task', 'method' => 'recordWorkhour', 'params' => 'taskID={id}');
  181. $config->my->task->actionList['record']['data-toggle'] = 'modal';
  182. $config->my->task->actionList['record']['data-position'] = 'center';
  183. $config->my->task->actionList['edit']['icon'] = 'edit';
  184. $config->my->task->actionList['edit']['text'] = $lang->task->edit;
  185. $config->my->task->actionList['edit']['hint'] = $lang->task->edit;
  186. $config->my->task->actionList['edit']['url'] = array('module' => 'task', 'method' => 'edit', 'params' => 'taskID={id}');
  187. $config->my->task->actionList['edit']['data-toggle'] = 'modal';
  188. $config->my->task->actionList['edit']['data-size'] = 'lg';
  189. $config->my->task->actionList['edit']['data-position'] = 'center';
  190. if($config->vision != 'lite')
  191. {
  192. $config->my->task->actionList['batchCreate']['icon'] = 'split';
  193. $config->my->task->actionList['batchCreate']['text'] = $lang->task->batchCreate;
  194. $config->my->task->actionList['batchCreate']['hint'] = $lang->task->children;
  195. $config->my->task->actionList['batchCreate']['url'] = array('module' => 'task', 'method' => 'batchCreate', 'params' => 'executionID={execution}&storyID={story}&moduleID={module}&taskID={id}&iframe=true');
  196. $config->my->task->actionList['batchCreate']['data-toggle'] = 'modal';
  197. $config->my->task->actionList['batchCreate']['data-size'] = 'lg';
  198. $config->my->task->actionList['batchCreate']['data-position'] = 'center';
  199. $space = ' ';
  200. }
  201. $config->my->task->dtable = new stdclass();
  202. $config->my->task->dtable->fieldList['id']['name'] = 'id';
  203. $config->my->task->dtable->fieldList['id']['title'] = $lang->idAB;
  204. $config->my->task->dtable->fieldList['id']['type'] = 'checkID';
  205. $config->my->task->dtable->fieldList['id']['sortType'] = true;
  206. $config->my->task->dtable->fieldList['name']['name'] = 'name';
  207. $config->my->task->dtable->fieldList['name']['title'] = $lang->task->name;
  208. $config->my->task->dtable->fieldList['name']['type'] = 'title';
  209. $config->my->task->dtable->fieldList['name']['nestedToggle'] = true;
  210. $config->my->task->dtable->fieldList['name']['link'] = array('url' => array('module' => 'task', 'method' => 'view', 'params' => 'taskID={id}'), 'data-app' => 'execution');
  211. $config->my->task->dtable->fieldList['name']['styleMap'] = array('--color-link' => 'color');
  212. $config->my->task->dtable->fieldList['name']['fixed'] = 'left';
  213. $config->my->task->dtable->fieldList['name']['data-toggle'] = 'modal';
  214. $config->my->task->dtable->fieldList['name']['data-size'] = 'lg';
  215. $config->my->task->dtable->fieldList['name']['sortType'] = true;
  216. $config->my->task->dtable->fieldList['pri']['name'] = 'pri';
  217. $config->my->task->dtable->fieldList['pri']['title'] = $lang->priAB;
  218. $config->my->task->dtable->fieldList['pri']['type'] = 'pri';
  219. $config->my->task->dtable->fieldList['pri']['priList'] = $lang->task->priList;
  220. $config->my->task->dtable->fieldList['pri']['group'] = 'pri';
  221. $config->my->task->dtable->fieldList['pri']['sortType'] = true;
  222. $config->my->task->dtable->fieldList['status']['name'] = 'status';
  223. $config->my->task->dtable->fieldList['status']['title'] = $lang->statusAB;
  224. $config->my->task->dtable->fieldList['status']['type'] = 'status';
  225. $config->my->task->dtable->fieldList['status']['statusMap'] = $lang->task->statusList + array('changed' => $lang->task->storyChange);
  226. $config->my->task->dtable->fieldList['status']['group'] = 'pri';
  227. $config->my->task->dtable->fieldList['status']['sortType'] = true;
  228. $config->my->task->dtable->fieldList['project']['name'] = 'projectName';
  229. $config->my->task->dtable->fieldList['project']['title'] = $lang->task->project;
  230. $config->my->task->dtable->fieldList['project']['type'] = 'text';
  231. $config->my->task->dtable->fieldList['project']['link'] = array('module' => 'project', 'method' => 'view', 'params' => 'projectID={project}');
  232. $config->my->task->dtable->fieldList['project']['group'] = 'project';
  233. $config->my->task->dtable->fieldList['project']['sortType'] = true;
  234. $config->my->task->dtable->fieldList['execution']['name'] = 'executionName';
  235. $config->my->task->dtable->fieldList['execution']['title'] = $lang->task->execution;
  236. $config->my->task->dtable->fieldList['execution']['type'] = 'text';
  237. $config->my->task->dtable->fieldList['execution']['link'] = array('module' => 'execution', 'method' => 'task', 'params' => 'executionID={execution}');
  238. $config->my->task->dtable->fieldList['execution']['group'] = 'project';
  239. $config->my->task->dtable->fieldList['execution']['sortType'] = true;
  240. $config->my->task->dtable->fieldList['openedBy']['name'] = 'openedBy';
  241. $config->my->task->dtable->fieldList['openedBy']['title'] = $lang->task->openedByAB;
  242. $config->my->task->dtable->fieldList['openedBy']['type'] = 'user';
  243. $config->my->task->dtable->fieldList['openedBy']['group'] = 'user';
  244. $config->my->task->dtable->fieldList['openedBy']['sortType'] = true;
  245. $config->my->task->dtable->fieldList['assignedTo']['name'] = 'assignedTo';
  246. $config->my->task->dtable->fieldList['assignedTo']['title'] = $lang->task->assignedToAB;
  247. $config->my->task->dtable->fieldList['assignedTo']['type'] = 'user';
  248. $config->my->task->dtable->fieldList['assignedTo']['group'] = 'user';
  249. $config->my->task->dtable->fieldList['assignedTo']['sortType'] = true;
  250. $config->my->task->dtable->fieldList['finishedBy']['name'] = 'finishedBy';
  251. $config->my->task->dtable->fieldList['finishedBy']['title'] = $lang->task->finishedByAB;
  252. $config->my->task->dtable->fieldList['finishedBy']['type'] = 'user';
  253. $config->my->task->dtable->fieldList['finishedBy']['group'] = 'user';
  254. $config->my->task->dtable->fieldList['finishedBy']['sortType'] = true;
  255. $config->my->task->dtable->fieldList['deadline']['name'] = 'deadline';
  256. $config->my->task->dtable->fieldList['deadline']['title'] = $lang->task->deadlineAB;
  257. $config->my->task->dtable->fieldList['deadline']['type'] = 'date';
  258. $config->my->task->dtable->fieldList['deadline']['group'] = 'deadline';
  259. $config->my->task->dtable->fieldList['deadline']['sortType'] = true;
  260. $config->my->task->dtable->fieldList['estimate']['name'] = 'estimateLabel';
  261. $config->my->task->dtable->fieldList['estimate']['title'] = $lang->task->estimateAB;
  262. $config->my->task->dtable->fieldList['estimate']['type'] = 'number';
  263. $config->my->task->dtable->fieldList['estimate']['group'] = 'deadline';
  264. $config->my->task->dtable->fieldList['estimate']['sortType'] = true;
  265. $config->my->task->dtable->fieldList['consumed']['name'] = 'consumedLabel';
  266. $config->my->task->dtable->fieldList['consumed']['title'] = $lang->task->consumedAB;
  267. $config->my->task->dtable->fieldList['consumed']['type'] = 'number';
  268. $config->my->task->dtable->fieldList['consumed']['group'] = 'deadline';
  269. $config->my->task->dtable->fieldList['consumed']['sortType'] = true;
  270. $config->my->task->dtable->fieldList['left']['name'] = 'leftLabel';
  271. $config->my->task->dtable->fieldList['left']['title'] = $lang->task->leftAB;
  272. $config->my->task->dtable->fieldList['left']['type'] = 'number';
  273. $config->my->task->dtable->fieldList['left']['group'] = 'deadline';
  274. $config->my->task->dtable->fieldList['left']['sortType'] = true;
  275. $config->my->task->dtable->fieldList['actions']['name'] = 'actions';
  276. $config->my->task->dtable->fieldList['actions']['title'] = $lang->actions;
  277. $config->my->task->dtable->fieldList['actions']['type'] = 'actions';
  278. $config->my->task->dtable->fieldList['actions']['sortType'] = false;
  279. $config->my->task->dtable->fieldList['actions']['list'] = $config->my->task->actionList;
  280. $config->my->task->dtable->fieldList['actions']['menu'] = array(array('confirmStoryChange'), array('start|restart', 'finish', 'close', 'record', 'edit', 'batchCreate'));
  281. $config->my->requirement = new stdclass();
  282. $config->my->requirement->actionList = array();
  283. $config->my->requirement->actionList['change']['icon'] = 'alter';
  284. $config->my->requirement->actionList['change']['text'] = $lang->story->change;
  285. $config->my->requirement->actionList['change']['hint'] = $lang->story->change;
  286. $config->my->requirement->actionList['change']['url'] = array('module' => 'requirement', 'method' => 'change', 'params' => 'storyID={id}&from=&storyType=requirement');
  287. $config->my->requirement->actionList['change']['data-toggle'] = 'modal';
  288. $config->my->requirement->actionList['submitReview']['icon'] = 'confirm';
  289. $config->my->requirement->actionList['submitReview']['text'] = $lang->story->submitReview;
  290. $config->my->requirement->actionList['submitReview']['hint'] = $lang->story->submitReview;
  291. $config->my->requirement->actionList['submitReview']['url'] = array('module' => 'requirement', 'method' => 'submitReview', 'params' => 'storyID={id}&storyType=requirement');
  292. $config->my->requirement->actionList['submitReview']['data-toggle'] = 'modal';
  293. $config->my->requirement->actionList['review']['icon'] = 'search';
  294. $config->my->requirement->actionList['review']['text'] = $lang->story->review;
  295. $config->my->requirement->actionList['review']['hint'] = $lang->story->review;
  296. $config->my->requirement->actionList['review']['url'] = array('module' => 'requirement', 'method' => 'review', 'params' => 'storyID={id}&from=product&storyType=requirement');
  297. $config->my->requirement->actionList['review']['data-toggle'] = 'modal';
  298. $config->my->requirement->actionList['recall']['icon'] = 'undo';
  299. $config->my->requirement->actionList['recall']['text'] = $lang->story->recall;
  300. $config->my->requirement->actionList['recall']['hint'] = $lang->story->recall;
  301. $config->my->requirement->actionList['recall']['url'] = array('module' => 'requirement', 'method' => 'recall', 'params' => 'storyID={id}&from=list&confirm=no&storyType=requirement');
  302. $config->my->requirement->actionList['recall']['className'] = 'ajax-submit';
  303. $config->my->requirement->actionList['edit']['icon'] = 'edit';
  304. $config->my->requirement->actionList['edit']['text'] = $lang->story->edit;
  305. $config->my->requirement->actionList['edit']['hint'] = $lang->story->edit;
  306. $config->my->requirement->actionList['edit']['url'] = array('module' => 'requirement', 'method' => 'edit', 'params' => 'storyID={id}&from=default&storyType=requirement');
  307. $config->my->requirement->actionList['edit']['data-toggle'] = 'modal';
  308. $config->my->requirement->actionList['close']['icon'] = 'off';
  309. $config->my->requirement->actionList['close']['text'] = $lang->story->close;
  310. $config->my->requirement->actionList['close']['hint'] = $lang->story->close;
  311. $config->my->requirement->actionList['close']['url'] = array('module' => 'requirement', 'method' => 'close', 'params' => 'storyID={id}&from=&storyType=requirement');
  312. $config->my->requirement->actionList['close']['data-toggle'] = 'modal';
  313. $config->my->requirement->dtable = new stdclass();
  314. $config->my->requirement->dtable->fieldList['id']['name'] = 'id';
  315. $config->my->requirement->dtable->fieldList['id']['title'] = $lang->idAB;
  316. $config->my->requirement->dtable->fieldList['id']['type'] = 'id';
  317. $config->my->requirement->dtable->fieldList['id']['sortType'] = true;
  318. $config->my->requirement->dtable->fieldList['title']['name'] = 'title';
  319. $config->my->requirement->dtable->fieldList['title']['title'] = common::checkNotCN() ? $lang->URCommon . ' ' . $lang->my->name : $lang->URCommon . $lang->my->name;
  320. $config->my->requirement->dtable->fieldList['title']['type'] = 'title';
  321. $config->my->requirement->dtable->fieldList['title']['link'] = array('module' => 'requirement', 'method' => 'view', 'params' => 'id={id}&version=0&param=0&storyType=requirement');
  322. $config->my->requirement->dtable->fieldList['title']['fixed'] = 'left';
  323. $config->my->requirement->dtable->fieldList['title']['sortType'] = true;
  324. $config->my->requirement->dtable->fieldList['title']['nestedToggle'] = true;
  325. $config->my->requirement->dtable->fieldList['pri']['name'] = 'pri';
  326. $config->my->requirement->dtable->fieldList['pri']['title'] = $lang->priAB;
  327. $config->my->requirement->dtable->fieldList['pri']['type'] = 'pri';
  328. $config->my->requirement->dtable->fieldList['pri']['group'] = 'pri';
  329. $config->my->requirement->dtable->fieldList['pri']['sortType'] = true;
  330. $config->my->requirement->dtable->fieldList['product']['name'] = 'productTitle';
  331. $config->my->requirement->dtable->fieldList['product']['title'] = $lang->story->product;
  332. $config->my->requirement->dtable->fieldList['product']['type'] = 'text';
  333. $config->my->requirement->dtable->fieldList['product']['group'] = 'pri';
  334. $config->my->requirement->dtable->fieldList['product']['sortType'] = true;
  335. $config->my->requirement->dtable->fieldList['status']['name'] = 'status';
  336. $config->my->requirement->dtable->fieldList['status']['title'] = $lang->statusAB;
  337. $config->my->requirement->dtable->fieldList['status']['type'] = 'status';
  338. $config->my->requirement->dtable->fieldList['status']['statusMap'] = $lang->story->statusList;
  339. $config->my->requirement->dtable->fieldList['status']['group'] = 'pri';
  340. $config->my->requirement->dtable->fieldList['status']['sortType'] = true;
  341. $config->my->requirement->dtable->fieldList['openedBy']['name'] = 'openedBy';
  342. $config->my->requirement->dtable->fieldList['openedBy']['title'] = $lang->story->openedByAB;
  343. $config->my->requirement->dtable->fieldList['openedBy']['type'] = 'user';
  344. $config->my->requirement->dtable->fieldList['openedBy']['group'] = 'openedBy';
  345. $config->my->requirement->dtable->fieldList['openedBy']['sortType'] = true;
  346. $config->my->requirement->dtable->fieldList['estimate']['name'] = 'estimate';
  347. $config->my->requirement->dtable->fieldList['estimate']['title'] = $lang->story->estimateAB;
  348. $config->my->requirement->dtable->fieldList['estimate']['type'] = 'count';
  349. $config->my->requirement->dtable->fieldList['estimate']['group'] = 'openedBy';
  350. $config->my->requirement->dtable->fieldList['estimate']['sortType'] = true;
  351. $config->my->requirement->dtable->fieldList['actions']['name'] = 'actions';
  352. $config->my->requirement->dtable->fieldList['actions']['title'] = $lang->actions;
  353. $config->my->requirement->dtable->fieldList['actions']['type'] = 'actions';
  354. $config->my->requirement->dtable->fieldList['actions']['sortType'] = false;
  355. $config->my->requirement->dtable->fieldList['actions']['list'] = $config->my->requirement->actionList;
  356. $config->my->requirement->dtable->fieldList['actions']['menu'] = array('change', 'review|submitReview', 'recall', 'edit', 'close');
  357. $config->my->epic = new stdclass();
  358. $config->my->epic->actionList = array();
  359. $config->my->epic->actionList['change']['icon'] = 'alter';
  360. $config->my->epic->actionList['change']['text'] = $lang->story->change;
  361. $config->my->epic->actionList['change']['hint'] = $lang->story->change;
  362. $config->my->epic->actionList['change']['url'] = array('module' => 'epic', 'method' => 'change', 'params' => 'storyID={id}&from=&storyType=epic');
  363. $config->my->epic->actionList['change']['data-toggle'] = 'modal';
  364. $config->my->epic->actionList['submitReview']['icon'] = 'confirm';
  365. $config->my->epic->actionList['submitReview']['text'] = $lang->story->submitReview;
  366. $config->my->epic->actionList['submitReview']['hint'] = $lang->story->submitReview;
  367. $config->my->epic->actionList['submitReview']['url'] = array('module' => 'epic', 'method' => 'submitReview', 'params' => 'storyID={id}&storyType=epic');
  368. $config->my->epic->actionList['submitReview']['data-toggle'] = 'modal';
  369. $config->my->epic->actionList['review']['icon'] = 'search';
  370. $config->my->epic->actionList['review']['text'] = $lang->story->review;
  371. $config->my->epic->actionList['review']['hint'] = $lang->story->review;
  372. $config->my->epic->actionList['review']['url'] = array('module' => 'epic', 'method' => 'review', 'params' => 'storyID={id}&from=product&storyType=epic');
  373. $config->my->epic->actionList['review']['data-toggle'] = 'modal';
  374. $config->my->epic->actionList['recall']['icon'] = 'undo';
  375. $config->my->epic->actionList['recall']['text'] = $lang->story->recall;
  376. $config->my->epic->actionList['recall']['hint'] = $lang->story->recall;
  377. $config->my->epic->actionList['recall']['url'] = array('module' => 'epic', 'method' => 'recall', 'params' => 'storyID={id}&from=list&confirm=no&storyType=epic');
  378. $config->my->epic->actionList['recall']['className'] = 'ajax-submit';
  379. $config->my->epic->actionList['edit']['icon'] = 'edit';
  380. $config->my->epic->actionList['edit']['text'] = $lang->story->edit;
  381. $config->my->epic->actionList['edit']['hint'] = $lang->story->edit;
  382. $config->my->epic->actionList['edit']['url'] = array('module' => 'epic', 'method' => 'edit', 'params' => 'storyID={id}&from=default&storyType=epic');
  383. $config->my->epic->actionList['edit']['data-toggle'] = 'modal';
  384. $config->my->epic->actionList['close']['icon'] = 'off';
  385. $config->my->epic->actionList['close']['text'] = $lang->story->close;
  386. $config->my->epic->actionList['close']['hint'] = $lang->story->close;
  387. $config->my->epic->actionList['close']['url'] = array('module' => 'epic', 'method' => 'close', 'params' => 'storyID={id}&from=&storyType=epic');
  388. $config->my->epic->actionList['close']['data-toggle'] = 'modal';
  389. $config->my->epic->dtable = new stdclass();
  390. $config->my->epic->dtable->fieldList['id']['name'] = 'id';
  391. $config->my->epic->dtable->fieldList['id']['title'] = $lang->idAB;
  392. $config->my->epic->dtable->fieldList['id']['type'] = 'id';
  393. $config->my->epic->dtable->fieldList['id']['sortType'] = true;
  394. $config->my->epic->dtable->fieldList['title']['name'] = 'title';
  395. $config->my->epic->dtable->fieldList['title']['title'] = $lang->ERCommon . $space . $lang->my->name;
  396. $config->my->epic->dtable->fieldList['title']['type'] = 'title';
  397. $config->my->epic->dtable->fieldList['title']['link'] = array('module' => 'epic', 'method' => 'view', 'params' => 'id={id}&version=0&param=0&storyType=epic');
  398. $config->my->epic->dtable->fieldList['title']['fixed'] = 'left';
  399. $config->my->epic->dtable->fieldList['title']['sortType'] = true;
  400. $config->my->epic->dtable->fieldList['title']['nestedToggle'] = true;
  401. $config->my->epic->dtable->fieldList['pri']['name'] = 'pri';
  402. $config->my->epic->dtable->fieldList['pri']['title'] = $lang->priAB;
  403. $config->my->epic->dtable->fieldList['pri']['type'] = 'pri';
  404. $config->my->epic->dtable->fieldList['pri']['group'] = 'pri';
  405. $config->my->epic->dtable->fieldList['pri']['sortType'] = true;
  406. $config->my->epic->dtable->fieldList['product']['name'] = 'productTitle';
  407. $config->my->epic->dtable->fieldList['product']['title'] = $lang->story->product;
  408. $config->my->epic->dtable->fieldList['product']['type'] = 'text';
  409. $config->my->epic->dtable->fieldList['product']['group'] = 'pri';
  410. $config->my->epic->dtable->fieldList['product']['sortType'] = true;
  411. $config->my->epic->dtable->fieldList['status']['name'] = 'status';
  412. $config->my->epic->dtable->fieldList['status']['title'] = $lang->statusAB;
  413. $config->my->epic->dtable->fieldList['status']['type'] = 'status';
  414. $config->my->epic->dtable->fieldList['status']['statusMap'] = $lang->story->statusList;
  415. $config->my->epic->dtable->fieldList['status']['group'] = 'pri';
  416. $config->my->epic->dtable->fieldList['status']['sortType'] = true;
  417. $config->my->epic->dtable->fieldList['openedBy']['name'] = 'openedBy';
  418. $config->my->epic->dtable->fieldList['openedBy']['title'] = $lang->story->openedByAB;
  419. $config->my->epic->dtable->fieldList['openedBy']['type'] = 'user';
  420. $config->my->epic->dtable->fieldList['openedBy']['group'] = 'openedBy';
  421. $config->my->epic->dtable->fieldList['openedBy']['sortType'] = true;
  422. $config->my->epic->dtable->fieldList['estimate']['name'] = 'estimate';
  423. $config->my->epic->dtable->fieldList['estimate']['title'] = $lang->story->estimateAB;
  424. $config->my->epic->dtable->fieldList['estimate']['type'] = 'count';
  425. $config->my->epic->dtable->fieldList['estimate']['group'] = 'openedBy';
  426. $config->my->epic->dtable->fieldList['estimate']['sortType'] = true;
  427. $config->my->epic->dtable->fieldList['actions']['name'] = 'actions';
  428. $config->my->epic->dtable->fieldList['actions']['title'] = $lang->actions;
  429. $config->my->epic->dtable->fieldList['actions']['type'] = 'actions';
  430. $config->my->epic->dtable->fieldList['actions']['sortType'] = false;
  431. $config->my->epic->dtable->fieldList['actions']['list'] = $config->my->epic->actionList;
  432. $config->my->epic->dtable->fieldList['actions']['menu'] = array('change', 'review|submitReview', 'recall', 'edit', 'close');
  433. $config->my->story = new stdclass();
  434. $config->my->story->actionList = array();
  435. $config->my->story->actionList['change']['icon'] = 'alter';
  436. $config->my->story->actionList['change']['text'] = $lang->story->change;
  437. $config->my->story->actionList['change']['hint'] = $lang->story->change;
  438. $config->my->story->actionList['change']['url'] = array('module' => 'story', 'method' => 'change', 'params' => 'storyID={id}');
  439. $config->my->story->actionList['change']['data-toggle'] = 'modal';
  440. $config->my->story->actionList['submitReview']['icon'] = 'confirm';
  441. $config->my->story->actionList['submitReview']['text'] = $lang->story->submitReview;
  442. $config->my->story->actionList['submitReview']['hint'] = $lang->story->submitReview;
  443. $config->my->story->actionList['submitReview']['url'] = array('module' => 'story', 'method' => 'submitReview', 'params' => 'storyID={id}');
  444. $config->my->story->actionList['submitReview']['data-toggle'] = 'modal';
  445. $config->my->story->actionList['review']['icon'] = 'search';
  446. $config->my->story->actionList['review']['text'] = $lang->story->review;
  447. $config->my->story->actionList['review']['hint'] = $lang->story->review;
  448. $config->my->story->actionList['review']['url'] = array('module' => 'story', 'method' => 'review', 'params' => 'storyID={id}');
  449. $config->my->story->actionList['review']['data-toggle'] = 'modal';
  450. $config->my->story->actionList['recall']['icon'] = 'undo';
  451. $config->my->story->actionList['recall']['text'] = $lang->story->recall;
  452. $config->my->story->actionList['recall']['hint'] = $lang->story->recall;
  453. $config->my->story->actionList['recall']['url'] = array('module' => 'story', 'method' => 'recall', 'params' => 'storyID={id}');
  454. $config->my->story->actionList['recall']['className'] = 'ajax-submit';
  455. $config->my->story->actionList['edit']['icon'] = 'edit';
  456. $config->my->story->actionList['edit']['text'] = $lang->story->edit;
  457. $config->my->story->actionList['edit']['hint'] = $lang->story->edit;
  458. $config->my->story->actionList['edit']['url'] = array('module' => 'story', 'method' => 'edit', 'params' => 'storyID={id}');
  459. $config->my->story->actionList['edit']['data-toggle'] = 'modal';
  460. $config->my->story->actionList['edit']['data-size'] = 'lg';
  461. $config->my->story->actionList['create']['icon'] = 'sitemap';
  462. $config->my->story->actionList['create']['text'] = $lang->testcase->create;
  463. $config->my->story->actionList['create']['hint'] = $lang->testcase->create;
  464. $config->my->story->actionList['create']['url'] = array('module' => 'testcase', 'method' => 'create', 'params' => 'productID={product}&branch={branch}&module=0&from=&param=0&storyID={id}');
  465. $config->my->story->actionList['create']['data-toggle'] = 'modal';
  466. $config->my->story->actionList['create']['data-size'] = 'lg';
  467. $config->my->story->actionList['close']['icon'] = 'off';
  468. $config->my->story->actionList['close']['text'] = $lang->story->close;
  469. $config->my->story->actionList['close']['hint'] = $lang->story->close;
  470. $config->my->story->actionList['close']['url'] = array('module' => 'story', 'method' => 'close', 'params' => 'storyID={id}');
  471. $config->my->story->actionList['close']['data-toggle'] = 'modal';
  472. $config->my->story->actionList['processStoryChange']['icon'] = 'ok';
  473. $config->my->story->actionList['processStoryChange']['text'] = $lang->confirm;
  474. $config->my->story->actionList['processStoryChange']['hint'] = $lang->confirm;
  475. $config->my->story->actionList['processStoryChange']['url'] = array('module' => 'story', 'method' => 'processStoryChange', 'params' => 'storyID={id}');
  476. $config->my->story->actionList['processStoryChange']['data-toggle'] = 'modal';
  477. $config->my->story->dtable = new stdclass();
  478. $config->my->story->dtable->fieldList['id']['name'] = 'id';
  479. $config->my->story->dtable->fieldList['id']['title'] = $lang->idAB;
  480. $config->my->story->dtable->fieldList['id']['type'] = 'id';
  481. $config->my->story->dtable->fieldList['id']['sortType'] = true;
  482. $config->my->story->dtable->fieldList['title']['name'] = 'title';
  483. $config->my->story->dtable->fieldList['title']['title'] = $lang->story->title;
  484. $config->my->story->dtable->fieldList['title']['type'] = 'title';
  485. $config->my->story->dtable->fieldList['title']['nestedToggle'] = true;
  486. $config->my->story->dtable->fieldList['title']['link'] = array('module' => 'story', 'method' => 'view', 'params' => 'id={id}');
  487. $config->my->story->dtable->fieldList['title']['fixed'] = 'left';
  488. $config->my->story->dtable->fieldList['title']['sortType'] = true;
  489. $config->my->story->dtable->fieldList['pri']['name'] = 'pri';
  490. $config->my->story->dtable->fieldList['pri']['title'] = $lang->priAB;
  491. $config->my->story->dtable->fieldList['pri']['type'] = 'pri';
  492. $config->my->story->dtable->fieldList['pri']['group'] = 'pri';
  493. $config->my->story->dtable->fieldList['pri']['sortType'] = true;
  494. $config->my->story->dtable->fieldList['product']['name'] = 'productTitle';
  495. $config->my->story->dtable->fieldList['product']['title'] = $lang->story->product;
  496. $config->my->story->dtable->fieldList['product']['type'] = 'text';
  497. $config->my->story->dtable->fieldList['product']['group'] = 'product';
  498. $config->my->story->dtable->fieldList['product']['sortType'] = true;
  499. $config->my->story->dtable->fieldList['plan']['name'] = 'planTitle';
  500. $config->my->story->dtable->fieldList['plan']['title'] = $lang->story->plan;
  501. $config->my->story->dtable->fieldList['plan']['type'] = 'text';
  502. $config->my->story->dtable->fieldList['plan']['group'] = 'product';
  503. $config->my->story->dtable->fieldList['plan']['sortType'] = true;
  504. $config->my->story->dtable->fieldList['status']['name'] = 'status';
  505. $config->my->story->dtable->fieldList['status']['title'] = $lang->statusAB;
  506. $config->my->story->dtable->fieldList['status']['type'] = 'status';
  507. $config->my->story->dtable->fieldList['status']['statusMap'] = $lang->story->statusList;
  508. $config->my->story->dtable->fieldList['status']['group'] = 'product';
  509. $config->my->story->dtable->fieldList['status']['sortType'] = true;
  510. $config->my->story->dtable->fieldList['openedBy']['name'] = 'openedBy';
  511. $config->my->story->dtable->fieldList['openedBy']['title'] = $lang->story->openedByAB;
  512. $config->my->story->dtable->fieldList['openedBy']['type'] = 'user';
  513. $config->my->story->dtable->fieldList['openedBy']['group'] = 'openedBy';
  514. $config->my->story->dtable->fieldList['openedBy']['sortType'] = true;
  515. $config->my->story->dtable->fieldList['estimate']['name'] = 'estimate';
  516. $config->my->story->dtable->fieldList['estimate']['title'] = $lang->story->estimateAB;
  517. $config->my->story->dtable->fieldList['estimate']['type'] = 'count';
  518. $config->my->story->dtable->fieldList['estimate']['group'] = 'openedBy';
  519. $config->my->story->dtable->fieldList['estimate']['sortType'] = true;
  520. $config->my->story->dtable->fieldList['stage']['name'] = 'stage';
  521. $config->my->story->dtable->fieldList['stage']['title'] = $lang->story->stageAB;
  522. $config->my->story->dtable->fieldList['stage']['type'] = 'category';
  523. $config->my->story->dtable->fieldList['stage']['map'] = $lang->story->stageList;
  524. $config->my->story->dtable->fieldList['stage']['group'] = 'openedBy';
  525. $config->my->story->dtable->fieldList['stage']['sortType'] = true;
  526. $config->my->story->dtable->fieldList['actions']['name'] = 'actions';
  527. $config->my->story->dtable->fieldList['actions']['title'] = $lang->actions;
  528. $config->my->story->dtable->fieldList['actions']['type'] = 'actions';
  529. $config->my->story->dtable->fieldList['actions']['sortType'] = false;
  530. $config->my->story->dtable->fieldList['actions']['list'] = $config->my->story->actionList;
  531. $config->my->story->dtable->fieldList['actions']['menu'] = array(array('processStoryChange'), array('change', 'review|submitReview', 'recall', 'edit', 'create', 'close'));
  532. $config->my->bug = new stdclass();
  533. $config->my->bug->actionList = array();
  534. $config->my->bug->actionList['confirm']['icon'] = 'ok';
  535. $config->my->bug->actionList['confirm']['text'] = $lang->bug->abbr->confirmed;
  536. $config->my->bug->actionList['confirm']['hint'] = $lang->bug->abbr->confirmed;
  537. $config->my->bug->actionList['confirm']['url'] = helper::createLink('bug', 'confirm',"bugID={id}");
  538. $config->my->bug->actionList['confirm']['data-toggle'] = 'modal';
  539. $config->my->bug->actionList['resolve']['icon'] = 'checked';
  540. $config->my->bug->actionList['resolve']['text'] = $lang->bug->resolve;
  541. $config->my->bug->actionList['resolve']['hint'] = $lang->bug->resolve;
  542. $config->my->bug->actionList['resolve']['url'] = helper::createLink('bug', 'resolve',"bugID={id}");
  543. $config->my->bug->actionList['resolve']['data-toggle'] = 'modal';
  544. $config->my->bug->actionList['close']['icon'] = 'off';
  545. $config->my->bug->actionList['close']['text'] = $lang->bug->close;
  546. $config->my->bug->actionList['close']['hint'] = $lang->bug->close;
  547. $config->my->bug->actionList['close']['url'] = helper::createLink('bug', 'close',"bugID={id}");
  548. $config->my->bug->actionList['close']['data-toggle'] = 'modal';
  549. $config->my->bug->actionList['activate']['icon'] = 'magic';
  550. $config->my->bug->actionList['activate']['text'] = $lang->bug->activate;
  551. $config->my->bug->actionList['activate']['hint'] = $lang->bug->activate;
  552. $config->my->bug->actionList['activate']['url'] = helper::createLink('bug', 'activate',"bugID={id}");
  553. $config->my->bug->actionList['activate']['data-toggle'] = 'modal';
  554. $config->my->bug->actionList['edit']['icon'] = 'edit';
  555. $config->my->bug->actionList['edit']['text'] = $lang->bug->edit;
  556. $config->my->bug->actionList['edit']['hint'] = $lang->bug->edit;
  557. $config->my->bug->actionList['edit']['url'] = helper::createLink('bug', 'edit',"bugID={id}");
  558. $config->my->bug->actionList['edit']['data-size'] = 'lg';
  559. $config->my->bug->actionList['edit']['data-toggle'] = 'modal';
  560. $config->my->bug->actionList['copy']['icon'] = 'copy';
  561. $config->my->bug->actionList['copy']['text'] = $lang->bug->copy;
  562. $config->my->bug->actionList['copy']['hint'] = $lang->bug->copy;
  563. $config->my->bug->actionList['copy']['url'] = array('module' => 'bug', 'method' => 'create', 'params' => 'productID={product}&branch={branch}&extra=bugID={id}');
  564. $config->my->bug->actionList['copy']['data-size'] = 'lg';
  565. $config->my->bug->actionList['copy']['data-toggle'] = 'modal';
  566. $config->my->bug->dtable = new stdclass();
  567. $config->my->bug->dtable->fieldList['id']['name'] = 'id';
  568. $config->my->bug->dtable->fieldList['id']['title'] = $lang->idAB;
  569. $config->my->bug->dtable->fieldList['id']['type'] = 'checkID';
  570. $config->my->bug->dtable->fieldList['id']['group'] = 'left';
  571. $config->my->bug->dtable->fieldList['title']['name'] = 'title';
  572. $config->my->bug->dtable->fieldList['title']['title'] = $lang->bug->title;
  573. $config->my->bug->dtable->fieldList['title']['styleMap'] = array('--color-link' => 'color');
  574. $config->my->bug->dtable->fieldList['title']['type'] = 'title';
  575. $config->my->bug->dtable->fieldList['title']['minWidth'] = '200';
  576. $config->my->bug->dtable->fieldList['title']['fixed'] = 'left';
  577. $config->my->bug->dtable->fieldList['title']['link'] = array('module' => 'bug', 'method' => 'view', 'params' => 'bugID={id}');
  578. $config->my->bug->dtable->fieldList['title']['group'] = 'left';
  579. $config->my->bug->dtable->fieldList['severity']['name'] = 'severity';
  580. $config->my->bug->dtable->fieldList['severity']['title'] = $lang->bug->severity;
  581. $config->my->bug->dtable->fieldList['severity']['type'] = 'severity';
  582. $config->my->bug->dtable->fieldList['severity']['group'] = '2';
  583. $config->my->bug->dtable->fieldList['pri']['name'] = 'pri';
  584. $config->my->bug->dtable->fieldList['pri']['title'] = $lang->bug->pri;
  585. $config->my->bug->dtable->fieldList['pri']['type'] = 'pri';
  586. $config->my->bug->dtable->fieldList['pri']['group'] = '2';
  587. $config->my->bug->dtable->fieldList['type']['name'] = 'type';
  588. $config->my->bug->dtable->fieldList['type']['title'] = $lang->bug->type;
  589. $config->my->bug->dtable->fieldList['type']['type'] = 'category';
  590. $config->my->bug->dtable->fieldList['type']['map'] = $lang->bug->typeList;
  591. $config->my->bug->dtable->fieldList['type']['group'] = '2';
  592. $config->my->bug->dtable->fieldList['status']['name'] = 'status';
  593. $config->my->bug->dtable->fieldList['status']['title'] = $lang->bug->abbr->status;
  594. $config->my->bug->dtable->fieldList['status']['type'] = 'status';
  595. $config->my->bug->dtable->fieldList['status']['statusMap'] = $lang->bug->statusList;
  596. $config->my->bug->dtable->fieldList['status']['group'] = '2';
  597. $config->my->bug->dtable->fieldList['product']['name'] = 'productName';
  598. $config->my->bug->dtable->fieldList['product']['title'] = $lang->bug->product;
  599. $config->my->bug->dtable->fieldList['product']['type'] = 'text';
  600. $config->my->bug->dtable->fieldList['product']['group'] = '3';
  601. $config->my->bug->dtable->fieldList['project']['name'] = 'project';
  602. $config->my->bug->dtable->fieldList['project']['title'] = $lang->bug->project;
  603. $config->my->bug->dtable->fieldList['project']['type'] = 'text';
  604. $config->my->bug->dtable->fieldList['project']['group'] = '3';
  605. $config->my->bug->dtable->fieldList['project']['hidden'] = true;
  606. $config->my->bug->dtable->fieldList['execution']['name'] = 'execution';
  607. $config->my->bug->dtable->fieldList['execution']['title'] = $lang->bug->execution;
  608. $config->my->bug->dtable->fieldList['execution']['type'] = 'text';
  609. $config->my->bug->dtable->fieldList['execution']['group'] = '3';
  610. $config->my->bug->dtable->fieldList['execution']['hidden'] = true;
  611. $config->my->bug->dtable->fieldList['plan']['name'] = 'plan';
  612. $config->my->bug->dtable->fieldList['plan']['title'] = $lang->bug->plan;
  613. $config->my->bug->dtable->fieldList['plan']['width'] = 120;
  614. $config->my->bug->dtable->fieldList['plan']['group'] = '3';
  615. $config->my->bug->dtable->fieldList['plan']['hidden'] = true;
  616. $config->my->bug->dtable->fieldList['openedBuild']['name'] = 'openedBuild';
  617. $config->my->bug->dtable->fieldList['openedBuild']['title'] = $lang->bug->openedBuild;
  618. $config->my->bug->dtable->fieldList['openedBuild']['type'] = 'text';
  619. $config->my->bug->dtable->fieldList['openedBuild']['group'] = '3';
  620. $config->my->bug->dtable->fieldList['openedBuild']['hidden'] = true;
  621. $config->my->bug->dtable->fieldList['openedBy']['name'] = 'openedBy';
  622. $config->my->bug->dtable->fieldList['openedBy']['title'] = $lang->bug->abbr->openedBy;
  623. $config->my->bug->dtable->fieldList['openedBy']['type'] = 'user';
  624. $config->my->bug->dtable->fieldList['openedBy']['group'] = '4';
  625. $config->my->bug->dtable->fieldList['openedDate']['name'] = 'openedDate';
  626. $config->my->bug->dtable->fieldList['openedDate']['title'] = $lang->bug->abbr->openedDate;
  627. $config->my->bug->dtable->fieldList['openedDate']['type'] = 'date';
  628. $config->my->bug->dtable->fieldList['openedDate']['group'] = '4';
  629. $config->my->bug->dtable->fieldList['confirmed']['name'] = 'confirmed';
  630. $config->my->bug->dtable->fieldList['confirmed']['title'] = $lang->bug->confirmed;
  631. $config->my->bug->dtable->fieldList['confirmed']['type'] = 'category';
  632. $config->my->bug->dtable->fieldList['confirmed']['map'] = $lang->bug->confirmedList;
  633. $config->my->bug->dtable->fieldList['confirmed']['group'] = '5';
  634. $config->my->bug->dtable->fieldList['assignedTo']['name'] = 'assignedTo';
  635. $config->my->bug->dtable->fieldList['assignedTo']['title'] = $lang->bug->assignedTo;
  636. $config->my->bug->dtable->fieldList['assignedTo']['type'] = 'assign';
  637. $config->my->bug->dtable->fieldList['assignedTo']['assignLink'] = array('module' => 'bug', 'method' => 'assignTo', 'params' => 'bugID={id}');
  638. $config->my->bug->dtable->fieldList['assignedTo']['group'] = '5';
  639. $config->my->bug->dtable->fieldList['assignedDate']['name'] = 'assignedDate';
  640. $config->my->bug->dtable->fieldList['assignedDate']['title'] = $lang->bug->assignedDate;
  641. $config->my->bug->dtable->fieldList['assignedDate']['type'] = 'date';
  642. $config->my->bug->dtable->fieldList['assignedDate']['group'] = '5';
  643. $config->my->bug->dtable->fieldList['assignedDate']['hidden'] = true;
  644. $config->my->bug->dtable->fieldList['deadline']['name'] = 'deadline';
  645. $config->my->bug->dtable->fieldList['deadline']['title'] = $lang->bug->deadline;
  646. $config->my->bug->dtable->fieldList['deadline']['type'] = 'date';
  647. $config->my->bug->dtable->fieldList['deadline']['group'] = '5';
  648. $config->my->bug->dtable->fieldList['resolvedBy']['name'] = 'resolvedBy';
  649. $config->my->bug->dtable->fieldList['resolvedBy']['title'] = $lang->bug->resolvedBy;
  650. $config->my->bug->dtable->fieldList['resolvedBy']['type'] = 'user';
  651. $config->my->bug->dtable->fieldList['resolvedBy']['group'] = '6';
  652. $config->my->bug->dtable->fieldList['resolution']['name'] = 'resolution';
  653. $config->my->bug->dtable->fieldList['resolution']['title'] = $lang->bug->resolution;
  654. $config->my->bug->dtable->fieldList['resolution']['type'] = 'category';
  655. $config->my->bug->dtable->fieldList['resolution']['map'] = $lang->bug->resolutionList;
  656. $config->my->bug->dtable->fieldList['resolution']['group'] = '6';
  657. $config->my->bug->dtable->fieldList['toTask']['name'] = 'toTaskName';
  658. $config->my->bug->dtable->fieldList['toTask']['title'] = $lang->bug->toTask;
  659. $config->my->bug->dtable->fieldList['toTask']['type'] = 'text';
  660. $config->my->bug->dtable->fieldList['toTask']['link'] = array('module' => 'task', 'method' => 'view', 'params' => 'taskID={toTask}');
  661. $config->my->bug->dtable->fieldList['toTask']['group'] = '6';
  662. $config->my->bug->dtable->fieldList['toTask']['hidden'] = true;
  663. $config->my->bug->dtable->fieldList['resolvedDate']['name'] = 'assignedDate';
  664. $config->my->bug->dtable->fieldList['resolvedDate']['title'] = $lang->bug->abbr->resolvedDate;
  665. $config->my->bug->dtable->fieldList['resolvedDate']['type'] = 'date';
  666. $config->my->bug->dtable->fieldList['resolvedDate']['group'] = '6';
  667. $config->my->bug->dtable->fieldList['resolvedDate']['hidden'] = true;
  668. $config->my->bug->dtable->fieldList['resolvedBuild']['name'] = 'resolvedBuild';
  669. $config->my->bug->dtable->fieldList['resolvedBuild']['title'] = $lang->bug->resolvedBuild;
  670. $config->my->bug->dtable->fieldList['resolvedBuild']['type'] = 'text';
  671. $config->my->bug->dtable->fieldList['resolvedBuild']['group'] = '6';
  672. $config->my->bug->dtable->fieldList['resolvedBuild']['hidden'] = true;
  673. $config->my->bug->dtable->fieldList['os']['name'] = 'os';
  674. $config->my->bug->dtable->fieldList['os']['title'] = $lang->bug->os;
  675. $config->my->bug->dtable->fieldList['os']['type'] = 'category';
  676. $config->my->bug->dtable->fieldList['os']['map'] = $lang->bug->osList;
  677. $config->my->bug->dtable->fieldList['os']['group'] = '7';
  678. $config->my->bug->dtable->fieldList['os']['hidden'] = true;
  679. $config->my->bug->dtable->fieldList['browser']['name'] = 'browser';
  680. $config->my->bug->dtable->fieldList['browser']['title'] = $lang->bug->browser;
  681. $config->my->bug->dtable->fieldList['browser']['type'] = 'category';
  682. $config->my->bug->dtable->fieldList['browser']['map'] = $lang->bug->browserList;
  683. $config->my->bug->dtable->fieldList['browser']['group'] = '7';
  684. $config->my->bug->dtable->fieldList['browser']['hidden'] = true;
  685. $config->my->bug->dtable->fieldList['activatedCount']['name'] = 'activatedCount';
  686. $config->my->bug->dtable->fieldList['activatedCount']['title'] = $lang->bug->abbr->activatedCount;
  687. $config->my->bug->dtable->fieldList['activatedCount']['type'] = 'count';
  688. $config->my->bug->dtable->fieldList['activatedCount']['group'] = '8';
  689. $config->my->bug->dtable->fieldList['activatedCount']['hidden'] = true;
  690. $config->my->bug->dtable->fieldList['activatedDate']['name'] = 'activatedDate';
  691. $config->my->bug->dtable->fieldList['activatedDate']['title'] = $lang->bug->activatedDate;
  692. $config->my->bug->dtable->fieldList['activatedDate']['type'] = 'date';
  693. $config->my->bug->dtable->fieldList['activatedDate']['group'] = '8';
  694. $config->my->bug->dtable->fieldList['activatedDate']['hidden'] = true;
  695. $config->my->bug->dtable->fieldList['story']['name'] = 'storyName';
  696. $config->my->bug->dtable->fieldList['story']['title'] = $lang->bug->story;
  697. $config->my->bug->dtable->fieldList['story']['type'] = 'text';
  698. $config->my->bug->dtable->fieldList['story']['link'] = array('module' => 'story', 'method' => 'view', 'params' => 'storyID={story}');
  699. $config->my->bug->dtable->fieldList['story']['group'] = '8';
  700. $config->my->bug->dtable->fieldList['story']['hidden'] = true;
  701. $config->my->bug->dtable->fieldList['task']['name'] = 'taskName';
  702. $config->my->bug->dtable->fieldList['task']['title'] = $lang->bug->task;
  703. $config->my->bug->dtable->fieldList['task']['type'] = 'text';
  704. $config->my->bug->dtable->fieldList['task']['link'] = array('module' => 'task', 'method' => 'view', 'params' => 'taskID={task}');
  705. $config->my->bug->dtable->fieldList['task']['group'] = '8';
  706. $config->my->bug->dtable->fieldList['task']['hidden'] = true;
  707. $config->my->bug->dtable->fieldList['mailto']['name'] = 'mailto';
  708. $config->my->bug->dtable->fieldList['mailto']['title'] = $lang->bug->mailto;
  709. $config->my->bug->dtable->fieldList['mailto']['type'] = 'user';
  710. $config->my->bug->dtable->fieldList['mailto']['group'] = '9';
  711. $config->my->bug->dtable->fieldList['mailto']['hidden'] = true;
  712. $config->my->bug->dtable->fieldList['keywords']['name'] = 'keywords';
  713. $config->my->bug->dtable->fieldList['keywords']['title'] = $lang->bug->keywords;
  714. $config->my->bug->dtable->fieldList['keywords']['type'] = 'text';
  715. $config->my->bug->dtable->fieldList['keywords']['group'] = '9';
  716. $config->my->bug->dtable->fieldList['keywords']['hidden'] = true;
  717. $config->my->bug->dtable->fieldList['lastEditedBy']['name'] = 'lastEditedBy';
  718. $config->my->bug->dtable->fieldList['lastEditedBy']['title'] = $lang->bug->lastEditedBy;
  719. $config->my->bug->dtable->fieldList['lastEditedBy']['type'] = 'user';
  720. $config->my->bug->dtable->fieldList['lastEditedBy']['group'] = '10';
  721. $config->my->bug->dtable->fieldList['lastEditedBy']['hidden'] = true;
  722. $config->my->bug->dtable->fieldList['lastEditedDate']['name'] = 'lastEditedDate';
  723. $config->my->bug->dtable->fieldList['lastEditedDate']['title'] = $lang->bug->abbr->lastEditedDate;
  724. $config->my->bug->dtable->fieldList['lastEditedDate']['type'] = 'date';
  725. $config->my->bug->dtable->fieldList['lastEditedDate']['group'] = '10';
  726. $config->my->bug->dtable->fieldList['lastEditedDate']['hidden'] = true;
  727. $config->my->bug->dtable->fieldList['closedBy']['name'] = 'closedBy';
  728. $config->my->bug->dtable->fieldList['closedBy']['title'] = $lang->bug->closedBy;
  729. $config->my->bug->dtable->fieldList['closedBy']['type'] = 'user';
  730. $config->my->bug->dtable->fieldList['closedBy']['group'] = '10';
  731. $config->my->bug->dtable->fieldList['closedBy']['hidden'] = true;
  732. $config->my->bug->dtable->fieldList['closedDate']['name'] = 'closedDate';
  733. $config->my->bug->dtable->fieldList['closedDate']['title'] = $lang->bug->closedDate;
  734. $config->my->bug->dtable->fieldList['closedDate']['type'] = 'date';
  735. $config->my->bug->dtable->fieldList['closedDate']['group'] = '10';
  736. $config->my->bug->dtable->fieldList['closedDate']['hidden'] = true;
  737. $config->my->bug->dtable->fieldList['module']['name'] = 'module';
  738. $config->my->bug->dtable->fieldList['module']['title'] = $lang->bug->module;
  739. $config->my->bug->dtable->fieldList['module']['type'] = 'text';
  740. $config->my->bug->dtable->fieldList['module']['hidden'] = true;
  741. $config->my->bug->dtable->fieldList['branch']['name'] = 'branch';
  742. $config->my->bug->dtable->fieldList['branch']['title'] = $lang->bug->branch;
  743. $config->my->bug->dtable->fieldList['branch']['type'] = 'text';
  744. $config->my->bug->dtable->fieldList['branch']['hidden'] = true;
  745. $config->my->bug->dtable->fieldList['actions']['name'] = 'actions';
  746. $config->my->bug->dtable->fieldList['actions']['title'] = $lang->actions;
  747. $config->my->bug->dtable->fieldList['actions']['type'] = 'actions';
  748. $config->my->bug->dtable->fieldList['actions']['width'] = '140';
  749. $config->my->bug->dtable->fieldList['actions']['sortType'] = false;
  750. $config->my->bug->dtable->fieldList['actions']['fixed'] = 'right';
  751. $config->my->bug->dtable->fieldList['actions']['list'] = $config->my->bug->actionList;
  752. $config->my->bug->dtable->fieldList['actions']['menu'] = array('confirm', 'resolve', 'close|activate', 'edit', 'copy');
  753. $config->my->testtask = new stdclass();
  754. $config->my->testtask->dtable = new stdclass();
  755. $config->my->testtask->dtable->fieldList['id']['name'] = 'id';
  756. $config->my->testtask->dtable->fieldList['id']['title'] = $lang->idAB;
  757. $config->my->testtask->dtable->fieldList['id']['type'] = 'id';
  758. $config->my->testtask->dtable->fieldList['id']['sortType'] = true;
  759. $config->my->testtask->dtable->fieldList['title']['name'] = 'name';
  760. $config->my->testtask->dtable->fieldList['title']['title'] = $lang->testtask->name;
  761. $config->my->testtask->dtable->fieldList['title']['type'] = 'title';
  762. $config->my->testtask->dtable->fieldList['title']['link'] = array('module' => 'testtask', 'method' => 'cases', 'params' => 'taskID={id}');
  763. $config->my->testtask->dtable->fieldList['title']['fixed'] = 'left';
  764. $config->my->testtask->dtable->fieldList['title']['sortType'] = true;
  765. $config->my->testtask->dtable->fieldList['title']['data-app'] = 'qa';
  766. $config->my->testtask->dtable->fieldList['pri']['name'] = 'pri';
  767. $config->my->testtask->dtable->fieldList['pri']['title'] = $lang->priAB;
  768. $config->my->testtask->dtable->fieldList['pri']['type'] = 'pri';
  769. $config->my->testtask->dtable->fieldList['pri']['show'] = true;
  770. $config->my->testtask->dtable->fieldList['build']['name'] = 'buildName';
  771. $config->my->testtask->dtable->fieldList['build']['title'] = $lang->testtask->build;
  772. $config->my->testtask->dtable->fieldList['build']['type'] = 'text';
  773. $config->my->testtask->dtable->fieldList['build']['link'] = array('module' => 'build', 'method' => 'view', 'params' => 'buildID={build}');
  774. $config->my->testtask->dtable->fieldList['build']['group'] = 'text';
  775. $config->my->testtask->dtable->fieldList['build']['sortType'] = true;
  776. $config->my->testtask->dtable->fieldList['execution']['name'] = 'executionName';
  777. $config->my->testtask->dtable->fieldList['execution']['title'] = $lang->testtask->execution;
  778. $config->my->testtask->dtable->fieldList['execution']['type'] = 'text';
  779. $config->my->testtask->dtable->fieldList['execution']['group'] = 'text';
  780. $config->my->testtask->dtable->fieldList['execution']['sortType'] = true;
  781. $config->my->testtask->dtable->fieldList['status']['name'] = 'status';
  782. $config->my->testtask->dtable->fieldList['status']['title'] = $lang->testtask->status;
  783. $config->my->testtask->dtable->fieldList['status']['type'] = 'status';
  784. $config->my->testtask->dtable->fieldList['status']['statusMap'] = $lang->testtask->statusList;
  785. $config->my->testtask->dtable->fieldList['status']['group'] = 'text';
  786. $config->my->testtask->dtable->fieldList['status']['sortType'] = true;
  787. $config->my->testtask->dtable->fieldList['begin']['name'] = 'begin';
  788. $config->my->testtask->dtable->fieldList['begin']['title'] = $lang->testtask->begin;
  789. $config->my->testtask->dtable->fieldList['begin']['type'] = 'date';
  790. $config->my->testtask->dtable->fieldList['begin']['group'] = 'user';
  791. $config->my->testtask->dtable->fieldList['begin']['sortType'] = true;
  792. $config->my->testtask->dtable->fieldList['end']['name'] = 'end';
  793. $config->my->testtask->dtable->fieldList['end']['title'] = $lang->testtask->end;
  794. $config->my->testtask->dtable->fieldList['end']['type'] = 'date';
  795. $config->my->testtask->dtable->fieldList['end']['group'] = 'user';
  796. $config->my->testtask->dtable->fieldList['end']['sortType'] = true;
  797. $config->my->testtask->dtable->fieldList['actions']['name'] = 'actions';
  798. $config->my->testtask->dtable->fieldList['actions']['title'] = $lang->actions;
  799. $config->my->testtask->dtable->fieldList['actions']['type'] = 'actions';
  800. $config->my->testtask->dtable->fieldList['actions']['sortType'] = false;
  801. $config->my->testtask->dtable->fieldList['actions']['list'] = $config->testtask->actionList;
  802. $config->my->testtask->dtable->fieldList['actions']['menu'] = array('cases', 'linkCase', 'report', 'view', 'edit', 'delete');
  803. $config->my->testtask->dtable->fieldList['actions']['list']['edit']['data-toggle'] = 'modal';
  804. $config->my->testtask->dtable->fieldList['actions']['list']['edit']['data-size'] = 'lg';
  805. $config->my->testcase = new stdclass();
  806. $config->my->testcase->dtable = new stdclass();
  807. $config->my->testcase->dtable->fieldList['id']['name'] = 'id';
  808. $config->my->testcase->dtable->fieldList['id']['title'] = $lang->idAB;
  809. $config->my->testcase->dtable->fieldList['id']['type'] = 'checkID';
  810. $config->my->testcase->dtable->fieldList['id']['fixed'] = 'left';
  811. $config->my->testcase->dtable->fieldList['id']['sortType'] = true;
  812. $config->my->testcase->dtable->fieldList['title']['name'] = 'title';
  813. $config->my->testcase->dtable->fieldList['title']['title'] = $lang->testcase->title;
  814. $config->my->testcase->dtable->fieldList['title']['type'] = 'title';
  815. $config->my->testcase->dtable->fieldList['title']['link'] = array('module' => 'testcase', 'method' => 'view', 'params' => 'caseID={id}&version={version}');
  816. $config->my->testcase->dtable->fieldList['title']['styleMap'] = array('--color-link' => 'color');
  817. $config->my->testcase->dtable->fieldList['title']['fixed'] = 'left';
  818. $config->my->testcase->dtable->fieldList['title']['sortType'] = true;
  819. $config->my->testcase->dtable->fieldList['pri'] = $config->testcase->dtable->fieldList['pri'];
  820. $config->my->testcase->dtable->fieldList['type'] = $config->testcase->dtable->fieldList['type'];
  821. $config->my->testcase->dtable->fieldList['status'] = $config->testcase->dtable->fieldList['status'];
  822. $config->my->testcase->dtable->fieldList['testtask']['name'] = 'taskName';
  823. $config->my->testcase->dtable->fieldList['testtask']['title'] = $lang->testtask->common;
  824. $config->my->testcase->dtable->fieldList['testtask']['type'] = 'text';
  825. $config->my->testcase->dtable->fieldList['testtask']['group'] = 'testtask';
  826. $config->my->testcase->dtable->fieldList['testtask']['sortType'] = true;
  827. $config->my->testcase->dtable->fieldList['openedBy'] = $config->testcase->dtable->fieldList['openedBy'];
  828. $config->my->testcase->dtable->fieldList['lastRunner'] = $config->testcase->dtable->fieldList['lastRunner'];
  829. $config->my->testcase->dtable->fieldList['lastRunDate'] = $config->testcase->dtable->fieldList['lastRunDate'];
  830. $config->my->testcase->dtable->fieldList['lastRunResult'] = $config->testcase->dtable->fieldList['lastRunResult'];
  831. $config->my->testcase->dtable->fieldList['actions'] = $config->testcase->dtable->fieldList['actions'];
  832. $config->my->testcase->dtable->fieldList['actions']['list']['edit']['data-toggle'] = 'modal';
  833. $config->my->testcase->dtable->fieldList['actions']['list']['edit']['data-size'] = 'lg';
  834. $config->my->testcase->dtable->fieldList['actions']['list']['create']['data-toggle'] = 'modal';
  835. $config->my->testcase->dtable->fieldList['actions']['list']['create']['data-size'] = 'lg';
  836. $config->my->testcase->dtable->fieldList['actions']['menu'] = array('runCase', 'runResult', 'edit', 'createBug', 'create');
  837. $config->my->audit = new stdclass();
  838. $config->my->audit->actionList = array();
  839. $config->my->audit->actionList['review']['icon'] = 'glasses';
  840. $config->my->audit->actionList['review']['text'] = $lang->review->common;
  841. $config->my->audit->actionList['review']['hint'] = $lang->review->common;
  842. $config->my->audit->actionList['review']['url'] = array('module' => 'index', 'method' => 'index');
  843. $config->my->audit->actionList['review']['data-toggle'] = 'modal';
  844. $config->my->audit->dtable = new stdclass();
  845. $config->my->audit->dtable->fieldList['id']['name'] = 'id';
  846. $config->my->audit->dtable->fieldList['id']['title'] = $lang->idAB;
  847. $config->my->audit->dtable->fieldList['id']['type'] = 'id';
  848. $config->my->audit->dtable->fieldList['id']['sortType'] = true;
  849. $config->my->audit->dtable->fieldList['title']['name'] = 'title';
  850. $config->my->audit->dtable->fieldList['title']['title'] = $lang->my->auditField->title;
  851. $config->my->audit->dtable->fieldList['title']['type'] = 'title';
  852. $config->my->audit->dtable->fieldList['title']['fixed'] = 'left';
  853. $config->my->audit->dtable->fieldList['title']['link'] = array('module' => '{module}', 'method' => 'view', 'params' => 'id={id}');
  854. $config->my->audit->dtable->fieldList['title']['data-toggle'] = 'modal';
  855. $config->my->audit->dtable->fieldList['title']['data-size'] = 'lg';
  856. $config->my->audit->dtable->fieldList['title']['sortType'] = true;
  857. $config->my->audit->dtable->fieldList['type']['name'] = 'type';
  858. $config->my->audit->dtable->fieldList['type']['title'] = $lang->my->auditField->type;
  859. $config->my->audit->dtable->fieldList['type']['type'] = 'catetory';
  860. $config->my->audit->dtable->fieldList['type']['sortType'] = true;
  861. $config->my->audit->dtable->fieldList['project']['name'] = 'project';
  862. $config->my->audit->dtable->fieldList['project']['title'] = $lang->execution->project;
  863. $config->my->audit->dtable->fieldList['project']['type'] = 'text';
  864. $config->my->audit->dtable->fieldList['project']['sortType'] = true;
  865. $config->my->audit->dtable->fieldList['product']['name'] = 'product';
  866. $config->my->audit->dtable->fieldList['product']['title'] = $lang->story->product;
  867. $config->my->audit->dtable->fieldList['product']['type'] = 'text';
  868. $config->my->audit->dtable->fieldList['product']['sortType'] = true;
  869. $config->my->audit->dtable->fieldList['time']['name'] = 'time';
  870. $config->my->audit->dtable->fieldList['time']['title'] = $lang->my->auditField->time;
  871. $config->my->audit->dtable->fieldList['time']['type'] = 'datetime';
  872. $config->my->audit->dtable->fieldList['time']['sortType'] = true;
  873. $config->my->audit->dtable->fieldList['result']['name'] = 'result';
  874. $config->my->audit->dtable->fieldList['result']['title'] = $lang->my->auditField->result;
  875. $config->my->audit->dtable->fieldList['result']['type'] = 'text';
  876. $config->my->audit->dtable->fieldList['result']['sortType'] = true;
  877. $config->my->audit->dtable->fieldList['status']['name'] = 'status';
  878. $config->my->audit->dtable->fieldList['status']['title'] = $lang->my->auditField->status;
  879. $config->my->audit->dtable->fieldList['status']['type'] = 'status';
  880. $config->my->audit->dtable->fieldList['status']['sortType'] = true;
  881. $config->my->audit->dtable->fieldList['actions']['name'] = 'actions';
  882. $config->my->audit->dtable->fieldList['actions']['title'] = $lang->actions;
  883. $config->my->audit->dtable->fieldList['actions']['type'] = 'actions';
  884. $config->my->audit->dtable->fieldList['actions']['sortType'] = false;
  885. $config->my->audit->dtable->fieldList['actions']['fixed'] = 'right';
  886. $config->my->audit->dtable->fieldList['actions']['width'] = 64;
  887. $config->my->audit->dtable->fieldList['actions']['list'] = $config->my->audit->actionList;
  888. $config->my->audit->dtable->fieldList['actions']['menu'] = array('review');
  889. $app->loadLang('execution');
  890. $config->my->execution = new stdclass();
  891. $config->my->execution->dtable = new stdclass();
  892. $config->my->execution->dtable->fieldList['id']['name'] = 'id';
  893. $config->my->execution->dtable->fieldList['id']['title'] = $lang->idAB;
  894. $config->my->execution->dtable->fieldList['id']['type'] = 'id';
  895. $config->my->execution->dtable->fieldList['id']['group'] = '1';
  896. $config->my->execution->dtable->fieldList['name']['name'] = 'name';
  897. $config->my->execution->dtable->fieldList['name']['title'] = $lang->execution->name;
  898. $config->my->execution->dtable->fieldList['name']['type'] = 'nestedTitle';
  899. $config->my->execution->dtable->fieldList['name']['link'] = 'RAWJS<function(info){ if(info.row.data.isParent) return false; else return \'' . helper::createLink('execution', 'browse', 'id={id}&from=my') . '\'; }>RAWJS';
  900. $config->my->execution->dtable->fieldList['name']['fixed'] = 'left';
  901. $config->my->execution->dtable->fieldList['name']['group'] = '1';
  902. $config->my->execution->dtable->fieldList['name']['nestedToggle'] = true;
  903. $config->my->execution->dtable->fieldList['name']['show'] = true;
  904. $config->my->execution->dtable->fieldList['code']['name'] = 'code';
  905. $config->my->execution->dtable->fieldList['code']['title'] = $lang->execution->code;
  906. $config->my->execution->dtable->fieldList['code']['type'] = 'text';
  907. $config->my->execution->dtable->fieldList['code']['fixed'] = 'left';
  908. $config->my->execution->dtable->fieldList['code']['group'] = '1';
  909. $config->my->execution->dtable->fieldList['code']['show'] = false;
  910. $config->my->execution->dtable->fieldList['projectName']['name'] = 'projectName';
  911. $config->my->execution->dtable->fieldList['projectName']['title'] = $lang->execution->project;
  912. $config->my->execution->dtable->fieldList['projectName']['type'] = 'text';
  913. $config->my->execution->dtable->fieldList['projectName']['link'] = array('module' => 'project', 'method' => 'view', 'params' => 'id={project}');
  914. $config->my->execution->dtable->fieldList['projectName']['group'] = '2';
  915. $config->my->execution->dtable->fieldList['projectName']['show'] = false;
  916. $config->my->execution->dtable->fieldList['status']['name'] = 'status';
  917. $config->my->execution->dtable->fieldList['status']['title'] = $lang->execution->status;
  918. $config->my->execution->dtable->fieldList['status']['type'] = 'status';
  919. $config->my->execution->dtable->fieldList['status']['statusMap'] = $lang->execution->statusList;
  920. $config->my->execution->dtable->fieldList['status']['group'] = '2';
  921. $config->my->execution->dtable->fieldList['status']['show'] = true;
  922. if($isEn) $config->my->execution->dtable->fieldList['status']['width'] = '130';
  923. $config->my->execution->dtable->fieldList['PM']['name'] = 'PM';
  924. $config->my->execution->dtable->fieldList['PM']['title'] = $lang->execution->PM;
  925. $config->my->execution->dtable->fieldList['PM']['type'] = 'avatarBtn';
  926. $config->my->execution->dtable->fieldList['PM']['group'] = '2';
  927. $config->my->execution->dtable->fieldList['PM']['show'] = false;
  928. $config->my->execution->dtable->fieldList['role']['name'] = 'role';
  929. $config->my->execution->dtable->fieldList['role']['title'] = $lang->team->roleAB;
  930. $config->my->execution->dtable->fieldList['role']['type'] = 'category';
  931. $config->my->execution->dtable->fieldList['role']['group'] = '2';
  932. $config->my->execution->dtable->fieldList['role']['show'] = true;
  933. $config->my->execution->dtable->fieldList['assignedToMeTasks']['name'] = 'assignedToMeTasks';
  934. $config->my->execution->dtable->fieldList['assignedToMeTasks']['title'] = $lang->execution->myTask;
  935. $config->my->execution->dtable->fieldList['assignedToMeTasks']['type'] = 'count';
  936. $config->my->execution->dtable->fieldList['assignedToMeTasks']['group'] = '2';
  937. $config->my->execution->dtable->fieldList['assignedToMeTasks']['sortType'] = false;
  938. $config->my->execution->dtable->fieldList['assignedToMeTasks']['show'] = true;
  939. $config->my->execution->dtable->fieldList['openedDate']['name'] = 'openedDate';
  940. $config->my->execution->dtable->fieldList['openedDate']['title'] = $lang->execution->openedDate;
  941. $config->my->execution->dtable->fieldList['openedDate']['type'] = 'date';
  942. $config->my->execution->dtable->fieldList['openedDate']['group'] = '3';
  943. $config->my->execution->dtable->fieldList['openedDate']['show'] = false;
  944. $config->my->execution->dtable->fieldList['begin']['name'] = 'begin';
  945. $config->my->execution->dtable->fieldList['begin']['title'] = $lang->execution->begin;
  946. $config->my->execution->dtable->fieldList['begin']['type'] = 'date';
  947. $config->my->execution->dtable->fieldList['begin']['group'] = '3';
  948. $config->my->execution->dtable->fieldList['begin']['show'] = true;
  949. if($isEn) $config->my->execution->dtable->fieldList['begin']['width'] = '120';
  950. $config->my->execution->dtable->fieldList['end']['name'] = 'end';
  951. $config->my->execution->dtable->fieldList['end']['title'] = $lang->execution->end;
  952. $config->my->execution->dtable->fieldList['end']['type'] = 'date';
  953. $config->my->execution->dtable->fieldList['end']['group'] = '3';
  954. $config->my->execution->dtable->fieldList['end']['show'] = true;
  955. if($isEn) $config->my->execution->dtable->fieldList['end']['width'] = '120';
  956. $config->my->execution->dtable->fieldList['join']['name'] = 'join';
  957. $config->my->execution->dtable->fieldList['join']['title'] = $lang->team->join;
  958. $config->my->execution->dtable->fieldList['join']['type'] = 'date';
  959. $config->my->execution->dtable->fieldList['join']['group'] = '4';
  960. $config->my->execution->dtable->fieldList['join']['sortType'] = false;
  961. $config->my->execution->dtable->fieldList['join']['show'] = true;
  962. $config->my->execution->dtable->fieldList['hours']['name'] = 'hours';
  963. $config->my->execution->dtable->fieldList['hours']['title'] = $lang->my->hours;
  964. $config->my->execution->dtable->fieldList['hours']['type'] = 'number';
  965. $config->my->execution->dtable->fieldList['hours']['group'] = '4';
  966. $config->my->execution->dtable->fieldList['hours']['sortType'] = false;
  967. $config->my->execution->dtable->fieldList['hours']['show'] = true;
  968. $config->my->execution->dtable->fieldList['realBegan']['name'] = 'realBegan';
  969. $config->my->execution->dtable->fieldList['realBegan']['title'] = $lang->execution->realBegan;
  970. $config->my->execution->dtable->fieldList['realBegan']['type'] = 'date';
  971. $config->my->execution->dtable->fieldList['realBegan']['group'] = '4';
  972. $config->my->execution->dtable->fieldList['realBegan']['show'] = false;
  973. $config->my->execution->dtable->fieldList['realEnd']['name'] = 'realEnd';
  974. $config->my->execution->dtable->fieldList['realEnd']['title'] = $lang->execution->realEnd;
  975. $config->my->execution->dtable->fieldList['realEnd']['type'] = 'date';
  976. $config->my->execution->dtable->fieldList['realEnd']['group'] = '4';
  977. $config->my->execution->dtable->fieldList['realEnd']['show'] = false;
  978. $config->my->execution->dtable->fieldList['estimate']['title'] = $lang->execution->totalEstimate;
  979. $config->my->execution->dtable->fieldList['estimate']['name'] = 'totalEstimate';
  980. $config->my->execution->dtable->fieldList['estimate']['type'] = 'number';
  981. $config->my->execution->dtable->fieldList['estimate']['sortType'] = false;
  982. $config->my->execution->dtable->fieldList['estimate']['group'] = '4';
  983. $config->my->execution->dtable->fieldList['estimate']['show'] = false;
  984. $config->my->execution->dtable->fieldList['consumed']['title'] = $lang->execution->totalConsumed;
  985. $config->my->execution->dtable->fieldList['consumed']['name'] = 'totalConsumed';
  986. $config->my->execution->dtable->fieldList['consumed']['type'] = 'number';
  987. $config->my->execution->dtable->fieldList['consumed']['sortType'] = false;
  988. $config->my->execution->dtable->fieldList['consumed']['group'] = '4';
  989. $config->my->execution->dtable->fieldList['consumed']['show'] = false;
  990. $config->my->execution->dtable->fieldList['left']['title'] = $lang->execution->totalLeft;
  991. $config->my->execution->dtable->fieldList['left']['name'] = 'totalLeft';
  992. $config->my->execution->dtable->fieldList['left']['type'] = 'number';
  993. $config->my->execution->dtable->fieldList['left']['sortType'] = false;
  994. $config->my->execution->dtable->fieldList['left']['width'] = '64';
  995. $config->my->execution->dtable->fieldList['left']['group'] = '4';
  996. $config->my->execution->dtable->fieldList['left']['show'] = false;
  997. $config->my->execution->dtable->fieldList['progress']['title'] = $lang->execution->progress;
  998. $config->my->execution->dtable->fieldList['progress']['name'] = 'progress';
  999. $config->my->execution->dtable->fieldList['progress']['type'] = 'progress';
  1000. $config->my->execution->dtable->fieldList['progress']['sortType'] = false;
  1001. $config->my->execution->dtable->fieldList['progress']['group'] = '4';
  1002. $config->my->execution->dtable->fieldList['progress']['show'] = true;
  1003. if($isEn) $config->my->execution->dtable->fieldList['progress']['width'] = '130';
  1004. $config->my->execution->dtable->fieldList['burn']['title'] = $lang->execution->burn;
  1005. $config->my->execution->dtable->fieldList['burn']['name'] = 'burn';
  1006. $config->my->execution->dtable->fieldList['burn']['type'] = 'burn';
  1007. $config->my->execution->dtable->fieldList['burn']['sortType'] = false;
  1008. $config->my->execution->dtable->fieldList['burn']['group'] = '4';
  1009. $config->my->execution->dtable->fieldList['burn']['show'] = false;
  1010. $config->my->execution->dtable->fieldList['subStatus']['name'] = 'subStatus';
  1011. $config->my->execution->dtable->fieldList['subStatus']['title'] = $lang->execution->subStatus;
  1012. $config->my->execution->dtable->fieldList['subStatus']['type'] = 'text';
  1013. $config->my->execution->dtable->fieldList['subStatus']['group'] = '5';
  1014. $config->my->execution->dtable->fieldList['subStatus']['show'] = false;
  1015. $config->my->doc = new stdclass();
  1016. $config->my->doc->actionList = array();
  1017. $config->my->doc->actionList['edit']['icon'] = 'edit';
  1018. $config->my->doc->actionList['edit']['text'] = $lang->edit;
  1019. $config->my->doc->actionList['edit']['hint'] = $lang->edit;
  1020. $config->my->doc->actionList['edit']['url'] = array('module' => 'doc', 'method' => 'edit', 'params' => "docID={id}");
  1021. $config->my->doc->actionList['delete']['icon'] = 'trash';
  1022. $config->my->doc->actionList['delete']['text'] = $lang->delete;
  1023. $config->my->doc->actionList['delete']['hint'] = $lang->delete;
  1024. $config->my->doc->actionList['delete']['url'] = array('module' => 'doc', 'method' => 'delete', 'params' => "docID={id}");
  1025. $config->my->doc->actionList['delete']['className'] = 'ajax-submit';
  1026. $config->my->doc->actionList['delete']['data-confirm'] = array('message' => $lang->doc->confirmDelete);
  1027. $config->my->doc->dtable = new stdclass();
  1028. $config->my->doc->dtable->fieldList['id']['name'] = 'id';
  1029. $config->my->doc->dtable->fieldList['id']['title'] = $lang->idAB;
  1030. $config->my->doc->dtable->fieldList['id']['type'] = 'id';
  1031. $config->my->doc->dtable->fieldList['title']['name'] = 'title';
  1032. $config->my->doc->dtable->fieldList['title']['title'] = $lang->doc->title;
  1033. $config->my->doc->dtable->fieldList['title']['type'] = 'title';
  1034. $config->my->doc->dtable->fieldList['title']['link'] = array('module' => 'doc', 'method' => 'view', 'params' => 'docID={id}');
  1035. $config->my->doc->dtable->fieldList['object']['name'] = 'objectName';
  1036. $config->my->doc->dtable->fieldList['object']['title'] = $lang->doc->object;
  1037. $config->my->doc->dtable->fieldList['object']['type'] = 'desc';
  1038. $config->my->doc->dtable->fieldList['object']['group'] = 'object';
  1039. $config->my->doc->dtable->fieldList['addedBy']['name'] = 'addedBy';
  1040. $config->my->doc->dtable->fieldList['addedBy']['title'] = $lang->doc->addedBy;
  1041. $config->my->doc->dtable->fieldList['addedBy']['type'] = 'user';
  1042. $config->my->doc->dtable->fieldList['addedBy']['group'] = 'addedBy';
  1043. $config->my->doc->dtable->fieldList['addedDate']['name'] = 'addedDate';
  1044. $config->my->doc->dtable->fieldList['addedDate']['title'] = $lang->doc->addedDate;
  1045. $config->my->doc->dtable->fieldList['addedDate']['type'] = 'date';
  1046. $config->my->doc->dtable->fieldList['addedDate']['group'] = 'addedBy';
  1047. $config->my->doc->dtable->fieldList['editedBy']['name'] = 'editedBy';
  1048. $config->my->doc->dtable->fieldList['editedBy']['title'] = $lang->doc->editedBy;
  1049. $config->my->doc->dtable->fieldList['editedBy']['type'] = 'user';
  1050. $config->my->doc->dtable->fieldList['editedBy']['group'] = 'addedBy';
  1051. $config->my->doc->dtable->fieldList['editedDate']['name'] = 'editedDate';
  1052. $config->my->doc->dtable->fieldList['editedDate']['title'] = $lang->doc->editedDate;
  1053. $config->my->doc->dtable->fieldList['editedDate']['type'] = 'date';
  1054. $config->my->doc->dtable->fieldList['editedDate']['group'] = 'addedBy';
  1055. $config->my->doc->dtable->fieldList['actions']['name'] = 'actions';
  1056. $config->my->doc->dtable->fieldList['actions']['title'] = $lang->actions;
  1057. $config->my->doc->dtable->fieldList['actions']['type'] = 'actions';
  1058. $config->my->doc->dtable->fieldList['actions']['sortType'] = false;
  1059. $config->my->doc->dtable->fieldList['actions']['list'] = $config->my->doc->actionList;
  1060. $config->my->doc->dtable->fieldList['actions']['menu'] = array('edit', 'delete');
  1061. $config->my->team = new stdclass();
  1062. $config->my->team->dtable = $config->company->user->dtable;
  1063. $config->my->team->dtable->fieldList['realname']['link'] = array('module' => 'user', 'method' => 'view', 'params' => 'userid={id}&from=my');
  1064. unset($config->my->team->dtable->fieldList['actions']);
  1065. $config->my->project = new stdclass();
  1066. $config->my->project->dtable = $config->project->dtable;
  1067. if($isEn)
  1068. {
  1069. $config->my->task->dtable->fieldList['finishedBy']['width'] = 120;
  1070. $config->my->task->dtable->fieldList['left']['width'] = 100;
  1071. $config->my->task->dtable->fieldList['assignedTo']['width'] = 100;
  1072. $config->my->task->dtable->fieldList['estimate']['width'] = 100;
  1073. $config->my->bug->dtable->fieldList['resolvedBy']['width'] = 100;
  1074. $config->my->bug->dtable->fieldList['assignedTo']['width'] = 120;
  1075. $config->my->project->dtable->fieldList['executionCount']['width'] = '120';
  1076. $config->my->project->dtable->fieldList['begin']['width'] = '110';
  1077. $config->my->project->dtable->fieldList['end']['width'] = '120';
  1078. $config->my->project->dtable->fieldList['progress']['width'] = '80';
  1079. }