config.php 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. <?php
  2. $config->reporttemplate = new stdclass();
  3. $config->reporttemplate->zentaoList = array();
  4. $config->reporttemplate->create = new stdclass();
  5. $config->reporttemplate->edit = new stdclass();
  6. $config->reporttemplate->create->requiredFields = 'title,lib,module';
  7. $config->reporttemplate->edit->requiredFields = 'title,lib,module';
  8. $config->reporttemplate->skipProjectFields = ',type,lifetime,pri,PO,QD,RD,canceledBy,canceledDate,planDuration,realDuration,displayCards,fluidBoard,deleted,';
  9. $config->reporttemplate->builtinProperties = ',id,budget,name,code,begin,end,realBegan,realEnd,days,desc,openedDate,lastEditedDate,closedDate,suspendedDate,';
  10. $config->reporttemplate->userProperties = ',openedBy,lastEditedBy,closedBy,canceledBy,PM,';
  11. $config->reporttemplate->multipleUserProperties = ',whitelist,';
  12. $config->reporttemplate->weeklyChart['weekly_term']['dateperiods'] = array('$yesterday', '$today', '$lastWeek', '$thisWeek', '$lastMonth', '$thisMonth');
  13. $config->reporttemplate->weeklyChart['weekly_staff']['dateperiods'] = array('$yesterday', '$today', '$lastWeek', '$thisWeek', '$lastMonth', '$thisMonth');
  14. $config->reporttemplate->weeklyChart['project_progress_summary']['dateperiods'] = array('$yesterday', '$today', '$lastWeek', '$thisWeek', '$lastMonth', '$thisMonth');
  15. $config->reporttemplate->weeklyChart['task_basicStatistic_finished']['dateperiods'] = array('$yesterday', '$today', '$lastWeek', '$thisWeek', '$lastMonth', '$thisMonth');
  16. $config->reporttemplate->weeklyChart['task_basicStatistic_unfinished']['dateperiods'] = array('$thisWeek', '$thisMonth');
  17. $config->reporttemplate->weeklyChart['task_basicStatistic_workplan']['dateperiods'] = array('$nextWeek', '$nextMonth');
  18. $config->reporttemplate->propertyMap['auth'] = 'sortAuthList';
  19. $config->reporttemplate->propertyMap['acl'] = 'shortAclList';
  20. $config->reporttemplate->measuremenuConditions['task']['picker'] = array('status', 'pri', 'type', 'closedReason');
  21. $config->reporttemplate->measuremenuConditions['task']['datepicker'] = array('openedDate', 'estStarted', 'deadline', 'realStarted', 'finishedDate', 'closedDate');
  22. $config->reporttemplate->measuremenuConditions['story']['picker'] = array('status', 'stage', 'pri');
  23. $config->reporttemplate->measuremenuConditions['story']['datepicker'] = array('openedDate', 'closedDate');
  24. $config->reporttemplate->measuremenuConditions['bug']['picker'] = array('status', 'severity', 'pri', 'type');
  25. $config->reporttemplate->measuremenuConditions['bug']['datepicker'] = array('openedDate', 'resolvedDate', 'closedDate', 'deadline');
  26. $config->reporttemplate->measuremenuConditions['testcase']['picker'] = array('status', 'pri', 'lastRunResult');
  27. $config->reporttemplate->measuremenuConditions['testcase']['datepicker'] = array('lastRunDate', 'openedDate', 'lastEditedDate');
  28. $config->reporttemplate->measuremenuConditions['weekly']['picker'] = array();
  29. $config->reporttemplate->measuremenuConditions['weekly']['datepicker'] = array('date');
  30. $config->reporttemplate->measuremenuConditions['project']['datepicker'] = array('date');
  31. $config->reporttemplate->getTableColsMethod['HLDS'] = 'getDesignTableCols';
  32. $config->reporttemplate->getTableColsMethod['DDS'] = 'getDesignTableCols';
  33. $config->reporttemplate->getTableColsMethod['DBDS'] = 'getDesignTableCols';
  34. $config->reporttemplate->getTableColsMethod['ADS'] = 'getDesignTableCols';
  35. $config->reporttemplate->getTableColsMethod['projectBug'] = 'getBugTableCols';
  36. $config->reporttemplate->getTableDataMethod['HLDS'] = 'getDesignTableData';
  37. $config->reporttemplate->getTableDataMethod['DDS'] = 'getDesignTableData';
  38. $config->reporttemplate->getTableDataMethod['DBDS'] = 'getDesignTableData';
  39. $config->reporttemplate->getTableDataMethod['ADS'] = 'getDesignTableData';
  40. $config->reporttemplate->getTableDataMethod['projectBug'] = 'getBugTableData';
  41. $config->reporttemplate->getChartOptions['project']['workload'] = array('method' => '', 'chartType' => 'table');
  42. $config->reporttemplate->getChartOptions['project']['summary'] = array('method' => '', 'chartType' => 'table');
  43. $config->reporttemplate->getChartOptions['execution']['closedRate'] = array('method' => 'getWaterEchartsOptions', 'chartType' => 'waterpolo');
  44. $config->reporttemplate->getChartOptions['execution']['delayRate'] = array('method' => 'getWaterEchartsOptions', 'chartType' => 'waterpolo');
  45. $config->reporttemplate->getChartOptions['execution']['statusMap'] = array('method' => 'getBarEchartsOptions', 'chartType' => 'bar');
  46. $config->reporttemplate->getChartOptions['execution']['doingSummary'] = array('method' => '', 'chartType' => 'table');
  47. $config->reporttemplate->getChartOptions['execution']['closedSummary'] = array('method' => '', 'chartType' => 'table');
  48. $config->reporttemplate->getChartOptions['task']['doneRate'] = array('method' => 'getWaterEchartsOptions', 'chartType' => 'waterpolo');
  49. $config->reporttemplate->getChartOptions['task']['taskRate'] = array('method' => 'getWaterEchartsOptions', 'chartType' => 'waterpolo');
  50. $config->reporttemplate->getChartOptions['task']['statusMap'] = array('method' => 'getBarEchartsOptions', 'chartType' => 'bar');
  51. $config->reporttemplate->getChartOptions['task']['assignMap'] = array('method' => 'getPieEchartsOptions', 'chartType' => 'pie');
  52. $config->reporttemplate->getChartOptions['task']['ownerMap'] = array('method' => 'getPieEchartsOptions', 'chartType' => 'pie');
  53. $config->reporttemplate->getChartOptions['task']['moduleMap'] = array('method' => 'getPieEchartsOptions', 'chartType' => 'pie');
  54. $config->reporttemplate->getChartOptions['task']['typeMap'] = array('method' => 'getPieEchartsOptions', 'chartType' => 'pie');
  55. $config->reporttemplate->getChartOptions['task']['priMap'] = array('method' => 'getPieEchartsOptions', 'chartType' => 'pie');
  56. $config->reporttemplate->getChartOptions['task']['reasonMap'] = array('method' => 'getPieEchartsOptions', 'chartType' => 'pie');
  57. $config->reporttemplate->getChartOptions['task']['devRate'] = array('method' => 'getWaterEchartsOptions', 'chartType' => 'waterpolo');
  58. $config->reporttemplate->getChartOptions['task']['testRate'] = array('method' => 'getWaterEchartsOptions', 'chartType' => 'waterpolo');
  59. $config->reporttemplate->getChartOptions['task']['finished'] = array('method' => '', 'chartType' => 'table');
  60. $config->reporttemplate->getChartOptions['task']['unfinished'] = array('method' => '', 'chartType' => 'table');
  61. $config->reporttemplate->getChartOptions['task']['workplan'] = array('method' => '', 'chartType' => 'table');
  62. $config->reporttemplate->getChartOptions['task']['typeHour'] = array('method' => '', 'chartType' => 'table');
  63. $config->reporttemplate->getChartOptions['task']['statusData'] = array('method' => '', 'chartType' => 'table');
  64. $config->reporttemplate->getChartOptions['task']['dailyNum'] = array('method' => 'getBarEchartsOptions', 'chartType' => 'bar');
  65. $config->reporttemplate->getChartOptions['task']['bugRate'] = array('method' => 'getWaterEchartsOptions', 'chartType' => 'waterpolo');
  66. $config->reporttemplate->getChartOptions['task']['bugConsumeRate'] = array('method' => 'getWaterEchartsOptions', 'chartType' => 'waterpolo');
  67. $config->reporttemplate->getChartOptions['task']['userEfforts'] = array('method' => 'getBarYEchartsOptions', 'chartType' => 'bar');
  68. $config->reporttemplate->getChartOptions['task']['teamEfforts'] = array('method' => '', 'chartType' => 'table');
  69. $config->reporttemplate->getChartOptions['task']['workAssignSummary'] = array('method' => '', 'chartType' => 'table');
  70. $config->reporttemplate->getChartOptions['task']['workSummary'] = array('method' => '', 'chartType' => 'table');
  71. $config->reporttemplate->getChartOptions['story']['statusMap'] = array('method' => 'getBarEchartsOptions', 'chartType' => 'bar');
  72. $config->reporttemplate->getChartOptions['story']['stageMap'] = array('method' => 'getBarEchartsOptions', 'chartType' => 'bar');
  73. $config->reporttemplate->getChartOptions['story']['productMap'] = array('method' => 'getSunburstEchartsOptions', 'chartType' => 'sunburst');
  74. $config->reporttemplate->getChartOptions['story']['sourceMap'] = array('method' => 'getPieEchartsOptions', 'chartType' => 'pie');
  75. $config->reporttemplate->getChartOptions['story']['priMap'] = array('method' => 'getPieEchartsOptions', 'chartType' => 'pie');
  76. $config->reporttemplate->getChartOptions['story']['categoryMap'] = array('method' => 'getPieEchartsOptions', 'chartType' => 'pie');
  77. $config->reporttemplate->getChartOptions['story']['userMap'] = array('method' => 'getPieEchartsOptions', 'chartType' => 'pie');
  78. $config->reporttemplate->getChartOptions['story']['devRate'] = array('method' => 'getWaterEchartsOptions', 'chartType' => 'waterpolo');
  79. $config->reporttemplate->getChartOptions['story']['testRate'] = array('method' => 'getWaterEchartsOptions', 'chartType' => 'waterpolo');
  80. $config->reporttemplate->getChartOptions['story']['doneRate'] = array('method' => 'getWaterEchartsOptions', 'chartType' => 'waterpolo');
  81. $config->reporttemplate->getChartOptions['story']['devScaleRate'] = array('method' => 'getWaterEchartsOptions', 'chartType' => 'waterpolo');
  82. $config->reporttemplate->getChartOptions['story']['testScaleRate'] = array('method' => 'getWaterEchartsOptions', 'chartType' => 'waterpolo');
  83. $config->reporttemplate->getChartOptions['story']['doneScaleRate'] = array('method' => 'getWaterEchartsOptions', 'chartType' => 'waterpolo');
  84. $config->reporttemplate->getChartOptions['bug']['efficientRate'] = array('method' => 'getWaterEchartsOptions', 'chartType' => 'waterpolo');
  85. $config->reporttemplate->getChartOptions['bug']['fixedRate'] = array('method' => 'getWaterEchartsOptions', 'chartType' => 'waterpolo');
  86. $config->reporttemplate->getChartOptions['bug']['caseBugRate'] = array('method' => 'getWaterEchartsOptions', 'chartType' => 'waterpolo');
  87. $config->reporttemplate->getChartOptions['bug']['statusMap'] = array('method' => 'getBarEchartsOptions', 'chartType' => 'bar');
  88. $config->reporttemplate->getChartOptions['bug']['productMap'] = array('method' => 'getSunburstEchartsOptions', 'chartType' => 'sunburst');
  89. $config->reporttemplate->getChartOptions['bug']['severityMap'] = array('method' => 'getPieEchartsOptions', 'chartType' => 'pie');
  90. $config->reporttemplate->getChartOptions['bug']['priMap'] = array('method' => 'getPieEchartsOptions', 'chartType' => 'pie');
  91. $config->reporttemplate->getChartOptions['bug']['resolutionMap'] = array('method' => 'getPieEchartsOptions', 'chartType' => 'pie');
  92. $config->reporttemplate->getChartOptions['bug']['typeMap'] = array('method' => 'getPieEchartsOptions', 'chartType' => 'pie');
  93. $config->reporttemplate->getChartOptions['bug']['dailyNum'] = array('method' => 'getLineEchartsOptions', 'chartType' => 'line');
  94. $config->reporttemplate->getChartOptions['bug']['userCreatedBugs'] = array('method' => 'getBarYEchartsOptions', 'chartType' => 'bar');
  95. $config->reporttemplate->getChartOptions['bug']['userResolvedBugs'] = array('method' => 'getBarYEchartsOptions', 'chartType' => 'bar');
  96. $config->reporttemplate->getChartOptions['testcase']['userCreatedCases'] = array('method' => 'getBarYEchartsOptions', 'chartType' => 'bar');
  97. $config->reporttemplate->getChartOptions['testcase']['userExecutedCases'] = array('method' => 'getBarYEchartsOptions', 'chartType' => 'bar');
  98. $config->reporttemplate->getChartOptions['testcase']['productMap'] = array('method' => 'getSunburstEchartsOptions', 'chartType' => 'sunburst');
  99. $config->reporttemplate->getChartOptions['testcase']['statusMap'] = array('method' => 'getPieEchartsOptions', 'chartType' => 'pie');
  100. $config->reporttemplate->getChartOptions['testcase']['priMap'] = array('method' => 'getPieEchartsOptions', 'chartType' => 'pie');
  101. $config->reporttemplate->getChartOptions['testcase']['resultMap'] = array('method' => 'getPieEchartsOptions', 'chartType' => 'pie');
  102. $config->reporttemplate->getChartOptions['testcase']['typeMap'] = array('method' => 'getPieEchartsOptions', 'chartType' => 'pie');
  103. global $lang, $app;
  104. $app->loadLang('task');
  105. $config->reporttemplate->weeklyTableHeader = array();
  106. $config->reporttemplate->weeklyTableHeader['finished'][] = array('field' => 'id', 'name' => 'id', 'label' => $lang->idAB);
  107. $config->reporttemplate->weeklyTableHeader['finished'][] = array('field' => 'name', 'name' => 'name', 'label' => $lang->task->name);
  108. $config->reporttemplate->weeklyTableHeader['finished'][] = array('field' => 'estStarted', 'name' => 'estStarted', 'label' => $lang->task->estStarted);
  109. $config->reporttemplate->weeklyTableHeader['finished'][] = array('field' => 'deadline', 'name' => 'deadline', 'label' => $lang->task->deadline);
  110. $config->reporttemplate->weeklyTableHeader['finished'][] = array('field' => 'realStarted', 'name' => 'realStarted', 'label' => $lang->task->realStarted);
  111. $config->reporttemplate->weeklyTableHeader['finished'][] = array('field' => 'finishedBy', 'name' => 'finishedBy', 'label' => $lang->task->finishedBy);
  112. $config->reporttemplate->weeklyTableHeader['unfinished'][] = array('field' => 'id', 'name' => 'id', 'label' => $lang->idAB);
  113. $config->reporttemplate->weeklyTableHeader['unfinished'][] = array('field' => 'name', 'name' => 'name', 'label' => $lang->task->name);
  114. $config->reporttemplate->weeklyTableHeader['unfinished'][] = array('field' => 'assignedTo', 'name' => 'assignedTo', 'label' => $lang->task->assignedTo);
  115. $config->reporttemplate->weeklyTableHeader['unfinished'][] = array('field' => 'estStarted', 'name' => 'estStarted', 'label' => $lang->task->estStarted);
  116. $config->reporttemplate->weeklyTableHeader['unfinished'][] = array('field' => 'deadline', 'name' => 'deadline', 'label' => $lang->task->deadline);
  117. $config->reporttemplate->weeklyTableHeader['unfinished'][] = array('field' => 'realStarted', 'name' => 'realStarted', 'label' => $lang->task->realStarted);
  118. $config->reporttemplate->weeklyTableHeader['unfinished'][] = array('field' => 'progress', 'name' => 'progress', 'label' => $lang->task->progress);
  119. $config->reporttemplate->weeklyTableHeader['workplan'][] = array('field' => 'id', 'name' => 'id', 'label' => $lang->idAB);
  120. $config->reporttemplate->weeklyTableHeader['workplan'][] = array('field' => 'name', 'name' => 'name', 'label' => $lang->task->name);
  121. $config->reporttemplate->weeklyTableHeader['workplan'][] = array('field' => 'assignedTo', 'name' => 'assignedTo', 'label' => $lang->task->assignedTo);
  122. $config->reporttemplate->weeklyTableHeader['workplan'][] = array('field' => 'estStarted', 'name' => 'estStarted', 'label' => $lang->task->estStarted);
  123. $config->reporttemplate->weeklyTableHeader['workplan'][] = array('field' => 'deadline', 'name' => 'deadline', 'label' => $lang->task->deadline);