Commit c52f062a authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Corrections des scripts des vues apogée.

parent 92425222
Loading
Loading
Loading
Loading
Loading
+58 −49
Original line number Diff line number Diff line
@@ -506,17 +506,21 @@ select distinct
/

create view SYGAL_ROLE_TR as
select 'A', 'A' from dual union
  select 'B', 'B' from dual union
  select 'C', 'C' from dual union
  select 'D', 'D' from dual union
  select 'K', 'K' from dual union
  select 'M', 'M' from dual union
  select 'P', 'P' from dual union
  select 'R', 'R' from dual
  with tmp(FROM_COD_ROJ, TO_COD_ROJ) as (
    select 'A', 'A' from dual union -- A : Membre absent
    select 'B', 'B' from dual union -- B : Co-encadrant
    select 'C', 'C' from dual union -- C : Chef de laboratoire
    select 'D', 'D' from dual union -- D : Directeur de thèse
    select 'K', 'K' from dual union -- K : Co-directeur de thèse
    select 'M', 'M' from dual union -- M : Membre du jury
    select 'P', 'P' from dual union -- P : Président du jury
    select 'R', 'R' from dual       -- R : Rapporteur du jury
    )
    select * from tmp
/

create view SYGAL_ROLE_NOMENC as
  with tmp(COD_ROJ, LIC_ROJ, LIB_ROJ) as (
    select 'A', 'Absent',     'Membre absent'         from dual union
    select 'B', 'Co-encadr',  'Co-encadrant'          from dual union
    select 'C', 'Chef Labo',  'Chef de laboratoire'   from dual union
@@ -525,6 +529,8 @@ select 'A', 'Absent', 'Membre absent' from dual union
    select 'M', 'Membre',     'Membre du jury'        from dual union
    select 'P', 'Président',  'Président du jury'     from dual union
    select 'R', 'Rapporteur', 'Rapporteur du jury'    from dual
  )
  select * from tmp
/

create view SYGAL_ROLE_JURY as
@@ -679,6 +685,7 @@ with inscription_admin as (
/

create view SYGAL_ORIGINE_FINANCEMENT as
  with tmp(ID, SOURCE_ID, COD_OFI, LIC_OFI, LIB_OFI) as (
    select '10', 'apogee', '10', 'SALARIE',     'Etudiant salarié'                         from dual union all
    select '11', 'apogee', '11', 'SANS FIN',    'Sans financement'                         from dual union all
    select '13', 'apogee', '13', 'DOT EPSCP',   'Dotation des EPSCP'                       from dual union all
@@ -712,6 +719,8 @@ select '10', 'apogee', '10', 'SALARIE', 'Etudiant salarié'
    select '41', 'apogee', '41', 'ENT ETR',     'Entreprise Etrangère'                     from dual union all
    select '42', 'apogee', '42', 'ORG FC',      'Financements Organismes FC'               from dual union all
    select '43', 'apogee', '43', 'ORG INTER',   'Organismes Internationaux'                from dual
  )
  select * from tmp
/

create view SYGAL_TITRE_ACCES as
+11 −8
Original line number Diff line number Diff line
@@ -51,6 +51,7 @@ create or replace view SYGAL_VARIABLE_MANU as
-- Vue traduisant les codes rôles en usage dans votre établissement vers les codes compris par SyGAL.
--
create or replace view SYGAL_ROLE_TR as
  with tmp(FROM_COD_ROJ, TO_COD_ROJ) as (
      select 'A', 'A' from dual union -- A : Membre absent
      select 'B', 'B' from dual union -- B : Co-encadrant
      select 'C', 'C' from dual union -- C : Chef de laboratoire
@@ -59,4 +60,6 @@ create or replace view SYGAL_ROLE_TR as
      select 'M', 'M' from dual union -- M : Membre du jury
      select 'P', 'P' from dual union -- P : Président du jury
      select 'R', 'R' from dual       -- R : Rapporteur du jury
    )
    select * from tmp
/