* Set fields of zerocase view.

This commit is contained in:
daitingting
2023-06-15 00:47:57 +00:00
parent 0e47b72ac1
commit c9bd962dbb
2 changed files with 72 additions and 0 deletions
+30
View File
@@ -275,3 +275,33 @@ $config->testcase->customBatchCreateFields = 'module,scene,stage,story,pri,pre
$config->testcase->customBatchEditFields = 'module,scene,story,stage,precondition,status,pri,keywords';
$config->testcase->custom->batchCreateFields = 'module,scene,story,%s';
$config->testcase->custom->batchEditFields = 'branch,module,scene,stage,status,pri,story';
$app->loadLang('story');
$config->testcase->zerocase = new stdclass();
$config->testcase->zerocase->actionList['change']['icon'] = 'change';
$config->testcase->zerocase->actionList['change']['text'] = $lang->story->change;
$config->testcase->zerocase->actionList['change']['hint'] = $lang->story->change;
$config->testcase->zerocase->actionList['change']['url'] = array('module' => 'story', 'method' => 'change', 'params' => 'bugID={id}');
$config->testcase->zerocase->actionList['change']['data-toggle'] = 'modal';
$config->testcase->zerocase->actionList['review']['icon'] = 'review';
$config->testcase->zerocase->actionList['review']['text'] = $lang->story->review;
$config->testcase->zerocase->actionList['review']['hint'] = $lang->story->review;
$config->testcase->zerocase->actionList['review']['url'] = array('module' => 'story', 'method' => 'review', 'params' => 'bugID={id}');
$config->testcase->zerocase->actionList['review']['data-toggle'] = 'modal';
$config->testcase->zerocase->actionList['close']['icon'] = 'off';
$config->testcase->zerocase->actionList['close']['text'] = $lang->story->close;
$config->testcase->zerocase->actionList['close']['hint'] = $lang->story->close;
$config->testcase->zerocase->actionList['close']['url'] = array('module' => 'story', 'method' => 'close', 'params' => 'bugID={id}');
$config->testcase->zerocase->actionList['close']['data-toggle'] = 'modal';
$config->testcase->zerocase->actionList['edit']['icon'] = 'edit';
$config->testcase->zerocase->actionList['edit']['text'] = $lang->story->edit;
$config->testcase->zerocase->actionList['edit']['hint'] = $lang->story->edit;
$config->testcase->zerocase->actionList['edit']['url'] = array('module' => 'story', 'method' => 'edit', 'params' => 'bugID={id}');
$config->testcase->zerocase->actionList['createcase']['icon'] = 'sitemap';
$config->testcase->zerocase->actionList['createcase']['text'] = $lang->testcase->create;
$config->testcase->zerocase->actionList['createcase']['hint'] = $lang->testcase->create;
$config->testcase->zerocase->actionList['createcase']['url'] = array('module' => 'story', 'method' => 'createCase', 'params' => 'productID={product}&branch=0&module=0&from=0&storyID={id}');
+42
View File
@@ -117,3 +117,45 @@ $config->testcase->dtable->fieldList['actions']['list'] = $config->testcase-
$config->testcase->dtable->fieldList['actions']['menu'] = array();
$config->testcase->dtable->fieldList['actions']['required'] = true;
$config->testcase->dtable->fieldList['actions']['group'] = '7';
$config->testcase->zerocase->dtable = new stdclass();
$config->testcase->zerocase->dtable->fieldList['id']['title'] = $lang->idAB;
$config->testcase->zerocase->dtable->fieldList['id']['type'] = 'checkID';
$config->testcase->zerocase->dtable->fieldList['title']['title'] = $lang->story->title;
$config->testcase->zerocase->dtable->fieldList['title']['type'] = 'title';
$config->testcase->zerocase->dtable->fieldList['title']['link'] = array('module' => 'story', 'method' => 'view', "storyID={id}&version=0&param={param}");
$config->testcase->zerocase->dtable->fieldList['pri']['title'] = $lang->story->pri;
$config->testcase->zerocase->dtable->fieldList['pri']['type'] = 'pri';
$config->testcase->zerocase->dtable->fieldList['planTitle']['title'] = $lang->story->planAB;
$config->testcase->zerocase->dtable->fieldList['planTitle']['type'] = 'text';
$config->testcase->zerocase->dtable->fieldList['status']['title'] = $lang->story->status;
$config->testcase->zerocase->dtable->fieldList['status']['type'] = 'status';
$config->testcase->zerocase->dtable->fieldList['status']['statusMap'] = $lang->story->statusList;
$config->testcase->zerocase->dtable->fieldList['openedBy']['title'] = $lang->story->openedByAB;
$config->testcase->zerocase->dtable->fieldList['openedBy']['type'] = 'user';
$config->testcase->zerocase->dtable->fieldList['estimate']['title'] = $lang->story->estimate;
$config->testcase->zerocase->dtable->fieldList['estimate']['type'] = 'count';
$config->testcase->zerocase->dtable->fieldList['stage']['title'] = $lang->story->stage;
$config->testcase->zerocase->dtable->fieldList['stage']['type'] = 'category';
$config->testcase->zerocase->dtable->fieldList['stage']['map'] = $lang->story->stageList;
$config->testcase->zerocase->dtable->fieldList['assignedTo']['title'] = $lang->story->assignedTo;
$config->testcase->zerocase->dtable->fieldList['assignedTo']['type'] = 'assign';
$config->testcase->zerocase->dtable->fieldList['source']['title'] = $lang->story->source;
$config->testcase->zerocase->dtable->fieldList['source']['type'] = 'category';
$config->testcase->zerocase->dtable->fieldList['source']['map'] = $lang->story->sourceList;
$config->testcase->zerocase->dtable->fieldList['actions']['title'] = $lang->actions;
$config->testcase->zerocase->dtable->fieldList['actions']['type'] = 'actions';
$config->testcase->zerocase->dtable->fieldList['actions']['list'] = $config->testcase->zerocase->actionList;
$config->testcase->zerocase->dtable->fieldList['actions']['menu'] = array('change', 'review', 'close', 'edit', 'createcase');
$config->testcase->zerocase->dtable->fieldList['actions']['required'] = true;
$config->testcase->zerocase->dtable->fieldList['actions']['group'] = '7';