* Code for task #56547.

This commit is contained in:
孙广明
2022-06-09 08:57:56 +08:00
parent 451d897d09
commit 91199908ce
3 changed files with 24 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
ALTER TABLE `zt_review` ADD docVersion smallint(6) NOT NULL AFTER `doc`;
+1
View File
@@ -9420,6 +9420,7 @@ CREATE TABLE IF NOT EXISTS `zt_review` (
`object` mediumint(8) NOT NULL,
`template` mediumint(8) NOT NULL,
`doc` mediumint(8) DEFAULT NULL,
`docVersion` smallint(6) DEFAULT NULL,
`status` char(30) NOT NULL,
`reviewedBy` varchar(255) NOT NULL,
`auditedBy` varchar(255) NOT NULL,
Regular → Executable
+22
View File
@@ -792,6 +792,28 @@ class doc extends control
return print($select);
}
/**
* Ajax get docs by lib.
*
* @param int $libID
* @access public
* @return void
*/
public function ajaxGetDocs($libID)
{
if(!$libID) return print(html::select('doc', '', '', "class='form-control chosen'"));
$docIdList = $this->doc->getPrivDocs($libID, 0);
$docs = $this->dao->select('id, title')->from(TABLE_DOC)
->where('lib')->eq($libID)
->andWhere('deleted')->eq(0)
->andWhere('id')->in($docIdList)
->orderBy('`order` asc')
->fetchPairs();
return print(html::select('doc', $docs, '', "class='form-control chosen'"));
}
/**
* Ajax save draft.
*