Commit 0b6c9c14fa6bf3da0db814d56b990372e63268a2
1 parent
04343250
Exists in
master
removendo arquivos inuteis
Showing
172 changed files
with
0 additions
and
5992 deletions
Show diff stats
cit-alcada-api/.classpath
@@ -1,32 +0,0 @@ | @@ -1,32 +0,0 @@ | ||
1 | -<?xml version="1.0" encoding="UTF-8"?> | ||
2 | -<classpath> | ||
3 | - <classpathentry including="**/*.java" kind="src" output="target/classes" path="src/main/java"> | ||
4 | - <attributes> | ||
5 | - <attribute name="optional" value="true"/> | ||
6 | - <attribute name="maven.pomderived" value="true"/> | ||
7 | - </attributes> | ||
8 | - </classpathentry> | ||
9 | - <classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources"> | ||
10 | - <attributes> | ||
11 | - <attribute name="maven.pomderived" value="true"/> | ||
12 | - </attributes> | ||
13 | - </classpathentry> | ||
14 | - <classpathentry kind="src" output="target/test-classes" path="src/test/java"> | ||
15 | - <attributes> | ||
16 | - <attribute name="optional" value="true"/> | ||
17 | - <attribute name="maven.pomderived" value="true"/> | ||
18 | - </attributes> | ||
19 | - </classpathentry> | ||
20 | - <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"> | ||
21 | - <attributes> | ||
22 | - <attribute name="maven.pomderived" value="true"/> | ||
23 | - </attributes> | ||
24 | - </classpathentry> | ||
25 | - <classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"> | ||
26 | - <attributes> | ||
27 | - <attribute name="maven.pomderived" value="true"/> | ||
28 | - <attribute name="org.eclipse.jst.component.nondependency" value=""/> | ||
29 | - </attributes> | ||
30 | - </classpathentry> | ||
31 | - <classpathentry kind="output" path="target/classes"/> | ||
32 | -</classpath> |
cit-alcada-api/.project
@@ -1,36 +0,0 @@ | @@ -1,36 +0,0 @@ | ||
1 | -<?xml version="1.0" encoding="UTF-8"?> | ||
2 | -<projectDescription> | ||
3 | - <name>cit-alcada-api</name> | ||
4 | - <comment></comment> | ||
5 | - <projects> | ||
6 | - </projects> | ||
7 | - <buildSpec> | ||
8 | - <buildCommand> | ||
9 | - <name>org.eclipse.wst.common.project.facet.core.builder</name> | ||
10 | - <arguments> | ||
11 | - </arguments> | ||
12 | - </buildCommand> | ||
13 | - <buildCommand> | ||
14 | - <name>org.eclipse.jdt.core.javabuilder</name> | ||
15 | - <arguments> | ||
16 | - </arguments> | ||
17 | - </buildCommand> | ||
18 | - <buildCommand> | ||
19 | - <name>org.eclipse.wst.validation.validationbuilder</name> | ||
20 | - <arguments> | ||
21 | - </arguments> | ||
22 | - </buildCommand> | ||
23 | - <buildCommand> | ||
24 | - <name>org.eclipse.m2e.core.maven2Builder</name> | ||
25 | - <arguments> | ||
26 | - </arguments> | ||
27 | - </buildCommand> | ||
28 | - </buildSpec> | ||
29 | - <natures> | ||
30 | - <nature>org.eclipse.jem.workbench.JavaEMFNature</nature> | ||
31 | - <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature> | ||
32 | - <nature>org.eclipse.jdt.core.javanature</nature> | ||
33 | - <nature>org.eclipse.m2e.core.maven2Nature</nature> | ||
34 | - <nature>org.eclipse.wst.common.project.facet.core.nature</nature> | ||
35 | - </natures> | ||
36 | -</projectDescription> |
cit-alcada-api/.settings/org.eclipse.core.resources.prefs
cit-alcada-api/.settings/org.eclipse.jdt.core.prefs
@@ -1,8 +0,0 @@ | @@ -1,8 +0,0 @@ | ||
1 | -eclipse.preferences.version=1 | ||
2 | -org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled | ||
3 | -org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 | ||
4 | -org.eclipse.jdt.core.compiler.compliance=1.7 | ||
5 | -org.eclipse.jdt.core.compiler.problem.assertIdentifier=error | ||
6 | -org.eclipse.jdt.core.compiler.problem.enumIdentifier=error | ||
7 | -org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning | ||
8 | -org.eclipse.jdt.core.compiler.source=1.7 |
cit-alcada-api/.settings/org.eclipse.wst.common.component
@@ -1,6 +0,0 @@ | @@ -1,6 +0,0 @@ | ||
1 | -<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0"> | ||
2 | - <wb-module deploy-name="cit-alcada-api"> | ||
3 | - <wb-resource deploy-path="/" source-path="/src/main/java"/> | ||
4 | - <wb-resource deploy-path="/" source-path="/src/main/resources"/> | ||
5 | - </wb-module> | ||
6 | -</project-modules> |
cit-alcada-api/.settings/org.eclipse.wst.common.project.facet.core.xml
cit-alcada-api/.settings/org.eclipse.wst.validation.prefs
cit-alcada-api/bin/.project
@@ -1,36 +0,0 @@ | @@ -1,36 +0,0 @@ | ||
1 | -<?xml version="1.0" encoding="UTF-8"?> | ||
2 | -<projectDescription> | ||
3 | - <name>cit-alcada-api</name> | ||
4 | - <comment></comment> | ||
5 | - <projects> | ||
6 | - </projects> | ||
7 | - <buildSpec> | ||
8 | - <buildCommand> | ||
9 | - <name>org.eclipse.wst.common.project.facet.core.builder</name> | ||
10 | - <arguments> | ||
11 | - </arguments> | ||
12 | - </buildCommand> | ||
13 | - <buildCommand> | ||
14 | - <name>org.eclipse.jdt.core.javabuilder</name> | ||
15 | - <arguments> | ||
16 | - </arguments> | ||
17 | - </buildCommand> | ||
18 | - <buildCommand> | ||
19 | - <name>org.eclipse.wst.validation.validationbuilder</name> | ||
20 | - <arguments> | ||
21 | - </arguments> | ||
22 | - </buildCommand> | ||
23 | - <buildCommand> | ||
24 | - <name>org.eclipse.m2e.core.maven2Builder</name> | ||
25 | - <arguments> | ||
26 | - </arguments> | ||
27 | - </buildCommand> | ||
28 | - </buildSpec> | ||
29 | - <natures> | ||
30 | - <nature>org.eclipse.jem.workbench.JavaEMFNature</nature> | ||
31 | - <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature> | ||
32 | - <nature>org.eclipse.jdt.core.javanature</nature> | ||
33 | - <nature>org.eclipse.m2e.core.maven2Nature</nature> | ||
34 | - <nature>org.eclipse.wst.common.project.facet.core.nature</nature> | ||
35 | - </natures> | ||
36 | -</projectDescription> |
cit-alcada-api/bin/.settings/org.eclipse.core.resources.prefs
cit-alcada-api/bin/.settings/org.eclipse.jdt.core.prefs
cit-alcada-api/bin/pom.xml
@@ -1,61 +0,0 @@ | @@ -1,61 +0,0 @@ | ||
1 | -<?xml version="1.0" encoding="UTF-8"?> | ||
2 | -<!-- ******************************************************************************************************************** --> | ||
3 | -<!-- * LICENCA*GPLv2 * --> | ||
4 | -<!-- * Copyright [2011,2012,2013,2014,2015] da CentralIT Tecnologia da Informação Ltda (www.centralit.com.br) * --> | ||
5 | -<!-- * * --> | ||
6 | -<!-- * Este arquivo é parte do programa/software: Citsmart (www.citsmart.com.br) * --> | ||
7 | -<!-- * * --> | ||
8 | -<!-- * O Citsmart é um software livre; você pode redistribui-lo e/ou modificá-lo dentro dos termos da Licença * --> | ||
9 | -<!-- * Pública Geral GNU como publicada pela Fundação do Software Livre (FSF); na versão 2 da Licença. * --> | ||
10 | -<!-- * * --> | ||
11 | -<!-- * Este programa/software é distribuído na esperança que possa ser útil, mas SEM NENHUMA GARANTIA; sem uma * --> | ||
12 | -<!-- * garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral * --> | ||
13 | -<!-- * GNU/GPL em português para maiores detalhes. * --> | ||
14 | -<!-- * * --> | ||
15 | -<!-- * Você deve ter recebido uma cópia da Licença Pública Geral GNU, sob o título 'LICENCA.txt', junto com este * --> | ||
16 | -<!-- * programa/software, se não, acesse o Portal do Software Público Brasileiro no endereço www.softwarepublico.gov.br * --> | ||
17 | -<!-- * ou escreva para a Fundação do Software Livre (FSF) Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301,USA * --> | ||
18 | -<!-- ******************************************************************************************************************** --> | ||
19 | -<project | ||
20 | - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" | ||
21 | - xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | ||
22 | - <modelVersion>4.0.0</modelVersion> | ||
23 | - | ||
24 | - <parent> | ||
25 | - <groupId>br.com.centralit</groupId> | ||
26 | - <artifactId>cit-alcada</artifactId> | ||
27 | - <version>1.8.0-SNAPSHOT</version> | ||
28 | - </parent> | ||
29 | - | ||
30 | - <artifactId>cit-alcada-api</artifactId> | ||
31 | - <name>cit-alcada-api</name> | ||
32 | - | ||
33 | - <properties> | ||
34 | - <findbugs.config.path>${project.parent.parent.parent.basedir}/filterfile.xml</findbugs.config.path> | ||
35 | - <license.config.path>${project.parent.parent.basedir}/src/licensing</license.config.path> | ||
36 | - <maven-antrun-plugin.phase>package</maven-antrun-plugin.phase> | ||
37 | - </properties> | ||
38 | - | ||
39 | - <dependencies> | ||
40 | - <dependency> | ||
41 | - <groupId>br.com.centralit</groupId> | ||
42 | - <artifactId>cit-core</artifactId> | ||
43 | - <version>${cit-core.version}</version> | ||
44 | - </dependency> | ||
45 | - <dependency> | ||
46 | - <groupId>br.com.centralit</groupId> | ||
47 | - <artifactId>cit-portal-api</artifactId> | ||
48 | - <version>${project.version}</version> | ||
49 | - </dependency> | ||
50 | - <dependency> | ||
51 | - <groupId>br.com.centralit</groupId> | ||
52 | - <artifactId>cit-tabelas-corp-api</artifactId> | ||
53 | - <version>${project.version}</version> | ||
54 | - </dependency> | ||
55 | - <dependency> | ||
56 | - <groupId>org.json</groupId> | ||
57 | - <artifactId>json</artifactId> | ||
58 | - </dependency> | ||
59 | - </dependencies> | ||
60 | -</project> | ||
61 | - |
cit-alcada-api/bin/src/main/java/br/com/centralit/api/dao/CentroResultadoDelegacaoDao.class
No preview for this file type
cit-alcada-api/bin/src/main/java/br/com/centralit/api/dao/LimiteAprovacaoAlcadaDao.class
No preview for this file type
cit-alcada-api/bin/src/main/java/br/com/centralit/api/dao/LimiteAprovacaoDao.class
No preview for this file type
cit-alcada-api/bin/src/main/java/br/com/centralit/api/dao/LimiteAprovacaoNivelAutoridadeDao.class
No preview for this file type
cit-alcada-api/bin/src/main/java/br/com/centralit/api/dao/LimiteAprovacaoValorDao.class
No preview for this file type
cit-alcada-api/bin/src/main/java/br/com/centralit/api/dao/SolicitacaoAlcadaDao.class
No preview for this file type
cit-alcada-api/bin/src/main/java/br/com/centralit/api/dao/impl/CentroResultadoDelegacaoDaoHibernate.class
No preview for this file type
cit-alcada-api/bin/src/main/java/br/com/centralit/api/dao/impl/LimiteAprovacaoAlcadaDaoHibernate.class
No preview for this file type
cit-alcada-api/bin/src/main/java/br/com/centralit/api/dao/impl/LimiteAprovacaoDaoHibernate.class
No preview for this file type
cit-alcada-api/bin/src/main/java/br/com/centralit/api/dao/impl/LimiteAprovacaoNivelAutoridadeDaoHibernate.class
No preview for this file type
cit-alcada-api/bin/src/main/java/br/com/centralit/api/dao/impl/LimiteAprovacaoValorDaoHibernate.class
No preview for this file type
cit-alcada-api/bin/src/main/java/br/com/centralit/api/dao/impl/SolicitacaoAlcadaDaoHibernate.class
No preview for this file type
cit-alcada-api/bin/src/main/java/br/com/centralit/api/framework/json/ViewsAlcada$AlcadaView.class
No preview for this file type
cit-alcada-api/bin/src/main/java/br/com/centralit/api/framework/json/ViewsAlcada$LimiteAprovacaoView.class
No preview for this file type
cit-alcada-api/bin/src/main/java/br/com/centralit/api/framework/json/ViewsAlcada$RecuperacaoAlcadaView.class
No preview for this file type
cit-alcada-api/bin/src/main/java/br/com/centralit/api/framework/json/ViewsAlcada.class
No preview for this file type
cit-alcada-api/bin/src/main/java/br/com/centralit/api/model/LimiteAprovacao.class
No preview for this file type
cit-alcada-api/bin/src/main/java/br/com/centralit/api/model/LimiteAprovacaoAlcada.class
No preview for this file type
cit-alcada-api/bin/src/main/java/br/com/centralit/api/model/LimiteAprovacaoNivelAutoridade.class
No preview for this file type
cit-alcada-api/bin/src/main/java/br/com/centralit/api/model/LimiteAprovacaoValor.class
No preview for this file type
cit-alcada-api/bin/src/main/java/br/com/centralit/api/model/ResponsavelAlcada.class
No preview for this file type
cit-alcada-api/bin/src/main/java/br/com/centralit/api/model/SolicitacaoAlcada.class
No preview for this file type
cit-alcada-api/bin/src/main/java/br/com/centralit/api/model/ValorAcumulado.class
No preview for this file type
cit-alcada-api/bin/src/main/java/br/com/centralit/api/package-info.class
No preview for this file type
cit-alcada-api/bin/src/main/java/br/com/centralit/api/service/CentroResultadoDelegacaoService.class
No preview for this file type
cit-alcada-api/bin/src/main/java/br/com/centralit/api/service/LimiteAprovacaoAlcadaService.class
No preview for this file type
cit-alcada-api/bin/src/main/java/br/com/centralit/api/service/LimiteAprovacaoNivelAutoridadeService.class
No preview for this file type
cit-alcada-api/bin/src/main/java/br/com/centralit/api/service/LimiteAprovacaoService.class
No preview for this file type
cit-alcada-api/bin/src/main/java/br/com/centralit/api/service/LimiteAprovacaoValorService.class
No preview for this file type
cit-alcada-api/bin/src/main/java/br/com/centralit/api/service/SolicitacaoAlcadaService.class
No preview for this file type
cit-alcada-api/bin/src/main/java/br/com/centralit/api/service/impl/CentroResultadoDelegacaoServiceImpl.class
No preview for this file type
cit-alcada-api/bin/src/main/java/br/com/centralit/api/service/impl/InicializarAlcadaServiceImpl.class
No preview for this file type
cit-alcada-api/bin/src/main/java/br/com/centralit/api/service/impl/LimiteAprovacaoAlcadaServiceImpl.class
No preview for this file type
cit-alcada-api/bin/src/main/java/br/com/centralit/api/service/impl/LimiteAprovacaoNivelAutoridadeServiceImpl.class
No preview for this file type
cit-alcada-api/bin/src/main/java/br/com/centralit/api/service/impl/LimiteAprovacaoServiceImpl.class
No preview for this file type
cit-alcada-api/bin/src/main/java/br/com/centralit/api/service/impl/LimiteAprovacaoValorServiceImpl.class
No preview for this file type
cit-alcada-api/bin/src/main/java/br/com/centralit/api/service/impl/SolicitacaoAlcadaServiceImpl.class
No preview for this file type
cit-alcada-api/bin/src/main/java/br/com/centralit/api/service/validation/CentroResultadoDelegacaoValidator.class
No preview for this file type
cit-alcada-api/bin/src/main/java/br/com/centralit/api/service/validation/LimiteAprovacaoAlcadaValidator.class
No preview for this file type
cit-alcada-api/bin/src/main/java/br/com/centralit/api/service/validation/LimiteAprovacaoNivelAutoridadeValidator.class
No preview for this file type
cit-alcada-api/bin/src/main/java/br/com/centralit/api/service/validation/LimiteAprovacaoValidator.class
No preview for this file type
cit-alcada-api/bin/src/main/java/br/com/centralit/api/service/validation/LimiteAprovacaoValorValidator.class
No preview for this file type
cit-alcada-api/bin/src/main/java/br/com/centralit/api/service/validation/SolicitacaoAlcadaValidator.class
No preview for this file type
cit-alcada-api/bin/src/main/resources/.gitignore
@@ -1 +0,0 @@ | @@ -1 +0,0 @@ | ||
1 | -/*.tag |
cit-alcada-api/bin/target/classes/META-INF/MANIFEST.MF
cit-alcada-api/bin/target/classes/META-INF/maven/br.com.centralit/cit-alcada-api/pom.properties
@@ -1,7 +0,0 @@ | @@ -1,7 +0,0 @@ | ||
1 | -#Generated by Maven Integration for Eclipse | ||
2 | -#Thu Mar 17 13:13:12 BRT 2016 | ||
3 | -version=1.8.0-SNAPSHOT | ||
4 | -groupId=br.com.centralit | ||
5 | -m2e.projectName=cit-alcada-api | ||
6 | -m2e.projectLocation=D\:\\repositorios_git\\citsmartgrp\\cit-alcada\\cit-alcada-api | ||
7 | -artifactId=cit-alcada-api |
cit-alcada-api/bin/target/classes/META-INF/maven/br.com.centralit/cit-alcada-api/pom.xml
@@ -1,61 +0,0 @@ | @@ -1,61 +0,0 @@ | ||
1 | -<?xml version="1.0" encoding="UTF-8"?> | ||
2 | -<!-- ******************************************************************************************************************** --> | ||
3 | -<!-- * LICENCA*GPLv2 * --> | ||
4 | -<!-- * Copyright [2011,2012,2013,2014,2015] da CentralIT Tecnologia da Informação Ltda (www.centralit.com.br) * --> | ||
5 | -<!-- * * --> | ||
6 | -<!-- * Este arquivo é parte do programa/software: Citsmart (www.citsmart.com.br) * --> | ||
7 | -<!-- * * --> | ||
8 | -<!-- * O Citsmart é um software livre; você pode redistribui-lo e/ou modificá-lo dentro dos termos da Licença * --> | ||
9 | -<!-- * Pública Geral GNU como publicada pela Fundação do Software Livre (FSF); na versão 2 da Licença. * --> | ||
10 | -<!-- * * --> | ||
11 | -<!-- * Este programa/software é distribuído na esperança que possa ser útil, mas SEM NENHUMA GARANTIA; sem uma * --> | ||
12 | -<!-- * garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral * --> | ||
13 | -<!-- * GNU/GPL em português para maiores detalhes. * --> | ||
14 | -<!-- * * --> | ||
15 | -<!-- * Você deve ter recebido uma cópia da Licença Pública Geral GNU, sob o título 'LICENCA.txt', junto com este * --> | ||
16 | -<!-- * programa/software, se não, acesse o Portal do Software Público Brasileiro no endereço www.softwarepublico.gov.br * --> | ||
17 | -<!-- * ou escreva para a Fundação do Software Livre (FSF) Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301,USA * --> | ||
18 | -<!-- ******************************************************************************************************************** --> | ||
19 | -<project | ||
20 | - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" | ||
21 | - xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | ||
22 | - <modelVersion>4.0.0</modelVersion> | ||
23 | - | ||
24 | - <parent> | ||
25 | - <groupId>br.com.centralit</groupId> | ||
26 | - <artifactId>cit-alcada</artifactId> | ||
27 | - <version>1.8.0-SNAPSHOT</version> | ||
28 | - </parent> | ||
29 | - | ||
30 | - <artifactId>cit-alcada-api</artifactId> | ||
31 | - <name>cit-alcada-api</name> | ||
32 | - | ||
33 | - <properties> | ||
34 | - <findbugs.config.path>${project.parent.parent.parent.basedir}/filterfile.xml</findbugs.config.path> | ||
35 | - <license.config.path>${project.parent.parent.basedir}/src/licensing</license.config.path> | ||
36 | - <maven-antrun-plugin.phase>package</maven-antrun-plugin.phase> | ||
37 | - </properties> | ||
38 | - | ||
39 | - <dependencies> | ||
40 | - <dependency> | ||
41 | - <groupId>br.com.centralit</groupId> | ||
42 | - <artifactId>cit-core</artifactId> | ||
43 | - <version>${cit-core.version}</version> | ||
44 | - </dependency> | ||
45 | - <dependency> | ||
46 | - <groupId>br.com.centralit</groupId> | ||
47 | - <artifactId>cit-portal-api</artifactId> | ||
48 | - <version>${project.version}</version> | ||
49 | - </dependency> | ||
50 | - <dependency> | ||
51 | - <groupId>br.com.centralit</groupId> | ||
52 | - <artifactId>cit-tabelas-corp-api</artifactId> | ||
53 | - <version>${project.version}</version> | ||
54 | - </dependency> | ||
55 | - <dependency> | ||
56 | - <groupId>org.json</groupId> | ||
57 | - <artifactId>json</artifactId> | ||
58 | - </dependency> | ||
59 | - </dependencies> | ||
60 | -</project> | ||
61 | - |
cit-alcada-web/.classpath
@@ -1,42 +0,0 @@ | @@ -1,42 +0,0 @@ | ||
1 | -<?xml version="1.0" encoding="UTF-8"?> | ||
2 | -<classpath> | ||
3 | - <classpathentry including="**/*.java" kind="src" output="target/classes" path="src/main/java"> | ||
4 | - <attributes> | ||
5 | - <attribute name="optional" value="true"/> | ||
6 | - <attribute name="maven.pomderived" value="true"/> | ||
7 | - </attributes> | ||
8 | - </classpathentry> | ||
9 | - <classpathentry excluding="**" kind="src" output="target/classes" path="src/main/webapp"> | ||
10 | - <attributes> | ||
11 | - <attribute name="maven.pomderived" value="true"/> | ||
12 | - </attributes> | ||
13 | - </classpathentry> | ||
14 | - <classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources"> | ||
15 | - <attributes> | ||
16 | - <attribute name="maven.pomderived" value="true"/> | ||
17 | - </attributes> | ||
18 | - </classpathentry> | ||
19 | - <classpathentry kind="src" output="target/test-classes" path="src/test/java"> | ||
20 | - <attributes> | ||
21 | - <attribute name="optional" value="true"/> | ||
22 | - <attribute name="maven.pomderived" value="true"/> | ||
23 | - </attributes> | ||
24 | - </classpathentry> | ||
25 | - <classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources"> | ||
26 | - <attributes> | ||
27 | - <attribute name="maven.pomderived" value="true"/> | ||
28 | - </attributes> | ||
29 | - </classpathentry> | ||
30 | - <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"> | ||
31 | - <attributes> | ||
32 | - <attribute name="maven.pomderived" value="true"/> | ||
33 | - </attributes> | ||
34 | - </classpathentry> | ||
35 | - <classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"> | ||
36 | - <attributes> | ||
37 | - <attribute name="maven.pomderived" value="true"/> | ||
38 | - <attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/> | ||
39 | - </attributes> | ||
40 | - </classpathentry> | ||
41 | - <classpathentry kind="output" path="target/classes"/> | ||
42 | -</classpath> |
cit-alcada-web/.project
@@ -1,52 +0,0 @@ | @@ -1,52 +0,0 @@ | ||
1 | -<?xml version="1.0" encoding="UTF-8"?> | ||
2 | -<projectDescription> | ||
3 | - <name>cit-alcada-web</name> | ||
4 | - <comment></comment> | ||
5 | - <projects> | ||
6 | - </projects> | ||
7 | - <buildSpec> | ||
8 | - <buildCommand> | ||
9 | - <name>org.eclipse.ui.externaltools.ExternalToolBuilder</name> | ||
10 | - <triggers>full,incremental,</triggers> | ||
11 | - <arguments> | ||
12 | - <dictionary> | ||
13 | - <key>LaunchConfigHandle</key> | ||
14 | - <value><project>/.externalToolBuilders/org.eclipse.wst.jsdt.core.javascriptValidator (2).launch</value> | ||
15 | - </dictionary> | ||
16 | - </arguments> | ||
17 | - </buildCommand> | ||
18 | - <buildCommand> | ||
19 | - <name>org.eclipse.jdt.core.javabuilder</name> | ||
20 | - <arguments> | ||
21 | - </arguments> | ||
22 | - </buildCommand> | ||
23 | - <buildCommand> | ||
24 | - <name>org.eclipse.wst.common.project.facet.core.builder</name> | ||
25 | - <arguments> | ||
26 | - </arguments> | ||
27 | - </buildCommand> | ||
28 | - <buildCommand> | ||
29 | - <name>org.eclipse.ui.externaltools.ExternalToolBuilder</name> | ||
30 | - <triggers>full,incremental,</triggers> | ||
31 | - <arguments> | ||
32 | - <dictionary> | ||
33 | - <key>LaunchConfigHandle</key> | ||
34 | - <value><project>/.externalToolBuilders/org.eclipse.wst.validation.validationbuilder (2).launch</value> | ||
35 | - </dictionary> | ||
36 | - </arguments> | ||
37 | - </buildCommand> | ||
38 | - <buildCommand> | ||
39 | - <name>org.eclipse.m2e.core.maven2Builder</name> | ||
40 | - <arguments> | ||
41 | - </arguments> | ||
42 | - </buildCommand> | ||
43 | - </buildSpec> | ||
44 | - <natures> | ||
45 | - <nature>org.eclipse.jem.workbench.JavaEMFNature</nature> | ||
46 | - <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature> | ||
47 | - <nature>org.eclipse.jdt.core.javanature</nature> | ||
48 | - <nature>org.eclipse.m2e.core.maven2Nature</nature> | ||
49 | - <nature>org.eclipse.wst.common.project.facet.core.nature</nature> | ||
50 | - <nature>org.eclipse.wst.jsdt.core.jsNature</nature> | ||
51 | - </natures> | ||
52 | -</projectDescription> |
cit-alcada-web/.settings/org.eclipse.core.resources.prefs
cit-alcada-web/.settings/org.eclipse.jdt.core.prefs
@@ -1,8 +0,0 @@ | @@ -1,8 +0,0 @@ | ||
1 | -eclipse.preferences.version=1 | ||
2 | -org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled | ||
3 | -org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 | ||
4 | -org.eclipse.jdt.core.compiler.compliance=1.7 | ||
5 | -org.eclipse.jdt.core.compiler.problem.assertIdentifier=error | ||
6 | -org.eclipse.jdt.core.compiler.problem.enumIdentifier=error | ||
7 | -org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning | ||
8 | -org.eclipse.jdt.core.compiler.source=1.7 |
cit-alcada-web/.settings/org.eclipse.wst.common.component
@@ -1,26 +0,0 @@ | @@ -1,26 +0,0 @@ | ||
1 | -<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0"> | ||
2 | - <wb-module deploy-name="cit-alcada-web"> | ||
3 | - <wb-resource deploy-path="/" source-path="/target/m2e-wtp/web-resources"/> | ||
4 | - <wb-resource deploy-path="/" source-path="/src/main/webapp" tag="defaultRootSource"/> | ||
5 | - <wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/> | ||
6 | - <wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/resources"/> | ||
7 | - <wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/webapp"/> | ||
8 | - <dependent-module archiveName="cit-alcada-api-1.8.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/cit-alcada-api/cit-alcada-api"> | ||
9 | - <dependency-type>uses</dependency-type> | ||
10 | - </dependent-module> | ||
11 | - <dependent-module archiveName="cit-portal-api-1.8.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/cit-portal-api/cit-portal-api"> | ||
12 | - <dependency-type>uses</dependency-type> | ||
13 | - </dependent-module> | ||
14 | - <dependent-module archiveName="cit-tabelas-corp-api-1.8.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/cit-tabelas-corp-api/cit-tabelas-corp-api"> | ||
15 | - <dependency-type>uses</dependency-type> | ||
16 | - </dependent-module> | ||
17 | - <dependent-module archiveName="cit-core-1.8.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/cit-core/cit-core"> | ||
18 | - <dependency-type>uses</dependency-type> | ||
19 | - </dependent-module> | ||
20 | - <dependent-module archiveName="cit-esi-io-1.8.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/cit-esi-io/cit-esi-io"> | ||
21 | - <dependency-type>uses</dependency-type> | ||
22 | - </dependent-module> | ||
23 | - <property name="context-root" value="cit-alcada-web"/> | ||
24 | - <property name="java-output-path" value="/cit-alcada-web/target/classes"/> | ||
25 | - </wb-module> | ||
26 | -</project-modules> |
cit-alcada-web/.settings/org.eclipse.wst.common.project.facet.core.xml
cit-alcada-web/.settings/org.eclipse.wst.validation.prefs
cit-alcada-web/bin/.project
@@ -1,52 +0,0 @@ | @@ -1,52 +0,0 @@ | ||
1 | -<?xml version="1.0" encoding="UTF-8"?> | ||
2 | -<projectDescription> | ||
3 | - <name>cit-alcada-web</name> | ||
4 | - <comment></comment> | ||
5 | - <projects> | ||
6 | - </projects> | ||
7 | - <buildSpec> | ||
8 | - <buildCommand> | ||
9 | - <name>org.eclipse.ui.externaltools.ExternalToolBuilder</name> | ||
10 | - <triggers>full,incremental,</triggers> | ||
11 | - <arguments> | ||
12 | - <dictionary> | ||
13 | - <key>LaunchConfigHandle</key> | ||
14 | - <value><project>/.externalToolBuilders/org.eclipse.wst.jsdt.core.javascriptValidator (2).launch</value> | ||
15 | - </dictionary> | ||
16 | - </arguments> | ||
17 | - </buildCommand> | ||
18 | - <buildCommand> | ||
19 | - <name>org.eclipse.jdt.core.javabuilder</name> | ||
20 | - <arguments> | ||
21 | - </arguments> | ||
22 | - </buildCommand> | ||
23 | - <buildCommand> | ||
24 | - <name>org.eclipse.wst.common.project.facet.core.builder</name> | ||
25 | - <arguments> | ||
26 | - </arguments> | ||
27 | - </buildCommand> | ||
28 | - <buildCommand> | ||
29 | - <name>org.eclipse.ui.externaltools.ExternalToolBuilder</name> | ||
30 | - <triggers>full,incremental,</triggers> | ||
31 | - <arguments> | ||
32 | - <dictionary> | ||
33 | - <key>LaunchConfigHandle</key> | ||
34 | - <value><project>/.externalToolBuilders/org.eclipse.wst.validation.validationbuilder (2).launch</value> | ||
35 | - </dictionary> | ||
36 | - </arguments> | ||
37 | - </buildCommand> | ||
38 | - <buildCommand> | ||
39 | - <name>org.eclipse.m2e.core.maven2Builder</name> | ||
40 | - <arguments> | ||
41 | - </arguments> | ||
42 | - </buildCommand> | ||
43 | - </buildSpec> | ||
44 | - <natures> | ||
45 | - <nature>org.eclipse.jem.workbench.JavaEMFNature</nature> | ||
46 | - <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature> | ||
47 | - <nature>org.eclipse.jdt.core.javanature</nature> | ||
48 | - <nature>org.eclipse.m2e.core.maven2Nature</nature> | ||
49 | - <nature>org.eclipse.wst.common.project.facet.core.nature</nature> | ||
50 | - <nature>org.eclipse.wst.jsdt.core.jsNature</nature> | ||
51 | - </natures> | ||
52 | -</projectDescription> |
cit-alcada-web/bin/.settings/org.eclipse.core.resources.prefs
cit-alcada-web/bin/.settings/org.eclipse.jdt.core.prefs
cit-alcada-web/bin/pom.xml
@@ -1,49 +0,0 @@ | @@ -1,49 +0,0 @@ | ||
1 | -<?xml version="1.0" encoding="UTF-8"?> | ||
2 | -<!-- ******************************************************************************************************************** --> | ||
3 | -<!-- * LICENCA*GPLv2 * --> | ||
4 | -<!-- * Copyright [2011,2012,2013,2014,2015] da CentralIT Tecnologia da Informação Ltda (www.centralit.com.br) * --> | ||
5 | -<!-- * * --> | ||
6 | -<!-- * Este arquivo é parte do programa/software: Citsmart (www.citsmart.com.br) * --> | ||
7 | -<!-- * * --> | ||
8 | -<!-- * O Citsmart é um software livre; você pode redistribui-lo e/ou modificá-lo dentro dos termos da Licença * --> | ||
9 | -<!-- * Pública Geral GNU como publicada pela Fundação do Software Livre (FSF); na versão 2 da Licença. * --> | ||
10 | -<!-- * * --> | ||
11 | -<!-- * Este programa/software é distribuído na esperança que possa ser útil, mas SEM NENHUMA GARANTIA; sem uma * --> | ||
12 | -<!-- * garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral * --> | ||
13 | -<!-- * GNU/GPL em português para maiores detalhes. * --> | ||
14 | -<!-- * * --> | ||
15 | -<!-- * Você deve ter recebido uma cópia da Licença Pública Geral GNU, sob o título 'LICENCA.txt', junto com este * --> | ||
16 | -<!-- * programa/software, se não, acesse o Portal do Software Público Brasileiro no endereço www.softwarepublico.gov.br * --> | ||
17 | -<!-- * ou escreva para a Fundação do Software Livre (FSF) Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301,USA * --> | ||
18 | -<!-- ******************************************************************************************************************** --> | ||
19 | -<project | ||
20 | - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" | ||
21 | - xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | ||
22 | - <modelVersion>4.0.0</modelVersion> | ||
23 | - | ||
24 | - <parent> | ||
25 | - <groupId>br.com.centralit</groupId> | ||
26 | - <artifactId>cit-alcada</artifactId> | ||
27 | - <version>1.8.0-SNAPSHOT</version> | ||
28 | - </parent> | ||
29 | - | ||
30 | - <artifactId>cit-alcada-web</artifactId> | ||
31 | - <packaging>war</packaging> | ||
32 | - <name>cit-alcada-web</name> | ||
33 | - | ||
34 | - <properties> | ||
35 | - <findbugs.config.path>${project.parent.parent.parent.basedir}/filterfile.xml</findbugs.config.path> | ||
36 | - <license.config.path>${project.parent.parent.basedir}/src/licensing</license.config.path> | ||
37 | - <maven-antrun-plugin.phase>package</maven-antrun-plugin.phase> | ||
38 | - <minify-maven-plugin.phase>prepare-package</minify-maven-plugin.phase> | ||
39 | - </properties> | ||
40 | - | ||
41 | - <dependencies> | ||
42 | - <dependency> | ||
43 | - <groupId>br.com.centralit</groupId> | ||
44 | - <artifactId>cit-alcada-api</artifactId> | ||
45 | - <version>${project.version}</version> | ||
46 | - </dependency> | ||
47 | - </dependencies> | ||
48 | - | ||
49 | -</project> |
cit-alcada-web/bin/src/main/java/br/com/centralit/controller/CentroResultadoAlcadaResponsavelController.class
No preview for this file type
cit-alcada-web/bin/src/main/java/br/com/centralit/controller/CentroResultadoController.class
No preview for this file type
cit-alcada-web/bin/src/main/java/br/com/centralit/controller/CentroResultadoDelegacaoController.class
No preview for this file type
cit-alcada-web/bin/src/main/java/br/com/centralit/controller/CentroResultadoResponsavelAlcadaController.class
No preview for this file type
cit-alcada-web/bin/src/main/java/br/com/centralit/controller/CentroResultadoResponsavelController.class
No preview for this file type
cit-alcada-web/bin/src/main/java/br/com/centralit/controller/CentroResultadoSubstituicaoController.class
No preview for this file type
cit-alcada-web/bin/src/main/java/br/com/centralit/controller/InicializarAlcadaController.class
No preview for this file type
cit-alcada-web/bin/src/main/java/br/com/centralit/controller/LimiteAprovacaoController.class
No preview for this file type
cit-alcada-web/bin/src/main/java/br/com/centralit/controller/SolicitacaoAlcadaController.class
No preview for this file type
cit-alcada-web/bin/src/main/java/br/com/centralit/controller/UsuarioAlcadaController.class
No preview for this file type
cit-alcada-web/bin/src/main/java/br/com/centralit/controller/ViewCentroResultadoResponsavelController.class
No preview for this file type
cit-alcada-web/bin/src/main/java/br/com/centralit/controller/package-info.class
No preview for this file type
cit-alcada-web/bin/src/main/java/br/com/centralit/listener/StartupListenerAlcada.class
No preview for this file type
cit-alcada-web/bin/src/main/resources/.gitignore
@@ -1 +0,0 @@ | @@ -1 +0,0 @@ | ||
1 | -/*.tag |
cit-alcada-web/bin/src/main/resources/log4j.properties
@@ -1,21 +0,0 @@ | @@ -1,21 +0,0 @@ | ||
1 | -# Root logger option | ||
2 | -log4j.rootLogger=INFO, file, stdout | ||
3 | - | ||
4 | -# Direct log messages to a log file | ||
5 | -log4j.appender.file=org.apache.log4j.RollingFileAppender | ||
6 | -log4j.appender.file.File=${project.build.directory}/log/${project.name}.log | ||
7 | -log4j.appender.file.MaxFileSize=5MB | ||
8 | -log4j.appender.file.MaxBackupIndex=10 | ||
9 | -log4j.appender.file.layout=org.apache.log4j.PatternLayout | ||
10 | -log4j.appender.file.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n | ||
11 | - | ||
12 | -# Direct log messages to stdout | ||
13 | -log4j.appender.stdout=org.apache.log4j.ConsoleAppender | ||
14 | -log4j.appender.stdout.Target=System.out | ||
15 | -log4j.appender.stdout.layout=org.apache.log4j.PatternLayout | ||
16 | -log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n | ||
17 | - | ||
18 | -#Frameworks to logging | ||
19 | -log4j.logger.org.springframework=DEBUG | ||
20 | -log4j.logger.org.hibernate=INFO | ||
21 | -log4j.logger.org.hibernate.type=trace | ||
22 | \ No newline at end of file | 0 | \ No newline at end of file |
cit-alcada-web/bin/src/main/resources/scripts-db/vw_centroresultadoresponsavel_sqlserver.sql
@@ -1,103 +0,0 @@ | @@ -1,103 +0,0 @@ | ||
1 | - | ||
2 | -/* Nova versão da View, inclusão da coluna virtual delegacao com os valores "S/N". Tratar concatenação | ||
3 | -IF NOT EXISTS (SELECT * FROM sys.views WHERE object_id = OBJECT_ID(N'[dbo].[vw_centroresultadoresponsavel]')) | ||
4 | - EXEC sp_executesql concat(N'CREATE VIEW [dbo].[vw_centroresultadoresponsavel] | ||
5 | - AS | ||
6 | - SELECT dbo.Alcada.identificador AS alcada, dbo.CentroResultado.codigoSistemaOrigem AS centro_resultado, dbo.seguranca_usuario.username AS usuario, | ||
7 | - dbo.CentroResultadoResponsavel.dataCriacao AS data_inicio, dbo.CentroResultadoResponsavel.dataInativo AS data_inativo, | ||
8 | - dbo.NivelAutoridade.nome AS nivel_autoridade, ', N'N', N' as delegacao | ||
9 | - FROM dbo.CentroResultadoResponsavel INNER JOIN | ||
10 | - dbo.CentroResultado ON dbo.CentroResultado.id = dbo.CentroResultadoResponsavel.centroResultado_id INNER JOIN | ||
11 | - dbo.CentroResultadoResponsavelAlcada ON | ||
12 | - dbo.CentroResultadoResponsavelAlcada.centroResultadoResponsavel_id = dbo.CentroResultadoResponsavel.id INNER JOIN | ||
13 | - dbo.Alcada ON dbo.Alcada.id = dbo.CentroResultadoResponsavelAlcada.alcada_id INNER JOIN | ||
14 | - dbo.Parceiro ON dbo.Parceiro.id = dbo.CentroResultadoResponsavel.responsavel_id INNER JOIN | ||
15 | - dbo.Pessoa ON dbo.Pessoa.id = dbo.Parceiro.pessoa_id INNER JOIN | ||
16 | - dbo.seguranca_usuario ON dbo.seguranca_usuario.id = dbo.Pessoa.usuario_id INNER JOIN | ||
17 | - dbo.AlcadaNivelAutoridade ON dbo.AlcadaNivelAutoridade.alcada_id = dbo.Alcada.id INNER JOIN | ||
18 | - dbo.NivelAutoridade ON dbo.NivelAutoridade.id = dbo.AlcadaNivelAutoridade.nivelAutoridade_id | ||
19 | - WHERE dbo.NivelAutoridade.hierarquia = | ||
20 | - (SELECT MIN(t1.hierarquia) | ||
21 | - FROM dbo.NivelAutoridade t1 INNER JOIN | ||
22 | - dbo.AlcadaNivelAutoridade t2 ON t2.nivelautoridade_id = t1.id AND t2.alcada_id = Alcada.id INNER JOIN | ||
23 | - dbo.NivelAutoridadeGrupo t3 ON t3.nivelAutoridade_id = t1.id INNER JOIN | ||
24 | - dbo.GrupoUsuario t4 ON t4.usuario_id = seguranca_usuario.id AND t4.grupo_id = t3.grupo_id | ||
25 | - where t2.datainativo is null and t3.datainativo is null and t4.datainativo is null) | ||
26 | - and AlcadaNivelAutoridade.dataInativo is null | ||
27 | - UNION ALL | ||
28 | - SELECT dbo.Alcada.identificador AS alcada, dbo.CentroResultado.codigoSistemaOrigem AS centro_resultado, dbo.seguranca_usuario.username AS usuario, | ||
29 | - dbo.centroresultadodelegacao.datainiciodelegacao AS data_inicio, coalesce(centroresultadodelegacao.datarevogacao,centroresultadodelegacao.datafimdelegacao) AS data_inativo, | ||
30 | - dbo.NivelAutoridade.nome AS nivel_autoridade, ', N'S', N' as delegacao | ||
31 | - FROM dbo.centroresultadodelegacao INNER JOIN | ||
32 | - dbo.CentroResultadoResponsavelAlcada ON | ||
33 | - dbo.centroresultadodelegacao.centroResultadoResponsavelAlcada_id = CentroResultadoResponsavelAlcada.id INNER JOIN | ||
34 | - dbo.CentroResultadoResponsavel ON dbo.CentroResultadoResponsavel.id = dbo.CentroResultadoResponsavelAlcada.centroresultadoresponsavel_id INNER JOIN | ||
35 | - dbo.CentroResultado ON dbo.CentroResultado.id = dbo.CentroResultadoResponsavel.centroResultado_id INNER JOIN | ||
36 | - dbo.Alcada ON dbo.Alcada.id = dbo.CentroResultadoResponsavelAlcada.alcada_id INNER JOIN | ||
37 | - dbo.Parceiro ON dbo.Parceiro.id = dbo.centroresultadodelegacao.delegado_id INNER JOIN | ||
38 | - dbo.Pessoa ON dbo.Pessoa.id = dbo.Parceiro.pessoa_id INNER JOIN | ||
39 | - dbo.seguranca_usuario ON dbo.seguranca_usuario.id = dbo.Pessoa.usuario_id INNER JOIN | ||
40 | - dbo.AlcadaNivelAutoridade ON dbo.AlcadaNivelAutoridade.alcada_id = dbo.Alcada.id INNER JOIN | ||
41 | - dbo.NivelAutoridade ON dbo.NivelAutoridade.id = dbo.AlcadaNivelAutoridade.nivelAutoridade_id INNER JOIN | ||
42 | - dbo.Parceiro parc ON parc.id = dbo.centroresultadoresponsavel.responsavel_id INNER JOIN | ||
43 | - dbo.Pessoa pes ON pes.id = parc.pessoa_id | ||
44 | - WHERE dbo.NivelAutoridade.hierarquia = | ||
45 | - (SELECT MIN(t1.hierarquia) | ||
46 | - FROM dbo.NivelAutoridade t1 INNER JOIN | ||
47 | - dbo.AlcadaNivelAutoridade t2 ON t2.nivelautoridade_id = t1.id AND t2.alcada_id = Alcada.id INNER JOIN | ||
48 | - dbo.NivelAutoridadeGrupo t3 ON t3.nivelAutoridade_id = t1.id INNER JOIN | ||
49 | - dbo.GrupoUsuario t4 ON t4.usuario_id = pes.usuario_id AND t4.grupo_id = t3.grupo_id | ||
50 | - where t2.datainativo is null and t3.datainativo is null and t4.datainativo is null) | ||
51 | - and AlcadaNivelAutoridade.dataInativo is null') | ||
52 | -GO | ||
53 | -*/ | ||
54 | - | ||
55 | -ALTER VIEW [dbo].[vw_centroresultadoresponsavel] | ||
56 | -AS | ||
57 | -SELECT dbo.Alcada.identificador AS alcada, dbo.CentroResultado.codigoSistemaOrigem AS centro_resultado, dbo.seguranca_usuario.username AS usuario, | ||
58 | - dbo.CentroResultadoResponsavel.dataCriacao AS data_inicio, dbo.CentroResultadoResponsavel.dataInativo AS data_inativo, | ||
59 | - dbo.NivelAutoridade.nome AS nivel_autoridade, 'N' as delegacao | ||
60 | -FROM dbo.CentroResultadoResponsavel INNER JOIN | ||
61 | - dbo.CentroResultado ON dbo.CentroResultado.id = dbo.CentroResultadoResponsavel.centroResultado_id INNER JOIN | ||
62 | - dbo.CentroResultadoResponsavelAlcada ON | ||
63 | - dbo.CentroResultadoResponsavelAlcada.centroResultadoResponsavel_id = dbo.CentroResultadoResponsavel.id INNER JOIN | ||
64 | - dbo.Alcada ON dbo.Alcada.id = dbo.CentroResultadoResponsavelAlcada.alcada_id INNER JOIN | ||
65 | - dbo.Parceiro ON dbo.Parceiro.id = dbo.CentroResultadoResponsavel.responsavel_id INNER JOIN | ||
66 | - dbo.Pessoa ON dbo.Pessoa.id = dbo.Parceiro.pessoa_id INNER JOIN | ||
67 | - dbo.seguranca_usuario ON dbo.seguranca_usuario.id = dbo.Pessoa.usuario_id INNER JOIN | ||
68 | - dbo.AlcadaNivelAutoridade ON dbo.AlcadaNivelAutoridade.alcada_id = dbo.Alcada.id INNER JOIN | ||
69 | - dbo.NivelAutoridade ON dbo.NivelAutoridade.id = dbo.AlcadaNivelAutoridade.nivelAutoridade_id | ||
70 | -WHERE dbo.NivelAutoridade.hierarquia = | ||
71 | - (SELECT MIN(t1.hierarquia) | ||
72 | - FROM dbo.NivelAutoridade t1 INNER JOIN | ||
73 | - dbo.AlcadaNivelAutoridade t2 ON t2.nivelautoridade_id = t1.id AND t2.alcada_id = Alcada.id INNER JOIN | ||
74 | - dbo.NivelAutoridadeGrupo t3 ON t3.nivelAutoridade_id = t1.id INNER JOIN | ||
75 | - dbo.GrupoUsuario t4 ON t4.usuario_id = seguranca_usuario.id AND t4.grupo_id = t3.grupo_id | ||
76 | -where t2.datainativo is null and t3.datainativo is null and t4.datainativo is null) | ||
77 | -and AlcadaNivelAutoridade.dataInativo is null | ||
78 | -UNION ALL | ||
79 | -SELECT dbo.Alcada.identificador AS alcada, dbo.CentroResultado.codigoSistemaOrigem AS centro_resultado, dbo.seguranca_usuario.username AS usuario, | ||
80 | - dbo.centroresultadodelegacao.datainiciodelegacao AS data_inicio, coalesce(centroresultadodelegacao.datarevogacao,centroresultadodelegacao.datafimdelegacao) AS data_inativo, | ||
81 | - dbo.NivelAutoridade.nome AS nivel_autoridade, 'S' as delegacao | ||
82 | -FROM dbo.centroresultadodelegacao INNER JOIN | ||
83 | - dbo.CentroResultadoResponsavelAlcada ON | ||
84 | - dbo.centroresultadodelegacao.centroResultadoResponsavelAlcada_id = CentroResultadoResponsavelAlcada.id INNER JOIN | ||
85 | - dbo.CentroResultadoResponsavel ON dbo.CentroResultadoResponsavel.id = dbo.CentroResultadoResponsavelAlcada.centroresultadoresponsavel_id INNER JOIN | ||
86 | - dbo.CentroResultado ON dbo.CentroResultado.id = dbo.CentroResultadoResponsavel.centroResultado_id INNER JOIN | ||
87 | - dbo.Alcada ON dbo.Alcada.id = dbo.CentroResultadoResponsavelAlcada.alcada_id INNER JOIN | ||
88 | - dbo.Parceiro ON dbo.Parceiro.id = dbo.centroresultadodelegacao.delegado_id INNER JOIN | ||
89 | - dbo.Pessoa ON dbo.Pessoa.id = dbo.Parceiro.pessoa_id INNER JOIN | ||
90 | - dbo.seguranca_usuario ON dbo.seguranca_usuario.id = dbo.Pessoa.usuario_id INNER JOIN | ||
91 | - dbo.AlcadaNivelAutoridade ON dbo.AlcadaNivelAutoridade.alcada_id = dbo.Alcada.id INNER JOIN | ||
92 | - dbo.NivelAutoridade ON dbo.NivelAutoridade.id = dbo.AlcadaNivelAutoridade.nivelAutoridade_id INNER JOIN | ||
93 | - dbo.Parceiro parc ON parc.id = dbo.centroresultadoresponsavel.responsavel_id INNER JOIN | ||
94 | - dbo.Pessoa pes ON pes.id = parc.pessoa_id | ||
95 | -WHERE dbo.NivelAutoridade.hierarquia = | ||
96 | - (SELECT MIN(t1.hierarquia) | ||
97 | - FROM dbo.NivelAutoridade t1 INNER JOIN | ||
98 | - dbo.AlcadaNivelAutoridade t2 ON t2.nivelautoridade_id = t1.id AND t2.alcada_id = Alcada.id INNER JOIN | ||
99 | - dbo.NivelAutoridadeGrupo t3 ON t3.nivelAutoridade_id = t1.id INNER JOIN | ||
100 | - dbo.GrupoUsuario t4 ON t4.usuario_id = pes.usuario_id AND t4.grupo_id = t3.grupo_id | ||
101 | -where t2.datainativo is null and t3.datainativo is null and t4.datainativo is null) | ||
102 | -and AlcadaNivelAutoridade.dataInativo is null | ||
103 | -GO | ||
104 | \ No newline at end of file | 0 | \ No newline at end of file |
cit-alcada-web/bin/src/main/resources/spring/applicationContext.xml
@@ -1,36 +0,0 @@ | @@ -1,36 +0,0 @@ | ||
1 | -<beans xmlns="http://www.springframework.org/schema/beans" | ||
2 | - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
3 | - xmlns:context="http://www.springframework.org/schema/context" | ||
4 | - xmlns:util="http://www.springframework.org/schema/util" | ||
5 | - xmlns:p="http://www.springframework.org/schema/p" | ||
6 | - xsi:schemaLocation="http://www.springframework.org/schema/beans | ||
7 | - http://www.springframework.org/schema/beans/spring-beans-3.1.xsd | ||
8 | - http://www.springframework.org/schema/context | ||
9 | - http://www.springframework.org/schema/context/spring-context-3.1.xsd | ||
10 | - http://www.springframework.org/schema/util | ||
11 | - http://www.springframework.org/schema/util/spring-util-3.1.xsd"> | ||
12 | - | ||
13 | - <bean id="citPortalDataSource" class="org.springframework.jndi.JndiObjectFactoryBean"> | ||
14 | - <property name="jndiName" value="java:/env/jdbc/cit-alcada" /> | ||
15 | - </bean> | ||
16 | - | ||
17 | - <bean id="entityManagerFactory" | ||
18 | - class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean" | ||
19 | - p:packagesToScan="br.com.centralit.framework.model, br.com.centralit.api.model" p:dataSource-ref="citPortalDataSource" | ||
20 | - p:jpaPropertyMap-ref="jpaPropertyMap" p:jpaVendorAdapter-ref="jpaVendorAdapter" /> | ||
21 | - | ||
22 | - <bean id="jpaVendorAdapter" class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter" /> | ||
23 | - | ||
24 | - <util:map id="jpaPropertyMap"> | ||
25 | - <entry key="generateDdl" value="${hibernate.generate.ddl}" /> | ||
26 | - <entry key="hibernate.hbm2ddl.auto" value="${hibernate.hbm2ddl.auto}" /> | ||
27 | - <entry key="hibernate.dialect" value="${hibernate.dialect}" /> | ||
28 | - <entry key="hibernate.show.sql" value="${hibernate.show.sql}" /> | ||
29 | - <entry key="hibernate.format_sql" value="${hibernate.format.sql}" /> | ||
30 | - <entry key="hibernate.jdbc.use_streams_for_binary" value="true" /> | ||
31 | - </util:map> | ||
32 | - | ||
33 | - <import resource="webmvc-context.xml" /> | ||
34 | - <import resource="classpath*:spring/applicationContext-base.xml" /> | ||
35 | - <import resource="${authentication.method}" /> | ||
36 | -</beans> | ||
37 | \ No newline at end of file | 0 | \ No newline at end of file |
cit-alcada-web/bin/src/main/resources/spring/spring-security-cas.xml
@@ -1,77 +0,0 @@ | @@ -1,77 +0,0 @@ | ||
1 | -<?xml version="1.0" encoding="UTF-8"?> | ||
2 | -<beans xmlns="http://www.springframework.org/schema/beans" | ||
3 | - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
4 | - xmlns:p="http://www.springframework.org/schema/p" | ||
5 | - xmlns:security="http://www.springframework.org/schema/security" | ||
6 | - xsi:schemaLocation="http://www.springframework.org/schema/beans | ||
7 | - http://www.springframework.org/schema/beans/spring-beans.xsd | ||
8 | - http://www.springframework.org/schema/security | ||
9 | - http://www.springframework.org/schema/security/spring-security-3.2.xsd"> | ||
10 | - | ||
11 | - <security:http auto-config="true" use-expressions="true" entry-point-ref="casProcessingFilterEntryPoint" access-denied-page="/denied.jsp"> | ||
12 | - <security:intercept-url pattern="/loginCas" access="permitAll" /> | ||
13 | - <security:intercept-url pattern="/rest/solicitacaoAlcada/**" access="permitAll" /> | ||
14 | - <security:intercept-url pattern="/rest/inicializarCarga/**" access="permitAll" /> | ||
15 | - <security:intercept-url pattern="/**" access="isFullyAuthenticated()" requires-channel="https"/> | ||
16 | - <security:logout logout-success-url="/cas-logout.jsp"/> | ||
17 | - <security:custom-filter ref="casAuthenticationFilter" after="CAS_FILTER"/> | ||
18 | - | ||
19 | - <security:session-management session-fixation-protection="newSession"> | ||
20 | - <security:concurrency-control max-sessions="1"/> | ||
21 | - </security:session-management> | ||
22 | - </security:http> | ||
23 | - | ||
24 | - <security:authentication-manager alias="authenticationManager"> | ||
25 | - <security:authentication-provider ref="casAuthenticationProvider"/> | ||
26 | - </security:authentication-manager> | ||
27 | - | ||
28 | - <bean id="casAuthenticationFilter" | ||
29 | - class="org.springframework.security.cas.web.CasAuthenticationFilter"> | ||
30 | - <property name="authenticationManager" ref="authenticationManager"/> | ||
31 | - <property name="authenticationFailureHandler"> | ||
32 | - <bean class="org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler"> | ||
33 | - <property name="defaultFailureUrl" value="/authfailed.jsp"/> | ||
34 | - </bean> | ||
35 | - </property> | ||
36 | - <property name="authenticationSuccessHandler"> | ||
37 | - <bean class="org.springframework.security.web.authentication.SimpleUrlAuthenticationSuccessHandler"> | ||
38 | - <property name="defaultTargetUrl" value="/"/> | ||
39 | - </bean> | ||
40 | - </property> | ||
41 | - <property name="proxyGrantingTicketStorage" ref="proxyGrantingTicketStorage"/> | ||
42 | - <property name="proxyReceptorUrl" value="/secure/receptor"/> | ||
43 | - </bean> | ||
44 | - | ||
45 | - <bean id="casProcessingFilterEntryPoint" class="org.springframework.security.cas.web.CasAuthenticationEntryPoint"> | ||
46 | - <property name="loginUrl" value="${authentication.url}/cas/login"/> | ||
47 | - <property name="serviceProperties" ref="serviceProperties"/> | ||
48 | - </bean> | ||
49 | - | ||
50 | - <bean id="casAuthenticationProvider" | ||
51 | - class="org.springframework.security.cas.authentication.CasAuthenticationProvider" | ||
52 | - p:key="central@123" | ||
53 | - p:serviceProperties-ref="serviceProperties" | ||
54 | - p:authenticationUserDetailsService-ref="userDetailsService"> | ||
55 | - <property name="ticketValidator"> | ||
56 | - <bean class="org.jasig.cas.client.validation.Saml11TicketValidator"> | ||
57 | - <constructor-arg index="0" value="${authentication.url}/cas"/> | ||
58 | - </bean> | ||
59 | - </property> | ||
60 | - </bean> | ||
61 | - | ||
62 | - <bean id="proxyGrantingTicketStorage" class="org.jasig.cas.client.proxy.ProxyGrantingTicketStorageImpl"/> | ||
63 | - | ||
64 | - <bean id="serviceProperties" class="org.springframework.security.cas.ServiceProperties"> | ||
65 | - <property name="service" value="${authentication.url}/cit-alcada-web/j_spring_cas_security_check"/> | ||
66 | - <property name="sendRenew" value="false"/> | ||
67 | - </bean> | ||
68 | - | ||
69 | - <bean id="userDetailsService" class="br.com.centralit.api.security.GrantedAuthorityFromAssertionAttributesUserDetailsService"> | ||
70 | - <constructor-arg> | ||
71 | - <list> | ||
72 | - <value>authorities</value> | ||
73 | - </list> | ||
74 | - </constructor-arg> | ||
75 | - </bean> | ||
76 | - | ||
77 | -</beans> |
cit-alcada-web/bin/src/main/resources/spring/spring-security-db.xml
@@ -1,30 +0,0 @@ | @@ -1,30 +0,0 @@ | ||
1 | -<?xml version="1.0" encoding="UTF-8"?> | ||
2 | -<beans xmlns="http://www.springframework.org/schema/beans" | ||
3 | - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
4 | - xmlns:p="http://www.springframework.org/schema/p" | ||
5 | - xmlns:security="http://www.springframework.org/schema/security" | ||
6 | - xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd | ||
7 | - http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security.xsd"> | ||
8 | - | ||
9 | - <security:global-method-security secured-annotations="enabled" /> | ||
10 | - | ||
11 | - <security:http auto-config="true" use-expressions="true" access-denied-page="/login?error=403"> | ||
12 | - <security:intercept-url pattern="/rest/esi/**" access="permitAll" /> | ||
13 | - <security:intercept-url pattern="/login" access="permitAll" /> | ||
14 | - <security:intercept-url pattern="/j_spring_security_check" access="permitAll" /> | ||
15 | - <security:intercept-url pattern="/assets/**" access="permitAll" /> | ||
16 | - <security:intercept-url pattern="/**" access="hasRole('ROLE_USER')" /> | ||
17 | - | ||
18 | - <security:form-login login-page="/login" authentication-failure-url="/login?error=403" default-target-url="/index" /> | ||
19 | - | ||
20 | - <security:logout invalidate-session="true" logout-success-url="/login" logout-url="/logout" /> | ||
21 | - | ||
22 | - <security:remember-me key="CentralITSolutions" remember-me-parameter="j_remenberme" /> | ||
23 | - </security:http> | ||
24 | - | ||
25 | - <bean id="customAuthenticationProvider" class="br.com.centralit.api.security.CustomAuthenticationProvider" /> | ||
26 | - | ||
27 | - <security:authentication-manager> | ||
28 | - <security:authentication-provider ref="customAuthenticationProvider" /> | ||
29 | - </security:authentication-manager> | ||
30 | -</beans> | ||
31 | \ No newline at end of file | 0 | \ No newline at end of file |
cit-alcada-web/bin/src/main/resources/spring/spring-security-openam.xml
@@ -1,351 +0,0 @@ | @@ -1,351 +0,0 @@ | ||
1 | -<?xml version="1.0" encoding="UTF-8" ?> | ||
2 | -<beans xmlns="http://www.springframework.org/schema/beans" | ||
3 | - xmlns:security="http://www.springframework.org/schema/security" | ||
4 | - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
5 | - xmlns:context="http://www.springframework.org/schema/context" | ||
6 | - xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd | ||
7 | - http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.2.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd"> | ||
8 | - | ||
9 | - <!-- Enable auto-wiring --> | ||
10 | - <context:annotation-config/> | ||
11 | - | ||
12 | - <!-- Scan for auto-wiring classes in spring saml packages --> | ||
13 | - <context:component-scan base-package="org.springframework.security.saml"/> | ||
14 | - | ||
15 | - <bean id="filterSecurityInterceptor" class="org.springframework.security.web.access.intercept.FilterSecurityInterceptor"> | ||
16 | - <property name="authenticationManager" ref="authenticationManager"></property> | ||
17 | - <property name="accessDecisionManager" ref="affirmativeBased"></property> | ||
18 | - <property name="securityMetadataSource" ref="optionsFromDataBaseFilterInvocationSecurityMetadataSource"></property> | ||
19 | - <property name="validateConfigAttributes" value="true"/> | ||
20 | - </bean> | ||
21 | - | ||
22 | - <bean id="optionsFromDataBaseFilterInvocationSecurityMetadataSource" class="br.com.centralit.api.security.MyFilterSecurityMetadataSource" /> | ||
23 | - | ||
24 | - <bean id="roleVoter" class="org.springframework.security.access.vote.RoleVoter" /> | ||
25 | - | ||
26 | - <bean id="affirmativeBased" class='org.springframework.security.access.vote.AffirmativeBased'> | ||
27 | - <property name="decisionVoters"> | ||
28 | - <list> | ||
29 | - <ref bean="roleVoter"/> | ||
30 | - </list> | ||
31 | - </property> | ||
32 | - </bean> | ||
33 | - | ||
34 | - <!-- Unsecured pages --> | ||
35 | - <security:http security="none" pattern="/favicon.ico"/> | ||
36 | - <security:http security="none" pattern="/images/**"/> | ||
37 | - <security:http security="none" pattern="/css/**"/> | ||
38 | - <security:http security="none" pattern="/logout.jsp"/> | ||
39 | - <security:http security="none" pattern="/accessDeniedPage.htm"/> | ||
40 | - | ||
41 | - <security:global-method-security secured-annotations="enabled" /> | ||
42 | - | ||
43 | - <!-- Security for the administration UI --> | ||
44 | - <security:http pattern="/saml/web/**" access-denied-page="/accessDeniedPage.htm"> | ||
45 | - <security:form-login login-processing-url="/saml/web/login" login-page="/saml/web/metadata/login" default-target-url="/saml/web/metadata"/> | ||
46 | - <security:intercept-url pattern="/saml/web/metadata/login" access="IS_AUTHENTICATED_ANONYMOUSLY"/> | ||
47 | - <security:intercept-url pattern="/saml/web/**" access="ROLE_ADMIN"/> | ||
48 | - <security:custom-filter before="FIRST" ref="metadataGeneratorFilter"/> | ||
49 | - </security:http> | ||
50 | - | ||
51 | - <!-- Secured pages with SAML as entry point --> | ||
52 | - <security:http entry-point-ref="samlEntryPoint" auto-config="true" access-denied-page="/accessDeniedPage.htm"> | ||
53 | - <security:intercept-url pattern="/**" access="IS_AUTHENTICATED_FULLY"/> | ||
54 | - <security:custom-filter before="FIRST" ref="metadataGeneratorFilter"/> | ||
55 | - <security:custom-filter after="BASIC_AUTH_FILTER" ref="samlFilter"/> | ||
56 | - </security:http> | ||
57 | - | ||
58 | - <!-- Filters for processing of SAML messages --> | ||
59 | - <bean id="samlFilter" class="org.springframework.security.web.FilterChainProxy"> | ||
60 | - <security:filter-chain-map request-matcher="ant"> | ||
61 | - <security:filter-chain pattern="/saml/login/**" filters="samlEntryPoint"/> | ||
62 | - <security:filter-chain pattern="/saml/logout/**" filters="samlLogoutFilter"/> | ||
63 | - <security:filter-chain pattern="/saml/metadata/**" filters="metadataDisplayFilter"/> | ||
64 | - <security:filter-chain pattern="/saml/SSO/**" filters="samlWebSSOProcessingFilter"/> | ||
65 | - <security:filter-chain pattern="/saml/SSOHoK/**" filters="samlWebSSOHoKProcessingFilter"/> | ||
66 | - <security:filter-chain pattern="/saml/SingleLogout/**" filters="samlLogoutProcessingFilter"/> | ||
67 | - <security:filter-chain pattern="/saml/discovery/**" filters="samlIDPDiscovery"/> | ||
68 | - <security:filter-chain pattern="/html/**" filters="filterSecurityInterceptor"/> | ||
69 | - </security:filter-chain-map> | ||
70 | - </bean> | ||
71 | - | ||
72 | - <!-- Handler deciding where to redirect user after successful login --> | ||
73 | - <bean id="successRedirectHandler" class="org.springframework.security.web.authentication.SavedRequestAwareAuthenticationSuccessHandler"> | ||
74 | - <property name="defaultTargetUrl" value="/"/> | ||
75 | - </bean> | ||
76 | - <!-- | ||
77 | - Use the following for interpreting RelayState coming from unsolicited response as redirect URL: | ||
78 | - <bean id="successRedirectHandler" class="org.springframework.security.saml.SAMLRelayStateSuccessHandler"> | ||
79 | - <property name="defaultTargetUrl" value="/" /> | ||
80 | - </bean> | ||
81 | - --> | ||
82 | - | ||
83 | - <!-- Handler deciding where to redirect user after failed login --> | ||
84 | - <bean id="failureRedirectHandler" | ||
85 | - class="org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler"> | ||
86 | - <property name="useForward" value="true"/> | ||
87 | - <property name="defaultFailureUrl" value="/error.jsp"/> | ||
88 | - </bean> | ||
89 | - | ||
90 | - <!-- Handler for successful logout --> | ||
91 | - <bean id="successLogoutHandler" class="org.springframework.security.web.authentication.logout.SimpleUrlLogoutSuccessHandler"> | ||
92 | - <property name="defaultTargetUrl" value="/logout.jsp"/> | ||
93 | - </bean> | ||
94 | - | ||
95 | - <security:authentication-manager alias="authenticationManager"> | ||
96 | - <!-- Register authentication manager for SAML provider --> | ||
97 | - <security:authentication-provider ref="samlAuthenticationProvider"/> | ||
98 | - <!-- Register authentication manager for administration UI --> | ||
99 | - <security:authentication-provider> | ||
100 | - <security:user-service id="adminInterfaceService"> | ||
101 | - <security:user name="admin" password="admin" authorities="ROLE_ADMIN"/> | ||
102 | - </security:user-service> | ||
103 | - </security:authentication-provider> | ||
104 | - </security:authentication-manager> | ||
105 | - | ||
106 | - <!-- Logger for SAML messages and events --> | ||
107 | - <bean id="samlLogger" class="org.springframework.security.saml.log.SAMLDefaultLogger"/> | ||
108 | - | ||
109 | - <!-- Central storage of cryptographic keys --> | ||
110 | - <bean id="keyManager" class="org.springframework.security.saml.key.JKSKeyManager"> | ||
111 | - <constructor-arg value="classpath:security/samlKeystore.jks"/> | ||
112 | - <constructor-arg type="java.lang.String" value="nalle123"/> | ||
113 | - <constructor-arg> | ||
114 | - <map> | ||
115 | - <entry key="apollo" value="nalle123"/> | ||
116 | - </map> | ||
117 | - </constructor-arg> | ||
118 | - <constructor-arg type="java.lang.String" value="apollo"/> | ||
119 | - </bean> | ||
120 | - | ||
121 | - <!-- Entry point to initialize authentication, default values taken from properties file --> | ||
122 | - <bean id="samlEntryPoint" class="org.springframework.security.saml.SAMLEntryPoint"> | ||
123 | - <property name="defaultProfileOptions"> | ||
124 | - <bean class="org.springframework.security.saml.websso.WebSSOProfileOptions"> | ||
125 | - <property name="binding" value="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"/> | ||
126 | - <property name="includeScoping" value="true"/> | ||
127 | - </bean> | ||
128 | - </property> | ||
129 | - </bean> | ||
130 | - | ||
131 | - <!-- IDP Discovery Service --> | ||
132 | - <bean id="samlIDPDiscovery" class="org.springframework.security.saml.SAMLDiscovery"> | ||
133 | - <property name="idpSelectionPath" value="/WEB-INF/security/idpSelection.jsp"/> | ||
134 | - </bean> | ||
135 | - | ||
136 | - <!-- Filter automatically generates default SP metadata --> | ||
137 | - <bean id="metadataGeneratorFilter" class="org.springframework.security.saml.metadata.MetadataGeneratorFilter"> | ||
138 | - <constructor-arg> | ||
139 | - <bean class="org.springframework.security.saml.metadata.MetadataGenerator"> | ||
140 | - <property name="entityId" value="patrimonio.com"/> | ||
141 | - </bean> | ||
142 | - </constructor-arg> | ||
143 | - </bean> | ||
144 | - | ||
145 | - <!-- bean id="metadataGeneratorFilter" class="org.springframework.security.saml.metadata.MetadataGeneratorFilter"> | ||
146 | - <constructor-arg> | ||
147 | - <bean class="org.springframework.security.saml.metadata.MetadataGenerator"> | ||
148 | - <property name="extendedMetadata"> | ||
149 | - <bean class="org.springframework.security.saml.metadata.ExtendedMetadata"> | ||
150 | - <property name="entityId" value="teste"/> | ||
151 | - <property name="idpDiscoveryEnabled" value="true"/> | ||
152 | - </bean> | ||
153 | - </property> | ||
154 | - </bean> | ||
155 | - </constructor-arg> | ||
156 | - </bean --> | ||
157 | - | ||
158 | - <!-- The filter is waiting for connections on URL suffixed with filterSuffix and presents SP metadata there --> | ||
159 | - <bean id="metadataDisplayFilter" class="org.springframework.security.saml.metadata.MetadataDisplayFilter"/> | ||
160 | - | ||
161 | - <!-- IDP Metadata configuration - paths to metadata of IDPs in circle of trust is here --> | ||
162 | - <bean id="metadata" class="org.springframework.security.saml.metadata.CachingMetadataManager"> | ||
163 | - <constructor-arg> | ||
164 | - <list> | ||
165 | - <!-- Example of classpath metadata with Extended Metadata --> | ||
166 | - <bean class="org.springframework.security.saml.metadata.ExtendedMetadataDelegate"> | ||
167 | - <constructor-arg> | ||
168 | - <bean class="org.opensaml.saml2.metadata.provider.ResourceBackedMetadataProvider"> | ||
169 | - <constructor-arg> | ||
170 | - <bean class="java.util.Timer"/> | ||
171 | - </constructor-arg> | ||
172 | - <constructor-arg> | ||
173 | - <bean class="org.opensaml.util.resource.ClasspathResource"> | ||
174 | - <constructor-arg value="/metadata/idp.xml"/> | ||
175 | - </bean> | ||
176 | - </constructor-arg> | ||
177 | - <property name="parserPool" ref="parserPool"/> | ||
178 | - </bean> | ||
179 | - </constructor-arg> | ||
180 | - <constructor-arg> | ||
181 | - <bean class="org.springframework.security.saml.metadata.ExtendedMetadata"> | ||
182 | - </bean> | ||
183 | - </constructor-arg> | ||
184 | - </bean> | ||
185 | - <!-- Example of HTTP metadata without Extended Metadata --> | ||
186 | - <bean class="org.opensaml.saml2.metadata.provider.HTTPMetadataProvider"> | ||
187 | - <!-- URL containing the metadata --> | ||
188 | - <constructor-arg> | ||
189 | - <value type="java.lang.String">http://iam.cit.local:8080/openam/saml2/jsp/exportmetadata.jsp?realm=grp</value> | ||
190 | - </constructor-arg> | ||
191 | - <!-- Timeout for metadata loading in ms --> | ||
192 | - <constructor-arg> | ||
193 | - <value type="int">15000</value> | ||
194 | - </constructor-arg> | ||
195 | - <property name="parserPool" ref="parserPool"/> | ||
196 | - </bean> | ||
197 | - <!-- Example of file system metadata without Extended Metadata --> | ||
198 | - <!-- | ||
199 | - <bean class="org.opensaml.saml2.metadata.provider.FilesystemMetadataProvider"> | ||
200 | - <constructor-arg> | ||
201 | - <value type="java.io.File">/usr/local/metadata/idp.xml</value> | ||
202 | - </constructor-arg> | ||
203 | - <property name="parserPool" ref="parserPool"/> | ||
204 | - </bean> | ||
205 | - --> | ||
206 | - </list> | ||
207 | - </constructor-arg> | ||
208 | - <!-- OPTIONAL used when one of the metadata files contains information about this service provider --> | ||
209 | - <!-- <property name="hostedSPName" value=""/> --> | ||
210 | - <!-- OPTIONAL property: can tell the system which IDP should be used for authenticating user by default. --> | ||
211 | - <!-- <property name="defaultIDP" value="http://localhost:8080/opensso"/> --> | ||
212 | - </bean> | ||
213 | - | ||
214 | - <!-- SAML Authentication Provider responsible for validating of received SAML messages --> | ||
215 | - <bean id="samlAuthenticationProvider" class="org.springframework.security.saml.SAMLAuthenticationProvider"> | ||
216 | - <!-- OPTIONAL property: can be used to store/load user data after login --> | ||
217 | - <!-- | ||
218 | - <property name="userDetails" ref="bean" /> | ||
219 | - --> | ||
220 | - <property name="userDetails" ref="samlUserDetailsServiceBean" /> | ||
221 | - </bean> | ||
222 | - | ||
223 | - <bean id="samlUserDetailsServiceBean" class="br.com.centralit.api.security.SAMLUserDetailsServiceImpl" /> | ||
224 | - | ||
225 | - <!-- Provider of default SAML Context --> | ||
226 | - <bean id="contextProvider" class="org.springframework.security.saml.context.SAMLContextProviderImpl"/> | ||
227 | - | ||
228 | - <!-- Processing filter for WebSSO profile messages --> | ||
229 | - <bean id="samlWebSSOProcessingFilter" class="org.springframework.security.saml.SAMLProcessingFilter"> | ||
230 | - <property name="authenticationManager" ref="authenticationManager"/> | ||
231 | - <property name="authenticationSuccessHandler" ref="successRedirectHandler"/> | ||
232 | - <property name="authenticationFailureHandler" ref="failureRedirectHandler"/> | ||
233 | - </bean> | ||
234 | - | ||
235 | - <!-- Processing filter for WebSSO Holder-of-Key profile --> | ||
236 | - <bean id="samlWebSSOHoKProcessingFilter" class="org.springframework.security.saml.SAMLWebSSOHoKProcessingFilter"> | ||
237 | - <property name="authenticationManager" ref="authenticationManager"/> | ||
238 | - <property name="authenticationSuccessHandler" ref="successRedirectHandler"/> | ||
239 | - <property name="authenticationFailureHandler" ref="failureRedirectHandler"/> | ||
240 | - </bean> | ||
241 | - | ||
242 | - <!-- Logout handler terminating local session --> | ||
243 | - <bean id="logoutHandler" | ||
244 | - class="org.springframework.security.web.authentication.logout.SecurityContextLogoutHandler"> | ||
245 | - <property name="invalidateHttpSession" value="false"/> | ||
246 | - </bean> | ||
247 | - | ||
248 | - <!-- Override default logout processing filter with the one processing SAML messages --> | ||
249 | - <bean id="samlLogoutFilter" class="org.springframework.security.saml.SAMLLogoutFilter"> | ||
250 | - <constructor-arg index="0" ref="successLogoutHandler"/> | ||
251 | - <constructor-arg index="1" ref="logoutHandler"/> | ||
252 | - <constructor-arg index="2" ref="logoutHandler"/> | ||
253 | - </bean> | ||
254 | - | ||
255 | - <!-- Filter processing incoming logout messages --> | ||
256 | - <!-- First argument determines URL user will be redirected to after successful global logout --> | ||
257 | - <bean id="samlLogoutProcessingFilter" class="org.springframework.security.saml.SAMLLogoutProcessingFilter"> | ||
258 | - <constructor-arg index="0" ref="successLogoutHandler"/> | ||
259 | - <constructor-arg index="1" ref="logoutHandler"/> | ||
260 | - </bean> | ||
261 | - | ||
262 | - <!-- Class loading incoming SAML messages from httpRequest stream --> | ||
263 | - <bean id="processor" class="org.springframework.security.saml.processor.SAMLProcessorImpl"> | ||
264 | - <constructor-arg> | ||
265 | - <list> | ||
266 | - <ref bean="redirectBinding"/> | ||
267 | - <ref bean="postBinding"/> | ||
268 | - <ref bean="artifactBinding"/> | ||
269 | - <ref bean="soapBinding"/> | ||
270 | - <ref bean="paosBinding"/> | ||
271 | - </list> | ||
272 | - </constructor-arg> | ||
273 | - </bean> | ||
274 | - | ||
275 | - <!-- SAML 2.0 WebSSO Assertion Consumer --> | ||
276 | - <bean id="webSSOprofileConsumer" class="org.springframework.security.saml.websso.WebSSOProfileConsumerImpl"> | ||
277 | - <property name="responseSkew" value="500"></property> | ||
278 | - </bean> | ||
279 | - | ||
280 | - <!-- SAML 2.0 Holder-of-Key WebSSO Assertion Consumer --> | ||
281 | - <bean id="hokWebSSOprofileConsumer" class="org.springframework.security.saml.websso.WebSSOProfileConsumerHoKImpl"/> | ||
282 | - | ||
283 | - <!-- SAML 2.0 Web SSO profile --> | ||
284 | - <bean id="webSSOprofile" class="org.springframework.security.saml.websso.WebSSOProfileImpl"/> | ||
285 | - | ||
286 | - <!-- SAML 2.0 Holder-of-Key Web SSO profile --> | ||
287 | - <bean id="hokWebSSOProfile" class="org.springframework.security.saml.websso.WebSSOProfileConsumerHoKImpl"/> | ||
288 | - | ||
289 | - <!-- SAML 2.0 ECP profile --> | ||
290 | - <bean id="ecpprofile" class="org.springframework.security.saml.websso.WebSSOProfileECPImpl"/> | ||
291 | - | ||
292 | - <!-- SAML 2.0 Logout Profile --> | ||
293 | - <bean id="logoutprofile" class="org.springframework.security.saml.websso.SingleLogoutProfileImpl"/> | ||
294 | - | ||
295 | - <!-- Bindings, encoders and decoders used for creating and parsing messages --> | ||
296 | - <bean id="postBinding" class="org.springframework.security.saml.processor.HTTPPostBinding"> | ||
297 | - <constructor-arg ref="parserPool"/> | ||
298 | - <constructor-arg ref="velocityEngine"/> | ||
299 | - </bean> | ||
300 | - | ||
301 | - <bean id="redirectBinding" class="org.springframework.security.saml.processor.HTTPRedirectDeflateBinding"> | ||
302 | - <constructor-arg ref="parserPool"/> | ||
303 | - </bean> | ||
304 | - | ||
305 | - <bean id="artifactBinding" class="org.springframework.security.saml.processor.HTTPArtifactBinding"> | ||
306 | - <constructor-arg ref="parserPool"/> | ||
307 | - <constructor-arg ref="velocityEngine"/> | ||
308 | - <constructor-arg> | ||
309 | - <bean class="org.springframework.security.saml.websso.ArtifactResolutionProfileImpl"> | ||
310 | - <constructor-arg> | ||
311 | - <bean class="org.apache.commons.httpclient.HttpClient"> | ||
312 | - <constructor-arg> | ||
313 | - <bean class="org.apache.commons.httpclient.MultiThreadedHttpConnectionManager"/> | ||
314 | - </constructor-arg> | ||
315 | - </bean> | ||
316 | - </constructor-arg> | ||
317 | - <property name="processor"> | ||
318 | - <bean class="org.springframework.security.saml.processor.SAMLProcessorImpl"> | ||
319 | - <constructor-arg ref="soapBinding"/> | ||
320 | - </bean> | ||
321 | - </property> | ||
322 | - </bean> | ||
323 | - </constructor-arg> | ||
324 | - </bean> | ||
325 | - | ||
326 | - <bean id="soapBinding" class="org.springframework.security.saml.processor.HTTPSOAP11Binding"> | ||
327 | - <constructor-arg ref="parserPool"/> | ||
328 | - </bean> | ||
329 | - | ||
330 | - <bean id="paosBinding" class="org.springframework.security.saml.processor.HTTPPAOS11Binding"> | ||
331 | - <constructor-arg ref="parserPool"/> | ||
332 | - </bean> | ||
333 | - | ||
334 | - <!-- Initialization of OpenSAML library--> | ||
335 | - <bean class="org.springframework.security.saml.SAMLBootstrap"/> | ||
336 | - | ||
337 | - <!-- Initialization of the velocity engine --> | ||
338 | - <bean id="velocityEngine" class="org.springframework.security.saml.util.VelocityFactory" factory-method="getEngine"/> | ||
339 | - | ||
340 | - <!-- XML parser pool needed for OpenSAML parsing --> | ||
341 | - <bean id="parserPool" class="org.opensaml.xml.parse.StaticBasicParserPool" init-method="initialize"> | ||
342 | - <property name="builderFeatures"> | ||
343 | - <map> | ||
344 | - <entry key="http://apache.org/xml/features/dom/defer-node-expansion" value="false"/> | ||
345 | - </map> | ||
346 | - </property> | ||
347 | - </bean> | ||
348 | - | ||
349 | - <bean id="parserPoolHolder" class="org.springframework.security.saml.parser.ParserPoolHolder"/> | ||
350 | - | ||
351 | -</beans> |
cit-alcada-web/bin/src/main/resources/spring/webmvc-context.xml
@@ -1,51 +0,0 @@ | @@ -1,51 +0,0 @@ | ||
1 | -<?xml version="1.0" encoding="UTF-8"?> | ||
2 | -<beans xmlns="http://www.springframework.org/schema/beans" | ||
3 | - xmlns:p="http://www.springframework.org/schema/p" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
4 | - xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:context="http://www.springframework.org/schema/context" | ||
5 | - xsi:schemaLocation=" | ||
6 | - http://www.springframework.org/schema/beans | ||
7 | - http://www.springframework.org/schema/beans/spring-beans-3.1.xsd | ||
8 | - http://www.springframework.org/schema/context | ||
9 | - http://www.springframework.org/schema/context/spring-context-3.1.xsd | ||
10 | - http://www.springframework.org/schema/mvc | ||
11 | - http://www.springframework.org/schema/mvc/spring-mvc-3.1.xsd"> | ||
12 | - | ||
13 | - <mvc:annotation-driven> | ||
14 | - <mvc:message-converters register-defaults="true"> | ||
15 | - <bean id="jacksonMessageConverter" class="br.com.centralit.framework.json.CustomMappingJackson2"/> | ||
16 | - </mvc:message-converters> | ||
17 | - </mvc:annotation-driven> | ||
18 | - | ||
19 | - <mvc:default-servlet-handler /> | ||
20 | - | ||
21 | - <mvc:resources mapping="/resources/**" location="/resources/" /> | ||
22 | - <mvc:resources mapping="/assets/**" location="/assets/" /> | ||
23 | - | ||
24 | - <!-- i18n --> | ||
25 | - <bean id="messageSource" class="org.springframework.context.support.ReloadableResourceBundleMessageSource"> | ||
26 | - <property name="basename" value="WEB-INF/i18n" /> | ||
27 | - <property name="defaultEncoding" value="UTF-8" /> | ||
28 | - <property name="useCodeAsDefaultMessage" value="true" /> | ||
29 | - </bean> | ||
30 | - | ||
31 | - <bean id="localeResolver" class="org.springframework.web.servlet.i18n.FixedLocaleResolver"> | ||
32 | - <property name="defaultLocale" value="pt_BR" /> | ||
33 | - </bean> | ||
34 | - | ||
35 | - <!-- View Handler --> | ||
36 | - <bean id="velocityConfig" class="org.springframework.web.servlet.view.velocity.VelocityConfigurer"> | ||
37 | - <property name="resourceLoaderPath" value="/html/" /> | ||
38 | - </bean> | ||
39 | - | ||
40 | - <bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver"> | ||
41 | - <property name="viewClass" value="org.springframework.web.servlet.view.JstlView" /> | ||
42 | - <property name="prefix" value="/html/" /> | ||
43 | - <property name="suffix" value=".jsp" /> | ||
44 | - </bean> | ||
45 | - | ||
46 | - <bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver"> | ||
47 | - <!-- setting maximum upload size --> | ||
48 | - <property name="maxUploadSize" value="52428800" /> | ||
49 | - | ||
50 | - </bean> | ||
51 | -</beans> |
cit-alcada-web/bin/src/main/webapp/WEB-INF/jboss-deployment-structure.xml
@@ -1,8 +0,0 @@ | @@ -1,8 +0,0 @@ | ||
1 | -<?xml version="1.0" encoding="UTF-8"?> | ||
2 | -<jboss-deployment-structure> | ||
3 | - <deployment> | ||
4 | - <dependencies> | ||
5 | - <module name="br.com.citsmart-grp" /> | ||
6 | - </dependencies> | ||
7 | - </deployment> | ||
8 | -</jboss-deployment-structure> | ||
9 | \ No newline at end of file | 0 | \ No newline at end of file |
cit-alcada-web/bin/src/main/webapp/WEB-INF/jboss-web.xml
cit-alcada-web/bin/src/main/webapp/WEB-INF/web.xml
@@ -1,110 +0,0 @@ | @@ -1,110 +0,0 @@ | ||
1 | -<?xml version="1.0" encoding="UTF-8"?> | ||
2 | -<web-app xmlns="http://java.sun.com/xml/ns/javaee" | ||
3 | - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
4 | - xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" | ||
5 | - version="3.0"> | ||
6 | - <display-name>cit-alcada-web</display-name> | ||
7 | - <session-config> | ||
8 | - <session-timeout>600</session-timeout> | ||
9 | - </session-config> | ||
10 | - <listener> | ||
11 | - <listener-class>org.springframework.web.context.request.RequestContextListener</listener-class> | ||
12 | - </listener> | ||
13 | - <listener> | ||
14 | - <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> | ||
15 | - </listener> | ||
16 | - <context-param> | ||
17 | - <param-name>contextConfigLocation</param-name> | ||
18 | - <param-value> | ||
19 | - /WEB-INF/classes/spring/applicationContext.xml | ||
20 | - </param-value> | ||
21 | - </context-param> | ||
22 | - | ||
23 | - <!-- Configuracoes do properties --> | ||
24 | - <context-param> | ||
25 | - <param-name>contextInitializerClasses</param-name> | ||
26 | - <param-value>br.com.centralit.framework.util.CustomApplicationContextInitializer</param-value> | ||
27 | - </context-param> | ||
28 | - <context-param> | ||
29 | - <param-name>propertiesFile</param-name> | ||
30 | - <param-value>classpath:cit-app.properties</param-value> | ||
31 | - </context-param> | ||
32 | - <context-param> | ||
33 | - <param-name>propertiesFileLoadOrder</param-name> | ||
34 | - <param-value>FIRST</param-value> | ||
35 | - </context-param> | ||
36 | - <!-- Este parametro controla a ordem na qual o arquivo de propriedades sera carregado --> | ||
37 | - <!-- "FIRST": Os parametros do arquivo de propriedades sao carregados primero que os outros recursos no ambiente (System, JVM, JNDI Parameters). --> | ||
38 | - <!-- "LAST": Os parametros do arquivo de propriedades sao carregados por ultimo que os outros recursos no ambiente (System, JVM, JNDI Parameters). --> | ||
39 | - <!-- Por padrao o parametro eh "FIRST". --> | ||
40 | - | ||
41 | - <filter> | ||
42 | - <filter-name>openSessionInViewFilter</filter-name> | ||
43 | - <filter-class>org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter</filter-class> | ||
44 | - </filter> | ||
45 | - <filter-mapping> | ||
46 | - <filter-name>openSessionInViewFilter</filter-name> | ||
47 | - <url-pattern>*.json</url-pattern> | ||
48 | - </filter-mapping> | ||
49 | - | ||
50 | - <filter> | ||
51 | - <filter-name>encoding-filter</filter-name> | ||
52 | - <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class> | ||
53 | - <init-param> | ||
54 | - <param-name>encoding</param-name> | ||
55 | - <param-value>UTF-8</param-value> | ||
56 | - </init-param> | ||
57 | - </filter> | ||
58 | - <filter-mapping> | ||
59 | - <filter-name>encoding-filter</filter-name> | ||
60 | - <url-pattern>/*</url-pattern> | ||
61 | - </filter-mapping> | ||
62 | - | ||
63 | - <filter> | ||
64 | - <filter-name>CAS Single Sign Out Filter</filter-name> | ||
65 | - <filter-class>org.jasig.cas.client.session.SingleSignOutFilter</filter-class> | ||
66 | - </filter> | ||
67 | - | ||
68 | - <filter-mapping> | ||
69 | - <filter-name>CAS Single Sign Out Filter</filter-name> | ||
70 | - <url-pattern>/*</url-pattern> | ||
71 | - </filter-mapping> | ||
72 | - | ||
73 | - <listener> | ||
74 | - <listener-class>org.jasig.cas.client.session.SingleSignOutHttpSessionListener</listener-class> | ||
75 | - </listener> | ||
76 | - | ||
77 | - <filter> | ||
78 | - <filter-name>springSecurityFilterChain</filter-name> | ||
79 | - <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class> | ||
80 | - </filter> | ||
81 | - <filter-mapping> | ||
82 | - <filter-name>springSecurityFilterChain</filter-name> | ||
83 | - <url-pattern>/*</url-pattern> | ||
84 | - </filter-mapping> | ||
85 | - | ||
86 | - <!-- CORS Filter --> | ||
87 | - <filter> | ||
88 | - <filter-name>cors</filter-name> | ||
89 | - <filter-class>br.com.centralit.framework.filter.SimpleCORSFilter</filter-class> | ||
90 | - </filter> | ||
91 | - | ||
92 | - <filter-mapping> | ||
93 | - <filter-name>cors</filter-name> | ||
94 | - <url-pattern>/*</url-pattern> | ||
95 | - </filter-mapping> | ||
96 | - | ||
97 | - <servlet> | ||
98 | - <servlet-name>spring</servlet-name> | ||
99 | - <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> | ||
100 | - <init-param> | ||
101 | - <param-name>contextConfigLocation</param-name> | ||
102 | - <param-value></param-value> | ||
103 | - </init-param> | ||
104 | - </servlet> | ||
105 | - <servlet-mapping> | ||
106 | - <servlet-name>spring</servlet-name> | ||
107 | - <url-pattern>/</url-pattern> | ||
108 | - </servlet-mapping> | ||
109 | - | ||
110 | -</web-app> |
cit-alcada-web/bin/src/main/webapp/assets/js/angular/custom/controller/AlcadaController.js
@@ -1,200 +0,0 @@ | @@ -1,200 +0,0 @@ | ||
1 | -'use strict'; | ||
2 | - | ||
3 | -citApp.controller('AlcadaController', ['$scope', 'AlcadaRepository', 'NivelAutoridadeRepository', 'GrupoRepository', '$translate', '$filter', '$timeout', 'DominioRepository', 'FlowRepository', | ||
4 | - function AlcadaController($scope, AlcadaRepository, NivelAutoridadeRepository, GrupoRepository, | ||
5 | - $translate, $filter, $timeout, DominioRepository, FlowRepository ) { | ||
6 | - | ||
7 | - $scope.fluxo = {}; | ||
8 | - | ||
9 | - $scope.alcada = { | ||
10 | - permiteAprovacaoNivelInferior : false | ||
11 | - }; | ||
12 | - | ||
13 | - // Limpa formulário para novo cadastro | ||
14 | - $scope.resetForm = function() { | ||
15 | - $scope.limparAlcada(); | ||
16 | - $scope.edit = true; | ||
17 | - $timeout(function(){ | ||
18 | - $scope.alcadaForm.$submitted = false; | ||
19 | - $scope.alcadaForm.$setPristine(); | ||
20 | - }); | ||
21 | - }; | ||
22 | - | ||
23 | - // Atualiza pagina de pesquisa | ||
24 | - $scope.atualizaPaginaPesquisa = function () { | ||
25 | - angular.element('#searchAlcada').scope().fetchResult(); | ||
26 | - }; | ||
27 | - | ||
28 | - // MODAL QUE CONFIRMA REMOVER DA ALCADA | ||
29 | - $scope.remove = function(alcada){ | ||
30 | - $scope.alcada = alcada; | ||
31 | - $scope.$openModalConfirm({ | ||
32 | - message: $translate.instant('MSG.CONFIRMA_EXCLUSAO'), | ||
33 | - callback: function () { | ||
34 | - AlcadaRepository.remove($scope.alcada).then(function() { | ||
35 | - | ||
36 | - $scope.$modalConfirmInstance.dismiss('cancel'); | ||
37 | - $scope.showAlert("success", $translate.instant('MSG.REGISTRO_EXCLUIDO')); | ||
38 | - angular.element('#searchAlcada').scope().fetchResult(); | ||
39 | - | ||
40 | - $scope.resetForm(); | ||
41 | - }); | ||
42 | - } | ||
43 | - }); | ||
44 | - }; | ||
45 | - | ||
46 | - // SALVA A ALCADA | ||
47 | - $scope.saveOrUpdate = function(){ | ||
48 | - $scope.alcadaForm.$submitted = true; | ||
49 | - | ||
50 | - //verifica se o formulario está valido para salvar | ||
51 | - if($scope.alcadaForm.$valid){ | ||
52 | - | ||
53 | - $scope.setLoadingSalva(true); | ||
54 | - | ||
55 | - AlcadaRepository.save($scope.alcada).then(function(result) { | ||
56 | - $scope.showAlert("success", $translate.instant('MSG.REGISTRO_SALVO')); | ||
57 | - $scope.alcadaForm.$submitted = false; | ||
58 | - | ||
59 | - $scope.getAlcada(result.originalElement, true); | ||
60 | - | ||
61 | - $scope.setLoading(false); | ||
62 | - }); | ||
63 | - }else{ | ||
64 | - //Mensagem de erro de campos obrigatorios não preenchidos | ||
65 | - $scope.showAlert('error', $translate.instant('VALIDACAO.ALERTA_OBRIGATORIOS'), " ", false); | ||
66 | - } | ||
67 | - }; | ||
68 | - | ||
69 | - // Limpa o formulario preenchido | ||
70 | - $scope.limparAlcada = function(){ | ||
71 | - $scope.alcada = { | ||
72 | - permiteAprovacaoNivelInferior : false, | ||
73 | - fluxoDelegacao : "" | ||
74 | - }; | ||
75 | - $scope.fluxo = null; | ||
76 | - }; | ||
77 | - | ||
78 | - // Consulta entidade e mostra no formulario | ||
79 | - $scope.getAlcada = function(alcada, edit){ | ||
80 | - $scope.setLoadingGet(true); | ||
81 | - | ||
82 | - AlcadaRepository.get(alcada.id).then(function(result) { | ||
83 | - $scope.alcada = result.originalElement; | ||
84 | - | ||
85 | - $scope.alcada.niveisAutoridades = _.sortBy($scope.alcada.niveisAutoridades, function (alcada) { | ||
86 | - return alcada.nivelAutoridade.nome; | ||
87 | - }); | ||
88 | - | ||
89 | - if ($scope.alcada.fluxoDelegacao && $scope.alcada.fluxoDelegacao != '') { | ||
90 | - FlowRepository.getByName($scope.alcada.fluxoDelegacao).then(function(result) { | ||
91 | - $scope.fluxo = result.originalElement.flow; | ||
92 | - }); | ||
93 | - }else{ | ||
94 | - $scope.fluxo = null; | ||
95 | - } | ||
96 | - $scope.edit = edit; | ||
97 | - $scope.setLoading(false); | ||
98 | - }); | ||
99 | - }; | ||
100 | - | ||
101 | - //FIND PARA AUTOCOMPLETE DO GRUPORESPONSAVEL | ||
102 | - $scope.findAutoCompleteGrupoResponsavel = function(value){ | ||
103 | - return GrupoRepository.findAutoComplete('nome', value).then(function(result) { | ||
104 | - return result; | ||
105 | - }); | ||
106 | - }; | ||
107 | - | ||
108 | - //FIND PARA AUTOCOMPLETE DO GRUPOADMINISTRADOR | ||
109 | - $scope.findAutoCompleteGrupoAdministrador = function(value){ | ||
110 | - return GrupoRepository.findAutoComplete('nome', value).then(function(result) { | ||
111 | - return result; | ||
112 | - }); | ||
113 | - }; | ||
114 | - | ||
115 | - //ALTERA TRUE PARA SIM E FALSE PARA NÃO | ||
116 | - $scope.aplicarFiltroBoolean = function(value){ | ||
117 | - return $filter('booleanSimNao')(value); | ||
118 | - }; | ||
119 | - | ||
120 | - //FIND PARA AUTOCOMPLETE DO NivelAutoridade | ||
121 | - $scope.findNivelAutoridade = function(value){ | ||
122 | - return NivelAutoridadeRepository.findAutoComplete('nome', value).then(function(result) { | ||
123 | - return $filter('idNotEqualObj')(result, $scope.alcada.niveisAutoridades, "nivelAutoridade"); | ||
124 | - }); | ||
125 | - }; | ||
126 | - | ||
127 | - //#### INICIO METODOS ALCADANIVELAUTORIDADE ####// | ||
128 | - //ADICIONA O NIVELAUTORIDADE SELECIONADO | ||
129 | - $scope.adicionarAlcadaNivelAutoridade = function(){ | ||
130 | - // SE NAO POSSUI ARRAY DE NIVELAUTORIDADE, CRIA O ATRIBUTO | ||
131 | - if($scope.alcadaNivelAutoridade != null && $scope.alcadaNivelAutoridade.nivelAutoridade != null && | ||
132 | - $scope.alcadaNivelAutoridade.antecedenciaMinimaAprovacao != null){ | ||
133 | - if(!$scope.alcada.niveisAutoridades){ | ||
134 | - $scope.alcada.niveisAutoridades = []; | ||
135 | - } | ||
136 | - | ||
137 | - $scope.alcada.niveisAutoridades.push({nivelAutoridade : $scope.alcadaNivelAutoridade.nivelAutoridade, | ||
138 | - permiteAprovacaoPropria : $scope.alcadaNivelAutoridade.permiteAprovacaoPropria, | ||
139 | - antecedenciaMinimaAprovacao : $scope.alcadaNivelAutoridade.antecedenciaMinimaAprovacao}); | ||
140 | - $timeout(function(){ | ||
141 | - $scope.alcadaNivelAutoridade.nivelAutoridade = null; | ||
142 | - $scope.alcadaNivelAutoridade.permiteAprovacaoPropria = false; | ||
143 | - $scope.alcadaNivelAutoridade.antecedenciaMinimaAprovacao = ''; | ||
144 | - }); | ||
145 | - } | ||
146 | - else{ | ||
147 | - //Mensagem de erro de campos obrigatorios não preenchidos | ||
148 | - $scope.showAlert('error', $translate.instant('ALCADA.VALIDACAO.ALERTA_OBRIGATORIOS_NIVELAUTORIDADE_ALCADA'), " ", false); | ||
149 | - } | ||
150 | - }; | ||
151 | - | ||
152 | - //REMOVE O NIVELAUTORIDADE SELECIONADO | ||
153 | - $scope.removerAlcadaNivelAutoridade = function(){ | ||
154 | - if(!$scope.nivelAutoridadeChecked) { | ||
155 | - $scope.showAlert('warning', $translate.instant('MSG.SELECIONE_UM_ITEM_PARA_SER_REMOVIDO')); | ||
156 | - return; | ||
157 | - } else { | ||
158 | - $scope.$openModalConfirm({ | ||
159 | - message: $translate.instant('MSG.DESEJA_EXCLUIR_ITENS'), | ||
160 | - callback: function () { | ||
161 | - $scope.$modalConfirmInstance.dismiss('cancel'); | ||
162 | - $scope.alcada.niveisAutoridades.splice($scope.nivelAutoridadeChecked.$index, 1); | ||
163 | - $scope.showAlert("success", $translate.instant('MSG.REGISTRO_EXCLUIDO')); | ||
164 | - } | ||
165 | - }); | ||
166 | - } | ||
167 | - }; | ||
168 | - | ||
169 | - $scope.findFlow = function(value) { | ||
170 | - var flowVH = { | ||
171 | - nome : value | ||
172 | - }; | ||
173 | - return FlowRepository.findFlow(flowVH).then(function(result) { | ||
174 | - var flows = []; | ||
175 | - if (result && result.length > 0) { | ||
176 | - for (var i = 0; i < result.length; i++) { | ||
177 | - var flow = result[i].originalElement; | ||
178 | - if (flow.flowApplication == 'SERVICE_INTEGRATION') { | ||
179 | - flows.push(result[i]); | ||
180 | - } | ||
181 | - } | ||
182 | - } | ||
183 | - return flows; | ||
184 | - }); | ||
185 | - }; | ||
186 | - | ||
187 | - $scope.limparAutoCompleteFluxo = function() { | ||
188 | - $scope.alcada.fluxoDelegacao = null; | ||
189 | - }; | ||
190 | - | ||
191 | - $scope.setFluxo = function (item) { | ||
192 | - if(item && item.id) { | ||
193 | - $scope.fluxo = item; | ||
194 | - $scope.alcada.fluxoDelegacao = item.name; | ||
195 | - } | ||
196 | - }; | ||
197 | - | ||
198 | - | ||
199 | - //#### FIM METODOS ALCADANIVELAUTORIDADE ####// | ||
200 | -}]); | ||
201 | \ No newline at end of file | 0 | \ No newline at end of file |
cit-alcada-web/bin/src/main/webapp/assets/js/angular/custom/controller/AlcadaListController.js
@@ -1,39 +0,0 @@ | @@ -1,39 +0,0 @@ | ||
1 | -'use strict'; | ||
2 | - | ||
3 | -citApp.controller('AlcadaListController', ['$scope', 'AlcadaRepository', '$translate', '$timeout', 'DominioRepository', | ||
4 | - function AlcadaListController($scope, AlcadaRepository, $translate, $timeout, DominioRepository) { | ||
5 | - $scope.$showAdvancedFilters = false; | ||
6 | - | ||
7 | - $scope.resetForm = function() { | ||
8 | - angular.element("#editAlcada").scope().resetForm(); | ||
9 | - }; | ||
10 | - | ||
11 | - $scope.headers = [ {title : $translate.instant('LABEL.NOME'), value : 'nome' } , | ||
12 | - {title : $translate.instant('ALCADA.LABEL.IDENTIFICADOR'), value : 'identificador' } , | ||
13 | - {title : $translate.instant('ALCADA.LABEL.APROVACAO_NIVEL_INFERIOR'), value : 'permiteAprovacaoNivelInferior' , filter : 'booleanSimNao'} , | ||
14 | - {title : $translate.instant('ALCADA.LABEL.DISPENSA_NOVA_APROVACAO'), value : 'percDispensaNovaAprovacao' , filter : 'percentageList' }]; | ||
15 | - | ||
16 | - $scope.filterCriteria = { | ||
17 | - start : 1, | ||
18 | - dir : 'asc', | ||
19 | - sort : 'id', | ||
20 | - limit : 10, | ||
21 | - fields: ['id', 'nome', 'identificador', 'permiteAprovacaoNivelInferior', 'percDispensaNovaAprovacao'], | ||
22 | - filters : [ {type : 'string', field : 'nome' } , | ||
23 | - {type : 'string', field : 'identificador' } , | ||
24 | - {type : 'boolean', field : 'permiteAprovacaoNivelInferior' } , | ||
25 | - {type : 'money', field : 'percDispensaNovaAprovacao' }] | ||
26 | - }; | ||
27 | - | ||
28 | - // ABRI Alcada SELECIONADA | ||
29 | - $scope.abrirVisualizar = function(edit){ | ||
30 | - var alcada = $scope.alcadaChecked; | ||
31 | - | ||
32 | - if(!alcada) { | ||
33 | - $scope.showAlert('warning', !edit ? $translate.instant('MSG.SELECIONE_UM_ITEM_PARA_VISUALIZACAO') : $translate.instant('MSG.SELECIONE_UM_ITEM_PARA_EDICAO')); | ||
34 | - return; | ||
35 | - } | ||
36 | - angular.element('#editAlcada').scope().getAlcada(alcada, edit); | ||
37 | - $scope.$showPageEditWorkspace($scope.workspace); | ||
38 | - }; | ||
39 | -}]); | ||
40 | \ No newline at end of file | 0 | \ No newline at end of file |
cit-alcada-web/bin/src/main/webapp/assets/js/angular/custom/controller/CentroResultadoAlcadaResponsavelController.js
@@ -1,99 +0,0 @@ | @@ -1,99 +0,0 @@ | ||
1 | -'use strict'; | ||
2 | - | ||
3 | -citApp.controller('CentroResultadoAlcadaResponsavelController', ['$scope', 'CentroResultadoAlcadaResponsavelRepository', 'AlcadaRepository', 'CentroResultadoRepository', 'ColaboradorRepository', '$translate', '$timeout', | ||
4 | - function CentroResultadoAlcadaResponsavelController($scope, CentroResultadoAlcadaResponsavelRepository, AlcadaRepository, CentroResultadoRepository, ColaboradorRepository, $translate, $timeout) { | ||
5 | - | ||
6 | - $scope.centroResultadoAlcadaResponsavel = {}; | ||
7 | - | ||
8 | - // Limpa formulário para novo cadastro | ||
9 | - $scope.resetForm = function() { | ||
10 | - $scope.limparCentroResultadoAlcadaResponsavel(); | ||
11 | - $scope.edit = true; | ||
12 | - $timeout(function(){ | ||
13 | - $scope.centroResultadoAlcadaResponsavelForm.$submitted = false; | ||
14 | - $scope.centroResultadoAlcadaResponsavelForm.$setPristine(); | ||
15 | - }); | ||
16 | - }; | ||
17 | - | ||
18 | - // Atualiza pagina de pesquisa | ||
19 | - $scope.atualizaPaginaPesquisa = function () { | ||
20 | - angular.element('#searchCentroResultadoAlcadaResponsavel').scope().fetchResult(); | ||
21 | - }; | ||
22 | - | ||
23 | - // MODAL QUE CONFIRMA REMOVER DA CIDADE | ||
24 | - $scope.remove = function(centroResultadoAlcadaResponsavel){ | ||
25 | - $scope.centroResultadoAlcadaResponsavel = centroResultadoAlcadaResponsavel; | ||
26 | - $scope.$openModalConfirm({ | ||
27 | - message: $translate.instant('MSG.CONFIRMA_EXCLUSAO'), | ||
28 | - callback: function () { | ||
29 | - CentroResultadoAlcadaResponsavelRepository.remove($scope.centroResultadoAlcadaResponsavel).then(function() { | ||
30 | - | ||
31 | - $scope.$modalConfirmInstance.dismiss('cancel'); | ||
32 | - $scope.showAlert("success", $translate.instant('MSG.REGISTRO_EXCLUIDO')); | ||
33 | - angular.element('#searchCentroResultadoAlcadaResponsavel').scope().fetchResult(); | ||
34 | - | ||
35 | - $scope.resetForm(); | ||
36 | - }); | ||
37 | - } | ||
38 | - }); | ||
39 | - }; | ||
40 | - | ||
41 | - // SALVA O CentroResultadoAlcadaResponsavel | ||
42 | - $scope.saveOrUpdate = function(){ | ||
43 | - $scope.centroResultadoAlcadaResponsavelForm.$submitted = true; | ||
44 | - | ||
45 | - //verifica se o formulario está valido para salvar | ||
46 | - if($scope.centroResultadoAlcadaResponsavelForm.$valid){ | ||
47 | - | ||
48 | - $scope.setLoadingSalva(true); | ||
49 | - | ||
50 | - CentroResultadoAlcadaResponsavelRepository.save($scope.centroResultadoAlcadaResponsavel).then(function(result) { | ||
51 | - $scope.centroResultadoAlcadaResponsavel = result.originalElement; | ||
52 | - $scope.showAlert("success", $translate.instant('MSG.REGISTRO_SALVO')); | ||
53 | - $scope.centroResultadoAlcadaResponsavelForm.$submitted = false; | ||
54 | - }); | ||
55 | - $scope.setLoading(false); | ||
56 | - }else{ | ||
57 | - //Mensagem de erro de campos obrigatorios não preenchidos | ||
58 | - $scope.showAlert('error', $translate.instant('VALIDACAO.ALERTA_OBRIGATORIOS'), " ", false); | ||
59 | - } | ||
60 | - }; | ||
61 | - | ||
62 | - // Limpa o formulario preenchido | ||
63 | - $scope.limparCentroResultadoAlcadaResponsavel = function(){ | ||
64 | - $scope.centroResultadoAlcadaResponsavel = {}; | ||
65 | - }; | ||
66 | - | ||
67 | - // Consulta entidade e mostra no formulario | ||
68 | - $scope.getCentroResultadoAlcadaResponsavel = function(centroResultadoAlcadaResponsavel, edit){ | ||
69 | - $scope.setLoadingGet(true); | ||
70 | - | ||
71 | - CentroResultadoAlcadaResponsavelRepository.get(centroResultadoAlcadaResponsavel.id).then(function(result) { | ||
72 | - $scope.centroResultadoAlcadaResponsavel = result.originalElement; | ||
73 | - $scope.edit = edit; | ||
74 | - $scope.setLoading(false); | ||
75 | - }); | ||
76 | - }; | ||
77 | - | ||
78 | - // FIND AUTOCOMPLETE ALCADA | ||
79 | - $scope.findAutoCompleteAlcada = function(value){ | ||
80 | - return AlcadaRepository.findAutoComplete('nome', value).then(function(result) { | ||
81 | - return result; | ||
82 | - }); | ||
83 | - }; | ||
84 | - | ||
85 | - // FIND AUTOCOMPLETE CENTRORESULTADO | ||
86 | - $scope.findAutoCompleteCentroResultado = function(value){ | ||
87 | - return CentroResultadoRepository.findAutoComplete('nome', value).then(function(result) { | ||
88 | - return result; | ||
89 | - }); | ||
90 | - }; | ||
91 | - | ||
92 | - // FIND AUTOCOMPLETE RESPONSAVEL | ||
93 | - $scope.findAutoCompleteColaborador = function(value){ | ||
94 | - return ColaboradorRepository.findAutoComplete('nome', value).then(function(result) { | ||
95 | - return result; | ||
96 | - }); | ||
97 | - }; | ||
98 | - | ||
99 | -}]); |
cit-alcada-web/bin/src/main/webapp/assets/js/angular/custom/controller/CentroResultadoAlcadaResponsavelListController.js
@@ -1,33 +0,0 @@ | @@ -1,33 +0,0 @@ | ||
1 | -'use strict'; | ||
2 | - | ||
3 | -citApp.controller('CentroResultadoAlcadaResponsavelListController', ['$scope', 'CentroResultadoAlcadaResponsavelRepository', '$translate', '$timeout', 'DominioRepository', | ||
4 | - function CentroResultadoAlcadaResponsavelListController($scope, CentroResultadoAlcadaResponsavelRepository, $translate, $timeout, DominioRepository) { | ||
5 | - $scope.$showAdvancedFilters = false; | ||
6 | - | ||
7 | - $scope.resetForm = function() { | ||
8 | - angular.element("#editCentroResultadoAlcadaResponsavel").scope().resetForm(); | ||
9 | - }; | ||
10 | - | ||
11 | - $scope.headers = [ {title : $translate.instant('ALCADA.LABEL.ALCADA'), value : 'alcada.nome' } , {title : $translate.instant('LABEL.CENTRORESULTADO'), value : 'centroResultado.nome' } , {title : $translate.instant('LABEL.COLABORADOR'), value : 'colaborador.nome' }]; | ||
12 | - | ||
13 | - $scope.filterCriteria = { | ||
14 | - start : 1, | ||
15 | - dir : 'asc', | ||
16 | - sort : 'id', | ||
17 | - limit : 10, | ||
18 | - fields: ['id', 'alcada.nome', 'centroResultado.nome', 'colaborador.nome'], | ||
19 | - filters : [ {type : 'string', field : 'alcada.nome' } , {type : 'string', field : 'centroResultado.nome' } , {type : 'string', field : 'colaborador.nome' }] | ||
20 | - }; | ||
21 | - | ||
22 | - // ABRI CentroResultadoAlcadaResponsavel SELECIONADA | ||
23 | - $scope.abrirVisualizar = function(edit){ | ||
24 | - var centroResultadoAlcadaResponsavel = $scope.centroResultadoAlcadaResponsavelChecked; | ||
25 | - | ||
26 | - if(!centroResultadoAlcadaResponsavel) { | ||
27 | - $scope.showAlert('warning', !edit ? $translate.instant('MSG.SELECIONE_UM_ITEM_PARA_VISUALIZACAO') : $translate.instant('MSG.SELECIONE_UM_ITEM_PARA_EDICAO')); | ||
28 | - return; | ||
29 | - } | ||
30 | - angular.element('#editCentroResultadoAlcadaResponsavel').scope().getCentroResultadoAlcadaResponsavel(centroResultadoAlcadaResponsavel, edit); | ||
31 | - $scope.$showPageEditWorkspace($scope.workspace); | ||
32 | - }; | ||
33 | -}]); | ||
34 | \ No newline at end of file | 0 | \ No newline at end of file |
cit-alcada-web/bin/src/main/webapp/assets/js/angular/custom/controller/CentroResultadoController.js
@@ -1,259 +0,0 @@ | @@ -1,259 +0,0 @@ | ||
1 | -'use strict'; | ||
2 | - | ||
3 | -citApp.controller('CentroResultadoController', ['$scope', 'CentroResultadoRepository', 'CentroResultadoResponsavelRepository', 'PessoaRepository', 'AlcadaRepository', '$translate', '$timeout', '$filter', | ||
4 | - function CentroResultadoController($scope, CentroResultadoRepository, CentroResultadoResponsavelRepository, PessoaRepository, AlcadaRepository, $translate, $timeout, $filter) { | ||
5 | - | ||
6 | - $scope.centroResultado = {}; | ||
7 | - $scope.historicoResponsaveis = []; | ||
8 | - $scope.alcadas = []; | ||
9 | - // Limpa formulário para novo cadastro | ||
10 | - $scope.resetForm = function() { | ||
11 | - $scope.limparCentroResultado(); | ||
12 | - $scope.findAlcadaSource(); | ||
13 | - $scope.edit = true; | ||
14 | - $timeout(function(){ | ||
15 | - $scope.centroResultadoForm.$submitted = false; | ||
16 | - $scope.centroResultadoForm.$setPristine(); | ||
17 | - }); | ||
18 | - }; | ||
19 | - | ||
20 | - // Atualiza pagina de pesquisa | ||
21 | - $scope.atualizaPaginaPesquisa = function () { | ||
22 | - angular.element('#searchCentroResultado').scope().fetchResult(); | ||
23 | - }; | ||
24 | - | ||
25 | - // MODAL QUE CONFIRMA REMOVER Do CENTRO DE RESULTADO | ||
26 | - $scope.remove = function(centroResultado){ | ||
27 | - $scope.centroResultado = centroResultado; | ||
28 | - $scope.$openModalConfirm({ | ||
29 | - message: $translate.instant('MSG.CONFIRMA_EXCLUSAO'), | ||
30 | - callback: function () { | ||
31 | - CentroResultadoRepository.remove($scope.centroResultado).then(function() { | ||
32 | - | ||
33 | - $scope.$modalConfirmInstance.dismiss('cancel'); | ||
34 | - $scope.showAlert("success", $translate.instant('MSG.REGISTRO_EXCLUIDO')); | ||
35 | - angular.element('#searchCentroResultado').scope().fetchResult(); | ||
36 | - | ||
37 | - $scope.resetForm(); | ||
38 | - }); | ||
39 | - } | ||
40 | - }); | ||
41 | - }; | ||
42 | - | ||
43 | - // SALVA O CentroResultado | ||
44 | - $scope.saveOrUpdate = function(){ | ||
45 | - $scope.centroResultadoForm.$submitted = true; | ||
46 | - | ||
47 | - // $scope.verificaResponsaveis(); | ||
48 | - //verifica se o formulario está valido para salvar | ||
49 | - if($scope.centroResultadoForm.$valid){ | ||
50 | - | ||
51 | - if (!$scope.centroResultado.centroResultadoParent && $scope.centroResultado.responsaveis && $scope.centroResultado.responsaveis.lenght){ | ||
52 | - | ||
53 | - $scope.showAlert('warning', $translate.instant('ALCADA.MSG.CENTRO_RESULTADO_SEM_PARENT_REMOVE_RESPONSAVEIS'), " ", false); | ||
54 | - | ||
55 | - } else { | ||
56 | - $scope.setLoadingSalva(true); | ||
57 | - | ||
58 | - CentroResultadoRepository.save($scope.centroResultado).then(function(result) { | ||
59 | - $scope.centroResultado = result.originalElement; | ||
60 | - $scope.showAlert("success", $translate.instant('MSG.REGISTRO_SALVO')); | ||
61 | - $scope.centroResultadoForm.$submitted = false; | ||
62 | - $scope.getCentroResultado(result.originalElement, true); | ||
63 | - | ||
64 | - $scope.setLoading(false); | ||
65 | - }); | ||
66 | - } | ||
67 | - }else{ | ||
68 | - //Mensagem de erro de campos obrigatorios não preenchidos | ||
69 | - $scope.showAlert('error', $translate.instant('VALIDACAO.ALERTA_OBRIGATORIOS'), " ", false); | ||
70 | - } | ||
71 | - }; | ||
72 | - | ||
73 | - // Limpa o formulario preenchido | ||
74 | - $scope.limparCentroResultado = function(){ | ||
75 | - $scope.alcadas = []; | ||
76 | - $scope.centroResultado = {}; | ||
77 | - $scope.historicoResponsaveis = []; | ||
78 | - $scope.responsavel = null; | ||
79 | - $scope.editResponsavel = false; | ||
80 | - }; | ||
81 | - | ||
82 | - // Consulta entidade e mostra no formulario | ||
83 | - $scope.getCentroResultado = function(centroResultado, edit){ | ||
84 | - $scope.setLoadingGet(true); | ||
85 | - $scope.limparCentroResultado(); | ||
86 | - | ||
87 | - CentroResultadoRepository.get(centroResultado.id).then(function(result) { | ||
88 | - $scope.centroResultado = result.originalElement; | ||
89 | - $scope.buscaHistoricoResponsaveis(centroResultado); | ||
90 | - $scope.findAlcadaSource(); | ||
91 | - $scope.edit = edit; | ||
92 | - $scope.setLoading(false); | ||
93 | - }); | ||
94 | - }; | ||
95 | - | ||
96 | - $scope.buscaHistoricoResponsaveis = function(centroResultado){ | ||
97 | - CentroResultadoResponsavelRepository.buscaHistoricoResponsaveis(centroResultado.id).then(function(result) { | ||
98 | - $scope.historicoResponsaveis = result; | ||
99 | - }); | ||
100 | - }; | ||
101 | - | ||
102 | - $scope.findAutoCompleteCentroResultado = function(value){ | ||
103 | - return CentroResultadoRepository.findAutoComplete('nome', value).then(function(result) { | ||
104 | - | ||
105 | - var resultFiltered = $filter('idNotEqual')(result, [$scope.centroResultado]); | ||
106 | - | ||
107 | - return resultFiltered; | ||
108 | - }); | ||
109 | - }; | ||
110 | - | ||
111 | - //#### INICIO METODOS RESPONSAVEL ALCADA CENTRORESULTADO | ||
112 | - $scope.findAutoCompleteAlcada = function(value){ | ||
113 | - return AlcadaRepository.findAutoComplete('nome', value).then(function(result) { | ||
114 | - return result; | ||
115 | - }); | ||
116 | - }; | ||
117 | - | ||
118 | - $scope.findAutoCompleteResponsavel = function(value) { | ||
119 | - return PessoaRepository.findColaboradorPorNome(value).then(function(result) { | ||
120 | - | ||
121 | - var responsaveis = []; | ||
122 | - | ||
123 | - if($scope.centroResultado.responsaveis) { | ||
124 | - $scope.centroResultado.responsaveis.forEach(function (item) { | ||
125 | - responsaveis.push(item.responsavel); | ||
126 | - }); | ||
127 | - } | ||
128 | - | ||
129 | - var resultFiltered = $filter('idNotEqual')(result, responsaveis); | ||
130 | - | ||
131 | - return resultFiltered; | ||
132 | - }); | ||
133 | - }; | ||
134 | - | ||
135 | - //ADICIONA O RESPONSAVEL SELECIONADO | ||
136 | - $scope.adicionarResponsavel = function(){ | ||
137 | - // SE NAO POSSUI ARRAY DE RESPONSAVEIS, CRIA O ATRIBUTO | ||
138 | - if($scope.responsavel != null && $scope.alcadas.length > 0){ | ||
139 | - | ||
140 | - if(!$scope.centroResultado.responsaveis){ | ||
141 | - $scope.centroResultado.responsaveis = []; | ||
142 | - } | ||
143 | - | ||
144 | - var indexResponsavel = _.findIndex($scope.centroResultado.responsaveis, {responsavel: {id: $scope.responsavel.id}}); | ||
145 | - if(indexResponsavel >= 0) { | ||
146 | - $scope.centroResultado.responsaveis[indexResponsavel].responsavel = $scope.responsavel; | ||
147 | - | ||
148 | - // Seta data inativo nos itens removidos pelo usuario | ||
149 | - $scope.centroResultado.responsaveis[indexResponsavel].alcadas.forEach(function (item) { | ||
150 | - var indexAlcada = _.findIndex($scope.alcadas, {alcada: {id: item.alcada.id}}); | ||
151 | - | ||
152 | - if(indexAlcada < 0 && item.id) { | ||
153 | - item.dataInativo = $filter('date')(new Date(), 'dd/MM/yyyy'); | ||
154 | - } else if(item.id) { | ||
155 | - item.dataInativo = null; | ||
156 | - } | ||
157 | - }); | ||
158 | - | ||
159 | - // Adiciona os itens selecionados que ainda não foi salvo | ||
160 | - $scope.alcadas.forEach(function (item) { | ||
161 | - if(!item.id) { | ||
162 | - $scope.centroResultado.responsaveis[indexResponsavel].alcadas.push(item); | ||
163 | - } | ||
164 | - }); | ||
165 | - } else { | ||
166 | - $scope.centroResultado.responsaveis.push({alcadas : $scope.alcadas, | ||
167 | - responsavel : $scope.responsavel, dataInativo: null}); | ||
168 | - } | ||
169 | - | ||
170 | - $timeout(function(){ | ||
171 | - $scope.alcadas = []; | ||
172 | - $scope.findAlcadaSource(); | ||
173 | - $scope.responsavel = null; | ||
174 | - $scope.editResponsavel = false; | ||
175 | - }); | ||
176 | - }else{ | ||
177 | - //Mensagem de erro de campos obrigatorios não preenchidos | ||
178 | - $scope.showAlert('error', $translate.instant('ALCADA.VALIDACAO.ALERTA_OBRIGATORIOS_RESPONSAVEIS'), " ", false); | ||
179 | - } | ||
180 | - }; | ||
181 | - | ||
182 | - //REMOVE O RESPONSAVEL SELECIONADO | ||
183 | - $scope.removerResponsavel = function(){ | ||
184 | - if(!$scope.responsavelChecked) { | ||
185 | - $scope.showAlert('warning', $translate.instant('MSG.SELECIONE_UM_ITEM_PARA_SER_REMOVIDO')); | ||
186 | - return; | ||
187 | - } else { | ||
188 | - $scope.$openModalConfirm({ | ||
189 | - message: $translate.instant('MSG.CONFIRMA_EXCLUSAO'), | ||
190 | - callback: function () { | ||
191 | - if($scope.responsavelChecked.id != undefined && $scope.responsavelChecked.id){ | ||
192 | - CentroResultadoResponsavelRepository.removeById($scope.responsavelChecked.id).then(function() { | ||
193 | - $scope.$modalConfirmInstance.dismiss('cancel'); | ||
194 | - $scope.showAlert("success", $translate.instant('MSG.REGISTRO_EXCLUIDO')); | ||
195 | - $scope.centroResultado.responsaveis.splice($scope.responsavelChecked.$index, 1); | ||
196 | - }); | ||
197 | - } else { | ||
198 | - $scope.$modalConfirmInstance.dismiss('cancel'); | ||
199 | - $scope.showAlert("success", $translate.instant('MSG.REGISTRO_EXCLUIDO')); | ||
200 | - $scope.centroResultado.responsaveis.splice($scope.responsavelChecked.$index, 1); | ||
201 | - } | ||
202 | - } | ||
203 | - }); | ||
204 | - } | ||
205 | - }; | ||
206 | - | ||
207 | - // EDITAR O RESPONSAVEL SELECIONADO | ||
208 | - $scope.editarResponsavel = function () { | ||
209 | - if(!$scope.responsavelChecked) { | ||
210 | - $scope.showAlert('warning', $translate.instant('MSG.SELECIONE_UM_ITEM_PARA_SER_EDITADO')); | ||
211 | - return; | ||
212 | - } else { | ||
213 | - $scope.responsavel = $scope.responsavelChecked.responsavel; | ||
214 | - $scope.alcadas = _.where($scope.responsavelChecked.alcadas, {dataInativo: null}); | ||
215 | - $scope.editResponsavel = true; | ||
216 | - | ||
217 | - removeAttributesGrupoAlcada(); | ||
218 | - | ||
219 | - $scope.responsavelChecked.alcadas.forEach(function (item) { | ||
220 | - var indexAlcada = _.findIndex($scope.grupoAlcadaSource, {alcada: {id: item.alcada.id}}); | ||
221 | - $scope.grupoAlcadaSource[indexAlcada] = item; | ||
222 | - }); | ||
223 | - } | ||
224 | - }; | ||
225 | - | ||
226 | - var removeAttributesGrupoAlcada = function () { | ||
227 | - var grupoAlcadaCopy = angular.copy($scope.grupoAlcadaSource); | ||
228 | - $scope.grupoAlcadaSource = []; | ||
229 | - | ||
230 | - grupoAlcadaCopy.forEach(function (item) { | ||
231 | - $scope.grupoAlcadaSource.push( _.pick(item, 'alcada') ); | ||
232 | - }); | ||
233 | - }; | ||
234 | - | ||
235 | - //#### FIM METODOS RESPONSAVEL ALCADA CENTRORESULTADO | ||
236 | - | ||
237 | - $scope.grupoAlcadaSource = []; | ||
238 | - | ||
239 | - $scope.filterCriteriaAlcada = { | ||
240 | - start : 1, | ||
241 | - dir : 'asc', | ||
242 | - sort : 'id', | ||
243 | - limit : 10, | ||
244 | - fields: ['id', 'nome'] | ||
245 | - }; | ||
246 | - | ||
247 | - //Método responsável por listar as alcadas | ||
248 | - $scope.findAlcadaSource = function(){ | ||
249 | - $scope.grupoAlcadaSource = []; | ||
250 | - AlcadaRepository.getListPage($scope.filterCriteriaAlcada).then(function(result) { | ||
251 | - //Percorre a lista de alcada para montar a lista de grupoAlcada | ||
252 | - result.originalElement.objects.forEach(function (item, index) { | ||
253 | - var grupoAlcada = {}; | ||
254 | - grupoAlcada.alcada = item; | ||
255 | - $scope.grupoAlcadaSource.push(grupoAlcada); | ||
256 | - }); | ||
257 | - }); | ||
258 | - }; | ||
259 | -}]); | ||
260 | \ No newline at end of file | 0 | \ No newline at end of file |
cit-alcada-web/bin/src/main/webapp/assets/js/angular/custom/controller/CentroResultadoDelegacaoController.js
@@ -1,312 +0,0 @@ | @@ -1,312 +0,0 @@ | ||
1 | -'use strict'; | ||
2 | - | ||
3 | -citApp.controller('CentroResultadoDelegacaoController', ['$scope', 'CentroResultadoDelegacaoRepository', 'PessoaRepository', 'CentroResultadoRepository', 'DominioRepository', 'AlcadaRepository', 'CentroResultadoResponsavelRepository', 'CentroResultadoResponsavelAlcadaRepository', '$translate', '$timeout', '$filter', | ||
4 | - function CentroResultadoDelegacaoController($scope, CentroResultadoDelegacaoRepository, PessoaRepository, CentroResultadoRepository, DominioRepository, AlcadaRepository, CentroResultadoResponsavelRepository, CentroResultadoResponsavelAlcadaRepository, $translate, $timeout, $filter) { | ||
5 | - $scope.centroResultadoDelegacao = {}; | ||
6 | - $scope.alcadasSelecionadas = []; | ||
7 | - $scope.idsAlcadasSelecionados = []; | ||
8 | - $scope.historicoDelegacoes = []; | ||
9 | - $scope.colaboradoresSelecionados = []; | ||
10 | - | ||
11 | - $scope.TIPO_ABRANGENCIA_DELEGACAO_NOVAS_E_ANDAMENTO_CODIGO = 1; | ||
12 | - $scope.TIPO_ABRANGENCIA_DELEGACAO_NOVAS = 2; | ||
13 | - $scope.TIPO_ABRANGENCIA_DELEGACAO_ESPECIFICAS = 3; | ||
14 | - | ||
15 | - // Limpa formulário para novo cadastro | ||
16 | - $scope.resetForm = function() { | ||
17 | - $scope.alcadas = []; | ||
18 | - $scope.filter.centroResultado = null; | ||
19 | - $scope.idsAlcadasSelecionados = []; | ||
20 | - $scope.historicoDelegacoes = []; | ||
21 | - $scope.alcadasSelecionadas = []; | ||
22 | - $scope.limparCentroResultadoDelegacao(); | ||
23 | - $scope.edit = true; | ||
24 | - $timeout(function(){ | ||
25 | - $scope.centroResultadoDelegacaoForm.$submitted = false; | ||
26 | - $scope.centroResultadoDelegacaoForm.$setPristine(); | ||
27 | - }); | ||
28 | - }; | ||
29 | - | ||
30 | - // Limpa o formulario preenchido | ||
31 | - $scope.limpar = function(){ | ||
32 | - $scope.centroResultadoDelegacao = {}; | ||
33 | - $scope.resetForm(); | ||
34 | - }; | ||
35 | - | ||
36 | - // Atualiza pagina de pesquisa | ||
37 | - $scope.atualizaPaginaPesquisa = function () { | ||
38 | - angular.element('#searchCentroResultadoDelegacao').scope().fetchResult(); | ||
39 | - }; | ||
40 | - | ||
41 | - // MODAL QUE CONFIRMA REMOVER DA CIDADE | ||
42 | - $scope.remove = function(centroResultadoDelegacao){ | ||
43 | - $scope.centroResultadoDelegacao = centroResultadoDelegacao; | ||
44 | - $scope.$openModalConfirm({ | ||
45 | - message: $translate.instant('MSG.CONFIRMA_EXCLUSAO'), | ||
46 | - callback: function () { | ||
47 | - CentroResultadoDelegacaoRepository.remove($scope.centroResultadoDelegacao).then(function() { | ||
48 | - | ||
49 | - $scope.$modalConfirmInstance.dismiss('cancel'); | ||
50 | - $scope.showAlert("success", $translate.instant('MSG.REGISTRO_EXCLUIDO')); | ||
51 | - angular.element('#searchCentroResultadoDelegacao').scope().fetchResult(); | ||
52 | - | ||
53 | - $scope.resetForm(); | ||
54 | - }); | ||
55 | - } | ||
56 | - }); | ||
57 | - }; | ||
58 | - | ||
59 | - // Consulta entidade e mostra no formulario | ||
60 | - $scope.getCentroResultadoDelegacao = function(centroResultadoDelegacao, edit){ | ||
61 | - $scope.setLoadingGet(true); | ||
62 | - | ||
63 | - CentroResultadoDelegacaoRepository.get(centroResultadoDelegacao.id).then(function(result) { | ||
64 | - $scope.centroResultadoDelegacao = result.originalElement; | ||
65 | - $scope.buscaHistoricoDelegacoes($scope.centroResultadoDelegacao.centroResultadoResponsavelAlcada.centroResultadoResponsavel.centroResultado.id); | ||
66 | - $scope.edit = edit; | ||
67 | - $scope.setLoading(false); | ||
68 | - }); | ||
69 | - }; | ||
70 | - | ||
71 | - //FIND AUTOCOMPLETE ALCADA | ||
72 | - $scope.findAutoCompleteAlcada = function(value){ | ||
73 | - return AlcadaRepository.findAutoComplete('nome', value).then(function(result) { | ||
74 | - return result; | ||
75 | - }); | ||
76 | - }; | ||
77 | - | ||
78 | - //FIND AUTOCOMPLETE CENTRORESULTADO | ||
79 | - $scope.findAutoCompleteCentroResultado = function(value){ | ||
80 | - return CentroResultadoRepository.findAutoComplete('nome', value).then(function(result) { | ||
81 | - return result; | ||
82 | - }); | ||
83 | - }; | ||
84 | - | ||
85 | - //FIND AUTOCOMPELTE RESPONSAVEL | ||
86 | - $scope.findAutoCompleteColaborador = function(value){ | ||
87 | - return PessoaRepository.findColaboradorPorNome(value).then(function(result) { | ||
88 | - // Filtra para nao mostrar os colaboradores que foram selecionados | ||
89 | - return $filter('idNotEqual')(result, $scope.colaboradoresSelecionados); | ||
90 | - }); | ||
91 | - }; | ||
92 | - | ||
93 | - //BUSCA OS DOMINIOS tipoAbrangenciaDelegacao | ||
94 | - DominioRepository.findAllDominio('tipoAbrangenciaDelegacao').then(function(result) { | ||
95 | - $scope.dominioTipoAbrangenciaDelegacaoList = result; | ||
96 | - }); | ||
97 | - | ||
98 | - | ||
99 | - //#### INICIO METODOS TABELA ALCADAS PAGINADA ####// | ||
100 | - // DEFINE CABEÇALHOS DA LISTAGEM | ||
101 | - $scope.headers = [ {title : $translate.instant('LABEL.RESPONSAVEL'), value : 'centroResultadoResponsavel.responsavel.pessoa.nome' } , | ||
102 | - {title : $translate.instant('ALCADA.LABEL.ALCADA'), value : 'alcada.nome' } ]; | ||
103 | - | ||
104 | - $scope.totalPages = 10; | ||
105 | - $scope.totalItens = 0; | ||
106 | - $scope.limit = 2; | ||
107 | - | ||
108 | - //FILTRO CRITERIA | ||
109 | - $scope.filterCriteria = { | ||
110 | - start : 1, | ||
111 | - dir : 'desc', | ||
112 | - sort : 'id', | ||
113 | - limit : 10, | ||
114 | - fields: ['id', 'centroResultadoResponsavel.responsavel.pessoa.nome', 'centroResultadoResponsavel.responsavel.pessoa.id', 'alcada.nome' ], | ||
115 | - filters : [ {type : 'numeric', field : 'centroResultadoResponsavel.centroResultado.id' }] | ||
116 | - }; | ||
117 | - | ||
118 | - $scope.fetchResult = function(page) { | ||
119 | - $scope.setLoadingPesquisa(true); | ||
120 | - $scope.itemSelecionado = undefined; | ||
121 | - | ||
122 | - | ||
123 | - $scope.alcadas = []; | ||
124 | - | ||
125 | - $scope.idsAlcadasSelecionados = []; | ||
126 | - $scope.historicoDelegacoes = []; | ||
127 | - $scope.alcadasSelecionadas = []; | ||
128 | - $scope.limparCentroResultadoDelegacao(); | ||
129 | - | ||
130 | - $timeout(function(){ | ||
131 | - $scope.centroResultadoDelegacaoForm.$submitted = false; | ||
132 | - $scope.centroResultadoDelegacaoForm.$setPristine(); | ||
133 | - }); | ||
134 | - | ||
135 | - if($scope.filter.centroResultado && $scope.filter.centroResultado.id){ | ||
136 | - $scope.filterCriteria.filters[0].value = $scope.filter.centroResultado.id; | ||
137 | - $scope.buscaHistoricoDelegacoes($scope.filter.centroResultado.id); | ||
138 | - }else{ | ||
139 | - $scope.filterCriteria.filters[0].value = ''; | ||
140 | - } | ||
141 | - | ||
142 | - CentroResultadoResponsavelAlcadaRepository.getListPage($scope.filterCriteria).then(function(result) { | ||
143 | - $scope.alcadas = result.originalElement.objects; | ||
144 | - $scope.totalPages = result.originalElement.totalPages; | ||
145 | - $scope.totalItens = result.originalElement.totalItens; | ||
146 | - $scope.scrollToCadastro('#tableAlcadas'); | ||
147 | - $scope.selecionarAlcadas = false; | ||
148 | - $scope.setLoading(false); | ||
149 | - | ||
150 | - if(!result.originalElement.objects || (result.originalElement.objects && result.originalElement.objects.length <= 0)) { | ||
151 | - $scope.showAlert('warning', $translate.instant('ALCADA.MSG.NAO_FOI_ENCONTRADO_RESPONSAVEIS_PARA_ESTE_CENTRO_RESULTADO')); | ||
152 | - } | ||
153 | - }, function() { | ||
154 | - $scope.alcadas = []; | ||
155 | - $scope.totalPages = 0; | ||
156 | - $scope.totalItens = 0; | ||
157 | - $scope.setLoading(false); | ||
158 | - }); | ||
159 | - }; | ||
160 | - //#### FIM METODOS TABELA ALCADAS PAGINADA ####// | ||
161 | - | ||
162 | - //#### INICIO METODOS DELEGAR ####// | ||
163 | - //SELECIONA UMA ALCADA - RESPONSAVEL | ||
164 | - $scope.selecionarAlcada = function(alcada, $index){ | ||
165 | - $timeout(function(){ | ||
166 | - if (!alcada.$checked) { | ||
167 | - var indexIdAlcadaSelecionada = _.indexOf($scope.idsAlcadasSelecionados, alcada.id); | ||
168 | - if(indexIdAlcadaSelecionada >= 0) { | ||
169 | - $scope.idsAlcadasSelecionados.splice(indexIdAlcadaSelecionada, 1); | ||
170 | - } | ||
171 | - | ||
172 | - var indexAlcadaSelecionada = _.findIndex($scope.alcadasSelecionadas, {id: alcada.id}); | ||
173 | - if(indexAlcadaSelecionada >= 0) { | ||
174 | - $scope.alcadasSelecionadas.splice(indexAlcadaSelecionada, 1); | ||
175 | - } | ||
176 | - }else { | ||
177 | - $scope.idsAlcadasSelecionados.push(alcada.id); | ||
178 | - $scope.alcadasSelecionadas.push(alcada); | ||
179 | - } | ||
180 | - }); | ||
181 | - }; | ||
182 | - | ||
183 | - DominioRepository.findAllDominio('tipoAbrangenciaCentroResultadoDelegacao').then(function(result) { | ||
184 | - $scope.dominioTipoAbrangenciaList = result; | ||
185 | - }); | ||
186 | - | ||
187 | - $scope.iniciaModal = function(){ | ||
188 | - $scope.limparCentroResultadoDelegacao(); | ||
189 | - getColaboradoresSelecionados(); | ||
190 | - $scope.$openModal('/cit-alcada-web/html/centroResultadoDelegacao/dialogCentroResultadoDelegacao.html', 'lg'); | ||
191 | - }; | ||
192 | - | ||
193 | - var getColaboradoresSelecionados = function() { | ||
194 | - $scope.colaboradoresSelecionados = []; | ||
195 | - | ||
196 | - var colaborador = 0; | ||
197 | - | ||
198 | - for(var i = 0; i < $scope.alcadasSelecionadas.length; i++) { | ||
199 | - colaborador = {id: $scope.alcadasSelecionadas[i]['centroResultadoResponsavel.responsavel.pessoa.id']}; | ||
200 | - | ||
201 | - if(!_.findWhere($scope.colaboradoresSelecionados, colaborador)) { | ||
202 | - $scope.colaboradoresSelecionados.push(colaborador); | ||
203 | - } | ||
204 | - } | ||
205 | - }; | ||
206 | - | ||
207 | - //DELEGA UMA ALCADA - RESPONSAVEL | ||
208 | - $scope.delegarAlcada = function(formDelegacaoAlcada) { | ||
209 | - formDelegacaoAlcada.$submitted = true; | ||
210 | - | ||
211 | - if(formDelegacaoAlcada.$valid){ | ||
212 | - var dataInicio = $scope.centroResultadoDelegacao.dataInicioDelegacao; | ||
213 | - var dataFim = $scope.centroResultadoDelegacao.dataFimDelegacao; | ||
214 | - | ||
215 | - if(isPeriodoValido(dataInicio, dataFim)){ | ||
216 | - var centroResultadoDelegacaoList = []; | ||
217 | - for (var i = 0; i < $scope.alcadasSelecionadas.length; i++) { | ||
218 | - centroResultadoDelegacaoList.push(montarObjeto($scope.alcadasSelecionadas[i].id)); | ||
219 | - } | ||
220 | - | ||
221 | - $scope.saveList(centroResultadoDelegacaoList); | ||
222 | - | ||
223 | - } else { | ||
224 | - $scope.showAlert("error", $translate.instant("VALIDACAO.PERIODO_INVALIDO_DATAINICIO_MAIOR_DATAFIM") + " ", false ); | ||
225 | - } | ||
226 | - }else{ | ||
227 | - $scope.showAlert('error', $translate.instant('VALIDACAO.ALERTA_OBRIGATORIOS')); | ||
228 | - } | ||
229 | - }; | ||
230 | - | ||
231 | - $scope.saveList = function (centroResultadoDelegacaoList) { | ||
232 | - $scope.setLoadingSalva(true); | ||
233 | - | ||
234 | - CentroResultadoDelegacaoRepository.saveList(centroResultadoDelegacaoList).then(function (result) { | ||
235 | - $scope.showAlert("success", $translate.instant('MSG.REGISTRO_SALVO')); | ||
236 | - $scope.centroResultadoDelegacaoForm.$submitted = false; | ||
237 | - | ||
238 | - $scope.buscaHistoricoDelegacoes($scope.filter.centroResultado.id); | ||
239 | - $scope.setLoading(false); | ||
240 | - | ||
241 | - if($scope.$modalInstance) { | ||
242 | - $scope.$modalInstance.dismiss('cancel'); | ||
243 | - } | ||
244 | - }); | ||
245 | - }; | ||
246 | - | ||
247 | - $scope.limparCentroResultadoDelegacao = function(){ | ||
248 | - $scope.centroResultadoDelegacao = {}; | ||
249 | - }; | ||
250 | - //MONTA O OBJETO DELEGACAO PARA SALVAR | ||
251 | - function montarObjeto(idCentroResultadoResponsavelAlcada){ | ||
252 | - var centroResultadoDelegacao = angular.copy($scope.centroResultadoDelegacao); | ||
253 | - | ||
254 | - centroResultadoDelegacao.centroResultadoResponsavelAlcada = { | ||
255 | - id: idCentroResultadoResponsavelAlcada | ||
256 | - }; | ||
257 | - | ||
258 | - montaObjetoRequisicoes(centroResultadoDelegacao); | ||
259 | - | ||
260 | - return centroResultadoDelegacao; | ||
261 | - } | ||
262 | - | ||
263 | - var montaObjetoRequisicoes = function(centroResultadoDelegacao) { | ||
264 | - if(centroResultadoDelegacao.requisicoes && centroResultadoDelegacao.requisicoes.length) { | ||
265 | - var requisicoes = []; | ||
266 | - for(var i = 0; i < centroResultadoDelegacao.requisicoes.length; i++) { | ||
267 | - var requisicao = { | ||
268 | - requisicao: centroResultadoDelegacao.requisicoes[i] | ||
269 | - }; | ||
270 | - | ||
271 | - requisicoes.push(requisicao); | ||
272 | - } | ||
273 | - | ||
274 | - centroResultadoDelegacao.requisicoes = requisicoes; | ||
275 | - } | ||
276 | - }; | ||
277 | - | ||
278 | - //#### FIM METODOS DELEGACAO####// | ||
279 | - | ||
280 | - //BUSCA TODAS AS DELEGACOES DO CENTRO DE RESULTADO | ||
281 | - $scope.buscaHistoricoDelegacoes = function(centroResultadoId){ | ||
282 | - CentroResultadoDelegacaoRepository.buscaHistoricoDelegacoes(centroResultadoId).then(function(result) { | ||
283 | - $scope.historicoDelegacoes = result; | ||
284 | - }); | ||
285 | - }; | ||
286 | - | ||
287 | - $scope.revogarDelegacao = function(){ | ||
288 | - if(!$scope.delegadoChecked) { | ||
289 | - $scope.showAlert('warning', $translate.instant('ALCADA.MSG.SELECIONE_UM_ITEM_PARA_REVOGAR')); | ||
290 | - return; | ||
291 | - } | ||
292 | - if($scope.delegadoChecked.dataRevogacao) { | ||
293 | - $scope.showAlert('warning', $translate.instant('ALCADA.MSG.ITEM_JA_REVOGADO')); | ||
294 | - return; | ||
295 | - } else { | ||
296 | - $scope.$openModalConfirm({ | ||
297 | - message: $translate.instant('ALCADA.MSG.CONFIRMA_REVOGACAO'), | ||
298 | - callback: function () { | ||
299 | - CentroResultadoDelegacaoRepository.revogar($scope.delegadoChecked.id).then(function (result) { | ||
300 | - $scope.$modalConfirmInstance.dismiss('cancel'); | ||
301 | - $scope.showAlert("success", $translate.instant('ALCADA.MSG.ITEM_REGOVADO')); | ||
302 | - | ||
303 | - $scope.delegadoChecked.dataRevogacao = dataHoje(); | ||
304 | - }); | ||
305 | - } | ||
306 | - }); | ||
307 | - } | ||
308 | - }; | ||
309 | - function dataHoje() { | ||
310 | - return $filter('date')(new Date(), 'dd/MM/yyyy'); | ||
311 | - }; | ||
312 | -}]); |
cit-alcada-web/bin/src/main/webapp/assets/js/angular/custom/controller/CentroResultadoDelegacaoListController.js
@@ -1,49 +0,0 @@ | @@ -1,49 +0,0 @@ | ||
1 | -'use strict'; | ||
2 | - | ||
3 | -citApp.controller('CentroResultadoDelegacaoListController', ['$scope', 'CentroResultadoDelegacaoRepository', '$translate', '$timeout', 'DominioRepository', | ||
4 | - function CentroResultadoDelegacaoListController($scope, CentroResultadoDelegacaoRepository, $translate, $timeout, DominioRepository) { | ||
5 | - $scope.$showAdvancedFilters = false; | ||
6 | - | ||
7 | - $scope.resetForm = function() { | ||
8 | - angular.element("#editCentroResultadoDelegacao").scope().resetForm(); | ||
9 | - }; | ||
10 | - | ||
11 | - $scope.headers = [ {title : $translate.instant('ALCADA.LABEL.CENTRO_RESULTADO'), value : 'centroResultado.nome' } , | ||
12 | - {title : $translate.instant('LABEL.DELEGADO'), value : 'delegado.pessoa.nome' } , | ||
13 | - {title : $translate.instant('LABEL.DATA_INICIO_DELEGACAO'), value : 'dataInicioDelegacao' , filter : 'dateBR'} , | ||
14 | - {title : $translate.instant('LABEL.DATA_FIM_DELEGACAO'), value : 'dataFimDelegacao' , filter : 'dateBR'} , | ||
15 | - {title : $translate.instant('LABEL.DOMINIO'), value : 'dominioTipoAbrangenciaDelegacao.descricao' }]; | ||
16 | - | ||
17 | - $scope.filterCriteria = { | ||
18 | - start : 1, | ||
19 | - dir : 'asc', | ||
20 | - sort : 'id', | ||
21 | - limit : 10, | ||
22 | - fields: ['id', 'centroResultado.nome', | ||
23 | - 'delegado.pessoa.nome', | ||
24 | - 'dataInicioDelegacao', | ||
25 | - 'dataFimDelegacao', | ||
26 | - 'dominioTipoAbrangenciaDelegacao.descricao'], | ||
27 | - filters : [ {type : 'string', field : 'centroResultado.nome' } , | ||
28 | - {type : 'string', field : 'delegado.pessoa.nome' } , | ||
29 | - {type : 'date', field : 'dataInicioDelegacao' } , | ||
30 | - {type : 'date', field : 'dataFimDelegacao' } , | ||
31 | - {type : 'string', field : 'dominioTipoAbrangenciaDelegacao.descricao', listaDominio : [] }] | ||
32 | - }; | ||
33 | - | ||
34 | - DominioRepository.findAllDominio('tipoDado').then(function(result) { | ||
35 | - $scope.filterCriteria.filters[7].listaDominio = result; | ||
36 | - }); | ||
37 | - | ||
38 | - // ABRI CentroResultadoDelegacao SELECIONADA | ||
39 | - $scope.abrirVisualizar = function(edit){ | ||
40 | - var centroResultadoDelegacao = $scope.centroResultadoDelegacaoChecked; | ||
41 | - | ||
42 | - if(!centroResultadoDelegacao) { | ||
43 | - $scope.showAlert('warning', !edit ? $translate.instant('MSG.SELECIONE_UM_ITEM_PARA_VISUALIZACAO') : $translate.instant('MSG.SELECIONE_UM_ITEM_PARA_EDICAO')); | ||
44 | - return; | ||
45 | - } | ||
46 | - angular.element('#editCentroResultadoDelegacao').scope().getCentroResultadoDelegacao(centroResultadoDelegacao, edit); | ||
47 | - $scope.$showPageEditWorkspace($scope.workspace); | ||
48 | - }; | ||
49 | -}]); | ||
50 | \ No newline at end of file | 0 | \ No newline at end of file |
cit-alcada-web/bin/src/main/webapp/assets/js/angular/custom/controller/CentroResultadoDelegacaoResponsavelController.js
@@ -1,284 +0,0 @@ | @@ -1,284 +0,0 @@ | ||
1 | -'use strict'; | ||
2 | - | ||
3 | -citApp.controller('CentroResultadoDelegacaoResponsavelController', ['$scope', 'CentroResultadoDelegacaoRepository', 'PessoaRepository', 'CentroResultadoRepository', 'DominioRepository', 'AlcadaRepository', | ||
4 | - 'CentroResultadoResponsavelRepository', 'CentroResultadoResponsavelAlcadaRepository', '$translate', '$timeout', '$filter', | ||
5 | - function CentroResultadoDelegacaoController($scope, CentroResultadoDelegacaoRepository, PessoaRepository, CentroResultadoRepository, DominioRepository, AlcadaRepository, | ||
6 | - CentroResultadoResponsavelRepository, CentroResultadoResponsavelAlcadaRepository, $translate, $timeout, $filter) { | ||
7 | - | ||
8 | - $scope.centroResultadoDelegacao = {}; | ||
9 | - $scope.alcadasSelecionadas = []; | ||
10 | - $scope.idsAlcadasSelecionados = []; | ||
11 | - $scope.historicoDelegacoes = []; | ||
12 | - | ||
13 | - // Limpa formulário para novo cadastro | ||
14 | - $scope.resetForm = function() { | ||
15 | - $scope.alcadas = []; | ||
16 | - $scope.filter.centroResultado = null; | ||
17 | - $scope.idsAlcadasSelecionados = []; | ||
18 | - $scope.historicoDelegacoes = []; | ||
19 | - $scope.alcadasSelecionadas = []; | ||
20 | - $scope.limparCentroResultadoDelegacao(); | ||
21 | - $scope.edit = true; | ||
22 | - $timeout(function(){ | ||
23 | - $scope.centroResultadoDelegacaoForm.$submitted = false; | ||
24 | - $scope.centroResultadoDelegacaoForm.$setPristine(); | ||
25 | - }); | ||
26 | - }; | ||
27 | - | ||
28 | - // Limpa o formulario preenchido | ||
29 | - $scope.limpar = function(){ | ||
30 | - $scope.centroResultadoDelegacao = {}; | ||
31 | - $scope.resetForm(); | ||
32 | - }; | ||
33 | - | ||
34 | - // Atualiza pagina de pesquisa | ||
35 | - $scope.atualizaPaginaPesquisa = function () { | ||
36 | - angular.element('#searchCentroResultadoDelegacao').scope().fetchResult(); | ||
37 | - }; | ||
38 | - | ||
39 | - // MODAL QUE CONFIRMA REMOVER DA CIDADE | ||
40 | - $scope.remove = function(centroResultadoDelegacao){ | ||
41 | - $scope.centroResultadoDelegacao = centroResultadoDelegacao; | ||
42 | - $scope.$openModalConfirm({ | ||
43 | - message: $translate.instant('MSG.CONFIRMA_EXCLUSAO'), | ||
44 | - callback: function () { | ||
45 | - CentroResultadoDelegacaoRepository.remove($scope.centroResultadoDelegacao).then(function() { | ||
46 | - | ||
47 | - $scope.$modalConfirmInstance.dismiss('cancel'); | ||
48 | - $scope.showAlert("success", $translate.instant('MSG.REGISTRO_EXCLUIDO')); | ||
49 | - angular.element('#searchCentroResultadoDelegacao').scope().fetchResult(); | ||
50 | - | ||
51 | - $scope.resetForm(); | ||
52 | - }); | ||
53 | - } | ||
54 | - }); | ||
55 | - }; | ||
56 | - | ||
57 | - // Consulta entidade e mostra no formulario | ||
58 | - $scope.getCentroResultadoDelegacao = function(centroResultadoDelegacao, edit){ | ||
59 | - $scope.setLoadingGet(true); | ||
60 | - | ||
61 | - CentroResultadoDelegacaoRepository.get(centroResultadoDelegacao.id).then(function(result) { | ||
62 | - $scope.centroResultadoDelegacao = result.originalElement; | ||
63 | - $scope.edit = edit; | ||
64 | - $scope.setLoading(false); | ||
65 | - }); | ||
66 | - }; | ||
67 | - | ||
68 | - //FIND AUTOCOMPLETE ALCADA | ||
69 | - $scope.findAutoCompleteAlcada = function(value){ | ||
70 | - return AlcadaRepository.findAutoComplete('nome', value).then(function(result) { | ||
71 | - return result; | ||
72 | - }); | ||
73 | - }; | ||
74 | - | ||
75 | - //FIND AUTOCOMPLETE CENTRORESULTADO | ||
76 | - $scope.findAutoCompleteCentroResultado = function(value){ | ||
77 | - return CentroResultadoRepository.findAutoComplete('nome', value).then(function(result) { | ||
78 | - return result; | ||
79 | - }); | ||
80 | - }; | ||
81 | - | ||
82 | - //FIND AUTOCOMPELTE RESPONSAVEL | ||
83 | - $scope.findAutoCompleteColaborador = function(value){ | ||
84 | - return PessoaRepository.findColaboradorPorNome(value).then(function(result) { | ||
85 | - return result; | ||
86 | - }); | ||
87 | - }; | ||
88 | - | ||
89 | - //BUSCA OS DOMINIOS tipoAbrangenciaDelegacao | ||
90 | - DominioRepository.findAllDominio('tipoAbrangenciaDelegacao').then(function(result) { | ||
91 | - $scope.dominioTipoAbrangenciaDelegacaoList = result; | ||
92 | - }); | ||
93 | - | ||
94 | - | ||
95 | - | ||
96 | - //#### INICIO METODOS TABELA ALCADAS PAGINADA ####// | ||
97 | - // DEFINE CABEÇALHOS DA LISTAGEM | ||
98 | - $scope.headers = [ {title : $translate.instant('ALCADA.LABEL.CENTRO_RESULTADO'), value : 'centroResultadoResponsavel.centroResultado.nome' } , | ||
99 | - {title : $translate.instant('LABEL.RESPONSAVEL'), value : 'centroResultadoResponsavel.responsavel.pessoa.nome' } , | ||
100 | - {title : $translate.instant('ALCADA.LABEL.ALCADA'), value : 'alcada.nome' } ]; | ||
101 | - | ||
102 | - $scope.totalPages = 10; | ||
103 | - $scope.totalItens = 0; | ||
104 | - $scope.limit = 2; | ||
105 | - | ||
106 | - //FILTRO CRITERIA | ||
107 | - $scope.filterCriteria = { | ||
108 | - start : 1, | ||
109 | - dir : 'desc', | ||
110 | - sort : 'id', | ||
111 | - limit : 10, | ||
112 | - fields: ['id', 'centroResultadoResponsavel.centroResultado.nome', 'centroResultadoResponsavel.responsavel.pessoa.nome', 'alcada.nome' ], | ||
113 | - filters : [ {type : 'numeric', field : 'centroResultadoResponsavel.responsavel.pessoa.usuario.id' }] | ||
114 | - }; | ||
115 | - | ||
116 | - $scope.fetchResult = function(page) { | ||
117 | - $timeout(function(){ | ||
118 | - $scope.setLoadingPesquisa(true); | ||
119 | - $scope.itemSelecionado = undefined; | ||
120 | - | ||
121 | - | ||
122 | - $scope.alcadas = []; | ||
123 | - | ||
124 | - $scope.idsAlcadasSelecionados = []; | ||
125 | - $scope.historicoDelegacoes = []; | ||
126 | - $scope.alcadasSelecionadas = []; | ||
127 | - $scope.limparCentroResultadoDelegacao(); | ||
128 | - | ||
129 | - $timeout(function(){ | ||
130 | - $scope.centroResultadoDelegacaoForm.$submitted = false; | ||
131 | - $scope.centroResultadoDelegacaoForm.$setPristine(); | ||
132 | - }); | ||
133 | - | ||
134 | - if($scope.usuarioLogado && $scope.usuarioLogado.id){ | ||
135 | - $scope.filterCriteria.filters[0].value = $scope.usuarioLogado.id; | ||
136 | - $scope.buscaHistoricoDelegacoesResponsavel($scope.usuarioLogado.id); | ||
137 | - }else{ | ||
138 | - $scope.filterCriteria.filters[0].value = ''; | ||
139 | - } | ||
140 | - | ||
141 | - return CentroResultadoResponsavelAlcadaRepository.getListPage($scope.filterCriteria).then(function(result) { | ||
142 | - $scope.alcadas = result.originalElement.objects; | ||
143 | - $scope.totalPages = result.originalElement.totalPages; | ||
144 | - $scope.totalItens = result.originalElement.totalItens; | ||
145 | - $scope.scrollToCadastro('#tableAlcadas'); | ||
146 | - $scope.selecionarAlcadas = false; | ||
147 | - $scope.setLoading(false); | ||
148 | - }, function() { | ||
149 | - $scope.alcadas = []; | ||
150 | - $scope.totalPages = 0; | ||
151 | - $scope.totalItens = 0; | ||
152 | - $scope.setLoading(false); | ||
153 | - }); | ||
154 | - }); | ||
155 | - }; | ||
156 | - //#### FIM METODOS TABELA ALCADAS PAGINADA ####// | ||
157 | - | ||
158 | - //#### INICIO METODOS DELEGAR ####// | ||
159 | - //SELECIONA UMA ALCADA - RESPONSABEL | ||
160 | - $scope.selecionarAlcada = function(alcada, $index){ | ||
161 | - $timeout(function(){ | ||
162 | - if (!alcada.$checked) { | ||
163 | - $scope.idsAlcadasSelecionados.splice($index, 1); | ||
164 | - $scope.alcadasSelecionadas.splice($index, 1); | ||
165 | - }else { | ||
166 | - $scope.idsAlcadasSelecionados.push(alcada.id); | ||
167 | - $scope.alcadasSelecionadas.push(alcada); | ||
168 | - } | ||
169 | - }); | ||
170 | - }; | ||
171 | - | ||
172 | - DominioRepository.findAllDominio('tipoAbrangenciaCentroResultadoDelegacao').then(function(result) { | ||
173 | - $scope.dominioTipoAbrangenciaList = result; | ||
174 | - }); | ||
175 | - | ||
176 | - $scope.iniciaModal = function(){ | ||
177 | - $scope.limparCentroResultadoDelegacao(); | ||
178 | - $scope.$openModal('/cit-alcada-web/html/centroResultadoDelegacao/dialogCentroResultadoDelegacao.html', 'lg'); | ||
179 | - }; | ||
180 | - | ||
181 | - //DELEGA UMA ALCADA - RESPONSAVEL | ||
182 | - $scope.delegarAlcada = function(formDelegacaoAlcada) { | ||
183 | - formDelegacaoAlcada.$submitted = true; | ||
184 | - | ||
185 | - if(formDelegacaoAlcada.$valid){ | ||
186 | - var dataInicio = $scope.centroResultadoDelegacao.dataInicioDelegacao; | ||
187 | - var dataFim = $scope.centroResultadoDelegacao.dataFimDelegacao; | ||
188 | - | ||
189 | - if(isPeriodoValido(dataInicio, dataFim)){ | ||
190 | - var centroResultadoDelegacaoList = []; | ||
191 | - for (var i = 0; i < $scope.alcadasSelecionadas.length; i++) { | ||
192 | - centroResultadoDelegacaoList.push(montarObjeto($scope.alcadasSelecionadas[i].id)); | ||
193 | - } | ||
194 | - | ||
195 | - $scope.saveList(centroResultadoDelegacaoList); | ||
196 | - | ||
197 | - $scope.$modalInstance.dismiss('cancel'); | ||
198 | - } else { | ||
199 | - $scope.showAlert("error", $translate.instant("VALIDACAO.PERIODO_INVALIDO_DATAINICIO_MAIOR_DATAFIM") + " ", false ); | ||
200 | - } | ||
201 | - }else{ | ||
202 | - $scope.showAlert('error', $translate.instant('VALIDACAO.ALERTA_OBRIGATORIOS')); | ||
203 | - } | ||
204 | - }; | ||
205 | - | ||
206 | - $scope.saveList = function (centroResultadoDelegacaoList) { | ||
207 | - $scope.setLoadingSalva(true); | ||
208 | - | ||
209 | - CentroResultadoDelegacaoRepository.saveList(centroResultadoDelegacaoList).then(function (result) { | ||
210 | - $scope.showAlert("success", $translate.instant('MSG.REGISTRO_SALVO')); | ||
211 | - $scope.centroResultadoDelegacaoForm.$submitted = false; | ||
212 | - | ||
213 | - $scope.buscaHistoricoDelegacoesResponsavel($scope.usuarioLogado.id); | ||
214 | - $scope.setLoading(false); | ||
215 | - }); | ||
216 | - }; | ||
217 | - | ||
218 | - $scope.saveOrUpdate = function(centroResultadoDelegacao){ | ||
219 | - | ||
220 | - $scope.centroResultadoDelegacaoForm.$submitted = true; | ||
221 | - //verifica se o formulario está valido para salvar | ||
222 | - $scope.setLoadingSalva(true); | ||
223 | - CentroResultadoDelegacaoRepository.save(centroResultadoDelegacao).then(function afterSalva(result){ | ||
224 | - $scope.centroResultadoDelegacao = result.originalElement; | ||
225 | - $scope.showAlert("success", $translate.instant('MSG.REGISTRO_SALVO')); | ||
226 | - $scope.centroResultadoDelegacaoForm.$submitted = false; | ||
227 | - $scope.buscaHistoricoDelegacoesResponsavel($scope.usuarioLogado.id); | ||
228 | - | ||
229 | - $scope.setLoading(false); | ||
230 | - }); | ||
231 | - }; | ||
232 | - | ||
233 | - | ||
234 | - $scope.limparCentroResultadoDelegacao = function(){ | ||
235 | - $scope.centroResultadoDelegacao = {}; | ||
236 | - }; | ||
237 | - //MONTA O OBJETO DELEGACAO PARA SALVAR | ||
238 | - function montarObjeto(idCentroResultadoResponsavelAlcada){ | ||
239 | - | ||
240 | - $scope.centroResultadoDelegacao.centroResultadoResponsavelAlcada = { | ||
241 | - id : idCentroResultadoResponsavelAlcada | ||
242 | - }; | ||
243 | - | ||
244 | - return angular.copy($scope.centroResultadoDelegacao); | ||
245 | - } | ||
246 | - | ||
247 | - //#### FIM METODOS DELEGACAO####// | ||
248 | - | ||
249 | - //BUSCA TODAS AS DELEGACOES DO CENTRO DE RESULTADO | ||
250 | - $scope.buscaHistoricoDelegacoesResponsavel = function(usuarioId){ | ||
251 | - CentroResultadoDelegacaoRepository.buscaHistoricoDelegacoesUsuario(usuarioId).then(function(result) { | ||
252 | - $scope.historicoDelegacoes = result; | ||
253 | - }); | ||
254 | - }; | ||
255 | - | ||
256 | - $scope.revogarDelegacao = function(){ | ||
257 | - if(!$scope.delegadoChecked) { | ||
258 | - $scope.showAlert('warning', $translate.instant('ALCADA.MSG.SELECIONE_UM_ITEM_PARA_REVOGAR')); | ||
259 | - return; | ||
260 | - } | ||
261 | - if($scope.delegadoChecked.dataRevogacao) { | ||
262 | - $scope.showAlert('warning', $translate.instant('ALCADA.MSG.ITEM_JA_REVOGADO')); | ||
263 | - return; | ||
264 | - } else { | ||
265 | - $scope.$openModalConfirm({ | ||
266 | - message: $translate.instant('ALCADA.MSG.CONFIRMA_REVOGACAO'), | ||
267 | - callback: function () { | ||
268 | - CentroResultadoDelegacaoRepository.revogar($scope.delegadoChecked.id).then(function (result) { | ||
269 | - $scope.$modalConfirmInstance.dismiss('cancel'); | ||
270 | - $scope.showAlert("success", $translate.instant('ALCADA.MSG.ITEM_REGOVADO')); | ||
271 | - | ||
272 | - $scope.delegadoChecked.dataRevogacao = dataHoje(); | ||
273 | - }); | ||
274 | - } | ||
275 | - }); | ||
276 | - } | ||
277 | - }; | ||
278 | - function dataHoje() { | ||
279 | - return $filter('date')(new Date(), 'dd/MM/yyyy'); | ||
280 | - } | ||
281 | - | ||
282 | - | ||
283 | - $scope.fetchResult(); | ||
284 | -}]); |
cit-alcada-web/bin/src/main/webapp/assets/js/angular/custom/controller/CentroResultadoListController.js
@@ -1,37 +0,0 @@ | @@ -1,37 +0,0 @@ | ||
1 | -'use strict'; | ||
2 | - | ||
3 | -citApp.controller('CentroResultadoListController', ['$scope', 'CentroResultadoRepository', '$translate', '$timeout', 'DominioRepository', | ||
4 | - function CentroResultadoListController($scope, CentroResultadoRepository, $translate, $timeout, DominioRepository) { | ||
5 | - $scope.$showAdvancedFilters = false; | ||
6 | - | ||
7 | - $scope.resetForm = function() { | ||
8 | - angular.element("#editCentroResultado").scope().resetForm(); | ||
9 | - }; | ||
10 | - | ||
11 | - $scope.headers = [ {title : $translate.instant('LABEL.NOME'), value : 'nome' } , | ||
12 | - {title : $translate.instant('LABEL.CODIGO'), value : 'codigo' } , | ||
13 | - {title : $translate.instant('ALCADA.LABEL.CENTRO_RESULTADO_PAI'), value : 'centroResultadoParent.nome' }]; | ||
14 | - | ||
15 | - $scope.filterCriteria = { | ||
16 | - start : 1, | ||
17 | - dir : 'asc', | ||
18 | - sort : 'id', | ||
19 | - limit : 10, | ||
20 | - fields: ['id', 'nome', 'codigo', 'centroResultadoParent.nome'], | ||
21 | - filters : [ {type : 'string', field : 'nome' } , | ||
22 | - {type : 'string', field : 'codigo' } , | ||
23 | - {type : 'string', field : 'centroResultadoParent.nome' }] | ||
24 | - }; | ||
25 | - | ||
26 | - // ABRI CentroResultado SELECIONADA | ||
27 | - $scope.abrirVisualizar = function(edit){ | ||
28 | - var centroResultado = $scope.centroResultadoChecked; | ||
29 | - | ||
30 | - if(!centroResultado) { | ||
31 | - $scope.showAlert('warning', !edit ? $translate.instant('MSG.SELECIONE_UM_ITEM_PARA_VISUALIZACAO') : $translate.instant('MSG.SELECIONE_UM_ITEM_PARA_EDICAO')); | ||
32 | - return; | ||
33 | - } | ||
34 | - angular.element('#editCentroResultado').scope().getCentroResultado(centroResultado, edit); | ||
35 | - $scope.$showPageEditWorkspace($scope.workspace); | ||
36 | - }; | ||
37 | -}]); |
cit-alcada-web/bin/src/main/webapp/assets/js/angular/custom/controller/CentroResultadoResponsavelAlcadaController.js
@@ -1,6 +0,0 @@ | @@ -1,6 +0,0 @@ | ||
1 | -'use strict'; | ||
2 | - | ||
3 | -citApp.controller('CentroResultadoResponsavelAlcadaController', ['$scope', 'CentroResultadoResponsavelAlcadaRepository', 'AlcadaRepository', 'CentroResultadoRepository', 'ColaboradorRepository', '$translate', '$timeou', | ||
4 | - function CentroResultadoResponsavelAlcadaController($scope, CentroResultadoResponsavelAlcadaRepository, AlcadaRepository, CentroResultadoRepository, ColaboradorRepository, $translate, $timeout) { | ||
5 | - | ||
6 | -}]); |
cit-alcada-web/bin/src/main/webapp/assets/js/angular/custom/controller/CentroResultadoResponsavelAlcadaListController.js
@@ -1,7 +0,0 @@ | @@ -1,7 +0,0 @@ | ||
1 | -'use strict'; | ||
2 | - | ||
3 | -citApp.controller('CentroResultadoResponsavelAlcadaListController', ['$scope', 'CentroResultadoResponsavelAlcadaRepository', '$translate', '$timeout', 'DominioRepository', | ||
4 | - function CentroResultadoResponsavelAlcadaListController($scope, CentroResultadoResponsavelAlcadaRepository, $translate, $timeout, DominioRepository) { | ||
5 | - $scope.$showAdvancedFilters = false; | ||
6 | - | ||
7 | -}]); |
cit-alcada-web/bin/src/main/webapp/assets/js/angular/custom/controller/CentroResultadoResponsavelController.js
@@ -1,99 +0,0 @@ | @@ -1,99 +0,0 @@ | ||
1 | -'use strict'; | ||
2 | - | ||
3 | -citApp.controller('centroResultadoResponsavelController', ['$scope', 'centroResultadoResponsavelRepository', 'AlcadaRepository', 'CentroResultadoRepository', 'ColaboradorRepository', '$translate', '$timeout', | ||
4 | - function centroResultadoResponsavelController($scope, centroResultadoResponsavelRepository, AlcadaRepository, CentroResultadoRepository, ColaboradorRepository, $translate, $timeout) { | ||
5 | - | ||
6 | - $scope.centroResultadoResponsavel = {}; | ||
7 | - | ||
8 | - // Limpa formulário para novo cadastro | ||
9 | - $scope.resetForm = function() { | ||
10 | - $scope.limparcentroResultadoResponsavel(); | ||
11 | - $scope.edit = true; | ||
12 | - $timeout(function(){ | ||
13 | - $scope.centroResultadoResponsavelForm.$submitted = false; | ||
14 | - $scope.centroResultadoResponsavelForm.$setPristine(); | ||
15 | - }); | ||
16 | - }; | ||
17 | - | ||
18 | - // Atualiza pagina de pesquisa | ||
19 | - $scope.atualizaPaginaPesquisa = function () { | ||
20 | - angular.element('#searchcentroResultadoResponsavel').scope().fetchResult(); | ||
21 | - }; | ||
22 | - | ||
23 | - // MODAL QUE CONFIRMA REMOVER DA CIDADE | ||
24 | - $scope.remove = function(centroResultadoResponsavel){ | ||
25 | - $scope.centroResultadoResponsavel = centroResultadoResponsavel; | ||
26 | - $scope.$openModalConfirm({ | ||
27 | - message: $translate.instant('MSG.CONFIRMA_EXCLUSAO'), | ||
28 | - callback: function () { | ||
29 | - centroResultadoResponsavelRepository.remove($scope.centroResultadoResponsavel).then(function() { | ||
30 | - | ||
31 | - $scope.$modalConfirmInstance.dismiss('cancel'); | ||
32 | - $scope.showAlert("success", $translate.instant('MSG.REGISTRO_EXCLUIDO')); | ||
33 | - angular.element('#searchcentroResultadoResponsavel').scope().fetchResult(); | ||
34 | - | ||
35 | - $scope.resetForm(); | ||
36 | - }); | ||
37 | - } | ||
38 | - }); | ||
39 | - }; | ||
40 | - | ||
41 | - // SALVA O centroResultadoResponsavel | ||
42 | - $scope.saveOrUpdate = function(){ | ||
43 | - $scope.centroResultadoResponsavelForm.$submitted = true; | ||
44 | - | ||
45 | - //verifica se o formulario está valido para salvar | ||
46 | - if($scope.centroResultadoResponsavelForm.$valid){ | ||
47 | - | ||
48 | - $scope.setLoadingSalva(true); | ||
49 | - | ||
50 | - centroResultadoResponsavelRepository.save($scope.centroResultadoResponsavel).then(function(result) { | ||
51 | - $scope.centroResultadoResponsavel = result.originalElement; | ||
52 | - $scope.showAlert("success", $translate.instant('MSG.REGISTRO_SALVO')); | ||
53 | - $scope.centroResultadoResponsavelForm.$submitted = false; | ||
54 | - }); | ||
55 | - $scope.setLoading(false); | ||
56 | - }else{ | ||
57 | - //Mensagem de erro de campos obrigatorios não preenchidos | ||
58 | - $scope.showAlert('error', $translate.instant('VALIDACAO.ALERTA_OBRIGATORIOS'), " ", false); | ||
59 | - } | ||
60 | - }; | ||
61 | - | ||
62 | - // Limpa o formulario preenchido | ||
63 | - $scope.limparcentroResultadoResponsavel = function(){ | ||
64 | - $scope.centroResultadoResponsavel = {}; | ||
65 | - }; | ||
66 | - | ||
67 | - // Consulta entidade e mostra no formulario | ||
68 | - $scope.getcentroResultadoResponsavel = function(centroResultadoResponsavel, edit){ | ||
69 | - $scope.setLoadingGet(true); | ||
70 | - | ||
71 | - centroResultadoResponsavelRepository.get(centroResultadoResponsavel.id).then(function(result) { | ||
72 | - $scope.centroResultadoResponsavel = result.originalElement; | ||
73 | - $scope.edit = edit; | ||
74 | - $scope.setLoading(false); | ||
75 | - }); | ||
76 | - }; | ||
77 | - | ||
78 | - // FIND AUTOCOMPLETE ALCADA | ||
79 | - $scope.findAutoCompleteAlcada = function(value){ | ||
80 | - return AlcadaRepository.findAutoComplete('nome', value).then(function(result) { | ||
81 | - return result; | ||
82 | - }); | ||
83 | - }; | ||
84 | - | ||
85 | - // FIND AUTOCOMPLETE CENTRORESULTADO | ||
86 | - $scope.findAutoCompleteCentroResultado = function(value){ | ||
87 | - return CentroResultadoRepository.findAutoComplete('nome', value).then(function(result) { | ||
88 | - return result; | ||
89 | - }); | ||
90 | - }; | ||
91 | - | ||
92 | - // FIND AUTOCOMPLETE RESPONSAVEL | ||
93 | - $scope.findAutoCompleteColaborador = function(value){ | ||
94 | - return ColaboradorRepository.findAutoComplete('nome', value).then(function(result) { | ||
95 | - return result; | ||
96 | - }); | ||
97 | - }; | ||
98 | - | ||
99 | -}]); | ||
100 | \ No newline at end of file | 0 | \ No newline at end of file |
cit-alcada-web/bin/src/main/webapp/assets/js/angular/custom/controller/CentroResultadoResponsavelListController.js
@@ -1,33 +0,0 @@ | @@ -1,33 +0,0 @@ | ||
1 | -'use strict'; | ||
2 | - | ||
3 | -citApp.controller('CentroResultadoAlcadaResponsavelListController', ['$scope', 'CentroResultadoAlcadaResponsavelRepository', '$translate', '$timeout', 'DominioRepository', | ||
4 | - function CentroResultadoAlcadaResponsavelListController($scope, CentroResultadoAlcadaResponsavelRepository, $translate, $timeout, DominioRepository) { | ||
5 | - $scope.$showAdvancedFilters = false; | ||
6 | - | ||
7 | - $scope.resetForm = function() { | ||
8 | - angular.element("#editCentroResultadoAlcadaResponsavel").scope().resetForm(); | ||
9 | - }; | ||
10 | - | ||
11 | - $scope.headers = [ {title : $translate.instant('ALCADA.LABEL.ALCADA'), value : 'alcada.nome' } , {title : $translate.instant('LABEL.CENTRORESULTADO'), value : 'centroResultado.nome' } , {title : $translate.instant('LABEL.COLABORADOR'), value : 'colaborador.nome' }]; | ||
12 | - | ||
13 | - $scope.filterCriteria = { | ||
14 | - start : 1, | ||
15 | - dir : 'asc', | ||
16 | - sort : 'id', | ||
17 | - limit : 10, | ||
18 | - fields: ['id', 'alcada.nome', 'centroResultado.nome', 'colaborador.nome'], | ||
19 | - filters : [ {type : 'string', field : 'alcada.nome' } , {type : 'string', field : 'centroResultado.nome' } , {type : 'string', field : 'colaborador.nome' }] | ||
20 | - }; | ||
21 | - | ||
22 | - // ABRI CentroResultadoAlcadaResponsavel SELECIONADA | ||
23 | - $scope.abrirVisualizar = function(edit){ | ||
24 | - var centroResultadoAlcadaResponsavel = $scope.centroResultadoAlcadaResponsavelChecked; | ||
25 | - | ||
26 | - if(!centroResultadoAlcadaResponsavel) { | ||
27 | - $scope.showAlert('warning', !edit ? $translate.instant('MSG.SELECIONE_UM_ITEM_PARA_VISUALIZACAO') : $translate.instant('MSG.SELECIONE_UM_ITEM_PARA_EDICAO')); | ||
28 | - return; | ||
29 | - } | ||
30 | - angular.element('#editCentroResultadoAlcadaResponsavel').scope().getCentroResultadoAlcadaResponsavel(centroResultadoAlcadaResponsavel, edit); | ||
31 | - $scope.$showPageEditWorkspace($scope.workspace); | ||
32 | - }; | ||
33 | -}]); | ||
34 | \ No newline at end of file | 0 | \ No newline at end of file |
cit-alcada-web/bin/src/main/webapp/assets/js/angular/custom/controller/CentroResultadoSubstituicaoController.js
@@ -1,109 +0,0 @@ | @@ -1,109 +0,0 @@ | ||
1 | -'use strict'; | ||
2 | - | ||
3 | -citApp.controller('CentroResultadoSubstituicaoController', ["$scope", "CentroResultadoSubstituicaoRepository", | ||
4 | - "PessoaRepository", "CentroResultadoRepository", "CentroResultadoResponsavelRepository", "$translate", "$timeout", "$filter", | ||
5 | - function CentroResultadoSubstituicaoController($scope, CentroResultadoSubstituicaoRepository, | ||
6 | - PessoaRepository, CentroResultadoRepository, CentroResultadoResponsavelRepository, $translate, $timeout, $filter) { | ||
7 | - | ||
8 | - $scope.responsavelChecked = {}; | ||
9 | - $scope.centroResultadoSubstituicao = {}; | ||
10 | - $scope.historicoSubstituicoes = []; | ||
11 | - | ||
12 | - // Limpa formulário para novo cadastro | ||
13 | - $scope.resetForm = function() { | ||
14 | - $scope.filter.centroResultado = null; | ||
15 | - $scope.historicoSubstituicoes = []; | ||
16 | - $scope.limparCentroResultadoSubstituicao(); | ||
17 | - $scope.edit = true; | ||
18 | - $timeout(function(){ | ||
19 | - $scope.centroResultadoForm.$submitted = false; | ||
20 | - $scope.centroResultadoSubstituicaoForm.$setPristine(); | ||
21 | - }); | ||
22 | - }; | ||
23 | - | ||
24 | - // Limpa o formulario preenchido | ||
25 | - $scope.limpar = function(){ | ||
26 | - $scope.centroResultado = {}; | ||
27 | - $scope.resetForm(); | ||
28 | - }; | ||
29 | - | ||
30 | - //FIND AUTOCOMPLETE CENTRORESULTADO | ||
31 | - $scope.findAutoCompleteCentroResultado = function(value){ | ||
32 | - return CentroResultadoRepository.findAutoComplete('nome', value).then(function(result) { | ||
33 | - return result; | ||
34 | - }); | ||
35 | - }; | ||
36 | - | ||
37 | - //FIND AUTOCOMPELTE RESPONSAVEL | ||
38 | - $scope.findAutoCompleteColaborador = function(value){ | ||
39 | - return PessoaRepository.findColaboradorPorNome(value).then(function(result) { | ||
40 | - return result; | ||
41 | - }); | ||
42 | - }; | ||
43 | - | ||
44 | - // Consulta entidade e mostra no formulario | ||
45 | - $scope.fetchResult = function(){ | ||
46 | - if($scope.filter.centroResultado && $scope.filter.centroResultado.id){ | ||
47 | - $scope.setLoadingGet(true); | ||
48 | - $scope.limparCentroResultadoSubstituicao(); | ||
49 | - | ||
50 | - CentroResultadoRepository.get($scope.filter.centroResultado.id).then(function(result) { | ||
51 | - $scope.centroResultado = result.originalElement; | ||
52 | - $scope.buscaHistoricoSubstituicoes($scope.centroResultado.id); | ||
53 | - $scope.setLoading(false); | ||
54 | - }); | ||
55 | - } | ||
56 | - }; | ||
57 | - //#### FIM METODOS TABELA ALCADAS PAGINADA ####// | ||
58 | - | ||
59 | - //#### INICIO METODOS SUBSTITUICAO ####// | ||
60 | - | ||
61 | - $scope.iniciaModal = function(){ | ||
62 | - $scope.limparCentroResultadoSubstituicao(); | ||
63 | - $scope.$openModal('/cit-alcada-web/html/centroResultadoSubstituicao/dialogCentroResultadoSubstituicao.html', 'lg'); | ||
64 | - }; | ||
65 | - | ||
66 | - //SUBSTITUI UMA ALCADA - RESPONSAVEL | ||
67 | - $scope.substituir = function(formSubstituicao) { | ||
68 | - formSubstituicao.$submitted = true; | ||
69 | - | ||
70 | - if(formSubstituicao.$valid){ | ||
71 | - for (var i = 0; i < $scope.centroResultado.responsaveis.length; i++) { | ||
72 | - var centroResultadoResponsavel = $scope.centroResultado.responsaveis[i]; | ||
73 | - if (centroResultadoResponsavel.responsavel.id == $scope.centroResultadoSubstituicao.substituto.id) { | ||
74 | - $scope.showAlert('error', $translate.instant('ALCADA.MSG.SUBSTITUTO_NAO_PERMITIDO')); | ||
75 | - return; | ||
76 | - } | ||
77 | - } | ||
78 | - | ||
79 | - $scope.centroResultadoSubstituicao.centroResultadoResponsavel = $scope.responsavelChecked; | ||
80 | - | ||
81 | - $scope.setLoadingSalva(true); | ||
82 | - | ||
83 | - CentroResultadoSubstituicaoRepository.save($scope.centroResultadoSubstituicao).then(function(result) { | ||
84 | - $scope.showAlert("success", $translate.instant('MSG.REGISTRO_SALVO')); | ||
85 | - $scope.$modalInstance.dismiss('cancel'); | ||
86 | - $scope.setLoading(false); | ||
87 | - | ||
88 | - $scope.fetchResult(); | ||
89 | - }); | ||
90 | - | ||
91 | - }else{ | ||
92 | - $scope.showAlert('error', $translate.instant('VALIDACAO.ALERTA_OBRIGATORIOS')); | ||
93 | - } | ||
94 | - }; | ||
95 | - | ||
96 | - $scope.limparCentroResultadoSubstituicao = function(){ | ||
97 | - $scope.centroResultadoSubstituicao = {}; | ||
98 | - }; | ||
99 | - | ||
100 | - //#### FIM METODOS SUBSTITUICAO####// | ||
101 | - | ||
102 | - //BUSCA TODAS AS Substituicoes DO CENTRO DE RESULTADO | ||
103 | - $scope.buscaHistoricoSubstituicoes = function(centroResultadoId){ | ||
104 | - CentroResultadoSubstituicaoRepository.buscaHistoricoSubstituicoes(centroResultadoId).then(function(result) { | ||
105 | - $scope.historicoSubstituicoes = result; | ||
106 | - }); | ||
107 | - }; | ||
108 | - | ||
109 | -}]); |
cit-alcada-web/bin/src/main/webapp/assets/js/angular/custom/controller/LimiteAprovacaoController.js
@@ -1,214 +0,0 @@ | @@ -1,214 +0,0 @@ | ||
1 | -'use strict'; | ||
2 | - | ||
3 | -citApp.controller('LimiteAprovacaoController', ['$scope', 'LimiteAprovacaoRepository', 'AlcadaRepository', 'NivelAutoridadeRepository', '$filter', '$translate', '$timeout', 'DominioRepository', | ||
4 | - function LimiteAprovacaoController($scope, LimiteAprovacaoRepository, AlcadaRepository, NivelAutoridadeRepository, $filter, $translate, $timeout, DominioRepository ) { | ||
5 | - | ||
6 | - $scope.TIPO_LIMITE_FAIXA_VALORES_CODIGO = 1; | ||
7 | - $scope.TIPO_LIMITE_QUALQUER_VALOR_CODIGO = 2; | ||
8 | - $scope.TIPO_LIMITE_NAO_APLICA_CODIGO = 3; | ||
9 | - | ||
10 | - $scope.limiteAprovacao = {}; | ||
11 | - | ||
12 | - $scope.alcadasTarget = []; | ||
13 | - | ||
14 | - DominioRepository.findAllDominio('tipoAbrangenciaCentroResultado').then(function(result) { | ||
15 | - $scope.dominioTipoAbrangenciaList = result; | ||
16 | - }); | ||
17 | - DominioRepository.findAllDominio('tipoLimite').then(function(result) { | ||
18 | - $scope.dominioTipoLimiteList = result; | ||
19 | - }); | ||
20 | - | ||
21 | - // Limpa formulário para novo cadastro | ||
22 | - $scope.resetForm = function() { | ||
23 | - | ||
24 | - $scope.limiteAprovacao = { | ||
25 | - alcadas : [], | ||
26 | - niveisAutoridades : [] | ||
27 | - }; | ||
28 | - | ||
29 | - $scope.limparLimiteAprovacao(); | ||
30 | - $scope.findAlcadaSource(); | ||
31 | - $scope.findNivelAutoridadeSource(); | ||
32 | - | ||
33 | - $scope.edit = true; | ||
34 | - $timeout(function(){ | ||
35 | - $scope.limiteAprovacaoForm.$submitted = false; | ||
36 | - $scope.limiteAprovacaoForm.$setPristine(); | ||
37 | - }); | ||
38 | - }; | ||
39 | - | ||
40 | - // Atualiza pagina de pesquisa | ||
41 | - $scope.atualizaPaginaPesquisa = function () { | ||
42 | - angular.element('#searchLimiteAprovacao').scope().fetchResult(); | ||
43 | - }; | ||
44 | - | ||
45 | - // MODAL QUE CONFIRMA REMOVER DA LIMITEAPROVACAO | ||
46 | - $scope.remove = function(limiteAprovacao){ | ||
47 | - $scope.limiteAprovacao = limiteAprovacao; | ||
48 | - $scope.$openModalConfirm({ | ||
49 | - message: $translate.instant('MSG.CONFIRMA_EXCLUSAO'), | ||
50 | - callback: function () { | ||
51 | - LimiteAprovacaoRepository.remove($scope.limiteAprovacao).then(function() { | ||
52 | - | ||
53 | - $scope.$modalConfirmInstance.dismiss('cancel'); | ||
54 | - $scope.showAlert("success", $translate.instant('MSG.REGISTRO_EXCLUIDO')); | ||
55 | - angular.element('#searchLimiteAprovacao').scope().fetchResult(); | ||
56 | - | ||
57 | - $scope.resetForm(); | ||
58 | - }); | ||
59 | - } | ||
60 | - }); | ||
61 | - }; | ||
62 | - | ||
63 | - // SALVA O LIMITEAPROVACAO | ||
64 | - $scope.saveOrUpdate = function(){ | ||
65 | - $scope.limiteAprovacaoForm.$submitted = true; | ||
66 | - | ||
67 | - //verifica se o formulario esta valido para salvar | ||
68 | - if($scope.limiteAprovacaoForm.$valid){ | ||
69 | - | ||
70 | - $scope.setLoadingSalva(true); | ||
71 | - | ||
72 | - LimiteAprovacaoRepository.save($scope.limiteAprovacao).then(function(result) { | ||
73 | - $scope.showAlert("success", $translate.instant('MSG.REGISTRO_SALVO')); | ||
74 | - $scope.limiteAprovacaoForm.$submitted = false; | ||
75 | - | ||
76 | - $scope.getLimiteAprovacao(result.originalElement, true); | ||
77 | - | ||
78 | - $scope.setLoading(false); | ||
79 | - }); | ||
80 | - }else{ | ||
81 | - //Mensagem de erro de campos obrigatorios nao preenchidos | ||
82 | - $scope.showAlert('error', $translate.instant('VALIDACAO.ALERTA_OBRIGATORIOS'), " ", false); | ||
83 | - } | ||
84 | - }; | ||
85 | - | ||
86 | - // Limpa o formulario preenchido | ||
87 | - $scope.limparLimiteAprovacao = function(){ | ||
88 | - $scope.limiteAprovacao = {limitesAprovacoesValores: [], niveisAutoridades: [], alcadas: [] }; | ||
89 | - }; | ||
90 | - | ||
91 | - // Consulta entidade e mostra no formulario | ||
92 | - $scope.getLimiteAprovacao = function(limiteAprovacao, edit){ | ||
93 | - $scope.setLoadingGet(true); | ||
94 | - $scope.limparLimiteAprovacao(); | ||
95 | - | ||
96 | - LimiteAprovacaoRepository.get(limiteAprovacao.id).then(function(result) { | ||
97 | - $scope.limiteAprovacao = result.originalElement; | ||
98 | - | ||
99 | - $scope.limiteAprovacao.limitesAprovacoesValores = _.sortBy($scope.limiteAprovacao.limitesAprovacoesValores, function (limiteAprovacao) { | ||
100 | - return limiteAprovacao.dominioTipoLimiteValor.descricao; | ||
101 | - }); | ||
102 | - | ||
103 | - $scope.edit = edit; | ||
104 | - $scope.findAlcadaSource(); | ||
105 | - $scope.findNivelAutoridadeSource(); | ||
106 | - $scope.setLoading(false); | ||
107 | - }); | ||
108 | - }; | ||
109 | - | ||
110 | - //#### INICIO METODOS DO LIMITEAPROVAOVALOR ####// | ||
111 | - // Busca dominios tipoUtilizacao | ||
112 | - DominioRepository.findAllDominio('tipoUtilizacao').then(function(result) { | ||
113 | - $scope.dominioTipoUtilizacaoList = result; | ||
114 | - }); | ||
115 | - // Busca dominios tipoLimiteValor | ||
116 | - DominioRepository.findAllDominio('tipoLimiteValor').then(function(result) { | ||
117 | - $scope.dominioTipoLimiteValorList = result; | ||
118 | - }); | ||
119 | - | ||
120 | - //ADICIONA O LIMITEAPROVAOVALOR SELECIONADO | ||
121 | - $scope.adicionarLimiteAprovacaoValor = function(){ | ||
122 | - if($scope.limiteAprovacaoValor != null && $scope.limiteAprovacaoValor.dominioTipoUtilizacao != null && | ||
123 | - $scope.limiteAprovacaoValor.dominioTipoLimiteValor != null && $scope.limiteAprovacaoValor.valor != null){ | ||
124 | - // SE NAO POSSUI ARRAY DE LIMITEAPROVACAOVALORES, CRIA O ATRIBUTO | ||
125 | - if(!$scope.limiteAprovacao.limitesAprovacoesValores){ | ||
126 | - $scope.limiteAprovacao.limitesAprovacoesValores = []; | ||
127 | - } | ||
128 | - | ||
129 | - $scope.limiteAprovacao.limitesAprovacoesValores.push({dominioTipoUtilizacao : $scope.limiteAprovacaoValor.dominioTipoUtilizacao, | ||
130 | - dominioTipoLimiteValor : $scope.limiteAprovacaoValor.dominioTipoLimiteValor, | ||
131 | - valorLimite : $scope.limiteAprovacaoValor.valor, dataInativo: null}); | ||
132 | - | ||
133 | - $timeout(function(){ | ||
134 | - $scope.limiteAprovacaoValor.dominioTipoUtilizacao = null; | ||
135 | - $scope.limiteAprovacaoValor.dominioTipoLimiteValor = null; | ||
136 | - $scope.limiteAprovacaoValor.valor = null; | ||
137 | - }); | ||
138 | - | ||
139 | - }else{ | ||
140 | - //Mensagem de erro de campos obrigatorios não preenchidos | ||
141 | - $scope.showAlert('error', $translate.instant('ALCADA.VALIDACAO.ALERTA_OBRIGATORIOS_LIMITEAPROVACAO_VALOR'), " ", false); | ||
142 | - } | ||
143 | - }; | ||
144 | - | ||
145 | - //REMOVE O LIMITEAPROVAOVALOR SELECIONADO | ||
146 | - $scope.removerLimiteAprovacaoValor = function(){ | ||
147 | - if(!$scope.limiteAprovacaoValorChecked) { | ||
148 | - $scope.showAlert('warning', $translate.instant('MSG.SELECIONE_UM_ITEM_PARA_SER_REMOVIDO')); | ||
149 | - return; | ||
150 | - } else { | ||
151 | - $scope.$openModalConfirm({ | ||
152 | - message: $translate.instant('MSG.DESEJA_EXCLUIR_ITENS'), | ||
153 | - callback: function () { | ||
154 | - $scope.$modalConfirmInstance.dismiss('cancel'); | ||
155 | - | ||
156 | - $scope.limiteAprovacao.limitesAprovacoesValores[$scope.limiteAprovacaoValorChecked.$index].dataInativo = $filter('date')(new Date(), 'dd/MM/yyyy'); | ||
157 | - $scope.showAlert("success", $translate.instant('MSG.REGISTRO_EXCLUIDO')); | ||
158 | - } | ||
159 | - }); | ||
160 | - } | ||
161 | - }; | ||
162 | - | ||
163 | - $scope.grupoAlcadaSource = []; | ||
164 | - $scope.grupoNivelAutoridadeSource = []; | ||
165 | - | ||
166 | - $scope.filterCriteriaNivelAutoridade = { | ||
167 | - start : 1, | ||
168 | - dir : 'asc', | ||
169 | - sort : 'id', | ||
170 | - limit : 10, | ||
171 | - fields: ['id', 'nome'] | ||
172 | - }; | ||
173 | - | ||
174 | - $scope.filterCriteriaAlcada = { | ||
175 | - start : 1, | ||
176 | - dir : 'asc', | ||
177 | - sort : 'id', | ||
178 | - limit : 10, | ||
179 | - fields: ['id', 'nome'] | ||
180 | - }; | ||
181 | - | ||
182 | - //Método responsável por listar os niveis de autoridade do sistema | ||
183 | - $scope.findNivelAutoridadeSource = function(){ | ||
184 | - $scope.grupoNivelAutoridadeSource = []; | ||
185 | - NivelAutoridadeRepository.getListPage($scope.filterCriteriaNivelAutoridade).then(function(result) { | ||
186 | - //Percorre a lista de nivelAutoridade para montar a lista de grupoNiveiAutoridade | ||
187 | - result.originalElement.objects.forEach(function (item, index) { | ||
188 | - var grupoNivelAutoridade = {}; | ||
189 | - grupoNivelAutoridade.nivelAutoridade = item; | ||
190 | - $scope.grupoNivelAutoridadeSource.push(grupoNivelAutoridade); | ||
191 | - $timeout(function(){ | ||
192 | - $scope.grupoNivelAutoridadeSource = $filter('idNotEqualNivelAutoridadeSourcePickList')($scope.grupoNivelAutoridadeSource, $scope.limiteAprovacao.niveisAutoridades); | ||
193 | - }); | ||
194 | - }); | ||
195 | - }); | ||
196 | - }; | ||
197 | - | ||
198 | - //Método responsável por listar as alcadas | ||
199 | - $scope.findAlcadaSource = function(){ | ||
200 | - $scope.grupoAlcadaSource = []; | ||
201 | - AlcadaRepository.getListPage($scope.filterCriteriaAlcada).then(function(result) { | ||
202 | - //Percorre a lista de alcada para montar a lista de grupoAlcada | ||
203 | - result.originalElement.objects.forEach(function (item, index) { | ||
204 | - var grupoAlcada = {}; | ||
205 | - grupoAlcada.alcada = item; | ||
206 | - $scope.grupoAlcadaSource.push(grupoAlcada); | ||
207 | - $timeout(function(){ | ||
208 | - $scope.grupoAlcadaSource = $filter('idNotEqualAlcadaSourcePickList')($scope.grupoAlcadaSource, $scope.limiteAprovacao.alcadas); | ||
209 | - }); | ||
210 | - }); | ||
211 | - }); | ||
212 | - }; | ||
213 | - | ||
214 | -}]); | ||
215 | \ No newline at end of file | 0 | \ No newline at end of file |
cit-alcada-web/bin/src/main/webapp/assets/js/angular/custom/controller/LimiteAprovacaoListController.js
@@ -1,45 +0,0 @@ | @@ -1,45 +0,0 @@ | ||
1 | -'use strict'; | ||
2 | - | ||
3 | -citApp.controller('LimiteAprovacaoListController', ['$scope', 'LimiteAprovacaoRepository', '$translate', '$timeout', 'DominioRepository', | ||
4 | - function LimiteAprovacaoListController($scope, LimiteAprovacaoRepository, $translate, $timeout, DominioRepository) { | ||
5 | - $scope.$showAdvancedFilters = false; | ||
6 | - | ||
7 | - $scope.resetForm = function() { | ||
8 | - angular.element("#editLimiteAprovacao").scope().resetForm(); | ||
9 | - }; | ||
10 | - | ||
11 | - $scope.headers = [ {title : $translate.instant('LABEL.IDENTIFICACAO'), value : 'identificacao' } , | ||
12 | - {title : $translate.instant('ALCADA.LABEL.TIPO_ABRANGENCIA'), value : 'dominioTipoAbrangencia.descricao' } , | ||
13 | - {title : $translate.instant('ALCADA.LABEL.TIPO_LIMITE'), value : 'dominioTipoLimite.descricao' }]; | ||
14 | - | ||
15 | - $scope.filterCriteria = { | ||
16 | - start : 1, | ||
17 | - dir : 'asc', | ||
18 | - sort : 'id', | ||
19 | - limit : 10, | ||
20 | - fields: ['id', 'identificacao', 'dominioTipoAbrangencia.descricao', 'dominioTipoLimite.descricao'], | ||
21 | - filters : [ {type : 'string', field : 'identificacao' } , | ||
22 | - {type : 'string', field : 'dominioTipoAbrangencia.descricao', listaDominio : [] } , | ||
23 | - {type : 'string', field : 'dominioTipoLimite.descricao', listaDominio : [] }] | ||
24 | - }; | ||
25 | - | ||
26 | - DominioRepository.findAllDominio('tipoAbrangenciaCentroResultado').then(function(result) { | ||
27 | - $scope.filterCriteria.filters[1].listaDominio = result; | ||
28 | - }); | ||
29 | - | ||
30 | - DominioRepository.findAllDominio('tipoLimite').then(function(result) { | ||
31 | - $scope.filterCriteria.filters[2].listaDominio = result; | ||
32 | - }); | ||
33 | - | ||
34 | - // ABRI LIMITEAPROVACAO SELECIONADA | ||
35 | - $scope.abrirVisualizar = function(edit){ | ||
36 | - var limiteAprovacao = $scope.limiteAprovacaoChecked; | ||
37 | - | ||
38 | - if(!limiteAprovacao) { | ||
39 | - $scope.showAlert('warning', !edit ? $translate.instant('MSG.SELECIONE_UM_ITEM_PARA_VISUALIZACAO') : $translate.instant('MSG.SELECIONE_UM_ITEM_PARA_EDICAO')); | ||
40 | - return; | ||
41 | - } | ||
42 | - angular.element('#editLimiteAprovacao').scope().getLimiteAprovacao(limiteAprovacao, edit); | ||
43 | - $scope.$showPageEditWorkspace($scope.workspace); | ||
44 | - }; | ||
45 | -}]); | ||
46 | \ No newline at end of file | 0 | \ No newline at end of file |
cit-alcada-web/bin/src/main/webapp/assets/js/angular/custom/repository/AlcadaRepository.js
@@ -1,17 +0,0 @@ | @@ -1,17 +0,0 @@ | ||
1 | -'use strict'; | ||
2 | - | ||
3 | -citApp.factory('AlcadaRepository', ['RestangularTabelasCorp', 'AbstractRepository', function (restangularTabelasCorp, AbstractRepository) { | ||
4 | - | ||
5 | - function AlcadaRepository() { | ||
6 | - AbstractRepository.call(this, restangularTabelasCorp, 'rest/alcada'); | ||
7 | - | ||
8 | - this.listarAlcadas = function(nome) { | ||
9 | - return restangularTabelasCorp.one('rest/alcada').getList("listarAlcadas", {"nome": nome}).then(); | ||
10 | - }; | ||
11 | - | ||
12 | - } | ||
13 | - | ||
14 | - AbstractRepository.extend(AlcadaRepository); | ||
15 | - | ||
16 | - return new AlcadaRepository(); | ||
17 | -}]); |
cit-alcada-web/bin/src/main/webapp/assets/js/angular/custom/repository/CentroResultadoAlcadaResponsavelRepository.js
@@ -1,16 +0,0 @@ | @@ -1,16 +0,0 @@ | ||
1 | -'use strict'; | ||
2 | - | ||
3 | -citApp.factory('CentroResultadoAlcadaResponsavelRepository', ['RestangularAlcada', 'AbstractRepository', function (restangularAlcada, AbstractRepository) { | ||
4 | - | ||
5 | - function CentroResultadoAlcadaResponsavelRepository() { | ||
6 | - AbstractRepository.call(this, restangularAlcada, 'rest/centroResultadoAlcadaResponsavel'); | ||
7 | - | ||
8 | - this.buscaHistoricoResponsaveis = function(value) { | ||
9 | - return restangularAlcada.one(this.route + "/buscaHistoricoResponsaveis").get({idCentroResultado : value}).then(); | ||
10 | - }; | ||
11 | - } | ||
12 | - | ||
13 | - AbstractRepository.extend(CentroResultadoAlcadaResponsavelRepository); | ||
14 | - | ||
15 | - return new CentroResultadoAlcadaResponsavelRepository(); | ||
16 | -}]); |
cit-alcada-web/bin/src/main/webapp/assets/js/angular/custom/repository/CentroResultadoDelegacaoRepository.js
@@ -1,28 +0,0 @@ | @@ -1,28 +0,0 @@ | ||
1 | -'use strict'; | ||
2 | - | ||
3 | -citApp.factory('CentroResultadoDelegacaoRepository', ['RestangularAlcada', 'AbstractRepository', function (restangularAlcada, AbstractRepository) { | ||
4 | - | ||
5 | - function CentroResultadoDelegacaoRepository() { | ||
6 | - AbstractRepository.call(this, restangularAlcada, 'rest/centroResultadoDelegacao'); | ||
7 | - | ||
8 | - this.buscaHistoricoDelegacoes = function(value) { | ||
9 | - return restangularAlcada.one(this.route + "/buscaHistoricoDelegacoes").get({idCentroResultado : value}).then(); | ||
10 | - }; | ||
11 | - | ||
12 | - this.buscaHistoricoDelegacoesUsuario = function(value) { | ||
13 | - return restangularAlcada.one(this.route + "/buscaHistoricoDelegacoesUsuario").get({idUsuario : value}).then(); | ||
14 | - }; | ||
15 | - | ||
16 | - this.revogar = function(value) { | ||
17 | - return restangularAlcada.one(this.route + "/revogar").get({idCentroResultadoDelegacao: value}).then(); | ||
18 | - }; | ||
19 | - | ||
20 | - this.saveList = function(centroResultadoDelegacaoList) { | ||
21 | - return restangularAlcada.all(this.route + "/saveList").post(centroResultadoDelegacaoList).then(); | ||
22 | - }; | ||
23 | - } | ||
24 | - | ||
25 | - AbstractRepository.extend(CentroResultadoDelegacaoRepository); | ||
26 | - | ||
27 | - return new CentroResultadoDelegacaoRepository(); | ||
28 | -}]); |
cit-alcada-web/bin/src/main/webapp/assets/js/angular/custom/repository/CentroResultadoRepository.js
@@ -1,12 +0,0 @@ | @@ -1,12 +0,0 @@ | ||
1 | -'use strict'; | ||
2 | - | ||
3 | -citApp.factory('CentroResultadoRepository', ['RestangularAlcada', 'AbstractRepository', function (restangularAlcada, AbstractRepository) { | ||
4 | - | ||
5 | - function CentroResultadoRepository() { | ||
6 | - AbstractRepository.call(this, restangularAlcada, 'rest/centroResultado'); | ||
7 | - } | ||
8 | - | ||
9 | - AbstractRepository.extend(CentroResultadoRepository); | ||
10 | - | ||
11 | - return new CentroResultadoRepository(); | ||
12 | -}]); |
cit-alcada-web/bin/src/main/webapp/assets/js/angular/custom/repository/CentroResultadoResponsavelAlcadaRepository.js
@@ -1,12 +0,0 @@ | @@ -1,12 +0,0 @@ | ||
1 | -'use strict'; | ||
2 | - | ||
3 | -citApp.factory('CentroResultadoResponsavelAlcadaRepository', ['RestangularAlcada', 'AbstractRepository', function (restangularAlcada, AbstractRepository) { | ||
4 | - | ||
5 | - function CentroResultadoResponsavelAlcadaRepository() { | ||
6 | - AbstractRepository.call(this, restangularAlcada, 'rest/centroResultadoResponsavelAlcada'); | ||
7 | - } | ||
8 | - | ||
9 | - AbstractRepository.extend(CentroResultadoResponsavelAlcadaRepository); | ||
10 | - | ||
11 | - return new CentroResultadoResponsavelAlcadaRepository(); | ||
12 | -}]); |
cit-alcada-web/bin/src/main/webapp/assets/js/angular/custom/repository/CentroResultadoResponsavelRepository.js
@@ -1,19 +0,0 @@ | @@ -1,19 +0,0 @@ | ||
1 | -'use strict'; | ||
2 | - | ||
3 | -citApp.factory('CentroResultadoResponsavelRepository', ['RestangularAlcada', 'AbstractRepository', function (restangularAlcada, AbstractRepository) { | ||
4 | - | ||
5 | - function CentroResultadoResponsavelRepository() { | ||
6 | - AbstractRepository.call(this, restangularAlcada, 'rest/centroResultadoResponsavel'); | ||
7 | - | ||
8 | - this.buscaHistoricoResponsaveis = function(value) { | ||
9 | - return restangularAlcada.one(this.route + "/buscaHistoricoResponsaveis").get({idCentroResultado : value}).then(); | ||
10 | - }; | ||
11 | - this.removeById = function(value) { | ||
12 | - return restangularAlcada.one(this.route, value).remove(); | ||
13 | - }; | ||
14 | - } | ||
15 | - | ||
16 | - AbstractRepository.extend(CentroResultadoResponsavelRepository); | ||
17 | - | ||
18 | - return new CentroResultadoResponsavelRepository(); | ||
19 | -}]); |
cit-alcada-web/bin/src/main/webapp/assets/js/angular/custom/repository/CentroResultadoSubstituicaoRepository.js
@@ -1,16 +0,0 @@ | @@ -1,16 +0,0 @@ | ||
1 | -'use strict'; | ||
2 | - | ||
3 | -citApp.factory('CentroResultadoSubstituicaoRepository', ['RestangularAlcada', 'AbstractRepository', function (restangularAlcada, AbstractRepository) { | ||
4 | - | ||
5 | - function CentroResultadoSubstituicaoRepository() { | ||
6 | - AbstractRepository.call(this, restangularAlcada, 'rest/centroResultadoSubstituicao'); | ||
7 | - | ||
8 | - this.buscaHistoricoSubstituicoes = function(value) { | ||
9 | - return restangularAlcada.one(this.route + "/buscaHistoricoSubstituicoes").get({idCentroResultado : value}).then(); | ||
10 | - }; | ||
11 | - } | ||
12 | - | ||
13 | - AbstractRepository.extend(CentroResultadoSubstituicaoRepository); | ||
14 | - | ||
15 | - return new CentroResultadoSubstituicaoRepository(); | ||
16 | -}]); |
cit-alcada-web/bin/src/main/webapp/assets/js/angular/custom/repository/LimiteAprovacaoRepository.js
@@ -1,12 +0,0 @@ | @@ -1,12 +0,0 @@ | ||
1 | -'use strict'; | ||
2 | - | ||
3 | -citApp.factory('LimiteAprovacaoRepository', ['RestangularAlcada', 'AbstractRepository', function (restangularAlcada, AbstractRepository) { | ||
4 | - | ||
5 | - function LimiteAprovacaoRepository() { | ||
6 | - AbstractRepository.call(this, restangularAlcada, 'rest/limiteAprovacao'); | ||
7 | - } | ||
8 | - | ||
9 | - AbstractRepository.extend(LimiteAprovacaoRepository); | ||
10 | - | ||
11 | - return new LimiteAprovacaoRepository(); | ||
12 | -}]); |
cit-alcada-web/bin/src/main/webapp/assets/js/angular/custom/repository/SolicitacaoAlcadaRepository.js
@@ -1,29 +0,0 @@ | @@ -1,29 +0,0 @@ | ||
1 | -'use strict'; | ||
2 | - | ||
3 | -citApp.factory('SolicitacaoAlcadaRepository', ['RestangularAlcada', 'AbstractRepository', function (restangularAlcada, AbstractRepository) { | ||
4 | - | ||
5 | - function SolicitacaoAlcadaRepository() { | ||
6 | - this.getResponsaveis = function (solicitacaoAlcada) { | ||
7 | - return this.restangular.all(this.route + '/getResponsaveis').post(solicitacaoAlcada); | ||
8 | - }, | ||
9 | - | ||
10 | - this.cria = function (solicitacaoAlcada) { | ||
11 | - return this.restangular.all(this.route + '/cria').post(solicitacaoAlcada); | ||
12 | - }, | ||
13 | - | ||
14 | - this.aprova = function (solicitacaoAlcada, usuario) { | ||
15 | - return this.restangular.all(this.route + '/aprova/' + solicitacaoAlcada.id).post(usuario); | ||
16 | - }, | ||
17 | - | ||
18 | - this.cancelaAprovacao = function (solicitacaoAlcada) { | ||
19 | - return this.restangular.all(this.route + '/cancelaAprovacao/' + solicitacaoAlcada.id).post(); | ||
20 | - }, | ||
21 | - | ||
22 | - | ||
23 | - AbstractRepository.call(this, restangularAlcada, 'rest/solicitacaoAlcada'); | ||
24 | - } | ||
25 | - | ||
26 | - AbstractRepository.extend(SolicitacaoAlcadaRepository); | ||
27 | - | ||
28 | - return new SolicitacaoAlcadaRepository(); | ||
29 | -}]); |
cit-alcada-web/bin/src/main/webapp/html/alcada/alcada.html
cit-alcada-web/bin/src/main/webapp/html/alcada/alcadaEdit.html
@@ -1,184 +0,0 @@ | @@ -1,184 +0,0 @@ | ||
1 | -<div id="editAlcada" class="page-content clearfix" ng-controller="AlcadaController"> | ||
2 | - <div class="bar-buttons-action fixed"> | ||
3 | - <div class="row"> | ||
4 | - <div class="col-sm-8 text-left"> | ||
5 | - | ||
6 | - <button class="btn btn-clear" ng-click="saveOrUpdate()" ng-show="edit"> | ||
7 | - <i class="fa fa-save green"></i> <translate>LABEL.SALVAR</translate> | ||
8 | - </button> | ||
9 | - | ||
10 | - <button class="btn btn-clear" ng-click="limparAlcada()" ng-show="alcada.id === undefined"> | ||
11 | - <i class="fa fa-eraser yellow-dark"></i> <translate>LABEL.LIMPAR</translate> | ||
12 | - </button> | ||
13 | - | ||
14 | - <button class="btn btn-clear" ng-show="!edit" ng-click="edit = true"> | ||
15 | - <i class="fa fa-pencil blue"></i> | ||
16 | - <translate>LABEL.EDITAR</translate> | ||
17 | - </button> | ||
18 | - | ||
19 | - <button class="btn btn-clear" ng-click="remove(alcada);" ng-show="alcada.id !== undefined"> | ||
20 | - <i class="fa fa-times red"></i> <translate>LABEL.REMOVER</translate> | ||
21 | - </button> | ||
22 | - | ||
23 | - <bloquear-desbloquear ng-model="alcada" ng-repository="AlcadaRepository" ng-edit="edit" form="alcadaForm"></bloquear-desbloquear> | ||
24 | - | ||
25 | - <button class="btn btn-clear" ng-click="$showPageSearchWorkspace(workspace); atualizaPaginaPesquisa();"> | ||
26 | - <i class="fa fa-search"></i> <translate>LABEL.PESQUISAR</translate> | ||
27 | - </button> | ||
28 | - | ||
29 | - </div><!-- .col --> | ||
30 | - | ||
31 | - <div class="col-sm-4 text-right"> | ||
32 | - | ||
33 | - <favorito/> | ||
34 | - | ||
35 | - <help-button workspace="workspace" /> | ||
36 | - | ||
37 | - </div><!-- .col --> | ||
38 | - </div><!-- .row --> | ||
39 | - </div><!-- .bar-buttons-action --> | ||
40 | - | ||
41 | - <breadcrumb ng-workspace="workspace"></breadcrumb> | ||
42 | - | ||
43 | - <form name="alcadaForm"> | ||
44 | - <p> | ||
45 | - <small>( <span class="red">*</span> ) <translate>LABEL.CAMPOS_OBRIGATORIOS</translate></small> | ||
46 | - </p> | ||
47 | - | ||
48 | - <fieldset> | ||
49 | - <legend><translate>ALCADA.LABEL.DADOS_ALCADA</translate></legend> | ||
50 | - | ||
51 | - <div class="row"> | ||
52 | - <div class="col-sm-4"> | ||
53 | - <label-input ng-id="alcada.nome" ng-label="LABEL.NOME" ng-model="alcada.nome" form="alcadaForm" ng-obrigatorio="true" | ||
54 | - ng-custom-maxlength="255" ng-type="text" ng-disabled="!edit" /> | ||
55 | - </div><!-- .col --> | ||
56 | - | ||
57 | - <div class="col-sm-4"> | ||
58 | - <label-input-identifier ng-id="alcada.identificador" ng-label="ALCADA.LABEL.IDENTIFICADOR" ng-model="alcada.identificador" form="alcadaForm" ng-obrigatorio="true" | ||
59 | - ng-custom-maxlength="255" ng-type="text" ng-disabled="!edit" /> | ||
60 | - </div><!-- .col --> | ||
61 | - | ||
62 | - <div class="col-sm-4"> | ||
63 | - <auto-complete ng-find="findFlow(value)" | ||
64 | - ng-acao-borracha="limparAutoCompleteFluxo()" | ||
65 | - ng-item="item.description" | ||
66 | - ng-id="alcada.fluxoDelegacao" | ||
67 | - ng-label="ALCADA.LABEL.FLUXO_DELEGACAO" | ||
68 | - ng-model="fluxo" | ||
69 | - ng-disabled="!edit" | ||
70 | - ng-set-result="setFluxo(item)" | ||
71 | - form="alcadaForm" | ||
72 | - ng-obrigatorio="false"> </auto-complete> | ||
73 | - </div> | ||
74 | - </div><!-- .row --> | ||
75 | - | ||
76 | - <div class="row"> | ||
77 | - <div class="col-md-6"> | ||
78 | - <auto-complete ng-id="alcada.grupoAdministrador" ng-label="LABEL.GRUPO_RESPONSAVEL" ng-model="alcada.grupoAdministrador" | ||
79 | - form="alcadaForm" ng-obrigatorio="true" ng-disabled="!edit" ng-find="findAutoCompleteGrupoAdministrador(value)" | ||
80 | - ng-item="item.nome" /> | ||
81 | - </div><!-- .col --> | ||
82 | - | ||
83 | - <div class="col-md-6"> | ||
84 | - <auto-complete ng-id="alcada.grupoResponsavel" ng-label="ALCADA.LABEL.GRUPO_ADMINISTRADOR" ng-model="alcada.grupoResponsavel" | ||
85 | - form="alcadaForm" ng-obrigatorio="true" ng-disabled="!edit" ng-find="findAutoCompleteGrupoResponsavel(value)" ng-item="item.nome" /> | ||
86 | - </div><!-- .col --> | ||
87 | - </div><!-- .row --> | ||
88 | - | ||
89 | - <div class="row"> | ||
90 | - <div class="col-md-3"> | ||
91 | - <label-input-percent ng-type="text" only-number ng-max-number="100" ng-min-number="0" ng-precision-number="2" | ||
92 | - ng-id="alcada.percDispensaNovaAprovacao" ng-label="ALCADA.LABEL.DISPENSA_NOVA_APROVACAO" | ||
93 | - ng-model="alcada.percDispensaNovaAprovacao" form="alcadaForm" ng-obrigatorio="true" | ||
94 | - ng-max-number="3" ng-disabled="!edit" /> | ||
95 | - </div><!-- .col --> | ||
96 | - | ||
97 | - <div class="col-md-5"> | ||
98 | - <div class="form-group no-label"> | ||
99 | - <label-input-checkbox ng-id="alcada.permiteAprovacaoNivelInferior" ng-label="ALCADA.LABEL.PERMITE_APROVACAO_NIVEL_INFERIOR" | ||
100 | - ng-model="alcada.permiteAprovacaoNivelInferior" form="alcadaForm" ng-obrigatorio="false" ng-disabled="!edit" /> | ||
101 | - </div><!-- .form-group --> | ||
102 | - </div><!-- .col --> | ||
103 | - | ||
104 | - <div class="col-md-4"> | ||
105 | - <div class="form-group no-label"> | ||
106 | - <label-input-checkbox ng-id="alcada.somenteMenorHierarquia" ng-label="ALCADA.LABEL.SOMENTE_MENOR_HIERARQUIA" | ||
107 | - ng-model="alcada.somenteMenorHierarquia" form="alcadaForm" ng-obrigatorio="false" ng-disabled="!edit" /> | ||
108 | - </div><!-- .form-group --> | ||
109 | - </div><!-- .col --> | ||
110 | - </div><!-- .row --> | ||
111 | - | ||
112 | - <fieldset> | ||
113 | - <legend><translate>ALCADA.LABEL.NIVEIS_AUTORIDADE</translate></legend> | ||
114 | - | ||
115 | - <div class='row'> | ||
116 | - <div class='col-sm-5'> | ||
117 | - <auto-complete ng-id="alcadaNivelAutoridade.nivelAutoridade" ng-label="LABEL.NIVEL_AUTORIDADE" | ||
118 | - ng-model="alcadaNivelAutoridade.nivelAutoridade" form="alcadaForm" ng-disabled="!edit" | ||
119 | - ng-find="findNivelAutoridade(value)" ng-item="item.nome"/> | ||
120 | - </div><!-- .col --> | ||
121 | - | ||
122 | - <div class='col-sm-4'> | ||
123 | - <label-input-number ng-id="alcadaNivelAutoridade.antecedenciaMinimaAprovacao" | ||
124 | - ng-label="ALCADA.LABEL.ANTECEDENCIA_MINIMA_APROVACAO" ng-disabled="!edit" | ||
125 | - ng-model="alcadaNivelAutoridade.antecedenciaMinimaAprovacao" form="alcadaForm" ng-obrigatorio="false"/> | ||
126 | - </div><!-- .col --> | ||
127 | - | ||
128 | - <div class='col-sm-3'> | ||
129 | - <div class="form-group no-label"> | ||
130 | - <label-input-checkbox ng-id="alcadaNivelAutoridade.permiteAprovacaoPropria" | ||
131 | - ng-label="ALCADA.LABEL.PERMITE_APROVACAO_PROPRIA" ng-disabled="!edit" | ||
132 | - ng-model="alcadaNivelAutoridade.permiteAprovacaoPropria" form="alcadaForm" ng-obrigatorio="false"/> | ||
133 | - </div><!-- .form-group --> | ||
134 | - </div><!-- .col --> | ||
135 | - </div><!-- .row --> | ||
136 | - | ||
137 | - <div class='row'> | ||
138 | - <div class='col-sm-12'> | ||
139 | - <div class="panel panel-default"> | ||
140 | - <div class="panel-heading clearfix"> | ||
141 | - <button class="btn btn-clear" ng-click="adicionarAlcadaNivelAutoridade()" type="button" | ||
142 | - ng-disabled="!edit" > | ||
143 | - <i class="fa fa-plus-circle yellow-dark"></i> | ||
144 | - <translate>LABEL.ADICIONAR</translate> </a> | ||
145 | - </button> | ||
146 | - | ||
147 | - <button class="btn btn-clear" ng-click="removerAlcadaNivelAutoridade()" | ||
148 | - ng-show="alcada.niveisAutoridades.length > 0" type="button" ng-disabled="!edit"> | ||
149 | - <i class="fa fa-close red"></i> | ||
150 | - <translate>LABEL.REMOVER</translate> </a> | ||
151 | - </button> | ||
152 | - </div><!-- .panel-heading --> | ||
153 | - | ||
154 | - <table class="table table-striped table-bordered table-hover"> | ||
155 | - <thead> | ||
156 | - <tr> | ||
157 | - <th width="5%" class="text-center"></th> | ||
158 | - <th width="45%"><translate>LABEL.NIVEL_AUTORIDADE</translate></th> | ||
159 | - <th width="25%"><translate>ALCADA.LABEL.ANTECEDENCIA_MINIMA_APROVACAO</translate></th> | ||
160 | - <th width="25%"><translate>ALCADA.LABEL.PERMITE_APROVACAO_PROPRIA</translate></th> | ||
161 | - </tr> | ||
162 | - </thead> | ||
163 | - <tbody> | ||
164 | - <tr ng-repeat="item in alcada.niveisAutoridades"> | ||
165 | - <td class="text-center"> | ||
166 | - <input type="radio" name="nivelAutoridadeChecked" ng-disabled="!edit" ng-value="item" | ||
167 | - ng-model="$parent.nivelAutoridadeChecked" ng-click="item.$index = $index" /> | ||
168 | - </td> | ||
169 | - <td>{{item.nivelAutoridade.nome}}</td> | ||
170 | - <td>{{item.antecedenciaMinimaAprovacao}}</td> | ||
171 | - <td>{{aplicarFiltroBoolean(item.permiteAprovacaoPropria)}}</td> | ||
172 | - </tr> | ||
173 | - <tr ng-hide="alcada.niveisAutoridades.length > 0"> | ||
174 | - <td colspan="4" class="text-center"><translate>LABEL.TABELA_VAZIA</translate></td> | ||
175 | - </tr> | ||
176 | - </tbody> | ||
177 | - </table> | ||
178 | - </div><!-- .panel --> | ||
179 | - </div><!-- .col --> | ||
180 | - </div><!-- .row --> | ||
181 | - </fieldset> | ||
182 | - </fieldset> | ||
183 | - </form> | ||
184 | -</div><!-- .page-content --> |
cit-alcada-web/bin/src/main/webapp/html/alcada/alcadaList.html
@@ -1,46 +0,0 @@ | @@ -1,46 +0,0 @@ | ||
1 | -<div id="searchAlcada" class="page-content" ng-controller="AlcadaListController"> | ||
2 | - <div class="bar-buttons-action fixed"> | ||
3 | - <div class="row"> | ||
4 | - <div class="col-sm-8 text-left"> | ||
5 | - | ||
6 | - <button class="btn btn-clear" ng-click="$showPageEditWorkspace(workspace); resetForm();"> | ||
7 | - <i class="fa fa-plus-circle yellow-dark"></i> | ||
8 | - <translate>LABEL.CADASTRAR</translate> | ||
9 | - </button> | ||
10 | - | ||
11 | - <button class="btn btn-clear" ng-click="abrirVisualizar(false);"> | ||
12 | - <i class="fa fa-search blue"></i> | ||
13 | - <translate>LABEL.VISUALIZAR</translate> | ||
14 | - </button> | ||
15 | - | ||
16 | - <button class="btn btn-clear" ng-click="abrirVisualizar(true);"> | ||
17 | - <i class="fa fa-pencil blue"></i> | ||
18 | - <translate>LABEL.EDITAR</translate> | ||
19 | - </button> | ||
20 | - | ||
21 | - <button class="btn btn-clear" ng-click="remove();"> | ||
22 | - <i class="fa fa-times red"></i> | ||
23 | - <translate>LABEL.REMOVER</translate> | ||
24 | - </button> | ||
25 | - | ||
26 | - <span class="divider-vertical"></span> | ||
27 | - | ||
28 | - <filtros ng-filter="filterCriteria" ng-workspace="workspace"></filtros> | ||
29 | - | ||
30 | - </div><!-- .col --> | ||
31 | - | ||
32 | - <div class="col-sm-4 text-right"> | ||
33 | - | ||
34 | - <favorito/> | ||
35 | - | ||
36 | - <help-button workspace="workspace" /> | ||
37 | - | ||
38 | - </div><!-- .col --> | ||
39 | - </div><!-- .row --> | ||
40 | - </div><!-- .bar-buttons-action --> | ||
41 | - | ||
42 | - <breadcrumb ng-workspace="workspace"></breadcrumb> | ||
43 | - | ||
44 | - <list-view ng-lista="alcadaList" ng-repository="AlcadaRepository" ng-use-custom-remove="false" ng-headers="headers" ng-filter-criteria="filterCriteria" ng-item-selecionado="alcadaChecked"></list-view> | ||
45 | - | ||
46 | -</div><!-- .page-content --> |
cit-alcada-web/bin/src/main/webapp/html/centroResultado/centroResultado.html
cit-alcada-web/bin/src/main/webapp/html/centroResultado/centroResultadoEdit.html
@@ -1,176 +0,0 @@ | @@ -1,176 +0,0 @@ | ||
1 | -<div id="editCentroResultado" class="page-content clearfix" ng-controller="CentroResultadoController"> | ||
2 | - <div class="bar-buttons-action fixed"> | ||
3 | - <div class="row"> | ||
4 | - <div class="col-sm-8 text-left"> | ||
5 | - | ||
6 | - <button class="btn btn-clear" ng-click="verificaResponsaveis(); saveOrUpdate()" ng-show="edit"> | ||
7 | - <i class="fa fa-save green"></i> <translate>LABEL.SALVAR</translate> | ||
8 | - </button> | ||
9 | - | ||
10 | - <button class="btn btn-clear" ng-click="limparCentroResultado()" ng-show="centroResultado.id === undefined"> | ||
11 | - <i class="fa fa-eraser yellow-dark"></i> <translate>LABEL.LIMPAR</translate> | ||
12 | - </button> | ||
13 | - | ||
14 | - <button class="btn btn-clear" ng-show="!edit" ng-click="edit = true"> | ||
15 | - <i class="fa fa-pencil blue"></i> | ||
16 | - <translate>LABEL.EDITAR</translate> | ||
17 | - </button> | ||
18 | - | ||
19 | - <button class="btn btn-clear" ng-click="remove(centroResultado);" ng-show="centroResultado.id !== undefined"> | ||
20 | - <i class="fa fa-times red"></i> <translate>LABEL.REMOVER</translate> | ||
21 | - </button> | ||
22 | - | ||
23 | - <bloquear-desbloquear ng-model="centroResultado" ng-repository="CentroResultadoRepository" ng-edit="edit" form="centroResultadoForm"></bloquear-desbloquear> | ||
24 | - | ||
25 | - <button class="btn btn-clear" ng-click="$showPageSearchWorkspace(workspace); atualizaPaginaPesquisa();"> | ||
26 | - <i class="fa fa-search"></i> <translate>LABEL.PESQUISAR</translate> | ||
27 | - </button> | ||
28 | - | ||
29 | - </div><!-- .col --> | ||
30 | - | ||
31 | - <div class="col-sm-4 text-right"> | ||
32 | - | ||
33 | - <favorito/> | ||
34 | - | ||
35 | - <help-button workspace="workspace" /> | ||
36 | - | ||
37 | - </div><!-- .col --> | ||
38 | - </div><!-- .row --> | ||
39 | - </div><!-- .bar-buttons-action --> | ||
40 | - | ||
41 | - <breadcrumb ng-workspace="workspace"></breadcrumb> | ||
42 | - | ||
43 | - <form name="centroResultadoForm"> | ||
44 | - <p> | ||
45 | - <small>( <span class="red">*</span> ) <translate>LABEL.CAMPOS_OBRIGATORIOS</translate></small> | ||
46 | - </p> | ||
47 | - | ||
48 | - <fieldset> | ||
49 | - <legend><translate>ALCADA.LABEL.DADOS_CENTRO_RESULTADO</translate></legend> | ||
50 | - | ||
51 | - <div class="row"> | ||
52 | - <div class="col-md-6"> | ||
53 | - <label-input ng-id="centroResultado.codigo" ng-label="LABEL.CODIGO" ng-model="centroResultado.codigo" | ||
54 | - form="centroResultadoForm" ng-obrigatorio="true" ng-custom-maxlength="10" ng-type="text" ng-disabled="!edit" /> | ||
55 | - </div><!-- .col --> | ||
56 | - | ||
57 | - <div class="col-md-6"> | ||
58 | - <label-input ng-id="centroResultado.codigoSistemaOrigem" ng-label="ALCADA.LABEL.ALCADA_CODIGO_SISTEMA_ORIGEM" ng-model="centroResultado.codigoSistemaOrigem" | ||
59 | - form="centroResultadoForm" ng-obrigatorio="false" ng-type="text" ng-disabled="true" label-info-tooltip="{{$translate.instant('MSG.HINT_CODIGO_SISTEMA_ORIGEM')}}" /> | ||
60 | - </div><!-- .col --> | ||
61 | - </div><!-- .row --> | ||
62 | - <div class="row"> | ||
63 | - <div class="col-md-6"> | ||
64 | - <label-input ng-id="centroResultado.nome" ng-label="LABEL.NOME" ng-model="centroResultado.nome" form="centroResultadoForm" ng-obrigatorio="true" ng-custom-maxlength="255" ng-type="text" ng-disabled="!edit" /> | ||
65 | - </div><!-- .col --> | ||
66 | - <div class="col-md-6"> | ||
67 | - <auto-complete ng-id="centroResultado.centroResultadoParent" ng-label="ALCADA.LABEL.CENTRO_RESULTADO_PAI" | ||
68 | - ng-model="centroResultado.centroResultadoParent" form="centroResultadoForm" ng-disabled="!edit" | ||
69 | - ng-find="findAutoCompleteCentroResultado(value)" ng-item="item.nome" /> | ||
70 | - </div><!-- .col --> | ||
71 | - </div><!-- .row --> | ||
72 | - <fieldset ng-disabled="!centroResultado.centroResultadoParent"> | ||
73 | - <legend><translate>LABEL.RESPONSAVEIS</translate></legend> | ||
74 | - | ||
75 | - <div class='row'> | ||
76 | - <div class='col-sm-6'> | ||
77 | - <auto-complete ng-id="responsavel" ng-label="LABEL.RESPONSAVEL" | ||
78 | - ng-model="responsavel" form="centroResultadoForm" | ||
79 | - ng-find="findAutoCompleteResponsavel(value)" ng-item="item.pessoa.nome" | ||
80 | - ng-disabled="!edit || editResponsavel" label-question-tooltip="{{$translate.instant('MSG.HINT_RESPONSAVEL_CENTRO_RESULTADO')}}"/> | ||
81 | - </div><!-- .col --> | ||
82 | - | ||
83 | - <div class="col-sm-6"> | ||
84 | - <div class="form-group"> | ||
85 | - <label class="control-label"><translate>ALCADA.LABEL.ALCADA</translate></label> | ||
86 | - | ||
87 | - <ui-select multiple ng-model="$parent.alcadas" theme="select2" ng-disabled="!edit" style="min-width: 100%;"> | ||
88 | - <ui-select-match placeholder="Selecione um opção...">{{$item.alcada.nome}}</ui-select-match> | ||
89 | - <ui-select-choices repeat="alcadaItem in grupoAlcadaSource | filter:$select.search"> | ||
90 | - {{alcadaItem.alcada.nome}} | ||
91 | - </ui-select-choices> | ||
92 | - </ui-select> | ||
93 | - </div><!-- .form-group --> | ||
94 | - </div><!-- .col --> | ||
95 | - </div><!-- .row --> | ||
96 | - | ||
97 | - <div class='row'> | ||
98 | - <div class='col-sm-12'> | ||
99 | - <div class="panel panel-default"> | ||
100 | - <div class="panel-heading clearfix"> | ||
101 | - <button class="btn btn-clear" ng-click="adicionarResponsavel()" type="button" ng-disabled="!edit" > | ||
102 | - <i class="fa fa-plus-circle yellow-dark"></i> | ||
103 | - <translate>LABEL.ADICIONAR</translate> </a> | ||
104 | - </button> | ||
105 | - | ||
106 | - <button class="btn btn-clear" ng-click="editarResponsavel()" ng-show="centroResultado.responsaveis.length > 0" | ||
107 | - type="button" ng-disabled="!edit" > | ||
108 | - <i class="fa fa-pencil blue"></i> | ||
109 | - <translate>LABEL.EDITAR</translate> </a> | ||
110 | - </button> | ||
111 | - | ||
112 | - <button class="btn btn-clear" ng-click="removerResponsavel()" ng-show="centroResultado.responsaveis.length > 0" | ||
113 | - type="button" ng-disabled="!edit" > | ||
114 | - <i class="fa fa-close red"></i> | ||
115 | - <translate>LABEL.REMOVER</translate> </a> | ||
116 | - </button> | ||
117 | - </div><!-- .panel-heading --> | ||
118 | - | ||
119 | - <table class="table table-striped table-bordered table-hover"> | ||
120 | - <thead> | ||
121 | - <tr> | ||
122 | - <th width="5%" class="text-center"></th> | ||
123 | - <th width="35%"><translate>LABEL.RESPONSAVEL</translate></th> | ||
124 | - <th width="60%"><translate>ALCADA.LABEL.ALCADA</translate></th> | ||
125 | - </tr> | ||
126 | - </thead> | ||
127 | - <tbody> | ||
128 | - <tr ng-repeat="item in centroResultado.responsaveis"> | ||
129 | - <td class="text-center vertical-middle"> | ||
130 | - <input type="radio" name="responsavelChecked" ng-value="item" ng-disabled="!edit" | ||
131 | - ng-model="$parent.responsavelChecked" ng-click="item.$index = $index" /> | ||
132 | - </td> | ||
133 | - <td class="vertical-middle">{{item.responsavel.pessoa.nome}}</td> | ||
134 | - <td> | ||
135 | - <span ng-repeat="itemAlcada in item.alcadas" ng-show="!itemAlcada.dataInativo"><span ng-if="item.alcadas[$index - 1] && !item.alcadas[$index - 1].dataInativo">, </span>{{ itemAlcada.alcada.nome }}</span>. | ||
136 | - </td> | ||
137 | - </tr> | ||
138 | - <tr ng-hide="centroResultado.responsaveis.length > 0"> | ||
139 | - <td colspan="4"><translate>LABEL.TABELA_VAZIA</translate></td> | ||
140 | - </tr> | ||
141 | - </tbody> | ||
142 | - </table> | ||
143 | - </div><!-- .panel --> | ||
144 | - </div><!-- .col --> | ||
145 | - </div><!-- .row --> | ||
146 | - </fieldset> | ||
147 | - | ||
148 | - <fieldset ng-show="historicoResponsaveis.length > 0"> | ||
149 | - <legend><translate>ALCADA.LABEL.HISTORICO_RESPONSAVEIS</translate></legend> | ||
150 | - | ||
151 | - <div class="panel panel-default"> | ||
152 | - <table class="table table-striped table-bordered table-hover"> | ||
153 | - <thead> | ||
154 | - <tr> | ||
155 | - <th width="30%"><translate>LABEL.RESPONSAVEL</translate></th> | ||
156 | - <th width="40%"><translate>ALCADA.LABEL.ALCADA</translate></th> | ||
157 | - <th width="15%"><translate>LABEL.DATA_INICIO</translate></th> | ||
158 | - <th width="15%"><translate>LABEL.DATA_FIM</translate></th> | ||
159 | - </tr> | ||
160 | - </thead> | ||
161 | - <tbody> | ||
162 | - <tr ng-repeat="item in historicoResponsaveis"> | ||
163 | - <td>{{item.responsavel.pessoa.nome}}</td> | ||
164 | - <td> | ||
165 | - <span ng-repeat="itemAlcada in item.alcadas"><span ng-if="$index > 0">, </span>{{ itemAlcada.alcada.nome }}</span>. | ||
166 | - </td> | ||
167 | - <td>{{item.dataCriacao | date:'dd/MM/yyyy'}}</td> | ||
168 | - <td>{{item.dataInativo}}</td> | ||
169 | - </tr> | ||
170 | - </tbody> | ||
171 | - </table> | ||
172 | - </div><!-- .panel --> | ||
173 | - </fieldset> | ||
174 | - </fieldset> | ||
175 | - </form> | ||
176 | -</div><!-- .page-content --> |
cit-alcada-web/bin/src/main/webapp/html/centroResultado/centroResultadoList.html
@@ -1,46 +0,0 @@ | @@ -1,46 +0,0 @@ | ||
1 | -<div id="searchCentroResultado" class="page-content" ng-controller="CentroResultadoListController"> | ||
2 | - <div class="bar-buttons-action fixed"> | ||
3 | - <div class="row"> | ||
4 | - <div class="col-sm-8 text-left"> | ||
5 | - | ||
6 | - <button class="btn btn-clear" ng-click="$showPageEditWorkspace(workspace); resetForm();"> | ||
7 | - <i class="fa fa-plus-circle yellow-dark"></i> | ||
8 | - <translate>LABEL.CADASTRAR</translate> | ||
9 | - </button> | ||
10 | - | ||
11 | - <button class="btn btn-clear" ng-click="abrirVisualizar(false);"> | ||
12 | - <i class="fa fa-search blue"></i> | ||
13 | - <translate>LABEL.VISUALIZAR</translate> | ||
14 | - </button> | ||
15 | - | ||
16 | - <button class="btn btn-clear" ng-click="abrirVisualizar(true);"> | ||
17 | - <i class="fa fa-pencil blue"></i> | ||
18 | - <translate>LABEL.EDITAR</translate> | ||
19 | - </button> | ||
20 | - | ||
21 | - <button class="btn btn-clear" ng-click="remove();"> | ||
22 | - <i class="fa fa-times red"></i> | ||
23 | - <translate>LABEL.REMOVER</translate> | ||
24 | - </button> | ||
25 | - | ||
26 | - <span class="divider-vertical"></span> | ||
27 | - | ||
28 | - <filtros ng-filter="filterCriteria" ng-workspace="workspace"></filtros> | ||
29 | - | ||
30 | - </div><!-- .col --> | ||
31 | - | ||
32 | - <div class="col-sm-4 text-right"> | ||
33 | - | ||
34 | - <favorito/> | ||
35 | - | ||
36 | - <help-button workspace="workspace" /> | ||
37 | - | ||
38 | - </div><!-- .col --> | ||
39 | - </div><!-- .row --> | ||
40 | - </div><!-- .bar-buttons-action --> | ||
41 | - | ||
42 | - <breadcrumb ng-workspace="workspace"></breadcrumb> | ||
43 | - | ||
44 | - <list-view ng-lista="centroResultadoList" ng-repository="CentroResultadoRepository" ng-use-custom-remove="false" ng-headers="headers" ng-filter-criteria="filterCriteria" ng-item-selecionado="centroResultadoChecked"></list-view> | ||
45 | - | ||
46 | -</div><!-- .page-content --> |
cit-alcada-web/bin/src/main/webapp/html/centroResultadoAlcadaResponsavel/centroResultadoAlcadaResponsavel.html
@@ -1,2 +0,0 @@ | @@ -1,2 +0,0 @@ | ||
1 | -<div ng-include src="'/cit-alcada-web/html/centroResultadoAlcadaResponsavel/centroResultadoAlcadaResponsavelList.html'" ng-show="workspace.$showSearch"></div> | ||
2 | -<div ng-include src="'/cit-alcada-web/html/centroResultadoAlcadaResponsavel/centroResultadoAlcadaResponsavelEdit.html'" ng-show="workspace.$showEdit"></div> |
cit-alcada-web/bin/src/main/webapp/html/centroResultadoAlcadaResponsavel/centroResultadoAlcadaResponsavelEdit.html
@@ -1,89 +0,0 @@ | @@ -1,89 +0,0 @@ | ||
1 | -<div id="editCentroResultadoAlcadaResponsavel" class="page-content clearfix" ng-controller="CentroResultadoAlcadaResponsavelController"> | ||
2 | - <div class="bar-buttons-action fixed"> | ||
3 | - <div class="row"> | ||
4 | - <div class="col-sm-8 text-left"> | ||
5 | - | ||
6 | - <button class="btn btn-clear" ng-click="saveOrUpdate()" ng-show="edit"> | ||
7 | - <i class="fa fa-save green"></i> <translate>LABEL.SALVAR</translate> | ||
8 | - </button> | ||
9 | - | ||
10 | - <button class="btn btn-clear" ng-click="limparCentroResultadoAlcadaResponsavel()" ng-show="centroResultadoAlcadaResponsavel.id === undefined" > | ||
11 | - <i class="fa fa-eraser yellow-dark"></i> <translate>LABEL.LIMPAR</translate> | ||
12 | - </button> | ||
13 | - | ||
14 | - <button class="btn btn-clear" ng-show="!edit" ng-click="edit = true"> | ||
15 | - <i class="fa fa-pencil blue"></i> | ||
16 | - <translate>LABEL.EDITAR</translate> | ||
17 | - </button> | ||
18 | - | ||
19 | - <button class="btn btn-clear" ng-click="remove(centroResultadoAlcadaResponsavel);" ng-show="centroResultadoAlcadaResponsavel.id !== undefined"> | ||
20 | - <i class="fa fa-times red"></i> <translate>LABEL.REMOVER</translate> | ||
21 | - </button> | ||
22 | - | ||
23 | - <bloquear-desbloquear ng-model="centroResultadoAlcadaResponsavel" ng-repository="CentroResultadoAlcadaResponsavelRepository" ng-edit="edit" form="centroResultadoAlcadaResponsavelForm"></bloquear-desbloquear> | ||
24 | - | ||
25 | - <button class="btn btn-clear" ng-click="$showPageSearchWorkspace(workspace); atualizaPaginaPesquisa();"> | ||
26 | - <i class="fa fa-search"></i> <translate>LABEL.PESQUISAR</translate> | ||
27 | - </button> | ||
28 | - | ||
29 | - </div><!-- .col --> | ||
30 | - | ||
31 | - <div class="col-sm-4 text-right"> | ||
32 | - | ||
33 | - <favorito/> | ||
34 | - | ||
35 | - <help-button workspace="workspace" /> | ||
36 | - | ||
37 | - </div><!-- .col --> | ||
38 | - </div><!-- .row --> | ||
39 | - </div><!-- .bar-buttons-action --> | ||
40 | - | ||
41 | - <h1 class="title"><translate>LABEL.CENTRORESULTADOALCADARESPONSAVEL</translate></h1> | ||
42 | - | ||
43 | - <breadcrumb ng-workspace="workspace"></breadcrumb> | ||
44 | - | ||
45 | - <form name="centroResultadoAlcadaResponsavelForm"> | ||
46 | - <p> | ||
47 | - <small>( <span class="red">*</span> ) <translate>LABEL.CAMPOS_OBRIGATORIOS</translate></small> | ||
48 | - </p> | ||
49 | - | ||
50 | - <fieldset> | ||
51 | - | ||
52 | - <legend><translate>LABEL.DADOS_CENTRORESULTADOALCADARESPONSAVEL</translate></legend> | ||
53 | - | ||
54 | - <div class="row"> | ||
55 | - | ||
56 | - <div class="col-md-6"> | ||
57 | - | ||
58 | - <auto-complete ng-id="centroResultadoAlcadaResponsavel.alcada" ng-label="ALCADA.LABEL.ALCADA" ng-model="centroResultadoAlcadaResponsavel.alcada" form="centroResultadoAlcadaResponsavelForm" ng-obrigatorio="true" ng-disabled="!edit" ng-find="findAutoCompleteAlcada(value)" ng-item="item.nome" /> | ||
59 | - | ||
60 | - </div> | ||
61 | - | ||
62 | - <div class="col-md-6"> | ||
63 | - | ||
64 | - <auto-complete ng-id="centroResultadoAlcadaResponsavel.centroResultado" ng-label="LABEL.CENTRORESULTADO" ng-model="centroResultadoAlcadaResponsavel.centroResultado" form="centroResultadoAlcadaResponsavelForm" ng-obrigatorio="true" ng-disabled="!edit" ng-find="findAutoCompleteCentroResultado(value)" ng-item="item.nome" /> | ||
65 | - | ||
66 | - </div> | ||
67 | - | ||
68 | - </div> | ||
69 | - | ||
70 | - <div class="row"> | ||
71 | - | ||
72 | - <div class="col-md-12"> | ||
73 | - | ||
74 | - <auto-complete ng-id="centroResultadoAlcadaResponsavel.colaborador" ng-label="LABEL.COLABORADOR" ng-model="centroResultadoAlcadaResponsavel.colaborador" form="centroResultadoAlcadaResponsavelForm" ng-obrigatorio="true" ng-disabled="!edit" ng-find="findAutoCompleteColaborador(value)" ng-item="item.nome" /> | ||
75 | - | ||
76 | - </div> | ||
77 | - | ||
78 | - </div> | ||
79 | - | ||
80 | - </fieldset> | ||
81 | - </form> | ||
82 | -</div><!-- .page-content --> | ||
83 | - | ||
84 | - | ||
85 | - | ||
86 | - | ||
87 | - | ||
88 | - | ||
89 | - |
cit-alcada-web/bin/src/main/webapp/html/centroResultadoAlcadaResponsavel/centroResultadoAlcadaResponsavelList.html
@@ -1,60 +0,0 @@ | @@ -1,60 +0,0 @@ | ||
1 | -<div id="searchCentroResultadoAlcadaResponsavel" class="page-content" ng-controller="CentroResultadoAlcadaResponsavelListController"> | ||
2 | - <div class="bar-buttons-action fixed"> | ||
3 | - <div class="row"> | ||
4 | - <div class="col-sm-8 text-left"> | ||
5 | - | ||
6 | - <button class="btn btn-clear" ng-click="$showPageEditWorkspace(workspace); resetForm();"> | ||
7 | - <i class="fa fa-plus-circle yellow-dark"></i> | ||
8 | - <translate>LABEL.CADASTRAR</translate> | ||
9 | - </button> | ||
10 | - | ||
11 | - <button class="btn btn-clear" ng-click="abrirVisualizar(false);"> | ||
12 | - <i class="fa fa-search blue"></i> | ||
13 | - <translate>LABEL.VISUALIZAR</translate> | ||
14 | - </button> | ||
15 | - | ||
16 | - <button class="btn btn-clear" ng-click="abrirVisualizar(true);"> | ||
17 | - <i class="fa fa-pencil blue"></i> | ||
18 | - <translate>LABEL.EDITAR</translate> | ||
19 | - </button> | ||
20 | - | ||
21 | - <button class="btn btn-clear" ng-click="remove();"> | ||
22 | - <i class="fa fa-times red"></i> | ||
23 | - <translate>LABEL.REMOVER</translate> | ||
24 | - </button> | ||
25 | - | ||
26 | - <span class="divider-vertical"></span> | ||
27 | - | ||
28 | - <filtros ng-filter="filterCriteria" ng-workspace="workspace"></filtros> | ||
29 | - | ||
30 | - </div><!-- .col --> | ||
31 | - | ||
32 | - <div class="col-sm-4 text-right"> | ||
33 | - | ||
34 | - <favorito/> | ||
35 | - | ||
36 | - <help-button workspace="workspace" /> | ||
37 | - | ||
38 | - </div><!-- .col --> | ||
39 | - </div><!-- .row --> | ||
40 | - </div><!-- .bar-buttons-action --> | ||
41 | - | ||
42 | - <h1 class="title"><translate>LABEL.CENTRORESULTADOALCADARESPONSAVEL</translate></h1> | ||
43 | - | ||
44 | - <ul class="breadcrumb"> | ||
45 | - <li> | ||
46 | - <translate>LABEL.MENU</translate> | ||
47 | - </li> | ||
48 | - | ||
49 | - <li> | ||
50 | - Alcada | ||
51 | - </li> | ||
52 | - | ||
53 | - <li class="active"> | ||
54 | - <translate>LABEL.CENTRORESULTADOALCADARESPONSAVEL</translate> | ||
55 | - </li> | ||
56 | - </ul> | ||
57 | - | ||
58 | - <list-view ng-lista="centroResultadoAlcadaResponsavelList" ng-repository="CentroResultadoAlcadaResponsavelRepository" ng-use-custom-remove="false" ng-headers="headers" ng-filter-criteria="filterCriteria" ng-item-selecionado="centroResultadoAlcadaResponsavelChecked"></list-view> | ||
59 | - | ||
60 | -</div><!-- .page-content --> |
cit-alcada-web/bin/src/main/webapp/html/centroResultadoDelegacao/centroResultadoDelegacao.html
@@ -1,167 +0,0 @@ | @@ -1,167 +0,0 @@ | ||
1 | -<div ng-controller="CentroResultadoDelegacaoController"> | ||
2 | - <form name="centroResultadoDelegacaoForm" id="centroResultadoDelegacaoControllerId" novalidate autocomplete="off"> | ||
3 | - <div class="bar-buttons-action fixed"> | ||
4 | - <div class="row"> | ||
5 | - <div class="col-sm-8 text-left"> | ||
6 | - <button class="btn btn-clear" ng-click="limpar()"> | ||
7 | - <i class="fa fa-eraser yellow-dark"></i> <translate>LABEL.LIMPAR</translate> | ||
8 | - </button> | ||
9 | - </div> | ||
10 | - | ||
11 | - <div class="col-sm-4 text-right"> | ||
12 | - <favorito /> | ||
13 | - <help-button workspace="workspace" /> | ||
14 | - </div> | ||
15 | - </div> | ||
16 | - <!-- .row --> | ||
17 | - </div><!-- .bar-buttons-action --> | ||
18 | - | ||
19 | - <breadcrumb ng-workspace="workspace"></breadcrumb> | ||
20 | - | ||
21 | - <p> | ||
22 | - <small>( <span class="red">*</span> ) <translate>LABEL.CAMPOS_OBRIGATORIOS</translate></small> | ||
23 | - </p> | ||
24 | - | ||
25 | - <div class="page-content"> | ||
26 | - <fieldset> | ||
27 | - <legend><translate>ALCADA.LABEL.ALCADAS</translate></legend> | ||
28 | - | ||
29 | - <div class='row'> | ||
30 | - <div class='col-sm-8'> | ||
31 | - <auto-complete ng-id="filter.centroResultado" ng-label="ALCADA.LABEL.CENTRO_RESULTADO" | ||
32 | - ng-model="filter.centroResultado" form="centroResultadoDelegacaoForm" | ||
33 | - ng-find="findAutoCompleteCentroResultado(value)" ng-item="item.nome" label-info-tooltip="{{$translate.instant('MSG.CENTRO_CUSTO_RESPONSAVEL')}}"/> | ||
34 | - </div><!-- .col --> | ||
35 | - | ||
36 | - <div class='col-sm-1'> | ||
37 | - <div class='form-group btn-no-label'> | ||
38 | - <button class="btn btn-primary" ng-click="fetchResult()" ng-disabled="!filter.centroResultado"> | ||
39 | - <i class="fa fa-search"></i> | ||
40 | - <translate>LABEL.BUSCAR</translate> | ||
41 | - </button> | ||
42 | - </div> | ||
43 | - </div><!-- .col --> | ||
44 | - </div><!-- .row --> | ||
45 | - | ||
46 | - <div class='row'> | ||
47 | - <div class='col-sm-12'> | ||
48 | - <div class="panel panel-default"> | ||
49 | - <div class="panel-heading clearfix"> | ||
50 | - <button class="btn btn-clear" ng-click="iniciaModal();" ng-disabled="alcadasSelecionadas < 1"> | ||
51 | - <i class="fa fa-exchange green"></i> | ||
52 | - <translate>ALCADA.LABEL.DELEGAR</translate> | ||
53 | - </button> | ||
54 | - </div><!-- .panel-heading --> | ||
55 | - | ||
56 | - <table id="tableAlcadas" class="table table-striped table-bordered table-hover"> | ||
57 | - <thead> | ||
58 | - <tr> | ||
59 | - <th></th> | ||
60 | - <th ng-repeat="header in headers" style="width: {{divisaoColunas}}%"> | ||
61 | - <sort-by onsort="onSort" sortdir="filterCriteria.dir" sortedby="filterCriteria.sort" sortvalue="{{ header.value }}">{{ header.title }}</sort-by> | ||
62 | - </th> | ||
63 | - </tr> | ||
64 | - </thead> | ||
65 | - | ||
66 | - <tfoot> | ||
67 | - <tr ng-show="totalItens === 0"> | ||
68 | - <td class="text-center" colspan="{{headers.length + 1}}"> | ||
69 | - <div class="row"> | ||
70 | - <translate>LABEL.TABELA_VAZIA</translate> | ||
71 | - </div> | ||
72 | - </td> | ||
73 | - </tr> | ||
74 | - | ||
75 | - <tr ng-show="totalItens !== 0"> | ||
76 | - <td colspan="{{headers.length + 1}}"> | ||
77 | - <div class="row"> | ||
78 | - <div class="col-sm-4 table-showing"> | ||
79 | - <translate>LABEL.MOSTRANDO</translate> | ||
80 | - {{totalItens < 1 ? '0' : filterCriteria.start}} | ||
81 | - <translate>LABEL.ATE</translate> | ||
82 | - {{filterCriteria.limit > totalItens ? totalItens : filterCriteria.limit}} | ||
83 | - <translate>LABEL.DE</translate> | ||
84 | - ({{totalItens}}) | ||
85 | - <translate ng-if="totalItens > 1">LABEL.ITENS</translate> | ||
86 | - <translate ng-if="totalItens < 2">LABEL.ITEM</translate> | ||
87 | - </div><!-- .col --> | ||
88 | - | ||
89 | - <div class="col-sm-8 text-right" ng-show="totalPages > 1"> | ||
90 | - <pagination rotate="true" max-size="10" total-items="totalItens" num-pages="totalPages" ng-model="filterCriteria.start" items-per-page="filterCriteria.limit" class="pagination-sm" boundary-links="true" ng-change="fetchResult()" previous-text="‹" next-text="›" first-text="«" last-text="»"></pagination> | ||
91 | - </div><!-- .col --> | ||
92 | - </div><!-- .row --> | ||
93 | - </td> | ||
94 | - </tr> | ||
95 | - </tfoot> | ||
96 | - | ||
97 | - <tbody> | ||
98 | - <tr ng-repeat="model in alcadas"> | ||
99 | - <td class="text-center" style="width: 5%"><input id="{{model.id}}" type="checkbox" | ||
100 | - ng-model="model.$checked" ng-checked="model.$checked" ng-click="selecionarAlcada(model, $index)" /></td> | ||
101 | - <td ng-repeat="header in headers" > | ||
102 | - <span ng-if="!header.filter">{{model[header.value]}}</span> | ||
103 | - </td> | ||
104 | - </tr> | ||
105 | - </tbody> | ||
106 | - </table><!-- #tableAlcadas --> | ||
107 | - </div><!-- .panel --> | ||
108 | - </div><!-- .col --> | ||
109 | - </div><!-- .row --> | ||
110 | - </fieldset> | ||
111 | - | ||
112 | - | ||
113 | - <fieldset ng-hide="historicoDelegacoes.length < 1"> | ||
114 | - <legend><translate>ALCADA.LABEL.HISTORICO_DELEGACAO</translate></legend> | ||
115 | - | ||
116 | - <div class="row"> | ||
117 | - <div class='col-sm-12'> | ||
118 | - <div class="panel panel-default"> | ||
119 | - <div class="panel-heading clearfix"> | ||
120 | - <button class="btn btn-clear" ng-click="revogarDelegacao();"> | ||
121 | - <i class="fa fa-ban red"></i> | ||
122 | - <translate>ALCADA.LABEL.REVOGAR</translate> | ||
123 | - </button> | ||
124 | - </div><!-- .panel-heading --> | ||
125 | - | ||
126 | - <table class="table table-striped table-bordered table-hover"> | ||
127 | - <thead> | ||
128 | - <tr> | ||
129 | - <th width="5%" class="text-center"></th> | ||
130 | - <th width="20%"><translate>LABEL.RESPONSAVEL</translate></th> | ||
131 | - <th width="20%"><translate>ALCADA.LABEL.DELEGADO_PARA</translate></th> | ||
132 | - <th width="15%"><translate>ALCADA.LABEL.ALCADA</translate></th> | ||
133 | - <th width="10%"><translate>LABEL.ABRANGENCIA</translate></th> | ||
134 | - <th width="10%"><translate>LABEL.DATA_INICIO</translate></th> | ||
135 | - <th width="10%"><translate>LABEL.DATA_FIM</translate></th> | ||
136 | - <th width="10%"><translate>ALCADA.LABEL.DATA_REVOGACAO</translate></th> | ||
137 | - </tr> | ||
138 | - </thead> | ||
139 | - <tbody> | ||
140 | - <tr ng-repeat="item in historicoDelegacoes"> | ||
141 | - <td class="text-center vertical-middle"> | ||
142 | - <input type="radio" name="delegadoChecked" ng-value="item" | ||
143 | - ng-model="$parent.delegadoChecked" ng-click="item.$index = $index" /> | ||
144 | - </td> | ||
145 | - <td class="vertical-middle">{{item.centroResultadoResponsavelAlcada.centroResultadoResponsavel.responsavel.pessoa.nome}}</td> | ||
146 | - <td class="vertical-middle">{{item.delegado.pessoa.nome}}</td> | ||
147 | - <td class="vertical-middle">{{item.centroResultadoResponsavelAlcada.alcada.nome}}</td> | ||
148 | - <td class="vertical-middle"> | ||
149 | - {{item.dominioTipoAbrangenciaDelegacao.descricao}} | ||
150 | - | ||
151 | - <div ng-if="item.dominioTipoAbrangenciaDelegacao.codigo === TIPO_ABRANGENCIA_DELEGACAO_ESPECIFICAS"> | ||
152 | - <span ng-repeat="requisicao in item.requisicoes"><span ng-show="$index > 0">, </span>{{requisicao.requisicao}}</span>. | ||
153 | - </div> | ||
154 | - </td> | ||
155 | - <td class="vertical-middle">{{item.dataInicioDelegacao}}</td> | ||
156 | - <td class="vertical-middle">{{item.dataFimDelegacao}}</td> | ||
157 | - <td class="vertical-middle">{{item.dataRevogacao}}</td> | ||
158 | - </tr> | ||
159 | - </tbody> | ||
160 | - </table> | ||
161 | - </div><!-- .panel --> | ||
162 | - </div><!-- .col --> | ||
163 | - </div><!-- .row --> | ||
164 | - </fieldset> | ||
165 | - </div><!-- .page-content --> | ||
166 | - </form> | ||
167 | -</div> |
cit-alcada-web/bin/src/main/webapp/html/centroResultadoDelegacao/centroResultadoDelegacaoEdit.html
@@ -1,90 +0,0 @@ | @@ -1,90 +0,0 @@ | ||
1 | -<div id="editCentroResultadoDelegacao" class="page-content clearfix" ng-controller="CentroResultadoDelegacaoController"> | ||
2 | - <div class="bar-buttons-action fixed"> | ||
3 | - <div class="row"> | ||
4 | - <div class="col-sm-8 text-left"> | ||
5 | - | ||
6 | - <button class="btn btn-clear" ng-click="saveOrUpdate()" ng-show="edit"> | ||
7 | - <i class="fa fa-save green"></i> <translate>LABEL.SALVAR</translate> | ||
8 | - </button> | ||
9 | - | ||
10 | - <button class="btn btn-clear" ng-click="limparCentroResultadoDelegacao()" ng-show="centroResultadoDelegacao.id === undefined"> | ||
11 | - <i class="fa fa-eraser yellow-dark"></i> <translate>LABEL.LIMPAR</translate> | ||
12 | - </button> | ||
13 | - | ||
14 | - <button class="btn btn-clear" ng-show="!edit" ng-click="edit = true"> | ||
15 | - <i class="fa fa-pencil blue"></i> | ||
16 | - <translate>LABEL.EDITAR</translate> | ||
17 | - </button> | ||
18 | - | ||
19 | - <button class="btn btn-clear" ng-click="remove(centroResultadoDelegacao);" ng-show="centroResultadoDelegacao.id !== undefined"> | ||
20 | - <i class="fa fa-times red"></i> <translate>LABEL.REMOVER</translate> | ||
21 | - </button> | ||
22 | - | ||
23 | - <bloquear-desbloquear ng-model="centroResultadoDelegacao" ng-repository="CentroResultadoDelegacaoRepository" ng-edit="edit" form="centroResultadoDelegacaoForm"></bloquear-desbloquear> | ||
24 | - | ||
25 | - <button class="btn btn-clear" ng-click="$showPageSearchWorkspace(workspace); atualizaPaginaPesquisa();"> | ||
26 | - <i class="fa fa-search"></i> <translate>LABEL.PESQUISAR</translate> | ||
27 | - </button> | ||
28 | - | ||
29 | - </div><!-- .col --> | ||
30 | - | ||
31 | - <div class="col-sm-4 text-right"> | ||
32 | - | ||
33 | - <favorito/> | ||
34 | - | ||
35 | - <help-button workspace="workspace" /> | ||
36 | - | ||
37 | - </div><!-- .col --> | ||
38 | - </div><!-- .row --> | ||
39 | - </div><!-- .bar-buttons-action --> | ||
40 | - | ||
41 | - <h1 class="title"><translate>LABEL.CENTRORESULTADODELEGACAO</translate></h1> | ||
42 | - | ||
43 | - <breadcrumb ng-workspace="workspace"></breadcrumb> | ||
44 | - | ||
45 | - <form name="centroResultadoDelegacaoForm"> | ||
46 | - <p> | ||
47 | - <small>( <span class="red">*</span> ) <translate>LABEL.CAMPOS_OBRIGATORIOS</translate></small> | ||
48 | - </p> | ||
49 | - | ||
50 | - <fieldset> | ||
51 | - | ||
52 | - <legend><translate>LABEL.DADOS_CENTRORESULTADODELEGACAO</translate></legend> | ||
53 | - | ||
54 | - <div class="row"> | ||
55 | - <div class="col-md-6"> | ||
56 | - <auto-complete ng-id="centroResultadoDelegacao.centroResultado" ng-label="LABEL.CENTRORESULTADO" | ||
57 | - ng-model="centroResultadoDelegacao.centroResultado" form="centroResultadoDelegacaoForm" ng-obrigatorio="true" | ||
58 | - ng-disabled="!edit" ng-find="findAutoCompleteCentroResultado(value)" ng-item="item.nome" /> | ||
59 | - </div> | ||
60 | - <div class="col-md-6"> | ||
61 | - <auto-complete ng-id="centroResultadoDelegacao.delegado" ng-label="LABEL.DELEGADO" ng-model="centroResultadoDelegacao.delegado" | ||
62 | - form="centroResultadoDelegacaoForm" ng-obrigatorio="true" ng-disabled="!edit" | ||
63 | - ng-find="findAutoCompleteColaborador(value)" ng-item="item.nome" /> | ||
64 | - </div> | ||
65 | - </div> | ||
66 | - | ||
67 | - <div class="row"> | ||
68 | - <div class="col-md-6"> | ||
69 | - <label-input-data ng-id="centroResultadoDelegacao.dataInicioDelegacao" ng-label="LABEL.DATA_INICIO_DELEGACAO" | ||
70 | - ng-model="centroResultadoDelegacao.dataInicioDelegacao" form="centroResultadoDelegacaoForm" ng-obrigatorio="true" | ||
71 | - ng-mode="day" ng-format="dd/MM/yyyy" /> | ||
72 | - </div> | ||
73 | - <div class="col-md-6"> | ||
74 | - <label-input-data ng-id="centroResultadoDelegacao.dataFimDelegacao" ng-label="LABEL.DATA_FIM_DELEGACAO" | ||
75 | - ng-model="centroResultadoDelegacao.dataFimDelegacao" form="centroResultadoDelegacaoForm" ng-obrigatorio="true" | ||
76 | - ng-mode="day" ng-format="dd/MM/yyyy" /> | ||
77 | - </div> | ||
78 | - </div> | ||
79 | - | ||
80 | - <div class="row"> | ||
81 | - <div class="col-md-6"> | ||
82 | - <label-select ng-id="centroResultadoDelegacao.dominio" ng-label="LABEL.DOMINIO" ng-model="centroResultadoDelegacao.dominio" | ||
83 | - form="centroResultadoDelegacaoForm" ng-obrigatorio="true" ng-list="dominioTipoAbrangenciaDelegacaoList" | ||
84 | - ng-custom-options="dominio.originalElement as dominio.descricao for dominio" track-by="track by dominio.id" /> | ||
85 | - </div> | ||
86 | - </div> | ||
87 | - | ||
88 | - </fieldset> | ||
89 | - </form> | ||
90 | -</div><!-- .page-content --> |
cit-alcada-web/bin/src/main/webapp/html/centroResultadoDelegacao/centroResultadoDelegacaoList.html
@@ -1,48 +0,0 @@ | @@ -1,48 +0,0 @@ | ||
1 | -<div id="searchCentroResultadoDelegacao" class="page-content" ng-controller="CentroResultadoDelegacaoListController"> | ||
2 | - <div class="bar-buttons-action fixed"> | ||
3 | - <div class="row"> | ||
4 | - <div class="col-sm-8 text-left"> | ||
5 | - | ||
6 | - <button class="btn btn-clear" ng-click="$showPageEditWorkspace(workspace); resetForm();"> | ||
7 | - <i class="fa fa-plus-circle yellow-dark"></i> | ||
8 | - <translate>LABEL.CADASTRAR</translate> | ||
9 | - </button> | ||
10 | - | ||
11 | - <button class="btn btn-clear" ng-click="abrirVisualizar(false);"> | ||
12 | - <i class="fa fa-search blue"></i> | ||
13 | - <translate>LABEL.VISUALIZAR</translate> | ||
14 | - </button> | ||
15 | - | ||
16 | - <button class="btn btn-clear" ng-click="abrirVisualizar(true);"> | ||
17 | - <i class="fa fa-pencil blue"></i> | ||
18 | - <translate>LABEL.EDITAR</translate> | ||
19 | - </button> | ||
20 | - | ||
21 | - <button class="btn btn-clear" ng-click="remove();"> | ||
22 | - <i class="fa fa-times red"></i> | ||
23 | - <translate>LABEL.REMOVER</translate> | ||
24 | - </button> | ||
25 | - | ||
26 | - <span class="divider-vertical"></span> | ||
27 | - | ||
28 | - <filtros ng-filter="filterCriteria" ng-workspace="workspace"></filtros> | ||
29 | - | ||
30 | - </div><!-- .col --> | ||
31 | - | ||
32 | - <div class="col-sm-4 text-right"> | ||
33 | - | ||
34 | - <favorito/> | ||
35 | - | ||
36 | - <help-button workspace="workspace" /> | ||
37 | - | ||
38 | - </div><!-- .col --> | ||
39 | - </div><!-- .row --> | ||
40 | - </div><!-- .bar-buttons-action --> | ||
41 | - | ||
42 | - <h1 class="title"><translate>LABEL.CENTRORESULTADODELEGACAO</translate></h1> | ||
43 | - | ||
44 | - <breadcrumb ng-workspace="workspace"></breadcrumb> | ||
45 | - | ||
46 | - <list-view ng-lista="centroResultadoDelegacaoList" ng-repository="CentroResultadoDelegacaoRepository" ng-use-custom-remove="false" ng-headers="headers" ng-filter-criteria="filterCriteria" ng-item-selecionado="centroResultadoDelegacaoChecked"></list-view> | ||
47 | - | ||
48 | -</div><!-- .page-content --> |
cit-alcada-web/bin/src/main/webapp/html/centroResultadoDelegacao/dialogCentroResultadoDelegacao.html
@@ -1,73 +0,0 @@ | @@ -1,73 +0,0 @@ | ||
1 | -<ng-form name="formDelegacaoAlcada" autocomplete="off"> | ||
2 | - <div class="modal-header"> | ||
3 | - <button class="btn btn-clear" type="button" ng-click="delegarAlcada(formDelegacaoAlcada)"> | ||
4 | - <i class="fa fa-save green"></i> | ||
5 | - <translate>ALCADA.LABEL.DELEGAR </translate> | ||
6 | - </button> | ||
7 | - | ||
8 | - <button title="{{$translate.instant('LABEL.CANCELAR')}}" alt="{{$translate.instant('LABEL.CANCELAR')}}" | ||
9 | - ng-click="$dismiss('cancel'); limparCentroResultadoDelegacao();" class="btn btn-clear"> | ||
10 | - <i class="fa fa-times red"></i> | ||
11 | - <translate>LABEL.CANCELAR</translate> | ||
12 | - </button> | ||
13 | - </div> | ||
14 | - | ||
15 | - <div class="modal-body"> | ||
16 | - <fieldset> | ||
17 | - <legend><translate>ALCADA.LABEL.DELEGACAO_ALCADA</translate></legend> | ||
18 | - | ||
19 | - <p ng-show="editDelegacao"> | ||
20 | - <small>( <span class="red">*</span> ) <translate>LABEL.CAMPOS_OBRIGATORIOS</translate> | ||
21 | - </small> | ||
22 | - </p> | ||
23 | - | ||
24 | - <fieldset> | ||
25 | - <legend><translate>LABEL.RESPONSAVEL</translate></legend> | ||
26 | - | ||
27 | - <div class='row'> | ||
28 | - <div class="col-sm-12"> | ||
29 | - <auto-complete-obrigatorio ng-id="centroResultadoDelegacao.delegado" ng-label="LABEL.NOME" | ||
30 | - ng-model="centroResultadoDelegacao.delegado" form="formDelegacaoAlcada" | ||
31 | - ng-find="findAutoCompleteColaborador(value)" ng-item="item.pessoa.nome" > | ||
32 | - </auto-complete-obrigatorio> | ||
33 | - </div> | ||
34 | - </div> | ||
35 | - </fieldset> | ||
36 | - | ||
37 | - <fieldset> | ||
38 | - <legend><translate>ALCADA.LABEL.PERIODO</translate></legend> | ||
39 | - | ||
40 | - <div class="row"> | ||
41 | - <div class="col-sm-6"> | ||
42 | - <label-input-data ng-id="centroResultadoDelegacao.dataInicioDelegacao" ng-label="LABEL.REFERENCIA_INICIAL" | ||
43 | - ng-obrigatorio="true" ng-disabled="false" ng-model="centroResultadoDelegacao.dataInicioDelegacao" form="formDelegacaoAlcada" /> | ||
44 | - </div> | ||
45 | - | ||
46 | - <div class="col-sm-6"> | ||
47 | - <label-input-data ng-id="centroResultadoDelegacao.dataFimDelegacao" ng-label="LABEL.REFERENCIA_FINAL" | ||
48 | - ng-obrigatorio="true" ng-disabled="false" ng-model="centroResultadoDelegacao.dataFimDelegacao" form="formDelegacaoAlcada" /> | ||
49 | - </div> | ||
50 | - </div> | ||
51 | - </fieldset> | ||
52 | - | ||
53 | - <fieldset> | ||
54 | - <legend><translate>ALCADA.LABEL.TIPO_ABRANGENCIA</translate></legend> | ||
55 | - | ||
56 | - <div class="row"> | ||
57 | - <div class="col-sm-6"> | ||
58 | - <label-select ng-id="centroResultadoDelegacao.dominioTipoAbrangenciaDelegacao" ng-label="LABEL.TIPO" | ||
59 | - ng-model="centroResultadoDelegacao.dominioTipoAbrangenciaDelegacao" | ||
60 | - form="formDelegacaoAlcada" ng-custom-options="dominio.originalElement as dominio.descricao for dominio" | ||
61 | - ng-obrigatorio="true" track-by="track by dominio.id" ng-list="dominioTipoAbrangenciaList" /> | ||
62 | - </div> | ||
63 | - | ||
64 | - <div class='col-sm-3' ng-show="centroResultadoDelegacao.dominioTipoAbrangenciaDelegacao.nome === 'ESPECIFICAS'"> | ||
65 | - <label class="control-label"><translate>ALCADA.LABEL.REQUISICOES</translate></label> | ||
66 | - <lista-string ng-lista-itens="centroResultadoDelegacao.requisicoes" ng-altura="auto" number-only="true" max-length="10"></lista-string> | ||
67 | - </div> | ||
68 | - </div> | ||
69 | - </fieldset> | ||
70 | - </fieldset> | ||
71 | - </div> | ||
72 | - | ||
73 | -</ng-form> |
cit-alcada-web/bin/src/main/webapp/html/centroResultadoDelegacaoResponsavel/centroResultadoDelegacaoResponsavel.html
@@ -1,149 +0,0 @@ | @@ -1,149 +0,0 @@ | ||
1 | -<div ng-controller="CentroResultadoDelegacaoResponsavelController"> | ||
2 | - <form name="centroResultadoDelegacaoForm" id="centroResultadoDelegacaoControllerId" novalidate autocomplete="off"> | ||
3 | - <div class="bar-buttons-action fixed"> | ||
4 | - <div class="row"> | ||
5 | - <div class="col-sm-8 text-left"> | ||
6 | - <button class="btn btn-clear" ng-click="saveOrUpdate()" ng-show="edit"> | ||
7 | - <i class="fa fa-save green"></i> <translate>LABEL.SALVAR</translate> | ||
8 | - </button> | ||
9 | - | ||
10 | - <button class="btn btn-clear" ng-click="limpar()"> | ||
11 | - <i class="fa fa-eraser yellow-dark"></i> <translate>LABEL.LIMPAR</translate> | ||
12 | - </button> | ||
13 | - </div> | ||
14 | - | ||
15 | - <div class="col-sm-4 text-right"> | ||
16 | - <favorito /> | ||
17 | - <help-button workspace="workspace" /> | ||
18 | - </div> | ||
19 | - </div> | ||
20 | - <!-- .row --> | ||
21 | - </div><!-- .bar-buttons-action --> | ||
22 | - | ||
23 | - <breadcrumb ng-workspace="workspace"></breadcrumb> | ||
24 | - | ||
25 | - <p> | ||
26 | - <small>( <span class="red">*</span> ) <translate>LABEL.CAMPOS_OBRIGATORIOS</translate></small> | ||
27 | - </p> | ||
28 | - | ||
29 | - <div class="page-content"> | ||
30 | - <div class="alert alert-warning" ng-if="alcadas.length <= 0"> | ||
31 | - <translate>ALCADA.MSG.USUARIO_LOGADO_NAO_RESPONSAVEL_POR_NENHUM_CENTRO_RESULTADO</translate> | ||
32 | - </div> | ||
33 | - | ||
34 | - <fieldset> | ||
35 | - <legend><translate>ALCADA.LABEL.ALCADAS</translate></legend> | ||
36 | - | ||
37 | - <div class='row'> | ||
38 | - <div class='col-sm-12'> | ||
39 | - <div class="panel panel-default"> | ||
40 | - <div class="panel-heading clearfix"> | ||
41 | - <button class="btn btn-clear" ng-click="iniciaModal();" ng-disabled="alcadasSelecionadas < 1"> | ||
42 | - <i class="fa fa-exchange green"></i> | ||
43 | - <translate>ALCADA.LABEL.DELEGAR</translate> | ||
44 | - </button> | ||
45 | - </div><!-- .panel-heading --> | ||
46 | - | ||
47 | - <table id="tableAlcadas" class="table table-striped table-bordered table-hover"> | ||
48 | - <thead> | ||
49 | - <tr> | ||
50 | - <th></th> | ||
51 | - <th class="text-center" ng-repeat="header in headers" style="width: {{divisaoColunas}}%"> | ||
52 | - <sort-by onsort="onSort" sortdir="filterCriteria.dir" sortedby="filterCriteria.sort" sortvalue="{{ header.value }}">{{ header.title }}</sort-by> | ||
53 | - </th> | ||
54 | - </tr> | ||
55 | - </thead> | ||
56 | - | ||
57 | - <tfoot> | ||
58 | - <tr ng-show="total == 0"> | ||
59 | - <td class="text-center" colspan="{{headers.length + 1}}"> | ||
60 | - <div class="row"> | ||
61 | - <translate>LABEL.TABELA_VAZIA</translate> | ||
62 | - </div> | ||
63 | - </td> | ||
64 | - </tr> | ||
65 | - | ||
66 | - <tr ng-show="total != 0"> | ||
67 | - <td colspan="{{headers.length + 1}}"> | ||
68 | - <div class="row"> | ||
69 | - <div class="col-sm-4 table-showing"> | ||
70 | - <translate>LABEL.MOSTRANDO</translate> | ||
71 | - {{totalItens < 1 ? '0' : filterCriteria.start}} | ||
72 | - <translate>LABEL.ATE</translate> | ||
73 | - {{filterCriteria.limit > totalItens ? totalItens : filterCriteria.limit}} | ||
74 | - <translate>LABEL.DE</translate> | ||
75 | - ({{totalItens}}) | ||
76 | - <translate ng-if="totalItens > 1">LABEL.ITENS</translate> | ||
77 | - <translate ng-if="totalItens < 2">LABEL.ITEM</translate> | ||
78 | - </div><!-- .col --> | ||
79 | - | ||
80 | - <div class="col-sm-8 text-right" ng-show="totalPages > 1"> | ||
81 | - <pagination rotate="true" max-size="10" total-items="totalItens" num-pages="totalPages" ng-model="filterCriteria.start" items-per-page="filterCriteria.limit" class="pagination-sm" boundary-links="true" ng-change="fetchResult()" previous-text="‹" next-text="›" first-text="«" last-text="»"></pagination> | ||
82 | - </div><!-- .col --> | ||
83 | - </div><!-- .row --> | ||
84 | - </td> | ||
85 | - </tr> | ||
86 | - </tfoot> | ||
87 | - | ||
88 | - <tbody> | ||
89 | - <tr ng-repeat="model in alcadas"> | ||
90 | - <td class="text-center" style="width: 5%"><input id="{{model.id}}" type="checkbox" | ||
91 | - ng-model="model.$checked" ng-checked="model.$checked" ng-click="selecionarAlcada(model, $index)" /></td> | ||
92 | - <td class="text-center" ng-repeat="header in headers" > | ||
93 | - <span ng-if="!header.filter">{{model[header.value]}}</span> | ||
94 | - </td> | ||
95 | - </tr> | ||
96 | - </tbody> | ||
97 | - </table><!-- #tableAlcadas --> | ||
98 | - </div><!-- .panel --> | ||
99 | - </div><!-- .col --> | ||
100 | - </div><!-- .row --> | ||
101 | - </fieldset> | ||
102 | - | ||
103 | - | ||
104 | - <fieldset ng-hide="historicoDelegacoes.length < 1"> | ||
105 | - <legend><translate>ALCADA.LABEL.HISTORICO_DELEGACAO</translate></legend> | ||
106 | - | ||
107 | - <div class="row"> | ||
108 | - <div class='col-sm-12'> | ||
109 | - <div class="panel panel-default"> | ||
110 | - <div class="panel-heading clearfix"> | ||
111 | - <button class="btn btn-clear" ng-click="revogarDelegacao();"> | ||
112 | - <i class="fa fa-ban red"></i> | ||
113 | - <translate>ALCADA.LABEL.REVOGAR</translate> | ||
114 | - </button> | ||
115 | - </div><!-- .panel-heading --> | ||
116 | - | ||
117 | - <table class="table table-striped table-bordered table-hover"> | ||
118 | - <thead> | ||
119 | - <tr> | ||
120 | - <th width="5%" class="text-center"></th> | ||
121 | - <th width="25%" class="text-center"><translate>LABEL.RESPONSAVEL</translate></th> | ||
122 | - <th width="25%" class="text-center"><translate>ALCADA.LABEL.ALCADA</translate></th> | ||
123 | - <th width="15%" class="text-center"><translate>LABEL.DATA_INICIO</translate></th> | ||
124 | - <th width="15%" class="text-center"><translate>LABEL.DATA_FIM</translate></th> | ||
125 | - <th width="15%" class="text-center"><translate>ALCADA.LABEL.DATA_REVOGACAO</translate></th> | ||
126 | - </tr> | ||
127 | - </thead> | ||
128 | - <tbody> | ||
129 | - <tr ng-repeat="item in historicoDelegacoes"> | ||
130 | - <td class="text-center vertical-middle"> | ||
131 | - <input type="radio" name="delegadoChecked" ng-value="item" | ||
132 | - ng-model="$parent.delegadoChecked" ng-click="item.$index = $index" /> | ||
133 | - </td> | ||
134 | - <td class="text-center">{{item.delegado.pessoa.nome}}</td> | ||
135 | - <td class="text-center">{{item.centroResultadoResponsavelAlcada.alcada.nome}}</td> | ||
136 | - <td class="text-center">{{item.dataInicioDelegacao}}</td> | ||
137 | - <td class="text-center">{{item.dataFimDelegacao}}</td> | ||
138 | - <td class="text-center">{{item.dataRevogacao}}</td> | ||
139 | - | ||
140 | - </tr> | ||
141 | - </tbody> | ||
142 | - </table> | ||
143 | - </div><!-- .panel --> | ||
144 | - </div><!-- .col --> | ||
145 | - </div><!-- .row --> | ||
146 | - </fieldset> | ||
147 | - </div><!-- .page-content --> | ||
148 | - </form> | ||
149 | -</div> |
cit-alcada-web/bin/src/main/webapp/html/centroResultadoDelegacaoResponsavel/centroResultadoDelegacaoResponsavelEdit.html
@@ -1,90 +0,0 @@ | @@ -1,90 +0,0 @@ | ||
1 | -<div id="editCentroResultadoDelegacao" class="page-content clearfix" ng-controller="CentroResultadoDelegacaoController"> | ||
2 | - <div class="bar-buttons-action fixed"> | ||
3 | - <div class="row"> | ||
4 | - <div class="col-sm-8 text-left"> | ||
5 | - | ||
6 | - <button class="btn btn-clear" ng-click="saveOrUpdate()" ng-show="edit"> | ||
7 | - <i class="fa fa-save green"></i> <translate>LABEL.SALVAR</translate> | ||
8 | - </button> | ||
9 | - | ||
10 | - <button class="btn btn-clear" ng-click="limparCentroResultadoDelegacao()" ng-show="centroResultadoDelegacao.id === undefined"> | ||
11 | - <i class="fa fa-eraser yellow-dark"></i> <translate>LABEL.LIMPAR</translate> | ||
12 | - </button> | ||
13 | - | ||
14 | - <button class="btn btn-clear" ng-show="!edit" ng-click="edit = true"> | ||
15 | - <i class="fa fa-pencil blue"></i> | ||
16 | - <translate>LABEL.EDITAR</translate> | ||
17 | - </button> | ||
18 | - | ||
19 | - <button class="btn btn-clear" ng-click="remove(centroResultadoDelegacao);" ng-show="centroResultadoDelegacao.id !== undefined"> | ||
20 | - <i class="fa fa-times red"></i> <translate>LABEL.REMOVER</translate> | ||
21 | - </button> | ||
22 | - | ||
23 | - <bloquear-desbloquear ng-model="centroResultadoDelegacao" ng-repository="CentroResultadoDelegacaoRepository" ng-edit="edit" form="centroResultadoDelegacaoForm"></bloquear-desbloquear> | ||
24 | - | ||
25 | - <button class="btn btn-clear" ng-click="$showPageSearchWorkspace(workspace); atualizaPaginaPesquisa();"> | ||
26 | - <i class="fa fa-search"></i> <translate>LABEL.PESQUISAR</translate> | ||
27 | - </button> | ||
28 | - | ||
29 | - </div><!-- .col --> | ||
30 | - | ||
31 | - <div class="col-sm-4 text-right"> | ||
32 | - | ||
33 | - <favorito/> | ||
34 | - | ||
35 | - <help-button workspace="workspace" /> | ||
36 | - | ||
37 | - </div><!-- .col --> | ||
38 | - </div><!-- .row --> | ||
39 | - </div><!-- .bar-buttons-action --> | ||
40 | - | ||
41 | - <h1 class="title"><translate>LABEL.CENTRORESULTADODELEGACAO</translate></h1> | ||
42 | - | ||
43 | - <breadcrumb ng-workspace="workspace"></breadcrumb> | ||
44 | - | ||
45 | - <form name="centroResultadoDelegacaoForm"> | ||
46 | - <p> | ||
47 | - <small>( <span class="red">*</span> ) <translate>LABEL.CAMPOS_OBRIGATORIOS</translate></small> | ||
48 | - </p> | ||
49 | - | ||
50 | - <fieldset> | ||
51 | - | ||
52 | - <legend><translate>LABEL.DADOS_CENTRORESULTADODELEGACAO</translate></legend> | ||
53 | - | ||
54 | - <div class="row"> | ||
55 | - <div class="col-md-6"> | ||
56 | - <auto-complete ng-id="centroResultadoDelegacao.centroResultado" ng-label="LABEL.CENTRORESULTADO" | ||
57 | - ng-model="centroResultadoDelegacao.centroResultado" form="centroResultadoDelegacaoForm" ng-obrigatorio="true" | ||
58 | - ng-disabled="!edit" ng-find="findAutoCompleteCentroResultado(value)" ng-item="item.nome" /> | ||
59 | - </div> | ||
60 | - <div class="col-md-6"> | ||
61 | - <auto-complete ng-id="centroResultadoDelegacao.delegado" ng-label="LABEL.DELEGADO" ng-model="centroResultadoDelegacao.delegado" | ||
62 | - form="centroResultadoDelegacaoForm" ng-obrigatorio="true" ng-disabled="!edit" | ||
63 | - ng-find="findAutoCompleteColaborador(value)" ng-item="item.nome" /> | ||
64 | - </div> | ||
65 | - </div> | ||
66 | - | ||
67 | - <div class="row"> | ||
68 | - <div class="col-md-6"> | ||
69 | - <label-input-data ng-id="centroResultadoDelegacao.dataInicioDelegacao" ng-label="LABEL.DATA_INICIO_DELEGACAO" | ||
70 | - ng-model="centroResultadoDelegacao.dataInicioDelegacao" form="centroResultadoDelegacaoForm" ng-obrigatorio="true" | ||
71 | - ng-mode="day" ng-format="dd/MM/yyyy" /> | ||
72 | - </div> | ||
73 | - <div class="col-md-6"> | ||
74 | - <label-input-data ng-id="centroResultadoDelegacao.dataFimDelegacao" ng-label="LABEL.DATA_FIM_DELEGACAO" | ||
75 | - ng-model="centroResultadoDelegacao.dataFimDelegacao" form="centroResultadoDelegacaoForm" ng-obrigatorio="true" | ||
76 | - ng-mode="day" ng-format="dd/MM/yyyy" /> | ||
77 | - </div> | ||
78 | - </div> | ||
79 | - | ||
80 | - <div class="row"> | ||
81 | - <div class="col-md-6"> | ||
82 | - <label-select ng-id="centroResultadoDelegacao.dominio" ng-label="LABEL.DOMINIO" ng-model="centroResultadoDelegacao.dominio" | ||
83 | - form="centroResultadoDelegacaoForm" ng-obrigatorio="true" ng-list="dominioTipoAbrangenciaDelegacaoList" | ||
84 | - ng-custom-options="dominio.originalElement as dominio.descricao for dominio" track-by="track by dominio.id" /> | ||
85 | - </div> | ||
86 | - </div> | ||
87 | - | ||
88 | - </fieldset> | ||
89 | - </form> | ||
90 | -</div><!-- .page-content --> |
cit-alcada-web/bin/src/main/webapp/html/centroResultadoDelegacaoResponsavel/centroResultadoDelegacaoResponsavelList.html
@@ -1,48 +0,0 @@ | @@ -1,48 +0,0 @@ | ||
1 | -<div id="searchCentroResultadoDelegacao" class="page-content" ng-controller="CentroResultadoDelegacaoListController"> | ||
2 | - <div class="bar-buttons-action fixed"> | ||
3 | - <div class="row"> | ||
4 | - <div class="col-sm-8 text-left"> | ||
5 | - | ||
6 | - <button class="btn btn-clear" ng-click="$showPageEditWorkspace(workspace); resetForm();"> | ||
7 | - <i class="fa fa-plus-circle yellow-dark"></i> | ||
8 | - <translate>LABEL.CADASTRAR</translate> | ||
9 | - </button> | ||
10 | - | ||
11 | - <button class="btn btn-clear" ng-click="abrirVisualizar(false);"> | ||
12 | - <i class="fa fa-search blue"></i> | ||
13 | - <translate>LABEL.VISUALIZAR</translate> | ||
14 | - </button> | ||
15 | - | ||
16 | - <button class="btn btn-clear" ng-click="abrirVisualizar(true);"> | ||
17 | - <i class="fa fa-pencil blue"></i> | ||
18 | - <translate>LABEL.EDITAR</translate> | ||
19 | - </button> | ||
20 | - | ||
21 | - <button class="btn btn-clear" ng-click="remove();"> | ||
22 | - <i class="fa fa-times red"></i> | ||
23 | - <translate>LABEL.REMOVER</translate> | ||
24 | - </button> | ||
25 | - | ||
26 | - <span class="divider-vertical"></span> | ||
27 | - | ||
28 | - <filtros ng-filter="filterCriteria" ng-workspace="workspace"></filtros> | ||
29 | - | ||
30 | - </div><!-- .col --> | ||
31 | - | ||
32 | - <div class="col-sm-4 text-right"> | ||
33 | - | ||
34 | - <favorito/> | ||
35 | - | ||
36 | - <help-button workspace="workspace" /> | ||
37 | - | ||
38 | - </div><!-- .col --> | ||
39 | - </div><!-- .row --> | ||
40 | - </div><!-- .bar-buttons-action --> | ||
41 | - | ||
42 | - <h1 class="title"><translate>LABEL.CENTRORESULTADODELEGACAO</translate></h1> | ||
43 | - | ||
44 | - <breadcrumb ng-workspace="workspace"></breadcrumb> | ||
45 | - | ||
46 | - <list-view ng-lista="centroResultadoDelegacaoList" ng-repository="CentroResultadoDelegacaoRepository" ng-use-custom-remove="false" ng-headers="headers" ng-filter-criteria="filterCriteria" ng-item-selecionado="centroResultadoDelegacaoChecked"></list-view> | ||
47 | - | ||
48 | -</div><!-- .page-content --> |
cit-alcada-web/bin/src/main/webapp/html/centroResultadoDelegacaoResponsavel/dialogCentroResultadoDelegacaoResponsavel.html
@@ -1,53 +0,0 @@ | @@ -1,53 +0,0 @@ | ||
1 | -<ng-form name="formDelegacaoAlcada" autocomplete="off"> | ||
2 | - <div class="modal-header"> | ||
3 | - <button class="btn btn-clear" type="button" ng-click="delegarAlcada(formDelegacaoAlcada)"> | ||
4 | - <i class="fa fa-save green"></i> | ||
5 | - <translate>ALCADA.LABEL.DELEGAR </translate> | ||
6 | - </button> | ||
7 | - | ||
8 | - <button title="{{$translate.instant('LABEL.CANCELAR')}}" alt="{{$translate.instant('LABEL.CANCELAR')}}" | ||
9 | - ng-click="$dismiss('cancel'); limparCentroResultadoDelegacao();" class="btn btn-clear"> | ||
10 | - <i class="fa fa-times red"></i> | ||
11 | - <translate>LABEL.CANCELAR</translate> | ||
12 | - </button> | ||
13 | - </div> | ||
14 | - | ||
15 | - <div class="modal-body"> | ||
16 | - <h2 class="title-modal"><translate>ALCADA.LABEL.DELEGACAO_ALCADA</translate></h2> | ||
17 | - <p ng-show="editDelegacao"> | ||
18 | - <small>( <span class="red">*</span> ) <translate>LABEL.CAMPOS_OBRIGATORIOS</translate> | ||
19 | - </small> | ||
20 | - </p> | ||
21 | - <div class='row'> | ||
22 | - <div class="col-sm-12"> | ||
23 | - <auto-complete-obrigatorio ng-id="centroResultadoDelegacao.delegado" ng-label="LABEL.RESPONSAVEL" | ||
24 | - ng-model="centroResultadoDelegacao.delegado" form="formDelegacaoAlcada" | ||
25 | - ng-find="findAutoCompleteColaborador(value)" ng-item="item.pessoa.nome" > | ||
26 | - </auto-complete-obrigatorio> | ||
27 | - </div> | ||
28 | - </div> | ||
29 | - <div class='row'> | ||
30 | - <div class="col-sm-6"> | ||
31 | - <label-input-data ng-id="centroResultadoDelegacao.dataInicioDelegacao" ng-label="LABEL.REFERENCIA_INICIAL" | ||
32 | - ng-obrigatorio="true" ng-disabled="false" ng-model="centroResultadoDelegacao.dataInicioDelegacao" form="formDelegacaoAlcada" /> | ||
33 | - </div> | ||
34 | - <div class="col-sm-6"> | ||
35 | - <label-input-data ng-id="centroResultadoDelegacao.dataFimDelegacao" ng-label="LABEL.REFERENCIA_FINAL" | ||
36 | - ng-obrigatorio="true" ng-disabled="false" ng-model="centroResultadoDelegacao.dataFimDelegacao" form="formDelegacaoAlcada" /> | ||
37 | - </div> | ||
38 | - </div> | ||
39 | - <div class='row'> | ||
40 | - <div class="col-sm-5"> | ||
41 | - <label-select ng-id="centroResultadoDelegacao.dominioTipoAbrangenciaDelegacao" ng-label="ALCADA.LABEL.TIPO_ABRANGENCIA" | ||
42 | - ng-model="centroResultadoDelegacao.dominioTipoAbrangenciaDelegacao" | ||
43 | - form="formDelegacaoAlcada" ng-custom-options="dominio.originalElement as dominio.descricao for dominio" | ||
44 | - ng-obrigatorio="true" track-by="track by dominio.id" ng-list="dominioTipoAbrangenciaList" /> | ||
45 | - </div> | ||
46 | - <div class='col-sm-7' style="width:200px" ng-show="centroResultadoDelegacao.dominioTipoAbrangenciaDelegacao.nome == 'ESPECIFICAS'"> | ||
47 | - <label class="control-label"><translate>ALCADA.LABEL.REQUISICOES</translate></label> | ||
48 | - <lista-string ng-lista-itens="centroResultadoDelegacao.requisicoes" ng-altura="150"></lista-string> | ||
49 | - </div> | ||
50 | - </div> | ||
51 | - </div> | ||
52 | - | ||
53 | -</ng-form> |
cit-alcada-web/bin/src/main/webapp/html/centroResultadoSubstituicao/centroResultadoSubstituicao.html
@@ -1,115 +0,0 @@ | @@ -1,115 +0,0 @@ | ||
1 | -<div ng-controller="CentroResultadoSubstituicaoController"> | ||
2 | - <form name="centroResultadoSubstituicaoForm" id="centroResultadoSubstituicaoControllerId" novalidate autocomplete="off"> | ||
3 | - <div class="bar-buttons-action fixed"> | ||
4 | - <div class="row"> | ||
5 | - <div class="col-sm-8 text-left"> | ||
6 | - <button class="btn btn-clear" ng-click="limpar()"> | ||
7 | - <i class="fa fa-eraser yellow-dark"></i> <translate>LABEL.LIMPAR</translate> | ||
8 | - </button> | ||
9 | - </div> | ||
10 | - | ||
11 | - <div class="col-sm-4 text-right"> | ||
12 | - <favorito /> | ||
13 | - <help-button workspace="workspace" /> | ||
14 | - </div> | ||
15 | - </div> | ||
16 | - <!-- .row --> | ||
17 | - </div><!-- .bar-buttons-action --> | ||
18 | - | ||
19 | - <breadcrumb ng-workspace="workspace"></breadcrumb> | ||
20 | - | ||
21 | - <p> | ||
22 | - <small>( <span class="red">*</span> ) <translate>LABEL.CAMPOS_OBRIGATORIOS</translate></small> | ||
23 | - </p> | ||
24 | - | ||
25 | - <div class="page-content"> | ||
26 | - <fieldset> | ||
27 | - <div class='row'> | ||
28 | - <div class='col-sm-8'> | ||
29 | - <auto-complete ng-id="filter.centroResultado" ng-label="ALCADA.LABEL.CENTRO_RESULTADO" | ||
30 | - ng-acao-borracha="limpar()" | ||
31 | - ng-model="filter.centroResultado" form="centroResultadoSubstituicaoForm" | ||
32 | - ng-find="findAutoCompleteCentroResultado(value)" ng-item="item.nome" label-info-tooltip="{{$translate.instant('MSG.CENTRO_CUSTO_RESPONSAVEL')}}"/> | ||
33 | - </div><!-- .col --> | ||
34 | - | ||
35 | - <div class='col-sm-1'> | ||
36 | - <div class='form-group btn-no-label'> | ||
37 | - <button class="btn btn-primary" ng-click="fetchResult()" ng-disabled="!filter.centroResultado"> | ||
38 | - <i class="fa fa-search"></i> | ||
39 | - <translate>LABEL.BUSCAR</translate> | ||
40 | - </button> | ||
41 | - </div> | ||
42 | - </div><!-- .col --> | ||
43 | - </div><!-- .row --> | ||
44 | - | ||
45 | - <div class='row'> | ||
46 | - <div class='col-sm-12'> | ||
47 | - <div class="panel panel-default"> | ||
48 | - <div class="panel-heading clearfix"> | ||
49 | - <button class="btn btn-clear" ng-click="iniciaModal();" ng-disabled="!responsavelChecked.id"> | ||
50 | - <i class="fa fa-exchange green"></i> | ||
51 | - <translate>ALCADA.LABEL.SUBSTITUIR</translate> | ||
52 | - </button> | ||
53 | - </div><!-- .panel-heading --> | ||
54 | - | ||
55 | - <table class="table table-striped table-bordered table-hover"> | ||
56 | - <thead> | ||
57 | - <tr> | ||
58 | - <th width="5%" class="text-center"></th> | ||
59 | - <th width="35%"><translate>LABEL.RESPONSAVEL</translate></th> | ||
60 | - <th width="60%"><translate>ALCADA.LABEL.ALCADA</translate></th> | ||
61 | - </tr> | ||
62 | - </thead> | ||
63 | - <tbody> | ||
64 | - <tr ng-repeat="item in centroResultado.responsaveis"> | ||
65 | - <td class="text-center vertical-middle"> | ||
66 | - <input type="radio" name="responsavelChecked" ng-value="item" ng-model="$parent.responsavelChecked" ng-click="item.$index = $index" /> | ||
67 | - </td> | ||
68 | - <td class="vertical-middle">{{item.responsavel.pessoa.nome}}</td> | ||
69 | - <td> | ||
70 | - <span ng-repeat="itemAlcada in item.alcadas" ng-show="!itemAlcada.dataInativo"><span ng-if="item.alcadas[$index - 1] && !item.alcadas[$index - 1].dataInativo">, </span>{{ itemAlcada.alcada.nome }}</span>. | ||
71 | - </td> | ||
72 | - </tr> | ||
73 | - <tr ng-hide="centroResultado.responsaveis.length > 0"> | ||
74 | - <td colspan="4"><translate>LABEL.TABELA_VAZIA</translate></td> | ||
75 | - </tr> | ||
76 | - </tbody> | ||
77 | - </table> | ||
78 | - | ||
79 | - </div><!-- .panel --> | ||
80 | - </div><!-- .col --> | ||
81 | - </div><!-- .row --> | ||
82 | - </fieldset> | ||
83 | - | ||
84 | - | ||
85 | - <fieldset ng-hide="historicoSubstituicoes.length < 1"> | ||
86 | - <legend><translate>ALCADA.LABEL.HISTORICO_SUBSTITUICOES</translate></legend> | ||
87 | - | ||
88 | - <div class="row"> | ||
89 | - <div class='col-sm-12'> | ||
90 | - <div class="panel panel-default"> | ||
91 | - <div class="panel-heading clearfix"> | ||
92 | - | ||
93 | - <table class="table table-striped table-bordered table-hover"> | ||
94 | - <thead> | ||
95 | - <tr> | ||
96 | - <th width="20%"><translate>LABEL.DATA</translate></th> | ||
97 | - <th width="40%"><translate>LABEL.RESPONSAVEL</translate></th> | ||
98 | - <th width="40%"><translate>ALCADA.LABEL.SUBSTITUTO</translate></th> | ||
99 | - </tr> | ||
100 | - </thead> | ||
101 | - <tbody> | ||
102 | - <tr ng-repeat="item in historicoSubstituicoes"> | ||
103 | - <td class="vertical-middle">{{item.dataCriacao | date : 'dd/MM/yyyy'}}</td> | ||
104 | - <td class="vertical-middle">{{item.centroResultadoResponsavel.responsavel.pessoa.nome}}</td> | ||
105 | - <td class="vertical-middle">{{item.substituto.pessoa.nome}}</td> | ||
106 | - </tr> | ||
107 | - </tbody> | ||
108 | - </table> | ||
109 | - </div><!-- .panel --> | ||
110 | - </div><!-- .col --> | ||
111 | - </div><!-- .row --> | ||
112 | - </fieldset> | ||
113 | - </div><!-- .page-content --> | ||
114 | - </form> | ||
115 | -</div> |
cit-alcada-web/bin/src/main/webapp/html/centroResultadoSubstituicao/centroResultadoSubstituicaoEdit.html
@@ -1,90 +0,0 @@ | @@ -1,90 +0,0 @@ | ||
1 | -<div id="editCentroResultadoDelegacao" class="page-content clearfix" ng-controller="CentroResultadoDelegacaoController"> | ||
2 | - <div class="bar-buttons-action fixed"> | ||
3 | - <div class="row"> | ||
4 | - <div class="col-sm-8 text-left"> | ||
5 | - | ||
6 | - <button class="btn btn-clear" ng-click="saveOrUpdate()" ng-show="edit"> | ||
7 | - <i class="fa fa-save green"></i> <translate>LABEL.SALVAR</translate> | ||
8 | - </button> | ||
9 | - | ||
10 | - <button class="btn btn-clear" ng-click="limparCentroResultadoDelegacao()" ng-show="edit"> | ||
11 | - <i class="fa fa-eraser yellow-dark"></i> <translate>LABEL.LIMPAR</translate> | ||
12 | - </button> | ||
13 | - | ||
14 | - <button class="btn btn-clear" ng-show="!edit" ng-click="edit = true"> | ||
15 | - <i class="fa fa-pencil blue"></i> | ||
16 | - <translate>LABEL.EDITAR</translate> | ||
17 | - </button> | ||
18 | - | ||
19 | - <button class="btn btn-clear" ng-click="remove(centroResultadoDelegacao);" ng-show="centroResultadoDelegacao.id !== undefined"> | ||
20 | - <i class="fa fa-times red"></i> <translate>LABEL.REMOVER</translate> | ||
21 | - </button> | ||
22 | - | ||
23 | - <bloquear-desbloquear ng-model="centroResultadoDelegacao" ng-repository="CentroResultadoDelegacaoRepository" ng-edit="edit" form="centroResultadoDelegacaoForm"></bloquear-desbloquear> | ||
24 | - | ||
25 | - <button class="btn btn-clear" ng-click="$showPageSearchWorkspace(workspace); atualizaPaginaPesquisa();"> | ||
26 | - <i class="fa fa-search"></i> <translate>LABEL.PESQUISAR</translate> | ||
27 | - </button> | ||
28 | - | ||
29 | - </div><!-- .col --> | ||
30 | - | ||
31 | - <div class="col-sm-4 text-right"> | ||
32 | - | ||
33 | - <favorito/> | ||
34 | - | ||
35 | - <help-button workspace="workspace" /> | ||
36 | - | ||
37 | - </div><!-- .col --> | ||
38 | - </div><!-- .row --> | ||
39 | - </div><!-- .bar-buttons-action --> | ||
40 | - | ||
41 | - <h1 class="title"><translate>LABEL.CENTRORESULTADODELEGACAO</translate></h1> | ||
42 | - | ||
43 | - <breadcrumb ng-workspace="workspace"></breadcrumb> | ||
44 | - | ||
45 | - <form name="centroResultadoDelegacaoForm"> | ||
46 | - <p> | ||
47 | - <small>( <span class="red">*</span> ) <translate>LABEL.CAMPOS_OBRIGATORIOS</translate></small> | ||
48 | - </p> | ||
49 | - | ||
50 | - <fieldset> | ||
51 | - | ||
52 | - <legend><translate>LABEL.DADOS_CENTRORESULTADODELEGACAO</translate></legend> | ||
53 | - | ||
54 | - <div class="row"> | ||
55 | - <div class="col-md-6"> | ||
56 | - <auto-complete ng-id="centroResultadoDelegacao.centroResultado" ng-label="LABEL.CENTRORESULTADO" | ||
57 | - ng-model="centroResultadoDelegacao.centroResultado" form="centroResultadoDelegacaoForm" ng-obrigatorio="true" | ||
58 | - ng-disabled="!edit" ng-find="findAutoCompleteCentroResultado(value)" ng-item="item.nome" /> | ||
59 | - </div> | ||
60 | - <div class="col-md-6"> | ||
61 | - <auto-complete ng-id="centroResultadoDelegacao.delegado" ng-label="LABEL.DELEGADO" ng-model="centroResultadoDelegacao.delegado" | ||
62 | - form="centroResultadoDelegacaoForm" ng-obrigatorio="true" ng-disabled="!edit" | ||
63 | - ng-find="findAutoCompleteColaborador(value)" ng-item="item.nome" /> | ||
64 | - </div> | ||
65 | - </div> | ||
66 | - | ||
67 | - <div class="row"> | ||
68 | - <div class="col-md-6"> | ||
69 | - <label-input-data ng-id="centroResultadoDelegacao.dataInicioDelegacao" ng-label="LABEL.DATA_INICIO_DELEGACAO" | ||
70 | - ng-model="centroResultadoDelegacao.dataInicioDelegacao" form="centroResultadoDelegacaoForm" ng-obrigatorio="true" | ||
71 | - ng-mode="day" ng-format="dd/MM/yyyy" /> | ||
72 | - </div> | ||
73 | - <div class="col-md-6"> | ||
74 | - <label-input-data ng-id="centroResultadoDelegacao.dataFimDelegacao" ng-label="LABEL.DATA_FIM_DELEGACAO" | ||
75 | - ng-model="centroResultadoDelegacao.dataFimDelegacao" form="centroResultadoDelegacaoForm" ng-obrigatorio="true" | ||
76 | - ng-mode="day" ng-format="dd/MM/yyyy" /> | ||
77 | - </div> | ||
78 | - </div> | ||
79 | - | ||
80 | - <div class="row"> | ||
81 | - <div class="col-md-6"> | ||
82 | - <label-select ng-id="centroResultadoDelegacao.dominio" ng-label="LABEL.DOMINIO" ng-model="centroResultadoDelegacao.dominio" | ||
83 | - form="centroResultadoDelegacaoForm" ng-obrigatorio="true" ng-list="dominioTipoAbrangenciaDelegacaoList" | ||
84 | - ng-custom-options="dominio.originalElement as dominio.descricao for dominio" track-by="track by dominio.id" /> | ||
85 | - </div> | ||
86 | - </div> | ||
87 | - | ||
88 | - </fieldset> | ||
89 | - </form> | ||
90 | -</div><!-- .page-content --> |
cit-alcada-web/bin/src/main/webapp/html/centroResultadoSubstituicao/centroResultadoSubstituicaoList.html
@@ -1,48 +0,0 @@ | @@ -1,48 +0,0 @@ | ||
1 | -<div id="searchCentroResultadoDelegacao" class="page-content" ng-controller="CentroResultadoDelegacaoListController"> | ||
2 | - <div class="bar-buttons-action fixed"> | ||
3 | - <div class="row"> | ||
4 | - <div class="col-sm-8 text-left"> | ||
5 | - | ||
6 | - <button class="btn btn-clear" ng-click="$showPageEditWorkspace(workspace); resetForm();"> | ||
7 | - <i class="fa fa-plus-circle yellow-dark"></i> | ||
8 | - <translate>LABEL.CADASTRAR</translate> | ||
9 | - </button> | ||
10 | - | ||
11 | - <button class="btn btn-clear" ng-click="abrirVisualizar(false);"> | ||
12 | - <i class="fa fa-search blue"></i> | ||
13 | - <translate>LABEL.VISUALIZAR</translate> | ||
14 | - </button> | ||
15 | - | ||
16 | - <button class="btn btn-clear" ng-click="abrirVisualizar(true);"> | ||
17 | - <i class="fa fa-pencil blue"></i> | ||
18 | - <translate>LABEL.EDITAR</translate> | ||
19 | - </button> | ||
20 | - | ||
21 | - <button class="btn btn-clear" ng-click="remove();"> | ||
22 | - <i class="fa fa-times red"></i> | ||
23 | - <translate>LABEL.REMOVER</translate> | ||
24 | - </button> | ||
25 | - | ||
26 | - <span class="divider-vertical"></span> | ||
27 | - | ||
28 | - <filtros ng-filter="filterCriteria" ng-workspace="workspace"></filtros> | ||
29 | - | ||
30 | - </div><!-- .col --> | ||
31 | - | ||
32 | - <div class="col-sm-4 text-right"> | ||
33 | - | ||
34 | - <favorito/> | ||
35 | - | ||
36 | - <help-button workspace="workspace" /> | ||
37 | - | ||
38 | - </div><!-- .col --> | ||
39 | - </div><!-- .row --> | ||
40 | - </div><!-- .bar-buttons-action --> | ||
41 | - | ||
42 | - <h1 class="title"><translate>LABEL.CENTRORESULTADODELEGACAO</translate></h1> | ||
43 | - | ||
44 | - <breadcrumb ng-workspace="workspace"></breadcrumb> | ||
45 | - | ||
46 | - <list-view ng-lista="centroResultadoDelegacaoList" ng-repository="CentroResultadoDelegacaoRepository" ng-use-custom-remove="false" ng-headers="headers" ng-filter-criteria="filterCriteria" ng-item-selecionado="centroResultadoDelegacaoChecked"></list-view> | ||
47 | - | ||
48 | -</div><!-- .page-content --> |
cit-alcada-web/bin/src/main/webapp/html/centroResultadoSubstituicao/dialogCentroResultadoSubstituicao.html
@@ -1,37 +0,0 @@ | @@ -1,37 +0,0 @@ | ||
1 | -<ng-form name="formSubstituicao" autocomplete="off"> | ||
2 | - <div class="modal-header"> | ||
3 | - <button class="btn btn-clear" type="button" ng-click="substituir(formSubstituicao)"> | ||
4 | - <i class="fa fa-save green"></i> | ||
5 | - <translate>ALCADA.LABEL.SUBSTITUIR </translate> | ||
6 | - </button> | ||
7 | - | ||
8 | - <button title="{{$translate.instant('LABEL.CANCELAR')}}" alt="{{$translate.instant('LABEL.CANCELAR')}}" | ||
9 | - ng-click="$dismiss('cancel'); limparcentroResultadoSubstituicao();" class="btn btn-clear"> | ||
10 | - <i class="fa fa-times red"></i> | ||
11 | - <translate>LABEL.CANCELAR</translate> | ||
12 | - </button> | ||
13 | - </div> | ||
14 | - | ||
15 | - <div class="modal-body"> | ||
16 | - <fieldset> | ||
17 | - <p ng-show="editDelegacao"> | ||
18 | - <small>( <span class="red">*</span> ) <translate>LABEL.CAMPOS_OBRIGATORIOS</translate> | ||
19 | - </small> | ||
20 | - </p> | ||
21 | - | ||
22 | - <fieldset> | ||
23 | - <legend><translate>ALCADA.LABEL.SUBSTITUTO</translate></legend> | ||
24 | - | ||
25 | - <div class='row'> | ||
26 | - <div class="col-sm-12"> | ||
27 | - <auto-complete-obrigatorio ng-id="centroResultadoSubstituicao.substituto" ng-label="LABEL.NOME" | ||
28 | - ng-model="centroResultadoSubstituicao.substituto" form="formSubstituicao" | ||
29 | - ng-find="findAutoCompleteColaborador(value)" ng-item="item.pessoa.nome" > | ||
30 | - </auto-complete-obrigatorio> | ||
31 | - </div> | ||
32 | - </div> | ||
33 | - </fieldset> | ||
34 | - </fieldset> | ||
35 | - </div> | ||
36 | - | ||
37 | -</ng-form> |
cit-alcada-web/bin/src/main/webapp/html/limiteAprovacao/limiteAprovacao.html
cit-alcada-web/bin/src/main/webapp/html/limiteAprovacao/limiteAprovacaoEdit.html
@@ -1,171 +0,0 @@ | @@ -1,171 +0,0 @@ | ||
1 | -<div id="editLimiteAprovacao" class="page-content clearfix" ng-controller="LimiteAprovacaoController"> | ||
2 | - <div class="bar-buttons-action fixed"> | ||
3 | - <div class="row"> | ||
4 | - <div class="col-sm-8 text-left"> | ||
5 | - | ||
6 | - <button class="btn btn-clear" ng-click="saveOrUpdate()" ng-show="edit"> | ||
7 | - <i class="fa fa-save green"></i> <translate>LABEL.SALVAR</translate> | ||
8 | - </button> | ||
9 | - | ||
10 | - <button class="btn btn-clear" ng-click="resetForm()" ng-show="limiteAprovacao.id === undefined"> | ||
11 | - <i class="fa fa-eraser yellow-dark"></i> <translate>LABEL.LIMPAR</translate> | ||
12 | - </button> | ||
13 | - | ||
14 | - <button class="btn btn-clear" ng-show="!edit" ng-click="edit = true"> | ||
15 | - <i class="fa fa-pencil blue"></i> | ||
16 | - <translate>LABEL.EDITAR</translate> | ||
17 | - </button> | ||
18 | - | ||
19 | - <button class="btn btn-clear" ng-click="remove(limiteAprovacao);" ng-show="limiteAprovacao.id !== undefined"> | ||
20 | - <i class="fa fa-times red"></i> <translate>LABEL.REMOVER</translate> | ||
21 | - </button> | ||
22 | - | ||
23 | - <bloquear-desbloquear ng-model="limiteAprovacao" ng-repository="LimiteAprovacaoRepository" ng-edit="edit" form="limiteAprovacaoForm"></bloquear-desbloquear> | ||
24 | - | ||
25 | - <button class="btn btn-clear" ng-click="$showPageSearchWorkspace(workspace); atualizaPaginaPesquisa();"> | ||
26 | - <i class="fa fa-search"></i> <translate>LABEL.PESQUISAR</translate> | ||
27 | - </button> | ||
28 | - | ||
29 | - </div><!-- .col --> | ||
30 | - | ||
31 | - <div class="col-sm-4 text-right"> | ||
32 | - | ||
33 | - <favorito/> | ||
34 | - | ||
35 | - <help-button workspace="workspace" /> | ||
36 | - | ||
37 | - </div><!-- .col --> | ||
38 | - </div><!-- .row --> | ||
39 | - </div><!-- .bar-buttons-action --> | ||
40 | - | ||
41 | - <breadcrumb ng-workspace="workspace"></breadcrumb> | ||
42 | - | ||
43 | - <form name="limiteAprovacaoForm"> | ||
44 | - <p> | ||
45 | - <small>( <span class="red">*</span> ) <translate>LABEL.CAMPOS_OBRIGATORIOS</translate></small> | ||
46 | - </p> | ||
47 | - | ||
48 | - <fieldset> | ||
49 | - <legend><translate>ALCADA.LABEL.DADOS_LIMITE_APROVACAO</translate></legend> | ||
50 | - | ||
51 | - <div class="row"> | ||
52 | - <div class="col-md-12"> | ||
53 | - <label-input ng-id="limiteAprovacao.identificacao" ng-label="LABEL.IDENTIFICACAO" ng-model="limiteAprovacao.identificacao" | ||
54 | - form="limiteAprovacaoForm" ng-obrigatorio="true" ng-custom-maxlength="255" ng-type="text" ng-disabled="!edit" /> | ||
55 | - </div><!-- .col --> | ||
56 | - </div><!-- .row --> | ||
57 | - | ||
58 | - <div class="row"> | ||
59 | - <div class="col-md-6"> | ||
60 | - <label-select ng-id="limiteAprovacao.dominioTipoAbrangencia" ng-label="ALCADA.LABEL.TIPO_ABRANGENCIA" | ||
61 | - ng-model="limiteAprovacao.dominioTipoAbrangencia" ng-disabled="!edit" | ||
62 | - form="limiteAprovacaoForm" ng-custom-options="dominio.originalElement as dominio.descricao for dominio" | ||
63 | - ng-obrigatorio="true" track-by="track by dominio.id" ng-list="dominioTipoAbrangenciaList" /> | ||
64 | - </div><!-- .col --> | ||
65 | - | ||
66 | - <div class="col-md-6"> | ||
67 | - <label-select ng-id="limiteAprovacao.dominioTipoLimite" ng-label="ALCADA.LABEL.TIPO_LIMITE" ng-model="limiteAprovacao.dominioTipoLimite" | ||
68 | - form="limiteAprovacaoForm" ng-custom-options="dominio.originalElement as dominio.descricao for dominio" | ||
69 | - ng-obrigatorio="true" track-by="track by dominio.id" ng-list="dominioTipoLimiteList" ng-disabled="!edit"/> | ||
70 | - </div><!-- col --> | ||
71 | - </div><!-- .row --> | ||
72 | - | ||
73 | - <div class="row"> | ||
74 | - <div class="col-sm-6"> | ||
75 | - <div class="form-group"> | ||
76 | - <label class="control-label"><translate>ALCADA.LABEL.ALCADAS</translate></label> | ||
77 | - | ||
78 | - <ui-select multiple ng-model="$parent.limiteAprovacao.alcadas" theme="select2" ng-disabled="!edit" style="min-width: 100%;"> | ||
79 | - <ui-select-match placeholder="Selecione um opção...">{{$item.alcada.nome}}</ui-select-match> | ||
80 | - <ui-select-choices repeat="alcadaItem in grupoAlcadaSource | filter:$select.search"> | ||
81 | - {{alcadaItem.alcada.nome}} | ||
82 | - </ui-select-choices> | ||
83 | - </ui-select> | ||
84 | - </div><!-- .form-group --> | ||
85 | - </div><!-- .col --> | ||
86 | - | ||
87 | - <div class="col-sm-6"> | ||
88 | - <div class="form-group"> | ||
89 | - <label class="control-label"><translate>ALCADA.LABEL.NIVEIS_AUTORIDADE</translate></label> | ||
90 | - | ||
91 | - <ui-select multiple ng-model="$parent.limiteAprovacao.niveisAutoridades" theme="select2" ng-disabled="!edit" style="min-width: 100%;"> | ||
92 | - <ui-select-match placeholder="Selecione um opção...">{{$item.nivelAutoridade.nome}}</ui-select-match> | ||
93 | - <ui-select-choices repeat="nivelAutoridadeItem in grupoNivelAutoridadeSource | filter:$select.search"> | ||
94 | - {{nivelAutoridadeItem.nivelAutoridade.nome}} | ||
95 | - </ui-select-choices> | ||
96 | - </ui-select> | ||
97 | - </div><!-- .form-group --> | ||
98 | - </div><!-- .col --> | ||
99 | - </div><!-- .row --> | ||
100 | - | ||
101 | - <fielset ng-show="limiteAprovacao.dominioTipoLimite.codigo === TIPO_LIMITE_FAIXA_VALORES_CODIGO"> | ||
102 | - <legend><translate>ALCADA.LABEL.LIMITES_VALOR</translate></legend> | ||
103 | - | ||
104 | - <div class='row'> | ||
105 | - <div class='col-sm-3'> | ||
106 | - <label-select ng-id="limiteAprovacaoValor.dominioTipoLimiteValor" ng-label="ALCADA.LABEL.TIPO_VALOR" | ||
107 | - ng-model="limiteAprovacaoValor.dominioTipoLimiteValor" ng-disabled="!edit" | ||
108 | - form="limiteAprovacaoForm" ng-obrigatorio="false" ng-list="dominioTipoLimiteValorList" | ||
109 | - ng-custom-options="dominio.originalElement as dominio.descricao for dominio" track-by="track by dominio.id" /> | ||
110 | - </div><!-- .col --> | ||
111 | - | ||
112 | - <div class='col-sm-3'> | ||
113 | - <label-select ng-id="limiteAprovacaoValor.dominioTipoUtilizacao" ng-label="ALCADA.LABEL.TIPO_UTILIZACAO" | ||
114 | - ng-model="limiteAprovacaoValor.dominioTipoUtilizacao" form="limiteAprovacaoForm" ng-obrigatorio="false" | ||
115 | - ng-disabled="!edit" ng-custom-options="dominio.originalElement as dominio.descricao for dominio" | ||
116 | - track-by="track by dominio.id" ng-list="dominioTipoUtilizacaoList" /> | ||
117 | - </div><!-- .col --> | ||
118 | - | ||
119 | - <div class='col-sm-6'> | ||
120 | - <label-input-money ng-id="limiteAprovacaoValor.valor" ng-label="LABEL.VALOR" ng-disabled="!edit" | ||
121 | - ng-model="limiteAprovacaoValor.valor" form="limiteAprovacaoForm" ng-obrigatorio="false" text-position="right"/> | ||
122 | - </div><!-- .col --> | ||
123 | - </div><!-- .row --> | ||
124 | - | ||
125 | - <div class='row'> | ||
126 | - <div class='col-sm-12'> | ||
127 | - <div class="panel panel-default"> | ||
128 | - <div class="panel-heading clearfix"> | ||
129 | - <button class="btn btn-clear" ng-click="adicionarLimiteAprovacaoValor()" ng-disabled="!edit" type="button"> | ||
130 | - <i class="fa fa-plus-circle yellow-dark"></i> | ||
131 | - <translate>LABEL.ADICIONAR</translate> </a> | ||
132 | - </button> | ||
133 | - | ||
134 | - <button class="btn btn-clear" ng-click="removerLimiteAprovacaoValor()" ng-disabled="!edit" | ||
135 | - ng-show="limiteAprovacao.limitesAprovacoesValores.length > 0" type="button"> | ||
136 | - <i class="fa fa-close red"></i> | ||
137 | - <translate>LABEL.REMOVER</translate> </a> | ||
138 | - </button> | ||
139 | - </div><!-- .panel-heading --> | ||
140 | - | ||
141 | - <table class="table table-striped table-bordered table-hover"> | ||
142 | - <thead> | ||
143 | - <tr> | ||
144 | - <th width="5%" class="text-center"></th> | ||
145 | - <th width="35%"><translate>ALCADA.LABEL.TIPO_VALOR</translate></th> | ||
146 | - <th width="30%"><translate>ALCADA.LABEL.TIPO_UTILIZACAO</translate></th> | ||
147 | - <th width="30%"><translate>LABEL.VALOR</translate></th> | ||
148 | - </tr> | ||
149 | - </thead> | ||
150 | - <tbody> | ||
151 | - <tr ng-repeat="item in limiteAprovacao.limitesAprovacoesValores" ng-show="!item.dataInativo"> | ||
152 | - <td class="text-center"> | ||
153 | - <input type="radio" name="limiteAprovacaoValorChecked" ng-value="item" ng-disabled="!edit" | ||
154 | - ng-model="$parent.limiteAprovacaoValorChecked" ng-click="item.$index = $index" /> | ||
155 | - </td> | ||
156 | - <td>{{item.dominioTipoLimiteValor.descricao}}</td> | ||
157 | - <td>{{item.dominioTipoUtilizacao.descricao}}</td> | ||
158 | - <td>{{item.valorLimite | currency}}</td> | ||
159 | - </tr> | ||
160 | - <tr ng-hide="limiteAprovacao.limitesAprovacoesValores.length > 0"> | ||
161 | - <td colspan="4" class="text-center"><translate>LABEL.TABELA_VAZIA</translate></td> | ||
162 | - </tr> | ||
163 | - </tbody> | ||
164 | - </table> | ||
165 | - </div><!-- .panel --> | ||
166 | - </div><!-- .col --> | ||
167 | - </div><!-- .row --> | ||
168 | - </fielset> | ||
169 | - </fieldset> | ||
170 | - </form> | ||
171 | -</div><!-- .page-content --> |
cit-alcada-web/bin/src/main/webapp/html/limiteAprovacao/limiteAprovacaoList.html
@@ -1,46 +0,0 @@ | @@ -1,46 +0,0 @@ | ||
1 | -<div id="searchLimiteAprovacao" class="page-content" ng-controller="LimiteAprovacaoListController"> | ||
2 | - <div class="bar-buttons-action fixed"> | ||
3 | - <div class="row"> | ||
4 | - <div class="col-sm-8 text-left"> | ||
5 | - | ||
6 | - <button class="btn btn-clear" ng-click="$showPageEditWorkspace(workspace); resetForm();"> | ||
7 | - <i class="fa fa-plus-circle yellow-dark"></i> | ||
8 | - <translate>LABEL.CADASTRAR</translate> | ||
9 | - </button> | ||
10 | - | ||
11 | - <button class="btn btn-clear" ng-click="abrirVisualizar(false);"> | ||
12 | - <i class="fa fa-search blue"></i> | ||
13 | - <translate>LABEL.VISUALIZAR</translate> | ||
14 | - </button> | ||
15 | - | ||
16 | - <button class="btn btn-clear" ng-click="abrirVisualizar(true);"> | ||
17 | - <i class="fa fa-pencil blue"></i> | ||
18 | - <translate>LABEL.EDITAR</translate> | ||
19 | - </button> | ||
20 | - | ||
21 | - <button class="btn btn-clear" ng-click="remove();"> | ||
22 | - <i class="fa fa-times red"></i> | ||
23 | - <translate>LABEL.REMOVER</translate> | ||
24 | - </button> | ||
25 | - | ||
26 | - <span class="divider-vertical"></span> | ||
27 | - | ||
28 | - <filtros ng-filter="filterCriteria" ng-workspace="workspace"></filtros> | ||
29 | - | ||
30 | - </div><!-- .col --> | ||
31 | - | ||
32 | - <div class="col-sm-4 text-right"> | ||
33 | - | ||
34 | - <favorito/> | ||
35 | - | ||
36 | - <help-button workspace="workspace" /> | ||
37 | - | ||
38 | - </div><!-- .col --> | ||
39 | - </div><!-- .row --> | ||
40 | - </div><!-- .bar-buttons-action --> | ||
41 | - | ||
42 | - <breadcrumb ng-workspace="workspace"></breadcrumb> | ||
43 | - | ||
44 | - <list-view ng-lista="limiteAprovacaoList" ng-repository="LimiteAprovacaoRepository" ng-use-custom-remove="false" ng-headers="headers" ng-filter-criteria="filterCriteria" ng-item-selecionado="limiteAprovacaoChecked"></list-view> | ||
45 | - | ||
46 | -</div><!-- .page-content --> |
cit-alcada-web/bin/src/test/java/br/com/centralit/controller/GenericControllerTest.class
No preview for this file type
cit-alcada-web/bin/src/test/java/br/com/centralit/controller/impl/CentroResultadoAlcadaResponsavelControllerTest.class
No preview for this file type
cit-alcada-web/bin/src/test/java/br/com/centralit/controller/impl/CentroResultadoControllerTest.class
No preview for this file type
cit-alcada-web/bin/src/test/java/br/com/centralit/controller/impl/CentroResultadoDelegacaoControllerTest.class
No preview for this file type
cit-alcada-web/bin/src/test/java/br/com/centralit/controller/impl/GenericControllerTestImpl.class
No preview for this file type
cit-alcada-web/bin/src/test/java/br/com/centralit/controller/impl/LimiteAprovacaoControllerTest.class
No preview for this file type
cit-alcada-web/bin/src/test/java/br/com/centralit/controller/test/utils/TestUtil.class
No preview for this file type
cit-alcada-web/bin/src/test/resources/entitiesJson/Alcada.json
cit-alcada-web/bin/src/test/resources/entitiesJson/CentroResultado.json
cit-alcada-web/bin/src/test/resources/entitiesJson/CentroResultadoAlcadaResponsavel.json
cit-alcada-web/bin/src/test/resources/entitiesJson/CentroResultadoDelegacao.json
cit-alcada-web/bin/src/test/resources/entitiesJson/LimiteAprovacao.json
cit-alcada-web/bin/target/classes/WEB-INF/jboss-deployment-structure.xml
@@ -1,8 +0,0 @@ | @@ -1,8 +0,0 @@ | ||
1 | -<?xml version="1.0" encoding="UTF-8"?> | ||
2 | -<jboss-deployment-structure> | ||
3 | - <deployment> | ||
4 | - <dependencies> | ||
5 | - <module name="br.com.citsmart-grp" /> | ||
6 | - </dependencies> | ||
7 | - </deployment> | ||
8 | -</jboss-deployment-structure> | ||
9 | \ No newline at end of file | 0 | \ No newline at end of file |
cit-alcada-web/bin/target/classes/WEB-INF/jboss-web.xml
cit-alcada-web/bin/target/classes/WEB-INF/web.xml
@@ -1,110 +0,0 @@ | @@ -1,110 +0,0 @@ | ||
1 | -<?xml version="1.0" encoding="UTF-8"?> | ||
2 | -<web-app xmlns="http://java.sun.com/xml/ns/javaee" | ||
3 | - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
4 | - xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" | ||
5 | - version="3.0"> | ||
6 | - <display-name>cit-alcada-web</display-name> | ||
7 | - <session-config> | ||
8 | - <session-timeout>600</session-timeout> | ||
9 | - </session-config> | ||
10 | - <listener> | ||
11 | - <listener-class>org.springframework.web.context.request.RequestContextListener</listener-class> | ||
12 | - </listener> | ||
13 | - <listener> | ||
14 | - <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> | ||
15 | - </listener> | ||
16 | - <context-param> | ||
17 | - <param-name>contextConfigLocation</param-name> | ||
18 | - <param-value> | ||
19 | - /WEB-INF/classes/spring/applicationContext.xml | ||
20 | - </param-value> | ||
21 | - </context-param> | ||
22 | - | ||
23 | - <!-- Configuracoes do properties --> | ||
24 | - <context-param> | ||
25 | - <param-name>contextInitializerClasses</param-name> | ||
26 | - <param-value>br.com.centralit.framework.util.CustomApplicationContextInitializer</param-value> | ||
27 | - </context-param> | ||
28 | - <context-param> | ||
29 | - <param-name>propertiesFile</param-name> | ||
30 | - <param-value>classpath:cit-app.properties</param-value> | ||
31 | - </context-param> | ||
32 | - <context-param> | ||
33 | - <param-name>propertiesFileLoadOrder</param-name> | ||
34 | - <param-value>FIRST</param-value> | ||
35 | - </context-param> | ||
36 | - <!-- Este parametro controla a ordem na qual o arquivo de propriedades sera carregado --> | ||
37 | - <!-- "FIRST": Os parametros do arquivo de propriedades sao carregados primero que os outros recursos no ambiente (System, JVM, JNDI Parameters). --> | ||
38 | - <!-- "LAST": Os parametros do arquivo de propriedades sao carregados por ultimo que os outros recursos no ambiente (System, JVM, JNDI Parameters). --> | ||
39 | - <!-- Por padrao o parametro eh "FIRST". --> | ||
40 | - | ||
41 | - <filter> | ||
42 | - <filter-name>openSessionInViewFilter</filter-name> | ||
43 | - <filter-class>org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter</filter-class> | ||
44 | - </filter> | ||
45 | - <filter-mapping> | ||
46 | - <filter-name>openSessionInViewFilter</filter-name> | ||
47 | - <url-pattern>*.json</url-pattern> | ||
48 | - </filter-mapping> | ||
49 | - | ||
50 | - <filter> | ||
51 | - <filter-name>encoding-filter</filter-name> | ||
52 | - <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class> | ||
53 | - <init-param> | ||
54 | - <param-name>encoding</param-name> | ||
55 | - <param-value>UTF-8</param-value> | ||
56 | - </init-param> | ||
57 | - </filter> | ||
58 | - <filter-mapping> | ||
59 | - <filter-name>encoding-filter</filter-name> | ||
60 | - <url-pattern>/*</url-pattern> | ||
61 | - </filter-mapping> | ||
62 | - | ||
63 | - <filter> | ||
64 | - <filter-name>CAS Single Sign Out Filter</filter-name> | ||
65 | - <filter-class>org.jasig.cas.client.session.SingleSignOutFilter</filter-class> | ||
66 | - </filter> | ||
67 | - | ||
68 | - <filter-mapping> | ||
69 | - <filter-name>CAS Single Sign Out Filter</filter-name> | ||
70 | - <url-pattern>/*</url-pattern> | ||
71 | - </filter-mapping> | ||
72 | - | ||
73 | - <listener> | ||
74 | - <listener-class>org.jasig.cas.client.session.SingleSignOutHttpSessionListener</listener-class> | ||
75 | - </listener> | ||
76 | - | ||
77 | - <filter> | ||
78 | - <filter-name>springSecurityFilterChain</filter-name> | ||
79 | - <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class> | ||
80 | - </filter> | ||
81 | - <filter-mapping> | ||
82 | - <filter-name>springSecurityFilterChain</filter-name> | ||
83 | - <url-pattern>/*</url-pattern> | ||
84 | - </filter-mapping> | ||
85 | - | ||
86 | - <!-- CORS Filter --> | ||
87 | - <filter> | ||
88 | - <filter-name>cors</filter-name> | ||
89 | - <filter-class>br.com.centralit.framework.filter.SimpleCORSFilter</filter-class> | ||
90 | - </filter> | ||
91 | - | ||
92 | - <filter-mapping> | ||
93 | - <filter-name>cors</filter-name> | ||
94 | - <url-pattern>/*</url-pattern> | ||
95 | - </filter-mapping> | ||
96 | - | ||
97 | - <servlet> | ||
98 | - <servlet-name>spring</servlet-name> | ||
99 | - <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> | ||
100 | - <init-param> | ||
101 | - <param-name>contextConfigLocation</param-name> | ||
102 | - <param-value></param-value> | ||
103 | - </init-param> | ||
104 | - </servlet> | ||
105 | - <servlet-mapping> | ||
106 | - <servlet-name>spring</servlet-name> | ||
107 | - <url-pattern>/</url-pattern> | ||
108 | - </servlet-mapping> | ||
109 | - | ||
110 | -</web-app> |
cit-alcada-web/bin/target/classes/log4j.properties
@@ -1,21 +0,0 @@ | @@ -1,21 +0,0 @@ | ||
1 | -# Root logger option | ||
2 | -log4j.rootLogger=INFO, file, stdout | ||
3 | - | ||
4 | -# Direct log messages to a log file | ||
5 | -log4j.appender.file=org.apache.log4j.RollingFileAppender | ||
6 | -log4j.appender.file.File=D:\\repositorios_git\\citsmartgrp\\cit-alcada\\cit-alcada-web\\target/log/cit-alcada-web.log | ||
7 | -log4j.appender.file.MaxFileSize=5MB | ||
8 | -log4j.appender.file.MaxBackupIndex=10 | ||
9 | -log4j.appender.file.layout=org.apache.log4j.PatternLayout | ||
10 | -log4j.appender.file.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n | ||
11 | - | ||
12 | -# Direct log messages to stdout | ||
13 | -log4j.appender.stdout=org.apache.log4j.ConsoleAppender | ||
14 | -log4j.appender.stdout.Target=System.out | ||
15 | -log4j.appender.stdout.layout=org.apache.log4j.PatternLayout | ||
16 | -log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n | ||
17 | - | ||
18 | -#Frameworks to logging | ||
19 | -log4j.logger.org.springframework=DEBUG | ||
20 | -log4j.logger.org.hibernate=INFO | ||
21 | -log4j.logger.org.hibernate.type=trace | ||
22 | \ No newline at end of file | 0 | \ No newline at end of file |
cit-alcada-web/bin/target/classes/scripts-db/vw_centroresultadoresponsavel_sqlserver.sql
@@ -1,103 +0,0 @@ | @@ -1,103 +0,0 @@ | ||
1 | - | ||
2 | -/* Nova vers�o da View, inclus�o da coluna virtual delegacao com os valores "S/N". Tratar concatena��o | ||
3 | -IF NOT EXISTS (SELECT * FROM sys.views WHERE object_id = OBJECT_ID(N'[dbo].[vw_centroresultadoresponsavel]')) | ||
4 | - EXEC sp_executesql concat(N'CREATE VIEW [dbo].[vw_centroresultadoresponsavel] | ||
5 | - AS | ||
6 | - SELECT dbo.Alcada.identificador AS alcada, dbo.CentroResultado.codigoSistemaOrigem AS centro_resultado, dbo.seguranca_usuario.username AS usuario, | ||
7 | - dbo.CentroResultadoResponsavel.dataCriacao AS data_inicio, dbo.CentroResultadoResponsavel.dataInativo AS data_inativo, | ||
8 | - dbo.NivelAutoridade.nome AS nivel_autoridade, ', N'N', N' as delegacao | ||
9 | - FROM dbo.CentroResultadoResponsavel INNER JOIN | ||
10 | - dbo.CentroResultado ON dbo.CentroResultado.id = dbo.CentroResultadoResponsavel.centroResultado_id INNER JOIN | ||
11 | - dbo.CentroResultadoResponsavelAlcada ON | ||
12 | - dbo.CentroResultadoResponsavelAlcada.centroResultadoResponsavel_id = dbo.CentroResultadoResponsavel.id INNER JOIN | ||
13 | - dbo.Alcada ON dbo.Alcada.id = dbo.CentroResultadoResponsavelAlcada.alcada_id INNER JOIN | ||
14 | - dbo.Parceiro ON dbo.Parceiro.id = dbo.CentroResultadoResponsavel.responsavel_id INNER JOIN | ||
15 | - dbo.Pessoa ON dbo.Pessoa.id = dbo.Parceiro.pessoa_id INNER JOIN | ||
16 | - dbo.seguranca_usuario ON dbo.seguranca_usuario.id = dbo.Pessoa.usuario_id INNER JOIN | ||
17 | - dbo.AlcadaNivelAutoridade ON dbo.AlcadaNivelAutoridade.alcada_id = dbo.Alcada.id INNER JOIN | ||
18 | - dbo.NivelAutoridade ON dbo.NivelAutoridade.id = dbo.AlcadaNivelAutoridade.nivelAutoridade_id | ||
19 | - WHERE dbo.NivelAutoridade.hierarquia = | ||
20 | - (SELECT MIN(t1.hierarquia) | ||
21 | - FROM dbo.NivelAutoridade t1 INNER JOIN | ||
22 | - dbo.AlcadaNivelAutoridade t2 ON t2.nivelautoridade_id = t1.id AND t2.alcada_id = Alcada.id INNER JOIN | ||
23 | - dbo.NivelAutoridadeGrupo t3 ON t3.nivelAutoridade_id = t1.id INNER JOIN | ||
24 | - dbo.GrupoUsuario t4 ON t4.usuario_id = seguranca_usuario.id AND t4.grupo_id = t3.grupo_id | ||
25 | - where t2.datainativo is null and t3.datainativo is null and t4.datainativo is null) | ||
26 | - and AlcadaNivelAutoridade.dataInativo is null | ||
27 | - UNION ALL | ||
28 | - SELECT dbo.Alcada.identificador AS alcada, dbo.CentroResultado.codigoSistemaOrigem AS centro_resultado, dbo.seguranca_usuario.username AS usuario, | ||
29 | - dbo.centroresultadodelegacao.datainiciodelegacao AS data_inicio, coalesce(centroresultadodelegacao.datarevogacao,centroresultadodelegacao.datafimdelegacao) AS data_inativo, | ||
30 | - dbo.NivelAutoridade.nome AS nivel_autoridade, ', N'S', N' as delegacao | ||
31 | - FROM dbo.centroresultadodelegacao INNER JOIN | ||
32 | - dbo.CentroResultadoResponsavelAlcada ON | ||
33 | - dbo.centroresultadodelegacao.centroResultadoResponsavelAlcada_id = CentroResultadoResponsavelAlcada.id INNER JOIN | ||
34 | - dbo.CentroResultadoResponsavel ON dbo.CentroResultadoResponsavel.id = dbo.CentroResultadoResponsavelAlcada.centroresultadoresponsavel_id INNER JOIN | ||
35 | - dbo.CentroResultado ON dbo.CentroResultado.id = dbo.CentroResultadoResponsavel.centroResultado_id INNER JOIN | ||
36 | - dbo.Alcada ON dbo.Alcada.id = dbo.CentroResultadoResponsavelAlcada.alcada_id INNER JOIN | ||
37 | - dbo.Parceiro ON dbo.Parceiro.id = dbo.centroresultadodelegacao.delegado_id INNER JOIN | ||
38 | - dbo.Pessoa ON dbo.Pessoa.id = dbo.Parceiro.pessoa_id INNER JOIN | ||
39 | - dbo.seguranca_usuario ON dbo.seguranca_usuario.id = dbo.Pessoa.usuario_id INNER JOIN | ||
40 | - dbo.AlcadaNivelAutoridade ON dbo.AlcadaNivelAutoridade.alcada_id = dbo.Alcada.id INNER JOIN | ||
41 | - dbo.NivelAutoridade ON dbo.NivelAutoridade.id = dbo.AlcadaNivelAutoridade.nivelAutoridade_id INNER JOIN | ||
42 | - dbo.Parceiro parc ON parc.id = dbo.centroresultadoresponsavel.responsavel_id INNER JOIN | ||
43 | - dbo.Pessoa pes ON pes.id = parc.pessoa_id | ||
44 | - WHERE dbo.NivelAutoridade.hierarquia = | ||
45 | - (SELECT MIN(t1.hierarquia) | ||
46 | - FROM dbo.NivelAutoridade t1 INNER JOIN | ||
47 | - dbo.AlcadaNivelAutoridade t2 ON t2.nivelautoridade_id = t1.id AND t2.alcada_id = Alcada.id INNER JOIN | ||
48 | - dbo.NivelAutoridadeGrupo t3 ON t3.nivelAutoridade_id = t1.id INNER JOIN | ||
49 | - dbo.GrupoUsuario t4 ON t4.usuario_id = pes.usuario_id AND t4.grupo_id = t3.grupo_id | ||
50 | - where t2.datainativo is null and t3.datainativo is null and t4.datainativo is null) | ||
51 | - and AlcadaNivelAutoridade.dataInativo is null') | ||
52 | -GO | ||
53 | -*/ | ||
54 | - | ||
55 | -ALTER VIEW [dbo].[vw_centroresultadoresponsavel] | ||
56 | -AS | ||
57 | -SELECT dbo.Alcada.identificador AS alcada, dbo.CentroResultado.codigoSistemaOrigem AS centro_resultado, dbo.seguranca_usuario.username AS usuario, | ||
58 | - dbo.CentroResultadoResponsavel.dataCriacao AS data_inicio, dbo.CentroResultadoResponsavel.dataInativo AS data_inativo, | ||
59 | - dbo.NivelAutoridade.nome AS nivel_autoridade, 'N' as delegacao | ||
60 | -FROM dbo.CentroResultadoResponsavel INNER JOIN | ||
61 | - dbo.CentroResultado ON dbo.CentroResultado.id = dbo.CentroResultadoResponsavel.centroResultado_id INNER JOIN | ||
62 | - dbo.CentroResultadoResponsavelAlcada ON | ||
63 | - dbo.CentroResultadoResponsavelAlcada.centroResultadoResponsavel_id = dbo.CentroResultadoResponsavel.id INNER JOIN | ||
64 | - dbo.Alcada ON dbo.Alcada.id = dbo.CentroResultadoResponsavelAlcada.alcada_id INNER JOIN | ||
65 | - dbo.Parceiro ON dbo.Parceiro.id = dbo.CentroResultadoResponsavel.responsavel_id INNER JOIN | ||
66 | - dbo.Pessoa ON dbo.Pessoa.id = dbo.Parceiro.pessoa_id INNER JOIN | ||
67 | - dbo.seguranca_usuario ON dbo.seguranca_usuario.id = dbo.Pessoa.usuario_id INNER JOIN | ||
68 | - dbo.AlcadaNivelAutoridade ON dbo.AlcadaNivelAutoridade.alcada_id = dbo.Alcada.id INNER JOIN | ||
69 | - dbo.NivelAutoridade ON dbo.NivelAutoridade.id = dbo.AlcadaNivelAutoridade.nivelAutoridade_id | ||
70 | -WHERE dbo.NivelAutoridade.hierarquia = | ||
71 | - (SELECT MIN(t1.hierarquia) | ||
72 | - FROM dbo.NivelAutoridade t1 INNER JOIN | ||
73 | - dbo.AlcadaNivelAutoridade t2 ON t2.nivelautoridade_id = t1.id AND t2.alcada_id = Alcada.id INNER JOIN | ||
74 | - dbo.NivelAutoridadeGrupo t3 ON t3.nivelAutoridade_id = t1.id INNER JOIN | ||
75 | - dbo.GrupoUsuario t4 ON t4.usuario_id = seguranca_usuario.id AND t4.grupo_id = t3.grupo_id | ||
76 | -where t2.datainativo is null and t3.datainativo is null and t4.datainativo is null) | ||
77 | -and AlcadaNivelAutoridade.dataInativo is null | ||
78 | -UNION ALL | ||
79 | -SELECT dbo.Alcada.identificador AS alcada, dbo.CentroResultado.codigoSistemaOrigem AS centro_resultado, dbo.seguranca_usuario.username AS usuario, | ||
80 | - dbo.centroresultadodelegacao.datainiciodelegacao AS data_inicio, coalesce(centroresultadodelegacao.datarevogacao,centroresultadodelegacao.datafimdelegacao) AS data_inativo, | ||
81 | - dbo.NivelAutoridade.nome AS nivel_autoridade, 'S' as delegacao | ||
82 | -FROM dbo.centroresultadodelegacao INNER JOIN | ||
83 | - dbo.CentroResultadoResponsavelAlcada ON | ||
84 | - dbo.centroresultadodelegacao.centroResultadoResponsavelAlcada_id = CentroResultadoResponsavelAlcada.id INNER JOIN | ||
85 | - dbo.CentroResultadoResponsavel ON dbo.CentroResultadoResponsavel.id = dbo.CentroResultadoResponsavelAlcada.centroresultadoresponsavel_id INNER JOIN | ||
86 | - dbo.CentroResultado ON dbo.CentroResultado.id = dbo.CentroResultadoResponsavel.centroResultado_id INNER JOIN | ||
87 | - dbo.Alcada ON dbo.Alcada.id = dbo.CentroResultadoResponsavelAlcada.alcada_id INNER JOIN | ||
88 | - dbo.Parceiro ON dbo.Parceiro.id = dbo.centroresultadodelegacao.delegado_id INNER JOIN | ||
89 | - dbo.Pessoa ON dbo.Pessoa.id = dbo.Parceiro.pessoa_id INNER JOIN | ||
90 | - dbo.seguranca_usuario ON dbo.seguranca_usuario.id = dbo.Pessoa.usuario_id INNER JOIN | ||
91 | - dbo.AlcadaNivelAutoridade ON dbo.AlcadaNivelAutoridade.alcada_id = dbo.Alcada.id INNER JOIN | ||
92 | - dbo.NivelAutoridade ON dbo.NivelAutoridade.id = dbo.AlcadaNivelAutoridade.nivelAutoridade_id INNER JOIN | ||
93 | - dbo.Parceiro parc ON parc.id = dbo.centroresultadoresponsavel.responsavel_id INNER JOIN | ||
94 | - dbo.Pessoa pes ON pes.id = parc.pessoa_id | ||
95 | -WHERE dbo.NivelAutoridade.hierarquia = | ||
96 | - (SELECT MIN(t1.hierarquia) | ||
97 | - FROM dbo.NivelAutoridade t1 INNER JOIN | ||
98 | - dbo.AlcadaNivelAutoridade t2 ON t2.nivelautoridade_id = t1.id AND t2.alcada_id = Alcada.id INNER JOIN | ||
99 | - dbo.NivelAutoridadeGrupo t3 ON t3.nivelAutoridade_id = t1.id INNER JOIN | ||
100 | - dbo.GrupoUsuario t4 ON t4.usuario_id = pes.usuario_id AND t4.grupo_id = t3.grupo_id | ||
101 | -where t2.datainativo is null and t3.datainativo is null and t4.datainativo is null) | ||
102 | -and AlcadaNivelAutoridade.dataInativo is null | ||
103 | -GO | ||
104 | \ No newline at end of file | 0 | \ No newline at end of file |
cit-alcada-web/bin/target/classes/spring/applicationContext.xml
@@ -1,36 +0,0 @@ | @@ -1,36 +0,0 @@ | ||
1 | -<beans xmlns="http://www.springframework.org/schema/beans" | ||
2 | - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
3 | - xmlns:context="http://www.springframework.org/schema/context" | ||
4 | - xmlns:util="http://www.springframework.org/schema/util" | ||
5 | - xmlns:p="http://www.springframework.org/schema/p" | ||
6 | - xsi:schemaLocation="http://www.springframework.org/schema/beans | ||
7 | - http://www.springframework.org/schema/beans/spring-beans-3.1.xsd | ||
8 | - http://www.springframework.org/schema/context | ||
9 | - http://www.springframework.org/schema/context/spring-context-3.1.xsd | ||
10 | - http://www.springframework.org/schema/util | ||
11 | - http://www.springframework.org/schema/util/spring-util-3.1.xsd"> | ||
12 | - | ||
13 | - <bean id="citPortalDataSource" class="org.springframework.jndi.JndiObjectFactoryBean"> | ||
14 | - <property name="jndiName" value="java:/env/jdbc/cit-alcada" /> | ||
15 | - </bean> | ||
16 | - | ||
17 | - <bean id="entityManagerFactory" | ||
18 | - class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean" | ||
19 | - p:packagesToScan="br.com.centralit.framework.model, br.com.centralit.api.model" p:dataSource-ref="citPortalDataSource" | ||
20 | - p:jpaPropertyMap-ref="jpaPropertyMap" p:jpaVendorAdapter-ref="jpaVendorAdapter" /> | ||
21 | - | ||
22 | - <bean id="jpaVendorAdapter" class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter" /> | ||
23 | - | ||
24 | - <util:map id="jpaPropertyMap"> | ||
25 | - <entry key="generateDdl" value="${hibernate.generate.ddl}" /> | ||
26 | - <entry key="hibernate.hbm2ddl.auto" value="${hibernate.hbm2ddl.auto}" /> | ||
27 | - <entry key="hibernate.dialect" value="${hibernate.dialect}" /> | ||
28 | - <entry key="hibernate.show.sql" value="${hibernate.show.sql}" /> | ||
29 | - <entry key="hibernate.format_sql" value="${hibernate.format.sql}" /> | ||
30 | - <entry key="hibernate.jdbc.use_streams_for_binary" value="true" /> | ||
31 | - </util:map> | ||
32 | - | ||
33 | - <import resource="webmvc-context.xml" /> | ||
34 | - <import resource="classpath*:spring/applicationContext-base.xml" /> | ||
35 | - <import resource="${authentication.method}" /> | ||
36 | -</beans> | ||
37 | \ No newline at end of file | 0 | \ No newline at end of file |
cit-alcada-web/bin/target/classes/spring/spring-security-cas.xml
@@ -1,77 +0,0 @@ | @@ -1,77 +0,0 @@ | ||
1 | -<?xml version="1.0" encoding="UTF-8"?> | ||
2 | -<beans xmlns="http://www.springframework.org/schema/beans" | ||
3 | - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
4 | - xmlns:p="http://www.springframework.org/schema/p" | ||
5 | - xmlns:security="http://www.springframework.org/schema/security" | ||
6 | - xsi:schemaLocation="http://www.springframework.org/schema/beans | ||
7 | - http://www.springframework.org/schema/beans/spring-beans.xsd | ||
8 | - http://www.springframework.org/schema/security | ||
9 | - http://www.springframework.org/schema/security/spring-security-3.2.xsd"> | ||
10 | - | ||
11 | - <security:http auto-config="true" use-expressions="true" entry-point-ref="casProcessingFilterEntryPoint" access-denied-page="/denied.jsp"> | ||
12 | - <security:intercept-url pattern="/loginCas" access="permitAll" /> | ||
13 | - <security:intercept-url pattern="/rest/solicitacaoAlcada/**" access="permitAll" /> | ||
14 | - <security:intercept-url pattern="/rest/inicializarCarga/**" access="permitAll" /> | ||
15 | - <security:intercept-url pattern="/**" access="isFullyAuthenticated()" requires-channel="https"/> | ||
16 | - <security:logout logout-success-url="/cas-logout.jsp"/> | ||
17 | - <security:custom-filter ref="casAuthenticationFilter" after="CAS_FILTER"/> | ||
18 | - | ||
19 | - <security:session-management session-fixation-protection="newSession"> | ||
20 | - <security:concurrency-control max-sessions="1"/> | ||
21 | - </security:session-management> | ||
22 | - </security:http> | ||
23 | - | ||
24 | - <security:authentication-manager alias="authenticationManager"> | ||
25 | - <security:authentication-provider ref="casAuthenticationProvider"/> | ||
26 | - </security:authentication-manager> | ||
27 | - | ||
28 | - <bean id="casAuthenticationFilter" | ||
29 | - class="org.springframework.security.cas.web.CasAuthenticationFilter"> | ||
30 | - <property name="authenticationManager" ref="authenticationManager"/> | ||
31 | - <property name="authenticationFailureHandler"> | ||
32 | - <bean class="org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler"> | ||
33 | - <property name="defaultFailureUrl" value="/authfailed.jsp"/> | ||
34 | - </bean> | ||
35 | - </property> | ||
36 | - <property name="authenticationSuccessHandler"> | ||
37 | - <bean class="org.springframework.security.web.authentication.SimpleUrlAuthenticationSuccessHandler"> | ||
38 | - <property name="defaultTargetUrl" value="/"/> | ||
39 | - </bean> | ||
40 | - </property> | ||
41 | - <property name="proxyGrantingTicketStorage" ref="proxyGrantingTicketStorage"/> | ||
42 | - <property name="proxyReceptorUrl" value="/secure/receptor"/> | ||
43 | - </bean> | ||
44 | - | ||
45 | - <bean id="casProcessingFilterEntryPoint" class="org.springframework.security.cas.web.CasAuthenticationEntryPoint"> | ||
46 | - <property name="loginUrl" value="${authentication.url}/cas/login"/> | ||
47 | - <property name="serviceProperties" ref="serviceProperties"/> | ||
48 | - </bean> | ||
49 | - | ||
50 | - <bean id="casAuthenticationProvider" | ||
51 | - class="org.springframework.security.cas.authentication.CasAuthenticationProvider" | ||
52 | - p:key="central@123" | ||
53 | - p:serviceProperties-ref="serviceProperties" | ||
54 | - p:authenticationUserDetailsService-ref="userDetailsService"> | ||
55 | - <property name="ticketValidator"> | ||
56 | - <bean class="org.jasig.cas.client.validation.Saml11TicketValidator"> | ||
57 | - <constructor-arg index="0" value="${authentication.url}/cas"/> | ||
58 | - </bean> | ||
59 | - </property> | ||
60 | - </bean> | ||
61 | - | ||
62 | - <bean id="proxyGrantingTicketStorage" class="org.jasig.cas.client.proxy.ProxyGrantingTicketStorageImpl"/> | ||
63 | - | ||
64 | - <bean id="serviceProperties" class="org.springframework.security.cas.ServiceProperties"> | ||
65 | - <property name="service" value="${authentication.url}/cit-alcada-web/j_spring_cas_security_check"/> | ||
66 | - <property name="sendRenew" value="false"/> | ||
67 | - </bean> | ||
68 | - | ||
69 | - <bean id="userDetailsService" class="br.com.centralit.api.security.GrantedAuthorityFromAssertionAttributesUserDetailsService"> | ||
70 | - <constructor-arg> | ||
71 | - <list> | ||
72 | - <value>authorities</value> | ||
73 | - </list> | ||
74 | - </constructor-arg> | ||
75 | - </bean> | ||
76 | - | ||
77 | -</beans> |
cit-alcada-web/bin/target/classes/spring/spring-security-db.xml
@@ -1,30 +0,0 @@ | @@ -1,30 +0,0 @@ | ||
1 | -<?xml version="1.0" encoding="UTF-8"?> | ||
2 | -<beans xmlns="http://www.springframework.org/schema/beans" | ||
3 | - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
4 | - xmlns:p="http://www.springframework.org/schema/p" | ||
5 | - xmlns:security="http://www.springframework.org/schema/security" | ||
6 | - xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd | ||
7 | - http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security.xsd"> | ||
8 | - | ||
9 | - <security:global-method-security secured-annotations="enabled" /> | ||
10 | - | ||
11 | - <security:http auto-config="true" use-expressions="true" access-denied-page="/login?error=403"> | ||
12 | - <security:intercept-url pattern="/rest/esi/**" access="permitAll" /> | ||
13 | - <security:intercept-url pattern="/login" access="permitAll" /> | ||
14 | - <security:intercept-url pattern="/j_spring_security_check" access="permitAll" /> | ||
15 | - <security:intercept-url pattern="/assets/**" access="permitAll" /> | ||
16 | - <security:intercept-url pattern="/**" access="hasRole('ROLE_USER')" /> | ||
17 | - | ||
18 | - <security:form-login login-page="/login" authentication-failure-url="/login?error=403" default-target-url="/index" /> | ||
19 | - | ||
20 | - <security:logout invalidate-session="true" logout-success-url="/login" logout-url="/logout" /> | ||
21 | - | ||
22 | - <security:remember-me key="CentralITSolutions" remember-me-parameter="j_remenberme" /> | ||
23 | - </security:http> | ||
24 | - | ||
25 | - <bean id="customAuthenticationProvider" class="br.com.centralit.api.security.CustomAuthenticationProvider" /> | ||
26 | - | ||
27 | - <security:authentication-manager> | ||
28 | - <security:authentication-provider ref="customAuthenticationProvider" /> | ||
29 | - </security:authentication-manager> | ||
30 | -</beans> | ||
31 | \ No newline at end of file | 0 | \ No newline at end of file |
cit-alcada-web/bin/target/classes/spring/spring-security-openam.xml
@@ -1,351 +0,0 @@ | @@ -1,351 +0,0 @@ | ||
1 | -<?xml version="1.0" encoding="UTF-8" ?> | ||
2 | -<beans xmlns="http://www.springframework.org/schema/beans" | ||
3 | - xmlns:security="http://www.springframework.org/schema/security" | ||
4 | - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
5 | - xmlns:context="http://www.springframework.org/schema/context" | ||
6 | - xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd | ||
7 | - http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.2.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd"> | ||
8 | - | ||
9 | - <!-- Enable auto-wiring --> | ||
10 | - <context:annotation-config/> | ||
11 | - | ||
12 | - <!-- Scan for auto-wiring classes in spring saml packages --> | ||
13 | - <context:component-scan base-package="org.springframework.security.saml"/> | ||
14 | - | ||
15 | - <bean id="filterSecurityInterceptor" class="org.springframework.security.web.access.intercept.FilterSecurityInterceptor"> | ||
16 | - <property name="authenticationManager" ref="authenticationManager"></property> | ||
17 | - <property name="accessDecisionManager" ref="affirmativeBased"></property> | ||
18 | - <property name="securityMetadataSource" ref="optionsFromDataBaseFilterInvocationSecurityMetadataSource"></property> | ||
19 | - <property name="validateConfigAttributes" value="true"/> | ||
20 | - </bean> | ||
21 | - | ||
22 | - <bean id="optionsFromDataBaseFilterInvocationSecurityMetadataSource" class="br.com.centralit.api.security.MyFilterSecurityMetadataSource" /> | ||
23 | - | ||
24 | - <bean id="roleVoter" class="org.springframework.security.access.vote.RoleVoter" /> | ||
25 | - | ||
26 | - <bean id="affirmativeBased" class='org.springframework.security.access.vote.AffirmativeBased'> | ||
27 | - <property name="decisionVoters"> | ||
28 | - <list> | ||
29 | - <ref bean="roleVoter"/> | ||
30 | - </list> | ||
31 | - </property> | ||
32 | - </bean> | ||
33 | - | ||
34 | - <!-- Unsecured pages --> | ||
35 | - <security:http security="none" pattern="/favicon.ico"/> | ||
36 | - <security:http security="none" pattern="/images/**"/> | ||
37 | - <security:http security="none" pattern="/css/**"/> | ||
38 | - <security:http security="none" pattern="/logout.jsp"/> | ||
39 | - <security:http security="none" pattern="/accessDeniedPage.htm"/> | ||
40 | - | ||
41 | - <security:global-method-security secured-annotations="enabled" /> | ||
42 | - | ||
43 | - <!-- Security for the administration UI --> | ||
44 | - <security:http pattern="/saml/web/**" access-denied-page="/accessDeniedPage.htm"> | ||
45 | - <security:form-login login-processing-url="/saml/web/login" login-page="/saml/web/metadata/login" default-target-url="/saml/web/metadata"/> | ||
46 | - <security:intercept-url pattern="/saml/web/metadata/login" access="IS_AUTHENTICATED_ANONYMOUSLY"/> | ||
47 | - <security:intercept-url pattern="/saml/web/**" access="ROLE_ADMIN"/> | ||
48 | - <security:custom-filter before="FIRST" ref="metadataGeneratorFilter"/> | ||
49 | - </security:http> | ||
50 | - | ||
51 | - <!-- Secured pages with SAML as entry point --> | ||
52 | - <security:http entry-point-ref="samlEntryPoint" auto-config="true" access-denied-page="/accessDeniedPage.htm"> | ||
53 | - <security:intercept-url pattern="/**" access="IS_AUTHENTICATED_FULLY"/> | ||
54 | - <security:custom-filter before="FIRST" ref="metadataGeneratorFilter"/> | ||
55 | - <security:custom-filter after="BASIC_AUTH_FILTER" ref="samlFilter"/> | ||
56 | - </security:http> | ||
57 | - | ||
58 | - <!-- Filters for processing of SAML messages --> | ||
59 | - <bean id="samlFilter" class="org.springframework.security.web.FilterChainProxy"> | ||
60 | - <security:filter-chain-map request-matcher="ant"> | ||
61 | - <security:filter-chain pattern="/saml/login/**" filters="samlEntryPoint"/> | ||
62 | - <security:filter-chain pattern="/saml/logout/**" filters="samlLogoutFilter"/> | ||
63 | - <security:filter-chain pattern="/saml/metadata/**" filters="metadataDisplayFilter"/> | ||
64 | - <security:filter-chain pattern="/saml/SSO/**" filters="samlWebSSOProcessingFilter"/> | ||
65 | - <security:filter-chain pattern="/saml/SSOHoK/**" filters="samlWebSSOHoKProcessingFilter"/> | ||
66 | - <security:filter-chain pattern="/saml/SingleLogout/**" filters="samlLogoutProcessingFilter"/> | ||
67 | - <security:filter-chain pattern="/saml/discovery/**" filters="samlIDPDiscovery"/> | ||
68 | - <security:filter-chain pattern="/html/**" filters="filterSecurityInterceptor"/> | ||
69 | - </security:filter-chain-map> | ||
70 | - </bean> | ||
71 | - | ||
72 | - <!-- Handler deciding where to redirect user after successful login --> | ||
73 | - <bean id="successRedirectHandler" class="org.springframework.security.web.authentication.SavedRequestAwareAuthenticationSuccessHandler"> | ||
74 | - <property name="defaultTargetUrl" value="/"/> | ||
75 | - </bean> | ||
76 | - <!-- | ||
77 | - Use the following for interpreting RelayState coming from unsolicited response as redirect URL: | ||
78 | - <bean id="successRedirectHandler" class="org.springframework.security.saml.SAMLRelayStateSuccessHandler"> | ||
79 | - <property name="defaultTargetUrl" value="/" /> | ||
80 | - </bean> | ||
81 | - --> | ||
82 | - | ||
83 | - <!-- Handler deciding where to redirect user after failed login --> | ||
84 | - <bean id="failureRedirectHandler" | ||
85 | - class="org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler"> | ||
86 | - <property name="useForward" value="true"/> | ||
87 | - <property name="defaultFailureUrl" value="/error.jsp"/> | ||
88 | - </bean> | ||
89 | - | ||
90 | - <!-- Handler for successful logout --> | ||
91 | - <bean id="successLogoutHandler" class="org.springframework.security.web.authentication.logout.SimpleUrlLogoutSuccessHandler"> | ||
92 | - <property name="defaultTargetUrl" value="/logout.jsp"/> | ||
93 | - </bean> | ||
94 | - | ||
95 | - <security:authentication-manager alias="authenticationManager"> | ||
96 | - <!-- Register authentication manager for SAML provider --> | ||
97 | - <security:authentication-provider ref="samlAuthenticationProvider"/> | ||
98 | - <!-- Register authentication manager for administration UI --> | ||
99 | - <security:authentication-provider> | ||
100 | - <security:user-service id="adminInterfaceService"> | ||
101 | - <security:user name="admin" password="admin" authorities="ROLE_ADMIN"/> | ||
102 | - </security:user-service> | ||
103 | - </security:authentication-provider> | ||
104 | - </security:authentication-manager> | ||
105 | - | ||
106 | - <!-- Logger for SAML messages and events --> | ||
107 | - <bean id="samlLogger" class="org.springframework.security.saml.log.SAMLDefaultLogger"/> | ||
108 | - | ||
109 | - <!-- Central storage of cryptographic keys --> | ||
110 | - <bean id="keyManager" class="org.springframework.security.saml.key.JKSKeyManager"> | ||
111 | - <constructor-arg value="classpath:security/samlKeystore.jks"/> | ||
112 | - <constructor-arg type="java.lang.String" value="nalle123"/> | ||
113 | - <constructor-arg> | ||
114 | - <map> | ||
115 | - <entry key="apollo" value="nalle123"/> | ||
116 | - </map> | ||
117 | - </constructor-arg> | ||
118 | - <constructor-arg type="java.lang.String" value="apollo"/> | ||
119 | - </bean> | ||
120 | - | ||
121 | - <!-- Entry point to initialize authentication, default values taken from properties file --> | ||
122 | - <bean id="samlEntryPoint" class="org.springframework.security.saml.SAMLEntryPoint"> | ||
123 | - <property name="defaultProfileOptions"> | ||
124 | - <bean class="org.springframework.security.saml.websso.WebSSOProfileOptions"> | ||
125 | - <property name="binding" value="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"/> | ||
126 | - <property name="includeScoping" value="true"/> | ||
127 | - </bean> | ||
128 | - </property> | ||
129 | - </bean> | ||
130 | - | ||
131 | - <!-- IDP Discovery Service --> | ||
132 | - <bean id="samlIDPDiscovery" class="org.springframework.security.saml.SAMLDiscovery"> | ||
133 | - <property name="idpSelectionPath" value="/WEB-INF/security/idpSelection.jsp"/> | ||
134 | - </bean> | ||
135 | - | ||
136 | - <!-- Filter automatically generates default SP metadata --> | ||
137 | - <bean id="metadataGeneratorFilter" class="org.springframework.security.saml.metadata.MetadataGeneratorFilter"> | ||
138 | - <constructor-arg> | ||
139 | - <bean class="org.springframework.security.saml.metadata.MetadataGenerator"> | ||
140 | - <property name="entityId" value="patrimonio.com"/> | ||
141 | - </bean> | ||
142 | - </constructor-arg> | ||
143 | - </bean> | ||
144 | - | ||
145 | - <!-- bean id="metadataGeneratorFilter" class="org.springframework.security.saml.metadata.MetadataGeneratorFilter"> | ||
146 | - <constructor-arg> | ||
147 | - <bean class="org.springframework.security.saml.metadata.MetadataGenerator"> | ||
148 | - <property name="extendedMetadata"> | ||
149 | - <bean class="org.springframework.security.saml.metadata.ExtendedMetadata"> | ||
150 | - <property name="entityId" value="teste"/> | ||
151 | - <property name="idpDiscoveryEnabled" value="true"/> | ||
152 | - </bean> | ||
153 | - </property> | ||
154 | - </bean> | ||
155 | - </constructor-arg> | ||
156 | - </bean --> | ||
157 | - | ||
158 | - <!-- The filter is waiting for connections on URL suffixed with filterSuffix and presents SP metadata there --> | ||
159 | - <bean id="metadataDisplayFilter" class="org.springframework.security.saml.metadata.MetadataDisplayFilter"/> | ||
160 | - | ||
161 | - <!-- IDP Metadata configuration - paths to metadata of IDPs in circle of trust is here --> | ||
162 | - <bean id="metadata" class="org.springframework.security.saml.metadata.CachingMetadataManager"> | ||
163 | - <constructor-arg> | ||
164 | - <list> | ||
165 | - <!-- Example of classpath metadata with Extended Metadata --> | ||
166 | - <bean class="org.springframework.security.saml.metadata.ExtendedMetadataDelegate"> | ||
167 | - <constructor-arg> | ||
168 | - <bean class="org.opensaml.saml2.metadata.provider.ResourceBackedMetadataProvider"> | ||
169 | - <constructor-arg> | ||
170 | - <bean class="java.util.Timer"/> | ||
171 | - </constructor-arg> | ||
172 | - <constructor-arg> | ||
173 | - <bean class="org.opensaml.util.resource.ClasspathResource"> | ||
174 | - <constructor-arg value="/metadata/idp.xml"/> | ||
175 | - </bean> | ||
176 | - </constructor-arg> | ||
177 | - <property name="parserPool" ref="parserPool"/> | ||
178 | - </bean> | ||
179 | - </constructor-arg> | ||
180 | - <constructor-arg> | ||
181 | - <bean class="org.springframework.security.saml.metadata.ExtendedMetadata"> | ||
182 | - </bean> | ||
183 | - </constructor-arg> | ||
184 | - </bean> | ||
185 | - <!-- Example of HTTP metadata without Extended Metadata --> | ||
186 | - <bean class="org.opensaml.saml2.metadata.provider.HTTPMetadataProvider"> | ||
187 | - <!-- URL containing the metadata --> | ||
188 | - <constructor-arg> | ||
189 | - <value type="java.lang.String">http://iam.cit.local:8080/openam/saml2/jsp/exportmetadata.jsp?realm=grp</value> | ||
190 | - </constructor-arg> | ||
191 | - <!-- Timeout for metadata loading in ms --> | ||
192 | - <constructor-arg> | ||
193 | - <value type="int">15000</value> | ||
194 | - </constructor-arg> | ||
195 | - <property name="parserPool" ref="parserPool"/> | ||
196 | - </bean> | ||
197 | - <!-- Example of file system metadata without Extended Metadata --> | ||
198 | - <!-- | ||
199 | - <bean class="org.opensaml.saml2.metadata.provider.FilesystemMetadataProvider"> | ||
200 | - <constructor-arg> | ||
201 | - <value type="java.io.File">/usr/local/metadata/idp.xml</value> | ||
202 | - </constructor-arg> | ||
203 | - <property name="parserPool" ref="parserPool"/> | ||
204 | - </bean> | ||
205 | - --> | ||
206 | - </list> | ||
207 | - </constructor-arg> | ||
208 | - <!-- OPTIONAL used when one of the metadata files contains information about this service provider --> | ||
209 | - <!-- <property name="hostedSPName" value=""/> --> | ||
210 | - <!-- OPTIONAL property: can tell the system which IDP should be used for authenticating user by default. --> | ||
211 | - <!-- <property name="defaultIDP" value="http://localhost:8080/opensso"/> --> | ||
212 | - </bean> | ||
213 | - | ||
214 | - <!-- SAML Authentication Provider responsible for validating of received SAML messages --> | ||
215 | - <bean id="samlAuthenticationProvider" class="org.springframework.security.saml.SAMLAuthenticationProvider"> | ||
216 | - <!-- OPTIONAL property: can be used to store/load user data after login --> | ||
217 | - <!-- | ||
218 | - <property name="userDetails" ref="bean" /> | ||
219 | - --> | ||
220 | - <property name="userDetails" ref="samlUserDetailsServiceBean" /> | ||
221 | - </bean> | ||
222 | - | ||
223 | - <bean id="samlUserDetailsServiceBean" class="br.com.centralit.api.security.SAMLUserDetailsServiceImpl" /> | ||
224 | - | ||
225 | - <!-- Provider of default SAML Context --> | ||
226 | - <bean id="contextProvider" class="org.springframework.security.saml.context.SAMLContextProviderImpl"/> | ||
227 | - | ||
228 | - <!-- Processing filter for WebSSO profile messages --> | ||
229 | - <bean id="samlWebSSOProcessingFilter" class="org.springframework.security.saml.SAMLProcessingFilter"> | ||
230 | - <property name="authenticationManager" ref="authenticationManager"/> | ||
231 | - <property name="authenticationSuccessHandler" ref="successRedirectHandler"/> | ||
232 | - <property name="authenticationFailureHandler" ref="failureRedirectHandler"/> | ||
233 | - </bean> | ||
234 | - | ||
235 | - <!-- Processing filter for WebSSO Holder-of-Key profile --> | ||
236 | - <bean id="samlWebSSOHoKProcessingFilter" class="org.springframework.security.saml.SAMLWebSSOHoKProcessingFilter"> | ||
237 | - <property name="authenticationManager" ref="authenticationManager"/> | ||
238 | - <property name="authenticationSuccessHandler" ref="successRedirectHandler"/> | ||
239 | - <property name="authenticationFailureHandler" ref="failureRedirectHandler"/> | ||
240 | - </bean> | ||
241 | - | ||
242 | - <!-- Logout handler terminating local session --> | ||
243 | - <bean id="logoutHandler" | ||
244 | - class="org.springframework.security.web.authentication.logout.SecurityContextLogoutHandler"> | ||
245 | - <property name="invalidateHttpSession" value="false"/> | ||
246 | - </bean> | ||
247 | - | ||
248 | - <!-- Override default logout processing filter with the one processing SAML messages --> | ||
249 | - <bean id="samlLogoutFilter" class="org.springframework.security.saml.SAMLLogoutFilter"> | ||
250 | - <constructor-arg index="0" ref="successLogoutHandler"/> | ||
251 | - <constructor-arg index="1" ref="logoutHandler"/> | ||
252 | - <constructor-arg index="2" ref="logoutHandler"/> | ||
253 | - </bean> | ||
254 | - | ||
255 | - <!-- Filter processing incoming logout messages --> | ||
256 | - <!-- First argument determines URL user will be redirected to after successful global logout --> | ||
257 | - <bean id="samlLogoutProcessingFilter" class="org.springframework.security.saml.SAMLLogoutProcessingFilter"> | ||
258 | - <constructor-arg index="0" ref="successLogoutHandler"/> | ||
259 | - <constructor-arg index="1" ref="logoutHandler"/> | ||
260 | - </bean> | ||
261 | - | ||
262 | - <!-- Class loading incoming SAML messages from httpRequest stream --> | ||
263 | - <bean id="processor" class="org.springframework.security.saml.processor.SAMLProcessorImpl"> | ||
264 | - <constructor-arg> | ||
265 | - <list> | ||
266 | - <ref bean="redirectBinding"/> | ||
267 | - <ref bean="postBinding"/> | ||
268 | - <ref bean="artifactBinding"/> | ||
269 | - <ref bean="soapBinding"/> | ||
270 | - <ref bean="paosBinding"/> | ||
271 | - </list> | ||
272 | - </constructor-arg> | ||
273 | - </bean> | ||
274 | - | ||
275 | - <!-- SAML 2.0 WebSSO Assertion Consumer --> | ||
276 | - <bean id="webSSOprofileConsumer" class="org.springframework.security.saml.websso.WebSSOProfileConsumerImpl"> | ||
277 | - <property name="responseSkew" value="500"></property> | ||
278 | - </bean> | ||
279 | - | ||
280 | - <!-- SAML 2.0 Holder-of-Key WebSSO Assertion Consumer --> | ||
281 | - <bean id="hokWebSSOprofileConsumer" class="org.springframework.security.saml.websso.WebSSOProfileConsumerHoKImpl"/> | ||
282 | - | ||
283 | - <!-- SAML 2.0 Web SSO profile --> | ||
284 | - <bean id="webSSOprofile" class="org.springframework.security.saml.websso.WebSSOProfileImpl"/> | ||
285 | - | ||
286 | - <!-- SAML 2.0 Holder-of-Key Web SSO profile --> | ||
287 | - <bean id="hokWebSSOProfile" class="org.springframework.security.saml.websso.WebSSOProfileConsumerHoKImpl"/> | ||
288 | - | ||
289 | - <!-- SAML 2.0 ECP profile --> | ||
290 | - <bean id="ecpprofile" class="org.springframework.security.saml.websso.WebSSOProfileECPImpl"/> | ||
291 | - | ||
292 | - <!-- SAML 2.0 Logout Profile --> | ||
293 | - <bean id="logoutprofile" class="org.springframework.security.saml.websso.SingleLogoutProfileImpl"/> | ||
294 | - | ||
295 | - <!-- Bindings, encoders and decoders used for creating and parsing messages --> | ||
296 | - <bean id="postBinding" class="org.springframework.security.saml.processor.HTTPPostBinding"> | ||
297 | - <constructor-arg ref="parserPool"/> | ||
298 | - <constructor-arg ref="velocityEngine"/> | ||
299 | - </bean> | ||
300 | - | ||
301 | - <bean id="redirectBinding" class="org.springframework.security.saml.processor.HTTPRedirectDeflateBinding"> | ||
302 | - <constructor-arg ref="parserPool"/> | ||
303 | - </bean> | ||
304 | - | ||
305 | - <bean id="artifactBinding" class="org.springframework.security.saml.processor.HTTPArtifactBinding"> | ||
306 | - <constructor-arg ref="parserPool"/> | ||
307 | - <constructor-arg ref="velocityEngine"/> | ||
308 | - <constructor-arg> | ||
309 | - <bean class="org.springframework.security.saml.websso.ArtifactResolutionProfileImpl"> | ||
310 | - <constructor-arg> | ||
311 | - <bean class="org.apache.commons.httpclient.HttpClient"> | ||
312 | - <constructor-arg> | ||
313 | - <bean class="org.apache.commons.httpclient.MultiThreadedHttpConnectionManager"/> | ||
314 | - </constructor-arg> | ||
315 | - </bean> | ||
316 | - </constructor-arg> | ||
317 | - <property name="processor"> | ||
318 | - <bean class="org.springframework.security.saml.processor.SAMLProcessorImpl"> | ||
319 | - <constructor-arg ref="soapBinding"/> | ||
320 | - </bean> | ||
321 | - </property> | ||
322 | - </bean> | ||
323 | - </constructor-arg> | ||
324 | - </bean> | ||
325 | - | ||
326 | - <bean id="soapBinding" class="org.springframework.security.saml.processor.HTTPSOAP11Binding"> | ||
327 | - <constructor-arg ref="parserPool"/> | ||
328 | - </bean> | ||
329 | - | ||
330 | - <bean id="paosBinding" class="org.springframework.security.saml.processor.HTTPPAOS11Binding"> | ||
331 | - <constructor-arg ref="parserPool"/> | ||
332 | - </bean> | ||
333 | - | ||
334 | - <!-- Initialization of OpenSAML library--> | ||
335 | - <bean class="org.springframework.security.saml.SAMLBootstrap"/> | ||
336 | - | ||
337 | - <!-- Initialization of the velocity engine --> | ||
338 | - <bean id="velocityEngine" class="org.springframework.security.saml.util.VelocityFactory" factory-method="getEngine"/> | ||
339 | - | ||
340 | - <!-- XML parser pool needed for OpenSAML parsing --> | ||
341 | - <bean id="parserPool" class="org.opensaml.xml.parse.StaticBasicParserPool" init-method="initialize"> | ||
342 | - <property name="builderFeatures"> | ||
343 | - <map> | ||
344 | - <entry key="http://apache.org/xml/features/dom/defer-node-expansion" value="false"/> | ||
345 | - </map> | ||
346 | - </property> | ||
347 | - </bean> | ||
348 | - | ||
349 | - <bean id="parserPoolHolder" class="org.springframework.security.saml.parser.ParserPoolHolder"/> | ||
350 | - | ||
351 | -</beans> |
cit-alcada-web/bin/target/classes/spring/webmvc-context.xml
@@ -1,51 +0,0 @@ | @@ -1,51 +0,0 @@ | ||
1 | -<?xml version="1.0" encoding="UTF-8"?> | ||
2 | -<beans xmlns="http://www.springframework.org/schema/beans" | ||
3 | - xmlns:p="http://www.springframework.org/schema/p" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
4 | - xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:context="http://www.springframework.org/schema/context" | ||
5 | - xsi:schemaLocation=" | ||
6 | - http://www.springframework.org/schema/beans | ||
7 | - http://www.springframework.org/schema/beans/spring-beans-3.1.xsd | ||
8 | - http://www.springframework.org/schema/context | ||
9 | - http://www.springframework.org/schema/context/spring-context-3.1.xsd | ||
10 | - http://www.springframework.org/schema/mvc | ||
11 | - http://www.springframework.org/schema/mvc/spring-mvc-3.1.xsd"> | ||
12 | - | ||
13 | - <mvc:annotation-driven> | ||
14 | - <mvc:message-converters register-defaults="true"> | ||
15 | - <bean id="jacksonMessageConverter" class="br.com.centralit.framework.json.CustomMappingJackson2"/> | ||
16 | - </mvc:message-converters> | ||
17 | - </mvc:annotation-driven> | ||
18 | - | ||
19 | - <mvc:default-servlet-handler /> | ||
20 | - | ||
21 | - <mvc:resources mapping="/resources/**" location="/resources/" /> | ||
22 | - <mvc:resources mapping="/assets/**" location="/assets/" /> | ||
23 | - | ||
24 | - <!-- i18n --> | ||
25 | - <bean id="messageSource" class="org.springframework.context.support.ReloadableResourceBundleMessageSource"> | ||
26 | - <property name="basename" value="WEB-INF/i18n" /> | ||
27 | - <property name="defaultEncoding" value="UTF-8" /> | ||
28 | - <property name="useCodeAsDefaultMessage" value="true" /> | ||
29 | - </bean> | ||
30 | - | ||
31 | - <bean id="localeResolver" class="org.springframework.web.servlet.i18n.FixedLocaleResolver"> | ||
32 | - <property name="defaultLocale" value="pt_BR" /> | ||
33 | - </bean> | ||
34 | - | ||
35 | - <!-- View Handler --> | ||
36 | - <bean id="velocityConfig" class="org.springframework.web.servlet.view.velocity.VelocityConfigurer"> | ||
37 | - <property name="resourceLoaderPath" value="/html/" /> | ||
38 | - </bean> | ||
39 | - | ||
40 | - <bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver"> | ||
41 | - <property name="viewClass" value="org.springframework.web.servlet.view.JstlView" /> | ||
42 | - <property name="prefix" value="/html/" /> | ||
43 | - <property name="suffix" value=".jsp" /> | ||
44 | - </bean> | ||
45 | - | ||
46 | - <bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver"> | ||
47 | - <!-- setting maximum upload size --> | ||
48 | - <property name="maxUploadSize" value="52428800" /> | ||
49 | - | ||
50 | - </bean> | ||
51 | -</beans> |
cit-alcada-web/bin/target/m2e-wtp/web-resources/META-INF/MANIFEST.MF
cit-alcada-web/bin/target/m2e-wtp/web-resources/META-INF/maven/br.com.centralit/cit-alcada-web/pom.properties
@@ -1,7 +0,0 @@ | @@ -1,7 +0,0 @@ | ||
1 | -#Generated by Maven Integration for Eclipse | ||
2 | -#Thu Mar 17 13:11:50 BRT 2016 | ||
3 | -version=1.8.0-SNAPSHOT | ||
4 | -groupId=br.com.centralit | ||
5 | -m2e.projectName=cit-alcada-web | ||
6 | -m2e.projectLocation=D\:\\repositorios_git\\citsmartgrp\\cit-alcada\\cit-alcada-web | ||
7 | -artifactId=cit-alcada-web |
cit-alcada-web/bin/target/m2e-wtp/web-resources/META-INF/maven/br.com.centralit/cit-alcada-web/pom.xml
@@ -1,49 +0,0 @@ | @@ -1,49 +0,0 @@ | ||
1 | -<?xml version="1.0" encoding="UTF-8"?> | ||
2 | -<!-- ******************************************************************************************************************** --> | ||
3 | -<!-- * LICENCA*GPLv2 * --> | ||
4 | -<!-- * Copyright [2011,2012,2013,2014,2015] da CentralIT Tecnologia da Informação Ltda (www.centralit.com.br) * --> | ||
5 | -<!-- * * --> | ||
6 | -<!-- * Este arquivo é parte do programa/software: Citsmart (www.citsmart.com.br) * --> | ||
7 | -<!-- * * --> | ||
8 | -<!-- * O Citsmart é um software livre; você pode redistribui-lo e/ou modificá-lo dentro dos termos da Licença * --> | ||
9 | -<!-- * Pública Geral GNU como publicada pela Fundação do Software Livre (FSF); na versão 2 da Licença. * --> | ||
10 | -<!-- * * --> | ||
11 | -<!-- * Este programa/software é distribuído na esperança que possa ser útil, mas SEM NENHUMA GARANTIA; sem uma * --> | ||
12 | -<!-- * garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral * --> | ||
13 | -<!-- * GNU/GPL em português para maiores detalhes. * --> | ||
14 | -<!-- * * --> | ||
15 | -<!-- * Você deve ter recebido uma cópia da Licença Pública Geral GNU, sob o título 'LICENCA.txt', junto com este * --> | ||
16 | -<!-- * programa/software, se não, acesse o Portal do Software Público Brasileiro no endereço www.softwarepublico.gov.br * --> | ||
17 | -<!-- * ou escreva para a Fundação do Software Livre (FSF) Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301,USA * --> | ||
18 | -<!-- ******************************************************************************************************************** --> | ||
19 | -<project | ||
20 | - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" | ||
21 | - xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | ||
22 | - <modelVersion>4.0.0</modelVersion> | ||
23 | - | ||
24 | - <parent> | ||
25 | - <groupId>br.com.centralit</groupId> | ||
26 | - <artifactId>cit-alcada</artifactId> | ||
27 | - <version>1.8.0-SNAPSHOT</version> | ||
28 | - </parent> | ||
29 | - | ||
30 | - <artifactId>cit-alcada-web</artifactId> | ||
31 | - <packaging>war</packaging> | ||
32 | - <name>cit-alcada-web</name> | ||
33 | - | ||
34 | - <properties> | ||
35 | - <findbugs.config.path>${project.parent.parent.parent.basedir}/filterfile.xml</findbugs.config.path> | ||
36 | - <license.config.path>${project.parent.parent.basedir}/src/licensing</license.config.path> | ||
37 | - <maven-antrun-plugin.phase>package</maven-antrun-plugin.phase> | ||
38 | - <minify-maven-plugin.phase>prepare-package</minify-maven-plugin.phase> | ||
39 | - </properties> | ||
40 | - | ||
41 | - <dependencies> | ||
42 | - <dependency> | ||
43 | - <groupId>br.com.centralit</groupId> | ||
44 | - <artifactId>cit-alcada-api</artifactId> | ||
45 | - <version>${project.version}</version> | ||
46 | - </dependency> | ||
47 | - </dependencies> | ||
48 | - | ||
49 | -</project> |
cit-alcada-web/bin/target/test-classes/entitiesJson/Alcada.json
cit-alcada-web/bin/target/test-classes/entitiesJson/CentroResultado.json
cit-alcada-web/bin/target/test-classes/entitiesJson/CentroResultadoAlcadaResponsavel.json
cit-alcada-web/bin/target/test-classes/entitiesJson/CentroResultadoDelegacao.json
cit-alcada-web/bin/target/test-classes/entitiesJson/LimiteAprovacao.json