Loading data/sql/apogee/01-vues-apogee-communes.sql +58 −49 Original line number Diff line number Diff line Loading @@ -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 Loading @@ -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 Loading Loading @@ -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 Loading Loading @@ -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 Loading data/sql/apogee/02-vues-apogee-etab.sql +11 −8 Original line number Diff line number Diff line Loading @@ -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 Loading @@ -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 / Loading
data/sql/apogee/01-vues-apogee-communes.sql +58 −49 Original line number Diff line number Diff line Loading @@ -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 Loading @@ -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 Loading Loading @@ -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 Loading Loading @@ -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 Loading
data/sql/apogee/02-vues-apogee-etab.sql +11 −8 Original line number Diff line number Diff line Loading @@ -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 Loading @@ -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 /