Loading config/autoload/unicaen-db-import.global.php +136 −118 Changes for config/autoload/unicaen-db-import.global.php: 136 added lines, 118 removed lines. Original line number Diff line number Diff line Loading @@ -79,7 +79,7 @@ return [ 'select' => 'SELECT * FROM V_PREECOG_AGENT', 'connection' => 'octopus', 'source_code_column' => 'C_INDIVIDU', // 'columns' => ['C_SRC_INDIVIDU', 'C_SOURCE', 'PRENOM', 'NOM_USAGE'], 'columns' => ['PRENOM', 'NOM_USAGE'], ], // 'intermediate_table' => 'src_agent', 'destination' => [ Loading @@ -87,35 +87,53 @@ return [ 'table' => 'agent', 'connection' => 'default', 'source_code_column' => 'c_individu', // 'columns' => ['c_src_individu', 'c_source', 'prenom', 'nom_usage'], 'columns' => ['prenom', 'nom_usage'], ], ], [ 'name' => 'Import_AFFECTATION', 'source' => [ 'name' => 'Affectations des agents', 'select' => 'SELECT * FROM V_PREECOG_AFFECTATION', 'connection' => 'octopus', 'source_code_column' => 'AFFECTATION_ID', 'columns' => ['INDIVIDU_ID', 'STRUCTURE_ID', 'DATE_DEBUT', 'DATE_FIN', 'ID_ORIG', 'T_PRINCIPALE'], ], // 'intermediate_table' => 'src_agent', 'destination' => [ 'name' => 'Affectation des agents gérés par la DRH', 'table' => 'agent_affectation', 'connection' => 'default', 'source_code_column' => 'affectation_id', 'columns' => ['individu_id', 'structure_id', 'date_debut', 'date_fin', 'id_orig', 't_principale'], ], ], [ 'name' => 'Import_AGENT_GRADE', 'source' => [ 'name' => 'Grades liés aux agents de PreeCog', 'select' => 'SELECT * FROM V_PREECOG_AGENT_GRADE', 'select' => 'SELECT ID, ID_ORIG, AGENT_ID, STRUCTURE_ID, CORPS_ID, GRADE_ID, BAP_ID, D_DEBUT, D_FIN FROM V_PREECOG_GRADE', 'connection' => 'octopus', 'source_code_column' => 'AG_ID', 'columns' => ['AGENT_ID', 'STRUCTURE_ID', 'CORPS_ID', 'GRADE_ID', 'BAP_ID', 'DATE_DEBUT', 'DATE_FIN'], 'source_code_column' => 'ID', //'columns' => ['AGENT_ID', 'STRUCTURE_ID', 'CORPS_ID', 'GRADE_ID', 'BAP_ID', 'DATE_DEBUT', 'DATE_FIN'], ], 'intermediate_table' => 'src_agent_grade', 'destination' => [ 'name' => 'Grade des agents gérés par la DRH', 'table' => 'agent_grade', 'connection' => 'default', 'source_code_column' => 'ag_id', 'columns' => ['agent_id', 'structure_id', 'corps_id', 'grade_id', 'bap_id', 'date_debut', 'date_fin'], 'source_code_column' => 'id', 'columns' => ['id_orig', 'agent_id', 'structure_id', 'corps_id', 'grade_id', 'bap_id', 'd_debut', 'd_fin'], ], ], [ 'name' => 'Import_STATUT', 'source' => [ 'name' => 'Statut des agents geres par la DRH', 'select' => 'SELECT * FROM V_PREECOG_STATUT', 'select' => 'SELECT ID, ID_ORIG, C_SOURCE, INDIVIDU_ID, STRUCTURE_ID, D_DEBUT, D_FIN, T_TITULAIRE, T_CDI, T_CDD, T_VACATAIRE, T_ENSEIGNANT, T_ADMINISTRATIF, T_CHERCHEUR, T_ETUDIANT, T_AUDITEUR_LIBRE, T_DOCTORANT, T_DETACHE_IN, T_DETACHE_OUT, T_DISPO, T_HEBERGE, T_EMERITE, T_RETRAITE FROM V_PREECOG_STATUT', 'connection' => 'octopus', 'source_code_column' => 'ID', 'columns' => ['ID_ORIG', 'C_SOURCE', 'INDIVIDU_ID', 'STRUCTURE_ID', 'D_DEBUT', 'D_FIN', 'T_TITULAIRE', 'T_CDI', 'T_CDD', 'T_VACATAIRE', 'T_ENSEIGNANT', 'T_ADMINISTRATIF', 'T_CHERCHEUR', 'T_ETUDIANT', 'T_AUDITEUR_LIBRE', 'T_DOCTORANT', 'T_DETACHE_IN', 'T_DETACHE_OUT', 'T_DISPO', 'T_HEBERGE', 'T_EMERITE', 'T_RETRAITE'], // 'columns' => ['ID_ORIG', 'C_SOURCE', 'INDIVIDU_ID', 'STRUCTURE_ID', 'D_DEBUT', 'D_FIN', 'T_TITULAIRE', 'T_CDI', 'T_CDD', 'T_VACATAIRE', 'T_ENSEIGNANT', 'T_ADMINISTRATIF', 'T_CHERCHEUR', 'T_ETUDIANT', 'T_AUDITEUR_LIBRE', 'T_DOCTORANT', 'T_DETACHE_IN', 'T_DETACHE_OUT', 'T_DISPO', 'T_HEBERGE', 'T_EMERITE', 'T_RETRAITE', 'T_CLD', 'T_CLM'], ], 'intermediate_table' => 'src_agent_statut', 'destination' => [ Loading @@ -123,121 +141,121 @@ return [ 'table' => 'agent_statut', 'connection' => 'default', 'source_code_column' => 'id', 'columns' => ['id_orig', 'c_source', 'individu_id', 'structure_id', 'd_debut', 'd_fin', 't_titulaire', 't_cdi', 't_cdd', 't_vacataire', 't_enseignant', 't_administratif', 't_chercheur', 't_etudiant', 't_auditeur_libre', 't_doctorant', 't_detache_in', 't_detache_out', 't_dispo', 't_heberge', 't_emerite', 't_retraite'], 'columns' => ['id_orig', 'c_source', 'individu_id', 'structure_id', 'd_debut', 'd_fin', 't_titulaire', 't_cdi', 't_cdd', 't_vacataire', 't_enseignant', 't_administratif', 't_chercheur', 't_etudiant', 't_auditeur_libre', 't_doctorant', 't_detache_in', 't_detache_out', 't_dispo', 't_heberge', 't_emerite', 't_retraite', 't_cld', 't_clm'], 'columns_to_char' => [ 'd_debut' => "TO_CHAR(%s,'YYYY-MM-DD')", 'd_fin' => "TO_CHAR(%s,'YYYY-MM-DD')", ], ], ], [ 'name' => 'Import_STRUCTURE', 'source' => [ 'name' => 'Agents geres par la DRH', 'select' => 'SELECT * FROM V_PREECOG_STRUCTURE', 'connection' => 'octopus', 'source_code_column' => 'ID', 'columns' => ['CODE', 'LIBELLE_COURT', 'LIBELLE_LONG', 'TYPE', 'HISTO', 'PARENT_ID'], ], 'intermediate_table' => 'src_structure', 'destination' => [ 'name' => 'Structure stockees dans octopus', 'table' => 'structure', 'connection' => 'default', 'source_code_column' => 'id', 'columns' => ['code', 'libelle_court', 'libelle_long', 'type', 'histo','parent_id'], ], ], [ 'name' => 'Import_FONCTION', 'source' => [ 'name' => 'Fonctions remontées de PrEECoG', 'select' => 'SELECT * FROM V_PREECOG_FONCTION', 'connection' => 'octopus', 'source_code_column' => 'ID', 'columns' => ['PARENT_ID', 'CODE', 'NIVEAU'], ], 'intermediate_table' => 'src_fonction', 'destination' => [ 'name' => 'Fonctions remontées de OCTOPUS', 'table' => 'fonction', 'connection' => 'default', 'source_code_column' => 'id', 'columns' => ['parent_id', 'code', 'niveau'], ], ], [ 'name' => 'Import_FONCTION_LIBELLE', 'source' => [ 'name' => 'Libellés des fonctions remontées de PrEECoG', 'select' => 'SELECT * FROM V_PREECOG_FONCTION_LIBELLE', 'connection' => 'octopus', 'source_code_column' => 'ID', 'columns' => ['FONCTION_ID', 'LIBELLE', 'GENRE', 'DEFAUT'], ], 'intermediate_table' => 'src_fonction_libelle', 'destination' => [ 'name' => 'Libellés des fonctions remontées de OCTOPUS', 'table' => 'fonction_libelle', 'connection' => 'default', 'source_code_column' => 'id', 'columns' => ['fonction_id', 'libelle', 'genre', 'defaut'], ], ], [ 'name' => 'Import_BAP', 'source' => [ 'name' => 'BAP des agents remonté depuis OCTOPUS', 'select' => 'SELECT * FROM V_PREECOG_BAP', 'connection' => 'octopus', 'source_code_column' => 'ID', 'columns' => ['C_BAP', 'LIB_COURT', 'LIB_LONG', 'HISTO'], ], 'intermediate_table' => 'src_correspondance', 'destination' => [ 'name' => 'BAP des agents remonté depuis OCTOPUS', 'table' => 'correspondance', 'connection' => 'default', 'source_code_column' => 'id', 'columns' => ['c_bap', 'lib_court', 'lib_long', 'histo'], ], ], [ 'name' => 'Import_GRADE', 'source' => [ 'name' => 'Grades des agents remonté depuis OCTOPUS', 'select' => 'SELECT * FROM V_PREECOG_GRADE', 'connection' => 'octopus', 'source_code_column' => 'ID', 'columns' => ['LIB_COURT', 'LIB_LONG', 'CODE', 'HISTO'], ], 'intermediate_table' => 'src_grade', 'destination' => [ 'name' => 'Grades des agents remonté depuis OCTOPUS', 'table' => 'grade', 'connection' => 'default', 'source_code_column' => 'id', 'columns' => ['lib_court', 'lib_long', 'code', 'histo'], ], ], [ 'name' => 'Import_CORPS', 'source' => [ 'name' => 'Corps des agents remonté depuis OCTOPUS', 'select' => 'SELECT * FROM V_PREECOG_CORPS', 'connection' => 'octopus', 'source_code_column' => 'ID', 'columns' => ['LIB_COURT', 'LIB_LONG', 'CODE', 'CATEGORIE', 'HISTO'], ], 'intermediate_table' => 'src_corps', 'destination' => [ 'name' => 'Corps des agents remonté depuis OCTOPUS', 'table' => 'corps', 'connection' => 'default', 'source_code_column' => 'id', 'columns' => ['lib_court', 'lib_long', 'code', 'categorie', 'histo'], ], ], // [ // 'name' => 'Import_STRUCTURE', // 'source' => [ // 'name' => 'Agents geres par la DRH', // 'select' => 'SELECT * FROM V_PREECOG_STRUCTURE', // 'connection' => 'octopus', // 'source_code_column' => 'ID', // 'columns' => ['CODE', 'LIBELLE_COURT', 'LIBELLE_LONG', 'TYPE', 'HISTO', 'PARENT_ID'], // ], // 'intermediate_table' => 'src_structure', // 'destination' => [ // 'name' => 'Structure stockees dans octopus', // 'table' => 'structure', // 'connection' => 'default', // 'source_code_column' => 'id', // 'columns' => ['code', 'libelle_court', 'libelle_long', 'type', 'histo','parent_id'], // ], // ], // [ // 'name' => 'Import_FONCTION', // 'source' => [ // 'name' => 'Fonctions remontées de PrEECoG', // 'select' => 'SELECT * FROM V_PREECOG_FONCTION', // 'connection' => 'octopus', // 'source_code_column' => 'ID', // 'columns' => ['PARENT_ID', 'CODE', 'NIVEAU'], // ], // 'intermediate_table' => 'src_fonction', // 'destination' => [ // 'name' => 'Fonctions remontées de OCTOPUS', // 'table' => 'fonction', // 'connection' => 'default', // 'source_code_column' => 'id', // 'columns' => ['parent_id', 'code', 'niveau'], // ], // ], // [ // 'name' => 'Import_FONCTION_LIBELLE', // 'source' => [ // 'name' => 'Libellés des fonctions remontées de PrEECoG', // 'select' => 'SELECT * FROM V_PREECOG_FONCTION_LIBELLE', // 'connection' => 'octopus', // 'source_code_column' => 'ID', // 'columns' => ['FONCTION_ID', 'LIBELLE', 'GENRE', 'DEFAUT'], // ], // 'intermediate_table' => 'src_fonction_libelle', // 'destination' => [ // 'name' => 'Libellés des fonctions remontées de OCTOPUS', // 'table' => 'fonction_libelle', // 'connection' => 'default', // 'source_code_column' => 'id', // 'columns' => ['fonction_id', 'libelle', 'genre', 'defaut'], // ], // ], // [ // 'name' => 'Import_BAP', // 'source' => [ // 'name' => 'BAP des agents remonté depuis OCTOPUS', // 'select' => 'SELECT * FROM V_PREECOG_BAP', // 'connection' => 'octopus', // 'source_code_column' => 'ID', // 'columns' => ['C_BAP', 'LIB_COURT', 'LIB_LONG', 'HISTO'], // ], // 'intermediate_table' => 'src_correspondance', // 'destination' => [ // 'name' => 'BAP des agents remonté depuis OCTOPUS', // 'table' => 'correspondance', // 'connection' => 'default', // 'source_code_column' => 'id', // 'columns' => ['c_bap', 'lib_court', 'lib_long', 'histo'], // ], // ], // [ // 'name' => 'Import_GRADE', // 'source' => [ // 'name' => 'Grades des agents remonté depuis OCTOPUS', // 'select' => 'SELECT * FROM V_PREECOG_GRADE', // 'connection' => 'octopus', // 'source_code_column' => 'ID', // 'columns' => ['LIB_COURT', 'LIB_LONG', 'CODE', 'HISTO'], // ], // 'intermediate_table' => 'src_grade', // 'destination' => [ // 'name' => 'Grades des agents remonté depuis OCTOPUS', // 'table' => 'grade', // 'connection' => 'default', // 'source_code_column' => 'id', // 'columns' => ['lib_court', 'lib_long', 'code', 'histo'], // ], // ], // [ // 'name' => 'Import_CORPS', // 'source' => [ // 'name' => 'Corps des agents remonté depuis OCTOPUS', // 'select' => 'SELECT * FROM V_PREECOG_CORPS', // 'connection' => 'octopus', // 'source_code_column' => 'ID', // 'columns' => ['LIB_COURT', 'LIB_LONG', 'CODE', 'CATEGORIE', 'HISTO'], // ], // 'intermediate_table' => 'src_corps', // 'destination' => [ // 'name' => 'Corps des agents remonté depuis OCTOPUS', // 'table' => 'corps', // 'connection' => 'default', // 'source_code_column' => 'id', // 'columns' => ['lib_court', 'lib_long', 'code', 'categorie', 'histo'], // ], // ], ], ], Loading module/Application/src/Application/Entity/Db/Agent.php −20 Changes for module/Application/src/Application/Entity/Db/Agent.php: 0 added lines, 20 removed lines. Original line number Diff line number Diff line Loading @@ -23,10 +23,6 @@ class Agent implements ResourceInterface{ /** @var string */ private $id; /** @var string */ private $sourceName; /** @var integer */ private $sourceId; /** @var string */ private $prenom; /** @var string */ private $nomUsuel; Loading Loading @@ -79,22 +75,6 @@ class Agent implements ResourceInterface{ return $this->id; } /** * @return string */ public function getSourceName() { return $this->sourceName; } /** * @return int */ public function getSourceId() { return $this->sourceId; } /** * @return string */ Loading module/Application/src/Application/Entity/Db/Mapping/Application.Entity.Db.Agent.dcm.xml −3 Changes for module/Application/src/Application/Entity/Db/Mapping/Application.Entity.Db.Agent.dcm.xml: 0 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -5,9 +5,6 @@ <id name="id" column="c_individu" type="string" length="40" > </id> <field name="sourceName" column="c_source" type="string" length="40" /> <field name="sourceId" column="c_src_individu" type="string" length="40" /> <field name="prenom" column="prenom" type="string" length="64" /> <field name="nomUsuel" column="nom_usage" type="string" length="64" /> Loading module/Application/view/application/agent/afficher.phtml −10 Changes for module/Application/view/application/agent/afficher.phtml: 0 added lines, 10 removed lines. Original line number Diff line number Diff line Loading @@ -81,16 +81,6 @@ $this->headTitle("Affichage de l'agent : " . $agent->getDenomination()); <dt> Identifiant sources </dt> <dd> OCTOPUS - <?php echo $agent->getId(); ?> <br/> <?php if($agent->getSourceId()) : ?> <?php echo $agent->getSourceName(); ?> - <?php echo $agent->getSourceId(); ?> <?php else: ?> <span class="probleme"> <span class="icon attention"></span> <em> Aucune source pour cet agent </em> </span> <?php endif; ?> <dt> Compte associé </dt> <dd> <?php if($agent->getUtilisateur()) : ?> Loading public/css/app.css +1 −1 Changes for public/css/app.css: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -554,7 +554,7 @@ span.Opérationnelles { span.badge.structure { background-color: darkgreen; border-radius: 2px; min-width:20rem; min-width:18rem; padding-left: 3rem; padding-right: 3rem; } Loading Loading
config/autoload/unicaen-db-import.global.php +136 −118 Changes for config/autoload/unicaen-db-import.global.php: 136 added lines, 118 removed lines. Original line number Diff line number Diff line Loading @@ -79,7 +79,7 @@ return [ 'select' => 'SELECT * FROM V_PREECOG_AGENT', 'connection' => 'octopus', 'source_code_column' => 'C_INDIVIDU', // 'columns' => ['C_SRC_INDIVIDU', 'C_SOURCE', 'PRENOM', 'NOM_USAGE'], 'columns' => ['PRENOM', 'NOM_USAGE'], ], // 'intermediate_table' => 'src_agent', 'destination' => [ Loading @@ -87,35 +87,53 @@ return [ 'table' => 'agent', 'connection' => 'default', 'source_code_column' => 'c_individu', // 'columns' => ['c_src_individu', 'c_source', 'prenom', 'nom_usage'], 'columns' => ['prenom', 'nom_usage'], ], ], [ 'name' => 'Import_AFFECTATION', 'source' => [ 'name' => 'Affectations des agents', 'select' => 'SELECT * FROM V_PREECOG_AFFECTATION', 'connection' => 'octopus', 'source_code_column' => 'AFFECTATION_ID', 'columns' => ['INDIVIDU_ID', 'STRUCTURE_ID', 'DATE_DEBUT', 'DATE_FIN', 'ID_ORIG', 'T_PRINCIPALE'], ], // 'intermediate_table' => 'src_agent', 'destination' => [ 'name' => 'Affectation des agents gérés par la DRH', 'table' => 'agent_affectation', 'connection' => 'default', 'source_code_column' => 'affectation_id', 'columns' => ['individu_id', 'structure_id', 'date_debut', 'date_fin', 'id_orig', 't_principale'], ], ], [ 'name' => 'Import_AGENT_GRADE', 'source' => [ 'name' => 'Grades liés aux agents de PreeCog', 'select' => 'SELECT * FROM V_PREECOG_AGENT_GRADE', 'select' => 'SELECT ID, ID_ORIG, AGENT_ID, STRUCTURE_ID, CORPS_ID, GRADE_ID, BAP_ID, D_DEBUT, D_FIN FROM V_PREECOG_GRADE', 'connection' => 'octopus', 'source_code_column' => 'AG_ID', 'columns' => ['AGENT_ID', 'STRUCTURE_ID', 'CORPS_ID', 'GRADE_ID', 'BAP_ID', 'DATE_DEBUT', 'DATE_FIN'], 'source_code_column' => 'ID', //'columns' => ['AGENT_ID', 'STRUCTURE_ID', 'CORPS_ID', 'GRADE_ID', 'BAP_ID', 'DATE_DEBUT', 'DATE_FIN'], ], 'intermediate_table' => 'src_agent_grade', 'destination' => [ 'name' => 'Grade des agents gérés par la DRH', 'table' => 'agent_grade', 'connection' => 'default', 'source_code_column' => 'ag_id', 'columns' => ['agent_id', 'structure_id', 'corps_id', 'grade_id', 'bap_id', 'date_debut', 'date_fin'], 'source_code_column' => 'id', 'columns' => ['id_orig', 'agent_id', 'structure_id', 'corps_id', 'grade_id', 'bap_id', 'd_debut', 'd_fin'], ], ], [ 'name' => 'Import_STATUT', 'source' => [ 'name' => 'Statut des agents geres par la DRH', 'select' => 'SELECT * FROM V_PREECOG_STATUT', 'select' => 'SELECT ID, ID_ORIG, C_SOURCE, INDIVIDU_ID, STRUCTURE_ID, D_DEBUT, D_FIN, T_TITULAIRE, T_CDI, T_CDD, T_VACATAIRE, T_ENSEIGNANT, T_ADMINISTRATIF, T_CHERCHEUR, T_ETUDIANT, T_AUDITEUR_LIBRE, T_DOCTORANT, T_DETACHE_IN, T_DETACHE_OUT, T_DISPO, T_HEBERGE, T_EMERITE, T_RETRAITE FROM V_PREECOG_STATUT', 'connection' => 'octopus', 'source_code_column' => 'ID', 'columns' => ['ID_ORIG', 'C_SOURCE', 'INDIVIDU_ID', 'STRUCTURE_ID', 'D_DEBUT', 'D_FIN', 'T_TITULAIRE', 'T_CDI', 'T_CDD', 'T_VACATAIRE', 'T_ENSEIGNANT', 'T_ADMINISTRATIF', 'T_CHERCHEUR', 'T_ETUDIANT', 'T_AUDITEUR_LIBRE', 'T_DOCTORANT', 'T_DETACHE_IN', 'T_DETACHE_OUT', 'T_DISPO', 'T_HEBERGE', 'T_EMERITE', 'T_RETRAITE'], // 'columns' => ['ID_ORIG', 'C_SOURCE', 'INDIVIDU_ID', 'STRUCTURE_ID', 'D_DEBUT', 'D_FIN', 'T_TITULAIRE', 'T_CDI', 'T_CDD', 'T_VACATAIRE', 'T_ENSEIGNANT', 'T_ADMINISTRATIF', 'T_CHERCHEUR', 'T_ETUDIANT', 'T_AUDITEUR_LIBRE', 'T_DOCTORANT', 'T_DETACHE_IN', 'T_DETACHE_OUT', 'T_DISPO', 'T_HEBERGE', 'T_EMERITE', 'T_RETRAITE', 'T_CLD', 'T_CLM'], ], 'intermediate_table' => 'src_agent_statut', 'destination' => [ Loading @@ -123,121 +141,121 @@ return [ 'table' => 'agent_statut', 'connection' => 'default', 'source_code_column' => 'id', 'columns' => ['id_orig', 'c_source', 'individu_id', 'structure_id', 'd_debut', 'd_fin', 't_titulaire', 't_cdi', 't_cdd', 't_vacataire', 't_enseignant', 't_administratif', 't_chercheur', 't_etudiant', 't_auditeur_libre', 't_doctorant', 't_detache_in', 't_detache_out', 't_dispo', 't_heberge', 't_emerite', 't_retraite'], 'columns' => ['id_orig', 'c_source', 'individu_id', 'structure_id', 'd_debut', 'd_fin', 't_titulaire', 't_cdi', 't_cdd', 't_vacataire', 't_enseignant', 't_administratif', 't_chercheur', 't_etudiant', 't_auditeur_libre', 't_doctorant', 't_detache_in', 't_detache_out', 't_dispo', 't_heberge', 't_emerite', 't_retraite', 't_cld', 't_clm'], 'columns_to_char' => [ 'd_debut' => "TO_CHAR(%s,'YYYY-MM-DD')", 'd_fin' => "TO_CHAR(%s,'YYYY-MM-DD')", ], ], ], [ 'name' => 'Import_STRUCTURE', 'source' => [ 'name' => 'Agents geres par la DRH', 'select' => 'SELECT * FROM V_PREECOG_STRUCTURE', 'connection' => 'octopus', 'source_code_column' => 'ID', 'columns' => ['CODE', 'LIBELLE_COURT', 'LIBELLE_LONG', 'TYPE', 'HISTO', 'PARENT_ID'], ], 'intermediate_table' => 'src_structure', 'destination' => [ 'name' => 'Structure stockees dans octopus', 'table' => 'structure', 'connection' => 'default', 'source_code_column' => 'id', 'columns' => ['code', 'libelle_court', 'libelle_long', 'type', 'histo','parent_id'], ], ], [ 'name' => 'Import_FONCTION', 'source' => [ 'name' => 'Fonctions remontées de PrEECoG', 'select' => 'SELECT * FROM V_PREECOG_FONCTION', 'connection' => 'octopus', 'source_code_column' => 'ID', 'columns' => ['PARENT_ID', 'CODE', 'NIVEAU'], ], 'intermediate_table' => 'src_fonction', 'destination' => [ 'name' => 'Fonctions remontées de OCTOPUS', 'table' => 'fonction', 'connection' => 'default', 'source_code_column' => 'id', 'columns' => ['parent_id', 'code', 'niveau'], ], ], [ 'name' => 'Import_FONCTION_LIBELLE', 'source' => [ 'name' => 'Libellés des fonctions remontées de PrEECoG', 'select' => 'SELECT * FROM V_PREECOG_FONCTION_LIBELLE', 'connection' => 'octopus', 'source_code_column' => 'ID', 'columns' => ['FONCTION_ID', 'LIBELLE', 'GENRE', 'DEFAUT'], ], 'intermediate_table' => 'src_fonction_libelle', 'destination' => [ 'name' => 'Libellés des fonctions remontées de OCTOPUS', 'table' => 'fonction_libelle', 'connection' => 'default', 'source_code_column' => 'id', 'columns' => ['fonction_id', 'libelle', 'genre', 'defaut'], ], ], [ 'name' => 'Import_BAP', 'source' => [ 'name' => 'BAP des agents remonté depuis OCTOPUS', 'select' => 'SELECT * FROM V_PREECOG_BAP', 'connection' => 'octopus', 'source_code_column' => 'ID', 'columns' => ['C_BAP', 'LIB_COURT', 'LIB_LONG', 'HISTO'], ], 'intermediate_table' => 'src_correspondance', 'destination' => [ 'name' => 'BAP des agents remonté depuis OCTOPUS', 'table' => 'correspondance', 'connection' => 'default', 'source_code_column' => 'id', 'columns' => ['c_bap', 'lib_court', 'lib_long', 'histo'], ], ], [ 'name' => 'Import_GRADE', 'source' => [ 'name' => 'Grades des agents remonté depuis OCTOPUS', 'select' => 'SELECT * FROM V_PREECOG_GRADE', 'connection' => 'octopus', 'source_code_column' => 'ID', 'columns' => ['LIB_COURT', 'LIB_LONG', 'CODE', 'HISTO'], ], 'intermediate_table' => 'src_grade', 'destination' => [ 'name' => 'Grades des agents remonté depuis OCTOPUS', 'table' => 'grade', 'connection' => 'default', 'source_code_column' => 'id', 'columns' => ['lib_court', 'lib_long', 'code', 'histo'], ], ], [ 'name' => 'Import_CORPS', 'source' => [ 'name' => 'Corps des agents remonté depuis OCTOPUS', 'select' => 'SELECT * FROM V_PREECOG_CORPS', 'connection' => 'octopus', 'source_code_column' => 'ID', 'columns' => ['LIB_COURT', 'LIB_LONG', 'CODE', 'CATEGORIE', 'HISTO'], ], 'intermediate_table' => 'src_corps', 'destination' => [ 'name' => 'Corps des agents remonté depuis OCTOPUS', 'table' => 'corps', 'connection' => 'default', 'source_code_column' => 'id', 'columns' => ['lib_court', 'lib_long', 'code', 'categorie', 'histo'], ], ], // [ // 'name' => 'Import_STRUCTURE', // 'source' => [ // 'name' => 'Agents geres par la DRH', // 'select' => 'SELECT * FROM V_PREECOG_STRUCTURE', // 'connection' => 'octopus', // 'source_code_column' => 'ID', // 'columns' => ['CODE', 'LIBELLE_COURT', 'LIBELLE_LONG', 'TYPE', 'HISTO', 'PARENT_ID'], // ], // 'intermediate_table' => 'src_structure', // 'destination' => [ // 'name' => 'Structure stockees dans octopus', // 'table' => 'structure', // 'connection' => 'default', // 'source_code_column' => 'id', // 'columns' => ['code', 'libelle_court', 'libelle_long', 'type', 'histo','parent_id'], // ], // ], // [ // 'name' => 'Import_FONCTION', // 'source' => [ // 'name' => 'Fonctions remontées de PrEECoG', // 'select' => 'SELECT * FROM V_PREECOG_FONCTION', // 'connection' => 'octopus', // 'source_code_column' => 'ID', // 'columns' => ['PARENT_ID', 'CODE', 'NIVEAU'], // ], // 'intermediate_table' => 'src_fonction', // 'destination' => [ // 'name' => 'Fonctions remontées de OCTOPUS', // 'table' => 'fonction', // 'connection' => 'default', // 'source_code_column' => 'id', // 'columns' => ['parent_id', 'code', 'niveau'], // ], // ], // [ // 'name' => 'Import_FONCTION_LIBELLE', // 'source' => [ // 'name' => 'Libellés des fonctions remontées de PrEECoG', // 'select' => 'SELECT * FROM V_PREECOG_FONCTION_LIBELLE', // 'connection' => 'octopus', // 'source_code_column' => 'ID', // 'columns' => ['FONCTION_ID', 'LIBELLE', 'GENRE', 'DEFAUT'], // ], // 'intermediate_table' => 'src_fonction_libelle', // 'destination' => [ // 'name' => 'Libellés des fonctions remontées de OCTOPUS', // 'table' => 'fonction_libelle', // 'connection' => 'default', // 'source_code_column' => 'id', // 'columns' => ['fonction_id', 'libelle', 'genre', 'defaut'], // ], // ], // [ // 'name' => 'Import_BAP', // 'source' => [ // 'name' => 'BAP des agents remonté depuis OCTOPUS', // 'select' => 'SELECT * FROM V_PREECOG_BAP', // 'connection' => 'octopus', // 'source_code_column' => 'ID', // 'columns' => ['C_BAP', 'LIB_COURT', 'LIB_LONG', 'HISTO'], // ], // 'intermediate_table' => 'src_correspondance', // 'destination' => [ // 'name' => 'BAP des agents remonté depuis OCTOPUS', // 'table' => 'correspondance', // 'connection' => 'default', // 'source_code_column' => 'id', // 'columns' => ['c_bap', 'lib_court', 'lib_long', 'histo'], // ], // ], // [ // 'name' => 'Import_GRADE', // 'source' => [ // 'name' => 'Grades des agents remonté depuis OCTOPUS', // 'select' => 'SELECT * FROM V_PREECOG_GRADE', // 'connection' => 'octopus', // 'source_code_column' => 'ID', // 'columns' => ['LIB_COURT', 'LIB_LONG', 'CODE', 'HISTO'], // ], // 'intermediate_table' => 'src_grade', // 'destination' => [ // 'name' => 'Grades des agents remonté depuis OCTOPUS', // 'table' => 'grade', // 'connection' => 'default', // 'source_code_column' => 'id', // 'columns' => ['lib_court', 'lib_long', 'code', 'histo'], // ], // ], // [ // 'name' => 'Import_CORPS', // 'source' => [ // 'name' => 'Corps des agents remonté depuis OCTOPUS', // 'select' => 'SELECT * FROM V_PREECOG_CORPS', // 'connection' => 'octopus', // 'source_code_column' => 'ID', // 'columns' => ['LIB_COURT', 'LIB_LONG', 'CODE', 'CATEGORIE', 'HISTO'], // ], // 'intermediate_table' => 'src_corps', // 'destination' => [ // 'name' => 'Corps des agents remonté depuis OCTOPUS', // 'table' => 'corps', // 'connection' => 'default', // 'source_code_column' => 'id', // 'columns' => ['lib_court', 'lib_long', 'code', 'categorie', 'histo'], // ], // ], ], ], Loading
module/Application/src/Application/Entity/Db/Agent.php −20 Changes for module/Application/src/Application/Entity/Db/Agent.php: 0 added lines, 20 removed lines. Original line number Diff line number Diff line Loading @@ -23,10 +23,6 @@ class Agent implements ResourceInterface{ /** @var string */ private $id; /** @var string */ private $sourceName; /** @var integer */ private $sourceId; /** @var string */ private $prenom; /** @var string */ private $nomUsuel; Loading Loading @@ -79,22 +75,6 @@ class Agent implements ResourceInterface{ return $this->id; } /** * @return string */ public function getSourceName() { return $this->sourceName; } /** * @return int */ public function getSourceId() { return $this->sourceId; } /** * @return string */ Loading
module/Application/src/Application/Entity/Db/Mapping/Application.Entity.Db.Agent.dcm.xml −3 Changes for module/Application/src/Application/Entity/Db/Mapping/Application.Entity.Db.Agent.dcm.xml: 0 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -5,9 +5,6 @@ <id name="id" column="c_individu" type="string" length="40" > </id> <field name="sourceName" column="c_source" type="string" length="40" /> <field name="sourceId" column="c_src_individu" type="string" length="40" /> <field name="prenom" column="prenom" type="string" length="64" /> <field name="nomUsuel" column="nom_usage" type="string" length="64" /> Loading
module/Application/view/application/agent/afficher.phtml −10 Changes for module/Application/view/application/agent/afficher.phtml: 0 added lines, 10 removed lines. Original line number Diff line number Diff line Loading @@ -81,16 +81,6 @@ $this->headTitle("Affichage de l'agent : " . $agent->getDenomination()); <dt> Identifiant sources </dt> <dd> OCTOPUS - <?php echo $agent->getId(); ?> <br/> <?php if($agent->getSourceId()) : ?> <?php echo $agent->getSourceName(); ?> - <?php echo $agent->getSourceId(); ?> <?php else: ?> <span class="probleme"> <span class="icon attention"></span> <em> Aucune source pour cet agent </em> </span> <?php endif; ?> <dt> Compte associé </dt> <dd> <?php if($agent->getUtilisateur()) : ?> Loading
public/css/app.css +1 −1 Changes for public/css/app.css: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -554,7 +554,7 @@ span.Opérationnelles { span.badge.structure { background-color: darkgreen; border-radius: 2px; min-width:20rem; min-width:18rem; padding-left: 3rem; padding-right: 3rem; } Loading