From 421b7933b0a901ac3c48c6d97bf357b33071d1df Mon Sep 17 00:00:00 2001 From: xieqiyu Date: Tue, 18 Apr 2023 05:22:38 +0000 Subject: [PATCH] * Add config. --- module/dataview/table/bug.php | 5 ++++ module/dataview/table/project.php | 5 ++++ module/dataview/table/release.php | 1 + module/dataview/table/story.php | 5 ++++ module/dataview/table/task.php | 40 ++++++++++++++++--------------- 5 files changed, 37 insertions(+), 19 deletions(-) diff --git a/module/dataview/table/bug.php b/module/dataview/table/bug.php index 53cc4f8d55..676b0bbecc 100644 --- a/module/dataview/table/bug.php +++ b/module/dataview/table/bug.php @@ -31,6 +31,7 @@ $schema->fields['id'] = array('type' => 'number', 'name' => $this->lan $schema->fields['title'] = array('type' => 'string', 'name' => $this->lang->bug->title); $schema->fields['steps'] = array('type' => 'text', 'name' => $this->lang->bug->steps); $schema->fields['status'] = array('type' => 'option', 'name' => $this->lang->bug->status, 'options' => $this->lang->bug->statusList); +$schema->fields['type'] = array('type' => 'option', 'name' => $this->lang->bug->type, 'options' => $this->lang->bug->typeList); $schema->fields['confirmed'] = array('type' => 'option', 'name' => $this->lang->bug->confirmed, 'options' => $this->lang->bug->confirmedList); $schema->fields['severity'] = array('type' => 'option', 'name' => $this->lang->bug->severity, 'options' => $this->lang->bug->severityList); $schema->fields['product'] = array('type' => 'object', 'name' => $this->lang->bug->product, 'object' => 'product', 'show' => 'product.name'); @@ -38,11 +39,15 @@ $schema->fields['project'] = array('type' => 'object', 'name' => $this->lan $schema->fields['bugmodule'] = array('type' => 'object', 'name' => $this->lang->bug->module, 'object' => 'bugmodule', 'show' => 'bugmodule.name'); $schema->fields['story'] = array('type' => 'object', 'name' => $this->lang->story->common, 'object' => 'story', 'show' => 'story.title'); $schema->fields['pri'] = array('type' => 'option', 'name' => $this->lang->bug->pri, 'options' => $this->lang->bug->priList); +$schema->fields['assignedTo'] = array('type' => 'user', 'name' => $this->lang->bug->assignedTo); +$schema->fields['assignedDate'] = array('type' => 'date', 'name' => $this->lang->bug->assignedDate); $schema->fields['openedBy'] = array('type' => 'user', 'name' => $this->lang->bug->openedBy); $schema->fields['openedDate'] = array('type' => 'date', 'name' => $this->lang->bug->openedDate); $schema->fields['resolvedBy'] = array('type' => 'user', 'name' => $this->lang->bug->resolvedBy); $schema->fields['resolution'] = array('type' => 'option', 'name' => $this->lang->bug->resolution, 'options' => $this->lang->bug->resolutionList); $schema->fields['resolvedDate'] = array('type' => 'date', 'name' => $this->lang->bug->resolvedDate); +$schema->fields['closedBy'] = array('type' => 'user', 'name' => $this->lang->bug->closedBy); +$schema->fields['closedDate'] = array('type' => 'date', 'name' => $this->lang->bug->closedDate); $schema->objects = array(); diff --git a/module/dataview/table/project.php b/module/dataview/table/project.php index 2f2def927f..3624c4edf5 100644 --- a/module/dataview/table/project.php +++ b/module/dataview/table/project.php @@ -12,6 +12,7 @@ $schema->tables['project'] = 'zt_project'; $schema->joins = array(); $schema->fields = array(); +$schema->fields['id'] = array('type' => 'number', 'name' => $this->lang->project->id); $schema->fields['name'] = array('type' => 'string', 'name' => $this->lang->project->name); $schema->fields['code'] = array('type' => 'string', 'name' => $this->lang->project->code); $schema->fields['model'] = array('type' => 'option', 'name' => $this->lang->project->model, 'options' => $this->lang->project->modelList); @@ -26,5 +27,9 @@ $schema->fields['QD'] = array('type' => 'user', 'name' => $this->lang $schema->fields['RD'] = array('type' => 'user', 'name' => $this->lang->project->RD); $schema->fields['openedBy'] = array('type' => 'user', 'name' => $this->lang->project->openedBy); $schema->fields['openedDate'] = array('type' => 'date', 'name' => $this->lang->project->openedDate); +$schema->fields['realBegan'] = array('type' => 'date', 'name' => $this->lang->project->realBegan); +$schema->fields['realEnd'] = array('type' => 'date', 'name' => $this->lang->project->realEnd); +$schema->fields['closedBy'] = array('type' => 'user', 'name' => $this->lang->project->closedBy); +$schema->fields['closedDate'] = array('type' => 'date', 'name' => $this->lang->project->closedDate); $schema->objects = array(); diff --git a/module/dataview/table/release.php b/module/dataview/table/release.php index a0c74459d5..7e126dbb30 100644 --- a/module/dataview/table/release.php +++ b/module/dataview/table/release.php @@ -20,6 +20,7 @@ $schema->joins['project'] = 'release.project = project.id'; $schema->joins['build'] = 'release.build = build.id'; $schema->fields = array(); +$schema->fields['id'] = array('type' => 'number', 'name' => $this->lang->release->id); $schema->fields['product'] = array('type' => 'object', 'name' => $this->lang->release->product, 'object' => 'product', 'show' => 'product.name'); $schema->fields['project'] = array('type' => 'object', 'name' => $this->lang->release->project, 'object' => 'project', 'show' => 'project.name'); $schema->fields['build'] = array('type' => 'object', 'name' => $this->lang->release->build, 'object' => 'build', 'show' => 'build.name'); diff --git a/module/dataview/table/story.php b/module/dataview/table/story.php index 022c4225b6..4e538769fd 100644 --- a/module/dataview/table/story.php +++ b/module/dataview/table/story.php @@ -31,12 +31,17 @@ $schema->fields['title'] = array('type' => 'string', 'name' => $this->lan $schema->fields['status'] = array('type' => 'option', 'name' => $this->lang->story->status, 'options' => $this->lang->story->statusList); $schema->fields['stage'] = array('type' => 'option', 'name' => $this->lang->story->stage, 'options' => $this->lang->story->stageList); $schema->fields['pri'] = array('type' => 'option', 'name' => $this->lang->story->pri, 'options' => $this->lang->story->priList); +$schema->fields['source'] = array('type' => 'option', 'name' => $this->lang->story->source, 'options' => $this->lang->story->sourceList); +$schema->fields['category'] = array('type' => 'option', 'name' => $this->lang->story->category, 'options' => $this->lang->story->categoryList); $schema->fields['product'] = array('type' => 'object', 'name' => $this->lang->story->product, 'object' => 'product', 'show' => 'product.name'); $schema->fields['storymodule'] = array('type' => 'object', 'name' => $this->lang->story->module, 'object' => 'storymodule', 'show' => 'storymodule.name'); $schema->fields['closedDate'] = array('type' => 'date', 'name' => $this->lang->story->closedDate); $schema->fields['closedReason'] = array('type' => 'option', 'name' => $this->lang->story->closedReason, 'options' => $this->lang->story->reasonList); $schema->fields['openedBy'] = array('type' => 'user', 'name' => $this->lang->story->openedBy); $schema->fields['openedDate'] = array('type' => 'date', 'name' => $this->lang->story->openedDate); +$schema->fields['assignedTo'] = array('type' => 'user', 'name' => $this->lang->story->assignedTo); +$schema->fields['changedBy'] = array('type' => 'user', 'name' => $this->lang->story->changedBy); +$schema->fields['closedBy'] = array('type' => 'user', 'name' => $this->lang->story->closedBy); $schema->objects = array(); diff --git a/module/dataview/table/task.php b/module/dataview/table/task.php index d5d1a562d1..a682b1e3dd 100644 --- a/module/dataview/table/task.php +++ b/module/dataview/table/task.php @@ -24,25 +24,27 @@ $schema->joins['story'] = 'task.story = story.id'; $schema->joins['taskmodule'] = 'task.module = taskmodule.id'; $schema->fields = array(); -$schema->fields['project'] = array('type' => 'object', 'name' => $this->lang->task->project, 'object' => 'project', 'show' => 'project.name'); -$schema->fields['execution'] = array('type' => 'object', 'name' => $this->lang->task->execution, 'object' => 'execution', 'show' => 'execution.name'); -$schema->fields['story'] = array('type' => 'object', 'name' => $this->lang->task->story, 'object' => 'story', 'show' => 'story.title'); -$schema->fields['taskmodule'] = array('type' => 'object', 'name' => $this->lang->task->module, 'object' => 'taskmodule', 'show' => 'taskmodule.name'); -$schema->fields['name'] = array('type' => 'string', 'name' => $this->lang->task->name); -$schema->fields['pri'] = array('type' => 'option', 'name' => $this->lang->task->pri, 'options' => $this->lang->task->priList); -$schema->fields['type'] = array('type' => 'option', 'name' => $this->lang->task->type, 'options' => $this->lang->task->typeList); -$schema->fields['status'] = array('type' => 'option', 'name' => $this->lang->task->status, 'options' => $this->lang->task->statusList); -$schema->fields['desc'] = array('type' => 'string', 'name' => $this->lang->task->desc); -$schema->fields['estimate'] = array('type' => 'string', 'name' => $this->lang->task->estimate); -$schema->fields['consumed'] = array('type' => 'string', 'name' => $this->lang->task->consumed); -$schema->fields['left'] = array('type' => 'string', 'name' => $this->lang->task->left); -$schema->fields['estStarted'] = array('type' => 'date', 'name' => $this->lang->task->estStarted); -$schema->fields['deadline'] = array('type' => 'date', 'name' => $this->lang->task->deadline); -$schema->fields['assignedTo'] = array('type' => 'user', 'name' => $this->lang->task->assignedTo); -$schema->fields['finishedBy'] = array('type' => 'user', 'name' => $this->lang->task->finishedBy); -$schema->fields['closedBy'] = array('type' => 'user', 'name' => $this->lang->task->closedBy); -$schema->fields['openedBy'] = array('type' => 'user', 'name' => $this->lang->task->openedBy); -$schema->fields['openedDate'] = array('type' => 'date', 'name' => $this->lang->task->openedDate); +$schema->fields['project'] = array('type' => 'object', 'name' => $this->lang->task->project, 'object' => 'project', 'show' => 'project.name'); +$schema->fields['execution'] = array('type' => 'object', 'name' => $this->lang->task->execution, 'object' => 'execution', 'show' => 'execution.name'); +$schema->fields['story'] = array('type' => 'object', 'name' => $this->lang->task->story, 'object' => 'story', 'show' => 'story.title'); +$schema->fields['taskmodule'] = array('type' => 'object', 'name' => $this->lang->task->module, 'object' => 'taskmodule', 'show' => 'taskmodule.name'); +$schema->fields['name'] = array('type' => 'string', 'name' => $this->lang->task->name); +$schema->fields['pri'] = array('type' => 'option', 'name' => $this->lang->task->pri, 'options' => $this->lang->task->priList); +$schema->fields['type'] = array('type' => 'option', 'name' => $this->lang->task->type, 'options' => $this->lang->task->typeList); +$schema->fields['status'] = array('type' => 'option', 'name' => $this->lang->task->status, 'options' => $this->lang->task->statusList); +$schema->fields['desc'] = array('type' => 'string', 'name' => $this->lang->task->desc); +$schema->fields['estimate'] = array('type' => 'string', 'name' => $this->lang->task->estimate); +$schema->fields['consumed'] = array('type' => 'string', 'name' => $this->lang->task->consumed); +$schema->fields['left'] = array('type' => 'string', 'name' => $this->lang->task->left); +$schema->fields['estStarted'] = array('type' => 'date', 'name' => $this->lang->task->estStarted); +$schema->fields['deadline'] = array('type' => 'date', 'name' => $this->lang->task->deadline); +$schema->fields['assignedTo'] = array('type' => 'user', 'name' => $this->lang->task->assignedTo); +$schema->fields['finishedBy'] = array('type' => 'user', 'name' => $this->lang->task->finishedBy); +$schema->fields['closedBy'] = array('type' => 'user', 'name' => $this->lang->task->closedBy); +$schema->fields['openedBy'] = array('type' => 'user', 'name' => $this->lang->task->openedBy); +$schema->fields['openedDate'] = array('type' => 'date', 'name' => $this->lang->task->openedDate); +$schema->fields['canceledBy'] = array('type' => 'user', 'name' => $this->lang->task->canceledBy); +$schema->fields['closedReason'] = array('type' => 'option', 'name' => $this->lang->task->closedReason, 'options' => $this->lang->task->reasonList); $schema->objects = array();