-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Aplicação, Relatório e Banco de Dados
- Loading branch information
Showing
12 changed files
with
121 additions
and
7 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
ProjetoAplicacao/ImprimePonto/Relatorio/ImprimeEmpresas.jasper
Binary file not shown.
Binary file modified
BIN
-2 Bytes
(100%)
ProjetoAplicacao/ImprimePonto/Relatorio/ImprimeFuncoes.jasper
Binary file not shown.
Binary file modified
BIN
+10.4 KB
(120%)
ProjetoAplicacao/ImprimePonto/Relatorio/ImprimePontoMes28.jasper
Binary file not shown.
Binary file modified
BIN
+10.8 KB
(120%)
ProjetoAplicacao/ImprimePonto/Relatorio/ImprimePontoMes29.jasper
Binary file not shown.
Binary file modified
BIN
+11.2 KB
(120%)
ProjetoAplicacao/ImprimePonto/Relatorio/ImprimePontoMes30.jasper
Binary file not shown.
Binary file modified
BIN
+11.4 KB
(120%)
ProjetoAplicacao/ImprimePonto/Relatorio/ImprimePontoMes31.jasper
Binary file not shown.
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
102 changes: 102 additions & 0 deletions
102
ProjetoAplicacao/src/main/java/br/com/hoyler/apps/tools/DiaSemana.java
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,102 @@ | ||
package br.com.hoyler.apps.tools; | ||
|
||
import java.text.ParseException; | ||
import java.text.SimpleDateFormat; | ||
import java.time.LocalDate; | ||
import java.util.Calendar; | ||
|
||
public class DiaSemana { | ||
|
||
public static String ChecarDiaSemana(String dia) { | ||
|
||
Calendar data = Calendar.getInstance(); | ||
SimpleDateFormat simpleFormat_DiaMesAno = new SimpleDateFormat("dd/MM/yyyy"); | ||
|
||
String Mes = Integer.toString(LocalDate.now().getMonthValue()); | ||
String Ano = Integer.toString(LocalDate.now().getYear()); | ||
|
||
String DiaMesAno = (String.format("%s/%s/%s", dia, Mes, Ano)); | ||
|
||
try { | ||
data.setTime(simpleFormat_DiaMesAno.parse(DiaMesAno)); | ||
} catch (ParseException e) { | ||
System.out.println(String.format("public class DiaSemana ChecarDiaSemana DATA: %s [ERRO]", DiaMesAno)); | ||
} | ||
|
||
String diaSemana = checaFDS(data); | ||
|
||
return (diaSemana); | ||
} | ||
|
||
public static String checaFDS(Calendar data) { | ||
|
||
String diaSemana = null; | ||
|
||
switch (data.get(Calendar.DAY_OF_WEEK)) { | ||
case (Calendar.SUNDAY): { | ||
diaSemana = ("DOM"); | ||
break; | ||
} | ||
case (Calendar.MONDAY): { | ||
diaSemana = ("SEG"); | ||
break; | ||
} | ||
case (Calendar.TUESDAY): { | ||
diaSemana = ("TER"); | ||
break; | ||
} | ||
case (Calendar.WEDNESDAY): { | ||
diaSemana = ("QUA"); | ||
break; | ||
} | ||
case (Calendar.THURSDAY): { | ||
diaSemana = ("QUI"); | ||
break; | ||
} | ||
case (Calendar.FRIDAY): { | ||
diaSemana = ("SEX"); | ||
break; | ||
} | ||
case (Calendar.SATURDAY): { | ||
diaSemana = ("SAB"); | ||
break; | ||
} | ||
default: | ||
diaSemana = (""); | ||
break; | ||
} | ||
|
||
/* | ||
if (data.get(Calendar.DAY_OF_WEEK) == Calendar.SUNDAY) { | ||
diaSemana = ("DOM"); | ||
} else if (data.get(Calendar.DAY_OF_WEEK) == Calendar.MONDAY) { | ||
diaSemana = ("SEG"); | ||
} else if (data.get(Calendar.DAY_OF_WEEK) == Calendar.TUESDAY) { | ||
diaSemana = ("TER"); | ||
} else if (data.get(Calendar.DAY_OF_WEEK) == Calendar.WEDNESDAY) { | ||
diaSemana = ("QUA"); | ||
} else if (data.get(Calendar.DAY_OF_WEEK) == Calendar.THURSDAY) { | ||
diaSemana = ("QUI"); | ||
} else if (data.get(Calendar.DAY_OF_WEEK) == Calendar.FRIDAY) { | ||
diaSemana = ("SEX"); | ||
} else if (data.get(Calendar.DAY_OF_WEEK) == Calendar.SATURDAY) { | ||
diaSemana = ("SAB"); | ||
} | ||
*/ | ||
return diaSemana; | ||
} | ||
} |
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,3 @@ | ||
/br/ | ||
/org/ | ||
/META-INF/ |
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