* Finish task #83945.

This commit is contained in:
hufangzhou
2023-02-07 08:38:42 +00:00
parent a8d61efcad
commit f96ff40f65
7 changed files with 87 additions and 37 deletions
+21
View File
@@ -215,6 +215,7 @@ class programplan extends control
$this->loadModel('project');
$this->app->loadLang('execution');
$this->app->loadLang('stage');
$plan = $this->programplan->getByID($planID);
global $lang;
@@ -332,6 +333,13 @@ class programplan extends control
}
}
/**
* AJAX: Get attributes.
*
* @param int $stageID
* @access public
* @return int
*/
public function ajaxGetAttribute($stageID)
{
$this->app->loadLang('stage');
@@ -346,4 +354,17 @@ class programplan extends control
return print(zget($this->lang->stage->typeList, $attribute));
}
}
/**
* AJAX: Get stage's attribute.
*
* @param int $stageID
* @access public
* @return int
*/
public function ajaxGetStageAttr($stageID)
{
$stage = $this->dao->select('attribute')->from(TABLE_EXECUTION)->where('id')->eq($stageID)->fetch('attribute');
return print($stage);
}
}