Line 270... |
Line 270... |
270 |
root.getBase().getDataSource().execute(alterTableBrut.asString());
|
270 |
root.getBase().getDataSource().execute(alterTableBrut.asString());
|
271 |
root.refetchTable("RUBRIQUE_BRUT");
|
271 |
root.refetchTable("RUBRIQUE_BRUT");
|
272 |
root.getSchema().updateVersion();
|
272 |
root.getSchema().updateVersion();
|
273 |
}
|
273 |
}
|
274 |
|
274 |
|
- |
|
275 |
if (!tableRubBrut.contains("CSG_NORMAL")) {
|
- |
|
276 |
AlterTable alterTableBrut = new AlterTable(tableRubBrut);
|
- |
|
277 |
alterTableBrut.addBooleanColumn("CSG_NORMAL", Boolean.TRUE, false);
|
- |
|
278 |
root.getBase().getDataSource().execute(alterTableBrut.asString());
|
- |
|
279 |
root.refetchTable("RUBRIQUE_BRUT");
|
- |
|
280 |
root.getSchema().updateVersion();
|
- |
|
281 |
}
|
- |
|
282 |
if (!tableRubBrut.contains("CSG_REDUIT")) {
|
- |
|
283 |
AlterTable alterTableBrut = new AlterTable(tableRubBrut);
|
- |
|
284 |
alterTableBrut.addBooleanColumn("CSG_REDUIT", Boolean.FALSE, false);
|
- |
|
285 |
root.getBase().getDataSource().execute(alterTableBrut.asString());
|
- |
|
286 |
root.refetchTable("RUBRIQUE_BRUT");
|
- |
|
287 |
root.getSchema().updateVersion();
|
- |
|
288 |
}
|
- |
|
289 |
|
275 |
SQLTable tableRubNet = root.getTable("RUBRIQUE_NET");
|
290 |
SQLTable tableRubNet = root.getTable("RUBRIQUE_NET");
|
276 |
if (!tableRubNet.contains("ID_CODE_TYPE_RUBRIQUE_BRUT")) {
|
291 |
if (!tableRubNet.contains("ID_CODE_TYPE_RUBRIQUE_BRUT")) {
|
277 |
|
292 |
|
278 |
AlterTable alterTableNet = new AlterTable(tableRubNet);
|
293 |
AlterTable alterTableNet = new AlterTable(tableRubNet);
|
279 |
alterTableNet.addForeignColumn("ID_CODE_TYPE_RUBRIQUE_BRUT", root.getTable("CODE_TYPE_RUBRIQUE_BRUT"));
|
294 |
alterTableNet.addForeignColumn("ID_CODE_TYPE_RUBRIQUE_BRUT", root.getTable("CODE_TYPE_RUBRIQUE_BRUT"));
|
Line 541... |
Line 556... |
541 |
} catch (SQLException ex) {
|
556 |
} catch (SQLException ex) {
|
542 |
throw new IllegalStateException("Erreur lors de la création de la table " + "CONTRAT_DISPOSITIF_POLITIQUE", ex);
|
557 |
throw new IllegalStateException("Erreur lors de la création de la table " + "CONTRAT_DISPOSITIF_POLITIQUE", ex);
|
543 |
}
|
558 |
}
|
544 |
}
|
559 |
}
|
545 |
|
560 |
|
- |
|
561 |
if (!root.contains("CODE_AMENAGEMENT_PARTIEL")) {
|
- |
|
562 |
final SQLCreateTable createTableMotif = new SQLCreateTable(root, "CODE_AMENAGEMENT_PARTIEL");
|
- |
|
563 |
createTableMotif.addVarCharColumn("CODE", 25);
|
- |
|
564 |
createTableMotif.addVarCharColumn("NOM", 512);
|
- |
|
565 |
|
- |
|
566 |
try {
|
- |
|
567 |
root.getBase().getDataSource().execute(createTableMotif.asString());
|
- |
|
568 |
insertUndef(createTableMotif);
|
- |
|
569 |
root.refetchTable("CODE_AMENAGEMENT_PARTIEL");
|
- |
|
570 |
root.getSchema().updateVersion();
|
- |
|
571 |
|
- |
|
572 |
final SQLTable table = root.getTable("CODE_AMENAGEMENT_PARTIEL");
|
- |
|
573 |
List<Tuple2<String, String>> v = new ArrayList<Tuple2<String, String>>();
|
- |
|
574 |
|
- |
|
575 |
v.add(Tuple2.create("01", "Forfait hebdomadaire"));
|
- |
|
576 |
v.add(Tuple2.create("02", "Autre temps de travail hebdomadaire"));
|
- |
|
577 |
v.add(Tuple2.create("03", "Equivalent à 35h - 39h (Mayotte)"));
|
- |
|
578 |
v.add(Tuple2.create("04", "Forfait mensuel"));
|
- |
|
579 |
v.add(Tuple2.create("05", "Forfait annuel en jour"));
|
- |
|
580 |
v.add(Tuple2.create("06", "Forfait annuel en heures"));
|
- |
|
581 |
v.add(Tuple2.create("07", "Cycle"));
|
- |
|
582 |
v.add(Tuple2.create("08", "Modulation"));
|
- |
|
583 |
v.add(Tuple2.create("09", "Aménagement du temps de travail (Loi du 20 août 2008)"));
|
- |
|
584 |
v.add(Tuple2.create("10", "Personnel navigant ou autres"));
|
- |
|
585 |
|
- |
|
586 |
insertValues(v, table);
|
- |
|
587 |
} catch (SQLException ex) {
|
- |
|
588 |
throw new IllegalStateException("Erreur lors de la création de la table " + "CODE_AMENAGEMENT_PARTIEL", ex);
|
- |
|
589 |
}
|
- |
|
590 |
}
|
- |
|
591 |
|
- |
|
592 |
if (!root.contains("CODE_SUSPENSION")) {
|
- |
|
593 |
final SQLCreateTable createTableMotif = new SQLCreateTable(root, "CODE_SUSPENSION");
|
- |
|
594 |
createTableMotif.addVarCharColumn("CODE", 25);
|
- |
|
595 |
createTableMotif.addVarCharColumn("NOM", 512);
|
- |
|
596 |
|
- |
|
597 |
try {
|
- |
|
598 |
root.getBase().getDataSource().execute(createTableMotif.asString());
|
- |
|
599 |
insertUndef(createTableMotif);
|
- |
|
600 |
root.refetchTable("CODE_SUSPENSION");
|
- |
|
601 |
root.getSchema().updateVersion();
|
- |
|
602 |
|
- |
|
603 |
final SQLTable table = root.getTable("CODE_SUSPENSION");
|
- |
|
604 |
List<Tuple2<String, String>> v = new ArrayList<Tuple2<String, String>>();
|
- |
|
605 |
|
- |
|
606 |
v.add(Tuple2.create("112", "Invalidité catégorie 1"));
|
- |
|
607 |
v.add(Tuple2.create("114", "Invalidité catégorie 2"));
|
- |
|
608 |
v.add(Tuple2.create("116", "Invalidité catégorie 3"));
|
- |
|
609 |
v.add(Tuple2.create("200", "COP (Congés payés)"));
|
- |
|
610 |
v.add(Tuple2.create("301", "Congé de Formation Professionnelle"));
|
- |
|
611 |
v.add(Tuple2.create("501", "Congé divers non rémunéré"));
|
- |
|
612 |
v.add(Tuple2.create("507", "Chômage intempéries"));
|
- |
|
613 |
v.add(Tuple2.create("601", "Mobilité volontaire sécurisée"));
|
- |
|
614 |
v.add(Tuple2.create("602", "Chômage sans rupture de contrat"));
|
- |
|
615 |
v.add(Tuple2.create("603", "Détention provisoire"));
|
- |
|
616 |
v.add(Tuple2.create("604", "Journée de perception de l'allocation journalière de présence parentale"));
|
- |
|
617 |
v.add(Tuple2.create("605", "Congé statutaire"));
|
- |
|
618 |
v.add(Tuple2.create("606", "Détachement d'un salarié IEG en France"));
|
- |
|
619 |
v.add(Tuple2.create("607", "Congé de présence parentale"));
|
- |
|
620 |
v.add(Tuple2.create("608", "CASA"));
|
- |
|
621 |
v.add(Tuple2.create("609", "CIF (Congé Individuel de Formation)"));
|
- |
|
622 |
v.add(Tuple2.create("611", "Congé de bilan de compétences"));
|
- |
|
623 |
v.add(Tuple2.create("612", "Congé de candidat parlementaire ou élu à un mandat local"));
|
- |
|
624 |
v.add(Tuple2.create("615", "Congé de formation de cadres et d'animateurs pour la jeunesse"));
|
- |
|
625 |
v.add(Tuple2.create("617", "Congé de formation pour les salariés de moins de 25 ans"));
|
- |
|
626 |
v.add(Tuple2.create("618", "Congé de formation économique, sociale et syndicale"));
|
- |
|
627 |
v.add(Tuple2.create("620", "Congé de mobilité"));
|
- |
|
628 |
v.add(Tuple2.create("621", "Congé de participation aux instances d'emploi ou de formation professionnelle"));
|
- |
|
629 |
v.add(Tuple2.create("625", "Congé de reclassement"));
|
- |
|
630 |
v.add(Tuple2.create("626", "Congé de représentation"));
|
- |
|
631 |
v.add(Tuple2.create("627", "Congé de solidarité familiale"));
|
- |
|
632 |
v.add(Tuple2.create("628", "Congé de solidarité internationale"));
|
- |
|
633 |
v.add(Tuple2.create("630", "Congé d'enseignement ou de recherche"));
|
- |
|
634 |
v.add(Tuple2.create("631", "Congé mutualiste de formation"));
|
- |
|
635 |
v.add(Tuple2.create("632", "Congé parental d'éducation"));
|
- |
|
636 |
v.add(Tuple2.create("633", "Congé pour acquisition de la nationalité"));
|
- |
|
637 |
v.add(Tuple2.create("634", "Congé pour catastrophe naturelle"));
|
- |
|
638 |
v.add(Tuple2.create("635", "Congé pour création ou reprise d'entreprise"));
|
- |
|
639 |
v.add(Tuple2.create("636", "Congé pour enfant malade"));
|
- |
|
640 |
v.add(Tuple2.create("637", "Congé pour évènement familial"));
|
- |
|
641 |
v.add(Tuple2.create("638", "Congé pour validation des acquis de l'expérience"));
|
- |
|
642 |
v.add(Tuple2.create("639", "Congé sabbatique"));
|
- |
|
643 |
v.add(Tuple2.create("642", "Convention FNE d'aide au passage à temps partiel"));
|
- |
|
644 |
v.add(Tuple2.create("643", "Congé de conversion avec prise en charge par l'Etat"));
|
- |
|
645 |
v.add(Tuple2.create("644", "Congé de conversion sans prise en charge par l'Etat"));
|
- |
|
646 |
v.add(Tuple2.create("645", "Préretraite progressive"));
|
- |
|
647 |
v.add(Tuple2.create("646", "Préretraite d'entreprise sans rupture de contrat de travail"));
|
- |
|
648 |
v.add(Tuple2.create("647", "Réduction temps d'emploi"));
|
- |
|
649 |
v.add(Tuple2.create("648", "Conventions d'Allocations Spéciales du FNE (ASFNE)"));
|
- |
|
650 |
v.add(Tuple2.create("650", "Congé de proche aidant"));
|
- |
|
651 |
v.add(Tuple2.create("651", "Congé pour mandat parlementaire"));
|
- |
|
652 |
v.add(Tuple2.create("652", "Inaptitude temporaire liée à la grossesse"));
|
- |
|
653 |
v.add(Tuple2.create("653", "Maintien de salaire – personnel navigant de l’aéronautique civile"));
|
- |
|
654 |
v.add(Tuple2.create("654", "Inactivité temps alterné – personnel navigant de l’aéronautique civile"));
|
- |
|
655 |
v.add(Tuple2.create("655", "[FP] Détachement conduisant à pension (ECP)"));
|
- |
|
656 |
v.add(Tuple2.create("656", "[FP] Congé pour cessation anticipée d’activité du fait d’une maladie professionnelle provoquée par l’amiante"));
|
- |
|
657 |
v.add(Tuple2.create("657", "[FP] Absence concertée de travail"));
|
- |
|
658 |
v.add(Tuple2.create("658", "[FP] Congé spécial"));
|
- |
|
659 |
v.add(Tuple2.create("659", "[FP] Période d'instruction militaire ou réserve opérationnelle"));
|
- |
|
660 |
v.add(Tuple2.create("660", "[FP] Congé avec traitement période d'instruction militaire obligatoire"));
|
- |
|
661 |
v.add(Tuple2.create("661", "[FP] Congé organisations de jeunesse"));
|
- |
|
662 |
v.add(Tuple2.create("662", "[FP] Congé pour siéger auprès d’une association, d’une mutuelle, d’une instance de l’Etat ou d’une collectivité territoriale"));
|
- |
|
663 |
v.add(Tuple2.create("663", "[FP] Congé non rémunéré de 18 jours pour mandats municipaux ou départementaux ou régionaux"));
|
- |
|
664 |
v.add(Tuple2.create("664", "[FP] Congé avec traitement pour période d'activité dans la réserve de sécurité civile"));
|
- |
|
665 |
v.add(Tuple2.create("665", "[FP] Congé pour période d'activité dans la réserve sanitaire"));
|
- |
|
666 |
v.add(Tuple2.create("666", "[FP] Congé pour recherches ou conversions thématiques"));
|
- |
|
667 |
v.add(Tuple2.create("667", "[FP] Congé pour raisons opérationnelles et activités privées des sapeurs"));
|
- |
|
668 |
v.add(Tuple2.create("668", "[FP] Congé pour raisons opérationnelles cotisé des sapeurs"));
|
- |
|
669 |
v.add(Tuple2.create("669", "[FP] Congé pour difficultés opérationnelles des sapeurs"));
|
- |
|
670 |
v.add(Tuple2.create("670", "[FP] Congé pour période d'activité dans la réserve civile de la police"));
|
- |
|
671 |
v.add(Tuple2.create("671", "[FP] Exclusion temporaire de fonctions"));
|
- |
|
672 |
v.add(Tuple2.create("672", "[FP] Suspension"));
|
- |
|
673 |
v.add(Tuple2.create("673", "[FP] Absences irrégulières (service non fait)"));
|
- |
|
674 |
v.add(Tuple2.create("674", "[FP] Détachement ne conduisant pas à pension (ENCP)"));
|
- |
|
675 |
v.add(Tuple2.create("675", "[FP] Disponibilité"));
|
- |
|
676 |
v.add(Tuple2.create("676", "[FP] Disponibilité pour maladie"));
|
- |
|
677 |
v.add(Tuple2.create("677", "[FP] Disponibilité pour élever un enfant âgé de moins de 8 ans"));
|
- |
|
678 |
v.add(Tuple2.create("678", "[FP] Position hors cadres"));
|
- |
|
679 |
v.add(Tuple2.create("680", "Congé sans solde cotisés"));
|
- |
|
680 |
v.add(Tuple2.create("681", "Détachement hors IEG"));
|
- |
|
681 |
v.add(Tuple2.create("998", "Annulation"));
|
- |
|
682 |
|
- |
|
683 |
insertValues(v, table);
|
- |
|
684 |
} catch (SQLException ex) {
|
- |
|
685 |
throw new IllegalStateException("Erreur lors de la création de la table " + "CODE_SUSPENSION", ex);
|
- |
|
686 |
}
|
- |
|
687 |
}
|
- |
|
688 |
|
546 |
if (!root.contains("MOTIF_REPRISE_ARRET_TRAVAIL")) {
|
689 |
if (!root.contains("MOTIF_REPRISE_ARRET_TRAVAIL")) {
|
547 |
final SQLCreateTable createTableMotif = new SQLCreateTable(root, "MOTIF_REPRISE_ARRET_TRAVAIL");
|
690 |
final SQLCreateTable createTableMotif = new SQLCreateTable(root, "MOTIF_REPRISE_ARRET_TRAVAIL");
|
548 |
createTableMotif.addVarCharColumn("CODE", 25);
|
691 |
createTableMotif.addVarCharColumn("CODE", 25);
|
549 |
createTableMotif.addVarCharColumn("NOM", 512);
|
692 |
createTableMotif.addVarCharColumn("NOM", 512);
|
550 |
|
693 |
|
Line 1187... |
Line 1330... |
1187 |
|
1330 |
|
1188 |
final SQLTable tableCTP = root.getTable("CODE_CAISSE_TYPE_RUBRIQUE");
|
1331 |
final SQLTable tableCTP = root.getTable("CODE_CAISSE_TYPE_RUBRIQUE");
|
1189 |
List<Tuple2<String, String>> vCTP = new ArrayList<>();
|
1332 |
List<Tuple2<String, String>> vCTP = new ArrayList<>();
|
1190 |
vCTP.add(Tuple2.create("003", "Réduction cotisations salariale heures supplémentaires"));
|
1333 |
vCTP.add(Tuple2.create("003", "Réduction cotisations salariale heures supplémentaires"));
|
1191 |
vCTP.add(Tuple2.create("510", "Prime exceptionnelle de pouvoir d’achat"));
|
1334 |
vCTP.add(Tuple2.create("510", "Prime exceptionnelle de pouvoir d’achat"));
|
- |
|
1335 |
vCTP.add(Tuple2.create("060", "RR Chômage CSG-CRDS taux plein"));
|
1192 |
insertValues(vCTP, tableCTP);
|
1336 |
insertValues(vCTP, tableCTP);
|
1193 |
|
1337 |
|
1194 |
final SQLTable tableTypeBrut = root.getTable("CODE_TYPE_RUBRIQUE_BRUT");
|
1338 |
final SQLTable tableTypeBrut = root.getTable("CODE_TYPE_RUBRIQUE_BRUT");
|
1195 |
List<Tuple3<String, String, String>> vbrutType = new ArrayList<>();
|
1339 |
List<Tuple3<String, String, String>> vbrutType = new ArrayList<>();
|
1196 |
vbrutType.add(Tuple3.create("016", "[FP] Heures affectées à un travail d’aide à domicile", DsnTypeCodeBrut.REMUNERATION.getName()));
|
1340 |
vbrutType.add(Tuple3.create("016", "[FP] Heures affectées à un travail d’aide à domicile", DsnTypeCodeBrut.REMUNERATION.getName()));
|
1197 |
vbrutType.add(Tuple3.create("017", "Heures supplémentaires ou complémentaires aléatoires", DsnTypeCodeBrut.REMUNERATION.getName()));
|
1341 |
vbrutType.add(Tuple3.create("017", "Heures supplémentaires ou complémentaires aléatoires", DsnTypeCodeBrut.REMUNERATION.getName()));
|
1198 |
vbrutType.add(Tuple3.create("018", "Heures supplémentaires structurelles", DsnTypeCodeBrut.REMUNERATION.getName()));
|
1342 |
vbrutType.add(Tuple3.create("018", "Heures supplémentaires structurelles", DsnTypeCodeBrut.REMUNERATION.getName()));
|
- |
|
1343 |
vbrutType.add(Tuple3.create("019", "Heures d'activité partielle", DsnTypeCodeBrut.REMUNERATION.getName()));
|
- |
|
1344 |
vbrutType.add(Tuple3.create("020", "Heures affectées à un travail d’aide à domicile de publics fragiles", DsnTypeCodeBrut.REMUNERATION.getName()));
|
1199 |
DsnBrutCode dsnBurCode = new DsnBrutCode();
|
1345 |
DsnBrutCode dsnBurCode = new DsnBrutCode();
|
1200 |
dsnBurCode.updateTable(vbrutType, tableTypeBrut);
|
1346 |
dsnBurCode.updateTable(vbrutType, tableTypeBrut);
|
1201 |
|
1347 |
|
1202 |
}
|
1348 |
}
|
1203 |
|
1349 |
|
Line 1486... |
Line 1632... |
1486 |
AlterTable alter = new AlterTable(tableContrat);
|
1632 |
AlterTable alter = new AlterTable(tableContrat);
|
1487 |
alter.addForeignColumn("ID_CONTRAT_DISPOSITIF_POLITIQUE", root.findTable("CONTRAT_DISPOSITIF_POLITIQUE"));
|
1633 |
alter.addForeignColumn("ID_CONTRAT_DISPOSITIF_POLITIQUE", root.findTable("CONTRAT_DISPOSITIF_POLITIQUE"));
|
1488 |
root.getBase().getDataSource().execute(alter.asString());
|
1634 |
root.getBase().getDataSource().execute(alter.asString());
|
1489 |
root.getSchema().updateVersion();
|
1635 |
root.getSchema().updateVersion();
|
1490 |
}
|
1636 |
}
|
- |
|
1637 |
if (!tableContrat.contains("ID_CODE_AMENAGEMENT_PARTIEL")) {
|
- |
|
1638 |
updateContrat = true;
|
- |
|
1639 |
AlterTable alter = new AlterTable(tableContrat);
|
- |
|
1640 |
alter.addForeignColumn("ID_CODE_AMENAGEMENT_PARTIEL", root.findTable("CODE_AMENAGEMENT_PARTIEL"));
|
- |
|
1641 |
alter.addColumn("DATE_DEBUT_SUSPENSION", "date");
|
- |
|
1642 |
alter.addColumn("DATE_FIN_SUSPENSION", "date");
|
- |
|
1643 |
root.getBase().getDataSource().execute(alter.asString());
|
- |
|
1644 |
root.getSchema().updateVersion();
|
- |
|
1645 |
}
|
- |
|
1646 |
|
- |
|
1647 |
if (!tableContrat.contains("ID_CODE_SUSPENSION")) {
|
- |
|
1648 |
updateContrat = true;
|
- |
|
1649 |
AlterTable alter = new AlterTable(tableContrat);
|
- |
|
1650 |
alter.addForeignColumn("ID_CODE_SUSPENSION", root.findTable("CODE_SUSPENSION"));
|
- |
|
1651 |
root.getBase().getDataSource().execute(alter.asString());
|
- |
|
1652 |
root.getSchema().updateVersion();
|
- |
|
1653 |
}
|
1491 |
|
1654 |
|
1492 |
if (updateContrat) {
|
1655 |
if (updateContrat) {
|
1493 |
root.refetchTable("CONTRAT_SALARIE");
|
1656 |
root.refetchTable("CONTRAT_SALARIE");
|
1494 |
tableContrat = root.findTable("CONTRAT_SALARIE");
|
1657 |
tableContrat = root.findTable("CONTRAT_SALARIE");
|
1495 |
SQLSelect sel = new SQLSelect();
|
1658 |
SQLSelect sel = new SQLSelect();
|