mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-14 21:51:32 +00:00
add SeedDMS_Core_DMS::getDocumentList() for pending approvals and reviews
This commit is contained in:
parent
71705c548c
commit
1ecb6236c0
|
@ -109,27 +109,27 @@ $(document).ready( function() {
|
||||||
echo "<tr><td>".getMLText('folders_with_notification')."</td><td>".count($fnot)."</td></tr>\n";
|
echo "<tr><td>".getMLText('folders_with_notification')."</td><td>".count($fnot)."</td></tr>\n";
|
||||||
|
|
||||||
if($workflowmode == "traditional") {
|
if($workflowmode == "traditional") {
|
||||||
$reviewStatus = $seluser->getReviewStatus();
|
$resArr = $dms->getDocumentList('ReviewByMe', $seluser);
|
||||||
if($reviewStatus['indstatus']) {
|
if($resArr) {
|
||||||
$i = 0;
|
foreach ($resArr as $res) {
|
||||||
foreach($reviewStatus['indstatus'] as $rv) {
|
$document = $dms->getDocument($res["id"]);
|
||||||
if($rv['status'] == 0) {
|
if($document->getAccessMode($user) >= M_READ && $document->getLatestContent()) {
|
||||||
$i++;
|
$tasks['review'][] = array('id'=>$res['id'], 'name'=>$res['name']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
echo "<tr><td>".getMLText('pending_reviews')."</td><td>".$i."</td></tr>\n";
|
echo "<tr><td>".getMLText('pending_reviews')."</td><td>".count($tasks['review'])."</td></tr>\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if($workflowmode == "traditional" || $workflowmode == 'traditional_only_approval') {
|
if($workflowmode == "traditional" || $workflowmode == 'traditional_only_approval') {
|
||||||
$approvalStatus = $seluser->getApprovalStatus();
|
$resArr = $dms->getDocumentList('ApproveByMe', $seluser);
|
||||||
if($approvalStatus['indstatus']) {
|
if($resArr) {
|
||||||
$i = 0;
|
foreach ($resArr as $res) {
|
||||||
foreach($approvalStatus['indstatus'] as $rv) {
|
$document = $dms->getDocument($res["id"]);
|
||||||
if($rv['status'] == 0) {
|
if($document->getAccessMode($user) >= M_READ && $document->getLatestContent()) {
|
||||||
$i++;
|
$tasks['approval'][] = array('id'=>$res['id'], 'name'=>$res['name']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
echo "<tr><td>".getMLText('pending_approvals')."</td><td>".$i."</td></tr>\n";
|
echo "<tr><td>".getMLText('pending_approvals')."</td><td>".count($tasks['approval'])."</td></tr>\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if($workflowmode == 'advanced') {
|
if($workflowmode == 'advanced') {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user