+ add editor to product module.

+ add PO, QM, RM to product and project.
This commit is contained in:
wangchunsheng
2010-11-24 03:29:13 +00:00
parent 79aa8ae51e
commit 11c730dff5
15 changed files with 119 additions and 50 deletions

View File

@@ -258,6 +258,21 @@ class projectModel extends model
return $project;
}
/**
* Get the default managers for a project from it's related products.
*
* @param int $projectID
* @access public
* @return object
*/
public function getDefaultManagers($projectID)
{
return $this->dao->select('PO,QM,RM')->from(TABLE_PRODUCT)->alias('t1')
->leftJoin(TABLE_PROJECTPRODUCT)->alias('t2')->on('t1.id = t2.product')
->where('t2.project')->eq($projectID)
->fetch();
}
/**
* Get products of a project.
*