zentaobiz.php 2.3 KB

123456789101112131415161718192021222324252627
  1. <?php
  2. unset($config->project->search['fields']['hasProduct']);
  3. $config->project->search['fields']['workflowGroup'] = $lang->project->workflowGroup;
  4. $config->project->search['params']['workflowGroup'] = array('operator' => '=' , 'control' => 'select', 'values' => array());
  5. $config->project->form->create['charter'] = array('type' => 'int', 'required' => false, 'default' => 0);
  6. $config->project->form->create['workflowGroup'] = array('type' => 'int', 'control' => 'select', 'required' => false, 'default' => '0', 'options' => array());
  7. $config->project->form->create['linkType'] = array('type' => 'string', 'control' => 'hidden', 'default' => 'plan');
  8. $config->project->form->edit['charter'] = array('type' => 'int', 'required' => false, 'default' => 0);
  9. $config->project->form->edit['workflowGroup'] = array('type' => 'int', 'control' => 'select', 'required' => false, 'default' => '0', 'options' => array());
  10. $config->project->form->edit['linkType'] = array('type' => 'string', 'control' => 'hidden', 'default' => 'plan');
  11. if(!isset($config->project->reportChart)) $config->project->reportChart = new stdclass();
  12. $config->project->reportChart->exportFields = array();
  13. $config->project->reportChart->exportFields['execution']['basic']['basic'] = array('total', 'doingNum', 'closedNum', 'delayNum');
  14. $config->project->reportChart->exportFields['execution']['basic']['closedRate'] = 'image';
  15. $config->project->reportChart->exportFields['execution']['basic']['delayRate'] = 'image';
  16. $config->project->reportChart->exportFields['execution']['basic']['statusMap'] = 'image';
  17. $config->project->reportChart->exportFields['execution']['basic']['doingSummary'] = 'table';
  18. $config->project->reportChart->exportFields['execution']['basic']['closedSummary'] = 'table';
  19. $config->project->reportChart->tableHeaders['doingSummary'] = array('name', 'storyNum', 'taskNum', 'undoneTask', 'undoneStory', 'left', 'consumed', 'progress');
  20. $config->project->reportChart->tableHeaders['closedSummary'] = array('name', 'devRate', 'passRate', 'storyDoneRate', 'devDoneRate', 'testDoneRate', 'testDensity');
  21. unset($config->project->dtable->fieldList['hasProduct']);
  22. $config->project->list->exportFields = str_replace(',hasProduct,', ',workflowGroup,', $config->project->list->exportFields);