Ejemplo n.º 1
0
$oDataset->next();
$aSupervisor = array();
while ($aRow = $oDataset->getRow()) {
    $aSupervisor[] = $aRow['PRO_UID'];
    $oDataset->next();
}
G::LoadClass('case');
$oCases = new Cases();
if (isset($_POST['form'])) {
    $fields['CASE_NUMBER'] = $_POST['form']['CASE_NUMBER'];
    $fields['PROCESS'] = $_POST['form']['PROCESS'];
    $fields['TASKS'] = $_POST['form']['TASKS'];
    $fields['CURRENT_USER'] = $_POST['form']['CURRENT_USER'];
    $fields['SENT_BY'] = $_POST['form']['SENT_BY'];
    $fields['LAST_MODIFICATION_F'] = $_POST['form']['LAST_MODIFICATION_F'];
    $fields['LAST_MODIFICATION_T'] = $_POST['form']['LAST_MODIFICATION_T'];
    $fields['APP_STATUS'] = $_POST['form']['APP_STATUS'];
    $Criteria = $oCases->getAdvancedSearch($fields['CASE_NUMBER'], $fields['PROCESS'], $fields['TASKS'], $fields['CURRENT_USER'], $fields['SENT_BY'], $fields['LAST_MODIFICATION_F'], $fields['LAST_MODIFICATION_T'], $fields['APP_STATUS'], $permisse, $userlogged, $aSupervisor);
    $G_PUBLISH->AddContent('xmlform', 'xmlform', 'cases/cases_advancedSearchFilter', '', $fields);
} else {
    //list($Criteria,$xmlform) = $oCases->getConditionCasesList('gral');
    $Criteria = $oCases->getAdvancedSearch('', '', '', '', '', '', '', '', $permisse, $userlogged, $aSupervisor);
    $G_PUBLISH->AddContent('xmlform', 'xmlform', 'cases/cases_advancedSearchFilter');
}
$G_PUBLISH->AddContent('propeltable', 'paged-table', 'cases/cases_advancedSearch', $Criteria);
G::RenderPage('publish', 'blank');
?>
<script>
    parent.outerLayout.hide('east');
    parent.PANEL_EAST_OPEN = false;
</script>