<?php
global $lang;
$config->perfproject->create = new stdclass();
$config->perfproject->edit   = new stdclass();

$config->perfproject->create->requiredFields = 'name,source';
$config->perfproject->edit->requiredFields   = 'name,source';

$config->perfproject->search['module']                 = 'perfproject';
$config->perfproject->search['fields']['name']         = $lang->perfproject->name;
$config->perfproject->search['fields']['id']           = $lang->perfproject->id;
$config->perfproject->search['fields']['createdBy']    = $lang->perfproject->createdBy;
$config->perfproject->search['fields']['createdDate']  = $lang->perfproject->createdDate;
$config->perfproject->search['fields']['acl']          = $lang->perfproject->acl;

$config->perfproject->search['params']['name']        = array('operator' => 'include', 'control' => 'input' , 'values' => '');
$config->perfproject->search['params']['id']          = array('operator' => '='      , 'control' => 'input' , 'values' => '');
$config->perfproject->search['params']['createdBy']   = array('operator' => '='      , 'control' => 'select', 'values' => '');
$config->perfproject->search['params']['createdDate'] = array('operator' => '='      , 'control' => 'input' , 'values' => '', 'class' => 'date');
$config->perfproject->search['params']['acl']         = array('operator' => '='      , 'control' => 'select', 'values' => '');

/* 1.0 */
$config->perfproject->tableList = array();
$config->perfproject->tableList['story']     = array('key' => 'productStory', 'value' => 'productStory', 'text' => $lang->perfproject->tableList['productStory'] . $lang->perfproject->list, 'module' => 'product',   'method' => 'browse',    'params' => 'productID=0&branch=all&browseType=&param=0&storyType=story&orderBy=&recTotal=0&recPerPage=20&pageID=1&projectID=0&from=perf', 'priv' => 'productStory');
$config->perfproject->tableList['bug']       = array('key' => 'productBug',   'value' => 'productBug',   'text' => $lang->perfproject->tableList['productBug'] . $lang->perfproject->list,   'module' => 'bug',       'method' => 'browse',    'params' => 'productID=0&branch=&browseType=&param=0&orderBy=&recTotal=0&recPerPage=20&pageID=1&from=perf', 'priv' => 'productBug');
$config->perfproject->tableList['execution'] = array('key' => 'execution',    'value' => 'execution',    'text' => $lang->perfproject->tableList['execution'] . $lang->perfproject->list,    'module' => 'project',   'method' => 'execution', 'params' => 'status=undone&projectID=0&orderBy=order_asc&productID=0&recTotal=1&recPerPage=100&pageID=1&queryID=0&from=perf', 'priv' => 'execution');
$config->perfproject->tableList['task']      = array('key' => 'task',         'value' => 'task',         'text' => $lang->perfproject->tableList['task'] . $lang->perfproject->list,         'module' => 'execution', 'method' => 'task',      'params' => 'execution=0&status=unclosed&param=0&orderBy=&recTotal=0&recPerPage=100&pageID=1&from=perf', 'priv' => 'taskBrowse');

/* 后续版本 */
// $config->perfproject->tableList['story'] = array('key' => 'story', 'text' => $lang->perfproject->tableList['story'] . $lang->perfproject->list, 'items' => array(), 'priv' => 'storyBrowse');
// $config->perfproject->tableList['task']  = array('key' => 'task',  'text' => $lang->perfproject->tableList['task'] . $lang->perfproject->list,  'value' => 'task',  'module' => 'execution', 'method' => 'task', 'params' => 'execution=0&status=unclosed&param=0&orderBy=&recTotal=0&recPerPage=100&pageID=1&from=perf', 'priv' => 'taskBrowse');
// $config->perfproject->tableList['bug']   = array('key' => 'bug',   'text' => $lang->perfproject->tableList['bug'] . $lang->perfproject->list,   'items' => array(), 'priv' => 'bugBrowse');

// $config->perfproject->tableList['story']['items'][] = array('key' => 'productStory',   'value' => 'productStory',   'text' => $lang->perfproject->tableList['productStory'] . $lang->perfproject->list,  'module' => 'product', 'method' => 'browse', 'params' => 'productID=0&branch=all&browseType=&param=0&storyType=story&orderBy=&recTotal=0&recPerPage=20&pageID=1&projectID=0&from=perf', 'priv' => 'productStory');
// $config->perfproject->tableList['story']['items'][] = array('key' => 'projectStory',   'value' => 'projectStory',   'text' => $lang->perfproject->tableList['projectStory'] . $lang->perfproject->list,   'module' => 'projectStory', 'method' => 'story', 'params' => 'projectID=0&productID=0&branch=&browseTyp=&param=0&storyType=story&orderBy=&recTotal=0&recPerPage=20&pageID=1&from=doc', 'priv' => 'projectStory');
// $config->perfproject->tableList['story']['items'][] = array('key' => 'executionStory', 'value' => 'executionStory', 'text' => $lang->perfproject->tableList['executionStory'] . $lang->perfproject->list, 'module' => 'execution', 'method' => 'story', 'params' => 'executionID=0&storyType=story&orderBy=&type=all&param=0&recTotal=0&recPerPage=20&pageID=1&from=doc', 'priv' => 'executionStory');
// $config->perfproject->tableList['story']['items'][] = array('key' => 'planStory',      'value' => 'planStory',      'text' => $lang->perfproject->tableList['planStory'] . $lang->perfproject->list,      'module' => 'productplan', 'method' => 'story', 'params' => 'productID=0&planID=0&blockID=0', 'priv' => 'productplanView');

// $config->perfproject->tableList['bug']['items'][] = array('key' => 'productBug', 'value' => 'productBug', 'text' => $lang->perfproject->tableList['productBug'] . $lang->perfproject->list, 'module' => 'bug', 'method' => 'browse', 'params' => 'productID=0&branch=&browseType=&param=0&orderBy=&recTotal=0&recPerPage=20&pageID=1&from=doc', 'priv' => 'productBug');
// $config->perfproject->tableList['bug']['items'][] = array('key' => 'planBug',    'value' => 'planBug',    'text' => $lang->perfproject->tableList['planBug'] . $lang->perfproject->list,    'module' => 'productplan', 'method' => 'bug', 'params' => 'productID=0&planID=0&blockID=0', 'priv' => 'productplanView');
