public function GetPageList()
 {
     $currentPageCaption = $this->GetShortCaption();
     $result = new PageList($this);
     if (GetCurrentUserGrantForDataSource('public.office_holder')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Office Holders'), 'public.office_holder.php', $this->RenderText('Office Holders'), $currentPageCaption == $this->RenderText('Office Holders')));
     }
     if (GetCurrentUserGrantForDataSource('public.office')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Political Offices'), 'public.office.php', $this->RenderText('Political Offices'), $currentPageCaption == $this->RenderText('Political Offices')));
     }
     if (GetCurrentUserGrantForDataSource('public.office_docs')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Political Office Filing Documents'), 'public.office_docs.php', $this->RenderText('Political Office Filing Documents'), $currentPageCaption == $this->RenderText('Political Office Filing Documents')));
     }
     if (GetCurrentUserGrantForDataSource('public.election_div')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Election Divisions'), 'public.election_div.php', $this->RenderText('Election Divisions'), $currentPageCaption == $this->RenderText('Election Divisions')));
     }
     if (GetCurrentUserGrantForDataSource('public.election_div_docs')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Election Division Filing Documents'), 'public.election_div_docs.php', $this->RenderText('Election Division Filing Documents'), $currentPageCaption == $this->RenderText('Election Division Filing Documents')));
     }
     if (GetCurrentUserGrantForDataSource('public.district')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Political Districts'), 'public.district.php', $this->RenderText('Political Districts'), $currentPageCaption == $this->RenderText('Political Districts')));
     }
     if (GetCurrentUserGrantForDataSource('public.office_position')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Political Office Positions'), 'public.office_position.php', $this->RenderText('Political Office Positions'), $currentPageCaption == $this->RenderText('Political Office Positions')));
     }
     if (HasAdminPage() && GetApplication()->HasAdminGrantForCurrentUser()) {
         $result->AddPage(new PageLink($this->GetLocalizerCaptions()->GetMessageString('AdminPage'), 'phpgen_admin.php', $this->GetLocalizerCaptions()->GetMessageString('AdminPage'), false, true));
     }
     return $result;
 }
示例#2
0
 public function GetPageList()
 {
     $currentPageCaption = $this->GetShortCaption();
     $result = new PageList($this);
     $result->AddGroup($this->RenderText('Default'));
     if (GetCurrentUserGrantForDataSource('clienti')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Clienti'), 'clienti.php', $this->RenderText('Clienti'), $currentPageCaption == $this->RenderText('Clienti'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('articoli')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Articoli'), 'articoli.php', $this->RenderText('Articoli'), $currentPageCaption == $this->RenderText('Articoli'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('famiglie')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Famiglie'), 'famiglie.php', $this->RenderText('Famiglie'), $currentPageCaption == $this->RenderText('Famiglie'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('listino_voci')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Listino Voci'), 'listino_voci.php', $this->RenderText('Listino Voci'), $currentPageCaption == $this->RenderText('Listino Voci'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('listino_articoli')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Listino Articoli'), 'listino_articoli.php', $this->RenderText('Listino Articoli'), $currentPageCaption == $this->RenderText('Listino Articoli'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('voci_costo')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Voci Costo'), 'voci_costo.php', $this->RenderText('Voci Costo'), $currentPageCaption == $this->RenderText('Voci Costo'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('formule_calcolo')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Formule Calcolo'), 'formule_calcolo.php', $this->RenderText('Formule Calcolo'), $currentPageCaption == $this->RenderText('Formule Calcolo'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('scontistica_clienti')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Scontistica Clienti'), 'scontistica_clienti.php', $this->RenderText('Scontistica Clienti'), $currentPageCaption == $this->RenderText('Scontistica Clienti'), false, $this->RenderText('Default')));
     }
     if (HasAdminPage() && GetApplication()->HasAdminGrantForCurrentUser()) {
         $result->AddGroup('Admin area');
         $result->AddPage(new PageLink($this->GetLocalizerCaptions()->GetMessageString('AdminPage'), 'phpgen_admin.php', $this->GetLocalizerCaptions()->GetMessageString('AdminPage'), false, false, 'Admin area'));
     }
     return $result;
 }
 public function GetPageList()
 {
     $currentPageCaption = $this->GetShortCaption();
     $result = new PageList($this);
     $result->AddGroup($this->RenderText('Default'));
     if (GetCurrentUserGrantForDataSource('dbo.EtatConnexion')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Dbo.EtatConnexion'), 'dbo.EtatConnexion.php', $this->RenderText('Dbo.EtatConnexion'), $currentPageCaption == $this->RenderText('Dbo.EtatConnexion'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('dbo.EvenementSysteme')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Dbo.EvenementSysteme'), 'dbo.EvenementSysteme.php', $this->RenderText('Dbo.EvenementSysteme'), $currentPageCaption == $this->RenderText('Dbo.EvenementSysteme'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('dbo.InfosFichiers')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Dbo.InfosFichiers'), 'dbo.InfosFichiers.php', $this->RenderText('Dbo.InfosFichiers'), $currentPageCaption == $this->RenderText('Dbo.InfosFichiers'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('dbo.IPClients')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Dbo.IPClients'), 'dbo.IPClients.php', $this->RenderText('Dbo.IPClients'), $currentPageCaption == $this->RenderText('Dbo.IPClients'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('dbo.MachinesClientes')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Dbo.MachinesClientes'), 'dbo.MachinesClientes.php', $this->RenderText('Dbo.MachinesClientes'), $currentPageCaption == $this->RenderText('Dbo.MachinesClientes'), false, $this->RenderText('Default')));
     }
     if (HasAdminPage() && GetApplication()->HasAdminGrantForCurrentUser()) {
         $result->AddGroup('Admin area');
         $result->AddPage(new PageLink($this->GetLocalizerCaptions()->GetMessageString('AdminPage'), 'phpgen_admin.php', $this->GetLocalizerCaptions()->GetMessageString('AdminPage'), false, false, 'Admin area'));
     }
     return $result;
 }
示例#4
0
 public function GetPageList()
 {
     $currentPageCaption = $this->GetShortCaption();
     $result = new PageList($this);
     if (GetCurrentUserGrantForDataSource('hometext')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Home Page Text'), 'HomePageText.php', $this->RenderText('Home Page Text'), $currentPageCaption == $this->RenderText('Home Page Text')));
     }
     if (HasAdminPage() && GetApplication()->HasAdminGrantForCurrentUser()) {
         $result->AddPage(new PageLink($this->GetLocalizerCaptions()->GetMessageString('AdminPage'), 'phpgen_admin.php', $this->GetLocalizerCaptions()->GetMessageString('AdminPage'), false, true));
     }
     return $result;
 }
 public static function createForPage(CommonPage $page)
 {
     $currentPageFilename = $page->GetPageFileName();
     $pageList = new PageList($page);
     $pageGroups = GetPageGroups();
     foreach ($pageGroups as $group) {
         $pageList->AddGroup($page->RenderText($group));
     }
     $pageInfos = GetPageInfos();
     foreach ($pageInfos as $pageInfo) {
         if (!GetCurrentUserGrantForDataSource($pageInfo['name'])->HasViewGrant()) {
             continue;
         }
         $shortCaption = $page->RenderText($pageInfo['short_caption']);
         $pageList->AddPage(new PageLink($page->RenderText($pageInfo['caption']), $pageInfo['filename'], $shortCaption, $currentPageFilename == $pageInfo['filename'], $pageInfo['add_separator'], $page->RenderText($pageInfo['group_name'])));
     }
     return $pageList;
 }
        // View column for ProgramName field
        //
        $column = new TextViewColumn('ProgramName', 'ProgramName', $this->dataset);
        $column->SetOrderable(true);
        $handler = new ShowTextBlobHandler($this->dataset, $this, 'dbo_AlterLogGrid_ProgramName_handler_view', $column);
        GetApplication()->RegisterHTTPHandler($handler);
        return $result;
    }
    public function OpenAdvancedSearchByDefault()
    {
        return false;
    }
    protected function DoGetGridHeader()
    {
        return '';
    }
}
try {
    $Page = new dbo_AlterLogPage("Detalle Objetos.php", "dbo_AlterLog", GetCurrentUserGrantForDataSource("dbo.AlterLog"), 'UTF-8');
    $Page->SetShortCaption('Detalle Objetos');
    $Page->SetHeader(GetPagesHeader());
    $Page->SetFooter(GetPagesFooter());
    $Page->SetCaption('');
    $Page->SetRecordPermission(GetCurrentUserRecordPermissionsForDataSource("dbo.AlterLog"));
    GetApplication()->SetEnableLessRunTimeCompile(GetEnableLessFilesRunTimeCompilation());
    GetApplication()->SetCanUserChangeOwnPassword(!function_exists('CanUserChangeOwnPassword') || CanUserChangeOwnPassword());
    GetApplication()->SetMainPage($Page);
    GetApplication()->Run();
} catch (Exception $e) {
    ShowErrorPage($e->getMessage());
}
示例#7
0
 protected function CreateGrid()
 {
     $result = new Grid($this, $this->dataset, 'offerteGrid');
     if ($this->GetSecurityInfo()->HasDeleteGrant()) {
         $result->SetAllowDeleteSelected(false);
     } else {
         $result->SetAllowDeleteSelected(false);
     }
     ApplyCommonPageSettings($this, $result);
     $result->SetUseImagesForActions(true);
     $result->SetUseFixedHeader(false);
     $result->SetShowLineNumbers(true);
     $result->SetAllowOrdering(false);
     $result->SetHighlightRowAtHover(false);
     $result->SetWidth('');
     $result->BeforeUpdateRecord->AddListener('offerteGrid' . '_' . 'BeforeUpdateRecord', $this);
     $result->BeforeInsertRecord->AddListener('offerteGrid' . '_' . 'BeforeInsertRecord', $this);
     $this->CreateGridSearchControl($result);
     $this->CreateGridAdvancedSearchControl($result);
     $this->AddFieldColumns($result);
     $this->AddSingleRecordViewColumns($result);
     $this->AddEditColumns($result);
     $this->AddInsertColumns($result);
     $this->AddPrintColumns($result);
     $this->AddExportColumns($result);
     $this->AddOperationsColumns($result);
     $this->SetShowPageList(true);
     $this->SetHidePageListByDefault(false);
     $this->SetExportToExcelAvailable(false);
     $this->SetExportToWordAvailable(false);
     $this->SetExportToXmlAvailable(false);
     $this->SetExportToCsvAvailable(false);
     $this->SetExportToPdfAvailable(false);
     $this->SetPrinterFriendlyAvailable(false);
     $this->SetSimpleSearchAvailable(false);
     $this->SetAdvancedSearchAvailable(false);
     $this->SetFilterRowAvailable(false);
     $this->SetVisualEffectsEnabled(true);
     $this->SetShowTopPageNavigator(false);
     $this->SetShowBottomPageNavigator(false);
     //
     // Http Handlers
     //
     $pageView = new offerte_dettaglio_articoliDetailView0offertePage($this, 'Offerte Dettaglio Articoli', 'Offerte Dettaglio Articoli', array('ofa-offid'), GetCurrentUserGrantForDataSource('offerte.offerte_dettaglio_articoli'), 'UTF-8', 20, 'offerte_dettaglio_articoliDetailEdit0offerte_handler');
     $pageView->SetRecordPermission(GetCurrentUserRecordPermissionsForDataSource('offerte.offerte_dettaglio_articoli'));
     $handler = new PageHTTPHandler('offerte_dettaglio_articoliDetailView0offerte_handler', $pageView);
     GetApplication()->RegisterHTTPHandler($handler);
     $pageEdit = new offerte_dettaglio_articoliDetailEdit0offertePage($this, array('ofa-offid'), array('id'), $this->GetForeingKeyFields(), $this->CreateMasterDetailRecordGridForofferte_dettaglio_articoliDetailEdit0offerteGrid(), $this->dataset, GetCurrentUserGrantForDataSource('offerte.offerte_dettaglio_articoli'), 'UTF-8');
     $pageEdit->SetRecordPermission(GetCurrentUserRecordPermissionsForDataSource('offerte.offerte_dettaglio_articoli'));
     $pageEdit->SetShortCaption('Offerte Dettaglio Articoli');
     $pageEdit->SetHeader(GetPagesHeader());
     $pageEdit->SetFooter(GetPagesFooter());
     $pageEdit->SetCaption('Offerte Dettaglio Articoli');
     $pageEdit->SetHttpHandlerName('offerte_dettaglio_articoliDetailEdit0offerte_handler');
     $handler = new PageHTTPHandler('offerte_dettaglio_articoliDetailEdit0offerte_handler', $pageEdit);
     GetApplication()->RegisterHTTPHandler($handler);
     return $result;
 }
 private function GetUrlToRedirectAfterLogin()
 {
     $pageInfos = GetPageInfos();
     foreach ($pageInfos as $pageInfo) {
         if (GetCurrentUserGrantForDataSource($pageInfo['name'])->HasViewGrant()) {
             return $pageInfo['filename'];
         }
     }
     return $this->urlToRedirectAfterLogin;
 }
示例#9
0
 public function GetPageList()
 {
     $currentPageCaption = $this->GetShortCaption();
     $result = new PageList($this);
     $result->AddGroup($this->RenderText('Default'));
     if (GetCurrentUserGrantForDataSource('GE.BEBEDOR')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('BEBEDOR'), 'GE.BEBEDOR.php', $this->RenderText('BEBEDOR'), $currentPageCaption == $this->RenderText('BEBEDOR'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.CATEGORIA_INTERES')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('CATEGORIA INTERES'), 'GE.CATEGORIA_INTERES.php', $this->RenderText('CATEGORIA INTERES'), $currentPageCaption == $this->RenderText('CATEGORIA INTERES'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.CIUDAD')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('CIUDAD'), 'GE.CIUDAD.php', $this->RenderText('CIUDAD'), $currentPageCaption == $this->RenderText('CIUDAD'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.COLOR_OJOS')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('COLOR OJOS'), 'GE.COLOR_OJOS.php', $this->RenderText('COLOR OJOS'), $currentPageCaption == $this->RenderText('COLOR OJOS'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.webreports')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Webreports'), 'GE.webreports.php', $this->RenderText('Webreports'), $currentPageCaption == $this->RenderText('Webreports'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.webreport_style')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Webreport Style'), 'GE.webreport_style.php', $this->RenderText('Webreport Style'), $currentPageCaption == $this->RenderText('Webreport Style'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.webreport_sql')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Webreport Sql'), 'GE.webreport_sql.php', $this->RenderText('Webreport Sql'), $currentPageCaption == $this->RenderText('Webreport Sql'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.WINK')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('WINK'), 'GE.WINK.php', $this->RenderText('WINK'), $currentPageCaption == $this->RenderText('WINK'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.webreport_admin')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Webreport Admin'), 'GE.webreport_admin.php', $this->RenderText('Webreport Admin'), $currentPageCaption == $this->RenderText('Webreport Admin'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.VISITA')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('VISITA'), 'GE.VISITA.php', $this->RenderText('VISITA'), $currentPageCaption == $this->RenderText('VISITA'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.TIPO_RELACION')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('TIPO RELACION'), 'GE.TIPO_RELACION.php', $this->RenderText('TIPO RELACION'), $currentPageCaption == $this->RenderText('TIPO RELACION'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.SALARIO')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('SALARIO'), 'GE.SALARIO.php', $this->RenderText('SALARIO'), $currentPageCaption == $this->RenderText('SALARIO'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.RELIGION')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('RELIGION'), 'GE.RELIGION.php', $this->RenderText('RELIGION'), $currentPageCaption == $this->RenderText('RELIGION'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.PERSONA_DISPONIBLEXRELIGION')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('PERSONA DISPONIBLEXRELIGION'), 'GE.PERSONA_DISPONIBLEXRELIGION.php', $this->RenderText('PERSONA DISPONIBLEXRELIGION'), $currentPageCaption == $this->RenderText('PERSONA DISPONIBLEXRELIGION'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.PERSONA_DISPONIBLEXOCUPACION')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('PERSONA DISPONIBLEXOCUPACION'), 'GE.PERSONA_DISPONIBLEXOCUPACION.php', $this->RenderText('PERSONA DISPONIBLEXOCUPACION'), $currentPageCaption == $this->RenderText('PERSONA DISPONIBLEXOCUPACION'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.PERSONA_DISPONIBLEXMASCOTA')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('PERSONA DISPONIBLEXMASCOTA'), 'GE.PERSONA_DISPONIBLEXMASCOTA.php', $this->RenderText('PERSONA DISPONIBLEXMASCOTA'), $currentPageCaption == $this->RenderText('PERSONA DISPONIBLEXMASCOTA'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.PERSONA_DISPONIBLEXINTERES')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('PERSONA DISPONIBLEXINTERES'), 'GE.PERSONA_DISPONIBLEXINTERES.php', $this->RenderText('PERSONA DISPONIBLEXINTERES'), $currentPageCaption == $this->RenderText('PERSONA DISPONIBLEXINTERES'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.PERSONA_DISPONIBLEXEJERCICIO')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('PERSONA DISPONIBLEXEJERCICIO'), 'GE.PERSONA_DISPONIBLEXEJERCICIO.php', $this->RenderText('PERSONA DISPONIBLEXEJERCICIO'), $currentPageCaption == $this->RenderText('PERSONA DISPONIBLEXEJERCICIO'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.PERSONA_DISPONIBLEXCOLOR_PELO')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('PERSONA DISPONIBLEXCOLOR PELO'), 'GE.PERSONA_DISPONIBLEXCOLOR_PELO.php', $this->RenderText('PERSONA DISPONIBLEXCOLOR PELO'), $currentPageCaption == $this->RenderText('PERSONA DISPONIBLEXCOLOR PELO'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.PERSONA_DISPONIBLEXIDIOMA')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('PERSONA DISPONIBLEXIDIOMA'), 'GE.PERSONA_DISPONIBLEXIDIOMA.php', $this->RenderText('PERSONA DISPONIBLEXIDIOMA'), $currentPageCaption == $this->RenderText('PERSONA DISPONIBLEXIDIOMA'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.PERSONA_DISPONIBLE')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('PERSONA DISPONIBLE'), 'GE.PERSONA_DISPONIBLE.php', $this->RenderText('PERSONA DISPONIBLE'), $currentPageCaption == $this->RenderText('PERSONA DISPONIBLE'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.PERSONA')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('PERSONA'), 'GE.PERSONA.php', $this->RenderText('PERSONA'), $currentPageCaption == $this->RenderText('PERSONA'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.PARAMETROS')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('PARAMETROS'), 'GE.PARAMETROS.php', $this->RenderText('PARAMETROS'), $currentPageCaption == $this->RenderText('PARAMETROS'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.PAIS')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('PAIS'), 'GE.PAIS.php', $this->RenderText('PAIS'), $currentPageCaption == $this->RenderText('PAIS'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.OCUPACIONXCATEGORIA_OCUPACION')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('OCUPACIONXCATEGORIA OCUPACION'), 'GE.OCUPACIONXCATEGORIA_OCUPACION.php', $this->RenderText('OCUPACIONXCATEGORIA OCUPACION'), $currentPageCaption == $this->RenderText('OCUPACIONXCATEGORIA OCUPACION'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.OCUPACION')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('OCUPACION'), 'GE.OCUPACION.php', $this->RenderText('OCUPACION'), $currentPageCaption == $this->RenderText('OCUPACION'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.MASCOTA')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('MASCOTA'), 'GE.MASCOTA.php', $this->RenderText('MASCOTA'), $currentPageCaption == $this->RenderText('MASCOTA'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.NIVEL_EDUCACION')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('NIVEL EDUCACION'), 'GE.NIVEL_EDUCACION.php', $this->RenderText('NIVEL EDUCACION'), $currentPageCaption == $this->RenderText('NIVEL EDUCACION'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.INTERESXCATEGORIA_INTERES')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('INTERESXCATEGORIA INTERES'), 'GE.INTERESXCATEGORIA_INTERES.php', $this->RenderText('INTERESXCATEGORIA INTERES'), $currentPageCaption == $this->RenderText('INTERESXCATEGORIA INTERES'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.INTERES')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('INTERES'), 'GE.INTERES.php', $this->RenderText('INTERES'), $currentPageCaption == $this->RenderText('INTERES'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.IDIOMA')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('IDIOMA'), 'GE.IDIOMA.php', $this->RenderText('IDIOMA'), $currentPageCaption == $this->RenderText('IDIOMA'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.GENERO')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('GENERO'), 'GE.GENERO.php', $this->RenderText('GENERO'), $currentPageCaption == $this->RenderText('GENERO'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.FUMADOR')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('FUMADOR'), 'GE.FUMADOR.php', $this->RenderText('FUMADOR'), $currentPageCaption == $this->RenderText('FUMADOR'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.FRECUENCIA_EJERCICIO')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('FRECUENCIA EJERCICIO'), 'GE.FRECUENCIA_EJERCICIO.php', $this->RenderText('FRECUENCIA EJERCICIO'), $currentPageCaption == $this->RenderText('FRECUENCIA EJERCICIO'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.EVENTO')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('EVENTO'), 'GE.EVENTO.php', $this->RenderText('EVENTO'), $currentPageCaption == $this->RenderText('EVENTO'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.FOTO')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('FOTO'), 'GE.FOTO.php', $this->RenderText('FOTO'), $currentPageCaption == $this->RenderText('FOTO'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.ESTADO_CIVIL')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('ESTADO CIVIL'), 'GE.ESTADO_CIVIL.php', $this->RenderText('ESTADO CIVIL'), $currentPageCaption == $this->RenderText('ESTADO CIVIL'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.EJERCICIO')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('EJERCICIO'), 'GE.EJERCICIO.php', $this->RenderText('EJERCICIO'), $currentPageCaption == $this->RenderText('EJERCICIO'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.EDAD')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('EDAD'), 'GE.EDAD.php', $this->RenderText('EDAD'), $currentPageCaption == $this->RenderText('EDAD'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.CONTEXTURA')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('CONTEXTURA'), 'GE.CONTEXTURA.php', $this->RenderText('CONTEXTURA'), $currentPageCaption == $this->RenderText('CONTEXTURA'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.COLOR_PIEL')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('COLOR PIEL'), 'GE.COLOR_PIEL.php', $this->RenderText('COLOR PIEL'), $currentPageCaption == $this->RenderText('COLOR PIEL'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.COLOR_PELO')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('COLOR PELO'), 'GE.COLOR_PELO.php', $this->RenderText('COLOR PELO'), $currentPageCaption == $this->RenderText('COLOR PELO'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.CATEGORIA_OCUPACION')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('CATEGORIA OCUPACION'), 'GE.CATEGORIA_OCUPACION.php', $this->RenderText('CATEGORIA OCUPACION'), $currentPageCaption == $this->RenderText('CATEGORIA OCUPACION'), false, $this->RenderText('Default')));
     }
     if (HasAdminPage() && GetApplication()->HasAdminGrantForCurrentUser()) {
         $result->AddGroup('Admin area');
         $result->AddPage(new PageLink($this->GetLocalizerCaptions()->GetMessageString('AdminPage'), 'phpgen_admin.php', $this->GetLocalizerCaptions()->GetMessageString('AdminPage'), false, false, 'Admin area'));
     }
     return $result;
 }
        //
        $column = new TextViewColumn('ruta', 'Ruta', $this->dataset);
        $column->SetOrderable(true);
        $handler = new ShowTextBlobHandler($this->dataset, $this, 'objeto_planificacionGrid_ruta_handler_view', $column);
        GetApplication()->RegisterHTTPHandler($handler);
        return $result;
    }
    public function OpenAdvancedSearchByDefault()
    {
        return false;
    }
    protected function DoGetGridHeader()
    {
        return '';
    }
}
SetUpUserAuthorization(GetApplication());
try {
    $Page = new objeto_planificacionPage("objeto_planificacion.php", "objeto_planificacion", GetCurrentUserGrantForDataSource("objeto_planificacion"), 'UTF-8');
    $Page->SetShortCaption('Objetos Planificación');
    $Page->SetHeader(GetPagesHeader());
    $Page->SetFooter(GetPagesFooter());
    $Page->SetCaption('Objetos Planificación');
    $Page->SetRecordPermission(GetCurrentUserRecordPermissionsForDataSource("objeto_planificacion"));
    GetApplication()->SetEnableLessRunTimeCompile(GetEnableLessFilesRunTimeCompilation());
    GetApplication()->SetCanUserChangeOwnPassword(!function_exists('CanUserChangeOwnPassword') || CanUserChangeOwnPassword());
    GetApplication()->SetMainPage($Page);
    GetApplication()->Run();
} catch (Exception $e) {
    ShowErrorPage($e->getMessage());
}
示例#11
0
文件: actividad.php 项目: jsrxar/dto
 public function GetPageList()
 {
     $currentPageCaption = $this->GetShortCaption();
     $result = new PageList($this);
     $result->AddGroup($this->RenderText('Transacciones'));
     $result->AddGroup($this->RenderText('Relaciones'));
     $result->AddGroup($this->RenderText('Paramétricas'));
     $result->AddGroup($this->RenderText('Maestras'));
     if (GetCurrentUserGrantForDataSource('public.ods_actividad')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Actividad'), 'actividad.php', $this->RenderText('Actividad'), $currentPageCaption == $this->RenderText('Actividad'), false, $this->RenderText('Maestras')));
     }
     if (GetCurrentUserGrantForDataSource('public.ods_area')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Area'), 'area.php', $this->RenderText('Area'), $currentPageCaption == $this->RenderText('Area'), false, $this->RenderText('Maestras')));
     }
     if (GetCurrentUserGrantForDataSource('public.ods_bien')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Bien'), 'bien.php', $this->RenderText('Bien'), $currentPageCaption == $this->RenderText('Bien'), false, $this->RenderText('Maestras')));
     }
     if (GetCurrentUserGrantForDataSource('public.ods_empresa')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Empresa'), 'empresa.php', $this->RenderText('Empresa'), $currentPageCaption == $this->RenderText('Empresa'), false, $this->RenderText('Paramétricas')));
     }
     if (GetCurrentUserGrantForDataSource('public.ods_espacio')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Espacio'), 'espacio.php', $this->RenderText('Espacio'), $currentPageCaption == $this->RenderText('Espacio'), false, $this->RenderText('Maestras')));
     }
     if (GetCurrentUserGrantForDataSource('public.ods_insumo')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Insumo'), 'insumo.php', $this->RenderText('Insumo'), $currentPageCaption == $this->RenderText('Insumo'), false, $this->RenderText('Maestras')));
     }
     if (GetCurrentUserGrantForDataSource('public.ods_lectura')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Lectura'), 'lectura.php', $this->RenderText('Lectura'), $currentPageCaption == $this->RenderText('Lectura'), false, $this->RenderText('Transacciones')));
     }
     if (GetCurrentUserGrantForDataSource('public.ods_lugar')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Lugar'), 'lugar.php', $this->RenderText('Lugar'), $currentPageCaption == $this->RenderText('Lugar'), false, $this->RenderText('Paramétricas')));
     }
     if (GetCurrentUserGrantForDataSource('public.ods_ocupa')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Ocupa (Area / Espacio)'), 'ocupa.php', $this->RenderText('Ocupa'), $currentPageCaption == $this->RenderText('Ocupa (Area / Espacio)'), false, $this->RenderText('Relaciones')));
     }
     if (GetCurrentUserGrantForDataSource('public.ods_origen_lectura')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Origen Lectura'), 'origen_lectura.php', $this->RenderText('Origen Lectura'), $currentPageCaption == $this->RenderText('Origen Lectura'), false, $this->RenderText('Paramétricas')));
     }
     if (GetCurrentUserGrantForDataSource('public.ods_origen')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Origen'), 'origen.php', $this->RenderText('Origen'), $currentPageCaption == $this->RenderText('Origen'), false, $this->RenderText('Paramétricas')));
     }
     if (GetCurrentUserGrantForDataSource('public.ods_periodicidad')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Periodicidad'), 'periodicidad.php', $this->RenderText('Periodicidad'), $currentPageCaption == $this->RenderText('Periodicidad'), false, $this->RenderText('Paramétricas')));
     }
     if (GetCurrentUserGrantForDataSource('public.ods_persona')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Persona'), 'persona.php', $this->RenderText('Persona'), $currentPageCaption == $this->RenderText('Persona'), false, $this->RenderText('Maestras')));
     }
     if (GetCurrentUserGrantForDataSource('public.ods_realiza')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Realiza (Persona / Tarea)'), 'realiza.php', $this->RenderText('Realiza'), $currentPageCaption == $this->RenderText('Realiza (Persona / Tarea)'), false, $this->RenderText('Relaciones')));
     }
     if (GetCurrentUserGrantForDataSource('public.ods_requiere')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Requiere (Actividad / Insumo)'), 'requiere.php', $this->RenderText('Requiere'), $currentPageCaption == $this->RenderText('Requiere (Actividad / Insumo)'), false, $this->RenderText('Relaciones')));
     }
     if (GetCurrentUserGrantForDataSource('public.ods_tarea')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Tarea'), 'tarea.php', $this->RenderText('Tarea'), $currentPageCaption == $this->RenderText('Tarea'), false, $this->RenderText('Transacciones')));
     }
     if (GetCurrentUserGrantForDataSource('public.ods_tarea_plan')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Tarea Plan'), 'tarea_plan.php', $this->RenderText('Tarea Plan'), $currentPageCaption == $this->RenderText('Tarea Plan'), false, $this->RenderText('Maestras')));
     }
     if (GetCurrentUserGrantForDataSource('public.ods_tipo_bien')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Tipo Bien'), 'tipo_bien.php', $this->RenderText('Tipo Bien'), $currentPageCaption == $this->RenderText('Tipo Bien'), false, $this->RenderText('Paramétricas')));
     }
     if (GetCurrentUserGrantForDataSource('public.ods_tipo_espacio')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Tipo Espacio'), 'tipo_espacio.php', $this->RenderText('Tipo Espacio'), $currentPageCaption == $this->RenderText('Tipo Espacio'), false, $this->RenderText('Paramétricas')));
     }
     if (GetCurrentUserGrantForDataSource('public.ods_tipo_insumo')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Tipo Insumo'), 'tipo_insumo.php', $this->RenderText('Tipo Insumo'), $currentPageCaption == $this->RenderText('Tipo Insumo'), false, $this->RenderText('Paramétricas')));
     }
     if (GetCurrentUserGrantForDataSource('public.ods_tipo_persona')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Tipo Persona'), 'tipo_persona.php', $this->RenderText('Tipo Persona'), $currentPageCaption == $this->RenderText('Tipo Persona'), false, $this->RenderText('Paramétricas')));
     }
     if (GetCurrentUserGrantForDataSource('public.ods_accion')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Accion (Espacio / Tarea)'), 'accion.php', $this->RenderText('Accion'), $currentPageCaption == $this->RenderText('Accion (Espacio / Tarea)'), false, $this->RenderText('Maestras')));
     }
     if (GetCurrentUserGrantForDataSource('public.ods_metodologia')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Metodologia de Acción'), 'metodologia.php', $this->RenderText('Metodologia'), $currentPageCaption == $this->RenderText('Metodologia de Acción'), false, $this->RenderText('Paramétricas')));
     }
     if (HasAdminPage() && GetApplication()->HasAdminGrantForCurrentUser()) {
         $result->AddGroup('Admin area');
         $result->AddPage(new PageLink($this->GetLocalizerCaptions()->GetMessageString('AdminPage'), 'phpgen_admin.php', $this->GetLocalizerCaptions()->GetMessageString('AdminPage'), false, false, 'Admin area'));
     }
     return $result;
 }
示例#12
0
        // View column for Nombre field
        //
        $column = new TextViewColumn('Nombre', 'Nombre', $this->dataset);
        $column->SetOrderable(true);
        $handler = new ShowTextBlobHandler($this->dataset, $this, 'dbo_TamanoBaseDatosGrid_Nombre_handler_list', $column);
        GetApplication()->RegisterHTTPHandler($handler);
        return $result;
    }
    public function OpenAdvancedSearchByDefault()
    {
        return false;
    }
    protected function DoGetGridHeader()
    {
        return '';
    }
}
try {
    $Page = new dbo_TamanoBaseDatosPage("Volumen.php", "dbo_TamanoBaseDatos", GetCurrentUserGrantForDataSource("dbo.TamanoBaseDatos"), 'UTF-8');
    $Page->SetShortCaption('Volumen');
    $Page->SetHeader(GetPagesHeader());
    $Page->SetFooter(GetPagesFooter());
    $Page->SetCaption('');
    $Page->SetRecordPermission(GetCurrentUserRecordPermissionsForDataSource("dbo.TamanoBaseDatos"));
    GetApplication()->SetEnableLessRunTimeCompile(GetEnableLessFilesRunTimeCompilation());
    GetApplication()->SetCanUserChangeOwnPassword(!function_exists('CanUserChangeOwnPassword') || CanUserChangeOwnPassword());
    GetApplication()->SetMainPage($Page);
    GetApplication()->Run();
} catch (Exception $e) {
    ShowErrorPage($e->getMessage());
}
 protected function CreateGrid()
 {
     $result = new Grid($this, $this->dataset, 'planificacionGrid');
     if ($this->GetSecurityInfo()->HasDeleteGrant()) {
         $result->SetAllowDeleteSelected(true);
     } else {
         $result->SetAllowDeleteSelected(false);
     }
     ApplyCommonPageSettings($this, $result);
     $result->SetUseImagesForActions(true);
     $result->SetUseFixedHeader(false);
     $result->SetShowLineNumbers(false);
     $result->SetShowKeyColumnsImagesInHeader(false);
     $result->SetViewMode(ViewMode::TABLE);
     $result->setEnableRuntimeCustomization(true);
     $result->SetHighlightRowAtHover(false);
     $result->SetWidth('');
     $this->CreateGridSearchControl($result);
     $this->CreateGridAdvancedSearchControl($result);
     $this->AddOperationsColumns($result);
     $this->AddFieldColumns($result);
     $this->AddSingleRecordViewColumns($result);
     $this->AddEditColumns($result);
     $this->AddInsertColumns($result);
     $this->AddPrintColumns($result);
     $this->AddExportColumns($result);
     $this->SetShowPageList(true);
     $this->SetExportToExcelAvailable(true);
     $this->SetExportToWordAvailable(true);
     $this->SetExportToXmlAvailable(true);
     $this->SetExportToCsvAvailable(true);
     $this->SetExportToPdfAvailable(true);
     $this->SetPrinterFriendlyAvailable(true);
     $this->SetSimpleSearchAvailable(true);
     $this->SetAdvancedSearchAvailable(true);
     $this->SetVisualEffectsEnabled(true);
     $this->SetShowTopPageNavigator(true);
     $this->SetShowBottomPageNavigator(true);
     //
     // Http Handlers
     //
     $pageView = new actividadDetailView0planificacionPage($this, 'Actividades', 'Actividades', array('id_planificacion'), GetCurrentUserGrantForDataSource('planificacion.actividad'), 'UTF-8', 20, 'actividadDetailEdit0planificacion_handler');
     $pageView->SetRecordPermission(GetCurrentUserRecordPermissionsForDataSource('planificacion.actividad'));
     $handler = new PageHTTPHandler('actividadDetailView0planificacion_handler', $pageView);
     GetApplication()->RegisterHTTPHandler($handler);
     $pageEdit = new actividadDetailEdit0planificacionPage($this, array('id_planificacion'), array('id'), $this->GetForeingKeyFields(), $this->CreateMasterDetailRecordGridForactividadDetailEdit0planificacionGrid(), $this->dataset, GetCurrentUserGrantForDataSource('planificacion.actividad'), 'UTF-8');
     $pageEdit->SetRecordPermission(GetCurrentUserRecordPermissionsForDataSource('planificacion.actividad'));
     $pageEdit->SetShortCaption('Actividades');
     $pageEdit->SetHeader(GetPagesHeader());
     $pageEdit->SetFooter(GetPagesFooter());
     $pageEdit->SetCaption('Actividades');
     $pageEdit->SetHttpHandlerName('actividadDetailEdit0planificacion_handler');
     $handler = new PageHTTPHandler('actividadDetailEdit0planificacion_handler', $pageEdit);
     GetApplication()->RegisterHTTPHandler($handler);
     $pageView = new objeto_planificacionDetailView1planificacionPage($this, 'Objetos a Aplicar', 'Objetos a Aplicar', array('id_planificacion'), GetCurrentUserGrantForDataSource('planificacion.objeto_planificacion'), 'UTF-8', 20, 'objeto_planificacionDetailEdit1planificacion_handler');
     $pageView->SetRecordPermission(GetCurrentUserRecordPermissionsForDataSource('planificacion.objeto_planificacion'));
     $handler = new PageHTTPHandler('objeto_planificacionDetailView1planificacion_handler', $pageView);
     GetApplication()->RegisterHTTPHandler($handler);
     $pageEdit = new objeto_planificacionDetailEdit1planificacionPage($this, array('id_planificacion'), array('id'), $this->GetForeingKeyFields(), $this->CreateMasterDetailRecordGridForobjeto_planificacionDetailEdit1planificacionGrid(), $this->dataset, GetCurrentUserGrantForDataSource('planificacion.objeto_planificacion'), 'UTF-8');
     $pageEdit->SetRecordPermission(GetCurrentUserRecordPermissionsForDataSource('planificacion.objeto_planificacion'));
     $pageEdit->SetShortCaption('Objetos a Aplicar');
     $pageEdit->SetHeader(GetPagesHeader());
     $pageEdit->SetFooter(GetPagesFooter());
     $pageEdit->SetCaption('Objetos a Aplicar');
     $pageEdit->SetHttpHandlerName('objeto_planificacionDetailEdit1planificacion_handler');
     $handler = new PageHTTPHandler('objeto_planificacionDetailEdit1planificacion_handler', $pageEdit);
     GetApplication()->RegisterHTTPHandler($handler);
     //
     // View column for descripcion field
     //
     $column = new TextViewColumn('descripcion', 'Descripción', $this->dataset);
     $column->SetOrderable(true);
     $handler = new ShowTextBlobHandler($this->dataset, $this, 'planificacionGrid_descripcion_handler_list', $column);
     GetApplication()->RegisterHTTPHandler($handler);
     //
     // View column for criterios_aceptacion field
     //
     $column = new TextViewColumn('criterios_aceptacion', 'Criterios Aceptación', $this->dataset);
     $column->SetOrderable(true);
     $handler = new ShowTextBlobHandler($this->dataset, $this, 'planificacionGrid_criterios_aceptacion_handler_list', $column);
     GetApplication()->RegisterHTTPHandler($handler);
     //
     // View column for observaciones field
     //
     $column = new TextViewColumn('observaciones', 'Observaciones', $this->dataset);
     $column->SetOrderable(true);
     $handler = new ShowTextBlobHandler($this->dataset, $this, 'planificacionGrid_observaciones_handler_list', $column);
     GetApplication()->RegisterHTTPHandler($handler);
     //
     // View column for descripcion field
     //
     $column = new TextViewColumn('descripcion', 'Descripción', $this->dataset);
     $column->SetOrderable(true);
     $handler = new ShowTextBlobHandler($this->dataset, $this, 'planificacionGrid_descripcion_handler_view', $column);
     GetApplication()->RegisterHTTPHandler($handler);
     //
     // View column for criterios_aceptacion field
     //
     $column = new TextViewColumn('criterios_aceptacion', 'Criterios Aceptación', $this->dataset);
     $column->SetOrderable(true);
     $handler = new ShowTextBlobHandler($this->dataset, $this, 'planificacionGrid_criterios_aceptacion_handler_view', $column);
     GetApplication()->RegisterHTTPHandler($handler);
     //
     // View column for observaciones field
     //
     $column = new TextViewColumn('observaciones', 'Observaciones', $this->dataset);
     $column->SetOrderable(true);
     $handler = new ShowTextBlobHandler($this->dataset, $this, 'planificacionGrid_observaciones_handler_view', $column);
     GetApplication()->RegisterHTTPHandler($handler);
     return $result;
 }
示例#14
0
        // View column for Database field
        //
        $column = new TextViewColumn('Database', 'Database', $this->dataset);
        $column->SetOrderable(true);
        $handler = new ShowTextBlobHandler($this->dataset, $this, 'dbo_procesosbdGrid_Database_handler_view', $column);
        GetApplication()->RegisterHTTPHandler($handler);
        return $result;
    }
    public function OpenAdvancedSearchByDefault()
    {
        return false;
    }
    protected function DoGetGridHeader()
    {
        return '';
    }
}
try {
    $Page = new dbo_procesosbdPage("Sesiones.php", "dbo_procesosbd", GetCurrentUserGrantForDataSource("dbo.procesosbd"), 'UTF-8');
    $Page->SetShortCaption('Sesiones');
    $Page->SetHeader(GetPagesHeader());
    $Page->SetFooter(GetPagesFooter());
    $Page->SetCaption('');
    $Page->SetRecordPermission(GetCurrentUserRecordPermissionsForDataSource("dbo.procesosbd"));
    GetApplication()->SetEnableLessRunTimeCompile(GetEnableLessFilesRunTimeCompilation());
    GetApplication()->SetCanUserChangeOwnPassword(!function_exists('CanUserChangeOwnPassword') || CanUserChangeOwnPassword());
    GetApplication()->SetMainPage($Page);
    GetApplication()->Run();
} catch (Exception $e) {
    ShowErrorPage($e->getMessage());
}
        //
        $column = new TextViewColumn('ruta', 'Ruta', $this->dataset);
        $column->SetOrderable(true);
        $handler = new ShowTextBlobHandler($this->dataset, $this, 'objeto_refactorizacionGrid_ruta_handler_view', $column);
        GetApplication()->RegisterHTTPHandler($handler);
        return $result;
    }
    public function OpenAdvancedSearchByDefault()
    {
        return false;
    }
    protected function DoGetGridHeader()
    {
        return '';
    }
}
SetUpUserAuthorization(GetApplication());
try {
    $Page = new objeto_refactorizacionPage("objeto_refactorizacion.php", "objeto_refactorizacion", GetCurrentUserGrantForDataSource("objeto_refactorizacion"), 'UTF-8');
    $Page->SetShortCaption('Objetos Refactorización');
    $Page->SetHeader(GetPagesHeader());
    $Page->SetFooter(GetPagesFooter());
    $Page->SetCaption('Objetos Refactorización');
    $Page->SetRecordPermission(GetCurrentUserRecordPermissionsForDataSource("objeto_refactorizacion"));
    GetApplication()->SetEnableLessRunTimeCompile(GetEnableLessFilesRunTimeCompilation());
    GetApplication()->SetCanUserChangeOwnPassword(!function_exists('CanUserChangeOwnPassword') || CanUserChangeOwnPassword());
    GetApplication()->SetMainPage($Page);
    GetApplication()->Run();
} catch (Exception $e) {
    ShowErrorPage($e->getMessage());
}
示例#16
0
 protected function CreateGrid()
 {
     $result = new Grid($this, $this->dataset, 'imvGrid');
     if ($this->GetSecurityInfo()->HasDeleteGrant()) {
         $result->SetAllowDeleteSelected(false);
     } else {
         $result->SetAllowDeleteSelected(false);
     }
     ApplyCommonPageSettings($this, $result);
     $result->SetUseImagesForActions(true);
     $result->SetUseFixedHeader(false);
     $result->SetShowLineNumbers(false);
     $result->SetHighlightRowAtHover(false);
     $result->SetWidth('');
     $this->CreateGridSearchControl($result);
     $this->CreateGridAdvancedSearchControl($result);
     $this->AddFieldColumns($result);
     $this->AddSingleRecordViewColumns($result);
     $this->AddEditColumns($result);
     $this->AddInsertColumns($result);
     $this->AddPrintColumns($result);
     $this->AddExportColumns($result);
     $this->AddOperationsColumns($result);
     $this->SetShowPageList(true);
     $this->SetHidePageListByDefault(false);
     $this->SetExportToExcelAvailable(true);
     $this->SetExportToWordAvailable(true);
     $this->SetExportToXmlAvailable(true);
     $this->SetExportToCsvAvailable(true);
     $this->SetExportToPdfAvailable(true);
     $this->SetPrinterFriendlyAvailable(true);
     $this->SetSimpleSearchAvailable(true);
     $this->SetAdvancedSearchAvailable(true);
     $this->SetFilterRowAvailable(true);
     $this->SetVisualEffectsEnabled(true);
     $this->SetShowTopPageNavigator(true);
     $this->SetShowBottomPageNavigator(true);
     //
     // Http Handlers
     //
     $pageView = new kardexmercanciasDetailView0imvPage($this, 'Kardexmercancias', 'Kardexmercancias', array('ProductosVenta_idProductosVenta'), GetCurrentUserGrantForDataSource('imv.'), 'UTF-8', 20, 'kardexmercanciasDetailEdit0imv_handler');
     $pageView->SetRecordPermission(GetCurrentUserRecordPermissionsForDataSource('imv.'));
     $handler = new PageHTTPHandler('kardexmercanciasDetailView0imv_handler', $pageView);
     GetApplication()->RegisterHTTPHandler($handler);
     $pageEdit = new kardexmercanciasDetailEdit0imvPage($this, array('ProductosVenta_idProductosVenta'), array('id'), $this->GetForeingKeyFields(), $this->CreateMasterDetailRecordGridForkardexmercanciasDetailEdit0imvGrid(), $this->dataset, GetCurrentUserGrantForDataSource('imv.'), 'UTF-8');
     $pageEdit->SetRecordPermission(GetCurrentUserRecordPermissionsForDataSource('imv.'));
     $pageEdit->SetShortCaption('Kardexmercancias');
     $pageEdit->SetHeader(GetPagesHeader());
     $pageEdit->SetFooter(GetPagesFooter());
     $pageEdit->SetCaption('Kardexmercancias');
     $pageEdit->SetHttpHandlerName('kardexmercanciasDetailEdit0imv_handler');
     $handler = new PageHTTPHandler('kardexmercanciasDetailEdit0imv_handler', $pageEdit);
     GetApplication()->RegisterHTTPHandler($handler);
     //
     // View column for cod_cups field
     //
     $column = new TextViewColumn('cod_cups', 'Cod Cups', $this->dataset);
     $column->SetOrderable(true);
     /* <inline edit column> */
     //
     // Edit column for cod_cups field
     //
     $editor = new TextEdit('cod_cups_edit');
     $editor->SetSize(100);
     $editor->SetMaxLength(100);
     $editColumn = new CustomEditColumn('Cod Cups', 'cod_cups', $editor, $this->dataset);
     $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $this->RenderText($editColumn->GetCaption())));
     $editor->GetValidatorCollection()->AddValidator($validator);
     $this->ApplyCommonColumnEditProperties($editColumn);
     $column->SetEditOperationColumn($editColumn);
     /* </inline edit column> */
     /* <inline insert column> */
     //
     // Edit column for cod_cups field
     //
     $editor = new TextEdit('cod_cups_edit');
     $editor->SetSize(100);
     $editor->SetMaxLength(100);
     $editColumn = new CustomEditColumn('Cod Cups', 'cod_cups', $editor, $this->dataset);
     $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $this->RenderText($editColumn->GetCaption())));
     $editor->GetValidatorCollection()->AddValidator($validator);
     $this->ApplyCommonColumnEditProperties($editColumn);
     $column->SetInsertOperationColumn($editColumn);
     /* </inline insert column> */
     $handler = new ShowTextBlobHandler($this->dataset, $this, 'cod_cups_handler', $column);
     GetApplication()->RegisterHTTPHandler($handler);
     //
     // View column for cod_admin field
     //
     $column = new TextViewColumn('cod_admin', 'Cod Admin', $this->dataset);
     $column->SetOrderable(true);
     /* <inline edit column> */
     //
     // Edit column for cod_admin field
     //
     $editor = new TextEdit('cod_admin_edit');
     $editor->SetSize(100);
     $editor->SetMaxLength(100);
     $editColumn = new CustomEditColumn('Cod Admin', 'cod_admin', $editor, $this->dataset);
     $editColumn->SetAllowSetToNull(true);
     $this->ApplyCommonColumnEditProperties($editColumn);
     $column->SetEditOperationColumn($editColumn);
     /* </inline edit column> */
     /* <inline insert column> */
     //
     // Edit column for cod_admin field
     //
     $editor = new TextEdit('cod_admin_edit');
     $editor->SetSize(100);
     $editor->SetMaxLength(100);
     $editColumn = new CustomEditColumn('Cod Admin', 'cod_admin', $editor, $this->dataset);
     $editColumn->SetAllowSetToNull(true);
     $this->ApplyCommonColumnEditProperties($editColumn);
     $column->SetInsertOperationColumn($editColumn);
     /* </inline insert column> */
     $handler = new ShowTextBlobHandler($this->dataset, $this, 'cod_admin_handler', $column);
     GetApplication()->RegisterHTTPHandler($handler);
     //
     // View column for cums field
     //
     $column = new TextViewColumn('cums', 'Cums', $this->dataset);
     $column->SetOrderable(true);
     /* <inline edit column> */
     //
     // Edit column for cums field
     //
     $editor = new TextEdit('cums_edit');
     $editor->SetSize(100);
     $editor->SetMaxLength(100);
     $editColumn = new CustomEditColumn('Cums', 'cums', $editor, $this->dataset);
     $editColumn->SetAllowSetToNull(true);
     $this->ApplyCommonColumnEditProperties($editColumn);
     $column->SetEditOperationColumn($editColumn);
     /* </inline edit column> */
     /* <inline insert column> */
     //
     // Edit column for cums field
     //
     $editor = new TextEdit('cums_edit');
     $editor->SetSize(100);
     $editor->SetMaxLength(100);
     $editColumn = new CustomEditColumn('Cums', 'cums', $editor, $this->dataset);
     $editColumn->SetAllowSetToNull(true);
     $this->ApplyCommonColumnEditProperties($editColumn);
     $column->SetInsertOperationColumn($editColumn);
     /* </inline insert column> */
     $handler = new ShowTextBlobHandler($this->dataset, $this, 'cums_handler', $column);
     GetApplication()->RegisterHTTPHandler($handler);
     //
     // View column for nombre field
     //
     $column = new TextViewColumn('nombre', 'Nombre', $this->dataset);
     $column->SetOrderable(true);
     /* <inline edit column> */
     //
     // Edit column for nombre field
     //
     $editor = new TextAreaEdit('nombre_edit', 50, 8);
     $editColumn = new CustomEditColumn('Nombre', 'nombre', $editor, $this->dataset);
     $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $this->RenderText($editColumn->GetCaption())));
     $editor->GetValidatorCollection()->AddValidator($validator);
     $this->ApplyCommonColumnEditProperties($editColumn);
     $column->SetEditOperationColumn($editColumn);
     /* </inline edit column> */
     /* <inline insert column> */
     //
     // Edit column for nombre field
     //
     $editor = new TextAreaEdit('nombre_edit', 50, 8);
     $editColumn = new CustomEditColumn('Nombre', 'nombre', $editor, $this->dataset);
     $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $this->RenderText($editColumn->GetCaption())));
     $editor->GetValidatorCollection()->AddValidator($validator);
     $this->ApplyCommonColumnEditProperties($editColumn);
     $column->SetInsertOperationColumn($editColumn);
     /* </inline insert column> */
     $handler = new ShowTextBlobHandler($this->dataset, $this, 'nombre_handler', $column);
     GetApplication()->RegisterHTTPHandler($handler);
     //
     // View column for tipo_imv field
     //
     $column = new TextViewColumn('tipo_imv', 'Tipo Imv', $this->dataset);
     $column->SetOrderable(true);
     /* <inline edit column> */
     //
     // Edit column for tipo_imv field
     //
     $editor = new TextEdit('tipo_imv_edit');
     $editor->SetSize(100);
     $editor->SetMaxLength(100);
     $editColumn = new CustomEditColumn('Tipo Imv', 'tipo_imv', $editor, $this->dataset);
     $editColumn->SetAllowSetToNull(true);
     $this->ApplyCommonColumnEditProperties($editColumn);
     $column->SetEditOperationColumn($editColumn);
     /* </inline edit column> */
     /* <inline insert column> */
     //
     // Edit column for tipo_imv field
     //
     $editor = new TextEdit('tipo_imv_edit');
     $editor->SetSize(100);
     $editor->SetMaxLength(100);
     $editColumn = new CustomEditColumn('Tipo Imv', 'tipo_imv', $editor, $this->dataset);
     $editColumn->SetAllowSetToNull(true);
     $this->ApplyCommonColumnEditProperties($editColumn);
     $column->SetInsertOperationColumn($editColumn);
     /* </inline insert column> */
     $handler = new ShowTextBlobHandler($this->dataset, $this, 'tipo_imv_handler', $column);
     GetApplication()->RegisterHTTPHandler($handler);
     //
     // View column for uni_medida field
     //
     $column = new TextViewColumn('uni_medida', 'Uni Medida', $this->dataset);
     $column->SetOrderable(true);
     /* <inline edit column> */
     //
     // Edit column for uni_medida field
     //
     $editor = new TextEdit('uni_medida_edit');
     $editor->SetSize(100);
     $editor->SetMaxLength(100);
     $editColumn = new CustomEditColumn('Uni Medida', 'uni_medida', $editor, $this->dataset);
     $editColumn->SetAllowSetToNull(true);
     $this->ApplyCommonColumnEditProperties($editColumn);
     $column->SetEditOperationColumn($editColumn);
     /* </inline edit column> */
     /* <inline insert column> */
     //
     // Edit column for uni_medida field
     //
     $editor = new TextEdit('uni_medida_edit');
     $editor->SetSize(100);
     $editor->SetMaxLength(100);
     $editColumn = new CustomEditColumn('Uni Medida', 'uni_medida', $editor, $this->dataset);
     $editColumn->SetAllowSetToNull(true);
     $this->ApplyCommonColumnEditProperties($editColumn);
     $column->SetInsertOperationColumn($editColumn);
     /* </inline insert column> */
     $handler = new ShowTextBlobHandler($this->dataset, $this, 'uni_medida_handler', $column);
     GetApplication()->RegisterHTTPHandler($handler);
     //
     // View column for tipo_med field
     //
     $column = new TextViewColumn('tipo_med', 'Tipo Med', $this->dataset);
     $column->SetOrderable(true);
     /* <inline edit column> */
     //
     // Edit column for tipo_med field
     //
     $editor = new TextEdit('tipo_med_edit');
     $editor->SetSize(100);
     $editor->SetMaxLength(100);
     $editColumn = new CustomEditColumn('Tipo Med', 'tipo_med', $editor, $this->dataset);
     $editColumn->SetAllowSetToNull(true);
     $this->ApplyCommonColumnEditProperties($editColumn);
     $column->SetEditOperationColumn($editColumn);
     /* </inline edit column> */
     /* <inline insert column> */
     //
     // Edit column for tipo_med field
     //
     $editor = new TextEdit('tipo_med_edit');
     $editor->SetSize(100);
     $editor->SetMaxLength(100);
     $editColumn = new CustomEditColumn('Tipo Med', 'tipo_med', $editor, $this->dataset);
     $editColumn->SetAllowSetToNull(true);
     $this->ApplyCommonColumnEditProperties($editColumn);
     $column->SetInsertOperationColumn($editColumn);
     /* </inline insert column> */
     $handler = new ShowTextBlobHandler($this->dataset, $this, 'tipo_med_handler', $column);
     GetApplication()->RegisterHTTPHandler($handler);
     //
     // View column for cod_cups field
     //
     $column = new TextViewColumn('cod_cups', 'Cod Cups', $this->dataset);
     $column->SetOrderable(true);
     $handler = new ShowTextBlobHandler($this->dataset, $this, 'cod_cups_handler', $column);
     GetApplication()->RegisterHTTPHandler($handler);
     //
     // View column for cod_admin field
     //
     $column = new TextViewColumn('cod_admin', 'Cod Admin', $this->dataset);
     $column->SetOrderable(true);
     $handler = new ShowTextBlobHandler($this->dataset, $this, 'cod_admin_handler', $column);
     GetApplication()->RegisterHTTPHandler($handler);
     //
     // View column for cums field
     //
     $column = new TextViewColumn('cums', 'Cums', $this->dataset);
     $column->SetOrderable(true);
     $handler = new ShowTextBlobHandler($this->dataset, $this, 'cums_handler', $column);
     GetApplication()->RegisterHTTPHandler($handler);
     //
     // View column for nombre field
     //
     $column = new TextViewColumn('nombre', 'Nombre', $this->dataset);
     $column->SetOrderable(true);
     $handler = new ShowTextBlobHandler($this->dataset, $this, 'nombre_handler', $column);
     GetApplication()->RegisterHTTPHandler($handler);
     //
     // View column for tipo_imv field
     //
     $column = new TextViewColumn('tipo_imv', 'Tipo Imv', $this->dataset);
     $column->SetOrderable(true);
     $handler = new ShowTextBlobHandler($this->dataset, $this, 'tipo_imv_handler', $column);
     GetApplication()->RegisterHTTPHandler($handler);
     //
     // View column for uni_medida field
     //
     $column = new TextViewColumn('uni_medida', 'Uni Medida', $this->dataset);
     $column->SetOrderable(true);
     $handler = new ShowTextBlobHandler($this->dataset, $this, 'uni_medida_handler', $column);
     GetApplication()->RegisterHTTPHandler($handler);
     //
     // View column for tipo_med field
     //
     $column = new TextViewColumn('tipo_med', 'Tipo Med', $this->dataset);
     $column->SetOrderable(true);
     $handler = new ShowTextBlobHandler($this->dataset, $this, 'tipo_med_handler', $column);
     GetApplication()->RegisterHTTPHandler($handler);
     return $result;
 }
示例#17
0
 protected function CreateGrid()
 {
     $result = new Grid($this, $this->dataset, 'taskGrid');
     if ($this->GetSecurityInfo()->HasDeleteGrant()) {
         $result->SetAllowDeleteSelected(true);
     } else {
         $result->SetAllowDeleteSelected(false);
     }
     ApplyCommonPageSettings($this, $result);
     $result->SetUseImagesForActions(true);
     $result->SetUseFixedHeader(false);
     $result->SetShowLineNumbers(false);
     $result->SetHighlightRowAtHover(false);
     $result->SetWidth('');
     $result->OnCustomRenderTotal->AddListener('taskGrid' . '_' . 'OnCustomRenderTotal', $this);
     $result->BeforeUpdateRecord->AddListener('taskGrid' . '_' . 'BeforeUpdateRecord', $this);
     $result->BeforeDeleteRecord->AddListener('taskGrid' . '_' . 'BeforeDeleteRecord', $this);
     $result->BeforeInsertRecord->AddListener('taskGrid' . '_' . 'BeforeInsertRecord', $this);
     $this->CreateGridSearchControl($result);
     $this->CreateGridAdvancedSearchControl($result);
     $this->AddOperationsColumns($result);
     $this->AddFieldColumns($result);
     $this->AddSingleRecordViewColumns($result);
     $this->AddEditColumns($result);
     $this->AddInsertColumns($result);
     $this->AddPrintColumns($result);
     $this->AddExportColumns($result);
     $this->SetShowPageList(true);
     $this->SetHidePageListByDefault(false);
     $this->SetExportToExcelAvailable(true);
     $this->SetExportToWordAvailable(true);
     $this->SetExportToXmlAvailable(false);
     $this->SetExportToCsvAvailable(true);
     $this->SetExportToPdfAvailable(true);
     $this->SetPrinterFriendlyAvailable(true);
     $this->SetSimpleSearchAvailable(true);
     $this->SetAdvancedSearchAvailable(true);
     $this->SetFilterRowAvailable(true);
     $this->SetVisualEffectsEnabled(true);
     $this->SetShowTopPageNavigator(true);
     $this->SetShowBottomPageNavigator(true);
     //
     // Http Handlers
     //
     $pageView = new timesheetDetailView0taskPage($this, 'Timesheet', 'Timesheet', array('task_id'), GetCurrentUserGrantForDataSource('task.timesheet'), 'UTF-8', 20, 'timesheetDetailEdit0task_handler');
     $pageView->SetRecordPermission(GetCurrentUserRecordPermissionsForDataSource('task.timesheet'));
     $handler = new PageHTTPHandler('timesheetDetailView0task_handler', $pageView);
     GetApplication()->RegisterHTTPHandler($handler);
     $pageEdit = new timesheetDetailEdit0taskPage($this, array('task_id'), array('task_id'), $this->GetForeingKeyFields(), $this->CreateMasterDetailRecordGridFortimesheetDetailEdit0taskGrid(), $this->dataset, GetCurrentUserGrantForDataSource('task.timesheet'), 'UTF-8');
     $pageEdit->SetRecordPermission(GetCurrentUserRecordPermissionsForDataSource('task.timesheet'));
     $pageEdit->SetShortCaption('Timesheet');
     $pageEdit->SetHeader(GetPagesHeader());
     $pageEdit->SetFooter(GetPagesFooter());
     $pageEdit->SetCaption('Timesheet');
     $pageEdit->SetHttpHandlerName('timesheetDetailEdit0task_handler');
     $handler = new PageHTTPHandler('timesheetDetailEdit0task_handler', $pageEdit);
     GetApplication()->RegisterHTTPHandler($handler);
     //
     // View column for Name field
     //
     $column = new TextViewColumn('task_name_Name', 'Name', $this->dataset);
     $column->SetOrderable(true);
     $handler = new ShowTextBlobHandler($this->dataset, $this, 'taskGrid_Name_handler_list', $column);
     GetApplication()->RegisterHTTPHandler($handler);
     //
     // View column for notes field
     //
     $column = new TextViewColumn('notes', 'Notes', $this->dataset);
     $column->SetOrderable(true);
     $handler = new ShowTextBlobHandler($this->dataset, $this, 'taskGrid_notes_handler_list', $column);
     GetApplication()->RegisterHTTPHandler($handler);
     //
     // View column for Name field
     //
     $column = new TextViewColumn('task_name_Name', 'Name', $this->dataset);
     $column->SetOrderable(true);
     $handler = new ShowTextBlobHandler($this->dataset, $this, 'taskGrid_Name_handler_view', $column);
     GetApplication()->RegisterHTTPHandler($handler);
     //
     // View column for notes field
     //
     $column = new TextViewColumn('notes', 'Notes', $this->dataset);
     $column->SetOrderable(true);
     $handler = new ShowTextBlobHandler($this->dataset, $this, 'taskGrid_notes_handler_view', $column);
     GetApplication()->RegisterHTTPHandler($handler);
     $lookupDataset = new TableDataset(new MyConnectionFactory(), GetConnectionOptions(), '`task_names`');
     $field = new IntegerField('id', null, null, true);
     $field->SetIsNotNull(true);
     $lookupDataset->AddField($field, true);
     $field = new StringField('Name');
     $lookupDataset->AddField($field, false);
     $lookupDataset->SetOrderBy('Name', GetOrderTypeAsSQL(otAscending));
     $lookupDataset->AddCustomCondition(EnvVariablesUtils::EvaluateVariableTemplate($this->GetColumnVariableContainer(), ''));
     $handler = new DynamicSearchHandler($lookupDataset, $this, 'edit_task_name_Name_search', 'Name', 'Name', null);
     GetApplication()->RegisterHTTPHandler($handler);
     $lookupDataset = new TableDataset(new MyConnectionFactory(), GetConnectionOptions(), '`task_names`');
     $field = new IntegerField('id', null, null, true);
     $field->SetIsNotNull(true);
     $lookupDataset->AddField($field, true);
     $field = new StringField('Name');
     $lookupDataset->AddField($field, false);
     $lookupDataset->SetOrderBy('Name', GetOrderTypeAsSQL(otAscending));
     $lookupDataset->AddCustomCondition(EnvVariablesUtils::EvaluateVariableTemplate($this->GetColumnVariableContainer(), ''));
     $handler = new DynamicSearchHandler($lookupDataset, $this, 'insert_task_name_Name_search', 'Name', 'Name', null);
     GetApplication()->RegisterHTTPHandler($handler);
     return $result;
 }
示例#18
0
 protected function CreateGrid()
 {
     $result = new Grid($this, $this->dataset, 'dbo_BaseDatosGrid');
     if ($this->GetSecurityInfo()->HasDeleteGrant()) {
         $result->SetAllowDeleteSelected(false);
     } else {
         $result->SetAllowDeleteSelected(false);
     }
     ApplyCommonPageSettings($this, $result);
     $result->SetUseImagesForActions(true);
     $result->SetUseFixedHeader(false);
     $result->SetShowLineNumbers(false);
     $result->SetShowKeyColumnsImagesInHeader(false);
     $result->SetViewMode(ViewMode::CARD);
     $result->SetCardCountInRow(3);
     $result->setEnableRuntimeCustomization(false);
     $result->setTableBordered(false);
     $result->setTableCondensed(false);
     $result->SetHighlightRowAtHover(false);
     $result->SetWidth('');
     $this->CreateGridSearchControl($result);
     $this->CreateGridAdvancedSearchControl($result);
     $this->AddOperationsColumns($result);
     $this->AddFieldColumns($result);
     $this->AddSingleRecordViewColumns($result);
     $this->AddEditColumns($result);
     $this->AddInsertColumns($result);
     $this->AddPrintColumns($result);
     $this->AddExportColumns($result);
     $this->SetShowPageList(true);
     $this->SetExportToExcelAvailable(true);
     $this->SetExportToWordAvailable(true);
     $this->SetExportToXmlAvailable(true);
     $this->SetExportToCsvAvailable(true);
     $this->SetExportToPdfAvailable(true);
     $this->SetPrinterFriendlyAvailable(true);
     $this->SetSimpleSearchAvailable(true);
     $this->SetAdvancedSearchAvailable(false);
     $this->SetVisualEffectsEnabled(true);
     $this->SetShowTopPageNavigator(true);
     $this->SetShowBottomPageNavigator(true);
     //
     // Http Handlers
     //
     $pageView = new dbo_AlterLogDetailView0dbo_BaseDatosPage($this, '', '', array('DatabaseName'), GetCurrentUserGrantForDataSource('dbo.BaseDatos.dbo.AlterLog'), 'UTF-8', 20, 'dbo_AlterLogDetailEdit0dbo_BaseDatos_handler');
     $pageView->SetRecordPermission(GetCurrentUserRecordPermissionsForDataSource('dbo.BaseDatos.dbo.AlterLog'));
     $handler = new PageHTTPHandler('dbo_AlterLogDetailView0dbo_BaseDatos_handler', $pageView);
     GetApplication()->RegisterHTTPHandler($handler);
     $pageEdit = new dbo_AlterLogDetailEdit0dbo_BaseDatosPage($this, array('DatabaseName'), array('base_datos'), $this->GetForeingKeyFields(), $this->CreateMasterDetailRecordGridFordbo_AlterLogDetailEdit0dbo_BaseDatosGrid(), $this->dataset, GetCurrentUserGrantForDataSource('dbo.BaseDatos.dbo.AlterLog'), 'UTF-8');
     $pageEdit->SetRecordPermission(GetCurrentUserRecordPermissionsForDataSource('dbo.BaseDatos.dbo.AlterLog'));
     $pageEdit->SetShortCaption('Ver detalle');
     $pageEdit->SetHeader(GetPagesHeader());
     $pageEdit->SetFooter(GetPagesFooter());
     $pageEdit->SetCaption('');
     $pageEdit->SetHttpHandlerName('dbo_AlterLogDetailEdit0dbo_BaseDatos_handler');
     $handler = new PageHTTPHandler('dbo_AlterLogDetailEdit0dbo_BaseDatos_handler', $pageEdit);
     GetApplication()->RegisterHTTPHandler($handler);
     $pageView = new dbo_procesosDetailView1dbo_BaseDatosPage($this, '', '', array('Database'), GetCurrentUserGrantForDataSource('dbo.BaseDatos.'), 'UTF-8', 20, 'dbo_procesosDetailEdit1dbo_BaseDatos_handler');
     $pageView->SetRecordPermission(GetCurrentUserRecordPermissionsForDataSource('dbo.BaseDatos.'));
     $handler = new PageHTTPHandler('dbo_procesosDetailView1dbo_BaseDatos_handler', $pageView);
     GetApplication()->RegisterHTTPHandler($handler);
     $pageEdit = new dbo_procesosDetailEdit1dbo_BaseDatosPage($this, array('Database'), array('base_datos'), $this->GetForeingKeyFields(), $this->CreateMasterDetailRecordGridFordbo_procesosDetailEdit1dbo_BaseDatosGrid(), $this->dataset, GetCurrentUserGrantForDataSource('dbo.BaseDatos.'), 'UTF-8');
     $pageEdit->SetRecordPermission(GetCurrentUserRecordPermissionsForDataSource('dbo.BaseDatos.'));
     $pageEdit->SetShortCaption('Ver Procesos');
     $pageEdit->SetHeader(GetPagesHeader());
     $pageEdit->SetFooter(GetPagesFooter());
     $pageEdit->SetCaption('');
     $pageEdit->SetHttpHandlerName('dbo_procesosDetailEdit1dbo_BaseDatos_handler');
     $handler = new PageHTTPHandler('dbo_procesosDetailEdit1dbo_BaseDatos_handler', $pageEdit);
     GetApplication()->RegisterHTTPHandler($handler);
     //
     // View column for base_datos field
     //
     $column = new TextViewColumn('base_datos', 'Base Datos', $this->dataset);
     $column->SetOrderable(true);
     $handler = new ShowTextBlobHandler($this->dataset, $this, 'dbo_BaseDatosGrid_base_datos_handler_list', $column);
     GetApplication()->RegisterHTTPHandler($handler);
     //
     // View column for base_datos field
     //
     $column = new TextViewColumn('base_datos', 'Base Datos', $this->dataset);
     $column->SetOrderable(true);
     $handler = new ShowTextBlobHandler($this->dataset, $this, 'dbo_BaseDatosGrid_base_datos_handler_view', $column);
     GetApplication()->RegisterHTTPHandler($handler);
     return $result;
 }
 protected function CreateGrid()
 {
     $result = new Grid($this, $this->dataset, 'projectGrid');
     if ($this->GetSecurityInfo()->HasDeleteGrant()) {
         $result->SetAllowDeleteSelected(true);
     } else {
         $result->SetAllowDeleteSelected(false);
     }
     ApplyCommonPageSettings($this, $result);
     $result->SetUseImagesForActions(true);
     $result->SetInsertClientValidationScript($this->RenderText('if ( Number(fieldValues[\'budget_spent\']) > Number(fieldValues[\'approved_budget\']))
         
         {
           errorInfo.SetMessage(\'"Budget spent is greater than the Approved Budget"\');
           return false;
         }
         else if
         (fieldValues[\'date_start\'] >= fieldValues[\'date_end\'])
         {
           errorInfo.SetMessage(\'"Start date is greater than or equal to End date"\');
           return false;
         }'));
     $result->SetEditClientFormLoadedScript($this->RenderText('if (editors[\'approved\'].getValue() == 1) {
           editors[\'programm_id\'].setEnabled(false);
           editors[\'project_name\'].setEnabled(false);
           editors[\'date_start\'].setEnabled(false);
           editors[\'date_end\'].setEnabled(false);
           editors[\'approved_budget\'].setEnabled(false);
           editors[\'notes\'].setEnabled(false);
           editors[\'priority\'].setEnabled(false);
           editors[\'lead\'].setEnabled(false);
           editors[\'level_of_service\'].setEnabled(false);
           editors[\'multi_year\'].setEnabled(false);
           editors[\'public_engagement\'].setEnabled(false);
           editors[\'year\'].setEnabled(false); 
           editors[\'dept_id\'].setEnabled(false);
           }
         else 
         {
           editors[\'programm_id\'].setEnabled(true);
           editors[\'project_name\'].setEnabled(true);
           editors[\'date_start\'].setEnabled(true);
           editors[\'date_end\'].setEnabled(true);
           editors[\'approved_budget\'].setEnabled(true);
           editors[\'notes\'].setEnabled(true);
           editors[\'priority\'].setEnabled(true);
           editors[\'lead\'].setEnabled(true);
           editors[\'level_of_service\'].setEnabled(true);
           editors[\'multi_year\'].setEnabled(true);
           editors[\'public_engagement\'].setEnabled(true);
           editors[\'year\'].setEnabled(true); 
           editors[\'dept_id\'].setEnabled(true);
         }'));
     $result->SetEditClientValidationScript($this->RenderText('if ( Number(fieldValues[\'budget_spent\']) > Number(fieldValues[\'approved_budget\']))
         
         {
           errorInfo.SetMessage(\'"Budget spent is greater than the Approved Budget"\');
           return false;
         }
         else if
         (fieldValues[\'date_start\'] >= fieldValues[\'date_end\'])
         {
           errorInfo.SetMessage(\'"Start date is greater than or equal to End date"\');
           return false;
         }'));
     $result->SetUseFixedHeader(false);
     $result->SetShowLineNumbers(false);
     $result->SetHighlightRowAtHover(false);
     $result->SetWidth('');
     $this->OnGetCustomTemplate->AddListener('projectGrid' . '_OnGetCustomTemplate', $this);
     $result->OnCustomDrawCell->AddListener('projectGrid' . '_OnCustomDrawRow', $this);
     $result->OnCustomRenderColumn->AddListener('projectGrid' . '_' . 'OnCustomRenderColumn', $this);
     $result->OnCustomRenderTotal->AddListener('projectGrid' . '_' . 'OnCustomRenderTotal', $this);
     $result->BeforeUpdateRecord->AddListener('projectGrid' . '_' . 'BeforeUpdateRecord', $this);
     $result->BeforeInsertRecord->AddListener('projectGrid' . '_' . 'BeforeInsertRecord', $this);
     $this->CreateGridSearchControl($result);
     $this->CreateGridAdvancedSearchControl($result);
     $this->AddOperationsColumns($result);
     $this->AddFieldColumns($result);
     $this->AddSingleRecordViewColumns($result);
     $this->AddEditColumns($result);
     $this->AddInsertColumns($result);
     $this->AddPrintColumns($result);
     $this->AddExportColumns($result);
     $this->SetShowPageList(true);
     $this->SetHidePageListByDefault(false);
     $this->SetExportToExcelAvailable(true);
     $this->SetExportToWordAvailable(true);
     $this->SetExportToXmlAvailable(false);
     $this->SetExportToCsvAvailable(true);
     $this->SetExportToPdfAvailable(true);
     $this->SetPrinterFriendlyAvailable(true);
     $this->SetSimpleSearchAvailable(true);
     $this->SetAdvancedSearchAvailable(true);
     $this->SetFilterRowAvailable(true);
     $this->SetVisualEffectsEnabled(true);
     $this->SetShowTopPageNavigator(true);
     $this->SetShowBottomPageNavigator(true);
     //
     // Http Handlers
     //
     $pageView = new taskDetailView0projectPage($this, 'Tasks', 'Tasks', array('project_id'), GetCurrentUserGrantForDataSource('project.task'), 'UTF-8', 20, 'taskDetailEdit0project_handler');
     $pageView->SetRecordPermission(GetCurrentUserRecordPermissionsForDataSource('project.task'));
     $handler = new PageHTTPHandler('taskDetailView0project_handler', $pageView);
     GetApplication()->RegisterHTTPHandler($handler);
     $pageEdit = new taskDetailEdit0projectPage($this, array('project_id'), array('project_id'), $this->GetForeingKeyFields(), $this->CreateMasterDetailRecordGridFortaskDetailEdit0projectGrid(), $this->dataset, GetCurrentUserGrantForDataSource('project.task'), 'UTF-8');
     $pageEdit->SetRecordPermission(GetCurrentUserRecordPermissionsForDataSource('project.task'));
     $pageEdit->SetShortCaption('Tasks within this project');
     $pageEdit->SetHeader(GetPagesHeader());
     $pageEdit->SetFooter(GetPagesFooter());
     $pageEdit->SetCaption('Tasks');
     $pageEdit->SetHttpHandlerName('taskDetailEdit0project_handler');
     $handler = new PageHTTPHandler('taskDetailEdit0project_handler', $pageEdit);
     GetApplication()->RegisterHTTPHandler($handler);
     $pageView = new projectDetailView1projectPage($this, 'Project Budget', 'Project Budget', array('project_id'), GetCurrentUserGrantForDataSource('project.project'), 'UTF-8', 20, 'projectDetailEdit1project_handler');
     $pageView->SetRecordPermission(GetCurrentUserRecordPermissionsForDataSource('project.project'));
     $handler = new PageHTTPHandler('projectDetailView1project_handler', $pageView);
     GetApplication()->RegisterHTTPHandler($handler);
     $pageEdit = new projectDetailEdit1projectPage($this, array('project_id'), array('project_id'), $this->GetForeingKeyFields(), $this->CreateMasterDetailRecordGridForprojectDetailEdit1projectGrid(), $this->dataset, GetCurrentUserGrantForDataSource('project.project'), 'UTF-8');
     $pageEdit->SetRecordPermission(GetCurrentUserRecordPermissionsForDataSource('project.project'));
     $pageEdit->SetShortCaption('Project Budget Chart');
     $pageEdit->SetHeader(GetPagesHeader());
     $pageEdit->SetFooter(GetPagesFooter());
     $pageEdit->SetCaption('Project Budget');
     $pageEdit->SetHttpHandlerName('projectDetailEdit1project_handler');
     $handler = new PageHTTPHandler('projectDetailEdit1project_handler', $pageEdit);
     GetApplication()->RegisterHTTPHandler($handler);
     $pageView = new project_timeline_detailDetailView2projectPage($this, 'Tasks Gantt view', 'Tasks Gantt view', array('task_project_id'), GetCurrentUserGrantForDataSource('project.project_timeline_detail'), 'UTF-8', 20, 'project_timeline_detailDetailEdit2project_handler');
     $pageView->SetRecordPermission(GetCurrentUserRecordPermissionsForDataSource('project.project_timeline_detail'));
     $handler = new PageHTTPHandler('project_timeline_detailDetailView2project_handler', $pageView);
     GetApplication()->RegisterHTTPHandler($handler);
     $pageEdit = new project_timeline_detailDetailEdit2projectPage($this, array('task_project_id'), array('project_id'), $this->GetForeingKeyFields(), $this->CreateMasterDetailRecordGridForproject_timeline_detailDetailEdit2projectGrid(), $this->dataset, GetCurrentUserGrantForDataSource('project.project_timeline_detail'), 'UTF-8');
     $pageEdit->SetRecordPermission(GetCurrentUserRecordPermissionsForDataSource('project.project_timeline_detail'));
     $pageEdit->SetShortCaption('Tasks Gantt view');
     $pageEdit->SetHeader(GetPagesHeader());
     $pageEdit->SetFooter(GetPagesFooter());
     $pageEdit->SetCaption('Tasks Gantt view');
     $pageEdit->SetHttpHandlerName('project_timeline_detailDetailEdit2project_handler');
     $handler = new PageHTTPHandler('project_timeline_detailDetailEdit2project_handler', $pageEdit);
     GetApplication()->RegisterHTTPHandler($handler);
     //
     // View column for notes field
     //
     $column = new TextViewColumn('notes', 'Objectives', $this->dataset);
     $column->SetOrderable(true);
     $handler = new ShowTextBlobHandler($this->dataset, $this, 'projectGrid_notes_handler_list', $column);
     GetApplication()->RegisterHTTPHandler($handler);
     //
     // View column for public_engagement field
     //
     $column = new TextViewColumn('public_engagement', 'Public Engagement', $this->dataset);
     $column->SetOrderable(true);
     $handler = new ShowTextBlobHandler($this->dataset, $this, 'projectGrid_public_engagement_handler_list', $column);
     GetApplication()->RegisterHTTPHandler($handler);
     //
     // View column for notes field
     //
     $column = new TextViewColumn('notes', 'Objectives', $this->dataset);
     $column->SetOrderable(true);
     $handler = new ShowTextBlobHandler($this->dataset, $this, 'projectGrid_notes_handler_view', $column);
     GetApplication()->RegisterHTTPHandler($handler);
     //
     // View column for public_engagement field
     //
     $column = new TextViewColumn('public_engagement', 'Public Engagement', $this->dataset);
     $column->SetOrderable(true);
     $handler = new ShowTextBlobHandler($this->dataset, $this, 'projectGrid_public_engagement_handler_view', $column);
     GetApplication()->RegisterHTTPHandler($handler);
     return $result;
 }
示例#20
0
        //
        $column = new TextViewColumn('descripcion', 'Descripcion', $this->dataset);
        $column->SetOrderable(true);
        $handler = new ShowTextBlobHandler($this->dataset, $this, 'actividadGrid_descripcion_handler_view', $column);
        GetApplication()->RegisterHTTPHandler($handler);
        return $result;
    }
    public function OpenAdvancedSearchByDefault()
    {
        return false;
    }
    protected function DoGetGridHeader()
    {
        return '';
    }
}
SetUpUserAuthorization(GetApplication());
try {
    $Page = new actividadPage("actividad.php", "actividad", GetCurrentUserGrantForDataSource("actividad"), 'UTF-8');
    $Page->SetShortCaption('Actividad');
    $Page->SetHeader(GetPagesHeader());
    $Page->SetFooter(GetPagesFooter());
    $Page->SetCaption('Actividad');
    $Page->SetRecordPermission(GetCurrentUserRecordPermissionsForDataSource("actividad"));
    GetApplication()->SetEnableLessRunTimeCompile(GetEnableLessFilesRunTimeCompilation());
    GetApplication()->SetCanUserChangeOwnPassword(!function_exists('CanUserChangeOwnPassword') || CanUserChangeOwnPassword());
    GetApplication()->SetMainPage($Page);
    GetApplication()->Run();
} catch (Exception $e) {
    ShowErrorPage($e->getMessage());
}
示例#21
0
 protected function CreateGrid()
 {
     $result = new Grid($this, $this->dataset, 'activosGrid');
     if ($this->GetSecurityInfo()->HasDeleteGrant()) {
         $result->SetAllowDeleteSelected(false);
     } else {
         $result->SetAllowDeleteSelected(false);
     }
     ApplyCommonPageSettings($this, $result);
     $result->SetUseImagesForActions(true);
     $result->SetUseFixedHeader(false);
     $result->SetShowLineNumbers(false);
     $result->SetHighlightRowAtHover(false);
     $result->SetWidth('');
     $this->CreateGridSearchControl($result);
     $this->CreateGridAdvancedSearchControl($result);
     $this->AddFieldColumns($result);
     $this->AddSingleRecordViewColumns($result);
     $this->AddEditColumns($result);
     $this->AddInsertColumns($result);
     $this->AddPrintColumns($result);
     $this->AddExportColumns($result);
     $this->AddOperationsColumns($result);
     $this->SetShowPageList(true);
     $this->SetHidePageListByDefault(false);
     $this->SetExportToExcelAvailable(true);
     $this->SetExportToWordAvailable(true);
     $this->SetExportToXmlAvailable(true);
     $this->SetExportToCsvAvailable(true);
     $this->SetExportToPdfAvailable(true);
     $this->SetPrinterFriendlyAvailable(true);
     $this->SetSimpleSearchAvailable(true);
     $this->SetAdvancedSearchAvailable(true);
     $this->SetFilterRowAvailable(true);
     $this->SetVisualEffectsEnabled(true);
     $this->SetShowTopPageNavigator(true);
     $this->SetShowBottomPageNavigator(true);
     //
     // Http Handlers
     //
     $pageView = new act_movimientosDetailView0activosPage($this, 'Act Movimientos', 'Act Movimientos', array('idActivo'), GetCurrentUserGrantForDataSource('activos.act_movimientos'), 'UTF-8', 20, 'act_movimientosDetailEdit0activos_handler');
     $pageView->SetRecordPermission(GetCurrentUserRecordPermissionsForDataSource('activos.act_movimientos'));
     $handler = new PageHTTPHandler('act_movimientosDetailView0activos_handler', $pageView);
     GetApplication()->RegisterHTTPHandler($handler);
     $pageEdit = new act_movimientosDetailEdit0activosPage($this, array('idActivo'), array('idActivos'), $this->GetForeingKeyFields(), $this->CreateMasterDetailRecordGridForact_movimientosDetailEdit0activosGrid(), $this->dataset, GetCurrentUserGrantForDataSource('activos.act_movimientos'), 'UTF-8');
     $pageEdit->SetRecordPermission(GetCurrentUserRecordPermissionsForDataSource('activos.act_movimientos'));
     $pageEdit->SetShortCaption('Act Movimientos');
     $pageEdit->SetHeader(GetPagesHeader());
     $pageEdit->SetFooter(GetPagesFooter());
     $pageEdit->SetCaption('Act Movimientos');
     $pageEdit->SetHttpHandlerName('act_movimientosDetailEdit0activos_handler');
     $handler = new PageHTTPHandler('act_movimientosDetailEdit0activos_handler', $pageEdit);
     GetApplication()->RegisterHTTPHandler($handler);
     //
     // View column for NombreAct field
     //
     $column = new TextViewColumn('NombreAct', 'NombreAct', $this->dataset);
     $column->SetOrderable(true);
     /* <inline edit column> */
     //
     // Edit column for NombreAct field
     //
     $editor = new TextAreaEdit('nombreact_edit', 50, 8);
     $editColumn = new CustomEditColumn('NombreAct', 'NombreAct', $editor, $this->dataset);
     $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $this->RenderText($editColumn->GetCaption())));
     $editor->GetValidatorCollection()->AddValidator($validator);
     $this->ApplyCommonColumnEditProperties($editColumn);
     $column->SetEditOperationColumn($editColumn);
     /* </inline edit column> */
     /* <inline insert column> */
     //
     // Edit column for NombreAct field
     //
     $editor = new TextAreaEdit('nombreact_edit', 50, 8);
     $editColumn = new CustomEditColumn('NombreAct', 'NombreAct', $editor, $this->dataset);
     $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $this->RenderText($editColumn->GetCaption())));
     $editor->GetValidatorCollection()->AddValidator($validator);
     $this->ApplyCommonColumnEditProperties($editColumn);
     $column->SetInsertOperationColumn($editColumn);
     /* </inline insert column> */
     $handler = new ShowTextBlobHandler($this->dataset, $this, 'NombreAct_handler', $column);
     GetApplication()->RegisterHTTPHandler($handler);
     //
     // View column for Marca field
     //
     $column = new TextViewColumn('Marca', 'Marca', $this->dataset);
     $column->SetOrderable(true);
     /* <inline edit column> */
     //
     // Edit column for Marca field
     //
     $editor = new TextEdit('marca_edit');
     $editor->SetSize(100);
     $editor->SetMaxLength(100);
     $editColumn = new CustomEditColumn('Marca', 'Marca', $editor, $this->dataset);
     $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $this->RenderText($editColumn->GetCaption())));
     $editor->GetValidatorCollection()->AddValidator($validator);
     $this->ApplyCommonColumnEditProperties($editColumn);
     $column->SetEditOperationColumn($editColumn);
     /* </inline edit column> */
     /* <inline insert column> */
     //
     // Edit column for Marca field
     //
     $editor = new TextEdit('marca_edit');
     $editor->SetSize(100);
     $editor->SetMaxLength(100);
     $editColumn = new CustomEditColumn('Marca', 'Marca', $editor, $this->dataset);
     $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $this->RenderText($editColumn->GetCaption())));
     $editor->GetValidatorCollection()->AddValidator($validator);
     $this->ApplyCommonColumnEditProperties($editColumn);
     $column->SetInsertOperationColumn($editColumn);
     /* </inline insert column> */
     $handler = new ShowTextBlobHandler($this->dataset, $this, 'Marca_handler', $column);
     GetApplication()->RegisterHTTPHandler($handler);
     //
     // View column for NombreAct field
     //
     $column = new TextViewColumn('NombreAct', 'NombreAct', $this->dataset);
     $column->SetOrderable(true);
     $handler = new ShowTextBlobHandler($this->dataset, $this, 'NombreAct_handler', $column);
     GetApplication()->RegisterHTTPHandler($handler);
     //
     // View column for Marca field
     //
     $column = new TextViewColumn('Marca', 'Marca', $this->dataset);
     $column->SetOrderable(true);
     $handler = new ShowTextBlobHandler($this->dataset, $this, 'Marca_handler', $column);
     GetApplication()->RegisterHTTPHandler($handler);
     return $result;
 }
示例#22
0
 public function GetPageList()
 {
     $currentPageCaption = $this->GetShortCaption();
     $result = new PageList($this);
     if (GetCurrentUserGrantForDataSource('act_movimientos')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Act Movimientos'), 'act_movimientos.php', $this->RenderText('Act Movimientos'), $currentPageCaption == $this->RenderText('Act Movimientos')));
     }
     if (GetCurrentUserGrantForDataSource('act_ordenes')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Act Ordenes'), 'act_ordenes.php', $this->RenderText('Act Ordenes'), $currentPageCaption == $this->RenderText('Act Ordenes')));
     }
     if (GetCurrentUserGrantForDataSource('activos')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Activos'), 'activos.php', $this->RenderText('Activos'), $currentPageCaption == $this->RenderText('Activos')));
     }
     if (GetCurrentUserGrantForDataSource('almacen')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Almacen'), 'almacen.php', $this->RenderText('Almacen'), $currentPageCaption == $this->RenderText('Almacen')));
     }
     if (GetCurrentUserGrantForDataSource('cartera')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Cartera'), 'cartera.php', $this->RenderText('Cartera'), $currentPageCaption == $this->RenderText('Cartera')));
     }
     if (GetCurrentUserGrantForDataSource('clasecuenta')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Clasecuenta'), 'clasecuenta.php', $this->RenderText('Clasecuenta'), $currentPageCaption == $this->RenderText('Clasecuenta')));
     }
     if (GetCurrentUserGrantForDataSource('clientes')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Clientes'), 'clientes.php', $this->RenderText('Clientes'), $currentPageCaption == $this->RenderText('Clientes')));
     }
     if (GetCurrentUserGrantForDataSource('cod_departamentos')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Cod Departamentos'), 'cod_departamentos.php', $this->RenderText('Cod Departamentos'), $currentPageCaption == $this->RenderText('Cod Departamentos')));
     }
     if (GetCurrentUserGrantForDataSource('cod_municipios_dptos')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Cod Municipios Dptos'), 'cod_municipios_dptos.php', $this->RenderText('Cod Municipios Dptos'), $currentPageCaption == $this->RenderText('Cod Municipios Dptos')));
     }
     if (GetCurrentUserGrantForDataSource('cod_paises')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Cod Paises'), 'cod_paises.php', $this->RenderText('Cod Paises'), $currentPageCaption == $this->RenderText('Cod Paises')));
     }
     if (GetCurrentUserGrantForDataSource('cuentas')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Cuentas'), 'cuentas.php', $this->RenderText('Cuentas'), $currentPageCaption == $this->RenderText('Cuentas')));
     }
     if (GetCurrentUserGrantForDataSource('cuentasfrecuentes')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Cuentasfrecuentes'), 'cuentasfrecuentes.php', $this->RenderText('Cuentasfrecuentes'), $currentPageCaption == $this->RenderText('Cuentasfrecuentes')));
     }
     if (GetCurrentUserGrantForDataSource('egresos')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Egresos'), 'egresos.php', $this->RenderText('Egresos'), $currentPageCaption == $this->RenderText('Egresos')));
     }
     if (GetCurrentUserGrantForDataSource('empresa')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Empresa'), 'empresa.php', $this->RenderText('Empresa'), $currentPageCaption == $this->RenderText('Empresa')));
     }
     if (GetCurrentUserGrantForDataSource('facturas')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Facturas'), 'facturas.php', $this->RenderText('Facturas'), $currentPageCaption == $this->RenderText('Facturas')));
     }
     if (GetCurrentUserGrantForDataSource('gupocuentas')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Gupocuentas'), 'gupocuentas.php', $this->RenderText('Gupocuentas'), $currentPageCaption == $this->RenderText('Gupocuentas')));
     }
     if (GetCurrentUserGrantForDataSource('impret')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Impret'), 'impret.php', $this->RenderText('Impret'), $currentPageCaption == $this->RenderText('Impret')));
     }
     if (GetCurrentUserGrantForDataSource('imv')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Imv'), 'imv.php', $this->RenderText('Imv'), $currentPageCaption == $this->RenderText('Imv')));
     }
     if (GetCurrentUserGrantForDataSource('kardexmercancias')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Kardexmercancias'), 'kardexmercancias.php', $this->RenderText('Kardexmercancias'), $currentPageCaption == $this->RenderText('Kardexmercancias')));
     }
     if (GetCurrentUserGrantForDataSource('librodiario')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Librodiario'), 'librodiario.php', $this->RenderText('Librodiario'), $currentPageCaption == $this->RenderText('Librodiario')));
     }
     if (GetCurrentUserGrantForDataSource('proveedores')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Proveedores'), 'proveedores.php', $this->RenderText('Proveedores'), $currentPageCaption == $this->RenderText('Proveedores')));
     }
     if (GetCurrentUserGrantForDataSource('servicio')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Servicio'), 'servicio.php', $this->RenderText('Servicio'), $currentPageCaption == $this->RenderText('Servicio')));
     }
     if (HasAdminPage() && GetApplication()->HasAdminGrantForCurrentUser()) {
         $result->AddPage(new PageLink($this->GetLocalizerCaptions()->GetMessageString('AdminPage'), 'phpgen_admin.php', $this->GetLocalizerCaptions()->GetMessageString('AdminPage'), false, true));
     }
     return $result;
 }
示例#23
0
        // View column for Application field
        //
        $column = new TextViewColumn('Application', 'Application', $this->dataset);
        $column->SetOrderable(true);
        $handler = new ShowTextBlobHandler($this->dataset, $this, 'dbo_procesosGrid_Application_handler_view', $column);
        GetApplication()->RegisterHTTPHandler($handler);
        return $result;
    }
    public function OpenAdvancedSearchByDefault()
    {
        return false;
    }
    protected function DoGetGridHeader()
    {
        return '';
    }
}
try {
    $Page = new dbo_procesosPage("Procesos.php", "dbo_procesos", GetCurrentUserGrantForDataSource("dbo.procesos"), 'UTF-8');
    $Page->SetShortCaption('Procesos');
    $Page->SetHeader(GetPagesHeader());
    $Page->SetFooter(GetPagesFooter());
    $Page->SetCaption('');
    $Page->SetRecordPermission(GetCurrentUserRecordPermissionsForDataSource("dbo.procesos"));
    GetApplication()->SetEnableLessRunTimeCompile(GetEnableLessFilesRunTimeCompilation());
    GetApplication()->SetCanUserChangeOwnPassword(!function_exists('CanUserChangeOwnPassword') || CanUserChangeOwnPassword());
    GetApplication()->SetMainPage($Page);
    GetApplication()->Run();
} catch (Exception $e) {
    ShowErrorPage($e->getMessage());
}
        //
        $column = new TextViewColumn('page_name', 'Page Name', $this->dataset);
        $column->SetOrderable(true);
        $handler = new ShowTextBlobHandler($this->dataset, $this, 'phpgen_user_permsGrid_page_name_handler_view', $column);
        GetApplication()->RegisterHTTPHandler($handler);
        return $result;
    }
    public function OpenAdvancedSearchByDefault()
    {
        return false;
    }
    protected function DoGetGridHeader()
    {
        return '';
    }
}
SetUpUserAuthorization(GetApplication());
try {
    $Page = new phpgen_user_permsPage("phpgen_user_perms.php", "phpgen_user_perms", GetCurrentUserGrantForDataSource("phpgen_user_perms"), 'UTF-8');
    $Page->SetShortCaption('Phpgen User Perms');
    $Page->SetHeader(GetPagesHeader());
    $Page->SetFooter(GetPagesFooter());
    $Page->SetCaption('Phpgen User Perms');
    $Page->SetRecordPermission(GetCurrentUserRecordPermissionsForDataSource("phpgen_user_perms"));
    GetApplication()->SetEnableLessRunTimeCompile(GetEnableLessFilesRunTimeCompilation());
    GetApplication()->SetCanUserChangeOwnPassword(!function_exists('CanUserChangeOwnPassword') || CanUserChangeOwnPassword());
    GetApplication()->SetMainPage($Page);
    GetApplication()->Run();
} catch (Exception $e) {
    ShowErrorPage($e->getMessage());
}
 protected function CreateGrid()
 {
     $result = new Grid($this, $this->dataset, 'programGrid');
     if ($this->GetSecurityInfo()->HasDeleteGrant()) {
         $result->SetAllowDeleteSelected(true);
     } else {
         $result->SetAllowDeleteSelected(false);
     }
     ApplyCommonPageSettings($this, $result);
     $result->SetUseImagesForActions(true);
     $result->SetUseFixedHeader(false);
     $result->SetShowLineNumbers(false);
     $result->SetHighlightRowAtHover(false);
     $result->SetWidth('');
     $this->CreateGridSearchControl($result);
     $this->CreateGridAdvancedSearchControl($result);
     $this->AddOperationsColumns($result);
     $this->AddFieldColumns($result);
     $this->AddSingleRecordViewColumns($result);
     $this->AddEditColumns($result);
     $this->AddInsertColumns($result);
     $this->AddPrintColumns($result);
     $this->AddExportColumns($result);
     $this->SetShowPageList(true);
     $this->SetHidePageListByDefault(false);
     $this->SetExportToExcelAvailable(true);
     $this->SetExportToWordAvailable(true);
     $this->SetExportToXmlAvailable(false);
     $this->SetExportToCsvAvailable(true);
     $this->SetExportToPdfAvailable(true);
     $this->SetPrinterFriendlyAvailable(true);
     $this->SetSimpleSearchAvailable(true);
     $this->SetAdvancedSearchAvailable(true);
     $this->SetFilterRowAvailable(true);
     $this->SetVisualEffectsEnabled(true);
     $this->SetShowTopPageNavigator(true);
     $this->SetShowBottomPageNavigator(true);
     //
     // Http Handlers
     //
     $pageView = new projectDetailView0programPage($this, 'Projects', 'Projects', array('programm_id'), GetCurrentUserGrantForDataSource('program.project'), 'UTF-8', 20, 'projectDetailEdit0program_handler');
     $pageView->SetRecordPermission(GetCurrentUserRecordPermissionsForDataSource('program.project'));
     $handler = new PageHTTPHandler('projectDetailView0program_handler', $pageView);
     GetApplication()->RegisterHTTPHandler($handler);
     $pageEdit = new projectDetailEdit0programPage($this, array('programm_id'), array('program_id'), $this->GetForeingKeyFields(), $this->CreateMasterDetailRecordGridForprojectDetailEdit0programGrid(), $this->dataset, GetCurrentUserGrantForDataSource('program.project'), 'UTF-8');
     $pageEdit->SetRecordPermission(GetCurrentUserRecordPermissionsForDataSource('program.project'));
     $pageEdit->SetShortCaption('Projects');
     $pageEdit->SetHeader(GetPagesHeader());
     $pageEdit->SetFooter(GetPagesFooter());
     $pageEdit->SetCaption('Projects');
     $pageEdit->SetHttpHandlerName('projectDetailEdit0program_handler');
     $handler = new PageHTTPHandler('projectDetailEdit0program_handler', $pageEdit);
     GetApplication()->RegisterHTTPHandler($handler);
     //
     // View column for description field
     //
     $column = new TextViewColumn('description', 'Description', $this->dataset);
     $column->SetOrderable(true);
     $handler = new ShowTextBlobHandler($this->dataset, $this, 'programGrid_description_handler_list', $column);
     GetApplication()->RegisterHTTPHandler($handler);
     //
     // View column for username field
     //
     $column = new TextViewColumn('lead_username', 'Lead', $this->dataset);
     $column->SetOrderable(true);
     $handler = new ShowTextBlobHandler($this->dataset, $this, 'programGrid_username_handler_list', $column);
     GetApplication()->RegisterHTTPHandler($handler);
     //
     // View column for description field
     //
     $column = new TextViewColumn('description', 'Description', $this->dataset);
     $column->SetOrderable(true);
     $handler = new ShowTextBlobHandler($this->dataset, $this, 'programGrid_description_handler_view', $column);
     GetApplication()->RegisterHTTPHandler($handler);
     //
     // View column for username field
     //
     $column = new TextViewColumn('lead_username', 'Lead', $this->dataset);
     $column->SetOrderable(true);
     $handler = new ShowTextBlobHandler($this->dataset, $this, 'programGrid_username_handler_view', $column);
     GetApplication()->RegisterHTTPHandler($handler);
     return $result;
 }
示例#26
0
 public function GetPageList()
 {
     $currentPageCaption = $this->GetShortCaption();
     $result = new PageList($this);
     $result->AddGroup($this->RenderText('Maestras'));
     $result->AddGroup($this->RenderText('Paramétricas'));
     if (GetCurrentUserGrantForDataSource('public.sga_accion')->HasViewGrant())
         $result->AddPage(new PageLink($this->RenderText('Acción (Espacio / Bien)'), 'accion.php', $this->RenderText('Acción'), $currentPageCaption == $this->RenderText('Acción (Espacio / Bien)'), false, $this->RenderText('Maestras')));
     if (GetCurrentUserGrantForDataSource('public.sga_tarea_plan')->HasViewGrant())
         $result->AddPage(new PageLink($this->RenderText('Tarea Planificada'), 'tarea_plan.php', $this->RenderText('Tarea Planificada'), $currentPageCaption == $this->RenderText('Tarea Planificada'), false, $this->RenderText('Maestras')));
     if (GetCurrentUserGrantForDataSource('public.sga_espacio')->HasViewGrant())
         $result->AddPage(new PageLink($this->RenderText('Espacio'), 'espacio.php', $this->RenderText('Espacio'), $currentPageCaption == $this->RenderText('Espacio'), false, $this->RenderText('Maestras')));
     if (GetCurrentUserGrantForDataSource('public.sga_bien')->HasViewGrant())
         $result->AddPage(new PageLink($this->RenderText('Bien'), 'bien.php', $this->RenderText('Bien'), $currentPageCaption == $this->RenderText('Bien'), false, $this->RenderText('Maestras')));
     if (GetCurrentUserGrantForDataSource('public.sga_metodologia')->HasViewGrant())
         $result->AddPage(new PageLink($this->RenderText('Metodologia de Acción'), 'metodologia.php', $this->RenderText('Metodologia'), $currentPageCaption == $this->RenderText('Metodologia de Acción'), false, $this->RenderText('Paramétricas')));
     if (GetCurrentUserGrantForDataSource('public.sga_tipo_accion')->HasViewGrant())
         $result->AddPage(new PageLink($this->RenderText('Tipo Accion'), 'tipo_accion.php', $this->RenderText('Tipo Accion'), $currentPageCaption == $this->RenderText('Tipo Accion'), false, $this->RenderText('Paramétricas')));
     if (GetCurrentUserGrantForDataSource('public.sga_tipo_bien')->HasViewGrant())
         $result->AddPage(new PageLink($this->RenderText('Tipo Bien'), 'tipo_bien.php', $this->RenderText('Tipo Bien'), $currentPageCaption == $this->RenderText('Tipo Bien'), false, $this->RenderText('Paramétricas')));
     if (GetCurrentUserGrantForDataSource('public.sga_periodicidad')->HasViewGrant())
         $result->AddPage(new PageLink($this->RenderText('Periodicidad'), 'periodicidad.php', $this->RenderText('Periodicidad'), $currentPageCaption == $this->RenderText('Periodicidad'), false, $this->RenderText('Paramétricas')));
     if (GetCurrentUserGrantForDataSource('public.sga_planta')->HasViewGrant())
         $result->AddPage(new PageLink($this->RenderText('Planta'), 'planta.php', $this->RenderText('Planta'), $currentPageCaption == $this->RenderText('Planta'), false, $this->RenderText('Paramétricas')));
     if (GetCurrentUserGrantForDataSource('public.sga_origen')->HasViewGrant())
         $result->AddPage(new PageLink($this->RenderText('Origen'), 'origen.php', $this->RenderText('Origen'), $currentPageCaption == $this->RenderText('Origen'), false, $this->RenderText('Paramétricas')));
     if (GetCurrentUserGrantForDataSource('public.sga_tipo_espacio')->HasViewGrant())
         $result->AddPage(new PageLink($this->RenderText('Tipo Espacio'), 'tipo_espacio.php', $this->RenderText('Tipo Espacio'), $currentPageCaption == $this->RenderText('Tipo Espacio'), false, $this->RenderText('Paramétricas')));
     
     if ( HasAdminPage() && GetApplication()->HasAdminGrantForCurrentUser() ) {
       $result->AddGroup('Admin area');
       $result->AddPage(new PageLink($this->GetLocalizerCaptions()->GetMessageString('AdminPage'), 'phpgen_admin.php', $this->GetLocalizerCaptions()->GetMessageString('AdminPage'), false, false, 'Admin area'));
     }
     return $result;
 }
示例#27
0
 private function GetUrlToRedirectAfterLogin()
 {
     if (GetApplication()->GetSuperGlobals()->IsGetValueSet('redirect')) {
         return GetApplication()->GetSuperGlobals()->GetGetValue('redirect');
     }
     $pageInfos = GetPageInfos();
     foreach ($pageInfos as $pageInfo) {
         if (GetCurrentUserGrantForDataSource($pageInfo['name'])->HasViewGrant()) {
             return $pageInfo['filename'];
         }
     }
     return $this->urlToRedirectAfterLogin;
 }
 public function GetPageList()
 {
     $currentPageCaption = $this->GetShortCaption();
     $result = new PageList($this);
     $result->AddGroup($this->RenderText('Default'));
     if (GetCurrentUserGrantForDataSource('Dashboard')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Dashboard'), 'Dashboard.php', $this->RenderText('Dashboard'), $currentPageCaption == $this->RenderText('Dashboard'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('program')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Project Type'), 'program.php', $this->RenderText('Project Type'), $currentPageCaption == $this->RenderText('Project Type'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('project')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('View all Projects'), 'project.php', $this->RenderText('Project'), $currentPageCaption == $this->RenderText('View all Projects'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('task')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Tasks - Time Tracking'), 'task.php', $this->RenderText('Tasks - Time Tracking'), $currentPageCaption == $this->RenderText('Tasks - Time Tracking'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('Hours per Project by user')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Hours per Project'), 'Hours per project by user.php', $this->RenderText('Hours per project'), $currentPageCaption == $this->RenderText('Hours per Project'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('staff')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Staff'), 'staff.php', $this->RenderText('Staff'), $currentPageCaption == $this->RenderText('Staff'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('department')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Department'), 'department.php', $this->RenderText('Department'), $currentPageCaption == $this->RenderText('Department'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('Priority')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Priority'), 'Priority.php', $this->RenderText('Priority'), $currentPageCaption == $this->RenderText('Priority'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('task_names')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Task Names'), 'task_names.php', $this->RenderText('Task Names'), $currentPageCaption == $this->RenderText('Task Names'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('Pay Period')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Pay Period'), 'Pay_Period.php', $this->RenderText('Pay Period'), $currentPageCaption == $this->RenderText('Pay Period'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('department_projects')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Department Projects'), 'department_projects.php', $this->RenderText('Department Projects'), $currentPageCaption == $this->RenderText('Department Projects'), false, $this->RenderText('Default')));
     }
     if (HasAdminPage() && GetApplication()->HasAdminGrantForCurrentUser()) {
         $result->AddGroup('Admin area');
         $result->AddPage(new PageLink($this->GetLocalizerCaptions()->GetMessageString('AdminPage'), 'app_admin.php', $this->GetLocalizerCaptions()->GetMessageString('AdminPage'), false, false, 'Admin area'));
     }
     return $result;
 }
示例#29
0
        //
        $column = new TextViewColumn('ruta', 'Ruta', $this->dataset);
        $column->SetOrderable(true);
        $handler = new ShowTextBlobHandler($this->dataset, $this, 'objetoGrid_ruta_handler_view', $column);
        GetApplication()->RegisterHTTPHandler($handler);
        return $result;
    }
    public function OpenAdvancedSearchByDefault()
    {
        return false;
    }
    protected function DoGetGridHeader()
    {
        return '';
    }
}
SetUpUserAuthorization(GetApplication());
try {
    $Page = new objetoPage("objeto.php", "objeto", GetCurrentUserGrantForDataSource("objeto"), 'UTF-8');
    $Page->SetShortCaption('Objetos a Aplicar');
    $Page->SetHeader(GetPagesHeader());
    $Page->SetFooter(GetPagesFooter());
    $Page->SetCaption('Objetos a Aplicar');
    $Page->SetRecordPermission(GetCurrentUserRecordPermissionsForDataSource("objeto"));
    GetApplication()->SetEnableLessRunTimeCompile(GetEnableLessFilesRunTimeCompilation());
    GetApplication()->SetCanUserChangeOwnPassword(!function_exists('CanUserChangeOwnPassword') || CanUserChangeOwnPassword());
    GetApplication()->SetMainPage($Page);
    GetApplication()->Run();
} catch (Exception $e) {
    ShowErrorPage($e->getMessage());
}