-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #527 from uspdev/alecostaweb-issue_520
👍
- Loading branch information
Showing
8 changed files
with
395 additions
and
174 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
SELECT L.codpes, L.nompes, C.codcur, C.nomcur, H.codhab, H.nomhab, V.dtainivin, V.codcurgrd | ||
FROM LOCALIZAPESSOA L | ||
INNER JOIN VINCULOPESSOAUSP V ON (L.codpes = V.codpes) AND (L.codundclg = V.codclg) | ||
INNER JOIN CURSOGR C ON (V.codcurgrd = C.codcur) | ||
INNER JOIN HABILITACAOGR H ON (H.codhab = V.codhab) | ||
WHERE (L.codpes = convert(int,:codpes)) | ||
AND (L.tipvin = 'ALUNOGR' AND L.codundclg IN (__codundclgs__)) | ||
AND (V.codcurgrd = H.codcur AND V.codhab = H.codhab) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
SELECT COUNT(*) total | ||
FROM PESSOA P | ||
INNER JOIN LOCALIZAPESSOA L ON (P.codpes = L.codpes) | ||
WHERE L.codset IN (__codset__) | ||
AND L.codfncetr = 0 -- exclui designados | ||
__filtroAposentados__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
SELECT L.*, P.* FROM LOCALIZAPESSOA L | ||
INNER JOIN PESSOA P ON (L.codpes = P.codpes) | ||
WHERE L.tipvinext = 'Servidor Designado' | ||
AND L.codundclg IN (__codundclgs__) --automatico do env por getQuery | ||
AND L.sitatl = 'A' | ||
AND L.codpes IN | ||
(SELECT codpes | ||
FROM LOCALIZAPESSOA L | ||
WHERE L.tipvinext IN (__tipvinext__) | ||
AND L.codundclg IN (__codundclgs__) | ||
AND L.sitatl = 'A') | ||
ORDER BY L.nompes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
SELECT DISTINCT tipvinext FROM LOCALIZAPESSOA | ||
WHERE codundclg IN (__codundclgs__) | ||
AND (tipvin IN ('ALUNOGR', 'ALUNOPOS', 'ALUNOCEU', 'ALUNOEAD', 'ALUNOPD', 'ALUNOCONVENIOINT', 'SERVIDOR', 'ESTAGIARIORH')) | ||
AND (tipvinext NOT IN ('Servidor Designado', 'Servidor Aposentado')) | ||
ORDER BY tipvinext |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.