* Code for task #92310.

This commit is contained in:
tanghucheng
2023-05-09 14:27:15 +08:00
parent d0b541ec90
commit 35b092bd5f
+14 -1
View File
@@ -5435,8 +5435,21 @@ class executionModel extends model
$menu = '';
$params = "executionID=$execution->id";
$this->app->loadLang('stage');
$title = '';
$disabled = '';
$menu .= "<div class='divider'></div>";
$menu .= $this->buildMenu('execution', 'start', $params, $execution, $type, '', '', 'iframe', true);
if($this->config->systemMode == 'PLM' and in_array($execution->attribute, array_keys($this->lang->stage->ipdTypeList)))
{
$execution->ipdStage = $this->canStageStart($execution);
if($execution->ipdStage['canStart']) $menu .= $this->buildMenu('execution', 'start', $params, $execution, $type, '', '', 'iframe', true, $disabled, $title);
}
else
{
$menu .= $this->buildMenu('execution', 'start', $params, $execution, $type, '', '', 'iframe', true, $disabled, $title);
}
$menu .= $this->buildMenu('execution', 'activate', $params, $execution, $type, '', '', 'iframe', true);
$menu .= $this->buildMenu('execution', 'putoff', $params, $execution, $type, '', '', 'iframe', true);
$menu .= $this->buildMenu('execution', 'suspend', $params, $execution, $type, '', '', 'iframe', true);