Changeset 5307


Ignore:
Timestamp:
01/04/12 14:57:16 (12 years ago)
Author:
pereira.jair
Message:

Ticket #2416 - Inclusao da nova ferramenta de relatorios do workflow.

Location:
trunk/workflow
Files:
172 added
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/workflow/inc/hook_sidebox_menu.inc.php

    r3255 r5307  
    5151                )); 
    5252 
    53         if ($isWorkflowAdmin) 
     53        if ($isWorkflowAdmin) {  
    5454                $file['Access Control List']= $GLOBALS['phpgw']->link('/index.php','menuaction=workflow.ui_adminaccess.form'); 
     55                $file['Reports']= $GLOBALS['phpgw']->link('/index.php','menuaction=workflow.reports.form');      
     56        } 
    5557 
    5658        /* every user can access the preference area */ 
  • trunk/workflow/inc/local/classes/class.wf_location.php

    r3167 r5307  
    161161                $result = $this->db->query($sql, array($state_id)); 
    162162                $output = array(); 
     163                if (is_object($result)) { 
    163164                while ($row = $result->fetchRow()) 
    164165                        $output[] = $row; 
    165166 
    166167                $this->citiesFromState[$state_id] = $output; 
     168                } 
    167169                return $output; 
    168170        } 
  • trunk/workflow/lib/factory/ProcessFactory.php

    r3167 r5307  
    7171                $this->registerFileInfo('wf_util', 'class.wf_util.php', 'inc/local/classes'); 
    7272                $this->registerFileInfo('wf_workitem', 'class.wf_workitem.php', 'inc/local/classes'); 
     73                $this->registerFileInfo('wf_report', 'class.wf_report.php', 'inc/local/classes'); 
    7374 
    7475                /* ok. no more instances of this class.. */ 
  • trunk/workflow/setup/phpgw_en.lang

    r1710 r5307  
    632632organization chart      workflow        en      Organization chart 
    633633access control list     workflow        en      Access control list 
     634reports workflow        en      Reports 
    634635execute activities in debug mode        workflow        en      Execute activities in debug mode 
    635636there are no external applications      workflow        en      There are no external applications 
  • trunk/workflow/setup/phpgw_pt-br.lang

    r1710 r5307  
    632632organization chart      workflow        pt-br   Organograma 
    633633access control list     workflow        pt-br   Lista de Controle de Acesso 
     634reports workflow        pt-br   Relatórios 
    634635execute activities in debug mode        workflow        pt-br   Executar atividade em modo de depuração 
    635636there are no external applications      workflow        pt-br   Não existem aplicações externas 
  • trunk/workflow/setup/tables_update.inc.php

    r4186 r5307  
    210210                return $GLOBALS['setup_info']['workflow']['currentver']; 
    211211        } 
     212         
     213        $test[] = '2.4.000'; 
     214        function workflow_upgrade2_4_000() 
     215        { 
     216                #updating the current version 
     217                 
     218                $GLOBALS['phpgw']->ADOdb->query("INSERT into phpgw_lang values ('en','workflow','Reports','Reports') "); 
     219                 
     220                $GLOBALS['phpgw']->ADOdb->query("INSERT into phpgw_lang values ('pt-br','workflow','Reports','Relatórios') ");   
     221                 
     222                $workflowHostInfo = extractDatabaseParameters(); 
     223 
     224                        /* connect to workflow database */ 
     225                        $workflowDB = $GLOBALS['phpgw']->ADOdb; 
     226                        if ($workflowDB->connect($workflowHostInfo['host'], $workflowHostInfo['user'], $workflowHostInfo['password'], 'workflow')) 
     227                        { 
     228                                /* creating table substitution */ 
     229                                $workflowDB->query('CREATE SCHEMA listagem AUTHORIZATION postgres; GRANT ALL ON SCHEMA listagem TO postgres; GRANT ALL ON SCHEMA listagem TO admin_workflow;'); 
     230                 
     231                        $workflowDB->query("CREATE TABLE listagem.listagem 
     232                                                        ( 
     233                                                          lstoid serial NOT NULL, 
     234                                                          lstversao integer, 
     235                                                          lstidlistagem text NOT NULL, 
     236                                                          lstdescricao text, 
     237                                                          lstnome text NOT NULL, 
     238                                                          lsttitulo text NOT NULL, 
     239                                                          lstsql text, 
     240                                                          lstexibe_header boolean, 
     241                                                          lstexibe_totalizadores boolean, 
     242                                                          lstexibe_subtotais boolean, 
     243                                                          lstexibe_qtdregistros boolean, 
     244                                                          lstexibe_checkbox boolean, 
     245                                                          lstexibe_csv boolean, 
     246                                                          lstexibe_legendatopo boolean, 
     247                                                          lstexibe_legendarodape boolean, 
     248                                                          lstexibe_titagrupamento boolean, 
     249                                                          lstexibe_agrupamento_alfabetico boolean, 
     250                                                          lstagrupamento_campo text, 
     251                                                          lstagrupamento_titulo text, 
     252                                                          lstmsg_totalizador text DEFAULT 'TOTAL:'::text, 
     253                                                          lstmsg_subtotalizador text DEFAULT 'SUB-TOTAL:'::text, 
     254                                                          lstmsg_registrosencontrados text DEFAULT 'registro(s) encontrado(s).'::text, 
     255                                                          lstmsg_nenhumresultado text DEFAULT 'Nenhum resultado encontrado.'::text, 
     256                                                          lstexclusao timestamp without time zone, 
     257                                                          lstexibe_resultados boolean DEFAULT true, 
     258                                                          CONSTRAINT lstoid_pkey PRIMARY KEY (lstoid) 
     259                                                        ) 
     260                                                        WITHOUT OIDS; 
     261                                                        ALTER TABLE listagem.listagem OWNER TO postgres; 
     262                                                        GRANT ALL ON TABLE listagem.listagem TO postgres; 
     263                                                        GRANT ALL ON TABLE listagem.listagem TO admin_workflow;"); 
     264 
     265 
     266                        $workflowDB->query("CREATE TABLE listagem.listagem_coluna 
     267                                                        ( 
     268                                                          lslcoid serial NOT NULL, 
     269                                                          lslclstoid integer NOT NULL, 
     270                                                          lslcidcoluna text NOT NULL, 
     271                                                          lslcordem integer, 
     272                                                          lslctipo text, 
     273                                                          lslctitulo text, 
     274                                                          lslchtml text, 
     275                                                          lslcalign character varying(10), 
     276                                                          lslcwidth character varying(10), 
     277                                                          lslcnowrap boolean, 
     278                                                          lslcvisivel boolean, 
     279                                                          lslcexibe_csv boolean, 
     280                                                          lslccalculada boolean, 
     281                                                          lslccheckbox boolean, 
     282                                                          lslclink text, 
     283                                                          lslclink_blank boolean, 
     284                                                          lslclink_condicao text DEFAULT '1'::text, 
     285                                                          lslctotalizador_condicao text DEFAULT '1'::text, 
     286                                                          lslcsubtotalizador_condicao text DEFAULT '1'::text, 
     287                                                          lslccheckbox_condicao text DEFAULT '1'::text, 
     288                                                          CONSTRAINT lslcoid_pkey PRIMARY KEY (lslcoid), 
     289                                                          CONSTRAINT listagem_coluna_lslclstoid_fkey FOREIGN KEY (lslclstoid) 
     290                                                              REFERENCES listagem.listagem (lstoid) MATCH SIMPLE 
     291                                                              ON UPDATE NO ACTION ON DELETE NO ACTION 
     292                                                        ) 
     293                                                        WITHOUT OIDS; 
     294                                                        ALTER TABLE listagem.listagem_coluna OWNER TO postgres; 
     295                                                        GRANT ALL ON TABLE listagem.listagem_coluna TO postgres; 
     296                                                        GRANT ALL ON TABLE listagem.listagem_coluna TO admin_workflow;"); 
     297 
     298                         
     299                        $workflowDB->query("CREATE TABLE listagem.listagem_indicador 
     300                                                                ( 
     301                                                                  lsioid serial NOT NULL, 
     302                                                                  lsilstoid integer NOT NULL, 
     303                                                                  lsiidindicador text, 
     304                                                                  lsitipo character(1), 
     305                                                                  lsiimagem text, 
     306                                                                  lsilegenda text, 
     307                                                                  lsilegenda_csv text, 
     308                                                                  lsicondicao text DEFAULT '1'::text, 
     309                                                                  CONSTRAINT lsioid_pkey PRIMARY KEY (lsioid), 
     310                                                                  CONSTRAINT listagem_indicador_lsilstoid_fkey FOREIGN KEY (lsilstoid) 
     311                                                                      REFERENCES listagem.listagem (lstoid) MATCH SIMPLE 
     312                                                                      ON UPDATE NO ACTION ON DELETE NO ACTION 
     313                                                                ) 
     314                                                                WITHOUT OIDS; 
     315                                                                ALTER TABLE listagem.listagem_indicador OWNER TO postgres; 
     316                                                                GRANT ALL ON TABLE listagem.listagem_indicador TO postgres; 
     317                                                                GRANT ALL ON TABLE listagem.listagem_indicador TO admin_workflow;"); 
     318 
     319                         
     320                        $workflowDB->query("CREATE TABLE listagem.listagem_parametro 
     321                                                                ( 
     322                                                                  lspoid serial NOT NULL, 
     323                                                                  lsplstoid integer NOT NULL, 
     324                                                                  lspidparametro text, 
     325                                                                  lsptitulo text, 
     326                                                                  lsptipo text, 
     327                                                                  lspvalor_padrao text, 
     328                                                                  lspobrigatorio boolean, 
     329                                                                  CONSTRAINT lspoid_pkey PRIMARY KEY (lspoid), 
     330                                                                  CONSTRAINT listagem_parametro_lsplstoid_fkey FOREIGN KEY (lsplstoid) 
     331                                                                      REFERENCES listagem.listagem (lstoid) MATCH SIMPLE 
     332                                                                      ON UPDATE NO ACTION ON DELETE NO ACTION 
     333                                                                ) 
     334                                                                WITHOUT OIDS; 
     335                                                                ALTER TABLE listagem.listagem_parametro OWNER TO postgres; 
     336                                                                GRANT ALL ON TABLE listagem.listagem_parametro TO postgres; 
     337                                                                GRANT ALL ON TABLE listagem.listagem_parametro TO admin_workflow;"); 
     338                                                                 
     339                                                                 
     340                                                                 
     341                         
     342                                $workflowDB->query("CREATE SEQUENCE listagem.listagem_coluna_lslcoid_seq 
     343                                  INCREMENT 1 
     344                                  MINVALUE 1 
     345                                  MAXVALUE 9223372036854775807 
     346                                  START 1 
     347                                  CACHE 1; 
     348                                ALTER TABLE listagem.listagem_coluna_lslcoid_seq OWNER TO postgres; 
     349                                 
     350                                 
     351                                CREATE SEQUENCE listagem.listagem_indicador_lsioid_seq 
     352                                  INCREMENT 1 
     353                                  MINVALUE 1 
     354                                  MAXVALUE 9223372036854775807 
     355                                  START 1 
     356                                  CACHE 1; 
     357                                ALTER TABLE listagem.listagem_indicador_lsioid_seq OWNER TO postgres; 
     358                                 
     359                                 
     360                                CREATE SEQUENCE listagem.listagem_lstoid_seq 
     361                                  INCREMENT 1 
     362                                  MINVALUE 1 
     363                                  MAXVALUE 9223372036854775807 
     364                                  START 1 
     365                                  CACHE 1; 
     366                                ALTER TABLE listagem.listagem_lstoid_seq OWNER TO postgres; 
     367                                 
     368                                 
     369                                CREATE SEQUENCE listagem.listagem_parametro_lspoid_seq 
     370                                  INCREMENT 1 
     371                                  MINVALUE 1 
     372                                  MAXVALUE 9223372036854775807 
     373                                  START 1 
     374                                  CACHE 1; 
     375                                ALTER TABLE listagem.listagem_parametro_lspoid_seq OWNER TO postgres;"); 
     376 
     377 
     378                        } 
     379                 
     380 
     381                $GLOBALS['setup_info']['workflow']['currentver'] = '2.4.0'; 
     382                return $GLOBALS['setup_info']['workflow']['currentver']; 
     383        } 
     384         
     385         
    212386?> 
Note: See TracChangeset for help on using the changeset viewer.