Import Permissons Cases notes with groups SOLVED

Import Permissons Cases notes with groups
This commit is contained in:
Brayan Osmar Pereyra Suxo
2012-12-17 15:26:30 -04:00
parent 5e65c27feb
commit d0293c59f5

View File

@@ -2107,7 +2107,32 @@ class Processes
} }
} }
#@!neyek #@!neyek
/**
* Get Object Permission Rows from a Process
*
* @param string $sProUid
* @return $aDynaform array
*/
public function getGroupwfSupervisor ($sProUid, &$oData)
{
try {
$oCriteria = new Criteria( 'workflow' );
$oCriteria->add(ProcessUserPeer::PRO_UID, $sProUid );
$oCriteria->add(ProcessUserPeer::PU_TYPE, 'GROUP_SUPERVISOR' );
$oDataset = ProcessUserPeer::doSelectRS( $oCriteria );
$oDataset->setFetchmode( ResultSet::FETCHMODE_ASSOC );
$oDataset->next();
while ($aRow = $oDataset->getRow()) {
$oGroupwf = new Groupwf();
$oData->groupwfs[] = $oGroupwf->Load( $aRow['USR_UID'] );
$oDataset->next();
}
return true;
} catch (Exception $oError) {
throw ($oError);
}
}
/** /**
* Create Dynaform Rows for a Process form an array * Create Dynaform Rows for a Process form an array
@@ -2595,6 +2620,7 @@ class Processes
$oData->event = $this->getEventRow( $sProUid ); $oData->event = $this->getEventRow( $sProUid );
$oData->caseScheduler = $this->getCaseSchedulerRow( $sProUid ); $oData->caseScheduler = $this->getCaseSchedulerRow( $sProUid );
$oData->processCategory = $this->getProcessCategoryRow( $sProUid ); $oData->processCategory = $this->getProcessCategoryRow( $sProUid );
$this->getGroupwfSupervisor( $sProUid, $oData);
//krumo ($oData);die; //krumo ($oData);die;
//$oJSON = new Services_JSON(); //$oJSON = new Services_JSON();