* Code for block riskList.

This commit is contained in:
holan20180123
2020-08-20 16:27:26 +08:00
parent 1cced1537d
commit f5319cee4e
11 changed files with 118 additions and 3 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ $lang->risk->close = '关闭';
$lang->risk->cancel = '取消';
$lang->risk->track = '跟踪';
$lang->risk->assignTo = '指派';
$lang->risk->deleted = '删除';
$lang->risk->delete = '删除';
$lang->risk->byQuery = '搜索';
/* Fields */
+19
View File
@@ -195,6 +195,25 @@ class riskModel extends model
return $this->dao->select('*')->from(TABLE_RISK)->where('id')->eq((int)$riskID)->fetch();
}
/**
* Get block risks
*
* @param string $browseType
* @param int $limit
* @param string $orderBy
* @access public
* @return object
*/
public function getBlockRisks($browseType = 'all', $limit = 15, $orderBy = 'id_desc')
{
return $this->dao->select('*')->from(TABLE_RISK)
->where('program')->eq($this->session->program)
->andWhere('deleted')->eq('0')
->orderBy($orderBy)
->limit($limit)
->fetchAll();
}
/**
* Print assignedTo html
*