Commit 2e69978a35b7a777e6d21ca300de991927556dc3
1 parent
02f0d1b7
Exists in
master
removendo arquivos inuteis
Showing
239 changed files
with
0 additions
and
7010 deletions
Show diff stats
cit-adm-materiais-api/.classpath
... | ... | @@ -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-adm-materiais-api/.project
... | ... | @@ -1,36 +0,0 @@ |
1 | -<?xml version="1.0" encoding="UTF-8"?> | |
2 | -<projectDescription> | |
3 | - <name>cit-adm-materiais-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-adm-materiais-api/.settings/org.eclipse.core.resources.prefs
cit-adm-materiais-api/.settings/org.eclipse.jdt.core.prefs
... | ... | @@ -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-adm-materiais-api/.settings/org.eclipse.wst.common.component
... | ... | @@ -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-adm-materiais-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-adm-materiais-api/.settings/org.eclipse.wst.common.project.facet.core.xml
cit-adm-materiais-api/.settings/org.eclipse.wst.validation.prefs
cit-adm-materiais-api/bin/.project
... | ... | @@ -1,36 +0,0 @@ |
1 | -<?xml version="1.0" encoding="UTF-8"?> | |
2 | -<projectDescription> | |
3 | - <name>cit-adm-materiais-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-adm-materiais-api/bin/.settings/org.eclipse.core.resources.prefs
cit-adm-materiais-api/bin/.settings/org.eclipse.jdt.core.prefs
cit-adm-materiais-api/bin/pom.xml
... | ... | @@ -1,45 +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 xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
20 | - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
21 | - <modelVersion>4.0.0</modelVersion> | |
22 | - | |
23 | - <parent> | |
24 | - <groupId>br.com.centralit</groupId> | |
25 | - <artifactId>cit-adm-materiais</artifactId> | |
26 | - <version>1.8.0-SNAPSHOT</version> | |
27 | - </parent> | |
28 | - | |
29 | - <artifactId>cit-adm-materiais-api</artifactId> | |
30 | - <name>cit-adm-materiais-api</name> | |
31 | - | |
32 | - <properties> | |
33 | - <findbugs.config.path>${project.parent.parent.parent.basedir}/filterfile.xml</findbugs.config.path> | |
34 | - <license.config.path>${project.parent.parent.basedir}/src/licensing</license.config.path> | |
35 | - <maven-antrun-plugin.phase>package</maven-antrun-plugin.phase> | |
36 | - </properties> | |
37 | - | |
38 | - <dependencies> | |
39 | - <dependency> | |
40 | - <groupId>br.com.centralit</groupId> | |
41 | - <artifactId>cit-tabelas-corp-api</artifactId> | |
42 | - <version>${project.version}</version> | |
43 | - </dependency> | |
44 | - </dependencies> | |
45 | -</project> |
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/dao/ClassificacaoMaterialDao.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/dao/ConfiguracaoContaContabilExtraviadoDao.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/dao/ConfiguracaoDao.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/dao/ConfiguracaoExtraviadoDao.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/dao/ContaContabilConfiguracaoReferenciaDao.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/dao/ContaContabilDao.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/dao/ContaContabilMovimentoDao.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/dao/ContaContabilSaldoDao.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/dao/MaterialCaracteristicaDao.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/dao/MaterialConsumoDao.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/dao/MaterialConsumoTipoUnidadeMedidaDao.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/dao/MaterialConsumoTipoUnidadeMedidaEntradaDao.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/dao/MaterialDao.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/dao/MaterialImagemDao.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/dao/MaterialPermanenteConsumoDao.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/dao/MaterialPermanenteDao.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/dao/TransferenciaContaContabilDao.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/dao/UnidadeMedidaDao.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/dao/impl/ClassificacaoMaterialDaoHibernate.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/dao/impl/ConfiguracaoContaContabilExtraviadoDaoHibernate.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/dao/impl/ConfiguracaoDaoHibernate.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/dao/impl/ContaContabilConfiguracaoReferenciaDaoHibernate.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/dao/impl/ContaContabilDaoHibernate.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/dao/impl/ContaContabilMovimentoDaoHibernate.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/dao/impl/ContaContabilSaldoDaoHibernate.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/dao/impl/MaterialCaracteristicaDaoHibernate.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/dao/impl/MaterialConsumoDaoHibernate.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/dao/impl/MaterialConsumoTipoUnidadeMedidaDaoHibernate.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/dao/impl/MaterialConsumoTipoUnidadeMedidaEntradaDaoHibernate.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/dao/impl/MaterialDaoHibernate.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/dao/impl/MaterialImagemDaoHibernate.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/dao/impl/MaterialPermanenteConsumoDaoHibernate.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/dao/impl/MaterialPermanenteDaoHibernate.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/dao/impl/TransferenciaContaContabilDaoHibernate.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/dao/impl/UnidadeMedidaDaoHibernate.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/framework/json/ViewsAdmMateriais$AtendimentoRequisicaoConsumoItemView.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/framework/json/ViewsAdmMateriais$BaixaAlmoxarifadoEditView.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/framework/json/ViewsAdmMateriais$BaixaAlmoxarifadoListView.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/framework/json/ViewsAdmMateriais$CatalogoMaterialEditView.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/framework/json/ViewsAdmMateriais$CatalogoMaterialItemEditView.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/framework/json/ViewsAdmMateriais$CatalogoMaterialItemListView.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/framework/json/ViewsAdmMateriais$CatalogoMaterialListView.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/framework/json/ViewsAdmMateriais$ConfiguracaoRessuprimentoEditView.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/framework/json/ViewsAdmMateriais$ConfiguracaoRessuprimentoListView.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/framework/json/ViewsAdmMateriais$DevolucaoEditView.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/framework/json/ViewsAdmMateriais$EntradaAlmoxarifadoEditView.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/framework/json/ViewsAdmMateriais$EntradaAlmoxarifadoListView.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/framework/json/ViewsAdmMateriais$EstruturaTransferenciaView.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/framework/json/ViewsAdmMateriais$LocalEstoqueAutoCompleteView.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/framework/json/ViewsAdmMateriais$MaterialConsumoAutoCompleteRequisicao.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/framework/json/ViewsAdmMateriais$MaterialConsumoAutoCompleteView.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/framework/json/ViewsAdmMateriais$MaterialConsumoBaixaAutoCompleteView.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/framework/json/ViewsAdmMateriais$MaterialTransferenciaView.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/framework/json/ViewsAdmMateriais$RequisicaoConsumo.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/framework/json/ViewsAdmMateriais$RequisicaoConsumoEditView.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/framework/json/ViewsAdmMateriais$RequisicaoConsumoListView.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/framework/json/ViewsAdmMateriais$TransferenciaContaContabilEditView.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/framework/json/ViewsAdmMateriais$TransferenciaContaContabilListView.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/framework/json/ViewsAdmMateriais$UnidadeMedidaEditView.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/framework/json/ViewsAdmMateriais$UnidadeMedidaListView.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/framework/json/ViewsAdmMateriais.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/model/Baixa.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/model/BaixaDocumento.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/model/BaixaObservacao.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/model/ContaContabil.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/model/ContaContabilConfiguracaoReferencia.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/model/ContaContabilMovimento.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/model/ContaContabilSaldo.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/model/DominioMaterial.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/model/Entrada.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/model/EntradaDocumento.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/model/EntradaObservacao.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/model/Material.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/model/MaterialCaracteristica.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/model/MaterialConsumo.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/model/MaterialConsumoTipoUnidadeMedidaEntrada.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/model/MaterialImagem.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/model/MaterialPermanente.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/model/MaterialPermanenteConsumo.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/model/TransferenciaContaContabil.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/model/UnidadeMedida.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/service/ClassificacaoMaterialService.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/service/ContaContabilMovimentoService.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/service/ContaContabilSaldoService.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/service/ContaContabilService.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/service/MaterialCaracteristicaService.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/service/MaterialConsumoService.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/service/MaterialConsumoTipoUnidadeMedidaEntradaService.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/service/MaterialImagemService.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/service/MaterialPermanenteConsumoService.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/service/MaterialPermanenteService.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/service/MaterialService.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/service/TransferenciaContaContabilService.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/service/UnidadeMedidaService.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/service/impl/ClassificacaoMaterialServiceImpl.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/service/impl/ContaContabilMovimentoServiceImpl.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/service/impl/ContaContabilSaldoServiceImpl.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/service/impl/ContaContabilServiceImpl.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/service/impl/InicializarAdmMateriaisServiceImpl.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/service/impl/MaterialCaracteristicaServiceImpl.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/service/impl/MaterialConsumoServiceImpl.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/service/impl/MaterialConsumoTipoUnidadeMedidaEntradaServiceImpl.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/service/impl/MaterialImagemServiceImpl.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/service/impl/MaterialPermanenteConsumoServiceImpl.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/service/impl/MaterialPermanenteServiceImpl.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/service/impl/MaterialServiceImpl.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/service/impl/TransferenciaContaContabilServiceImpl.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/service/impl/UnidadeMedidaServiceImpl.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/service/validation/ClassificacaoMaterialValidator.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/service/validation/ContaContabilValidator.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/service/validation/MaterialConsumoValidator.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/service/validation/MaterialPermanenteValidator.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/service/validation/MaterialValidator.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/service/validation/TransferenciaContaContabilValidator.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/service/validation/UnidadeMedidaValidator.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/viewHelper/AtendimentoVH.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/viewHelper/ConfiguracaolVH.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/java/br/com/centralit/api/viewHelper/RequisicaoVH.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/resources/.gitignore
... | ... | @@ -1 +0,0 @@ |
1 | -/*.tag |
cit-adm-materiais-api/bin/src/main/resources/scripts-bd/atualizacao.sql
... | ... | @@ -1,502 +0,0 @@ |
1 | -INSERT INTO pais (datacriacao,dataedicao,datainativo,version,codigo,nome,sigla,autor_id,editor_id,inativador_id)VALUES(LOCALTIMESTAMP,LOCALTIMESTAMP,NULL,0,'55','Brasil','BR',NULL,NULL,NULL); | |
2 | -INSERT INTO regiao (datacriacao,dataedicao,datainativo,version,codigo,nome,autor_id,editor_id,inativador_id,pais_id)VALUES(LOCALTIMESTAMP,LOCALTIMESTAMP,NULL,0,'01','Centro-Oeste',NULL,NULL,NULL,1); | |
3 | -INSERT INTO regiao (datacriacao,dataedicao,datainativo,version,codigo,nome,autor_id,editor_id,inativador_id,pais_id)VALUES(LOCALTIMESTAMP,LOCALTIMESTAMP,NULL,0,'02','Sul',NULL,NULL,NULL,1); | |
4 | -INSERT INTO estado (datacriacao,dataedicao,datainativo,version,codigo,nome,sigla,autor_id,editor_id,inativador_id,regiao_id)VALUES(LOCALTIMESTAMP,LOCALTIMESTAMP,NULL,0,'0','Goiás','GO',NULL,NULL,NULL,1); | |
5 | -INSERT INTO estado (datacriacao,dataedicao,datainativo,version,codigo,nome,sigla,autor_id,editor_id,inativador_id,regiao_id)VALUES(LOCALTIMESTAMP,LOCALTIMESTAMP,NULL,0,'1','Rio Grande do Sul','RS',NULL,NULL,NULL,2); | |
6 | -INSERT INTO cidade (datacriacao,dataedicao,datainativo,version,codigo,codigoibge,nome,autor_id,editor_id,inativador_id,estado_id)VALUES(LOCALTIMESTAMP,LOCALTIMESTAMP,NULL,0,'0','12','Goiania',NULL,NULL,NULL,1); | |
7 | -INSERT INTO cidade (datacriacao,dataedicao,datainativo,version,codigo,codigoibge,nome,autor_id,editor_id,inativador_id,estado_id)VALUES(LOCALTIMESTAMP,LOCALTIMESTAMP,NULL,0,'1','13','Inhumas',NULL,NULL,NULL,1); | |
8 | -INSERT INTO cidade (datacriacao,dataedicao,datainativo,version,codigo,codigoibge,nome,autor_id,editor_id,inativador_id,estado_id)VALUES(LOCALTIMESTAMP,LOCALTIMESTAMP,NULL,0,'0','12','Rio Grande',NULL,NULL,NULL,2); | |
9 | -INSERT INTO bairro (datacriacao,dataedicao,datainativo,version,codigo,nome,autor_id,editor_id,inativador_id,cidade_id)VALUES(LOCALTIMESTAMP,LOCALTIMESTAMP,NULL,0,'0','Bairro 1',NULL,NULL,NULL,1); | |
10 | -INSERT INTO bairro (datacriacao,dataedicao,datainativo,version,codigo,nome,autor_id,editor_id,inativador_id,cidade_id)VALUES(LOCALTIMESTAMP,LOCALTIMESTAMP,NULL,0,'1','Bairro 2',NULL,NULL,NULL,2); | |
11 | - | |
12 | -INSERT INTO estruturaorgao(id, datacriacao, dataedicao, version, autor_id, isOrgao, nome, sigla, dataReferenciaVigente) | |
13 | - VALUES (2, TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), 1, 1, true, 'Órgão Teste 2', 'Órgão 2', '2015-01-01 09:26:25'); | |
14 | -INSERT INTO estruturaorgao(id, datacriacao, dataedicao, version, autor_id, isOrgao, nome, sigla) | |
15 | - VALUES (3, TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), 1, 1, false, 'Estrutura Organizacional Teste 1.1 Almoxarifado', 'EOT1.1'); | |
16 | -INSERT INTO estruturaorgao(id, datacriacao, dataedicao, version, autor_id, isOrgao, nome, sigla) | |
17 | - VALUES (4, TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), 1, 1, false, 'Estrutura Organizacional Teste 1.2', 'EOT1.2'); | |
18 | -INSERT INTO estruturaorgao(id, datacriacao, dataedicao, version, autor_id, isOrgao, nome, sigla) | |
19 | - VALUES (5, TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), 1, 1, false, 'Estrutura Organizacional Teste 2.1', 'EOT2.1'); | |
20 | - | |
21 | -INSERT INTO orgaoitem(id, datacriacao, dataedicao, version, orgao_id, usuario_id) VALUES (1, TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), 1, 1, 1); | |
22 | -INSERT INTO orgaoitem(id, datacriacao, dataedicao, version, orgao_id, usuario_id) VALUES (2, TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), 1, 2, 1); | |
23 | - | |
24 | --- ENDERECO | |
25 | -INSERT INTO endereco(id, datacriacao, dataedicao, datainativo, version, cep, codigo, complemento, logradouro, nome, numero, bairro_id, cidade_id, dominiotipoendereco_id, pessoa_id, latitude, longitude) | |
26 | - VALUES (1, TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 10:26:27','YYYY-MM-DD HH24:MI:SS'), NULL, 0, '74043000', 'COD', 'COMPLEMENTO TESTE', 'LOG. TESTE', 'NOME TESTE', '0000', 1, 1, 7, NULL, 12, 14); | |
27 | - | |
28 | --- MAPA ORGANIZACIONAL | |
29 | -INSERT INTO mapaorganizacional(id, datacriacao, dataedicao, version, datainicio, nome, orgao_id) | |
30 | - VALUES (1, TO_DATE('2015-01-01 10:26:27','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 10:26:27','YYYY-MM-DD HH24:MI:SS'), 0, TO_DATE('2014-12-23','YYYY-MM-DD'), 'Mapa Organizacional 1', 1); | |
31 | - | |
32 | --- CONFIGURAÇÃO ESTRUTURA ORGANIZACIONAL ORGAO 1 | |
33 | -INSERT INTO configuracao(id, datacriacao, dataedicao, version, dominioStatusBemExtraviado_id) | |
34 | - VALUES (1, TO_DATE('2015-01-01 10:26:27','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 10:26:27','YYYY-MM-DD HH24:MI:SS'), 0, 63); | |
35 | --- CONFIGURAÇÃO ESTRUTURA ORGANIZACIONAL ORGAO 2 | |
36 | -INSERT INTO configuracao(id, datacriacao, dataedicao, version, dominioStatusBemExtraviado_id) | |
37 | - VALUES (2, TO_DATE('2015-01-01 10:26:27','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 10:26:27','YYYY-MM-DD HH24:MI:SS'), 0, 63); | |
38 | - | |
39 | --- LOCALIZACAO | |
40 | -INSERT INTO localizacao(id, datacriacao, dataedicao, version, nome, autor_id, editor_id, endereco_id, codigo, orgao_id) | |
41 | - VALUES (1, '2014-11-20', '2014-11-20', 1, 'Sala 101', 1, 1, 1, 'LOC0001', 1); | |
42 | - | |
43 | --- ESTRUTURA ORGANIZACIONAL - ORGAO | |
44 | -INSERT INTO estruturaorganizacional(id, classificacao, datainicio, possuibempatrimonial, dominiotipoestruturaorganizacional_id, localizacao_id, mapaorganizacional_id, codigo, almoxarifado, configuracao_id) | |
45 | - VALUES (1, 'classificação 1', '2015-01-01 09:26:25', false, 43, 1, 1, 456, false, 1); | |
46 | -INSERT INTO estruturaorganizacional(id, classificacao, datainicio,possuibempatrimonial, dominiotipoestruturaorganizacional_id, localizacao_id, mapaorganizacional_id, codigo, almoxarifado, configuracao_id) | |
47 | - VALUES (2, 'classificação 2', '2015-01-01 09:26:25', false, 43, 1, 1, 457, false, 2); | |
48 | - | |
49 | --- CLASSIFICAÇÃO MATERIAL | |
50 | -INSERT INTO classificacaomaterial( id, datacriacao, dataedicao, datainativo, version, codigo, descricao, dominiotipoclassificacaomaterial_id, dominiotipomaterial_id, classificacaomaterialparent_id, orgao_id) | |
51 | - VALUES (1, TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 10:26:27','YYYY-MM-DD HH24:MI:SS'), NULL, 0, 'COD 01', 'Superior 1', 3, 5, NULL, 1); | |
52 | - | |
53 | -INSERT INTO classificacaomaterial( id, datacriacao, dataedicao, datainativo, version, codigo, descricao, dominiotipoclassificacaomaterial_id, dominiotipomaterial_id, classificacaomaterialparent_id, orgao_id) | |
54 | - VALUES (2, TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 10:26:27','YYYY-MM-DD HH24:MI:SS'), NULL, 0, 'COD 02', 'Superior 2', 3, 5, NULL, 1); | |
55 | - | |
56 | -INSERT INTO classificacaomaterial( id, datacriacao, dataedicao, datainativo, version, codigo, descricao, dominiotipoclassificacaomaterial_id, dominiotipomaterial_id, classificacaomaterialparent_id, orgao_id) | |
57 | - VALUES (3, TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 10:26:27','YYYY-MM-DD HH24:MI:SS'), NULL, 0, 'COD 03', 'SubGrupo 21', 4, 5, 2, 1); | |
58 | - | |
59 | -INSERT INTO classificacaomaterial( id, datacriacao, dataedicao, datainativo, version, codigo, descricao, dominiotipoclassificacaomaterial_id, dominiotipomaterial_id, classificacaomaterialparent_id, orgao_id) | |
60 | - VALUES (4, TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 10:26:27','YYYY-MM-DD HH24:MI:SS'), NULL, 0, 'COD 04', 'SubGrupo 12', 4, 5, 1, 1); | |
61 | - | |
62 | -INSERT INTO classificacaomaterial( id, datacriacao, dataedicao, datainativo, version, codigo, descricao, dominiotipoclassificacaomaterial_id, dominiotipomaterial_id, classificacaomaterialparent_id, orgao_id) | |
63 | - VALUES (5, TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 10:26:27','YYYY-MM-DD HH24:MI:SS'), NULL, 0, 'COD 05', 'MATERIAL 121', 36, 5, 4, 1); | |
64 | - | |
65 | -INSERT INTO classificacaomaterial( id, datacriacao, dataedicao, datainativo, version, codigo, descricao, dominiotipoclassificacaomaterial_id, dominiotipomaterial_id, classificacaomaterialparent_id, orgao_id) | |
66 | - VALUES (6, TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 10:26:27','YYYY-MM-DD HH24:MI:SS'), NULL, 0, 'COD 06', 'MATERIAL 122', 36, 5, 4, 1); | |
67 | - | |
68 | -INSERT INTO classificacaomaterial( id, datacriacao, dataedicao, datainativo, version, codigo, descricao, dominiotipoclassificacaomaterial_id, dominiotipomaterial_id, classificacaomaterialparent_id, orgao_id) | |
69 | - VALUES (7, TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 10:26:27','YYYY-MM-DD HH24:MI:SS'), NULL, 0, 'COD 07', 'DETALHE 1211', 37, 5, 5, 1); | |
70 | - | |
71 | --- CONTA CONTABIL | |
72 | -INSERT INTO contacontabil(id, datacriacao, dataedicao, version, codigo, codigosistemaorigem, descricao, percentualnaodepreciavel, taxadepreciacaomensal, vidautil, | |
73 | - autor_id, editor_id, dominiotipocontacontabil_id, orgao_id) | |
74 | - VALUES (1, '2015-01-01 09:26:25', '2015-01-01 09:26:25', 0, 123456, 00001111, 'MAQUINA E EQUIPAMENTOS DE NATUREZA INDUSTRIAL', 0.3000, 0.1000, 180, | |
75 | - 1, 1, 99, 1); | |
76 | - | |
77 | -INSERT INTO contacontabilconfiguracaoreferencia(id, datacriacao, dataedicao, version, apresentarelatoriomovimentacaobem, autor_id, editor_id, contacontabil_id, mesreferencia) | |
78 | - VALUES (1, TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), 0, true, 1, 1, 1, TO_DATE('2015-01-01 09:26:25', 'YYYY-MM-DD HH24:MI:SS')); | |
79 | - | |
80 | -INSERT INTO contacontabil(id, datacriacao, dataedicao, version, codigo, codigosistemaorigem, descricao, percentualnaodepreciavel, taxadepreciacaomensal, vidautil, | |
81 | - autor_id, editor_id, dominiotipocontacontabil_id, orgao_id) | |
82 | - VALUES (2 ,'2015-01-01 09:26:25', '2015-01-01 09:26:25', 0, 123000, 00001111, 'EQUI.DE PROCESSAMENTO DE DADOS', 0.3000, 0.1000, 180, | |
83 | - 1, 1, 100, 1); | |
84 | - | |
85 | -INSERT INTO contacontabilconfiguracaoreferencia(id, datacriacao, dataedicao, version, apresentarelatoriomovimentacaobem, autor_id, editor_id, contacontabil_id, mesreferencia) | |
86 | - VALUES (2, TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), 0, true, 1, 1, 2, TO_DATE('2015-01-01 09:26:25', 'YYYY-MM-DD HH24:MI:SS')); | |
87 | - | |
88 | --- CONTA CONTABIL SALDO | |
89 | -INSERT INTO contacontabilsaldo(id, datacriacao, dataedicao, version, datareferencia, valor, autor_id, editor_id, contacontabil_id) | |
90 | - VALUES (1, '2015-01-01 09:26:25', '2015-01-01 09:26:25', 0, '2014-12-01 09:26:25', 0, 1, 1, 1); | |
91 | - | |
92 | -INSERT INTO contacontabilsaldo(id, datacriacao, dataedicao, version, datareferencia, valor, autor_id, editor_id, contacontabil_id) | |
93 | - VALUES (2, '2015-01-01 09:26:25', '2015-01-01 09:26:25', 0, '2014-12-01 09:26:25', 0, 1, 1, 2); | |
94 | - | |
95 | --- VINCULA CONTA CONTABIL AO SALDO ANTERIOR | |
96 | -UPDATE contacontabil SET contacontabilsaldoanterior_id=1 WHERE id = 1; | |
97 | -UPDATE contacontabil SET contacontabilsaldoanterior_id=2 WHERE id = 2; | |
98 | - | |
99 | --- VINCULA CONTA CONTABIL ALMOXARIFADO A CONFIGURACAO 1 DA ESTRUTURA ORGAO 1 | |
100 | -UPDATE configuracao SET contaContabilAlmoxarifado_id=1 WHERE id = 1; | |
101 | - | |
102 | --- CARACTERISTICA | |
103 | -INSERT INTO caracteristica(id, datacriacao, dataedicao, version, codigo, descricao, expressaoregular, tamanho, autor_id, editor_id, dominiotipodado_id, dominiotiporestricao_id, chavedominio, orgao_id) | |
104 | - VALUES (1, '2014-11-20', '2014-11-20', 0, 'CODCARACTERE', 'CARACTERE', '', 30, 1, 1, 12, 9, 'tipoRestricao', 1); | |
105 | -INSERT INTO caracteristica(id, datacriacao, dataedicao, version, codigo, descricao, expressaoregular, tamanho, autor_id, editor_id, dominiotipodado_id, dominiotiporestricao_id, chavedominio, orgao_id) | |
106 | - VALUES (2, '2014-11-20', '2014-11-20', 0, 'CODTEXT_AREA', 'TEXT_AREA', '', 300, 1, 1, 13, 9, 'tipoRestricao', 1); | |
107 | -INSERT INTO caracteristica(id, datacriacao, dataedicao, version, codigo, descricao, expressaoregular, tamanho, autor_id, editor_id, dominiotipodado_id, dominiotiporestricao_id, chavedominio, orgao_id) | |
108 | - VALUES (3, '2014-11-20', '2014-11-20', 0, 'CODNUMBER', 'NUMBER', '', null, 1, 1, 14, 9, 'tipoRestricao', 1); | |
109 | -INSERT INTO caracteristica(id, datacriacao, dataedicao, version, codigo, descricao, expressaoregular, tamanho, autor_id, editor_id, dominiotipodado_id, dominiotiporestricao_id, chavedominio, orgao_id) | |
110 | - VALUES (4, '2014-11-20', '2014-11-20', 0, 'CODDECIMAL', 'DECIMAL', '', null, 1, 1, 15, 9, 'tipoRestricao', 1); | |
111 | -INSERT INTO caracteristica(id, datacriacao, dataedicao, version, codigo, descricao, expressaoregular, tamanho, autor_id, editor_id, dominiotipodado_id, dominiotiporestricao_id, chavedominio, orgao_id) | |
112 | - VALUES (5, '2014-11-20', '2014-11-20', 0, 'CODDATA', 'DATA', '', 10, 1, 1, 55, 9, 'tipoRestricao', 1); | |
113 | -INSERT INTO caracteristica(id, datacriacao, dataedicao, version, codigo, descricao, expressaoregular, tamanho, autor_id, editor_id, dominiotipodado_id, dominiotiporestricao_id, chavedominio, orgao_id) | |
114 | - VALUES (6, '2014-11-20', '2014-11-20', 0, 'CODTIPO_DOMINIO', 'TIPO_DOMINIO', '', null, 1, 1, 56, 9, 'tipoRestricao', 1); | |
115 | -INSERT INTO caracteristica(id, datacriacao, dataedicao, version, codigo, descricao, expressaoregular, tamanho, autor_id, editor_id, dominiotipodado_id, dominiotiporestricao_id, chavedominio, orgao_id) | |
116 | - VALUES (7, '2014-11-20', '2014-11-20', 0, 'CODARQUIVO', 'ARQUIVO', '', 5, 1, 1, 57, 9, 'tipoRestricao', 1); | |
117 | - | |
118 | --- MATERIAL PERMANENTE | |
119 | -INSERT INTO material(id, datacriacao, dataedicao, version, descricao, dominiotipomaterial_id, orgao_id, dominiounidademedida_id, contacontabil_id, classificacaomaterial_id) | |
120 | - VALUES (1, TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), 0, 'Material Permanente 1', 6, 1, 66, 1, 7); | |
121 | - | |
122 | --- Material Consumo | |
123 | -INSERT INTO material(id, datacriacao, dataedicao, version, descricao, dominiotipomaterial_id, orgao_id, dominiounidademedida_id, contacontabil_id) | |
124 | - VALUES (2, TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), 0, 'Material Consumo', 5, 1, 50, 1); | |
125 | - | |
126 | --- ESTRUTURA ORGANIZACIONAL FILHAS ORGAO | |
127 | -INSERT INTO estruturaorganizacional(id, classificacao, datainicio, possuibempatrimonial, dominiotipoestruturaorganizacional_id, localizacao_id, mapaorganizacional_id, orgao_id, codigo, almoxarifado, estruturaOrganizacionalParent_id) | |
128 | - VALUES (3, 'classificação 1.1', '2015-01-01 09:26:25', true, 43, 1, 1, 1, 457, true, 1); | |
129 | -INSERT INTO estruturaorganizacional(id, classificacao, datainicio, possuibempatrimonial, dominiotipoestruturaorganizacional_id, localizacao_id, mapaorganizacional_id, orgao_id, codigo, almoxarifado, estruturaOrganizacionalParent_id) | |
130 | - VALUES (4, 'classificação 1.2', '2015-01-01 09:26:25', true, 43, 1, 1, 1, 458, false, 1); | |
131 | -INSERT INTO estruturaorganizacional(id, classificacao, datainicio, possuibempatrimonial, dominiotipoestruturaorganizacional_id, localizacao_id, mapaorganizacional_id, orgao_id, codigo, almoxarifado, estruturaOrganizacionalParent_id) | |
132 | - VALUES (5, 'classificação 2.1', '2015-01-01 09:26:25', true, 43, 1, 1, 2, 459, false, 2); | |
133 | - | |
134 | --- CONFIGURAÇÃO ALMOXARIFADO | |
135 | -INSERT INTO configuracaoalmoxarifado(id, datacriacao, dataedicao, version, configuracao_id, estruturaOrganizacional_id) | |
136 | - VALUES (1, TO_DATE('2015-01-01 10:26:27','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 10:26:27','YYYY-MM-DD HH24:MI:SS'), 0, 1, 3); | |
137 | - | |
138 | --- FUNCAO | |
139 | -INSERT INTO funcao(id, datacriacao, dataedicao, version, nome) | |
140 | - VALUES (1, TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 10:26:27','YYYY-MM-DD HH24:MI:SS'), 0, 'Função 1'); | |
141 | - | |
142 | -INSERT INTO funcao(id, datacriacao, dataedicao, version, nome) | |
143 | - VALUES (2, TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 10:26:27','YYYY-MM-DD HH24:MI:SS'), 0, 'Função 2'); | |
144 | - | |
145 | -INSERT INTO funcao(id, datacriacao, dataedicao, version, nome) | |
146 | - VALUES (3, TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 10:26:27','YYYY-MM-DD HH24:MI:SS'), 0, 'Função 3'); | |
147 | - | |
148 | --- CLASSE PARCEIRO | |
149 | - | |
150 | -INSERT INTO classeparceiro(id, dominiotipoparceiro_id) | |
151 | - VALUES (1, 19); | |
152 | - | |
153 | -INSERT INTO classeparceiro(id, dominiotipoparceiro_id) | |
154 | - VALUES (2, 17); | |
155 | - | |
156 | -INSERT INTO classeparceiro(id, dominiotipoparceiro_id) | |
157 | - VALUES (3, 16); | |
158 | - | |
159 | -INSERT INTO classeparceiro(id, dominiotipoparceiro_id) | |
160 | - VALUES (4, 18); | |
161 | - | |
162 | -INSERT INTO classeparceiro(id, dominiotipoparceiro_id) | |
163 | - VALUES (5, 16); | |
164 | - | |
165 | --- PESSOA | |
166 | -INSERT INTO pessoa(id, datacriacao, dataedicao, version, nome, dominio_pessoa, orgao_id) | |
167 | - VALUES(1, '2015-01-01 09:26:25', '2015-01-01 09:26:25', 0, 'Colaborador', 22, 1); | |
168 | - | |
169 | --- PESSOA FISICA | |
170 | -INSERT INTO pessoafisica(cpf, datanascimento, nomemae, nomepai, numeropassaporte, rg, tituloeleitor, dominio_estado_civil, dominio_sexo, pessoa_id) | |
171 | - VALUES ('12345678', '2015-01-01 09:26:25', 'teste', 'teste', '123456', '123456', '123456', 40, 38, 1); | |
172 | - | |
173 | --- PARCEIRO | |
174 | -INSERT INTO parceiro(id, datacriacao, dataedicao, version, codigo, autor_id, editor_id, classeparceiro_id, pessoa_id) | |
175 | - VALUES (1, '2015-01-01 09:26:25', '2015-01-01 09:26:25', 0, 123, 1, 1, 1, 1); | |
176 | - | |
177 | --- PARCEIRO COLABORADOR | |
178 | -INSERT INTO parceiro_colaborador(id, estruturaorganizacional_id, funcao_id) | |
179 | - VALUES (1, 1, 1); | |
180 | - | |
181 | --- PARCEIRO FORNECEDOR | |
182 | -INSERT INTO parceiro(id, datacriacao, dataedicao, version, codigo, autor_id, editor_id, classeparceiro_id, pessoa_id) | |
183 | - VALUES (3, '2015-01-01 09:26:25', '2015-01-01 09:26:25', 0, 123, 1, 1, 3, 1); | |
184 | - -- FORNECEDOR | |
185 | -INSERT INTO fornecedor(id, estrangeiro, comprasEletronicas) | |
186 | - VALUES (3, false, true ); | |
187 | - | |
188 | --- FORNCEDOR RAMO ATIVIDADE | |
189 | -INSERT INTO fornecedorramoatividade(id, datacriacao, dataedicao, version, grupofederalsupply_id, subgrupofederalsupply_id, fornecedor_id) | |
190 | - VALUES (1, '2015-01-01 09:26:25', '2015-01-01 09:26:25', 0, 1, 2, 3); | |
191 | - | |
192 | - | |
193 | --- liberado a partir do 109 | |
194 | - | |
195 | -update public.menu set ativo = true; | |
196 | - | |
197 | --- FILES DO MENU | |
198 | - | |
199 | -INSERT INTO menufile( | |
200 | - datacriacao, dataedicao, version, caminho, dominiomenufile_id, menu_id) | |
201 | - VALUES (TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), 1, | |
202 | - '/cit-adm-materiais-web/angular/repository/DocumentoRepository.js', 2, 16); | |
203 | - | |
204 | -INSERT INTO menufile( | |
205 | - datacriacao, dataedicao, version, caminho, dominiomenufile_id, menu_id) | |
206 | - VALUES (TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), 1, | |
207 | - '/cit-adm-materiais-web/angular/directive/AssociarDocumentoDirective.js', 2, 16); | |
208 | - | |
209 | -INSERT INTO menufile( | |
210 | - datacriacao, dataedicao, version, caminho, dominiomenufile_id, menu_id) | |
211 | - VALUES (TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), 1, | |
212 | - '/citgrp-patrimonio-web/angular/repository/AnexoRepository.js', 2, 16); | |
213 | - | |
214 | -INSERT INTO menufile( | |
215 | - datacriacao, dataedicao, version, caminho, dominiomenufile_id, menu_id) | |
216 | - VALUES (TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), 1, | |
217 | - '/citgrp-patrimonio-web/angular/controller/MaterialController.js', 2, 17); | |
218 | - | |
219 | -INSERT INTO menufile( | |
220 | - datacriacao, dataedicao, version, caminho, dominiomenufile_id, menu_id) | |
221 | - VALUES (TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), 1, | |
222 | - '/citgrp-patrimonio-web/angular/controller/MaterialListController.js', 2, 17); | |
223 | - | |
224 | -INSERT INTO menufile( | |
225 | - datacriacao, dataedicao, version, caminho, dominiomenufile_id, menu_id) | |
226 | - VALUES (TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), 1, | |
227 | - '/citgrp-patrimonio-web/angular/repository/MaterialRepository.js', 2, 17); | |
228 | - | |
229 | -INSERT INTO menufile( | |
230 | - datacriacao, dataedicao, version, caminho, dominiomenufile_id, menu_id) | |
231 | - VALUES (TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), 1, | |
232 | - '/citgrp-patrimonio-web/angular/repository/MaterialConsumoRepository.js', 2, 17); | |
233 | - | |
234 | -INSERT INTO menufile( | |
235 | - datacriacao, dataedicao, version, caminho, dominiomenufile_id, menu_id) | |
236 | - VALUES (TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), 1, | |
237 | - '/citgrp-patrimonio-web/angular/repository/MaterialImagemRepository.js', 2, 17); | |
238 | - | |
239 | -INSERT INTO menufile( | |
240 | - datacriacao, dataedicao, version, caminho, dominiomenufile_id, menu_id) | |
241 | - VALUES (TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), 1, | |
242 | - '/citgrp-patrimonio-web/angular/repository/ContaContabilRepository.js', 2, 15); | |
243 | - | |
244 | - | |
245 | -INSERT INTO menufile( | |
246 | - datacriacao, dataedicao, version, caminho, dominiomenufile_id, menu_id) | |
247 | - VALUES (TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), 1, | |
248 | - '/cit-adm-materiais-web/angular/controller/EstruturaOrganizacionalController.js', 2, 21); | |
249 | - | |
250 | -INSERT INTO menufile( | |
251 | - datacriacao, dataedicao, version, caminho, dominiomenufile_id, menu_id) | |
252 | - VALUES (TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), 1, | |
253 | - '/cit-adm-materiais-web/angular/repository/EstruturaOrganizacionalRepository.js', 2, 21); | |
254 | - | |
255 | -INSERT INTO menufile( | |
256 | - datacriacao, dataedicao, version, caminho, dominiomenufile_id, menu_id) | |
257 | - VALUES (TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), 1, | |
258 | - '/cit-adm-materiais-web/angular/repository/EstruturaOrganizacionalResponsavelRepository.js', 2, 21); | |
259 | - | |
260 | -INSERT INTO menufile( | |
261 | - datacriacao, dataedicao, version, caminho, dominiomenufile_id, menu_id) | |
262 | - VALUES (TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), 1, | |
263 | - '/citgrp-patrimonio-web/angular/repository/MaterialCaracteristicaRepository.js', 2, 15); | |
264 | - | |
265 | - | |
266 | -INSERT INTO menufile( | |
267 | - datacriacao, dataedicao, version, caminho, dominiomenufile_id, menu_id) | |
268 | - VALUES (TO_DATE('2014-12-29 11:16:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2014-12-29 11:16:25','YYYY-MM-DD HH24:MI:SS'), 1, | |
269 | - '/cit-adm-materiais-web/angular/repository/ContaContabilRepository.js', 2, 33); | |
270 | - | |
271 | -INSERT INTO menufile( | |
272 | - datacriacao, dataedicao, version, caminho, dominiomenufile_id, menu_id) | |
273 | - VALUES (TO_DATE('2014-12-29 11:16:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2014-12-29 11:16:25','YYYY-MM-DD HH24:MI:SS'), 1, | |
274 | - '/citgrp-patrimonio-web/angular/controller/ContaContabilController.js', 2, 33); | |
275 | - | |
276 | -INSERT INTO menufile( | |
277 | - datacriacao, dataedicao, version, caminho, dominiomenufile_id, menu_id) | |
278 | - VALUES (TO_DATE('2014-12-29 11:16:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2014-12-29 11:16:25','YYYY-MM-DD HH24:MI:SS'), 1, | |
279 | - '/citgrp-patrimonio-web/angular/controller/ContaContabilListController.js', 2, 33); | |
280 | - | |
281 | - | |
282 | - | |
283 | --- ALTER SEQUENCE | |
284 | -ALTER SEQUENCE seguranca_usuario_id_seq RESTART WITH 500; | |
285 | -ALTER SEQUENCE seguranca_usuario_privilegio_id_seq RESTART WITH 500; | |
286 | -ALTER SEQUENCE menu_id_seq RESTART WITH 500; | |
287 | -ALTER SEQUENCE pagina_id_seq RESTART WITH 500; | |
288 | -ALTER SEQUENCE dominio_id_seq RESTART WITH 500; | |
289 | -ALTER SEQUENCE menufile_id_seq RESTART WITH 500; | |
290 | -ALTER SEQUENCE endereco_id_seq RESTART WITH 500; | |
291 | -ALTER SEQUENCE cidade_id_seq RESTART WITH 500; | |
292 | -ALTER SEQUENCE pais_id_seq RESTART WITH 500; | |
293 | -ALTER SEQUENCE bairro_id_seq RESTART WITH 500; | |
294 | -ALTER SEQUENCE regiao_id_seq RESTART WITH 500; | |
295 | -ALTER SEQUENCE caracteristica_id_seq RESTART WITH 500; | |
296 | -ALTER SEQUENCE classificacaomaterial_id_seq RESTART WITH 500; | |
297 | -ALTER SEQUENCE material_id_seq RESTART WITH 500; | |
298 | -ALTER SEQUENCE localizacao_id_seq RESTART WITH 500; | |
299 | -ALTER SEQUENCE regiao_id_seq RESTART WITH 500; | |
300 | -ALTER SEQUENCE estado_id_seq RESTART WITH 500; | |
301 | -ALTER SEQUENCE pessoa_id_seq RESTART WITH 500; | |
302 | -ALTER SEQUENCE parceiro_id_seq RESTART WITH 500; | |
303 | -ALTER SEQUENCE estruturaorgao_id_seq RESTART WITH 500; | |
304 | -ALTER SEQUENCE fornecedorramoatividade_id_seq RESTART WITH 500; | |
305 | -ALTER SEQUENCE contacontabil_id_seq RESTART WITH 500; | |
306 | -ALTER SEQUENCE termoresponsabilidade_id_seq RESTART WITH 500; | |
307 | -ALTER SEQUENCE configuracao_id_seq RESTART WITH 500; | |
308 | -ALTER SEQUENCE configuracaoalmoxarifado_id_seq RESTART WITH 500; | |
309 | -ALTER SEQUENCE inventariocomissaointegrante_id_seq RESTART WITH 500; | |
310 | -ALTER SEQUENCE inventariocomissaointegrante_id_seq RESTART WITH 500; | |
311 | -ALTER SEQUENCE mapaorganizacional_id_seq RESTART WITH 500; | |
312 | -ALTER SEQUENCE contacontabilsaldo_id_seq RESTART WITH 500; | |
313 | -ALTER SEQUENCE orgaoitem_id_seq RESTART WITH 500; | |
314 | -ALTER SEQUENCE contacontabilconfiguracaoreferencia_id_seq RESTART WITH 500; | |
315 | -ALTER SEQUENCE grupo_id_seq RESTART WITH 500; | |
316 | -ALTER SEQUENCE painel_id_seq RESTART WITH 500; | |
317 | - | |
318 | --- Pessoa | |
319 | -INSERT INTO pessoa(id, datacriacao, dataedicao, version, nome, dominio_pessoa, orgao_id) | |
320 | - VALUES(2, TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 10:26:27','YYYY-MM-DD HH24:MI:SS'), 0, 'Pessoa 1', 22, 1); | |
321 | - | |
322 | --- PESSOA JURIDICA | |
323 | -INSERT INTO pessoajuridica(cnpj, filantropico, filial, impostosimples, inscricaoestadual, inscricaomunicipal, nomefantasia, razaosocial, site, dominio_abrangencia, dominio_porte, pessoa_id) | |
324 | - VALUES ('12345678', true, true, true, 'teste', 'teste', 'teste', 'teste', 'teste', 46, 47, 2); | |
325 | - | |
326 | - | |
327 | -INSERT INTO pessoa(id, datacriacao, dataedicao, version, nome, dominio_pessoa, orgao_id) | |
328 | - VALUES(3, TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 10:26:27','YYYY-MM-DD HH24:MI:SS'), 0, 'Pessoa 2', 22, 1); | |
329 | - | |
330 | -INSERT INTO pessoa(id, datacriacao, dataedicao, version, nome, dominio_pessoa, orgao_id) | |
331 | - VALUES(4, TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 10:26:27','YYYY-MM-DD HH24:MI:SS'), 0, 'Pessoa 3', 22, 1); | |
332 | - | |
333 | --- PESSOA COLABORADOR | |
334 | -INSERT INTO pessoa(id, datacriacao, dataedicao, version, nome, dominio_pessoa, orgao_id) | |
335 | - VALUES(5, '2015-01-01 09:26:25', '2015-01-01 09:26:25', 0, 'Colaborador 2', 22, 1); | |
336 | - | |
337 | -INSERT INTO parceiro(id, datacriacao, dataedicao, "version", codigo, classeparceiro_id, pessoa_id) | |
338 | - VALUES (2, TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), 1, '001', 1, 5); | |
339 | - | |
340 | -INSERT INTO parceiro_colaborador(id, estruturaorganizacional_id, funcao_id) VALUES (2, 1, 1); | |
341 | - | |
342 | --- PESSOA COLABORADOR | |
343 | -INSERT INTO pessoa(id, datacriacao, dataedicao, version, nome, dominio_pessoa, orgao_id) | |
344 | - VALUES(6, '2015-01-01 09:26:25', '2015-01-01 09:26:25', 0, 'Colaborador 3', 22, 1); | |
345 | - | |
346 | -INSERT INTO parceiro(id, datacriacao, dataedicao, "version", codigo, classeparceiro_id, pessoa_id) | |
347 | - VALUES (4, TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), 1, '001', 1, 6); | |
348 | - | |
349 | -INSERT INTO parceiro_colaborador(id, estruturaorganizacional_id, funcao_id) VALUES (4, 1, 1); | |
350 | - | |
351 | -INSERT INTO inventariocomissao(datacriacao, dataedicao, version, codigo, dataformacao, nome, numprocesso, portaria, autor_id, editor_id, estruturaorganizacional_id, orgao_id, presidente_id) VALUES ('2014-12-30 00:00:00', '2014-12-30 00:00:00', 1, 1, '2014-12-30', 'Comissão de Teste', '201400009002245', 1234, 1, 1, 1, 1, 1); | |
352 | -INSERT INTO inventariocomissaointegrante(id, datacriacao, dataedicao, version, integrante_id, inventariocomissao_id) VALUES (1, TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), 0, 1, 1); | |
353 | -INSERT INTO inventariocomissaointegrante(id, datacriacao, dataedicao, version, integrante_id, inventariocomissao_id) VALUES (2, TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), 0, 2, 1); | |
354 | -INSERT INTO inventariocomissaointegrante(id, datacriacao, dataedicao, version, integrante_id, inventariocomissao_id) VALUES (3, TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), 0, 4, 1); | |
355 | - | |
356 | --- PESSOA PORTADOR | |
357 | -INSERT INTO pessoa(id, datacriacao, dataedicao, version, nome, dominio_pessoa, orgao_id) | |
358 | - VALUES(7, '2015-01-01 09:26:25', '2015-01-01 09:26:25', 0, 'Portador', 22, 1); | |
359 | - | |
360 | --- PARCEIRO PORTADOR | |
361 | -INSERT INTO parceiro(id, datacriacao, dataedicao, "version", codigo, classeparceiro_id, pessoa_id) | |
362 | - VALUES (5, TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), 1, '001', 4, 7); | |
363 | - | |
364 | --- PORTADOR | |
365 | -INSERT INTO parceiro_portador(id) VALUES (5); | |
366 | - | |
367 | --- PESSOA FORNECEDOR | |
368 | -INSERT INTO pessoa(id, datacriacao, dataedicao, version, nome, dominio_pessoa, orgao_id) | |
369 | - VALUES(8, '2015-01-01 09:26:25', '2015-01-01 09:26:25', 0, 'Fornecedor', 22, 1); | |
370 | - | |
371 | --- PARCEIRO FORNECEDOR | |
372 | -INSERT INTO parceiro(id, datacriacao, dataedicao, version, codigo, autor_id, editor_id, classeparceiro_id, pessoa_id) | |
373 | - VALUES (6, '2015-01-01 09:26:25', '2015-01-01 09:26:25', 0, 123, 1, 1, 3, 8); | |
374 | - | |
375 | --- FORNECEDOR | |
376 | -INSERT INTO fornecedor(id, estrangeiro, comprasEletronicas) | |
377 | - VALUES (6, false, true ); | |
378 | - | |
379 | --- PESSOA ORGAO EXTERNO | |
380 | -INSERT INTO pessoa(id, datacriacao, dataedicao, version, nome, dominio_pessoa, orgao_id) | |
381 | - VALUES(9, '2015-01-01 09:26:25', '2015-01-01 09:26:25', 0, 'Orgão Externo', 22, 1); | |
382 | - | |
383 | --- PARCEIRO ORGAO EXTERNO | |
384 | -INSERT INTO parceiro(id, datacriacao, dataedicao, version, codigo, autor_id, editor_id, classeparceiro_id, pessoa_id) | |
385 | - VALUES (7, '2015-01-01 09:26:25', '2015-01-01 09:26:25', 0, 123, 1, 1, 2, 9); | |
386 | - | |
387 | --- ORGAO EXTERNO | |
388 | -INSERT INTO orgaoexterno(sigla, id) VALUES ('OE', 7); | |
389 | - | |
390 | --- PESSOA COLABORADOR | |
391 | -INSERT INTO pessoa(id, datacriacao, dataedicao, version, nome, dominio_pessoa, orgao_id) | |
392 | - VALUES(10, '2015-01-01 09:26:25', '2015-01-01 09:26:25', 0, 'Colaborador 4', 22, 1); | |
393 | - | |
394 | -INSERT INTO parceiro(id, datacriacao, dataedicao, "version", codigo, classeparceiro_id, pessoa_id) | |
395 | - VALUES (10, TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), 1, '001', 1, 10); | |
396 | - | |
397 | -INSERT INTO parceiro_colaborador(id, estruturaorganizacional_id, funcao_id) VALUES (10, 1, 1); | |
398 | - | |
399 | - | |
400 | --- ACCESS ROLES | |
401 | -INSERT INTO accessrole(id, datacriacao, dataedicao, datainativo, version, url, roles) VALUES (1, TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 10:26:27','YYYY-MM-DD HH24:MI:SS'), NULL, 0, '/html/**', 'ROLE_ADMIN'); | |
402 | -INSERT INTO accessrole(id, datacriacao, dataedicao, datainativo, version, url, roles) VALUES (2, TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 10:26:27','YYYY-MM-DD HH24:MI:SS'), NULL, 0, '/admin/**', 'ROLE_ADMIN,ROLE_MANAGER'); | |
403 | - | |
404 | --- JORNADA TRABALHO - carlos.santos em 10.02.2015 | |
405 | -INSERT INTO workday(id, datacriacao, dataedicao, datainativo, version, description) | |
406 | - VALUES (1, TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 10:26:27','YYYY-MM-DD HH24:MI:SS'), NULL, 0, 'Jornada padrão'); | |
407 | - | |
408 | -INSERT INTO workday(id, datacriacao, dataedicao, datainativo, version, description) | |
409 | - VALUES (2, TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 10:26:27','YYYY-MM-DD HH24:MI:SS'), NULL, 0, 'Jornada horas corridas'); | |
410 | - | |
411 | --- HORARIO JORNADA TRABALHO - carlos.santos em 10.02.2015 | |
412 | -INSERT INTO worktime(id, starttime, endtime, workday_id) | |
413 | - VALUES (1, TO_DATE('2000-01-01 08:00:00','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2000-01-01 12:00:00','YYYY-MM-DD HH24:MI:SS'), 1); | |
414 | - | |
415 | -INSERT INTO worktime(id, starttime, endtime, workday_id) | |
416 | - VALUES (2, TO_DATE('2000-01-01 14:00:00','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2000-01-01 18:00:00','YYYY-MM-DD HH24:MI:SS'), 1); | |
417 | - | |
418 | -INSERT INTO worktime(id, starttime, endtime, workday_id) | |
419 | - VALUES (3, TO_DATE('2000-01-01 00:00:00','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2000-01-01 24:00:00','YYYY-MM-DD HH24:MI:SS'), 2); | |
420 | - | |
421 | --- CALENDARIO - carlos.santos em 10.02.2015 | |
422 | -INSERT INTO workcalendar(id, datacriacao, dataedicao, datainativo, version, | |
423 | - considerholiday, description, workdaymon_id, workdaytue_id, workdaywed_id, workdaythu_id, workdayfri_id) | |
424 | - VALUES (1, TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 10:26:27','YYYY-MM-DD HH24:MI:SS'), NULL, 0, | |
425 | - true, 'Calendário padrão', 1, 1, 1, 1, 1); | |
426 | - | |
427 | -INSERT INTO workcalendar(id, datacriacao, dataedicao, datainativo, version, | |
428 | - considerholiday, description, workdaymon_id, workdaytue_id, workdaywed_id, workdaythu_id, workdayfri_id) | |
429 | - VALUES (2, TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 10:26:27','YYYY-MM-DD HH24:MI:SS'), NULL, 0, | |
430 | - true, 'Calendário horas corridas', 2, 2, 2, 2, 2); | |
431 | - | |
432 | --- WIDGET | |
433 | -INSERT INTO public.widget ("id", "databloqueio", "datainativo", "datacriacao", "dataedicao", "version", "apresentarurlservico", "descricao", "nome", "urlservico", "inativador_id", "autor_id", "editor_id", "tipocomponente_id") | |
434 | -VALUES (6, NULL, NULL, E'2015-04-02 10:17:33.535', E'2015-04-02 10:17:33.535', 0, True, E'HighChart', E'HighChart', NULL, NULL, 1, 1, 188); | |
435 | - | |
436 | -INSERT INTO public.widget ("id", "databloqueio", "datainativo", "datacriacao", "dataedicao", "version", "apresentarurlservico", "descricao", "nome", "urlservico", "inativador_id", "autor_id", "editor_id", "tipocomponente_id") | |
437 | -VALUES (7, NULL, NULL, E'2015-04-02 10:23:04.388', E'2015-04-02 10:23:04.388', 0, True, E'Google Chart', E'Google Chart', NULL, NULL, 1, 1, 211); | |
438 | - | |
439 | -INSERT INTO public.widget ("id", "databloqueio", "datainativo", "datacriacao", "dataedicao", "version", "apresentarurlservico", "descricao", "nome", "urlservico", "inativador_id", "autor_id", "editor_id", "tipocomponente_id") | |
440 | -VALUES (8, NULL, NULL, E'2015-04-02 10:27:08.019', E'2015-04-02 10:27:08.019', 0, True, E'Google Chart Gauge', E'Google Chart Gauge', NULL, NULL, 1, 1, 201); | |
441 | - | |
442 | -INSERT INTO public.widget ("id", "databloqueio", "datainativo", "datacriacao", "dataedicao", "version", "apresentarurlservico", "descricao", "nome", "urlservico", "inativador_id", "autor_id", "editor_id", "tipocomponente_id") | |
443 | -VALUES (9, NULL, NULL, E'2015-04-02 10:27:08.019', E'2015-04-02 10:27:08.019', 0, True, E'Html', E'Html', NULL, NULL, 1, 1, 269); | |
444 | - | |
445 | -INSERT INTO public.widget ("id", "databloqueio", "datainativo", "datacriacao", "dataedicao", "version", "apresentarurlservico", "descricao", "nome", "urlservico", "inativador_id", "autor_id", "editor_id", "tipocomponente_id") | |
446 | -VALUES (10, NULL, NULL, E'2015-04-02 10:27:08.019', E'2015-04-02 10:27:08.019', 0, True, E'Notícia', E'Notícia', NULL, NULL, 1, 1, 210); | |
447 | - | |
448 | -INSERT INTO public.widget ("id", "databloqueio", "datainativo", "datacriacao", "dataedicao", "version", "apresentarurlservico", "descricao", "nome", "urlservico", "inativador_id", "autor_id", "editor_id", "tipocomponente_id") | |
449 | -VALUES (11, NULL, NULL, E'2015-04-02 10:27:08.019', E'2015-04-02 10:27:08.019', 0, True, E'Temperatura', E'Temperatura', NULL, NULL, 1, 1, 209); | |
450 | - | |
451 | -INSERT INTO public.widget ("id", "databloqueio", "datainativo", "datacriacao", "dataedicao", "version", "apresentarurlservico", "descricao", "nome", "urlservico", "inativador_id", "autor_id", "editor_id", "tipocomponente_id") | |
452 | -VALUES (12, NULL, NULL, E'2015-04-02 10:27:08.019', E'2015-04-02 10:27:08.019', 0, True, E'Link', E'Link', NULL, NULL, 1, 1, 198); | |
453 | - | |
454 | -/* Data for the 'public.widgetparametro' table (Records 1 - 16) */ | |
455 | - | |
456 | -INSERT INTO public.widgetparametro ("id", "databloqueio", "datainativo", "datacriacao", "dataedicao", "version", "booleandefault", "chavedominiodefault", "datadefault", "nome", "numerodefault", "textodefault", "inativador_id", "autor_id", "editor_id", "dominiodefault_id", "tipowidgetparametrodominio_id", "widget_id", "widgetinativo_id") | |
457 | -VALUES (21, NULL, NULL, E'2015-04-02 10:17:33.567', E'2015-04-02 10:17:33.567', 0, False, E'tipoHighChart', NULL, E'tipoHighChart', NULL, NULL, NULL, 1, 1, 193, 56, 6, NULL); | |
458 | - | |
459 | -INSERT INTO public.widgetparametro ("id", "databloqueio", "datainativo", "datacriacao", "dataedicao", "version", "booleandefault", "chavedominiodefault", "datadefault", "nome", "numerodefault", "textodefault", "inativador_id", "autor_id", "editor_id", "dominiodefault_id", "tipowidgetparametrodominio_id", "widget_id", "widgetinativo_id") | |
460 | -VALUES (22, NULL, NULL, E'2015-04-02 10:17:33.571', E'2015-04-02 10:17:33.571', 0, False, NULL, NULL, E'titulo', NULL, E'titulo', NULL, 1, 1, NULL, 13, 6, NULL); | |
461 | - | |
462 | -INSERT INTO public.widgetparametro ("id", "databloqueio", "datainativo", "datacriacao", "dataedicao", "version", "booleandefault", "chavedominiodefault", "datadefault", "nome", "numerodefault", "textodefault", "inativador_id", "autor_id", "editor_id", "dominiodefault_id", "tipowidgetparametrodominio_id", "widget_id", "widgetinativo_id") | |
463 | -VALUES (23, NULL, NULL, E'2015-04-02 10:17:33.574', E'2015-04-02 10:17:33.574', 0, False, NULL, NULL, E'sub titulo', NULL, E'sub titulo', NULL, 1, 1, NULL, 13, 6, NULL); | |
464 | - | |
465 | -INSERT INTO public.widgetparametro ("id", "databloqueio", "datainativo", "datacriacao", "dataedicao", "version", "booleandefault", "chavedominiodefault", "datadefault", "nome", "numerodefault", "textodefault", "inativador_id", "autor_id", "editor_id", "dominiodefault_id", "tipowidgetparametrodominio_id", "widget_id", "widgetinativo_id") | |
466 | -VALUES (24, NULL, NULL, E'2015-04-02 10:23:04.391', E'2015-04-02 10:23:04.391', 0, False, NULL, NULL, E'hAxis titulo', NULL, E'hAxis titulo', NULL, 1, 1, NULL, 12, 7, NULL); | |
467 | - | |
468 | -INSERT INTO public.widgetparametro ("id", "databloqueio", "datainativo", "datacriacao", "dataedicao", "version", "booleandefault", "chavedominiodefault", "datadefault", "nome", "numerodefault", "textodefault", "inativador_id", "autor_id", "editor_id", "dominiodefault_id", "tipowidgetparametrodominio_id", "widget_id", "widgetinativo_id") | |
469 | -VALUES (25, NULL, NULL, E'2015-04-02 10:23:04.394', E'2015-04-02 10:23:04.394', 0, False, NULL, NULL, E'vAxis titulo', NULL, E'vAxis titulo', NULL, 1, 1, NULL, 12, 7, NULL); | |
470 | - | |
471 | -INSERT INTO public.widgetparametro ("id", "databloqueio", "datainativo", "datacriacao", "dataedicao", "version", "booleandefault", "chavedominiodefault", "datadefault", "nome", "numerodefault", "textodefault", "inativador_id", "autor_id", "editor_id", "dominiodefault_id", "tipowidgetparametrodominio_id", "widget_id", "widgetinativo_id") | |
472 | -VALUES (26, NULL, NULL, E'2015-04-02 10:23:04.397', E'2015-04-02 10:23:04.397', 0, True, NULL, NULL, E'isStacked', NULL, NULL, NULL, 1, 1, NULL, 197, 7, NULL); | |
473 | - | |
474 | -INSERT INTO public.widgetparametro ("id", "databloqueio", "datainativo", "datacriacao", "dataedicao", "version", "booleandefault", "chavedominiodefault", "datadefault", "nome", "numerodefault", "textodefault", "inativador_id", "autor_id", "editor_id", "dominiodefault_id", "tipowidgetparametrodominio_id", "widget_id", "widgetinativo_id") | |
475 | -VALUES (27, NULL, NULL, E'2015-04-02 10:23:04.400', E'2015-04-02 10:23:04.400', 0, False, NULL, NULL, E'Titulo', NULL, E'Titulo', NULL, 1, 1, NULL, 12, 7, NULL); | |
476 | - | |
477 | -INSERT INTO public.widgetparametro ("id", "databloqueio", "datainativo", "datacriacao", "dataedicao", "version", "booleandefault", "chavedominiodefault", "datadefault", "nome", "numerodefault", "textodefault", "inativador_id", "autor_id", "editor_id", "dominiodefault_id", "tipowidgetparametrodominio_id", "widget_id", "widgetinativo_id") | |
478 | -VALUES (28, NULL, NULL, E'2015-04-02 10:23:04.402', E'2015-04-02 10:23:04.402', 0, False, E'tipoGoogleChart', NULL, E'Tipo Grafico', NULL, NULL, NULL, 1, 1, 207, 56, 7, NULL); | |
479 | - | |
480 | -INSERT INTO public.widgetparametro ("id", "databloqueio", "datainativo", "datacriacao", "dataedicao", "version", "booleandefault", "chavedominiodefault", "datadefault", "nome", "numerodefault", "textodefault", "inativador_id", "autor_id", "editor_id", "dominiodefault_id", "tipowidgetparametrodominio_id", "widget_id", "widgetinativo_id") | |
481 | -VALUES (29, NULL, NULL, E'2015-04-02 10:27:08.023', E'2015-04-02 10:27:08.023', 0, False, NULL, NULL, E'max', 100, NULL, NULL, 1, 1, NULL, 14, 8, NULL); | |
482 | - | |
483 | -INSERT INTO public.widgetparametro ("id", "databloqueio", "datainativo", "datacriacao", "dataedicao", "version", "booleandefault", "chavedominiodefault", "datadefault", "nome", "numerodefault", "textodefault", "inativador_id", "autor_id", "editor_id", "dominiodefault_id", "tipowidgetparametrodominio_id", "widget_id", "widgetinativo_id") | |
484 | -VALUES (30, NULL, NULL, E'2015-04-02 10:27:08.029', E'2015-04-02 10:27:08.029', 0, False, NULL, NULL, E'yellowFrom', 70, NULL, NULL, 1, 1, NULL, 14, 8, NULL); | |
485 | - | |
486 | -INSERT INTO public.widgetparametro ("id", "databloqueio", "datainativo", "datacriacao", "dataedicao", "version", "booleandefault", "chavedominiodefault", "datadefault", "nome", "numerodefault", "textodefault", "inativador_id", "autor_id", "editor_id", "dominiodefault_id", "tipowidgetparametrodominio_id", "widget_id", "widgetinativo_id") | |
487 | -VALUES (31, NULL, NULL, E'2015-04-02 10:27:08.035', E'2015-04-02 10:27:08.035', 0, False, NULL, NULL, E'yellowTo', 80, NULL, NULL, 1, 1, NULL, 14, 8, NULL); | |
488 | - | |
489 | -INSERT INTO public.widgetparametro ("id", "databloqueio", "datainativo", "datacriacao", "dataedicao", "version", "booleandefault", "chavedominiodefault", "datadefault", "nome", "numerodefault", "textodefault", "inativador_id", "autor_id", "editor_id", "dominiodefault_id", "tipowidgetparametrodominio_id", "widget_id", "widgetinativo_id") | |
490 | -VALUES (32, NULL, NULL, E'2015-04-02 10:27:08.038', E'2015-04-02 10:27:08.038', 0, False, NULL, NULL, E'redFrom', 80, NULL, NULL, 1, 1, NULL, 14, 8, NULL); | |
491 | - | |
492 | -INSERT INTO public.widgetparametro ("id", "databloqueio", "datainativo", "datacriacao", "dataedicao", "version", "booleandefault", "chavedominiodefault", "datadefault", "nome", "numerodefault", "textodefault", "inativador_id", "autor_id", "editor_id", "dominiodefault_id", "tipowidgetparametrodominio_id", "widget_id", "widgetinativo_id") | |
493 | -VALUES (33, NULL, NULL, E'2015-04-02 10:27:08.042', E'2015-04-02 10:27:08.042', 0, False, NULL, NULL, E'redTo', 100, NULL, NULL, 1, 1, NULL, 14, 8, NULL); | |
494 | - | |
495 | -INSERT INTO public.widgetparametro ("id", "databloqueio", "datainativo", "datacriacao", "dataedicao", "version", "booleandefault", "chavedominiodefault", "datadefault", "nome", "numerodefault", "textodefault", "inativador_id", "autor_id", "editor_id", "dominiodefault_id", "tipowidgetparametrodominio_id", "widget_id", "widgetinativo_id") | |
496 | -VALUES (34, NULL, NULL, E'2015-04-02 10:27:08.049', E'2015-04-02 10:27:08.049', 0, False, NULL, NULL, E'greenFrom', 40, NULL, NULL, 1, 1, NULL, 14, 8, NULL); | |
497 | - | |
498 | -INSERT INTO public.widgetparametro ("id", "databloqueio", "datainativo", "datacriacao", "dataedicao", "version", "booleandefault", "chavedominiodefault", "datadefault", "nome", "numerodefault", "textodefault", "inativador_id", "autor_id", "editor_id", "dominiodefault_id", "tipowidgetparametrodominio_id", "widget_id", "widgetinativo_id") | |
499 | -VALUES (35, NULL, NULL, E'2015-04-02 10:27:08.054', E'2015-04-02 10:27:08.054', 0, False, NULL, NULL, E'greenTo', 70, NULL, NULL, 1, 1, NULL, 14, 8, NULL); | |
500 | - | |
501 | -INSERT INTO public.widgetparametro ("id", "databloqueio", "datainativo", "datacriacao", "dataedicao", "version", "booleandefault", "chavedominiodefault", "datadefault", "nome", "numerodefault", "textodefault", "inativador_id", "autor_id", "editor_id", "dominiodefault_id", "tipowidgetparametrodominio_id", "widget_id", "widgetinativo_id") | |
502 | -VALUES (36, NULL, NULL, E'2015-04-02 10:27:08.057', E'2015-04-02 10:27:08.057', 0, False, NULL, NULL, E'minorTicks', 5, NULL, NULL, 1, 1, NULL, 14, 8, NULL); |
cit-adm-materiais-api/bin/src/main/test/br/com/citsmart/api/service/impl/DepreciacaoBemPatrimonial.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/test/br/com/citsmart/api/service/impl/DepreciacaoBemPatrimonialSteps.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/test/br/com/citsmart/api/service/impl/TestContaContabilServiceImpl.class
No preview for this file type
cit-adm-materiais-api/bin/src/main/test/br/com/citsmart/api/service/impl/depreciacao_bem_patrimonial.scenario
... | ... | @@ -1,10 +0,0 @@ |
1 | -Title Calcular taxa de depreciacao | |
2 | -Narrative: | |
3 | -As a ContaContabil | |
4 | -I want validarCalculoTaxaDepreciacao | |
5 | -So that o sistema realiza o calculo | |
6 | - | |
7 | -Scenario: Calcular taxa depreciacao | |
8 | -Given Uma conta com 365 dias uteis | |
9 | -When realizo o calculo | |
10 | -Then retornar o valor 0.0027 | |
11 | 0 | \ No newline at end of file |
cit-adm-materiais-api/bin/target/classes/META-INF/MANIFEST.MF
cit-adm-materiais-api/bin/target/classes/META-INF/maven/br.com.centralit/cit-adm-materiais-api/pom.properties
... | ... | @@ -1,7 +0,0 @@ |
1 | -#Generated by Maven Integration for Eclipse | |
2 | -#Thu Mar 17 13:13:04 BRT 2016 | |
3 | -version=1.8.0-SNAPSHOT | |
4 | -groupId=br.com.centralit | |
5 | -m2e.projectName=cit-adm-materiais-api | |
6 | -m2e.projectLocation=D\:\\repositorios_git\\citsmartgrp\\cit-adm-materiais\\cit-adm-materiais-api | |
7 | -artifactId=cit-adm-materiais-api |
cit-adm-materiais-api/bin/target/classes/META-INF/maven/br.com.centralit/cit-adm-materiais-api/pom.xml
... | ... | @@ -1,45 +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 xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
20 | - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
21 | - <modelVersion>4.0.0</modelVersion> | |
22 | - | |
23 | - <parent> | |
24 | - <groupId>br.com.centralit</groupId> | |
25 | - <artifactId>cit-adm-materiais</artifactId> | |
26 | - <version>1.8.0-SNAPSHOT</version> | |
27 | - </parent> | |
28 | - | |
29 | - <artifactId>cit-adm-materiais-api</artifactId> | |
30 | - <name>cit-adm-materiais-api</name> | |
31 | - | |
32 | - <properties> | |
33 | - <findbugs.config.path>${project.parent.parent.parent.basedir}/filterfile.xml</findbugs.config.path> | |
34 | - <license.config.path>${project.parent.parent.basedir}/src/licensing</license.config.path> | |
35 | - <maven-antrun-plugin.phase>package</maven-antrun-plugin.phase> | |
36 | - </properties> | |
37 | - | |
38 | - <dependencies> | |
39 | - <dependency> | |
40 | - <groupId>br.com.centralit</groupId> | |
41 | - <artifactId>cit-tabelas-corp-api</artifactId> | |
42 | - <version>${project.version}</version> | |
43 | - </dependency> | |
44 | - </dependencies> | |
45 | -</project> |
cit-adm-materiais-api/bin/target/classes/scripts-bd/atualizacao.sql
... | ... | @@ -1,502 +0,0 @@ |
1 | -INSERT INTO pais (datacriacao,dataedicao,datainativo,version,codigo,nome,sigla,autor_id,editor_id,inativador_id)VALUES(LOCALTIMESTAMP,LOCALTIMESTAMP,NULL,0,'55','Brasil','BR',NULL,NULL,NULL); | |
2 | -INSERT INTO regiao (datacriacao,dataedicao,datainativo,version,codigo,nome,autor_id,editor_id,inativador_id,pais_id)VALUES(LOCALTIMESTAMP,LOCALTIMESTAMP,NULL,0,'01','Centro-Oeste',NULL,NULL,NULL,1); | |
3 | -INSERT INTO regiao (datacriacao,dataedicao,datainativo,version,codigo,nome,autor_id,editor_id,inativador_id,pais_id)VALUES(LOCALTIMESTAMP,LOCALTIMESTAMP,NULL,0,'02','Sul',NULL,NULL,NULL,1); | |
4 | -INSERT INTO estado (datacriacao,dataedicao,datainativo,version,codigo,nome,sigla,autor_id,editor_id,inativador_id,regiao_id)VALUES(LOCALTIMESTAMP,LOCALTIMESTAMP,NULL,0,'0','Goiás','GO',NULL,NULL,NULL,1); | |
5 | -INSERT INTO estado (datacriacao,dataedicao,datainativo,version,codigo,nome,sigla,autor_id,editor_id,inativador_id,regiao_id)VALUES(LOCALTIMESTAMP,LOCALTIMESTAMP,NULL,0,'1','Rio Grande do Sul','RS',NULL,NULL,NULL,2); | |
6 | -INSERT INTO cidade (datacriacao,dataedicao,datainativo,version,codigo,codigoibge,nome,autor_id,editor_id,inativador_id,estado_id)VALUES(LOCALTIMESTAMP,LOCALTIMESTAMP,NULL,0,'0','12','Goiania',NULL,NULL,NULL,1); | |
7 | -INSERT INTO cidade (datacriacao,dataedicao,datainativo,version,codigo,codigoibge,nome,autor_id,editor_id,inativador_id,estado_id)VALUES(LOCALTIMESTAMP,LOCALTIMESTAMP,NULL,0,'1','13','Inhumas',NULL,NULL,NULL,1); | |
8 | -INSERT INTO cidade (datacriacao,dataedicao,datainativo,version,codigo,codigoibge,nome,autor_id,editor_id,inativador_id,estado_id)VALUES(LOCALTIMESTAMP,LOCALTIMESTAMP,NULL,0,'0','12','Rio Grande',NULL,NULL,NULL,2); | |
9 | -INSERT INTO bairro (datacriacao,dataedicao,datainativo,version,codigo,nome,autor_id,editor_id,inativador_id,cidade_id)VALUES(LOCALTIMESTAMP,LOCALTIMESTAMP,NULL,0,'0','Bairro 1',NULL,NULL,NULL,1); | |
10 | -INSERT INTO bairro (datacriacao,dataedicao,datainativo,version,codigo,nome,autor_id,editor_id,inativador_id,cidade_id)VALUES(LOCALTIMESTAMP,LOCALTIMESTAMP,NULL,0,'1','Bairro 2',NULL,NULL,NULL,2); | |
11 | - | |
12 | -INSERT INTO estruturaorgao(id, datacriacao, dataedicao, version, autor_id, isOrgao, nome, sigla, dataReferenciaVigente) | |
13 | - VALUES (2, TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), 1, 1, true, 'Órgão Teste 2', 'Órgão 2', '2015-01-01 09:26:25'); | |
14 | -INSERT INTO estruturaorgao(id, datacriacao, dataedicao, version, autor_id, isOrgao, nome, sigla) | |
15 | - VALUES (3, TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), 1, 1, false, 'Estrutura Organizacional Teste 1.1 Almoxarifado', 'EOT1.1'); | |
16 | -INSERT INTO estruturaorgao(id, datacriacao, dataedicao, version, autor_id, isOrgao, nome, sigla) | |
17 | - VALUES (4, TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), 1, 1, false, 'Estrutura Organizacional Teste 1.2', 'EOT1.2'); | |
18 | -INSERT INTO estruturaorgao(id, datacriacao, dataedicao, version, autor_id, isOrgao, nome, sigla) | |
19 | - VALUES (5, TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), 1, 1, false, 'Estrutura Organizacional Teste 2.1', 'EOT2.1'); | |
20 | - | |
21 | -INSERT INTO orgaoitem(id, datacriacao, dataedicao, version, orgao_id, usuario_id) VALUES (1, TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), 1, 1, 1); | |
22 | -INSERT INTO orgaoitem(id, datacriacao, dataedicao, version, orgao_id, usuario_id) VALUES (2, TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), 1, 2, 1); | |
23 | - | |
24 | --- ENDERECO | |
25 | -INSERT INTO endereco(id, datacriacao, dataedicao, datainativo, version, cep, codigo, complemento, logradouro, nome, numero, bairro_id, cidade_id, dominiotipoendereco_id, pessoa_id, latitude, longitude) | |
26 | - VALUES (1, TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 10:26:27','YYYY-MM-DD HH24:MI:SS'), NULL, 0, '74043000', 'COD', 'COMPLEMENTO TESTE', 'LOG. TESTE', 'NOME TESTE', '0000', 1, 1, 7, NULL, 12, 14); | |
27 | - | |
28 | --- MAPA ORGANIZACIONAL | |
29 | -INSERT INTO mapaorganizacional(id, datacriacao, dataedicao, version, datainicio, nome, orgao_id) | |
30 | - VALUES (1, TO_DATE('2015-01-01 10:26:27','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 10:26:27','YYYY-MM-DD HH24:MI:SS'), 0, TO_DATE('2014-12-23','YYYY-MM-DD'), 'Mapa Organizacional 1', 1); | |
31 | - | |
32 | --- CONFIGURAÇÃO ESTRUTURA ORGANIZACIONAL ORGAO 1 | |
33 | -INSERT INTO configuracao(id, datacriacao, dataedicao, version, dominioStatusBemExtraviado_id) | |
34 | - VALUES (1, TO_DATE('2015-01-01 10:26:27','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 10:26:27','YYYY-MM-DD HH24:MI:SS'), 0, 63); | |
35 | --- CONFIGURAÇÃO ESTRUTURA ORGANIZACIONAL ORGAO 2 | |
36 | -INSERT INTO configuracao(id, datacriacao, dataedicao, version, dominioStatusBemExtraviado_id) | |
37 | - VALUES (2, TO_DATE('2015-01-01 10:26:27','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 10:26:27','YYYY-MM-DD HH24:MI:SS'), 0, 63); | |
38 | - | |
39 | --- LOCALIZACAO | |
40 | -INSERT INTO localizacao(id, datacriacao, dataedicao, version, nome, autor_id, editor_id, endereco_id, codigo, orgao_id) | |
41 | - VALUES (1, '2014-11-20', '2014-11-20', 1, 'Sala 101', 1, 1, 1, 'LOC0001', 1); | |
42 | - | |
43 | --- ESTRUTURA ORGANIZACIONAL - ORGAO | |
44 | -INSERT INTO estruturaorganizacional(id, classificacao, datainicio, possuibempatrimonial, dominiotipoestruturaorganizacional_id, localizacao_id, mapaorganizacional_id, codigo, almoxarifado, configuracao_id) | |
45 | - VALUES (1, 'classificação 1', '2015-01-01 09:26:25', false, 43, 1, 1, 456, false, 1); | |
46 | -INSERT INTO estruturaorganizacional(id, classificacao, datainicio,possuibempatrimonial, dominiotipoestruturaorganizacional_id, localizacao_id, mapaorganizacional_id, codigo, almoxarifado, configuracao_id) | |
47 | - VALUES (2, 'classificação 2', '2015-01-01 09:26:25', false, 43, 1, 1, 457, false, 2); | |
48 | - | |
49 | --- CLASSIFICAÇÃO MATERIAL | |
50 | -INSERT INTO classificacaomaterial( id, datacriacao, dataedicao, datainativo, version, codigo, descricao, dominiotipoclassificacaomaterial_id, dominiotipomaterial_id, classificacaomaterialparent_id, orgao_id) | |
51 | - VALUES (1, TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 10:26:27','YYYY-MM-DD HH24:MI:SS'), NULL, 0, 'COD 01', 'Superior 1', 3, 5, NULL, 1); | |
52 | - | |
53 | -INSERT INTO classificacaomaterial( id, datacriacao, dataedicao, datainativo, version, codigo, descricao, dominiotipoclassificacaomaterial_id, dominiotipomaterial_id, classificacaomaterialparent_id, orgao_id) | |
54 | - VALUES (2, TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 10:26:27','YYYY-MM-DD HH24:MI:SS'), NULL, 0, 'COD 02', 'Superior 2', 3, 5, NULL, 1); | |
55 | - | |
56 | -INSERT INTO classificacaomaterial( id, datacriacao, dataedicao, datainativo, version, codigo, descricao, dominiotipoclassificacaomaterial_id, dominiotipomaterial_id, classificacaomaterialparent_id, orgao_id) | |
57 | - VALUES (3, TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 10:26:27','YYYY-MM-DD HH24:MI:SS'), NULL, 0, 'COD 03', 'SubGrupo 21', 4, 5, 2, 1); | |
58 | - | |
59 | -INSERT INTO classificacaomaterial( id, datacriacao, dataedicao, datainativo, version, codigo, descricao, dominiotipoclassificacaomaterial_id, dominiotipomaterial_id, classificacaomaterialparent_id, orgao_id) | |
60 | - VALUES (4, TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 10:26:27','YYYY-MM-DD HH24:MI:SS'), NULL, 0, 'COD 04', 'SubGrupo 12', 4, 5, 1, 1); | |
61 | - | |
62 | -INSERT INTO classificacaomaterial( id, datacriacao, dataedicao, datainativo, version, codigo, descricao, dominiotipoclassificacaomaterial_id, dominiotipomaterial_id, classificacaomaterialparent_id, orgao_id) | |
63 | - VALUES (5, TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 10:26:27','YYYY-MM-DD HH24:MI:SS'), NULL, 0, 'COD 05', 'MATERIAL 121', 36, 5, 4, 1); | |
64 | - | |
65 | -INSERT INTO classificacaomaterial( id, datacriacao, dataedicao, datainativo, version, codigo, descricao, dominiotipoclassificacaomaterial_id, dominiotipomaterial_id, classificacaomaterialparent_id, orgao_id) | |
66 | - VALUES (6, TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 10:26:27','YYYY-MM-DD HH24:MI:SS'), NULL, 0, 'COD 06', 'MATERIAL 122', 36, 5, 4, 1); | |
67 | - | |
68 | -INSERT INTO classificacaomaterial( id, datacriacao, dataedicao, datainativo, version, codigo, descricao, dominiotipoclassificacaomaterial_id, dominiotipomaterial_id, classificacaomaterialparent_id, orgao_id) | |
69 | - VALUES (7, TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 10:26:27','YYYY-MM-DD HH24:MI:SS'), NULL, 0, 'COD 07', 'DETALHE 1211', 37, 5, 5, 1); | |
70 | - | |
71 | --- CONTA CONTABIL | |
72 | -INSERT INTO contacontabil(id, datacriacao, dataedicao, version, codigo, codigosistemaorigem, descricao, percentualnaodepreciavel, taxadepreciacaomensal, vidautil, | |
73 | - autor_id, editor_id, dominiotipocontacontabil_id, orgao_id) | |
74 | - VALUES (1, '2015-01-01 09:26:25', '2015-01-01 09:26:25', 0, 123456, 00001111, 'MAQUINA E EQUIPAMENTOS DE NATUREZA INDUSTRIAL', 0.3000, 0.1000, 180, | |
75 | - 1, 1, 99, 1); | |
76 | - | |
77 | -INSERT INTO contacontabilconfiguracaoreferencia(id, datacriacao, dataedicao, version, apresentarelatoriomovimentacaobem, autor_id, editor_id, contacontabil_id, mesreferencia) | |
78 | - VALUES (1, TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), 0, true, 1, 1, 1, TO_DATE('2015-01-01 09:26:25', 'YYYY-MM-DD HH24:MI:SS')); | |
79 | - | |
80 | -INSERT INTO contacontabil(id, datacriacao, dataedicao, version, codigo, codigosistemaorigem, descricao, percentualnaodepreciavel, taxadepreciacaomensal, vidautil, | |
81 | - autor_id, editor_id, dominiotipocontacontabil_id, orgao_id) | |
82 | - VALUES (2 ,'2015-01-01 09:26:25', '2015-01-01 09:26:25', 0, 123000, 00001111, 'EQUI.DE PROCESSAMENTO DE DADOS', 0.3000, 0.1000, 180, | |
83 | - 1, 1, 100, 1); | |
84 | - | |
85 | -INSERT INTO contacontabilconfiguracaoreferencia(id, datacriacao, dataedicao, version, apresentarelatoriomovimentacaobem, autor_id, editor_id, contacontabil_id, mesreferencia) | |
86 | - VALUES (2, TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), 0, true, 1, 1, 2, TO_DATE('2015-01-01 09:26:25', 'YYYY-MM-DD HH24:MI:SS')); | |
87 | - | |
88 | --- CONTA CONTABIL SALDO | |
89 | -INSERT INTO contacontabilsaldo(id, datacriacao, dataedicao, version, datareferencia, valor, autor_id, editor_id, contacontabil_id) | |
90 | - VALUES (1, '2015-01-01 09:26:25', '2015-01-01 09:26:25', 0, '2014-12-01 09:26:25', 0, 1, 1, 1); | |
91 | - | |
92 | -INSERT INTO contacontabilsaldo(id, datacriacao, dataedicao, version, datareferencia, valor, autor_id, editor_id, contacontabil_id) | |
93 | - VALUES (2, '2015-01-01 09:26:25', '2015-01-01 09:26:25', 0, '2014-12-01 09:26:25', 0, 1, 1, 2); | |
94 | - | |
95 | --- VINCULA CONTA CONTABIL AO SALDO ANTERIOR | |
96 | -UPDATE contacontabil SET contacontabilsaldoanterior_id=1 WHERE id = 1; | |
97 | -UPDATE contacontabil SET contacontabilsaldoanterior_id=2 WHERE id = 2; | |
98 | - | |
99 | --- VINCULA CONTA CONTABIL ALMOXARIFADO A CONFIGURACAO 1 DA ESTRUTURA ORGAO 1 | |
100 | -UPDATE configuracao SET contaContabilAlmoxarifado_id=1 WHERE id = 1; | |
101 | - | |
102 | --- CARACTERISTICA | |
103 | -INSERT INTO caracteristica(id, datacriacao, dataedicao, version, codigo, descricao, expressaoregular, tamanho, autor_id, editor_id, dominiotipodado_id, dominiotiporestricao_id, chavedominio, orgao_id) | |
104 | - VALUES (1, '2014-11-20', '2014-11-20', 0, 'CODCARACTERE', 'CARACTERE', '', 30, 1, 1, 12, 9, 'tipoRestricao', 1); | |
105 | -INSERT INTO caracteristica(id, datacriacao, dataedicao, version, codigo, descricao, expressaoregular, tamanho, autor_id, editor_id, dominiotipodado_id, dominiotiporestricao_id, chavedominio, orgao_id) | |
106 | - VALUES (2, '2014-11-20', '2014-11-20', 0, 'CODTEXT_AREA', 'TEXT_AREA', '', 300, 1, 1, 13, 9, 'tipoRestricao', 1); | |
107 | -INSERT INTO caracteristica(id, datacriacao, dataedicao, version, codigo, descricao, expressaoregular, tamanho, autor_id, editor_id, dominiotipodado_id, dominiotiporestricao_id, chavedominio, orgao_id) | |
108 | - VALUES (3, '2014-11-20', '2014-11-20', 0, 'CODNUMBER', 'NUMBER', '', null, 1, 1, 14, 9, 'tipoRestricao', 1); | |
109 | -INSERT INTO caracteristica(id, datacriacao, dataedicao, version, codigo, descricao, expressaoregular, tamanho, autor_id, editor_id, dominiotipodado_id, dominiotiporestricao_id, chavedominio, orgao_id) | |
110 | - VALUES (4, '2014-11-20', '2014-11-20', 0, 'CODDECIMAL', 'DECIMAL', '', null, 1, 1, 15, 9, 'tipoRestricao', 1); | |
111 | -INSERT INTO caracteristica(id, datacriacao, dataedicao, version, codigo, descricao, expressaoregular, tamanho, autor_id, editor_id, dominiotipodado_id, dominiotiporestricao_id, chavedominio, orgao_id) | |
112 | - VALUES (5, '2014-11-20', '2014-11-20', 0, 'CODDATA', 'DATA', '', 10, 1, 1, 55, 9, 'tipoRestricao', 1); | |
113 | -INSERT INTO caracteristica(id, datacriacao, dataedicao, version, codigo, descricao, expressaoregular, tamanho, autor_id, editor_id, dominiotipodado_id, dominiotiporestricao_id, chavedominio, orgao_id) | |
114 | - VALUES (6, '2014-11-20', '2014-11-20', 0, 'CODTIPO_DOMINIO', 'TIPO_DOMINIO', '', null, 1, 1, 56, 9, 'tipoRestricao', 1); | |
115 | -INSERT INTO caracteristica(id, datacriacao, dataedicao, version, codigo, descricao, expressaoregular, tamanho, autor_id, editor_id, dominiotipodado_id, dominiotiporestricao_id, chavedominio, orgao_id) | |
116 | - VALUES (7, '2014-11-20', '2014-11-20', 0, 'CODARQUIVO', 'ARQUIVO', '', 5, 1, 1, 57, 9, 'tipoRestricao', 1); | |
117 | - | |
118 | --- MATERIAL PERMANENTE | |
119 | -INSERT INTO material(id, datacriacao, dataedicao, version, descricao, dominiotipomaterial_id, orgao_id, dominiounidademedida_id, contacontabil_id, classificacaomaterial_id) | |
120 | - VALUES (1, TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), 0, 'Material Permanente 1', 6, 1, 66, 1, 7); | |
121 | - | |
122 | --- Material Consumo | |
123 | -INSERT INTO material(id, datacriacao, dataedicao, version, descricao, dominiotipomaterial_id, orgao_id, dominiounidademedida_id, contacontabil_id) | |
124 | - VALUES (2, TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), 0, 'Material Consumo', 5, 1, 50, 1); | |
125 | - | |
126 | --- ESTRUTURA ORGANIZACIONAL FILHAS ORGAO | |
127 | -INSERT INTO estruturaorganizacional(id, classificacao, datainicio, possuibempatrimonial, dominiotipoestruturaorganizacional_id, localizacao_id, mapaorganizacional_id, orgao_id, codigo, almoxarifado, estruturaOrganizacionalParent_id) | |
128 | - VALUES (3, 'classificação 1.1', '2015-01-01 09:26:25', true, 43, 1, 1, 1, 457, true, 1); | |
129 | -INSERT INTO estruturaorganizacional(id, classificacao, datainicio, possuibempatrimonial, dominiotipoestruturaorganizacional_id, localizacao_id, mapaorganizacional_id, orgao_id, codigo, almoxarifado, estruturaOrganizacionalParent_id) | |
130 | - VALUES (4, 'classificação 1.2', '2015-01-01 09:26:25', true, 43, 1, 1, 1, 458, false, 1); | |
131 | -INSERT INTO estruturaorganizacional(id, classificacao, datainicio, possuibempatrimonial, dominiotipoestruturaorganizacional_id, localizacao_id, mapaorganizacional_id, orgao_id, codigo, almoxarifado, estruturaOrganizacionalParent_id) | |
132 | - VALUES (5, 'classificação 2.1', '2015-01-01 09:26:25', true, 43, 1, 1, 2, 459, false, 2); | |
133 | - | |
134 | --- CONFIGURAÇÃO ALMOXARIFADO | |
135 | -INSERT INTO configuracaoalmoxarifado(id, datacriacao, dataedicao, version, configuracao_id, estruturaOrganizacional_id) | |
136 | - VALUES (1, TO_DATE('2015-01-01 10:26:27','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 10:26:27','YYYY-MM-DD HH24:MI:SS'), 0, 1, 3); | |
137 | - | |
138 | --- FUNCAO | |
139 | -INSERT INTO funcao(id, datacriacao, dataedicao, version, nome) | |
140 | - VALUES (1, TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 10:26:27','YYYY-MM-DD HH24:MI:SS'), 0, 'Função 1'); | |
141 | - | |
142 | -INSERT INTO funcao(id, datacriacao, dataedicao, version, nome) | |
143 | - VALUES (2, TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 10:26:27','YYYY-MM-DD HH24:MI:SS'), 0, 'Função 2'); | |
144 | - | |
145 | -INSERT INTO funcao(id, datacriacao, dataedicao, version, nome) | |
146 | - VALUES (3, TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 10:26:27','YYYY-MM-DD HH24:MI:SS'), 0, 'Função 3'); | |
147 | - | |
148 | --- CLASSE PARCEIRO | |
149 | - | |
150 | -INSERT INTO classeparceiro(id, dominiotipoparceiro_id) | |
151 | - VALUES (1, 19); | |
152 | - | |
153 | -INSERT INTO classeparceiro(id, dominiotipoparceiro_id) | |
154 | - VALUES (2, 17); | |
155 | - | |
156 | -INSERT INTO classeparceiro(id, dominiotipoparceiro_id) | |
157 | - VALUES (3, 16); | |
158 | - | |
159 | -INSERT INTO classeparceiro(id, dominiotipoparceiro_id) | |
160 | - VALUES (4, 18); | |
161 | - | |
162 | -INSERT INTO classeparceiro(id, dominiotipoparceiro_id) | |
163 | - VALUES (5, 16); | |
164 | - | |
165 | --- PESSOA | |
166 | -INSERT INTO pessoa(id, datacriacao, dataedicao, version, nome, dominio_pessoa, orgao_id) | |
167 | - VALUES(1, '2015-01-01 09:26:25', '2015-01-01 09:26:25', 0, 'Colaborador', 22, 1); | |
168 | - | |
169 | --- PESSOA FISICA | |
170 | -INSERT INTO pessoafisica(cpf, datanascimento, nomemae, nomepai, numeropassaporte, rg, tituloeleitor, dominio_estado_civil, dominio_sexo, pessoa_id) | |
171 | - VALUES ('12345678', '2015-01-01 09:26:25', 'teste', 'teste', '123456', '123456', '123456', 40, 38, 1); | |
172 | - | |
173 | --- PARCEIRO | |
174 | -INSERT INTO parceiro(id, datacriacao, dataedicao, version, codigo, autor_id, editor_id, classeparceiro_id, pessoa_id) | |
175 | - VALUES (1, '2015-01-01 09:26:25', '2015-01-01 09:26:25', 0, 123, 1, 1, 1, 1); | |
176 | - | |
177 | --- PARCEIRO COLABORADOR | |
178 | -INSERT INTO parceiro_colaborador(id, estruturaorganizacional_id, funcao_id) | |
179 | - VALUES (1, 1, 1); | |
180 | - | |
181 | --- PARCEIRO FORNECEDOR | |
182 | -INSERT INTO parceiro(id, datacriacao, dataedicao, version, codigo, autor_id, editor_id, classeparceiro_id, pessoa_id) | |
183 | - VALUES (3, '2015-01-01 09:26:25', '2015-01-01 09:26:25', 0, 123, 1, 1, 3, 1); | |
184 | - -- FORNECEDOR | |
185 | -INSERT INTO fornecedor(id, estrangeiro, comprasEletronicas) | |
186 | - VALUES (3, false, true ); | |
187 | - | |
188 | --- FORNCEDOR RAMO ATIVIDADE | |
189 | -INSERT INTO fornecedorramoatividade(id, datacriacao, dataedicao, version, grupofederalsupply_id, subgrupofederalsupply_id, fornecedor_id) | |
190 | - VALUES (1, '2015-01-01 09:26:25', '2015-01-01 09:26:25', 0, 1, 2, 3); | |
191 | - | |
192 | - | |
193 | --- liberado a partir do 109 | |
194 | - | |
195 | -update public.menu set ativo = true; | |
196 | - | |
197 | --- FILES DO MENU | |
198 | - | |
199 | -INSERT INTO menufile( | |
200 | - datacriacao, dataedicao, version, caminho, dominiomenufile_id, menu_id) | |
201 | - VALUES (TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), 1, | |
202 | - '/cit-adm-materiais-web/angular/repository/DocumentoRepository.js', 2, 16); | |
203 | - | |
204 | -INSERT INTO menufile( | |
205 | - datacriacao, dataedicao, version, caminho, dominiomenufile_id, menu_id) | |
206 | - VALUES (TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), 1, | |
207 | - '/cit-adm-materiais-web/angular/directive/AssociarDocumentoDirective.js', 2, 16); | |
208 | - | |
209 | -INSERT INTO menufile( | |
210 | - datacriacao, dataedicao, version, caminho, dominiomenufile_id, menu_id) | |
211 | - VALUES (TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), 1, | |
212 | - '/citgrp-patrimonio-web/angular/repository/AnexoRepository.js', 2, 16); | |
213 | - | |
214 | -INSERT INTO menufile( | |
215 | - datacriacao, dataedicao, version, caminho, dominiomenufile_id, menu_id) | |
216 | - VALUES (TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), 1, | |
217 | - '/citgrp-patrimonio-web/angular/controller/MaterialController.js', 2, 17); | |
218 | - | |
219 | -INSERT INTO menufile( | |
220 | - datacriacao, dataedicao, version, caminho, dominiomenufile_id, menu_id) | |
221 | - VALUES (TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), 1, | |
222 | - '/citgrp-patrimonio-web/angular/controller/MaterialListController.js', 2, 17); | |
223 | - | |
224 | -INSERT INTO menufile( | |
225 | - datacriacao, dataedicao, version, caminho, dominiomenufile_id, menu_id) | |
226 | - VALUES (TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), 1, | |
227 | - '/citgrp-patrimonio-web/angular/repository/MaterialRepository.js', 2, 17); | |
228 | - | |
229 | -INSERT INTO menufile( | |
230 | - datacriacao, dataedicao, version, caminho, dominiomenufile_id, menu_id) | |
231 | - VALUES (TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), 1, | |
232 | - '/citgrp-patrimonio-web/angular/repository/MaterialConsumoRepository.js', 2, 17); | |
233 | - | |
234 | -INSERT INTO menufile( | |
235 | - datacriacao, dataedicao, version, caminho, dominiomenufile_id, menu_id) | |
236 | - VALUES (TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), 1, | |
237 | - '/citgrp-patrimonio-web/angular/repository/MaterialImagemRepository.js', 2, 17); | |
238 | - | |
239 | -INSERT INTO menufile( | |
240 | - datacriacao, dataedicao, version, caminho, dominiomenufile_id, menu_id) | |
241 | - VALUES (TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), 1, | |
242 | - '/citgrp-patrimonio-web/angular/repository/ContaContabilRepository.js', 2, 15); | |
243 | - | |
244 | - | |
245 | -INSERT INTO menufile( | |
246 | - datacriacao, dataedicao, version, caminho, dominiomenufile_id, menu_id) | |
247 | - VALUES (TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), 1, | |
248 | - '/cit-adm-materiais-web/angular/controller/EstruturaOrganizacionalController.js', 2, 21); | |
249 | - | |
250 | -INSERT INTO menufile( | |
251 | - datacriacao, dataedicao, version, caminho, dominiomenufile_id, menu_id) | |
252 | - VALUES (TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), 1, | |
253 | - '/cit-adm-materiais-web/angular/repository/EstruturaOrganizacionalRepository.js', 2, 21); | |
254 | - | |
255 | -INSERT INTO menufile( | |
256 | - datacriacao, dataedicao, version, caminho, dominiomenufile_id, menu_id) | |
257 | - VALUES (TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), 1, | |
258 | - '/cit-adm-materiais-web/angular/repository/EstruturaOrganizacionalResponsavelRepository.js', 2, 21); | |
259 | - | |
260 | -INSERT INTO menufile( | |
261 | - datacriacao, dataedicao, version, caminho, dominiomenufile_id, menu_id) | |
262 | - VALUES (TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), 1, | |
263 | - '/citgrp-patrimonio-web/angular/repository/MaterialCaracteristicaRepository.js', 2, 15); | |
264 | - | |
265 | - | |
266 | -INSERT INTO menufile( | |
267 | - datacriacao, dataedicao, version, caminho, dominiomenufile_id, menu_id) | |
268 | - VALUES (TO_DATE('2014-12-29 11:16:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2014-12-29 11:16:25','YYYY-MM-DD HH24:MI:SS'), 1, | |
269 | - '/cit-adm-materiais-web/angular/repository/ContaContabilRepository.js', 2, 33); | |
270 | - | |
271 | -INSERT INTO menufile( | |
272 | - datacriacao, dataedicao, version, caminho, dominiomenufile_id, menu_id) | |
273 | - VALUES (TO_DATE('2014-12-29 11:16:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2014-12-29 11:16:25','YYYY-MM-DD HH24:MI:SS'), 1, | |
274 | - '/citgrp-patrimonio-web/angular/controller/ContaContabilController.js', 2, 33); | |
275 | - | |
276 | -INSERT INTO menufile( | |
277 | - datacriacao, dataedicao, version, caminho, dominiomenufile_id, menu_id) | |
278 | - VALUES (TO_DATE('2014-12-29 11:16:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2014-12-29 11:16:25','YYYY-MM-DD HH24:MI:SS'), 1, | |
279 | - '/citgrp-patrimonio-web/angular/controller/ContaContabilListController.js', 2, 33); | |
280 | - | |
281 | - | |
282 | - | |
283 | --- ALTER SEQUENCE | |
284 | -ALTER SEQUENCE seguranca_usuario_id_seq RESTART WITH 500; | |
285 | -ALTER SEQUENCE seguranca_usuario_privilegio_id_seq RESTART WITH 500; | |
286 | -ALTER SEQUENCE menu_id_seq RESTART WITH 500; | |
287 | -ALTER SEQUENCE pagina_id_seq RESTART WITH 500; | |
288 | -ALTER SEQUENCE dominio_id_seq RESTART WITH 500; | |
289 | -ALTER SEQUENCE menufile_id_seq RESTART WITH 500; | |
290 | -ALTER SEQUENCE endereco_id_seq RESTART WITH 500; | |
291 | -ALTER SEQUENCE cidade_id_seq RESTART WITH 500; | |
292 | -ALTER SEQUENCE pais_id_seq RESTART WITH 500; | |
293 | -ALTER SEQUENCE bairro_id_seq RESTART WITH 500; | |
294 | -ALTER SEQUENCE regiao_id_seq RESTART WITH 500; | |
295 | -ALTER SEQUENCE caracteristica_id_seq RESTART WITH 500; | |
296 | -ALTER SEQUENCE classificacaomaterial_id_seq RESTART WITH 500; | |
297 | -ALTER SEQUENCE material_id_seq RESTART WITH 500; | |
298 | -ALTER SEQUENCE localizacao_id_seq RESTART WITH 500; | |
299 | -ALTER SEQUENCE regiao_id_seq RESTART WITH 500; | |
300 | -ALTER SEQUENCE estado_id_seq RESTART WITH 500; | |
301 | -ALTER SEQUENCE pessoa_id_seq RESTART WITH 500; | |
302 | -ALTER SEQUENCE parceiro_id_seq RESTART WITH 500; | |
303 | -ALTER SEQUENCE estruturaorgao_id_seq RESTART WITH 500; | |
304 | -ALTER SEQUENCE fornecedorramoatividade_id_seq RESTART WITH 500; | |
305 | -ALTER SEQUENCE contacontabil_id_seq RESTART WITH 500; | |
306 | -ALTER SEQUENCE termoresponsabilidade_id_seq RESTART WITH 500; | |
307 | -ALTER SEQUENCE configuracao_id_seq RESTART WITH 500; | |
308 | -ALTER SEQUENCE configuracaoalmoxarifado_id_seq RESTART WITH 500; | |
309 | -ALTER SEQUENCE inventariocomissaointegrante_id_seq RESTART WITH 500; | |
310 | -ALTER SEQUENCE inventariocomissaointegrante_id_seq RESTART WITH 500; | |
311 | -ALTER SEQUENCE mapaorganizacional_id_seq RESTART WITH 500; | |
312 | -ALTER SEQUENCE contacontabilsaldo_id_seq RESTART WITH 500; | |
313 | -ALTER SEQUENCE orgaoitem_id_seq RESTART WITH 500; | |
314 | -ALTER SEQUENCE contacontabilconfiguracaoreferencia_id_seq RESTART WITH 500; | |
315 | -ALTER SEQUENCE grupo_id_seq RESTART WITH 500; | |
316 | -ALTER SEQUENCE painel_id_seq RESTART WITH 500; | |
317 | - | |
318 | --- Pessoa | |
319 | -INSERT INTO pessoa(id, datacriacao, dataedicao, version, nome, dominio_pessoa, orgao_id) | |
320 | - VALUES(2, TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 10:26:27','YYYY-MM-DD HH24:MI:SS'), 0, 'Pessoa 1', 22, 1); | |
321 | - | |
322 | --- PESSOA JURIDICA | |
323 | -INSERT INTO pessoajuridica(cnpj, filantropico, filial, impostosimples, inscricaoestadual, inscricaomunicipal, nomefantasia, razaosocial, site, dominio_abrangencia, dominio_porte, pessoa_id) | |
324 | - VALUES ('12345678', true, true, true, 'teste', 'teste', 'teste', 'teste', 'teste', 46, 47, 2); | |
325 | - | |
326 | - | |
327 | -INSERT INTO pessoa(id, datacriacao, dataedicao, version, nome, dominio_pessoa, orgao_id) | |
328 | - VALUES(3, TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 10:26:27','YYYY-MM-DD HH24:MI:SS'), 0, 'Pessoa 2', 22, 1); | |
329 | - | |
330 | -INSERT INTO pessoa(id, datacriacao, dataedicao, version, nome, dominio_pessoa, orgao_id) | |
331 | - VALUES(4, TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 10:26:27','YYYY-MM-DD HH24:MI:SS'), 0, 'Pessoa 3', 22, 1); | |
332 | - | |
333 | --- PESSOA COLABORADOR | |
334 | -INSERT INTO pessoa(id, datacriacao, dataedicao, version, nome, dominio_pessoa, orgao_id) | |
335 | - VALUES(5, '2015-01-01 09:26:25', '2015-01-01 09:26:25', 0, 'Colaborador 2', 22, 1); | |
336 | - | |
337 | -INSERT INTO parceiro(id, datacriacao, dataedicao, "version", codigo, classeparceiro_id, pessoa_id) | |
338 | - VALUES (2, TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), 1, '001', 1, 5); | |
339 | - | |
340 | -INSERT INTO parceiro_colaborador(id, estruturaorganizacional_id, funcao_id) VALUES (2, 1, 1); | |
341 | - | |
342 | --- PESSOA COLABORADOR | |
343 | -INSERT INTO pessoa(id, datacriacao, dataedicao, version, nome, dominio_pessoa, orgao_id) | |
344 | - VALUES(6, '2015-01-01 09:26:25', '2015-01-01 09:26:25', 0, 'Colaborador 3', 22, 1); | |
345 | - | |
346 | -INSERT INTO parceiro(id, datacriacao, dataedicao, "version", codigo, classeparceiro_id, pessoa_id) | |
347 | - VALUES (4, TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), 1, '001', 1, 6); | |
348 | - | |
349 | -INSERT INTO parceiro_colaborador(id, estruturaorganizacional_id, funcao_id) VALUES (4, 1, 1); | |
350 | - | |
351 | -INSERT INTO inventariocomissao(datacriacao, dataedicao, version, codigo, dataformacao, nome, numprocesso, portaria, autor_id, editor_id, estruturaorganizacional_id, orgao_id, presidente_id) VALUES ('2014-12-30 00:00:00', '2014-12-30 00:00:00', 1, 1, '2014-12-30', 'Comissão de Teste', '201400009002245', 1234, 1, 1, 1, 1, 1); | |
352 | -INSERT INTO inventariocomissaointegrante(id, datacriacao, dataedicao, version, integrante_id, inventariocomissao_id) VALUES (1, TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), 0, 1, 1); | |
353 | -INSERT INTO inventariocomissaointegrante(id, datacriacao, dataedicao, version, integrante_id, inventariocomissao_id) VALUES (2, TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), 0, 2, 1); | |
354 | -INSERT INTO inventariocomissaointegrante(id, datacriacao, dataedicao, version, integrante_id, inventariocomissao_id) VALUES (3, TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), 0, 4, 1); | |
355 | - | |
356 | --- PESSOA PORTADOR | |
357 | -INSERT INTO pessoa(id, datacriacao, dataedicao, version, nome, dominio_pessoa, orgao_id) | |
358 | - VALUES(7, '2015-01-01 09:26:25', '2015-01-01 09:26:25', 0, 'Portador', 22, 1); | |
359 | - | |
360 | --- PARCEIRO PORTADOR | |
361 | -INSERT INTO parceiro(id, datacriacao, dataedicao, "version", codigo, classeparceiro_id, pessoa_id) | |
362 | - VALUES (5, TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), 1, '001', 4, 7); | |
363 | - | |
364 | --- PORTADOR | |
365 | -INSERT INTO parceiro_portador(id) VALUES (5); | |
366 | - | |
367 | --- PESSOA FORNECEDOR | |
368 | -INSERT INTO pessoa(id, datacriacao, dataedicao, version, nome, dominio_pessoa, orgao_id) | |
369 | - VALUES(8, '2015-01-01 09:26:25', '2015-01-01 09:26:25', 0, 'Fornecedor', 22, 1); | |
370 | - | |
371 | --- PARCEIRO FORNECEDOR | |
372 | -INSERT INTO parceiro(id, datacriacao, dataedicao, version, codigo, autor_id, editor_id, classeparceiro_id, pessoa_id) | |
373 | - VALUES (6, '2015-01-01 09:26:25', '2015-01-01 09:26:25', 0, 123, 1, 1, 3, 8); | |
374 | - | |
375 | --- FORNECEDOR | |
376 | -INSERT INTO fornecedor(id, estrangeiro, comprasEletronicas) | |
377 | - VALUES (6, false, true ); | |
378 | - | |
379 | --- PESSOA ORGAO EXTERNO | |
380 | -INSERT INTO pessoa(id, datacriacao, dataedicao, version, nome, dominio_pessoa, orgao_id) | |
381 | - VALUES(9, '2015-01-01 09:26:25', '2015-01-01 09:26:25', 0, 'Orgão Externo', 22, 1); | |
382 | - | |
383 | --- PARCEIRO ORGAO EXTERNO | |
384 | -INSERT INTO parceiro(id, datacriacao, dataedicao, version, codigo, autor_id, editor_id, classeparceiro_id, pessoa_id) | |
385 | - VALUES (7, '2015-01-01 09:26:25', '2015-01-01 09:26:25', 0, 123, 1, 1, 2, 9); | |
386 | - | |
387 | --- ORGAO EXTERNO | |
388 | -INSERT INTO orgaoexterno(sigla, id) VALUES ('OE', 7); | |
389 | - | |
390 | --- PESSOA COLABORADOR | |
391 | -INSERT INTO pessoa(id, datacriacao, dataedicao, version, nome, dominio_pessoa, orgao_id) | |
392 | - VALUES(10, '2015-01-01 09:26:25', '2015-01-01 09:26:25', 0, 'Colaborador 4', 22, 1); | |
393 | - | |
394 | -INSERT INTO parceiro(id, datacriacao, dataedicao, "version", codigo, classeparceiro_id, pessoa_id) | |
395 | - VALUES (10, TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), 1, '001', 1, 10); | |
396 | - | |
397 | -INSERT INTO parceiro_colaborador(id, estruturaorganizacional_id, funcao_id) VALUES (10, 1, 1); | |
398 | - | |
399 | - | |
400 | --- ACCESS ROLES | |
401 | -INSERT INTO accessrole(id, datacriacao, dataedicao, datainativo, version, url, roles) VALUES (1, TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 10:26:27','YYYY-MM-DD HH24:MI:SS'), NULL, 0, '/html/**', 'ROLE_ADMIN'); | |
402 | -INSERT INTO accessrole(id, datacriacao, dataedicao, datainativo, version, url, roles) VALUES (2, TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 10:26:27','YYYY-MM-DD HH24:MI:SS'), NULL, 0, '/admin/**', 'ROLE_ADMIN,ROLE_MANAGER'); | |
403 | - | |
404 | --- JORNADA TRABALHO - carlos.santos em 10.02.2015 | |
405 | -INSERT INTO workday(id, datacriacao, dataedicao, datainativo, version, description) | |
406 | - VALUES (1, TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 10:26:27','YYYY-MM-DD HH24:MI:SS'), NULL, 0, 'Jornada padrão'); | |
407 | - | |
408 | -INSERT INTO workday(id, datacriacao, dataedicao, datainativo, version, description) | |
409 | - VALUES (2, TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 10:26:27','YYYY-MM-DD HH24:MI:SS'), NULL, 0, 'Jornada horas corridas'); | |
410 | - | |
411 | --- HORARIO JORNADA TRABALHO - carlos.santos em 10.02.2015 | |
412 | -INSERT INTO worktime(id, starttime, endtime, workday_id) | |
413 | - VALUES (1, TO_DATE('2000-01-01 08:00:00','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2000-01-01 12:00:00','YYYY-MM-DD HH24:MI:SS'), 1); | |
414 | - | |
415 | -INSERT INTO worktime(id, starttime, endtime, workday_id) | |
416 | - VALUES (2, TO_DATE('2000-01-01 14:00:00','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2000-01-01 18:00:00','YYYY-MM-DD HH24:MI:SS'), 1); | |
417 | - | |
418 | -INSERT INTO worktime(id, starttime, endtime, workday_id) | |
419 | - VALUES (3, TO_DATE('2000-01-01 00:00:00','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2000-01-01 24:00:00','YYYY-MM-DD HH24:MI:SS'), 2); | |
420 | - | |
421 | --- CALENDARIO - carlos.santos em 10.02.2015 | |
422 | -INSERT INTO workcalendar(id, datacriacao, dataedicao, datainativo, version, | |
423 | - considerholiday, description, workdaymon_id, workdaytue_id, workdaywed_id, workdaythu_id, workdayfri_id) | |
424 | - VALUES (1, TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 10:26:27','YYYY-MM-DD HH24:MI:SS'), NULL, 0, | |
425 | - true, 'Calendário padrão', 1, 1, 1, 1, 1); | |
426 | - | |
427 | -INSERT INTO workcalendar(id, datacriacao, dataedicao, datainativo, version, | |
428 | - considerholiday, description, workdaymon_id, workdaytue_id, workdaywed_id, workdaythu_id, workdayfri_id) | |
429 | - VALUES (2, TO_DATE('2015-01-01 09:26:25','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2015-01-01 10:26:27','YYYY-MM-DD HH24:MI:SS'), NULL, 0, | |
430 | - true, 'Calendário horas corridas', 2, 2, 2, 2, 2); | |
431 | - | |
432 | --- WIDGET | |
433 | -INSERT INTO public.widget ("id", "databloqueio", "datainativo", "datacriacao", "dataedicao", "version", "apresentarurlservico", "descricao", "nome", "urlservico", "inativador_id", "autor_id", "editor_id", "tipocomponente_id") | |
434 | -VALUES (6, NULL, NULL, E'2015-04-02 10:17:33.535', E'2015-04-02 10:17:33.535', 0, True, E'HighChart', E'HighChart', NULL, NULL, 1, 1, 188); | |
435 | - | |
436 | -INSERT INTO public.widget ("id", "databloqueio", "datainativo", "datacriacao", "dataedicao", "version", "apresentarurlservico", "descricao", "nome", "urlservico", "inativador_id", "autor_id", "editor_id", "tipocomponente_id") | |
437 | -VALUES (7, NULL, NULL, E'2015-04-02 10:23:04.388', E'2015-04-02 10:23:04.388', 0, True, E'Google Chart', E'Google Chart', NULL, NULL, 1, 1, 211); | |
438 | - | |
439 | -INSERT INTO public.widget ("id", "databloqueio", "datainativo", "datacriacao", "dataedicao", "version", "apresentarurlservico", "descricao", "nome", "urlservico", "inativador_id", "autor_id", "editor_id", "tipocomponente_id") | |
440 | -VALUES (8, NULL, NULL, E'2015-04-02 10:27:08.019', E'2015-04-02 10:27:08.019', 0, True, E'Google Chart Gauge', E'Google Chart Gauge', NULL, NULL, 1, 1, 201); | |
441 | - | |
442 | -INSERT INTO public.widget ("id", "databloqueio", "datainativo", "datacriacao", "dataedicao", "version", "apresentarurlservico", "descricao", "nome", "urlservico", "inativador_id", "autor_id", "editor_id", "tipocomponente_id") | |
443 | -VALUES (9, NULL, NULL, E'2015-04-02 10:27:08.019', E'2015-04-02 10:27:08.019', 0, True, E'Html', E'Html', NULL, NULL, 1, 1, 269); | |
444 | - | |
445 | -INSERT INTO public.widget ("id", "databloqueio", "datainativo", "datacriacao", "dataedicao", "version", "apresentarurlservico", "descricao", "nome", "urlservico", "inativador_id", "autor_id", "editor_id", "tipocomponente_id") | |
446 | -VALUES (10, NULL, NULL, E'2015-04-02 10:27:08.019', E'2015-04-02 10:27:08.019', 0, True, E'Notícia', E'Notícia', NULL, NULL, 1, 1, 210); | |
447 | - | |
448 | -INSERT INTO public.widget ("id", "databloqueio", "datainativo", "datacriacao", "dataedicao", "version", "apresentarurlservico", "descricao", "nome", "urlservico", "inativador_id", "autor_id", "editor_id", "tipocomponente_id") | |
449 | -VALUES (11, NULL, NULL, E'2015-04-02 10:27:08.019', E'2015-04-02 10:27:08.019', 0, True, E'Temperatura', E'Temperatura', NULL, NULL, 1, 1, 209); | |
450 | - | |
451 | -INSERT INTO public.widget ("id", "databloqueio", "datainativo", "datacriacao", "dataedicao", "version", "apresentarurlservico", "descricao", "nome", "urlservico", "inativador_id", "autor_id", "editor_id", "tipocomponente_id") | |
452 | -VALUES (12, NULL, NULL, E'2015-04-02 10:27:08.019', E'2015-04-02 10:27:08.019', 0, True, E'Link', E'Link', NULL, NULL, 1, 1, 198); | |
453 | - | |
454 | -/* Data for the 'public.widgetparametro' table (Records 1 - 16) */ | |
455 | - | |
456 | -INSERT INTO public.widgetparametro ("id", "databloqueio", "datainativo", "datacriacao", "dataedicao", "version", "booleandefault", "chavedominiodefault", "datadefault", "nome", "numerodefault", "textodefault", "inativador_id", "autor_id", "editor_id", "dominiodefault_id", "tipowidgetparametrodominio_id", "widget_id", "widgetinativo_id") | |
457 | -VALUES (21, NULL, NULL, E'2015-04-02 10:17:33.567', E'2015-04-02 10:17:33.567', 0, False, E'tipoHighChart', NULL, E'tipoHighChart', NULL, NULL, NULL, 1, 1, 193, 56, 6, NULL); | |
458 | - | |
459 | -INSERT INTO public.widgetparametro ("id", "databloqueio", "datainativo", "datacriacao", "dataedicao", "version", "booleandefault", "chavedominiodefault", "datadefault", "nome", "numerodefault", "textodefault", "inativador_id", "autor_id", "editor_id", "dominiodefault_id", "tipowidgetparametrodominio_id", "widget_id", "widgetinativo_id") | |
460 | -VALUES (22, NULL, NULL, E'2015-04-02 10:17:33.571', E'2015-04-02 10:17:33.571', 0, False, NULL, NULL, E'titulo', NULL, E'titulo', NULL, 1, 1, NULL, 13, 6, NULL); | |
461 | - | |
462 | -INSERT INTO public.widgetparametro ("id", "databloqueio", "datainativo", "datacriacao", "dataedicao", "version", "booleandefault", "chavedominiodefault", "datadefault", "nome", "numerodefault", "textodefault", "inativador_id", "autor_id", "editor_id", "dominiodefault_id", "tipowidgetparametrodominio_id", "widget_id", "widgetinativo_id") | |
463 | -VALUES (23, NULL, NULL, E'2015-04-02 10:17:33.574', E'2015-04-02 10:17:33.574', 0, False, NULL, NULL, E'sub titulo', NULL, E'sub titulo', NULL, 1, 1, NULL, 13, 6, NULL); | |
464 | - | |
465 | -INSERT INTO public.widgetparametro ("id", "databloqueio", "datainativo", "datacriacao", "dataedicao", "version", "booleandefault", "chavedominiodefault", "datadefault", "nome", "numerodefault", "textodefault", "inativador_id", "autor_id", "editor_id", "dominiodefault_id", "tipowidgetparametrodominio_id", "widget_id", "widgetinativo_id") | |
466 | -VALUES (24, NULL, NULL, E'2015-04-02 10:23:04.391', E'2015-04-02 10:23:04.391', 0, False, NULL, NULL, E'hAxis titulo', NULL, E'hAxis titulo', NULL, 1, 1, NULL, 12, 7, NULL); | |
467 | - | |
468 | -INSERT INTO public.widgetparametro ("id", "databloqueio", "datainativo", "datacriacao", "dataedicao", "version", "booleandefault", "chavedominiodefault", "datadefault", "nome", "numerodefault", "textodefault", "inativador_id", "autor_id", "editor_id", "dominiodefault_id", "tipowidgetparametrodominio_id", "widget_id", "widgetinativo_id") | |
469 | -VALUES (25, NULL, NULL, E'2015-04-02 10:23:04.394', E'2015-04-02 10:23:04.394', 0, False, NULL, NULL, E'vAxis titulo', NULL, E'vAxis titulo', NULL, 1, 1, NULL, 12, 7, NULL); | |
470 | - | |
471 | -INSERT INTO public.widgetparametro ("id", "databloqueio", "datainativo", "datacriacao", "dataedicao", "version", "booleandefault", "chavedominiodefault", "datadefault", "nome", "numerodefault", "textodefault", "inativador_id", "autor_id", "editor_id", "dominiodefault_id", "tipowidgetparametrodominio_id", "widget_id", "widgetinativo_id") | |
472 | -VALUES (26, NULL, NULL, E'2015-04-02 10:23:04.397', E'2015-04-02 10:23:04.397', 0, True, NULL, NULL, E'isStacked', NULL, NULL, NULL, 1, 1, NULL, 197, 7, NULL); | |
473 | - | |
474 | -INSERT INTO public.widgetparametro ("id", "databloqueio", "datainativo", "datacriacao", "dataedicao", "version", "booleandefault", "chavedominiodefault", "datadefault", "nome", "numerodefault", "textodefault", "inativador_id", "autor_id", "editor_id", "dominiodefault_id", "tipowidgetparametrodominio_id", "widget_id", "widgetinativo_id") | |
475 | -VALUES (27, NULL, NULL, E'2015-04-02 10:23:04.400', E'2015-04-02 10:23:04.400', 0, False, NULL, NULL, E'Titulo', NULL, E'Titulo', NULL, 1, 1, NULL, 12, 7, NULL); | |
476 | - | |
477 | -INSERT INTO public.widgetparametro ("id", "databloqueio", "datainativo", "datacriacao", "dataedicao", "version", "booleandefault", "chavedominiodefault", "datadefault", "nome", "numerodefault", "textodefault", "inativador_id", "autor_id", "editor_id", "dominiodefault_id", "tipowidgetparametrodominio_id", "widget_id", "widgetinativo_id") | |
478 | -VALUES (28, NULL, NULL, E'2015-04-02 10:23:04.402', E'2015-04-02 10:23:04.402', 0, False, E'tipoGoogleChart', NULL, E'Tipo Grafico', NULL, NULL, NULL, 1, 1, 207, 56, 7, NULL); | |
479 | - | |
480 | -INSERT INTO public.widgetparametro ("id", "databloqueio", "datainativo", "datacriacao", "dataedicao", "version", "booleandefault", "chavedominiodefault", "datadefault", "nome", "numerodefault", "textodefault", "inativador_id", "autor_id", "editor_id", "dominiodefault_id", "tipowidgetparametrodominio_id", "widget_id", "widgetinativo_id") | |
481 | -VALUES (29, NULL, NULL, E'2015-04-02 10:27:08.023', E'2015-04-02 10:27:08.023', 0, False, NULL, NULL, E'max', 100, NULL, NULL, 1, 1, NULL, 14, 8, NULL); | |
482 | - | |
483 | -INSERT INTO public.widgetparametro ("id", "databloqueio", "datainativo", "datacriacao", "dataedicao", "version", "booleandefault", "chavedominiodefault", "datadefault", "nome", "numerodefault", "textodefault", "inativador_id", "autor_id", "editor_id", "dominiodefault_id", "tipowidgetparametrodominio_id", "widget_id", "widgetinativo_id") | |
484 | -VALUES (30, NULL, NULL, E'2015-04-02 10:27:08.029', E'2015-04-02 10:27:08.029', 0, False, NULL, NULL, E'yellowFrom', 70, NULL, NULL, 1, 1, NULL, 14, 8, NULL); | |
485 | - | |
486 | -INSERT INTO public.widgetparametro ("id", "databloqueio", "datainativo", "datacriacao", "dataedicao", "version", "booleandefault", "chavedominiodefault", "datadefault", "nome", "numerodefault", "textodefault", "inativador_id", "autor_id", "editor_id", "dominiodefault_id", "tipowidgetparametrodominio_id", "widget_id", "widgetinativo_id") | |
487 | -VALUES (31, NULL, NULL, E'2015-04-02 10:27:08.035', E'2015-04-02 10:27:08.035', 0, False, NULL, NULL, E'yellowTo', 80, NULL, NULL, 1, 1, NULL, 14, 8, NULL); | |
488 | - | |
489 | -INSERT INTO public.widgetparametro ("id", "databloqueio", "datainativo", "datacriacao", "dataedicao", "version", "booleandefault", "chavedominiodefault", "datadefault", "nome", "numerodefault", "textodefault", "inativador_id", "autor_id", "editor_id", "dominiodefault_id", "tipowidgetparametrodominio_id", "widget_id", "widgetinativo_id") | |
490 | -VALUES (32, NULL, NULL, E'2015-04-02 10:27:08.038', E'2015-04-02 10:27:08.038', 0, False, NULL, NULL, E'redFrom', 80, NULL, NULL, 1, 1, NULL, 14, 8, NULL); | |
491 | - | |
492 | -INSERT INTO public.widgetparametro ("id", "databloqueio", "datainativo", "datacriacao", "dataedicao", "version", "booleandefault", "chavedominiodefault", "datadefault", "nome", "numerodefault", "textodefault", "inativador_id", "autor_id", "editor_id", "dominiodefault_id", "tipowidgetparametrodominio_id", "widget_id", "widgetinativo_id") | |
493 | -VALUES (33, NULL, NULL, E'2015-04-02 10:27:08.042', E'2015-04-02 10:27:08.042', 0, False, NULL, NULL, E'redTo', 100, NULL, NULL, 1, 1, NULL, 14, 8, NULL); | |
494 | - | |
495 | -INSERT INTO public.widgetparametro ("id", "databloqueio", "datainativo", "datacriacao", "dataedicao", "version", "booleandefault", "chavedominiodefault", "datadefault", "nome", "numerodefault", "textodefault", "inativador_id", "autor_id", "editor_id", "dominiodefault_id", "tipowidgetparametrodominio_id", "widget_id", "widgetinativo_id") | |
496 | -VALUES (34, NULL, NULL, E'2015-04-02 10:27:08.049', E'2015-04-02 10:27:08.049', 0, False, NULL, NULL, E'greenFrom', 40, NULL, NULL, 1, 1, NULL, 14, 8, NULL); | |
497 | - | |
498 | -INSERT INTO public.widgetparametro ("id", "databloqueio", "datainativo", "datacriacao", "dataedicao", "version", "booleandefault", "chavedominiodefault", "datadefault", "nome", "numerodefault", "textodefault", "inativador_id", "autor_id", "editor_id", "dominiodefault_id", "tipowidgetparametrodominio_id", "widget_id", "widgetinativo_id") | |
499 | -VALUES (35, NULL, NULL, E'2015-04-02 10:27:08.054', E'2015-04-02 10:27:08.054', 0, False, NULL, NULL, E'greenTo', 70, NULL, NULL, 1, 1, NULL, 14, 8, NULL); | |
500 | - | |
501 | -INSERT INTO public.widgetparametro ("id", "databloqueio", "datainativo", "datacriacao", "dataedicao", "version", "booleandefault", "chavedominiodefault", "datadefault", "nome", "numerodefault", "textodefault", "inativador_id", "autor_id", "editor_id", "dominiodefault_id", "tipowidgetparametrodominio_id", "widget_id", "widgetinativo_id") | |
502 | -VALUES (36, NULL, NULL, E'2015-04-02 10:27:08.057', E'2015-04-02 10:27:08.057', 0, False, NULL, NULL, E'minorTicks', 5, NULL, NULL, 1, 1, NULL, 14, 8, NULL); |
cit-adm-materiais-web/.classpath
... | ... | @@ -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-adm-materiais-web/.project
... | ... | @@ -1,52 +0,0 @@ |
1 | -<?xml version="1.0" encoding="UTF-8"?> | |
2 | -<projectDescription> | |
3 | - <name>cit-adm-materiais-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 (1).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 (1).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-adm-materiais-web/.settings/org.eclipse.core.resources.prefs
cit-adm-materiais-web/.settings/org.eclipse.jdt.core.prefs
... | ... | @@ -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-adm-materiais-web/.settings/org.eclipse.wst.common.component
... | ... | @@ -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-adm-materiais-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-adm-materiais-api-1.8.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/cit-adm-materiais-api/cit-adm-materiais-api"> | |
9 | - <dependency-type>uses</dependency-type> | |
10 | - </dependent-module> | |
11 | - <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"> | |
12 | - <dependency-type>uses</dependency-type> | |
13 | - </dependent-module> | |
14 | - <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"> | |
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-adm-materiais-web"/> | |
24 | - <property name="java-output-path" value="/cit-adm-materiais-web/target/classes"/> | |
25 | - </wb-module> | |
26 | -</project-modules> |
cit-adm-materiais-web/.settings/org.eclipse.wst.common.project.facet.core.xml
cit-adm-materiais-web/.settings/org.eclipse.wst.validation.prefs
cit-adm-materiais-web/bin/.project
... | ... | @@ -1,52 +0,0 @@ |
1 | -<?xml version="1.0" encoding="UTF-8"?> | |
2 | -<projectDescription> | |
3 | - <name>cit-adm-materiais-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 (1).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 (1).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-adm-materiais-web/bin/.settings/org.eclipse.core.resources.prefs
cit-adm-materiais-web/bin/.settings/org.eclipse.jdt.core.prefs
cit-adm-materiais-web/bin/pom.xml
... | ... | @@ -1,48 +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 xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
20 | - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
21 | - <modelVersion>4.0.0</modelVersion> | |
22 | - | |
23 | - <parent> | |
24 | - <groupId>br.com.centralit</groupId> | |
25 | - <artifactId>cit-adm-materiais</artifactId> | |
26 | - <version>1.8.0-SNAPSHOT</version> | |
27 | - </parent> | |
28 | - | |
29 | - <artifactId>cit-adm-materiais-web</artifactId> | |
30 | - <packaging>war</packaging> | |
31 | - <name>cit-adm-materiais-web</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 | - <minify-maven-plugin.phase>prepare-package</minify-maven-plugin.phase> | |
38 | - </properties> | |
39 | - | |
40 | - <dependencies> | |
41 | - <dependency> | |
42 | - <groupId>br.com.centralit</groupId> | |
43 | - <artifactId>cit-adm-materiais-api</artifactId> | |
44 | - <version>${project.version}</version> | |
45 | - </dependency> | |
46 | - </dependencies> | |
47 | - | |
48 | -</project> |
cit-adm-materiais-web/bin/src/main/java/br/com/centralit/controller/ClassificacaoMaterialController.class
No preview for this file type
cit-adm-materiais-web/bin/src/main/java/br/com/centralit/controller/ContaContabilController.class
No preview for this file type
cit-adm-materiais-web/bin/src/main/java/br/com/centralit/controller/ContaContabilMovimentoController.class
No preview for this file type
cit-adm-materiais-web/bin/src/main/java/br/com/centralit/controller/IinicializarAdmMateriaisController.class
No preview for this file type
cit-adm-materiais-web/bin/src/main/java/br/com/centralit/controller/MaterialCaracteristicaController.class
No preview for this file type
cit-adm-materiais-web/bin/src/main/java/br/com/centralit/controller/MaterialConsumoController.class
No preview for this file type
cit-adm-materiais-web/bin/src/main/java/br/com/centralit/controller/MaterialConsumoTipoUnidadeMedidaEntradaController.class
No preview for this file type
cit-adm-materiais-web/bin/src/main/java/br/com/centralit/controller/MaterialController.class
No preview for this file type
cit-adm-materiais-web/bin/src/main/java/br/com/centralit/controller/MaterialImagemController.class
No preview for this file type
cit-adm-materiais-web/bin/src/main/java/br/com/centralit/controller/MaterialPermanenteConsumoController.class
No preview for this file type
cit-adm-materiais-web/bin/src/main/java/br/com/centralit/controller/MaterialPermanenteController.class
No preview for this file type
cit-adm-materiais-web/bin/src/main/java/br/com/centralit/controller/OrganizacaoAdmMateriaisController.class
No preview for this file type
cit-adm-materiais-web/bin/src/main/java/br/com/centralit/controller/TransferenciaContaContabilController.class
No preview for this file type
cit-adm-materiais-web/bin/src/main/java/br/com/centralit/controller/UnidadeMedidaController.class
No preview for this file type
cit-adm-materiais-web/bin/src/main/java/br/com/centralit/controller/UsuarioAdmMateriaisController.class
No preview for this file type
cit-adm-materiais-web/bin/src/main/java/br/com/centralit/listener/StartupListenerAdmMaterial.class
No preview for this file type
cit-adm-materiais-web/bin/src/main/resources/.gitignore
... | ... | @@ -1 +0,0 @@ |
1 | -/*.tag |
cit-adm-materiais-web/bin/src/main/resources/log4j.properties
... | ... | @@ -1,22 +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.engine.internal.StatefulPersistenceContext=ERROR | |
21 | -log4j.logger.org.hibernate=INFO | |
22 | -log4j.logger.org.hibernate.type=trace |
cit-adm-materiais-web/bin/src/main/resources/reports/logo_ministerio_planejamento.jpg
40.6 KB
cit-adm-materiais-web/bin/src/main/resources/reports/templatePaisagem.jrxml
... | ... | @@ -1,98 +0,0 @@ |
1 | -<?xml version="1.0" encoding="UTF-8"?> | |
2 | -<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="templatePaisagem" language="groovy" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="AllSectionsNoDetail" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="2a9bde7e-349d-4f0b-b96c-98310606be6f"> | |
3 | - <property name="ireport.zoom" value="1.5"/> | |
4 | - <property name="ireport.x" value="61"/> | |
5 | - <property name="ireport.y" value="0"/> | |
6 | - <parameter name="ORGANIZACAO_ID" class="java.lang.Long" isForPrompting="false"> | |
7 | - <defaultValueExpression><![CDATA[1]]></defaultValueExpression> | |
8 | - </parameter> | |
9 | - <parameter name="SUBREPORT_DIR" class="java.lang.Object" isForPrompting="false"> | |
10 | - <defaultValueExpression><![CDATA[]]></defaultValueExpression> | |
11 | - </parameter> | |
12 | - <parameter name="SUBREPORT_PARAMETERS_MAP" class="java.util.Map" isForPrompting="false"> | |
13 | - <parameterDescription><![CDATA[Parametros do SubReport]]></parameterDescription> | |
14 | - </parameter> | |
15 | - <parameter name="TITULO" class="java.lang.String"/> | |
16 | - <queryString> | |
17 | - <![CDATA[select aImagem.anexo as logo, | |
18 | - (select param.valor from configuracaoparametrosistema param where param.configuracao_id = conf.id and param.chave = 'RELATORIO_PRIMEIRO_TITULO') as titulo1, | |
19 | - (select param.valor from configuracaoparametrosistema param where param.configuracao_id = conf.id and param.chave = 'RELATORIO_SEGUNDO_TITULO') as titulo2, | |
20 | - (select param.valor from configuracaoparametrosistema param where param.configuracao_id = conf.id and param.chave = 'RELATORIO_TERCEIRO_TITULO') as titulo3 | |
21 | -from anexoimagem aImagem right join configuracao conf on aImagem.configuracao_id = conf.id where conf.organizacao_id = $P{ORGANIZACAO_ID};]]> | |
22 | - </queryString> | |
23 | - <field name="titulo1" class="java.lang.String"/> | |
24 | - <field name="titulo2" class="java.lang.String"/> | |
25 | - <field name="titulo3" class="java.lang.String"/> | |
26 | - <field name="logo" class="java.lang.Object"/> | |
27 | - <title> | |
28 | - <band height="130" splitType="Stretch"> | |
29 | - <image> | |
30 | - <reportElement positionType="Float" x="23" y="20" width="85" height="60" uuid="21d967cf-a639-41a7-a0af-62fc1f113936"/> | |
31 | - <imageExpression><![CDATA[new ByteArrayInputStream((byte[])$F{logo})]]></imageExpression> | |
32 | - </image> | |
33 | - <textField isBlankWhenNull="true"> | |
34 | - <reportElement x="108" y="20" width="677" height="20" uuid="4e1c4a55-25b5-42c3-a656-feaaab3ee44c"/> | |
35 | - <box leftPadding="5"/> | |
36 | - <textElement verticalAlignment="Middle"> | |
37 | - <font size="12" isBold="true"/> | |
38 | - </textElement> | |
39 | - <textFieldExpression><![CDATA[$F{titulo1}]]></textFieldExpression> | |
40 | - </textField> | |
41 | - <textField isBlankWhenNull="true"> | |
42 | - <reportElement x="108" y="40" width="677" height="20" uuid="7ce4c085-aea3-4ae6-83ae-0134ef022bd7"/> | |
43 | - <box leftPadding="5"/> | |
44 | - <textElement verticalAlignment="Middle"> | |
45 | - <font size="12" isBold="true"/> | |
46 | - </textElement> | |
47 | - <textFieldExpression><![CDATA[$F{titulo2}]]></textFieldExpression> | |
48 | - </textField> | |
49 | - <textField isBlankWhenNull="true"> | |
50 | - <reportElement x="108" y="60" width="677" height="20" uuid="edd46a21-e588-4e52-8438-c70f2ede5324"/> | |
51 | - <box leftPadding="5"/> | |
52 | - <textElement verticalAlignment="Middle"> | |
53 | - <font size="12" isBold="true"/> | |
54 | - </textElement> | |
55 | - <textFieldExpression><![CDATA[$F{titulo3}]]></textFieldExpression> | |
56 | - </textField> | |
57 | - <textField> | |
58 | - <reportElement x="41" y="99" width="802" height="20" uuid="53427ba1-1676-40f7-8925-170941b8b23c"/> | |
59 | - <textElement textAlignment="Center" verticalAlignment="Middle"> | |
60 | - <font fontName="SansSerif" size="14" isBold="true"/> | |
61 | - </textElement> | |
62 | - <textFieldExpression><![CDATA[$P{TITULO}]]></textFieldExpression> | |
63 | - </textField> | |
64 | - </band> | |
65 | - </title> | |
66 | - <detail> | |
67 | - <band height="53"> | |
68 | - <subreport> | |
69 | - <reportElement positionType="Float" x="0" y="0" width="802" height="53" uuid="f31a4070-ef73-4065-aee8-7cea1e4d1ada"/> | |
70 | - <parametersMapExpression><![CDATA[$P{SUBREPORT_PARAMETERS_MAP}]]></parametersMapExpression> | |
71 | - <connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression> | |
72 | - <subreportExpression><![CDATA[$P{SUBREPORT_DIR}]]></subreportExpression> | |
73 | - </subreport> | |
74 | - </band> | |
75 | - </detail> | |
76 | - <columnFooter> | |
77 | - <band height="50"/> | |
78 | - </columnFooter> | |
79 | - <pageFooter> | |
80 | - <band height="20"> | |
81 | - <textField> | |
82 | - <reportElement x="0" y="0" width="200" height="20" uuid="c02c2f00-5f5e-483f-a708-da077a977923"/> | |
83 | - <textElement textAlignment="Left"/> | |
84 | - <textFieldExpression><![CDATA["Emitido em: " + new java.text.SimpleDateFormat("dd/MM/yyyy HH:mm:ss").format(new Date())]]></textFieldExpression> | |
85 | - </textField> | |
86 | - <textField evaluationTime="Report"> | |
87 | - <reportElement x="765" y="0" width="37" height="20" uuid="fcdba92c-d883-401b-9166-26bb4ff77c28"/> | |
88 | - <textElement textAlignment="Left"/> | |
89 | - <textFieldExpression><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression> | |
90 | - </textField> | |
91 | - <textField> | |
92 | - <reportElement x="543" y="0" width="220" height="20" uuid="43597e29-63ea-4fe8-87b5-147ff1afbabe"/> | |
93 | - <textElement textAlignment="Right"/> | |
94 | - <textFieldExpression><![CDATA["Página "+$V{PAGE_NUMBER}+" de"]]></textFieldExpression> | |
95 | - </textField> | |
96 | - </band> | |
97 | - </pageFooter> | |
98 | -</jasperReport> |
cit-adm-materiais-web/bin/src/main/resources/reports/templateRetrato.jrxml
... | ... | @@ -1,97 +0,0 @@ |
1 | -<?xml version="1.0" encoding="UTF-8"?> | |
2 | -<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="templateRetrato" language="groovy" pageWidth="595" pageHeight="842" whenNoDataType="AllSectionsNoDetail" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="2a9bde7e-349d-4f0b-b96c-98310606be6f"> | |
3 | - <property name="ireport.zoom" value="2.0"/> | |
4 | - <property name="ireport.x" value="25"/> | |
5 | - <property name="ireport.y" value="66"/> | |
6 | - <parameter name="ORGANIZACAO_ID" class="java.lang.Long"> | |
7 | - <defaultValueExpression><![CDATA[]]></defaultValueExpression> | |
8 | - </parameter> | |
9 | - <parameter name="SUBREPORT_DIR" class="java.lang.Object" isForPrompting="false"> | |
10 | - <defaultValueExpression><![CDATA[]]></defaultValueExpression> | |
11 | - </parameter> | |
12 | - <parameter name="SUBREPORT_PARAMETERS_MAP" class="java.util.Map" isForPrompting="false"> | |
13 | - <parameterDescription><![CDATA[Parametros do SubReport]]></parameterDescription> | |
14 | - </parameter> | |
15 | - <parameter name="TITULO" class="java.lang.String"/> | |
16 | - <queryString> | |
17 | - <![CDATA[select aImagem.anexo as logo, | |
18 | - (select param.valor from configuracaoparametrosistema param where param.configuracao_id = conf.id and param.chave = 'RELATORIO_PRIMEIRO_TITULO') as titulo1, | |
19 | - (select param.valor from configuracaoparametrosistema param where param.configuracao_id = conf.id and param.chave = 'RELATORIO_SEGUNDO_TITULO') as titulo2, | |
20 | - (select param.valor from configuracaoparametrosistema param where param.configuracao_id = conf.id and param.chave = 'RELATORIO_TERCEIRO_TITULO') as titulo3 | |
21 | -from anexoimagem aImagem right join configuracao conf on aImagem.configuracao_id = conf.id where conf.organizacao_id = $P{ORGANIZACAO_ID};]]> | |
22 | - </queryString> | |
23 | - <field name="logo" class="java.lang.Object"/> | |
24 | - <field name="titulo1" class="java.lang.String"/> | |
25 | - <field name="titulo2" class="java.lang.String"/> | |
26 | - <field name="titulo3" class="java.lang.String"/> | |
27 | - <title> | |
28 | - <band height="134" splitType="Stretch"> | |
29 | - <textField isBlankWhenNull="true"> | |
30 | - <reportElement x="102" y="37" width="453" height="20" uuid="8b7353fa-6d6b-4b7d-bd04-2564491beff4"/> | |
31 | - <box leftPadding="5"/> | |
32 | - <textElement verticalAlignment="Middle"> | |
33 | - <font size="12" isBold="true"/> | |
34 | - </textElement> | |
35 | - <textFieldExpression><![CDATA[$F{titulo2}]]></textFieldExpression> | |
36 | - </textField> | |
37 | - <textField isBlankWhenNull="true"> | |
38 | - <reportElement x="102" y="17" width="453" height="20" uuid="0c63ef23-5e35-4c22-81ed-dbd9a2fac964"/> | |
39 | - <box leftPadding="5"/> | |
40 | - <textElement verticalAlignment="Middle"> | |
41 | - <font size="12" isBold="true"/> | |
42 | - </textElement> | |
43 | - <textFieldExpression><![CDATA[$F{titulo1}]]></textFieldExpression> | |
44 | - </textField> | |
45 | - <image isUsingCache="true" onErrorType="Icon"> | |
46 | - <reportElement positionType="Float" x="17" y="17" width="85" height="60" uuid="d161cd66-d9ef-43e9-b70a-3fb2c8b4eba4"/> | |
47 | - <imageExpression><![CDATA[new ByteArrayInputStream((byte[])$F{logo})]]></imageExpression> | |
48 | - </image> | |
49 | - <textField isBlankWhenNull="true"> | |
50 | - <reportElement x="102" y="57" width="453" height="20" uuid="7fc824c8-633f-40d4-8310-4d81780f2834"/> | |
51 | - <box leftPadding="5"/> | |
52 | - <textElement verticalAlignment="Middle"> | |
53 | - <font size="12" isBold="true"/> | |
54 | - </textElement> | |
55 | - <textFieldExpression><![CDATA[$F{titulo3}]]></textFieldExpression> | |
56 | - </textField> | |
57 | - <textField> | |
58 | - <reportElement x="0" y="103" width="555" height="20" uuid="3405a538-3907-4101-97dd-99920d6fc78d"/> | |
59 | - <textElement textAlignment="Center" verticalAlignment="Middle"> | |
60 | - <font fontName="SansSerif" size="14" isBold="true"/> | |
61 | - </textElement> | |
62 | - <textFieldExpression><![CDATA[$P{TITULO}]]></textFieldExpression> | |
63 | - </textField> | |
64 | - </band> | |
65 | - </title> | |
66 | - <detail> | |
67 | - <band height="53"> | |
68 | - <subreport> | |
69 | - <reportElement positionType="Float" x="0" y="0" width="555" height="53" uuid="39aa7cb4-c27a-484a-8e70-8c32a0da7922"/> | |
70 | - <parametersMapExpression><![CDATA[$P{SUBREPORT_PARAMETERS_MAP}]]></parametersMapExpression> | |
71 | - <connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression> | |
72 | - <subreportExpression><![CDATA[$P{SUBREPORT_DIR}]]></subreportExpression> | |
73 | - </subreport> | |
74 | - </band> | |
75 | - </detail> | |
76 | - <columnFooter> | |
77 | - <band height="50"/> | |
78 | - </columnFooter> | |
79 | - <pageFooter> | |
80 | - <band height="50"> | |
81 | - <textField> | |
82 | - <reportElement x="436" y="30" width="80" height="20" uuid="5e321400-e0dd-41c0-9b36-09d2b35badd7"/> | |
83 | - <textElement textAlignment="Right"/> | |
84 | - <textFieldExpression><![CDATA["Página "+$V{PAGE_NUMBER}+" de"]]></textFieldExpression> | |
85 | - </textField> | |
86 | - <textField evaluationTime="Report"> | |
87 | - <reportElement x="518" y="30" width="37" height="20" uuid="af94fb21-5bc2-47cb-a430-9e8535eafd64"/> | |
88 | - <textFieldExpression><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression> | |
89 | - </textField> | |
90 | - <textField> | |
91 | - <reportElement x="0" y="30" width="200" height="20" uuid="73e5cadf-9c22-4a70-8aba-7e98a9f725c7"/> | |
92 | - <textElement textAlignment="Left"/> | |
93 | - <textFieldExpression><![CDATA["Emitido em: " + new java.text.SimpleDateFormat("dd/MM/yyyy HH:mm:ss").format(new Date())]]></textFieldExpression> | |
94 | - </textField> | |
95 | - </band> | |
96 | - </pageFooter> | |
97 | -</jasperReport> |
cit-adm-materiais-web/bin/src/main/resources/spring/applicationContext.xml
... | ... | @@ -1,37 +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-adm-materiais" /> | |
15 | - </bean> | |
16 | - | |
17 | - <bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean" | |
18 | - p:packagesToScan="br.com.centralit.framework.model, br.com.centralit.api.model" | |
19 | - p:dataSource-ref="citPortalDataSource" | |
20 | - p:jpaPropertyMap-ref="jpaPropertyMap" | |
21 | - p:jpaVendorAdapter-ref="jpaVendorAdapter" /> | |
22 | - | |
23 | - <bean id="jpaVendorAdapter" class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter" /> | |
24 | - | |
25 | - <util:map id="jpaPropertyMap"> | |
26 | - <entry key="generateDdl" value="${hibernate.generate.ddl}" /> | |
27 | - <entry key="hibernate.hbm2ddl.auto" value="${hibernate.hbm2ddl.auto}" /> | |
28 | - <entry key="hibernate.dialect" value="${hibernate.dialect}" /> | |
29 | - <entry key="hibernate.show.sql" value="${hibernate.show.sql}" /> | |
30 | - <entry key="hibernate.format_sql" value="${hibernate.format.sql}" /> | |
31 | - </util:map> | |
32 | - | |
33 | - <import resource="webmvc-context.xml" /> | |
34 | - <import resource="classpath*:spring/applicationContext-base.xml" /> | |
35 | - <import resource="${authentication.method}" /> | |
36 | - | |
37 | -</beans> |
cit-adm-materiais-web/bin/src/main/resources/spring/security.properties
cit-adm-materiais-web/bin/src/main/resources/spring/spring-security-cas.xml
... | ... | @@ -1,80 +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:global-method-security pre-post-annotations="enabled" /> | |
12 | - | |
13 | - <security:http auto-config="true" use-expressions="true" entry-point-ref="casProcessingFilterEntryPoint" access-denied-page="/denied.jsp"> | |
14 | - <security:intercept-url pattern="/secure/extreme/**" access="ROLE_ADMIN" requires-channel="https"/> | |
15 | - <security:intercept-url pattern="/rest/inicializarCarga/**" access="permitAll" /> | |
16 | - <security:intercept-url pattern="/rest/**/existeVinculo**" access="permitAll" /> | |
17 | - <security:intercept-url pattern="/**" access="isFullyAuthenticated()" requires-channel="https"/> | |
18 | - <security:logout logout-success-url="/cas-logout.jsp"/> | |
19 | - <security:custom-filter ref="casAuthenticationFilter" after="CAS_FILTER"/> | |
20 | - | |
21 | - <security:session-management session-fixation-protection="newSession"> | |
22 | - <security:concurrency-control max-sessions="1"/> | |
23 | - </security:session-management> | |
24 | - </security:http> | |
25 | - | |
26 | - <security:authentication-manager alias="authenticationManager"> | |
27 | - <security:authentication-provider ref="casAuthenticationProvider"/> | |
28 | - </security:authentication-manager> | |
29 | - | |
30 | - <bean id="casAuthenticationFilter" | |
31 | - class="org.springframework.security.cas.web.CasAuthenticationFilter"> | |
32 | - <property name="authenticationManager" ref="authenticationManager"/> | |
33 | - <property name="authenticationFailureHandler"> | |
34 | - <bean class="org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler"> | |
35 | - <property name="defaultFailureUrl" value="/authfailed.jsp"/> | |
36 | - </bean> | |
37 | - </property> | |
38 | - <property name="authenticationSuccessHandler"> | |
39 | - <bean class="org.springframework.security.web.authentication.SimpleUrlAuthenticationSuccessHandler"> | |
40 | - <property name="defaultTargetUrl" value="/"/> | |
41 | - </bean> | |
42 | - </property> | |
43 | - <property name="proxyGrantingTicketStorage" ref="proxyGrantingTicketStorage"/> | |
44 | - <property name="proxyReceptorUrl" value="/secure/receptor"/> | |
45 | - </bean> | |
46 | - | |
47 | - <bean id="casProcessingFilterEntryPoint" class="org.springframework.security.cas.web.CasAuthenticationEntryPoint"> | |
48 | - <property name="loginUrl" value="${authentication.url}/cas/login"/> | |
49 | - <property name="serviceProperties" ref="serviceProperties"/> | |
50 | - </bean> | |
51 | - | |
52 | - <bean id="casAuthenticationProvider" | |
53 | - class="org.springframework.security.cas.authentication.CasAuthenticationProvider" | |
54 | - p:key="central@123" | |
55 | - p:serviceProperties-ref="serviceProperties" | |
56 | - p:authenticationUserDetailsService-ref="userDetailsService"> | |
57 | - <property name="ticketValidator"> | |
58 | - <bean class="org.jasig.cas.client.validation.Saml11TicketValidator"> | |
59 | - <constructor-arg index="0" value="${authentication.url}/cas"/> | |
60 | - </bean> | |
61 | - </property> | |
62 | - </bean> | |
63 | - | |
64 | - <bean id="proxyGrantingTicketStorage" class="org.jasig.cas.client.proxy.ProxyGrantingTicketStorageImpl"/> | |
65 | - | |
66 | - <bean id="serviceProperties" class="org.springframework.security.cas.ServiceProperties"> | |
67 | - <property name="service" value="${authentication.url}/cit-adm-materiais-web/j_spring_cas_security_check"/> | |
68 | - <property name="sendRenew" value="false"/> | |
69 | - </bean> | |
70 | - | |
71 | - <bean id="userDetailsService" class="br.com.centralit.api.security.GrantedAuthorityFromAssertionAttributesUserDetailsService"> | |
72 | - <constructor-arg> | |
73 | - <list> | |
74 | - <value>authorities</value> | |
75 | - </list> | |
76 | - </constructor-arg> | |
77 | - </bean> | |
78 | - | |
79 | -</beans> | |
80 | - |
cit-adm-materiais-web/bin/src/main/resources/spring/spring-security-db.xml
... | ... | @@ -1,29 +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="/login" access="permitAll" /> | |
13 | - <security:intercept-url pattern="/j_spring_security_check" access="permitAll" /> | |
14 | - <security:intercept-url pattern="/assets/**" access="permitAll" /> | |
15 | - <security:intercept-url pattern="/**" access="hasRole('ROLE_USER')" /> | |
16 | - | |
17 | - <security:form-login login-page="/login" authentication-failure-url="/login?error=403" default-target-url="/index" /> | |
18 | - | |
19 | - <security:logout invalidate-session="true" logout-success-url="/login" logout-url="/logout" /> | |
20 | - | |
21 | - <security:remember-me key="CentralITSolutions" remember-me-parameter="j_remenberme" /> | |
22 | - </security:http> | |
23 | - | |
24 | - <bean id="customAuthenticationProvider" class="br.com.centralit.api.security.CustomAuthenticationProvider" /> | |
25 | - | |
26 | - <security:authentication-manager> | |
27 | - <security:authentication-provider ref="customAuthenticationProvider" /> | |
28 | - </security:authentication-manager> | |
29 | -</beans> | |
30 | 0 | \ No newline at end of file |
cit-adm-materiais-web/bin/src/main/resources/spring/spring-security-openam.xml
... | ... | @@ -1,372 +0,0 @@ |
1 | -<?xml version="1.0" encoding="UTF-8" ?> | |
2 | -<!-- | |
3 | - | |
4 | - ********************************************************************************************************************* | |
5 | - * LICENCA*GPLv2 * | |
6 | - * Copyright [2011,2012,2013,2014,2015] da CentralIT Tecnologia da Informação Ltda (www.centralit.com.br) * | |
7 | - * * | |
8 | - * Este arquivo é parte do programa/software: Citsmart (www.citsmart.com.br) * | |
9 | - * * | |
10 | - * O Citsmart é um software livre; você pode redistribui-lo e/ou modificá-lo dentro dos termos da Licença * | |
11 | - * Pública Geral GNU como publicada pela Fundação do Software Livre (FSF); na versção 2 da Licença. * | |
12 | - * * | |
13 | - * Este programa/software é distribuído na esperança que possa ser útil, mas SEM NENHUMA GARANTIA; sem uma * | |
14 | - * garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral * | |
15 | - * GNU/GPL em português para maiores detalhes. * | |
16 | - * * | |
17 | - * Você deve ter recebido uma cópia da Licença Pública Geral GNU, sob o título 'LICENCA.txt', junto com este * | |
18 | - * programa/software, se não, acesse o Portal do Software Público Brasileiro no endereço www.softwarepublico.gov.br * | |
19 | - * ou escreva para a Fundação do Software Livre (FSF) Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301,USA * | |
20 | - ********************************************************************************************************************* | |
21 | - | |
22 | ---> | |
23 | -<beans xmlns="http://www.springframework.org/schema/beans" | |
24 | - xmlns:security="http://www.springframework.org/schema/security" | |
25 | - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
26 | - xmlns:context="http://www.springframework.org/schema/context" | |
27 | - xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd | |
28 | - 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"> | |
29 | - | |
30 | - <!-- Enable auto-wiring --> | |
31 | - <context:annotation-config/> | |
32 | - | |
33 | - <!-- Scan for auto-wiring classes in spring saml packages --> | |
34 | - <context:component-scan base-package="org.springframework.security.saml"/> | |
35 | - | |
36 | - <bean id="filterSecurityInterceptor" class="org.springframework.security.web.access.intercept.FilterSecurityInterceptor"> | |
37 | - <property name="authenticationManager" ref="authenticationManager"></property> | |
38 | - <property name="accessDecisionManager" ref="affirmativeBased"></property> | |
39 | - <property name="securityMetadataSource" ref="optionsFromDataBaseFilterInvocationSecurityMetadataSource"></property> | |
40 | - <property name="validateConfigAttributes" value="true"/> | |
41 | - </bean> | |
42 | - | |
43 | - <bean id="optionsFromDataBaseFilterInvocationSecurityMetadataSource" class="br.com.centralit.api.security.MyFilterSecurityMetadataSource" /> | |
44 | - | |
45 | - <bean id="roleVoter" class="org.springframework.security.access.vote.RoleVoter" /> | |
46 | - | |
47 | - <bean id="affirmativeBased" class='org.springframework.security.access.vote.AffirmativeBased'> | |
48 | - <property name="decisionVoters"> | |
49 | - <list> | |
50 | - <ref bean="roleVoter"/> | |
51 | - </list> | |
52 | - </property> | |
53 | - </bean> | |
54 | - | |
55 | - <!-- Unsecured pages --> | |
56 | - <security:http security="none" pattern="/favicon.ico"/> | |
57 | - <security:http security="none" pattern="/images/**"/> | |
58 | - <security:http security="none" pattern="/css/**"/> | |
59 | - <security:http security="none" pattern="/logout.jsp"/> | |
60 | - <security:http security="none" pattern="/accessDeniedPage.htm"/> | |
61 | - | |
62 | - <security:global-method-security secured-annotations="enabled" /> | |
63 | - | |
64 | - <!-- Security for the administration UI --> | |
65 | - <security:http pattern="/saml/web/**" access-denied-page="/accessDeniedPage.htm"> | |
66 | - <security:form-login login-processing-url="/saml/web/login" login-page="/saml/web/metadata/login" default-target-url="/saml/web/metadata"/> | |
67 | - <security:intercept-url pattern="/saml/web/metadata/login" access="IS_AUTHENTICATED_ANONYMOUSLY"/> | |
68 | - <security:intercept-url pattern="/saml/web/**" access="ROLE_ADMIN"/> | |
69 | - <security:custom-filter before="FIRST" ref="metadataGeneratorFilter"/> | |
70 | - </security:http> | |
71 | - | |
72 | - <!-- Secured pages with SAML as entry point --> | |
73 | - <security:http entry-point-ref="samlEntryPoint" auto-config="true" access-denied-page="/accessDeniedPage.htm"> | |
74 | - <security:intercept-url pattern="/**" access="IS_AUTHENTICATED_FULLY"/> | |
75 | - <security:custom-filter before="FIRST" ref="metadataGeneratorFilter"/> | |
76 | - <security:custom-filter after="BASIC_AUTH_FILTER" ref="samlFilter"/> | |
77 | - </security:http> | |
78 | - | |
79 | - <!-- Filters for processing of SAML messages --> | |
80 | - <bean id="samlFilter" class="org.springframework.security.web.FilterChainProxy"> | |
81 | - <security:filter-chain-map request-matcher="ant"> | |
82 | - <security:filter-chain pattern="/saml/login/**" filters="samlEntryPoint"/> | |
83 | - <security:filter-chain pattern="/saml/logout/**" filters="samlLogoutFilter"/> | |
84 | - <security:filter-chain pattern="/saml/metadata/**" filters="metadataDisplayFilter"/> | |
85 | - <security:filter-chain pattern="/saml/SSO/**" filters="samlWebSSOProcessingFilter"/> | |
86 | - <security:filter-chain pattern="/saml/SSOHoK/**" filters="samlWebSSOHoKProcessingFilter"/> | |
87 | - <security:filter-chain pattern="/saml/SingleLogout/**" filters="samlLogoutProcessingFilter"/> | |
88 | - <security:filter-chain pattern="/saml/discovery/**" filters="samlIDPDiscovery"/> | |
89 | - <security:filter-chain pattern="/html/**" filters="filterSecurityInterceptor"/> | |
90 | - </security:filter-chain-map> | |
91 | - </bean> | |
92 | - | |
93 | - <!-- Handler deciding where to redirect user after successful login --> | |
94 | - <bean id="successRedirectHandler" class="org.springframework.security.web.authentication.SavedRequestAwareAuthenticationSuccessHandler"> | |
95 | - <property name="defaultTargetUrl" value="/"/> | |
96 | - </bean> | |
97 | - <!-- | |
98 | - Use the following for interpreting RelayState coming from unsolicited response as redirect URL: | |
99 | - <bean id="successRedirectHandler" class="org.springframework.security.saml.SAMLRelayStateSuccessHandler"> | |
100 | - <property name="defaultTargetUrl" value="/" /> | |
101 | - </bean> | |
102 | - --> | |
103 | - | |
104 | - <!-- Handler deciding where to redirect user after failed login --> | |
105 | - <bean id="failureRedirectHandler" | |
106 | - class="org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler"> | |
107 | - <property name="useForward" value="true"/> | |
108 | - <property name="defaultFailureUrl" value="/error.jsp"/> | |
109 | - </bean> | |
110 | - | |
111 | - <!-- Handler for successful logout --> | |
112 | - <bean id="successLogoutHandler" class="org.springframework.security.web.authentication.logout.SimpleUrlLogoutSuccessHandler"> | |
113 | - <property name="defaultTargetUrl" value="/logout.jsp"/> | |
114 | - </bean> | |
115 | - | |
116 | - <security:authentication-manager alias="authenticationManager"> | |
117 | - <!-- Register authentication manager for SAML provider --> | |
118 | - <security:authentication-provider ref="samlAuthenticationProvider"/> | |
119 | - <!-- Register authentication manager for administration UI --> | |
120 | - <security:authentication-provider> | |
121 | - <security:user-service id="adminInterfaceService"> | |
122 | - <security:user name="admin" password="admin" authorities="ROLE_ADMIN"/> | |
123 | - </security:user-service> | |
124 | - </security:authentication-provider> | |
125 | - </security:authentication-manager> | |
126 | - | |
127 | - <!-- Logger for SAML messages and events --> | |
128 | - <bean id="samlLogger" class="org.springframework.security.saml.log.SAMLDefaultLogger"/> | |
129 | - | |
130 | - <!-- Central storage of cryptographic keys --> | |
131 | - <bean id="keyManager" class="org.springframework.security.saml.key.JKSKeyManager"> | |
132 | - <constructor-arg value="classpath:security/samlKeystore.jks"/> | |
133 | - <constructor-arg type="java.lang.String" value="nalle123"/> | |
134 | - <constructor-arg> | |
135 | - <map> | |
136 | - <entry key="apollo" value="nalle123"/> | |
137 | - </map> | |
138 | - </constructor-arg> | |
139 | - <constructor-arg type="java.lang.String" value="apollo"/> | |
140 | - </bean> | |
141 | - | |
142 | - <!-- Entry point to initialize authentication, default values taken from properties file --> | |
143 | - <bean id="samlEntryPoint" class="org.springframework.security.saml.SAMLEntryPoint"> | |
144 | - <property name="defaultProfileOptions"> | |
145 | - <bean class="org.springframework.security.saml.websso.WebSSOProfileOptions"> | |
146 | - <property name="binding" value="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"/> | |
147 | - <property name="includeScoping" value="true"/> | |
148 | - </bean> | |
149 | - </property> | |
150 | - </bean> | |
151 | - | |
152 | - <!-- IDP Discovery Service --> | |
153 | - <bean id="samlIDPDiscovery" class="org.springframework.security.saml.SAMLDiscovery"> | |
154 | - <property name="idpSelectionPath" value="/WEB-INF/security/idpSelection.jsp"/> | |
155 | - </bean> | |
156 | - | |
157 | - <!-- Filter automatically generates default SP metadata --> | |
158 | - <bean id="metadataGeneratorFilter" class="org.springframework.security.saml.metadata.MetadataGeneratorFilter"> | |
159 | - <constructor-arg> | |
160 | - <bean class="org.springframework.security.saml.metadata.MetadataGenerator"> | |
161 | - <property name="entityId" value="grp.com"/> | |
162 | - </bean> | |
163 | - </constructor-arg> | |
164 | - </bean> | |
165 | - | |
166 | - <!-- bean id="metadataGeneratorFilter" class="org.springframework.security.saml.metadata.MetadataGeneratorFilter"> | |
167 | - <constructor-arg> | |
168 | - <bean class="org.springframework.security.saml.metadata.MetadataGenerator"> | |
169 | - <property name="extendedMetadata"> | |
170 | - <bean class="org.springframework.security.saml.metadata.ExtendedMetadata"> | |
171 | - <property name="entityId" value="teste"/> | |
172 | - <property name="idpDiscoveryEnabled" value="true"/> | |
173 | - </bean> | |
174 | - </property> | |
175 | - </bean> | |
176 | - </constructor-arg> | |
177 | - </bean --> | |
178 | - | |
179 | - <!-- The filter is waiting for connections on URL suffixed with filterSuffix and presents SP metadata there --> | |
180 | - <bean id="metadataDisplayFilter" class="org.springframework.security.saml.metadata.MetadataDisplayFilter"/> | |
181 | - | |
182 | - <!-- IDP Metadata configuration - paths to metadata of IDPs in circle of trust is here --> | |
183 | - <bean id="metadata" class="org.springframework.security.saml.metadata.CachingMetadataManager"> | |
184 | - <constructor-arg> | |
185 | - <list> | |
186 | - <!-- Example of classpath metadata with Extended Metadata --> | |
187 | - <bean class="org.springframework.security.saml.metadata.ExtendedMetadataDelegate"> | |
188 | - <constructor-arg> | |
189 | - <bean class="org.opensaml.saml2.metadata.provider.ResourceBackedMetadataProvider"> | |
190 | - <constructor-arg> | |
191 | - <bean class="java.util.Timer"/> | |
192 | - </constructor-arg> | |
193 | - <constructor-arg> | |
194 | - <bean class="org.opensaml.util.resource.ClasspathResource"> | |
195 | - <constructor-arg value="/metadata/idp.xml"/> | |
196 | - </bean> | |
197 | - </constructor-arg> | |
198 | - <property name="parserPool" ref="parserPool"/> | |
199 | - </bean> | |
200 | - </constructor-arg> | |
201 | - <constructor-arg> | |
202 | - <bean class="org.springframework.security.saml.metadata.ExtendedMetadata"> | |
203 | - </bean> | |
204 | - </constructor-arg> | |
205 | - </bean> | |
206 | - <!-- Example of HTTP metadata without Extended Metadata --> | |
207 | - <bean class="org.opensaml.saml2.metadata.provider.HTTPMetadataProvider"> | |
208 | - <!-- URL containing the metadata --> | |
209 | - <constructor-arg> | |
210 | - <value type="java.lang.String">http://iam.cit.local:8080/openam/saml2/jsp/exportmetadata.jsp?realm=grp</value> | |
211 | - </constructor-arg> | |
212 | - <!-- Timeout for metadata loading in ms --> | |
213 | - <constructor-arg> | |
214 | - <value type="int">15000</value> | |
215 | - </constructor-arg> | |
216 | - <property name="parserPool" ref="parserPool"/> | |
217 | - </bean> | |
218 | - <!-- Example of file system metadata without Extended Metadata --> | |
219 | - <!-- | |
220 | - <bean class="org.opensaml.saml2.metadata.provider.FilesystemMetadataProvider"> | |
221 | - <constructor-arg> | |
222 | - <value type="java.io.File">/usr/local/metadata/idp.xml</value> | |
223 | - </constructor-arg> | |
224 | - <property name="parserPool" ref="parserPool"/> | |
225 | - </bean> | |
226 | - --> | |
227 | - </list> | |
228 | - </constructor-arg> | |
229 | - <!-- OPTIONAL used when one of the metadata files contains information about this service provider --> | |
230 | - <!-- <property name="hostedSPName" value=""/> --> | |
231 | - <!-- OPTIONAL property: can tell the system which IDP should be used for authenticating user by default. --> | |
232 | - <!-- <property name="defaultIDP" value="http://localhost:8080/opensso"/> --> | |
233 | - </bean> | |
234 | - | |
235 | - <!-- SAML Authentication Provider responsible for validating of received SAML messages --> | |
236 | - <bean id="samlAuthenticationProvider" class="org.springframework.security.saml.SAMLAuthenticationProvider"> | |
237 | - <!-- OPTIONAL property: can be used to store/load user data after login --> | |
238 | - <!-- | |
239 | - <property name="userDetails" ref="bean" /> | |
240 | - --> | |
241 | - <property name="userDetails" ref="samlUserDetailsServiceBean" /> | |
242 | - </bean> | |
243 | - | |
244 | - <bean id="samlUserDetailsServiceBean" class="br.com.centralit.api.security.SAMLUserDetailsServiceImpl" /> | |
245 | - | |
246 | - <!-- Provider of default SAML Context --> | |
247 | - <bean id="contextProvider" class="org.springframework.security.saml.context.SAMLContextProviderImpl"/> | |
248 | - | |
249 | - <!-- Processing filter for WebSSO profile messages --> | |
250 | - <bean id="samlWebSSOProcessingFilter" class="org.springframework.security.saml.SAMLProcessingFilter"> | |
251 | - <property name="authenticationManager" ref="authenticationManager"/> | |
252 | - <property name="authenticationSuccessHandler" ref="successRedirectHandler"/> | |
253 | - <property name="authenticationFailureHandler" ref="failureRedirectHandler"/> | |
254 | - </bean> | |
255 | - | |
256 | - <!-- Processing filter for WebSSO Holder-of-Key profile --> | |
257 | - <bean id="samlWebSSOHoKProcessingFilter" class="org.springframework.security.saml.SAMLWebSSOHoKProcessingFilter"> | |
258 | - <property name="authenticationManager" ref="authenticationManager"/> | |
259 | - <property name="authenticationSuccessHandler" ref="successRedirectHandler"/> | |
260 | - <property name="authenticationFailureHandler" ref="failureRedirectHandler"/> | |
261 | - </bean> | |
262 | - | |
263 | - <!-- Logout handler terminating local session --> | |
264 | - <bean id="logoutHandler" | |
265 | - class="org.springframework.security.web.authentication.logout.SecurityContextLogoutHandler"> | |
266 | - <property name="invalidateHttpSession" value="false"/> | |
267 | - </bean> | |
268 | - | |
269 | - <!-- Override default logout processing filter with the one processing SAML messages --> | |
270 | - <bean id="samlLogoutFilter" class="org.springframework.security.saml.SAMLLogoutFilter"> | |
271 | - <constructor-arg index="0" ref="successLogoutHandler"/> | |
272 | - <constructor-arg index="1" ref="logoutHandler"/> | |
273 | - <constructor-arg index="2" ref="logoutHandler"/> | |
274 | - </bean> | |
275 | - | |
276 | - <!-- Filter processing incoming logout messages --> | |
277 | - <!-- First argument determines URL user will be redirected to after successful global logout --> | |
278 | - <bean id="samlLogoutProcessingFilter" class="org.springframework.security.saml.SAMLLogoutProcessingFilter"> | |
279 | - <constructor-arg index="0" ref="successLogoutHandler"/> | |
280 | - <constructor-arg index="1" ref="logoutHandler"/> | |
281 | - </bean> | |
282 | - | |
283 | - <!-- Class loading incoming SAML messages from httpRequest stream --> | |
284 | - <bean id="processor" class="org.springframework.security.saml.processor.SAMLProcessorImpl"> | |
285 | - <constructor-arg> | |
286 | - <list> | |
287 | - <ref bean="redirectBinding"/> | |
288 | - <ref bean="postBinding"/> | |
289 | - <ref bean="artifactBinding"/> | |
290 | - <ref bean="soapBinding"/> | |
291 | - <ref bean="paosBinding"/> | |
292 | - </list> | |
293 | - </constructor-arg> | |
294 | - </bean> | |
295 | - | |
296 | - <!-- SAML 2.0 WebSSO Assertion Consumer --> | |
297 | - <bean id="webSSOprofileConsumer" class="org.springframework.security.saml.websso.WebSSOProfileConsumerImpl"> | |
298 | - <property name="responseSkew" value="500"></property> | |
299 | - </bean> | |
300 | - | |
301 | - <!-- SAML 2.0 Holder-of-Key WebSSO Assertion Consumer --> | |
302 | - <bean id="hokWebSSOprofileConsumer" class="org.springframework.security.saml.websso.WebSSOProfileConsumerHoKImpl"/> | |
303 | - | |
304 | - <!-- SAML 2.0 Web SSO profile --> | |
305 | - <bean id="webSSOprofile" class="org.springframework.security.saml.websso.WebSSOProfileImpl"/> | |
306 | - | |
307 | - <!-- SAML 2.0 Holder-of-Key Web SSO profile --> | |
308 | - <bean id="hokWebSSOProfile" class="org.springframework.security.saml.websso.WebSSOProfileConsumerHoKImpl"/> | |
309 | - | |
310 | - <!-- SAML 2.0 ECP profile --> | |
311 | - <bean id="ecpprofile" class="org.springframework.security.saml.websso.WebSSOProfileECPImpl"/> | |
312 | - | |
313 | - <!-- SAML 2.0 Logout Profile --> | |
314 | - <bean id="logoutprofile" class="org.springframework.security.saml.websso.SingleLogoutProfileImpl"/> | |
315 | - | |
316 | - <!-- Bindings, encoders and decoders used for creating and parsing messages --> | |
317 | - <bean id="postBinding" class="org.springframework.security.saml.processor.HTTPPostBinding"> | |
318 | - <constructor-arg ref="parserPool"/> | |
319 | - <constructor-arg ref="velocityEngine"/> | |
320 | - </bean> | |
321 | - | |
322 | - <bean id="redirectBinding" class="org.springframework.security.saml.processor.HTTPRedirectDeflateBinding"> | |
323 | - <constructor-arg ref="parserPool"/> | |
324 | - </bean> | |
325 | - | |
326 | - <bean id="artifactBinding" class="org.springframework.security.saml.processor.HTTPArtifactBinding"> | |
327 | - <constructor-arg ref="parserPool"/> | |
328 | - <constructor-arg ref="velocityEngine"/> | |
329 | - <constructor-arg> | |
330 | - <bean class="org.springframework.security.saml.websso.ArtifactResolutionProfileImpl"> | |
331 | - <constructor-arg> | |
332 | - <bean class="org.apache.commons.httpclient.HttpClient"> | |
333 | - <constructor-arg> | |
334 | - <bean class="org.apache.commons.httpclient.MultiThreadedHttpConnectionManager"/> | |
335 | - </constructor-arg> | |
336 | - </bean> | |
337 | - </constructor-arg> | |
338 | - <property name="processor"> | |
339 | - <bean class="org.springframework.security.saml.processor.SAMLProcessorImpl"> | |
340 | - <constructor-arg ref="soapBinding"/> | |
341 | - </bean> | |
342 | - </property> | |
343 | - </bean> | |
344 | - </constructor-arg> | |
345 | - </bean> | |
346 | - | |
347 | - <bean id="soapBinding" class="org.springframework.security.saml.processor.HTTPSOAP11Binding"> | |
348 | - <constructor-arg ref="parserPool"/> | |
349 | - </bean> | |
350 | - | |
351 | - <bean id="paosBinding" class="org.springframework.security.saml.processor.HTTPPAOS11Binding"> | |
352 | - <constructor-arg ref="parserPool"/> | |
353 | - </bean> | |
354 | - | |
355 | - <!-- Initialization of OpenSAML library--> | |
356 | - <bean class="org.springframework.security.saml.SAMLBootstrap"/> | |
357 | - | |
358 | - <!-- Initialization of the velocity engine --> | |
359 | - <bean id="velocityEngine" class="org.springframework.security.saml.util.VelocityFactory" factory-method="getEngine"/> | |
360 | - | |
361 | - <!-- XML parser pool needed for OpenSAML parsing --> | |
362 | - <bean id="parserPool" class="org.opensaml.xml.parse.StaticBasicParserPool" init-method="initialize"> | |
363 | - <property name="builderFeatures"> | |
364 | - <map> | |
365 | - <entry key="http://apache.org/xml/features/dom/defer-node-expansion" value="false"/> | |
366 | - </map> | |
367 | - </property> | |
368 | - </bean> | |
369 | - | |
370 | - <bean id="parserPoolHolder" class="org.springframework.security.saml.parser.ParserPoolHolder"/> | |
371 | - | |
372 | -</beans> |
cit-adm-materiais-web/bin/src/main/resources/spring/webmvc-context.xml
... | ... | @@ -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-adm-materiais-web/bin/src/main/webapp/WEB-INF/jboss-deployment-structure.xml
cit-adm-materiais-web/bin/src/main/webapp/WEB-INF/jboss-web.xml
cit-adm-materiais-web/bin/src/main/webapp/WEB-INF/web.xml
... | ... | @@ -1,112 +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-adm-materiais-web</display-name> | |
7 | - <session-config> | |
8 | - <session-timeout>600</session-timeout> | |
9 | - </session-config> | |
10 | - | |
11 | - <listener> | |
12 | - <listener-class>org.springframework.web.context.request.RequestContextListener</listener-class> | |
13 | - </listener> | |
14 | - <listener> | |
15 | - <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> | |
16 | - </listener> | |
17 | - | |
18 | - <context-param> | |
19 | - <param-name>contextConfigLocation</param-name> | |
20 | - <param-value> | |
21 | - /WEB-INF/classes/spring/applicationContext.xml | |
22 | - </param-value> | |
23 | - </context-param> | |
24 | - | |
25 | - <!-- Configuracoes do properties --> | |
26 | - <context-param> | |
27 | - <param-name>contextInitializerClasses</param-name> | |
28 | - <param-value>br.com.centralit.framework.util.CustomApplicationContextInitializer</param-value> | |
29 | - </context-param> | |
30 | - <context-param> | |
31 | - <param-name>propertiesFile</param-name> | |
32 | - <param-value>classpath:cit-app.properties</param-value> | |
33 | - </context-param> | |
34 | - <context-param> | |
35 | - <param-name>propertiesFileLoadOrder</param-name> | |
36 | - <param-value>FIRST</param-value> | |
37 | - </context-param> | |
38 | - <!-- Este parametro controla a ordem na qual o arquivo de propriedades sera carregado --> | |
39 | - <!-- "FIRST": Os parametros do arquivo de propriedades sao carregados primero que os outros recursos no ambiente (System, JVM, JNDI Parameters). --> | |
40 | - <!-- "LAST": Os parametros do arquivo de propriedades sao carregados por ultimo que os outros recursos no ambiente (System, JVM, JNDI Parameters). --> | |
41 | - <!-- Por padrao o parametro eh "FIRST". --> | |
42 | - | |
43 | - <filter> | |
44 | - <filter-name>openSessionInViewFilter</filter-name> | |
45 | - <filter-class>org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter</filter-class> | |
46 | - </filter> | |
47 | - <filter-mapping> | |
48 | - <filter-name>openSessionInViewFilter</filter-name> | |
49 | - <url-pattern>*.json</url-pattern> | |
50 | - </filter-mapping> | |
51 | - | |
52 | - <filter> | |
53 | - <filter-name>encoding-filter</filter-name> | |
54 | - <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class> | |
55 | - <init-param> | |
56 | - <param-name>encoding</param-name> | |
57 | - <param-value>UTF-8</param-value> | |
58 | - </init-param> | |
59 | - </filter> | |
60 | - <filter-mapping> | |
61 | - <filter-name>encoding-filter</filter-name> | |
62 | - <url-pattern>/*</url-pattern> | |
63 | - </filter-mapping> | |
64 | - | |
65 | - <filter> | |
66 | - <filter-name>CAS Single Sign Out Filter</filter-name> | |
67 | - <filter-class>org.jasig.cas.client.session.SingleSignOutFilter</filter-class> | |
68 | - </filter> | |
69 | - | |
70 | - <filter-mapping> | |
71 | - <filter-name>CAS Single Sign Out Filter</filter-name> | |
72 | - <url-pattern>/*</url-pattern> | |
73 | - </filter-mapping> | |
74 | - | |
75 | - <listener> | |
76 | - <listener-class>org.jasig.cas.client.session.SingleSignOutHttpSessionListener</listener-class> | |
77 | - </listener> | |
78 | - | |
79 | - <filter> | |
80 | - <filter-name>springSecurityFilterChain</filter-name> | |
81 | - <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class> | |
82 | - </filter> | |
83 | - <filter-mapping> | |
84 | - <filter-name>springSecurityFilterChain</filter-name> | |
85 | - <url-pattern>/*</url-pattern> | |
86 | - </filter-mapping> | |
87 | - | |
88 | - <!-- CORS Filter --> | |
89 | - <filter> | |
90 | - <filter-name>cors</filter-name> | |
91 | - <filter-class>br.com.centralit.framework.filter.SimpleCORSFilter</filter-class> | |
92 | - </filter> | |
93 | - | |
94 | - <filter-mapping> | |
95 | - <filter-name>cors</filter-name> | |
96 | - <url-pattern>/*</url-pattern> | |
97 | - </filter-mapping> | |
98 | - | |
99 | - <servlet> | |
100 | - <servlet-name>spring</servlet-name> | |
101 | - <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> | |
102 | - <init-param> | |
103 | - <param-name>contextConfigLocation</param-name> | |
104 | - <param-value></param-value> | |
105 | - </init-param> | |
106 | - </servlet> | |
107 | - <servlet-mapping> | |
108 | - <servlet-name>spring</servlet-name> | |
109 | - <url-pattern>/</url-pattern> | |
110 | - </servlet-mapping> | |
111 | - | |
112 | -</web-app> |
cit-adm-materiais-web/bin/src/main/webapp/assets/js/angular/custom/controller/ClassificacaoMaterialController.js
... | ... | @@ -1,362 +0,0 @@ |
1 | -'use strict'; | |
2 | - | |
3 | -citApp.controller('ClassificacaoMaterialController', ['$scope', 'ClassificacaoMaterialRepository', 'DominioRepository', '$translate', '$timeout', | |
4 | - function ClassificacaoMaterialController($scope, ClassificacaoMaterialRepository, DominioRepository, $translate, $timeout) { | |
5 | - | |
6 | - $scope.classificacaoMaterial = {}; | |
7 | - | |
8 | - // prepara para adicionar uma Classifica;áo de material tipo GRUPO ou no RAIZ | |
9 | - $scope.novoGrupoClassificacao = function(){ | |
10 | - | |
11 | - $scope.setLoadingGet(true); | |
12 | - | |
13 | - DominioRepository.findAllDominioByCodigo('tipoClassificacaoMaterial', 0).then(function(result) { | |
14 | - | |
15 | - $scope.resetForm(true); | |
16 | - | |
17 | - $scope.classificacaoMaterial.dominioTipoClassificacaoMaterial = result.originalElement; | |
18 | - | |
19 | - $scope.setLoading(false); | |
20 | - | |
21 | - $scope.scrollToCadastro('#containerClassificacaoMaterialEdit'); | |
22 | - }); | |
23 | - | |
24 | - }; | |
25 | - | |
26 | - // inicializa o formulario passando por parametro se esta editando ou visualizando o formulario | |
27 | - $scope.resetForm = function(edit) { | |
28 | - $scope.classificacaoMaterial = {}; | |
29 | - // caso seja false o formulario vem desabilitado | |
30 | - $scope.edit = edit; | |
31 | - $scope.limparSelected(); | |
32 | - $timeout(function(){ | |
33 | - $scope.classificacaoMaterialForm.$submitted = false; | |
34 | - $scope.classificacaoMaterialForm.$setPristine(); | |
35 | - }); | |
36 | - }; | |
37 | - | |
38 | - // Seleciona a Classificação de material | |
39 | - $scope.setClassificacaoMaterial = function(classificacaoMaterial){ | |
40 | - | |
41 | - $scope.setLoadingGet(true); | |
42 | - | |
43 | - $scope.limparSelected(); | |
44 | - | |
45 | - ClassificacaoMaterialRepository.get(classificacaoMaterial.id).then(function(result) { | |
46 | - | |
47 | - $scope.classificacaoMaterial = result.originalElement; | |
48 | - | |
49 | - $scope.edit = true; | |
50 | - | |
51 | - $scope.setLoading(false); | |
52 | - | |
53 | - $scope.scrollToCadastro('#containerClassificacaoMaterialEdit'); | |
54 | - }); | |
55 | - | |
56 | - }; | |
57 | - | |
58 | - // verifica se esta adicionando um novo grupo, caso esteja nao vai apresentar o grupo pai na tela, se for qualquer no filho esse metodo retornará true | |
59 | - $scope.isVisualizarGrupo = function(){ | |
60 | - var result = false; | |
61 | - angular.forEach($scope.tipoClassificacaoMaterial, function(tipoClassificacaoMaterial, key) { | |
62 | - if($scope.classificacaoMaterial.dominioTipoClassificacaoMaterial && $scope.classificacaoMaterial.dominioTipoClassificacaoMaterial.id == tipoClassificacaoMaterial.id){ | |
63 | - result = tipoClassificacaoMaterial.nome != 'CLASSE'; | |
64 | - $scope.classificacaoMaterial.dominioTipoClassificacaoMaterial = tipoClassificacaoMaterial.originalElement; | |
65 | - } | |
66 | - }); | |
67 | - return result; | |
68 | - }; | |
69 | - | |
70 | - DominioRepository.findAllDominio('tipoClassificacaoMaterial').then(function(result) { | |
71 | - $scope.tipoClassificacaoMaterial = result; | |
72 | - }); | |
73 | - | |
74 | - DominioRepository.findAllDominio('tipoMaterial').then(function(result) { | |
75 | - $scope.tipoMaterial = result; | |
76 | - }); | |
77 | - | |
78 | - $scope.saveOrUpdate = function(){ | |
79 | - $scope.classificacaoMaterialForm.$submitted = true; | |
80 | - // verifica campos obrigatorios | |
81 | - if($scope.classificacaoMaterialForm.$valid){ | |
82 | - $scope.setLoadingSalva(true); | |
83 | - | |
84 | - if($scope.classificacaoMaterial.classificacaoMaterialParent && $scope.classificacaoMaterial.classificacaoMaterialParent.classificacaoMaterialFilhos) | |
85 | - delete $scope.classificacaoMaterial.classificacaoMaterialParent.classificacaoMaterialFilhos; | |
86 | - | |
87 | - ClassificacaoMaterialRepository.save($scope.classificacaoMaterial).then(function(result) { | |
88 | - $scope.setLoading(false); | |
89 | - $scope.showAlert("success", $translate.instant('ADMINISTRACAODEMATERIAIS.MSG.SUCESSO_CLASSIFICACAO')); | |
90 | - $scope.classificacaoMaterial = {}; | |
91 | - $scope.resetForm(false); | |
92 | - $scope.fetchResult(false); | |
93 | - }); | |
94 | - }else{ | |
95 | - $scope.showAlert('error', $translate.instant('VALIDACAO.ALERTA_OBRIGATORIOS')); | |
96 | - } | |
97 | - }; | |
98 | - | |
99 | - // -------------------- LISTAGEM ------------------- | |
100 | - $scope.novoFilhoMaterial = function(classificacaoMaterial){ | |
101 | - | |
102 | - $scope.limparSelected(); | |
103 | - | |
104 | - $scope.edit = true; | |
105 | - | |
106 | - $scope.novoNoFilho(classificacaoMaterial); | |
107 | - | |
108 | - $scope.buscarTree(classificacaoMaterial.descricao); | |
109 | - | |
110 | - }; | |
111 | - | |
112 | - // metodo responsavel inicializar e selecionar a classificaçãoMaterialParent(Pai) para poder incluir um novo filho | |
113 | - $scope.novoNoFilho = function(classificacaoMaterial){ | |
114 | - | |
115 | - $scope.limparSelected(); | |
116 | - | |
117 | - $scope.classificacaoMaterial = {}; | |
118 | - | |
119 | - $scope.classificacaoMaterial.classificacaoMaterialParent = classificacaoMaterial.originalElement ? classificacaoMaterial.originalElement : classificacaoMaterial; | |
120 | - | |
121 | - $scope.setLoadingGet(true); | |
122 | - | |
123 | - DominioRepository.findAllDominioByCodigo('tipoClassificacaoMaterial', (classificacaoMaterial.dominioTipoClassificacaoMaterial.codigo + 1)).then(function(result) { | |
124 | - | |
125 | - $scope.classificacaoMaterial.dominioTipoClassificacaoMaterial = result.originalElement; | |
126 | - | |
127 | - $scope.edit = true; | |
128 | - | |
129 | - $scope.setLoading(false); | |
130 | - | |
131 | - $scope.scrollToCadastro('#containerClassificacaoMaterialEdit'); | |
132 | - }); | |
133 | - | |
134 | - $scope.classificacaoMaterialForm.$submitted = false; | |
135 | - $scope.classificacaoMaterialForm.$setPristine(); | |
136 | - }; | |
137 | - | |
138 | - // metodo responsavel por listar os filhos na arvore | |
139 | - $scope.mostrarFilhos = function(classificacaoMaterialParent){ | |
140 | - | |
141 | - // verificação para mostrar filhos > caso seja false ira esconder os filhos e colocar o sinal de + | |
142 | - if(classificacaoMaterialParent.mostrarFilhos){ | |
143 | - | |
144 | - classificacaoMaterialParent.mostrarFilhos = false; | |
145 | - | |
146 | - }else{ | |
147 | - | |
148 | - if (classificacaoMaterialParent.dominioTipoClassificacaoMaterial.codigo === 4){ | |
149 | - | |
150 | - $scope.setClassificacaoMaterial(classificacaoMaterialParent); | |
151 | - | |
152 | - } else { | |
153 | - | |
154 | - var offsetWindow = angular.element(window).scrollTop(); | |
155 | - | |
156 | - $scope.setLoadingPesquisa(true); | |
157 | - | |
158 | - // busca via rest os filhos do no selecionado | |
159 | - ClassificacaoMaterialRepository.listarFilhos(classificacaoMaterialParent.originalElement ? classificacaoMaterialParent.originalElement.id : classificacaoMaterialParent.id).then(function(result) { | |
160 | - | |
161 | - classificacaoMaterialParent.classificacaoMaterialFilhos = result; | |
162 | - | |
163 | - classificacaoMaterialParent.mostrarFilhos = true; | |
164 | - | |
165 | - $scope.setLoading(false); | |
166 | - | |
167 | - $scope.scrollToCadastro('#containerClassificacaoMaterialEdit', offsetWindow); | |
168 | - }); | |
169 | - | |
170 | - } | |
171 | - | |
172 | - } | |
173 | - | |
174 | - }; | |
175 | - | |
176 | - // recarregar a arvore de listagem | |
177 | - $scope.fetchResult = function(exclusaoClassificacao) { | |
178 | - | |
179 | - if(exclusaoClassificacao){ | |
180 | - | |
181 | - $scope.setLoadingAtualiza(true); | |
182 | - | |
183 | - } else { | |
184 | - | |
185 | - $scope.setLoadingPesquisa(true); | |
186 | - } | |
187 | - | |
188 | - | |
189 | - return ClassificacaoMaterialRepository.listarGrupos().then(function(result) { | |
190 | - $scope.classificacaoMaterialList = result; | |
191 | - | |
192 | - $scope.setLoading(false); | |
193 | - | |
194 | - }, function() { | |
195 | - $scope.classificacaoMaterialList = []; | |
196 | - | |
197 | - }); | |
198 | - }; | |
199 | - | |
200 | - // metodo responsavel por preparar e chamar o dialog de confirmação para uma classificação de material | |
201 | - $scope.remove = function(classificacaoMaterial){ | |
202 | - $scope.classificacaoMaterial = classificacaoMaterial; | |
203 | - | |
204 | - $scope.$openModalConfirm({message: $translate.instant('MSG.DESEJA_EXCLUIR_ITENS'), callback: $scope.excluir, item: $scope.classificacaoMaterial}); | |
205 | - }; | |
206 | - | |
207 | - // metodo para remover uma classificação de material | |
208 | - $scope.excluir = function(){ | |
209 | - | |
210 | - var item = this.item; | |
211 | - | |
212 | - $scope.setLoadingPesquisa(true); | |
213 | - ClassificacaoMaterialRepository.remove(item).then(function(result) { | |
214 | - $scope.resetForm(false); | |
215 | - // verifica de foi excluido com sucesso | |
216 | - if(result){ | |
217 | - $scope.showAlert("success", $translate.instant('ADMINISTRACAODEMATERIAIS.MSG.EXCLUSAO_CLASSIFICASSAO_MATERIAL')); | |
218 | - } | |
219 | - $scope.setLoading(false); | |
220 | - $scope.$modalConfirmInstance.dismiss('cancel'); | |
221 | - $scope.fetchResult(true); | |
222 | - }); | |
223 | - | |
224 | - $scope.$modalConfirmInstance.dismiss('cancel'); | |
225 | - | |
226 | - }; | |
227 | - | |
228 | - // metodo para buscar qualquer elemento na arvore de acordo com que o usuario digita (obs: acima de 2 caracteres) | |
229 | - $scope.buscarTree = function(buscaFederalDescricao){ | |
230 | - | |
231 | - //Deve remover caracteres especiais | |
232 | - $scope.buscaFederalSupply = $scope.removerCaracteresEspeciais($scope.buscaFederalSupply); | |
233 | - buscaFederalDescricao = $scope.buscaFederalSupply; | |
234 | - | |
235 | - // verifica se o usuario já digitou mais q dois caracteres | |
236 | - if(buscaFederalDescricao && buscaFederalDescricao.length > 2) { | |
237 | - | |
238 | - $scope.setLoadingPesquisa(true); | |
239 | - | |
240 | - return ClassificacaoMaterialRepository.listarGruposTree(buscaFederalDescricao).then(function(result) { | |
241 | - | |
242 | - $scope.classificacaoMaterialList = result; | |
243 | - | |
244 | - $scope.abrirNosArvore(); | |
245 | - | |
246 | - $scope.setLoading(false); | |
247 | - | |
248 | - }, function() { | |
249 | - | |
250 | - $scope.classificacaoMaterialList = []; | |
251 | - | |
252 | - }); | |
253 | - | |
254 | - }else{ | |
255 | - $scope.fetchResult(false); | |
256 | - $scope.setLoading(false); | |
257 | - } | |
258 | - }; | |
259 | - | |
260 | - // metodo responsavl por abrir todos os nos da arvore para mostrar os filhos | |
261 | - $scope.abrirNosArvore = function(){ | |
262 | - | |
263 | - // percorre os nos CLASSIFICADORES - PERMANENTE OU CONSUMO | |
264 | - angular.forEach($scope.classificacaoMaterialList, function(classificacao, key) { | |
265 | - | |
266 | - if(classificacao.classificacaoMaterialFilhos){ | |
267 | - | |
268 | - classificacao.mostrarFilhos = true; | |
269 | - | |
270 | - } else { | |
271 | - | |
272 | - classificacao.mostrarFilhos = false; | |
273 | - | |
274 | - } | |
275 | - | |
276 | - // percorre os nos RAIZ - GRUPOS | |
277 | - angular.forEach(classificacao.classificacaoMaterialFilhos, function(grupo, key) { | |
278 | - | |
279 | - if(grupo.classificacaoMaterialFilhos){ | |
280 | - | |
281 | - grupo.mostrarFilhos = false; | |
282 | - | |
283 | - } else { | |
284 | - | |
285 | - grupo.mostrarFilhos = true; | |
286 | - | |
287 | - } | |
288 | - | |
289 | - // percorre os SUB-GRUPOS | |
290 | - angular.forEach(grupo.classificacaoMaterialFilhos, function(subGrupo, key) { | |
291 | - | |
292 | - if(subGrupo.classificacaoMaterialFilhos){ | |
293 | - | |
294 | - subGrupo.mostrarFilhos = false; | |
295 | - | |
296 | - grupo.mostrarFilhos = true; | |
297 | - | |
298 | - } else { | |
299 | - | |
300 | - subGrupo.mostrarFilhos = true; | |
301 | - | |
302 | - } | |
303 | - | |
304 | - // percorre os MATERIAIS | |
305 | - angular.forEach(subGrupo.classificacaoMaterialFilhos, function(material, key) { | |
306 | - | |
307 | - if(material.classificacaoMaterialFilhos){ | |
308 | - | |
309 | - material.mostrarFilhos = false; | |
310 | - | |
311 | - subGrupo.mostrarFilhos = true; | |
312 | - | |
313 | - } else { | |
314 | - | |
315 | - material.mostrarFilhos = true; | |
316 | - | |
317 | - } | |
318 | - | |
319 | - }); | |
320 | - }); | |
321 | - }); | |
322 | - }); | |
323 | - }; | |
324 | - | |
325 | - // Limpar o item selecionado onde quer q ele esteja | |
326 | - $scope.limparSelected = function(){ | |
327 | - | |
328 | - // percorre os GRUPOS | |
329 | - angular.forEach($scope.classificacaoMaterialList, function(grupo, key) { | |
330 | - | |
331 | - grupo.$selected = false; | |
332 | - | |
333 | - // percorre os SUB-GRUPOS | |
334 | - angular.forEach(grupo.classificacaoMaterialFilhos, function(subGrupo, key) { | |
335 | - | |
336 | - subGrupo.$selected = false; | |
337 | - | |
338 | - // percorre os MATERIAIS | |
339 | - angular.forEach(subGrupo.classificacaoMaterialFilhos, function(material, key) { | |
340 | - | |
341 | - material.$selected = false; | |
342 | - | |
343 | - }); | |
344 | - }); | |
345 | - | |
346 | - }); | |
347 | - }; | |
348 | - | |
349 | - $scope.removerCaracteresEspeciais = function(texto) { | |
350 | - var textoNovo = texto; | |
351 | - var regex = new RegExp("^[0-9a-zA-Z\b]+$"); | |
352 | - if (!regex.test(texto)) { | |
353 | - textoNovo = texto.replace(/[!@#$%&*()_|+\-=?;:'"<>\{\}\[\]\\\/]/gi, ''); | |
354 | - } | |
355 | - return textoNovo; | |
356 | - }; | |
357 | - | |
358 | - // BUSCA LISTA DE FederalSupply | |
359 | - $scope.fetchResult(false); | |
360 | -}]); | |
361 | - | |
362 | - |
cit-adm-materiais-web/bin/src/main/webapp/assets/js/angular/custom/controller/ContaContabilController.js
... | ... | @@ -1,209 +0,0 @@ |
1 | -'use strict'; | |
2 | - | |
3 | -citApp.controller('ContaContabilController', ['$scope', 'ContaContabilRepository', 'DominioRepository', '$translate', '$timeout', 'MaterialRepository', 'ConfiguracaoParametroSistemaRepository', 'ContaContabilMovimentoRepository', | |
4 | - function ContaContabilController($scope, ContaContabilRepository, DominioRepository, $translate, $timeout, MaterialRepository, ConfiguracaoParametroSistemaRepository, ContaContabilMovimentoRepository) { | |
5 | - | |
6 | - $scope.contaContabil = { | |
7 | - configuracoesReferencia : [{ | |
8 | - mesReferencia : $scope.usuarioLogado.organizacao.dataReferenciaVigente, | |
9 | - apresentaRMB : false, | |
10 | - apresentaRelatorioInventario : false, | |
11 | - apresentaRMA : false | |
12 | - }] | |
13 | - }; | |
14 | - | |
15 | - $scope.dataReferencia = $scope.usuarioLogado.organizacao.dataReferenciaVigente; | |
16 | - | |
17 | - // Limpa formulário para novo cadastro | |
18 | - $scope.resetForm = function() { | |
19 | - $scope.limparContaContabil(); | |
20 | - $scope.edit = true; | |
21 | - $scope.pgEdit = true; | |
22 | - $scope.emUso = false; | |
23 | - $timeout(function(){ | |
24 | - $scope.contaContabilForm.$submitted = false; | |
25 | - $scope.contaContabilForm.$setPristine(); | |
26 | - }); | |
27 | - }; | |
28 | - | |
29 | - // Atualiza pagina de pesquisa | |
30 | - $scope.atualizaPaginaPesquisa = function () { | |
31 | - angular.element('#searchContaContabil').scope().fetchResult(); | |
32 | - }; | |
33 | - | |
34 | - // MODAL QUE CONFIRMA REMOVER DA CONTA CONTABIL | |
35 | - $scope.remove = function(contaContabil){ | |
36 | - $scope.$openModalConfirm({ | |
37 | - message: $translate.instant('ADMINISTRACAODEMATERIAIS.MSG.CONFIRMA_EXCLUIR_CONTA_CONTABIL'), | |
38 | - callback: function () { | |
39 | - ContaContabilRepository.remove(contaContabil).then(function() { | |
40 | - $scope.contaContabil = {}; | |
41 | - | |
42 | - $scope.$modalConfirmInstance.dismiss('cancel'); | |
43 | - $scope.showAlert("success", $translate.instant('ADMINISTRACAODEMATERIAIS.MSG.SUCESSO_CONTA_CONTABIL_EXCLUIDO')); | |
44 | - angular.element('#searchContaContabil').scope().fetchResult(); | |
45 | - | |
46 | - $scope.resetForm(); | |
47 | - }); | |
48 | - } | |
49 | - }); | |
50 | - }; | |
51 | - | |
52 | - DominioRepository.findAllDominio('tipoContaContabil').then(function(result) { | |
53 | - $scope.dominiosTipoContaContabil = result; | |
54 | - }); | |
55 | - | |
56 | - DominioRepository.findAllDominio('tipoMaterial').then(function(result) { | |
57 | - $scope.dominiosTipoMaterial = result; | |
58 | - }); | |
59 | - | |
60 | - DominioRepository.findAllDominio('tipoCicloTaxaContabil').then(function(result) { | |
61 | - $scope.dominiosTipoCicloTaxaContabil = result; | |
62 | - }); | |
63 | - | |
64 | - $scope.mudaTipoMaterial = function() { | |
65 | - $timeout(function(){ | |
66 | - if ($scope.contaContabil.dominioTipoMaterial.codigo == 1) { | |
67 | - $scope.contaContabil.dominioTipoContaContabil = null; | |
68 | - $scope.contaContabil.taxaDepreciacaoMensal = null; | |
69 | - $scope.contaContabil.percentualNaoDepreciavel = null; | |
70 | - $scope.contaContabil.vidaUtil = null; | |
71 | - | |
72 | - angular.forEach($scope.contaContabil.configuracoesReferencia, function (conf) { | |
73 | - conf.apresentaRMB = false; | |
74 | - conf.apresentaRelatorioInventario = false; | |
75 | - }); | |
76 | - } else if ($scope.contaContabil.dominioTipoMaterial.codigo == 2) { | |
77 | - angular.forEach($scope.contaContabil.configuracoesReferencia, function (conf) { | |
78 | - conf.apresentaRMA = false; | |
79 | - }); | |
80 | - } | |
81 | - }, 1000); | |
82 | - }; | |
83 | - | |
84 | - // SALVA a Conta Contabil | |
85 | - $scope.saveOrUpdate = function(){ | |
86 | - $scope.contaContabilForm.$submitted = true; | |
87 | - | |
88 | - //verifica se o formulario está valido para salvar | |
89 | - if($scope.contaContabilForm.$valid){ | |
90 | - | |
91 | - $scope.setLoadingSalva(true); | |
92 | - | |
93 | - | |
94 | - //Valida o tipo do material = PERMANENTE | |
95 | - if($scope.contaContabil.dominioTipoMaterial.codigo == 2){ | |
96 | - | |
97 | - //Faz o calculo da taxa de depreciacao mensal | |
98 | - $scope.calcularTaxaDepreciacao(); | |
99 | - | |
100 | - } | |
101 | - | |
102 | - ContaContabilRepository.save($scope.contaContabil).then(function(result) { | |
103 | - $scope.contaContabil = result.originalElement; | |
104 | - $scope.showAlert("success", $translate.instant('ADMINISTRACAODEMATERIAIS.MSG.SUCESSO_CONTA_CONTABIL')); | |
105 | - $scope.contaContabilForm.$submitted = false; | |
106 | - $scope.setLoading(false); | |
107 | - }); | |
108 | - | |
109 | - }else{ | |
110 | - //Mensagem de erro de campos obrigatorios não preenchidos | |
111 | - $scope.showAlert('error', $translate.instant('VALIDACAO.ALERTA_OBRIGATORIOS'), " ", false); | |
112 | - } | |
113 | - }; | |
114 | - | |
115 | - // Limpa o formulario preenchido | |
116 | - $scope.limparContaContabil = function(){ | |
117 | - $scope.contaContabil = { | |
118 | - organizacao : $scope.usuarioLogado.organizacao, | |
119 | - taxaDepreciacaoMensal : 0.0, | |
120 | - configuracoesReferencia : [{ | |
121 | - mesReferencia : $scope.usuarioLogado.organizacao.dataReferenciaVigente, | |
122 | - apresentaRMB : false, | |
123 | - apresentaRelatorioInventario : false, | |
124 | - apresentaRMA : false | |
125 | - }] | |
126 | - }; | |
127 | - }; | |
128 | - | |
129 | - // Limpa o formulario preenchido | |
130 | - $scope.validaReferencia = function(mesReferencia){ | |
131 | - var mesReferenciaData = converterStringUSemDate(mesReferencia); | |
132 | - var referenciaVigente = $scope.usuarioLogado.organizacao.dataReferenciaVigente; | |
133 | - if (referenciaVigente.getMonth() == mesReferenciaData.getMonth() && referenciaVigente.getYear() == mesReferenciaData.getYear()) { | |
134 | - return false; | |
135 | - } | |
136 | - return true; | |
137 | - }; | |
138 | - | |
139 | - | |
140 | - /** | |
141 | - * Funcao para calcular a taxa de depreciacao mensal com baso no calculo: | |
142 | - * Taxa de Depreciação: taxaDepreciacao = (1/vidaUtil) | |
143 | - */ | |
144 | - $scope.calcularTaxaDepreciacao = function(){ | |
145 | - if($scope.contaContabil.vidaUtil && $scope.contaContabil.vidaUtil > 0){ | |
146 | - $scope.contaContabil.taxaDepreciacaoMensal = (1/$scope.contaContabil.vidaUtil); | |
147 | - } else { | |
148 | - $scope.contaContabil.taxaDepreciacaoMensal = 0.00000,0; | |
149 | - } | |
150 | - }; | |
151 | - | |
152 | - // Consulta entidade e mostra no formulario | |
153 | - $scope.getContaContabil = function(contaContabil, edit){ | |
154 | - $scope.setLoadingGet(true); | |
155 | - $scope.emUso = false; | |
156 | - var idConta = contaContabil.id; | |
157 | - | |
158 | - ContaContabilRepository.get(idConta).then(function(result) { | |
159 | - $scope.contaContabil = result.originalElement; | |
160 | - $scope.edit = edit; | |
161 | - $scope.setLoading(false); | |
162 | - }); | |
163 | - | |
164 | - MaterialRepository.existeVinculo({"joinClass": 'contaContabil.id', "id": idConta}).then(function(result) { | |
165 | - $timeout(function() { | |
166 | - if (result) { | |
167 | - $scope.emUso = true; | |
168 | - } | |
169 | - }); | |
170 | - }); | |
171 | - ConfiguracaoParametroSistemaRepository.getParametro("CONTA_CONTABIL_ALMOXARIFADO").then(function(result) { | |
172 | - $timeout(function() { | |
173 | - if (result.valor == idConta) { | |
174 | - $scope.emUso = true; | |
175 | - } | |
176 | - }); | |
177 | - }); | |
178 | - ContaContabilMovimentoRepository.existeVinculo({"joinClass": 'contaContabil.id', "id": idConta}).then(function(result) { | |
179 | - $timeout(function() { | |
180 | - if (result) { | |
181 | - $scope.emUso = true; | |
182 | - } | |
183 | - }); | |
184 | - }); | |
185 | - $scope.pgEdit = edit; | |
186 | - }; | |
187 | -}]); | |
188 | - | |
189 | -citApp.filter('orderReferencia', [function(){ //Ordena a lista de integrantes em ordem alfabética | |
190 | - return function(input) { | |
191 | - if (!angular.isObject(input)) return input; | |
192 | - | |
193 | - var array = []; | |
194 | - for(var objectKey in input) { | |
195 | - if (objectKey != "fill") { | |
196 | - array.push(input[objectKey]); | |
197 | - } | |
198 | - } | |
199 | - | |
200 | - array.sort(function(a, b){ | |
201 | - var alc = a.mesReferencia, | |
202 | - blc = b.mesReferencia; | |
203 | - return alc > blc ? 1 : alc < blc ? -1 : 0; | |
204 | - }); | |
205 | - return array; | |
206 | - }; | |
207 | -}]); | |
208 | - | |
209 | - |
cit-adm-materiais-web/bin/src/main/webapp/assets/js/angular/custom/controller/ContaContabilListController.js
... | ... | @@ -1,63 +0,0 @@ |
1 | -'use strict'; | |
2 | - | |
3 | -citApp.controller('ContaContabilListController', ['$scope', 'ContaContabilRepository', 'DominioRepository', '$translate', | |
4 | - function ContaContabilListController($scope, ContaContabilRepository, DominioRepository, $translate) { | |
5 | - $scope.$showAdvancedFilters = false; | |
6 | - | |
7 | - $scope.resetForm = function() { | |
8 | - angular.element("#editContaContabil").scope().resetForm(); | |
9 | - }; | |
10 | - | |
11 | - $scope.headers = [ { | |
12 | - title : $translate.instant('LABEL.CODIGO'), | |
13 | - value : 'codigo' | |
14 | - }, { | |
15 | - title : $translate.instant('LABEL.DESCRICAO'), | |
16 | - value : 'descricao' | |
17 | - }, { | |
18 | - title : $translate.instant('ADMINISTRACAODEMATERIAIS.LABEL.TIPO_MATERIAL'), | |
19 | - value : 'dominioTipoMaterial.descricao' | |
20 | - }, { | |
21 | - title : $translate.instant('LABEL.DATA_BLOQUEIO'), | |
22 | - value : 'dataBloqueio', | |
23 | - filter : 'dateBR' | |
24 | - }]; | |
25 | - | |
26 | - // default criteria that will be sent to the server | |
27 | - $scope.filterCriteria = { | |
28 | - start : 1, | |
29 | - dir : 'asc', | |
30 | - sort : 'id', | |
31 | - limit : 10, | |
32 | - fields: ['id','codigo','descricao', 'dominioTipoMaterial.descricao', 'dataBloqueio'], | |
33 | - filters : [{type: 'string', field: 'codigo'}, | |
34 | - {type: 'string', field: 'descricao'}, | |
35 | - {type: 'string', field: 'dominioTipoMaterial.descricao', listaDominio : []}, | |
36 | - {type: 'date', field: 'dataBloqueio'}] | |
37 | - }; | |
38 | - | |
39 | - DominioRepository.findAllDominio('tipoMaterial').then(function(result) { | |
40 | - $scope.filterCriteria.filters[2].listaDominio = result; | |
41 | - }); | |
42 | - | |
43 | - // ABRI CONTA CONTABIL SELECIONADA | |
44 | - $scope.abrirContaContabil = function(edit){ | |
45 | - var contaContabil = $scope.contaContabilChecked; | |
46 | - | |
47 | - if(!edit && !contaContabil) { | |
48 | - $scope.showAlert('warning', $translate.instant('MSG.SELECIONE_UM_ITEM_PARA_VISUALIZACAO')); | |
49 | - return; | |
50 | - } | |
51 | - | |
52 | - if(edit && !contaContabil) { | |
53 | - $scope.showAlert('warning', $translate.instant('MSG.SELECIONE_UM_ITEM_PARA_EDICAO')); | |
54 | - return; | |
55 | - } | |
56 | - | |
57 | - angular.element('#editContaContabil').scope().getContaContabil(contaContabil, edit); | |
58 | - $scope.$showPageEditWorkspace($scope.workspace); | |
59 | - }; | |
60 | - | |
61 | -}]); | |
62 | - | |
63 | - |
cit-adm-materiais-web/bin/src/main/webapp/assets/js/angular/custom/controller/MaterialController.js
... | ... | @@ -1,644 +0,0 @@ |
1 | -'use strict'; | |
2 | -citApp.controller('MaterialController', ['$scope', 'MaterialRepository', 'ClassificacaoMaterialRepository', 'CaracteristicaRepository', 'FileUploader', 'MaterialImagemRepository', | |
3 | - '$timeout', 'MaterialCaracteristicaRepository', 'MaterialPermanenteConsumoRepository', 'ContaContabilRepository', 'DominioRepository', '$translate', '$filter', 'MaterialConsumoRepository', 'MaterialConsumoTipoUnidadeMedidaEntradaRepository', 'MaterialPermanenteRepository', 'UnidadeMedidaRepository', | |
4 | - function MaterialController($scope, MaterialRepository, ClassificacaoMaterialRepository, CaracteristicaRepository, FileUploader, MaterialImagemRepository, | |
5 | - $timeout, MaterialCaracteristicaRepository, MaterialPermanenteConsumoRepository, ContaContabilRepository, DominioRepository, $translate, $filter, MaterialConsumoRepository, MaterialConsumoTipoUnidadeMedidaEntradaRepository, MaterialPermanenteRepository, UnidadeMedidaRepository) { | |
6 | - | |
7 | - // CONSTANTES DOMINIO | |
8 | - var CODIGO_TIPO_CLASSIFICACAO_DETALHE = 4; | |
9 | - | |
10 | - $scope.edit = true; | |
11 | - | |
12 | - $scope.classificacaoMaterial; | |
13 | - $scope.classificacaoMaterialList = []; | |
14 | - | |
15 | - $scope.unidadesMedida = []; | |
16 | - $scope.unidadesMedidaMaterialConsumo = []; | |
17 | - $scope.unidadeMedidaEntrada = {}; | |
18 | - | |
19 | - $scope.materialCaracteristica = {}; | |
20 | - $scope.materialConsumo = {}; | |
21 | - | |
22 | - $scope.material = { | |
23 | - materialCaracteristicas : [], | |
24 | - materiaisConsumo : [] | |
25 | - }; | |
26 | - | |
27 | - $scope.resetForm = function() { | |
28 | - $scope.edit = true; | |
29 | - $scope.limpar(); | |
30 | - }; | |
31 | - | |
32 | - $scope.getMaterial = function (material, edit) { | |
33 | - $scope.setLoadingSalva(true); | |
34 | - | |
35 | - MaterialRepository.get(material.id).then(function(result) { | |
36 | - $scope.material = result.originalElement; | |
37 | - $scope.unidadeMedidaSelecionada = null; | |
38 | - if ($scope.material.dataBloqueio === null || $scope.material.dataBloqueio === undefined) { | |
39 | - $scope.edit = edit; | |
40 | - } else { | |
41 | - $scope.edit = false; | |
42 | - } | |
43 | - | |
44 | - configurarDadosClassificacaoMaterial(); | |
45 | - $scope.setLoading(false); | |
46 | - }); | |
47 | - }; | |
48 | - | |
49 | - $scope.limpar = function() { | |
50 | - $scope.material = {}; | |
51 | - $scope.unidadeMedidaSelecionada = null; | |
52 | - | |
53 | - uploader.clearQueue(); | |
54 | - | |
55 | - $scope.materialCaracteristica.caracteristica = null; | |
56 | - $scope.materialConsumo.materialConsumo = null; | |
57 | - $scope.apresentarBloquearCaracteristica = false; | |
58 | - | |
59 | - $scope.materialDadosGrupo = null; | |
60 | - $scope.materialDadosSubGrupo = null; | |
61 | - $scope.materialDadosMaterial = null; | |
62 | - $scope.MaterialDadosDetalhe = null; | |
63 | - | |
64 | - $timeout(function() { | |
65 | - $scope.materialForm.$submitted = false; | |
66 | - $scope.materialForm.$setPristine(); | |
67 | - }); | |
68 | - }; | |
69 | - | |
70 | - var uploader = $scope.uploader = new FileUploader({ | |
71 | - autoUpload: false, | |
72 | - queueLimit: 10, | |
73 | - url : '/cit-adm-materiais-web/rest/materialImagem/uploadMultipleFile?idMaterial=', | |
74 | - }); | |
75 | - | |
76 | - // FILTERS | |
77 | - uploader.filters.push({ | |
78 | - name: 'imageFilter', | |
79 | - fn: function(item /*{File|FileLikeObject}*/, options) { | |
80 | - var type = '|' + item.type.slice(item.type.lastIndexOf('/') + 1) + '|'; | |
81 | - return '|jpg|png|jpeg|bmp|gif|'.indexOf(type) !== -1; | |
82 | - } | |
83 | - }); | |
84 | - | |
85 | - // CALLBACKS | |
86 | - uploader.onWhenAddingFileFailed = function(item /*{File|FileLikeObject}*/, filter, options) { | |
87 | - console.info('onWhenAddingFileFailed', item, filter, options); | |
88 | - }; | |
89 | - uploader.onAfterAddingFile = function(fileItem) { | |
90 | - console.info('onAfterAddingFile', fileItem); | |
91 | - }; | |
92 | - uploader.onAfterAddingAll = function(addedFileItems) { | |
93 | - console.info('onAfterAddingAll', addedFileItems); | |
94 | - }; | |
95 | - uploader.onBeforeUploadItem = function(item) { | |
96 | - console.info('onBeforeUploadItem', item); | |
97 | - }; | |
98 | - uploader.onProgressItem = function(fileItem, progress) { | |
99 | - console.info('onProgressItem', fileItem, progress); | |
100 | - }; | |
101 | - uploader.onProgressAll = function(progress) { | |
102 | - console.info('onProgressAll', progress); | |
103 | - }; | |
104 | - uploader.onSuccessItem = function(fileItem, response, status, headers) { | |
105 | - console.info('onSuccessItem', fileItem, response, status, headers); | |
106 | - }; | |
107 | - uploader.onErrorItem = function(fileItem, response, status, headers) { | |
108 | - console.info('onErrorItem', fileItem, response, status, headers); | |
109 | - }; | |
110 | - uploader.onCancelItem = function(fileItem, response, status, headers) { | |
111 | - console.info('onCancelItem', fileItem, response, status, headers); | |
112 | - }; | |
113 | - uploader.onCompleteItem = function(fileItem, response, status, headers) { | |
114 | - console.info('onCompleteItem', fileItem, response, status, headers); | |
115 | - }; | |
116 | - uploader.onCompleteAll = function() { | |
117 | - //uploader.clearQueue(); | |
118 | - console.info('onCompleteAll'); | |
119 | - }; | |
120 | - | |
121 | - // Atualiza pagina de pesquisa | |
122 | - $scope.atualizaPaginaPesquisa = function () { | |
123 | - angular.element('#searchMaterial').scope().fetchResultMaterial(); | |
124 | - }; | |
125 | - | |
126 | - $scope.saveOrUpdate = function(){ | |
127 | - $scope.materialForm.$submitted = true; | |
128 | - | |
129 | - //Vefifica se o materialForm está invalido, caso esteja envia um alerta para o usuario | |
130 | - if ($scope.materialForm.$invalid) { | |
131 | - $scope.showAlert('error', $translate.instant('MSG.MN001')); | |
132 | - } else { | |
133 | - $scope.setLoadingSalva(true); | |
134 | - | |
135 | - if ($scope.material.dominioTipoMaterial.codigo == 1) { | |
136 | - MaterialConsumoRepository.save($scope.material).then(function(result) { | |
137 | - $scope.posSave(result); | |
138 | - }); | |
139 | - } else { | |
140 | - MaterialPermanenteRepository.save($scope.material).then(function(result) { | |
141 | - $scope.posSave(result); | |
142 | - }); | |
143 | - } | |
144 | - } | |
145 | - }; | |
146 | - | |
147 | - $scope.posSave = function(result) { | |
148 | - $scope.material = result.originalElement; | |
149 | - $scope.setLoading(false); | |
150 | - salvarUpload(result); | |
151 | - $scope.showAlert("success", $translate.instant('ADMINISTRACAODEMATERIAIS.MSG.SUCESSO_MATERIAL')); | |
152 | - | |
153 | - $timeout(function(){ | |
154 | - $scope.materialForm.$submitted = false; | |
155 | - }); | |
156 | - }; | |
157 | - | |
158 | - function salvarUpload(result) { | |
159 | - //Percorre a lista de arquivos para setar na url o id do material | |
160 | - angular.forEach(uploader.queue, function(item, key) { | |
161 | - item.url = item.url + result.originalElement.id; | |
162 | - }); | |
163 | - //Envia a requisição dos arquivos | |
164 | - uploader.uploadAll(); | |
165 | - }; | |
166 | - | |
167 | - $scope.apresentarDialogConfirmacaoRemocaoMaterial = function(){ | |
168 | - //Verifica se o material já foi persistido | |
169 | - if($scope.material.id){ | |
170 | - $scope.$openModalConfirm({message: $translate.instant('LABEL.CONFIRMA_EXCLUSAO'), callback: $scope.remove}); | |
171 | - } | |
172 | - }; | |
173 | - | |
174 | - // Método responsável por remove o material | |
175 | - $scope.remove = function(){ | |
176 | - $scope.setLoadingRemove(true); | |
177 | - | |
178 | - MaterialRepository.remove($scope.material).then(function() { | |
179 | - $scope.setLoading(false); | |
180 | - $scope.resetForm(false); | |
181 | - uploader.clearQueue(); | |
182 | - $scope.materialForm.$submitted = false; | |
183 | - $scope.showAlert("success", $translate.instant('MSG.MG001')); | |
184 | - }); | |
185 | - | |
186 | - $scope.$modalConfirmInstance.dismiss('cancel'); | |
187 | - $timeout(function(){ | |
188 | - $scope.materialForm.$submitted = false; | |
189 | - $scope.materialForm.$setPristine(); | |
190 | - }); | |
191 | - }; | |
192 | - | |
193 | - // AUTO COMPLETE CLASSIFICAÇÃO MATERIAL | |
194 | - // Busca a classificação de material pela descricao ou código por tipo detalhe | |
195 | - $scope.findClassificacaoMaterial = function(value) { | |
196 | - return ClassificacaoMaterialRepository.listarClassificacaoMaterial(value, CODIGO_TIPO_CLASSIFICACAO_DETALHE).then(function(result) { | |
197 | - return result; | |
198 | - }); | |
199 | - }; | |
200 | - | |
201 | - //Método responsável por apresentar os dados do Matérial | |
202 | - $scope.apresentarDadosMaterial = function(item) { | |
203 | - // verifica se o dominioTipoClassificacaoMaterial é do tipo material | |
204 | - uploader.clearQueue(); | |
205 | - | |
206 | - if(item.dominioTipoClassificacaoMaterial.codigo == 4){ | |
207 | - $scope.material = {}; | |
208 | - | |
209 | - MaterialRepository.findPorIdClassificacaoMaterial(item.id).then(function(result) { | |
210 | - $scope.material = result.originalElement; | |
211 | - $scope.unidadesMedidaMaterialConsumo = $filter('idNotEqualUnidadeMedida')($scope.unidadesMedidaMaterialConsumo, $scope.material.tiposUnidadeMedidaEntrada); | |
212 | - | |
213 | - if (!$scope.material.id) { | |
214 | - $scope.material.classificacaoMaterial = item.originalElement ? item.originalElement : item; | |
215 | - } else { | |
216 | - $scope.materialForm.$submitted = false; | |
217 | - $scope.materialForm.$setPristine(); | |
218 | - } | |
219 | - | |
220 | - configurarDadosClassificacaoMaterial(); | |
221 | - | |
222 | - $scope.edit = true; | |
223 | - }); | |
224 | - } else { | |
225 | - $scope.resetForm(); | |
226 | - }; | |
227 | - | |
228 | - $scope.classificacaoMaterial = null; | |
229 | - $timeout(function(){ | |
230 | - $scope.materialForm.$submitted = false; | |
231 | - $scope.materialForm.$setPristine(); | |
232 | - $scope.apresentarBloquearCaracteristica = false; | |
233 | - }); | |
234 | - | |
235 | - }; | |
236 | - | |
237 | - function configurarDadosClassificacaoMaterial() { | |
238 | - $scope.materialDadosGrupo = null; | |
239 | - $scope.materialDadosSubGrupo = null; | |
240 | - $scope.materialDadosMaterial = null; | |
241 | - $scope.MaterialDadosDetalhe = null; | |
242 | - | |
243 | - if ($scope.material.classificacaoMaterial) { | |
244 | - //GRUPO | |
245 | - if($scope.material.classificacaoMaterial.classificacaoMaterialParent.classificacaoMaterialParent.classificacaoMaterialParent){ | |
246 | - $scope.materialDadosGrupo = $scope.material.classificacaoMaterial.classificacaoMaterialParent.classificacaoMaterialParent.classificacaoMaterialParent.codigo + ' - ' + $scope.material.classificacaoMaterial.classificacaoMaterialParent.classificacaoMaterialParent.classificacaoMaterialParent.descricao; | |
247 | - } | |
248 | - //SUBGRUPO | |
249 | - if($scope.material.classificacaoMaterial.classificacaoMaterialParent.classificacaoMaterialParent){ | |
250 | - $scope.materialDadosSubGrupo = $scope.material.classificacaoMaterial.classificacaoMaterialParent.classificacaoMaterialParent.codigo + ' - ' + $scope.material.classificacaoMaterial.classificacaoMaterialParent.classificacaoMaterialParent.descricao; | |
251 | - } | |
252 | - //MATERIAL | |
253 | - if($scope.material.classificacaoMaterial.classificacaoMaterialParent){ | |
254 | - $scope.materialDadosMaterial = $scope.material.classificacaoMaterial.classificacaoMaterialParent.codigo + ' - ' + $scope.material.classificacaoMaterial.classificacaoMaterialParent.descricao; | |
255 | - } | |
256 | - //DETALHE | |
257 | - if($scope.material.classificacaoMaterial){ | |
258 | - $scope.MaterialDadosDetalhe = $scope.material.classificacaoMaterial.codigo + ' - ' + $scope.material.classificacaoMaterial.descricao; | |
259 | - } | |
260 | - } | |
261 | - }; | |
262 | - | |
263 | - DominioRepository.findAllDominio('tipoMaterial').then(function(result) { | |
264 | - $scope.tiposMaterial = result; | |
265 | - }); | |
266 | - | |
267 | - $scope.findContaContabil = function(value) { | |
268 | - return ContaContabilRepository.findContaContabilPorOrganizacaoTipoMaterial(value, $scope.usuarioLogado.organizacao.id, $scope.material.dominioTipoMaterial.codigo).then(function(result) { | |
269 | - return result; | |
270 | - }); | |
271 | - }; | |
272 | - | |
273 | - $scope.novaContaContabil = function() { | |
274 | - $scope.openWorkspaceIfNotOpen($translate.instant('LABEL.CONTA_CONTABIL'), '/cit-adm-materiais-web/html/contaContabil/contaContabil.html', 'mod-green'); | |
275 | - | |
276 | - $timeout(function() { | |
277 | - angular.element('#searchContaContabil').scope().$showPageEditWorkspace(angular.element('#searchContaContabil').scope().workspace); | |
278 | - angular.element('#searchContaContabil').scope().resetForm(); | |
279 | - | |
280 | - }, 300); | |
281 | - }; | |
282 | - | |
283 | - $scope.limparDadosMaterial = function(){ | |
284 | - if(!$scope.material.id){ | |
285 | - | |
286 | - $scope.material.contaContabil = ''; | |
287 | - | |
288 | - $scope.materialForm.$submitted = false; | |
289 | - $scope.materialForm.$setPristine(); | |
290 | - } | |
291 | - }; | |
292 | - | |
293 | - UnidadeMedidaRepository.getList().then(function(result) { | |
294 | - angular.forEach(result, function(item) { | |
295 | - | |
296 | - $scope.unidadesMedida.push(item.originalElement); | |
297 | - $scope.unidadesMedidaMaterialConsumo.push(item.originalElement); | |
298 | - }); | |
299 | - | |
300 | - $scope.unidadesMedidaMaterialConsumo.sort(function (a, b) { | |
301 | - return a.descricao.localeCompare(b.descricao); | |
302 | - }); | |
303 | - }); | |
304 | - | |
305 | - //Método responsável por editar unidadeMedidaEntrada. | |
306 | - $scope.adicionarUnidadeMedidaEntrada = function() { | |
307 | - //Verifica se a lista tiposUnidadeMedidaEntrada não está vazia | |
308 | - if(!$scope.material.tiposUnidadeMedidaEntrada){ | |
309 | - $scope.material.tiposUnidadeMedidaEntrada = []; | |
310 | - } | |
311 | - //Verifica se o materialCaracteristica está sendo editado | |
312 | - if(!$scope.unidadeMedidaEntrada.$edit){ | |
313 | - | |
314 | - var unidadeMedidaEntradaTemp = {}; | |
315 | - angular.copy($scope.unidadeMedidaEntrada, unidadeMedidaEntradaTemp); | |
316 | - | |
317 | - $scope.material.tiposUnidadeMedidaEntrada.push(unidadeMedidaEntradaTemp); | |
318 | - $scope.unidadesMedidaMaterialConsumo = $filter('idNotEqualUnidadeMedida')($scope.unidadesMedidaMaterialConsumo, $scope.material.tiposUnidadeMedidaEntrada); | |
319 | - } | |
320 | - | |
321 | - $scope.unidadeMedidaEntrada = {}; | |
322 | - }; | |
323 | - | |
324 | - $scope.exibirDialogRemocaoUnidadeMedida = function() { | |
325 | - $scope.getCheckUnidadeMedidaEntrada(); | |
326 | - if($scope.unidadeMedidaSelecionada){ | |
327 | - $scope.$openModalConfirm({message: $translate.instant('LABEL.CONFIRMA_EXCLUSAO'), callback: $scope.removerUnidadeMedida}); | |
328 | - } else { | |
329 | - $scope.showAlert("warning", $translate.instant('LABEL.SELECIONE_UM_ITEM')); | |
330 | - } | |
331 | - }; | |
332 | - | |
333 | - $scope.removerUnidadeMedida = function() { | |
334 | - angular.forEach($scope.material.tiposUnidadeMedidaEntrada, function(unidadeMedida, index) { | |
335 | - | |
336 | - if(unidadeMedida.$checked) { | |
337 | - if (unidadeMedida.id) { | |
338 | - MaterialConsumoTipoUnidadeMedidaEntradaRepository.remove(unidadeMedida).then(function() { | |
339 | - $scope.showAlert("success", $translate.instant('MSG.MG001')); | |
340 | - $scope.unidadeMedidaSelecionada = null; | |
341 | - $scope.material.tiposUnidadeMedidaEntrada.splice(index, 1); | |
342 | - }); | |
343 | - } else { | |
344 | - $scope.material.tiposUnidadeMedidaEntrada.splice(index, 1); | |
345 | - } | |
346 | - | |
347 | - $scope.unidadesMedidaMaterialConsumo.push(unidadeMedida.unidadeMedida); | |
348 | - $scope.$modalConfirmInstance.dismiss('cancel'); | |
349 | - }; | |
350 | - }); | |
351 | - | |
352 | - $scope.unidadesMedidaMaterialConsumo.sort(function (a, b) { | |
353 | - return a.descricao.localeCompare(b.descricao); | |
354 | - }); | |
355 | - }; | |
356 | - | |
357 | - $scope.getCheckUnidadeMedidaEntrada = function () { | |
358 | - $scope.material.tiposUnidadeMedidaEntrada.forEach(function (unidade) { | |
359 | - if(unidade.$checked){ | |
360 | - $scope.unidadeMedidaSelecionada = unidade; | |
361 | - } | |
362 | - }); | |
363 | - }; | |
364 | - | |
365 | - $scope.checkUnidadeMedidaEntrada = function (unidadeMedida) { | |
366 | - | |
367 | - removeCheckedUnidadeMedidaEntrada(); | |
368 | - | |
369 | - unidadeMedida.$checked = true; | |
370 | - | |
371 | - if (unidadeMedida.id && !unidadeMedida.dataBloqueio) { | |
372 | - | |
373 | - $scope.apresentarBloquearUnidadeMedidaEntrada = true; | |
374 | - $scope.dataBloqueio = ""; | |
375 | - } else { | |
376 | - $scope.apresentarBloquearUnidadeMedidaEntrada = false; | |
377 | - } | |
378 | - | |
379 | - if(unidadeMedida.dataBloqueio) { | |
380 | - $scope.apresentarDesbloquearUnidadeMedida = true; | |
381 | - } else { | |
382 | - $scope.apresentarDesbloquearUnidadeMedida = false; | |
383 | - } | |
384 | - }; | |
385 | - | |
386 | - function removeCheckedUnidadeMedidaEntrada() { | |
387 | - | |
388 | - $scope.material.tiposUnidadeMedidaEntrada.forEach(function (unidade) { | |
389 | - unidade.$checked = false; | |
390 | - }); | |
391 | - }; | |
392 | - | |
393 | - $scope.novaCaracteristica = function() { | |
394 | - | |
395 | - $scope.openWorkspaceIfNotOpen($translate.instant('LABEL.CARACTERISTICA'), '/cit-tabelas-corp-web/html/caracteristica/caracteristica.html', 'mod-green'); | |
396 | - $timeout(function() { | |
397 | - angular.element('#searchCaracteristica').scope().$showPageEditWorkspace(angular.element('#searchCaracteristica').scope().workspace); | |
398 | - angular.element('#searchCaracteristica').scope().resetForm(); | |
399 | - | |
400 | - }, 300); | |
401 | - }; | |
402 | - | |
403 | - $scope.findCaracteristica = function(value) { | |
404 | - return CaracteristicaRepository.listarCaracteristicasPorOrganizacao(value, $scope.usuarioLogado.organizacao.id).then(function(result) { | |
405 | - return $filter('idNotEqualCaracteristica')(result, $scope.material.materialCaracteristicas); | |
406 | - }); | |
407 | - }; | |
408 | - | |
409 | - $scope.limparCaracteristicaAutoComplete = function(value) { | |
410 | - value = {}; | |
411 | - }; | |
412 | - | |
413 | - $scope.adicionarCaracteristica = function() { | |
414 | - //Verifica se a lista materialCaracteristicas não está vazia | |
415 | - if (!$scope.material.materialCaracteristicas) { | |
416 | - $scope.material.materialCaracteristicas = []; | |
417 | - } | |
418 | - | |
419 | - //Verifica se o materialCaracteristica está sendo editado | |
420 | - if (!$scope.materialCaracteristica.$edit) { | |
421 | - var materialCaracteristicaTemp = {}; | |
422 | - angular.copy($scope.materialCaracteristica, materialCaracteristicaTemp); | |
423 | - materialCaracteristicaTemp.sequencia = $scope.material.materialCaracteristicas.length + 1; | |
424 | - $scope.material.materialCaracteristicas.push(materialCaracteristicaTemp); | |
425 | - } | |
426 | - | |
427 | - $scope.materialCaracteristica.$edit = false; | |
428 | - $scope.materialCaracteristica = {}; | |
429 | - }; | |
430 | - | |
431 | - $scope.editCaracteristica = function() { | |
432 | - | |
433 | - var caracteristicaSelecionada = $scope.material.materialCaracteristicas.some(function(item) { | |
434 | - return item.$checked; | |
435 | - }); | |
436 | - | |
437 | - if (caracteristicaSelecionada) { | |
438 | - angular.forEach($scope.material.materialCaracteristicas, function(caracteristica, index) { | |
439 | - if (caracteristica.$checked) { | |
440 | - $scope.materialCaracteristica = caracteristica; | |
441 | - $scope.materialCaracteristica.$edit = true; | |
442 | - } | |
443 | - }); | |
444 | - | |
445 | - } else { | |
446 | - $scope.showAlert('warning', $translate.instant('LABEL.SELECIONE_UM_ITEM')); | |
447 | - } | |
448 | - }; | |
449 | - | |
450 | - $scope.bloquearCaracteristica = function(dataBloqueio) { | |
451 | - angular.forEach($scope.material.materialCaracteristicas, function (materialCaracteristica, key) { | |
452 | - | |
453 | - if (materialCaracteristica.$checked) { | |
454 | - if (dataBloqueio != "") { | |
455 | - materialCaracteristica.dataBloqueio = dataBloqueio; | |
456 | - materialCaracteristica.material = { | |
457 | - id : $scope.material.id | |
458 | - }; | |
459 | - | |
460 | - MaterialCaracteristicaRepository.save(materialCaracteristica).then(function(result) { | |
461 | - $scope.showAlert("success", $translate.instant('MSG.SUCESSO_BLOQUEIO_CARACTERISTICA')); | |
462 | - | |
463 | - materialCaracteristica.$checked = false; | |
464 | - | |
465 | - $scope.apresentarBloquearCaracteristica = false; | |
466 | - | |
467 | - materialCaracteristica.version = result.originalElement.version; | |
468 | - }); | |
469 | - } | |
470 | - } | |
471 | - }); | |
472 | - }; | |
473 | - | |
474 | - $scope.desbloquearCaracteristica = function() { | |
475 | - angular.forEach($scope.material.materialCaracteristicas, function(materialCaracteristica, key) { | |
476 | - | |
477 | - if(materialCaracteristica.$checked) { | |
478 | - materialCaracteristica.dataBloqueio = null; | |
479 | - materialCaracteristica.material = { | |
480 | - id : $scope.material.id, | |
481 | - }; | |
482 | - | |
483 | - MaterialCaracteristicaRepository.save(materialCaracteristica).then(function(result) { | |
484 | - $scope.showAlert("success", $translate.instant('MSG.SUCESSO_DESBLOQUEIO_CARACTERISTICA')); | |
485 | - $scope.apresentarDesbloquearCaracteristica = false; | |
486 | - | |
487 | - materialCaracteristica.$checked = false; | |
488 | - materialCaracteristica.version = result.originalElement.version; | |
489 | - }); | |
490 | - } | |
491 | - }); | |
492 | - }; | |
493 | - | |
494 | - $scope.excluirCaracteristica = function() { | |
495 | - var caracteristicaSelecionada = $scope.material.materialCaracteristicas.some(function(item){ | |
496 | - return item.$checked; | |
497 | - }); | |
498 | - | |
499 | - if (caracteristicaSelecionada) { | |
500 | - //Verifica se o material já foi persistido | |
501 | - $scope.$openModalConfirm({message: $translate.instant('LABEL.CONFIRMA_EXCLUSAO'), callback: $scope.removerCaracteristica}); | |
502 | - } else { | |
503 | - $scope.showAlert('warning', $translate.instant('MSG.SELECIONE_ITEM_EXCLUIR')); | |
504 | - } | |
505 | - }; | |
506 | - | |
507 | - $scope.removerCaracteristica = function() { | |
508 | - //Percorre a lista de materialCaracteristicas para encontrar a caracteristica selecionada | |
509 | - angular.forEach($scope.material.materialCaracteristicas, function(caracteristica, index) { | |
510 | - | |
511 | - if (caracteristica.$checked) { | |
512 | - if (caracteristica.id) { | |
513 | - MaterialCaracteristicaRepository.remove(caracteristica).then(function() { | |
514 | - | |
515 | - $scope.showAlert("success", $translate.instant('MSG.MG001')); | |
516 | - $scope.material.materialCaracteristicas.splice(index, 1); | |
517 | - }); | |
518 | - } else { | |
519 | - $scope.material.materialCaracteristicas.splice(index, 1); | |
520 | - } | |
521 | - | |
522 | - $scope.$modalConfirmInstance.dismiss('cancel'); | |
523 | - } | |
524 | - }); | |
525 | - }; | |
526 | - | |
527 | - $scope.checkMaterialCaracteristica = function (materialCaracteristica) { | |
528 | - removeCheckedCaracteristica(); | |
529 | - | |
530 | - materialCaracteristica.$checked = true; | |
531 | - | |
532 | - if (materialCaracteristica.id && !materialCaracteristica.dataBloqueio) { | |
533 | - | |
534 | - $scope.apresentarBloquearCaracteristica = true; | |
535 | - $scope.dataBloqueio = ""; | |
536 | - } else { | |
537 | - $scope.apresentarBloquearCaracteristica = false; | |
538 | - } | |
539 | - | |
540 | - if (materialCaracteristica.id && materialCaracteristica.dataBloqueio) { | |
541 | - $scope.apresentarDesbloquearCaracteristica = true; | |
542 | - } else { | |
543 | - $scope.apresentarDesbloquearCaracteristica = false; | |
544 | - } | |
545 | - | |
546 | - }; | |
547 | - | |
548 | - function removeCheckedCaracteristica() { | |
549 | - var caracteristicas = $scope.material.materialCaracteristicas; | |
550 | - | |
551 | - caracteristicas.forEach(function (caracteristica) { | |
552 | - caracteristica.$checked = false; | |
553 | - }); | |
554 | - }; | |
555 | - | |
556 | - $scope.findMaterialConsumo = function(value) { | |
557 | - return MaterialRepository.findMaterialConsumo(value).then(function(result) { | |
558 | - return $filter('idNotEqualMaterial')(result, $scope.material.materiaisConsumo); | |
559 | - }); | |
560 | - }; | |
561 | - | |
562 | - $scope.adicionarMaterialConsumo = function() { | |
563 | - if (!$scope.material.materiaisConsumo) { | |
564 | - $scope.material.materiaisConsumo = []; | |
565 | - } | |
566 | - | |
567 | - var materialConsumoTemp = {}; | |
568 | - angular.copy($scope.materialConsumo, materialConsumoTemp); | |
569 | - | |
570 | - $scope.material.materiaisConsumo.push(materialConsumoTemp); | |
571 | - $scope.materialConsumo = {}; | |
572 | - }; | |
573 | - | |
574 | - $scope.apresentarDialogConfirmacaoRemocaoMaterialConsumo = function() { | |
575 | - var materialConsumoSelecionado = $scope.material.materiaisConsumo.some(function(item) { | |
576 | - return item.$checked; | |
577 | - }); | |
578 | - | |
579 | - if (materialConsumoSelecionado) { | |
580 | - $scope.$openModalConfirm({message: $translate.instant('LABEL.CONFIRMA_EXCLUSAO'), callback: $scope.removerMaterialConsumo}); | |
581 | - } else { | |
582 | - $scope.showAlert("warning", $translate.instant("LABEL.SELECIONE_UM_ITEM")); | |
583 | - } | |
584 | - }; | |
585 | - | |
586 | - $scope.removerMaterialConsumo = function() { | |
587 | - angular.forEach($scope.material.materiaisConsumo, function(materialConsumo, index) { | |
588 | - | |
589 | - if (materialConsumo.$checked) { | |
590 | - if (materialConsumo.id) { | |
591 | - MaterialPermanenteConsumoRepository.remove(materialConsumo).then(function() { | |
592 | - | |
593 | - }); | |
594 | - } | |
595 | - $scope.material.materiaisConsumo.splice(index, 1); | |
596 | - } | |
597 | - }); | |
598 | - $scope.$modalConfirmInstance.dismiss('cancel'); | |
599 | - }; | |
600 | - | |
601 | - $scope.checkMaterialConsumio = function(materialConsumo) { | |
602 | - $scope.removeCheckedMaterialConsumo(); | |
603 | - materialConsumo.$checked = true; | |
604 | - }; | |
605 | - | |
606 | - $scope.visualizarImagem = function(materialImagemSelecionado) { | |
607 | - if (!materialImagemSelecionado.id) { | |
608 | - $scope.showAlert('warning', $translate.instant('MSG.SELECIONE_UM_ITEM_PARA_VISUALIZACAO')); | |
609 | - return; | |
610 | - } | |
611 | - | |
612 | - $scope.url = '/cit-adm-materiais-web/rest/materialImagem/visualizarImagem?idMaterialImagem=' + materialImagemSelecionado.id; | |
613 | - $scope.$openModal('visualizarArquivos', 'lg'); | |
614 | - }; | |
615 | - | |
616 | - $scope.removerUploadMaterialImagem = function(materialImagem){ | |
617 | - if (materialImagem) { | |
618 | - if (materialImagem.id) { | |
619 | - $scope.$openModalConfirm({message: $translate.instant('LABEL.CONFIRMA_EXCLUSAO'), callback: function() { | |
620 | - | |
621 | - $scope.setLoading(true); | |
622 | - angular.forEach($scope.material.materialImagens, function(materialImg, index) { | |
623 | - if (materialImg.id === materialImagem.id) { | |
624 | - | |
625 | - $scope.material.materialImagens.splice(index , 1); | |
626 | - MaterialImagemRepository.remove(materialImagem).then(function(result) { | |
627 | - | |
628 | - $scope.showAlert("success", $translate.instant("MSG.EXCLUSAO_SUCESSO")); | |
629 | - $scope.$modalConfirmInstance.dismiss('cancel'); | |
630 | - $scope.setLoading(false); | |
631 | - }); | |
632 | - } | |
633 | - }); | |
634 | - } | |
635 | - }); | |
636 | - } else { | |
637 | - materialImagem.remove(); | |
638 | - } | |
639 | - } else { | |
640 | - $scope.showAlert('warning', $translate.instant('MSG.SELECIONE_ITEM_EXCLUIR')); | |
641 | - } | |
642 | - }; | |
643 | - | |
644 | -}]); | |
645 | 0 | \ No newline at end of file |
cit-adm-materiais-web/bin/src/main/webapp/assets/js/angular/custom/controller/MaterialListController.js
... | ... | @@ -1,200 +0,0 @@ |
1 | -'use strict'; | |
2 | - | |
3 | -citApp.controller('MaterialListController', ['$scope', '$timeout', 'MaterialRepository', 'ClassificacaoMaterialRepository', 'DominioRepository', '$translate', | |
4 | - function MaterialListController($scope, $timeout, MaterialRepository, ClassificacaoMaterialRepository, DominioRepository, $translate) { | |
5 | - | |
6 | - $scope.$showAdvancedFilters = false; | |
7 | - | |
8 | - $scope.buscaFederalSupply = ""; | |
9 | - $scope.mostraArvore = false; | |
10 | - | |
11 | - $scope.resetForm = function() { | |
12 | - angular.element("#editMaterial").scope().resetForm(); | |
13 | - }; | |
14 | - | |
15 | - $scope.headers = [ { | |
16 | - title : $translate.instant('LABEL.CODIGO'), | |
17 | - value : 'codigo' | |
18 | - }, { | |
19 | - title : $translate.instant('LABEL.DESCRICAO'), | |
20 | - value : 'descricao' | |
21 | - }, { | |
22 | - title : $translate.instant('ADMINISTRACAODEMATERIAIS.LABEL.TIPO_MATERIAL'), | |
23 | - value : 'dominioTipoMaterial.descricao' | |
24 | - }]; | |
25 | - | |
26 | - // default criteria that will be sent to the server | |
27 | - $scope.filterCriteria = { | |
28 | - start : 1, | |
29 | - dir : 'asc', | |
30 | - sort : 'codigo', | |
31 | - limit : 10, | |
32 | - fields: ['id','codigo', 'descricao', 'dominioTipoMaterial.descricao'], | |
33 | - filters : [{type: 'string', field: 'codigo'}, | |
34 | - {type: 'string', field: 'descricao'}, | |
35 | - {type: 'string', field: 'dominioTipoMaterial.descricao', listaDominio : []}] | |
36 | - }; | |
37 | - | |
38 | - DominioRepository.findAllDominio('tipoMaterial').then(function(result) { | |
39 | - $scope.filterCriteria.filters[2].listaDominio = result; | |
40 | - }); | |
41 | - | |
42 | - $scope.fetchResultMaterial = function() { | |
43 | - delete $scope.materialChecked; | |
44 | - if ($scope.mostraArvore) { | |
45 | - inicializarArvore(); | |
46 | - } else { | |
47 | - $scope.fetchResult(); | |
48 | - } | |
49 | - }; | |
50 | - | |
51 | - $scope.abrirMaterial = function(edit, material) { | |
52 | - if (!material) { | |
53 | - material = $scope.materialChecked; | |
54 | - } | |
55 | - | |
56 | - if(!edit && !material) { | |
57 | - $scope.showAlert('warning', $translate.instant('MSG.SELECIONE_UM_ITEM_PARA_VISUALIZACAO')); | |
58 | - return; | |
59 | - } | |
60 | - | |
61 | - if(edit && !material) { | |
62 | - $scope.showAlert('warning', $translate.instant('MSG.SELECIONE_UM_ITEM_PARA_EDICAO')); | |
63 | - return; | |
64 | - } | |
65 | - | |
66 | - angular.element('#editMaterial').scope().getMaterial(material, edit); | |
67 | - $scope.$showPageEditWorkspace($scope.workspace); | |
68 | - }; | |
69 | - | |
70 | - //Método responsável por realizar a busca da classificação material na arvore | |
71 | - $scope.buscarTree = function(buscaFederalDescricao){ | |
72 | - | |
73 | - $scope.buscaFederalSupply = buscaFederalDescricao; | |
74 | - if (buscaFederalDescricao.length > 2) { | |
75 | - | |
76 | - $scope.setLoadingPesquisa(true); | |
77 | - return ClassificacaoMaterialRepository.listarGruposTree(buscaFederalDescricao).then(function(result) { | |
78 | - | |
79 | - $scope.classificacaoMaterialList = result; | |
80 | - $scope.abrirNosArvore(); | |
81 | - $scope.setLoading(false); | |
82 | - }, function() { | |
83 | - $scope.classificacaoMaterialList = []; | |
84 | - }); | |
85 | - } else { | |
86 | - $scope.fetchResult(); | |
87 | - $scope.isApresentarDadosMaterial = false; | |
88 | - $scope.resetForm(); | |
89 | - }; | |
90 | - }; | |
91 | - | |
92 | - $scope.abrirNosArvore = function(){ | |
93 | - | |
94 | - // percorre os nos CLASSIFICADORES - PERMANENTE OU CONSUMO | |
95 | - angular.forEach($scope.classificacaoMaterialList, function(classificacao, key) { | |
96 | - if(classificacao.classificacaoMaterialFilhos){ | |
97 | - classificacao.mostrarFilhos = true; | |
98 | - } else { | |
99 | - classificacao.mostrarFilhos = false; | |
100 | - } | |
101 | - | |
102 | - // percorre os nos RAIZ - GRUPOS | |
103 | - angular.forEach(classificacao.classificacaoMaterialFilhos, function(grupo, key) { | |
104 | - if(grupo.classificacaoMaterialFilhos){ | |
105 | - grupo.mostrarFilhos = false; | |
106 | - } else { | |
107 | - grupo.mostrarFilhos = true; | |
108 | - } | |
109 | - | |
110 | - // percorre os SUB-GRUPOS | |
111 | - angular.forEach(grupo.classificacaoMaterialFilhos, function(subGrupo, key) { | |
112 | - if(subGrupo.classificacaoMaterialFilhos){ | |
113 | - subGrupo.mostrarFilhos = false; | |
114 | - grupo.mostrarFilhos = true; | |
115 | - } else { | |
116 | - subGrupo.mostrarFilhos = true; | |
117 | - } | |
118 | - | |
119 | - // percorre os MATERIAIS | |
120 | - angular.forEach(subGrupo.classificacaoMaterialFilhos, function(material, key) { | |
121 | - if(material.classificacaoMaterialFilhos){ | |
122 | - material.mostrarFilhos = false; | |
123 | - subGrupo.mostrarFilhos = true; | |
124 | - } else { | |
125 | - material.mostrarFilhos = true; | |
126 | - } | |
127 | - }); | |
128 | - }); | |
129 | - }); | |
130 | - }); | |
131 | - }; | |
132 | - | |
133 | - $scope.novoFilho = function(value){ | |
134 | - | |
135 | - $scope.openWorkspaceIfNotOpen($translate.instant('ADMINISTRACAODEMATERIAIS.LABEL.CLASSIFICACAO_MATERIAL'), '/cit-adm-materiais-web/html/classificacaoMaterial/classificacaoMaterial.html', 'mod-green'); | |
136 | - $timeout(function() { | |
137 | - angular.element('#classificacaoMaterialControllerId').scope().novoFilhoMaterial(value.originalElement ? value.originalElement : value); | |
138 | - }, 200); | |
139 | - }; | |
140 | - | |
141 | - $scope.mostrarFilhos = function(classificacaoMaterialParent) { | |
142 | - | |
143 | - if (classificacaoMaterialParent.mostrarFilhos) { | |
144 | - classificacaoMaterialParent.mostrarFilhos = false; | |
145 | - } else { | |
146 | - $scope.setLoadingPesquisa(true); | |
147 | - ClassificacaoMaterialRepository.listarFilhos( | |
148 | - classificacaoMaterialParent.originalElement ? classificacaoMaterialParent.originalElement.id : classificacaoMaterialParent.id).then(function(result) { | |
149 | - | |
150 | - classificacaoMaterialParent.classificacaoMaterialFilhos = result; | |
151 | - classificacaoMaterialParent.mostrarFilhos = true; | |
152 | - | |
153 | - $scope.setLoading(false); | |
154 | - }); | |
155 | - }; | |
156 | - }; | |
157 | - | |
158 | - $scope.fetchResult = function(page) { | |
159 | - | |
160 | - $scope.setLoadingPesquisa(true); | |
161 | - return ClassificacaoMaterialRepository.listarGrupos().then(function(result) { | |
162 | - $scope.classificacaoMaterialList = result; | |
163 | - $scope.setLoading(false); | |
164 | - }, function() { | |
165 | - $scope.classificacaoMaterialList = []; | |
166 | - }); | |
167 | - }; | |
168 | - | |
169 | - $scope.mostrarArvore = function() { | |
170 | - $scope.mostraArvore = !$scope.mostraArvore; | |
171 | - delete $scope.materialChecked; | |
172 | - | |
173 | - if ($scope.mostraArvore) { | |
174 | - inicializarArvore(); | |
175 | - } else { | |
176 | - $scope.fetchResultMaterial(); | |
177 | - } | |
178 | - }; | |
179 | - | |
180 | - var inicializarArvore = function() { | |
181 | - $scope.classificacaoMaterialList = []; | |
182 | - | |
183 | - // BUSCA TODAS AS CLASSIFICACAO MATERIAL NIVEL 0 (ZERO) PELO ÓRGÃO DO USUÁRIO | |
184 | - ClassificacaoMaterialRepository.listarGrupos().then(function(result) { | |
185 | - for(var i = 0; i < result.length; i++) { | |
186 | - result[i].originalElement.sinalPositivo = result[i].originalElement.possuiFilho; | |
187 | - $scope.classificacaoMaterialList.push(result[i].originalElement); | |
188 | - } | |
189 | - }); | |
190 | - }; | |
191 | - | |
192 | - $scope.exibirMaterialArvore = function(item) { | |
193 | - | |
194 | - if (item.dominioTipoClassificacaoMaterial.codigo == 4) { | |
195 | - angular.element('#editMaterial').scope().apresentarDadosMaterial(item); | |
196 | - $scope.$showPageEditWorkspace($scope.workspace); | |
197 | - }; | |
198 | - }; | |
199 | - | |
200 | -}]); | |
201 | 0 | \ No newline at end of file |
cit-adm-materiais-web/bin/src/main/webapp/assets/js/angular/custom/controller/MesReferenciaController.js
... | ... | @@ -1,59 +0,0 @@ |
1 | -'use strict'; | |
2 | - | |
3 | -citApp.controller('MesReferenciaController', ['$scope', 'OrganizacaoRepository', 'DominioRepository', '$filter', '$translate', 'DepreciacaoRepository', 'OrganizacaoAdmMateriaisRepository', function MesReferenciaController($scope, OrganizacaoRepository, DominioRepository, $filter, $translate, DepreciacaoRepository, OrganizacaoAdmMateriaisRepository) { | |
4 | - | |
5 | - $scope.setLoadingGet(true); | |
6 | - | |
7 | - var setOrganizacao = function(organizacaoId) { | |
8 | - OrganizacaoRepository.get(organizacaoId).then(function(result) { | |
9 | - $scope.atualizaOrganizacao(result.originalElement); | |
10 | - | |
11 | - $scope.setLoading(false); | |
12 | - }); | |
13 | - }; | |
14 | - | |
15 | - setOrganizacao($scope.usuarioLogado.organizacao.id); | |
16 | - | |
17 | - $scope.atualizaOrganizacao = function(organizacao) {//Atualiza as informações do orgão na página | |
18 | - $scope.organizacao = organizacao; | |
19 | - $scope.tipoDepreciacaoObj = 1; //Define que a depreciação linear deve vir marcada | |
20 | - $scope.dataVigente = $filter('date')(converterStringEmDate($scope.organizacao.dataReferenciaVigente), "MMMM/yyyy"); | |
21 | - var dataSubsequente = converterStringEmDate($scope.organizacao.dataReferenciaVigente); | |
22 | - dataSubsequente.setMonth(dataSubsequente.getMonth() + 1); | |
23 | - $scope.dataSubsequente = $filter('date')(dataSubsequente, "MMMM/yyyy"); | |
24 | - }; | |
25 | - | |
26 | - DominioRepository.findAllDominio('tipoDepreciacao').then(function(result) {//Lista dos tipos de depreciação existentes | |
27 | - $scope.dominiosTipoDepreciacao = result; | |
28 | - }); | |
29 | - | |
30 | - // Fecha o mês de referencia do orgão. | |
31 | - $scope.fecharMes = function(){ | |
32 | - $scope.$openModalConfirm({ | |
33 | - message: $translate.instant('ADMINISTRACAODEMATERIAIS.MSG.CONFIRMA_FECHAR_MES'), | |
34 | - callback: function () { | |
35 | - $scope.$modalConfirmInstance.dismiss('cancel'); | |
36 | - | |
37 | - $scope.setLoadingSalva(true); | |
38 | - | |
39 | - OrganizacaoAdmMateriaisRepository.fecharMes($scope.organizacao.id, $scope.tipoDepreciacaoObj).then(function(result) { | |
40 | - //Caso a data de referencia não tenha mudado o mês não foi fechado | |
41 | - //if ($scope.dataVigente == $filter('date')(converterStringEmDate(result.originalElement.dataReferenciaVigente), "MMMM/yyyy")) { | |
42 | - if (!result.originalElement.status) { | |
43 | - $scope.setLoading(false); | |
44 | - angular.forEach(result.originalElement.mensagens, function (mensagem) { | |
45 | - $scope.showAlert(mensagem.tipoMensagem, $translate.instant(mensagem.mensagem)); | |
46 | - }); | |
47 | - } else {//Se o mês de referencia mudou atualiza as informações do orgão na página. | |
48 | - setOrganizacao($scope.organizacao.id); | |
49 | - $scope.setLoading(false); | |
50 | - angular.forEach(result.originalElement.mensagens, function (mensagem) { | |
51 | - $scope.showAlert(mensagem.tipoMensagem, $translate.instant(mensagem.mensagem)); | |
52 | - }); | |
53 | - } | |
54 | - $scope.atualizarUsuarioLogado(); | |
55 | - }); | |
56 | - } | |
57 | - }); | |
58 | - }; | |
59 | -}]); |
cit-adm-materiais-web/bin/src/main/webapp/assets/js/angular/custom/controller/TransferenciaContaContabilController.js
... | ... | @@ -1,259 +0,0 @@ |
1 | -'use strict'; | |
2 | - | |
3 | -citApp.controller('TransferenciaContaContabilController', ['$scope', 'TransferenciaContaContabilRepository', '$filter', '$translate', '$timeout', 'MaterialRepository', 'ContaContabilRepository', | |
4 | - 'DominioRepository', 'BemPatrimonialRepository', 'MaterialConsumoRepository', | |
5 | - function TransferenciaContaContabilController($scope, TransferenciaContaContabilRepository, $filter, $translate, $timeout, MaterialRepository, ContaContabilRepository, DominioRepository, | |
6 | - BemPatrimonialRepository, MaterialConsumoRepository) { | |
7 | - | |
8 | - // CONSTANTES DOMINIO | |
9 | - var TIPO_MATERIAL = 'tipoMaterial'; | |
10 | - var CODIGO_MATERIAL_PERMANENTE = 2; | |
11 | - | |
12 | - $scope.transferenciaContaContabil = { | |
13 | - dataTransferencia : $filter('date')(new Date(), "dd/MM/yyyy") | |
14 | - }; | |
15 | - | |
16 | - // Limpa formulário para novo cadastro | |
17 | - $scope.resetForm = function() { | |
18 | - $scope.limparTransferenciaContaContabil(); | |
19 | - $scope.edit = true; | |
20 | - $scope.pgEdit = true; | |
21 | - | |
22 | - $scope.limparCamposMaterial(); | |
23 | - | |
24 | - $timeout(function(){ | |
25 | - $scope.transferenciaContaContabilForm.$submitted = false; | |
26 | - $scope.transferenciaContaContabilForm.$setPristine(); | |
27 | - }); | |
28 | - }; | |
29 | - | |
30 | - // Atualiza pagina de pesquisa | |
31 | - $scope.atualizaPaginaPesquisa = function () { | |
32 | - angular.element('#searchTransferenciaContaContabil').scope().fetchResult(); | |
33 | - }; | |
34 | - | |
35 | - // MODAL QUE CONFIRMA REMOVER DA CIDADE | |
36 | - $scope.remove = function(transferenciaContaContabil){ | |
37 | - $scope.transferenciaContaContabil = transferenciaContaContabil; | |
38 | - $scope.$openModalConfirm({ | |
39 | - message: $translate.instant('MSG.CONFIRMA_EXCLUSAO'), | |
40 | - callback: function () { | |
41 | - TransferenciaContaContabilRepository.remove($scope.transferenciaContaContabil).then(function() { | |
42 | - | |
43 | - $scope.$modalConfirmInstance.dismiss('cancel'); | |
44 | - $scope.showAlert("success", $translate.instant('MSG.REGISTRO_EXCLUIDO')); | |
45 | - angular.element('#searchTransferenciaContaContabil').scope().fetchResult(); | |
46 | - | |
47 | - $scope.resetForm(); | |
48 | - }); | |
49 | - } | |
50 | - }); | |
51 | - }; | |
52 | - | |
53 | - // SALVA O TransferenciaContaContabil | |
54 | - $scope.saveOrUpdate = function(){ | |
55 | - $scope.transferenciaContaContabilForm.$submitted = true; | |
56 | - | |
57 | - //verifica se o formulario está valido para salvar | |
58 | - if($scope.transferenciaContaContabilForm.$valid){ | |
59 | - | |
60 | - $scope.setLoadingSalva(true); | |
61 | - | |
62 | - if (!$scope.validarDataTransferencia($scope.transferenciaContaContabil.dataTransferencia)) { | |
63 | - $scope.showAlert('error', $translate.instant('ADMINISTRACAODEMATERIAIS.VALIDACAO.DATA_TRANSFERENCIA_FORA_REFERENCIA')); | |
64 | - $scope.setLoading(false); | |
65 | - return ; | |
66 | - } | |
67 | - | |
68 | - TransferenciaContaContabilRepository.realizarTransferencia($scope.transferenciaContaContabil).then(function(result) { | |
69 | - if (result) { | |
70 | - $scope.showAlert("success", $translate.instant('ADMINISTRACAODEMATERIAIS.MSG.TRANSFERENCIA_SUCESS')); | |
71 | - $scope.transferenciaContaContabilForm.$submitted = false; | |
72 | - angular.element('#searchTransferenciaContaContabil').scope().fetchResult(); | |
73 | - | |
74 | - $scope.resetForm(); | |
75 | - } else { | |
76 | - $scope.showAlert('error', $translate.instant('ADMINISTRACAODEMATERIAIS.MSG.TRANSFERENCIA_FAIL'), " ", false); | |
77 | - } | |
78 | - }); | |
79 | - $scope.setLoading(false); | |
80 | - }else{ | |
81 | - //Mensagem de erro de campos obrigatorios não preenchidos | |
82 | - $scope.showAlert('error', $translate.instant('VALIDACAO.ALERTA_OBRIGATORIOS'), " ", false); | |
83 | - } | |
84 | - }; | |
85 | - | |
86 | - // Limpa o formulario preenchido | |
87 | - $scope.limparTransferenciaContaContabil = function(){ | |
88 | - $scope.transferenciaContaContabil = { | |
89 | - dataTransferencia : $filter('date')(new Date(), "dd/MM/yyyy") | |
90 | - }; | |
91 | - }; | |
92 | - | |
93 | - // Consulta entidade e mostra no formulario | |
94 | - $scope.getTransferenciaContaContabil = function(transferenciaContaContabil, edit){ | |
95 | - $scope.setLoadingGet(true); | |
96 | - | |
97 | - TransferenciaContaContabilRepository.get(transferenciaContaContabil.id).then(function(result) { | |
98 | - $scope.transferenciaContaContabil = result.originalElement; | |
99 | - $scope.edit = edit; | |
100 | - $scope.setLoading(false); | |
101 | - }); | |
102 | - | |
103 | - $scope.pgEdit = edit; | |
104 | - }; | |
105 | - | |
106 | - $scope.findAutoCompleteMaterial = function(value){ | |
107 | - return MaterialRepository.findAutoComplete('descricao', value).then(function(result) { | |
108 | - return result; | |
109 | - }); | |
110 | - }; | |
111 | - | |
112 | - $scope.findMateriaisByOrganizacao = function(value){ | |
113 | - return MaterialRepository.findMateriaisByOrganizacao(value, $scope.usuarioLogado.organizacao.id).then(function(result) { | |
114 | - return result; | |
115 | - }); | |
116 | - }; | |
117 | - | |
118 | - $scope.getMaterialTransferencia = function(material) { | |
119 | - MaterialRepository.getMaterialTransferencia(material.id).then(function(result) { | |
120 | - $scope.transferenciaContaContabil.material = result.originalElement; | |
121 | - | |
122 | - if ($scope.transferenciaContaContabil.material.dominioTipoMaterial.codigo == 1) { | |
123 | - MaterialConsumoRepository.getValorAtualMaterial($scope.transferenciaContaContabil.material.id, $scope.usuarioLogado.organizacao.id).then(function(result) { | |
124 | - if(!result){ | |
125 | - $scope.transferenciaContaContabil.valorTransferencia = 0.00; | |
126 | - } else { | |
127 | - $scope.transferenciaContaContabil.valorTransferencia = result; | |
128 | - } | |
129 | - }); | |
130 | - | |
131 | - MaterialConsumoRepository.getQtdAtualMaterial($scope.transferenciaContaContabil.material.id, $scope.usuarioLogado.organizacao.id).then(function(result) { | |
132 | - if(!result){ | |
133 | - $scope.transferenciaContaContabil.quantidadeMaterial = 0; | |
134 | - } else { | |
135 | - $scope.transferenciaContaContabil.quantidadeMaterial = result; | |
136 | - } | |
137 | - }); | |
138 | - | |
139 | - } else if ($scope.transferenciaContaContabil.material.dominioTipoMaterial.codigo == 2) { | |
140 | - BemPatrimonialRepository.getValorAtualMaterial($scope.transferenciaContaContabil.material.id, $scope.usuarioLogado.organizacao.id).then(function(result) { | |
141 | - if(!result){ | |
142 | - $scope.transferenciaContaContabil.valorTransferencia = 0.00; | |
143 | - } else { | |
144 | - $scope.transferenciaContaContabil.valorTransferencia = result; | |
145 | - } | |
146 | - }); | |
147 | - | |
148 | - BemPatrimonialRepository.getQtdAtualMaterial($scope.transferenciaContaContabil.material.id, $scope.usuarioLogado.organizacao.id).then(function(result) { | |
149 | - if(!result){ | |
150 | - $scope.transferenciaContaContabil.quantidadeMaterial = 0; | |
151 | - } else { | |
152 | - $scope.transferenciaContaContabil.quantidadeMaterial = result; | |
153 | - } | |
154 | - }); | |
155 | - | |
156 | - BemPatrimonialRepository.getValorDepreciacaoAcumulada($scope.transferenciaContaContabil.material.id, $scope.usuarioLogado.organizacao.id).then(function(result) { | |
157 | - if(!result){ | |
158 | - $scope.transferenciaContaContabil.valorDepreciacaoAcumulada = 0.00; | |
159 | - } else { | |
160 | - $scope.transferenciaContaContabil.valorDepreciacaoAcumulada = result; | |
161 | - } | |
162 | - }); | |
163 | - } | |
164 | - | |
165 | - }); | |
166 | - }; | |
167 | - | |
168 | - DominioRepository.findAllDominioByCodigo(TIPO_MATERIAL, CODIGO_MATERIAL_PERMANENTE).then(function(result) { | |
169 | - $scope.dominioTipoMaterialPermanente = result.originalElement; | |
170 | - }); | |
171 | - | |
172 | - $scope.findAutoCompleteContaDestino = function(value){ | |
173 | - var resultado = []; | |
174 | - if ($scope.transferenciaContaContabil.almoxarifado) { | |
175 | - return ContaContabilRepository.findContaContabilPorOrganizacaoEDominioSemUsoMaterial(value, $scope.usuarioLogado.organizacao.id, $scope.dominioTipoMaterialPermanente.id).then(function(result) { | |
176 | - angular.forEach(result, function (item) { | |
177 | - if (item.id != $scope.transferenciaContaContabil.contaOrigem.id) { | |
178 | - resultado.push(item); | |
179 | - } | |
180 | - }); | |
181 | - return resultado; | |
182 | - }); | |
183 | - } else { | |
184 | - if (!$scope.transferenciaContaContabil.material) { | |
185 | - $scope.showAlert('warning', $translate.instant('ADMINISTRACAODEMATERIAIS.MSG.SELECIONE_MATERIAL_PRIMEIRO')); | |
186 | - return resultado; | |
187 | - } else { | |
188 | - return ContaContabilRepository.findContaContabilPorOrganizacaoEDominioSemUsoAlmoxarifado(value, $scope.usuarioLogado.organizacao.id, | |
189 | - $scope.transferenciaContaContabil.material.dominioTipoMaterial.id).then(function(result) { | |
190 | - angular.forEach(result, function (item) { | |
191 | - if (item.id != $scope.transferenciaContaContabil.contaOrigem.id) { | |
192 | - resultado.push(item); | |
193 | - } | |
194 | - }); | |
195 | - return resultado; | |
196 | - }); | |
197 | - } | |
198 | - } | |
199 | - }; | |
200 | - | |
201 | - // Watch para limpar autocompletes | |
202 | - $scope.$watch('transferenciaContaContabil.almoxarifado', function() { | |
203 | - if (!$scope.transferenciaContaContabil.id) { | |
204 | - $scope.transferenciaContaContabil.material = null; | |
205 | - $scope.transferenciaContaContabil.contaDestino = null; | |
206 | - $scope.limparCamposMaterial(); | |
207 | - | |
208 | - if($scope.transferenciaContaContabil.almoxarifado) { | |
209 | - | |
210 | - ContaContabilRepository.obterContaContabilAlmoxarifadoConfiguracaoParametroSistema().then(function(result) { | |
211 | - $scope.transferenciaContaContabil.contaOrigem = result.originalElement; | |
212 | - | |
213 | - //Atualiza valor total da conta | |
214 | - $scope.calcularValorTransferencia(result.originalElement); | |
215 | - | |
216 | - }); | |
217 | - | |
218 | - } else { | |
219 | - $scope.transferenciaContaContabil.contaOrigem = null; | |
220 | - } | |
221 | - } | |
222 | - }); | |
223 | - | |
224 | - // Watch para atualizar conta de origem do material selecionado | |
225 | - $scope.$watch('transferenciaContaContabil.material', function() { | |
226 | - | |
227 | - if (!$scope.transferenciaContaContabil.id) { | |
228 | - if($scope.transferenciaContaContabil.material) { | |
229 | - $scope.transferenciaContaContabil.contaOrigem = $scope.transferenciaContaContabil.material.contaContabil; | |
230 | - } else { | |
231 | - $scope.transferenciaContaContabil.contaOrigem = null; | |
232 | - } | |
233 | - } | |
234 | - | |
235 | - }); | |
236 | - | |
237 | - $scope.limparCamposMaterial = function(){ | |
238 | - | |
239 | - $scope.transferenciaContaContabil.valorTransferencia = 0; | |
240 | - $scope.transferenciaContaContabil.quantidadeMaterial = 0; | |
241 | - $scope.transferenciaContaContabil.valorDepreciacaoAcumulada = 0; | |
242 | - | |
243 | - }; | |
244 | - | |
245 | - | |
246 | - $scope.calcularValorTransferencia = function(contaOrigem){ | |
247 | - | |
248 | - $scope.transferenciaContaContabil.valorTransferencia = 0; | |
249 | - | |
250 | - if($scope.transferenciaContaContabil.almoxarifado && contaOrigem && contaOrigem.id){ | |
251 | - | |
252 | - ContaContabilRepository.getValorTotal(contaOrigem.id).then(function(result) { | |
253 | - $scope.transferenciaContaContabil.valorTransferencia = result ? result : 0; | |
254 | - }); | |
255 | - | |
256 | - } | |
257 | - }; | |
258 | - | |
259 | -}]); | |
260 | 0 | \ No newline at end of file |
cit-adm-materiais-web/bin/src/main/webapp/assets/js/angular/custom/controller/TransferenciaContaContabilListController.js
... | ... | @@ -1,39 +0,0 @@ |
1 | -'use strict'; | |
2 | - | |
3 | -citApp.controller('TransferenciaContaContabilListController', ['$scope', 'TransferenciaContaContabilRepository', '$translate', '$timeout', 'DominioRepository', 'BemPatrimonialRepository', | |
4 | - function TransferenciaContaContabilListController($scope, TransferenciaContaContabilRepository, $translate, $timeout, DominioRepository, BemPatrimonialRepository) { | |
5 | - $scope.$showAdvancedFilters = false; | |
6 | - | |
7 | - $scope.resetForm = function() { | |
8 | - angular.element("#editTransferenciaContaContabil").scope().resetForm(); | |
9 | - }; | |
10 | - | |
11 | - $scope.headers = [ {title : $translate.instant('ADMINISTRACAODEMATERIAIS.LABEL.DATATRANSFERENCIA'), value : 'dataTransferencia' , filter : 'dateBR'} , | |
12 | - {title : $translate.instant('LABEL.MATERIAL'), value : 'material.descricao' } , | |
13 | - {title : $translate.instant('ADMINISTRACAODEMATERIAIS.LABEL.CONTAORIGEM'), value : 'contaOrigem.descricao' } , | |
14 | - {title : $translate.instant('ADMINISTRACAODEMATERIAIS.LABEL.CONTADESTINO'), value : 'contaDestino.descricao' }, | |
15 | - {title : $translate.instant('ADMINISTRACAODEMATERIAIS.LABEL.VALOR_TRANSFERENCIA'), value : 'valorTransferencia', filter : 'currency' }]; | |
16 | - | |
17 | - $scope.filterCriteria = { | |
18 | - start : 1, | |
19 | - dir : 'asc', | |
20 | - sort : 'id', | |
21 | - limit : 10, | |
22 | - fields: ['id', 'dataTransferencia', 'material.descricao', 'contaOrigem.descricao', 'contaDestino.descricao', 'valorTransferencia'], | |
23 | - filters : [ {type : 'date-range', field : 'dataTransferencia' } , {type : 'string', field : 'material.descricao' } , {type : 'string', field : 'contaOrigem.descricao' } , | |
24 | - {type : 'string', field : 'contaDestino.descricao' }] | |
25 | - }; | |
26 | - | |
27 | - // ABRI TransferenciaContaContabil SELECIONADA | |
28 | - $scope.abrirVisualizar = function(edit){ | |
29 | - var transferenciaContaContabil = $scope.transferenciaContaContabilChecked; | |
30 | - | |
31 | - if(!transferenciaContaContabil) { | |
32 | - $scope.showAlert('warning', !edit ? $translate.instant('MSG.SELECIONE_UM_ITEM_PARA_VISUALIZACAO') : $translate.instant('MSG.SELECIONE_UM_ITEM_PARA_EDICAO')); | |
33 | - return; | |
34 | - } | |
35 | - | |
36 | - angular.element('#editTransferenciaContaContabil').scope().getTransferenciaContaContabil(transferenciaContaContabil, edit); | |
37 | - $scope.$showPageEditWorkspace($scope.workspace); | |
38 | - }; | |
39 | -}]); |
cit-adm-materiais-web/bin/src/main/webapp/assets/js/angular/custom/controller/UnidadeMedidaController.js
... | ... | @@ -1,82 +0,0 @@ |
1 | -'use strict'; | |
2 | - | |
3 | -citApp.controller('UnidadeMedidaController', ['$scope', 'UnidadeMedidaRepository', '$translate', '$timeout', 'DominioRepository', | |
4 | - function UnidadeMedidaController($scope, UnidadeMedidaRepository, $translate, $timeout, DominioRepository) { | |
5 | - | |
6 | - $scope.unidadeMedida = {}; | |
7 | - | |
8 | - // Limpa formulário para novo cadastro | |
9 | - $scope.resetForm = function() { | |
10 | - $scope.limparUnidadeMedida(); | |
11 | - $scope.edit = true; | |
12 | - $timeout(function(){ | |
13 | - $scope.unidadeMedidaForm.$submitted = false; | |
14 | - $scope.unidadeMedidaForm.$setPristine(); | |
15 | - }); | |
16 | - }; | |
17 | - | |
18 | - // Atualiza pagina de pesquisa | |
19 | - $scope.atualizaPaginaPesquisa = function () { | |
20 | - angular.element('#searchUnidadeMedida').scope().fetchResult(); | |
21 | - }; | |
22 | - | |
23 | - // MODAL QUE CONFIRMA REMOVER DA CIDADE | |
24 | - $scope.remove = function(unidadeMedida){ | |
25 | - $scope.unidadeMedida = unidadeMedida; | |
26 | - $scope.$openModalConfirm({ | |
27 | - message: $translate.instant('MSG.CONFIRMA_EXCLUSAO'), | |
28 | - callback: function () { | |
29 | - UnidadeMedidaRepository.remove($scope.unidadeMedida).then(function() { | |
30 | - | |
31 | - $scope.$modalConfirmInstance.dismiss('cancel'); | |
32 | - $scope.showAlert("success", $translate.instant('MSG.REGISTRO_EXCLUIDO')); | |
33 | - angular.element('#searchUnidadeMedida').scope().fetchResult(); | |
34 | - | |
35 | - $scope.resetForm(); | |
36 | - }); | |
37 | - } | |
38 | - }); | |
39 | - }; | |
40 | - | |
41 | - // SALVA O UnidadeMedida | |
42 | - $scope.saveOrUpdate = function(){ | |
43 | - $scope.unidadeMedidaForm.$submitted = true; | |
44 | - | |
45 | - //verifica se o formulario está valido para salvar | |
46 | - if($scope.unidadeMedidaForm.$valid){ | |
47 | - | |
48 | - $scope.setLoadingSalva(true); | |
49 | - | |
50 | - UnidadeMedidaRepository.save($scope.unidadeMedida).then(function(result) { | |
51 | - $scope.unidadeMedida = result.originalElement; | |
52 | - $scope.showAlert("success", $translate.instant('MSG.REGISTRO_SALVO')); | |
53 | - $scope.unidadeMedidaForm.$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.limparUnidadeMedida = function(){ | |
64 | - $scope.unidadeMedida = {}; | |
65 | - }; | |
66 | - | |
67 | - // Consulta entidade e mostra no formulario | |
68 | - $scope.getUnidadeMedida = function(unidadeMedida, edit){ | |
69 | - $scope.setLoadingGet(true); | |
70 | - | |
71 | - UnidadeMedidaRepository.get(unidadeMedida.id).then(function(result) { | |
72 | - $scope.unidadeMedida = result.originalElement; | |
73 | - $scope.edit = edit; | |
74 | - $scope.setLoading(false); | |
75 | - }); | |
76 | - }; | |
77 | - | |
78 | - DominioRepository.findAllDominio('tipoNumerico').then(function(result) { | |
79 | - $scope.tipoNumericoList = result; | |
80 | - }); | |
81 | - | |
82 | -}]); |
cit-adm-materiais-web/bin/src/main/webapp/assets/js/angular/custom/controller/UnidadeMedidaListController.js
... | ... | @@ -1,43 +0,0 @@ |
1 | -'use strict'; | |
2 | - | |
3 | -citApp.controller('UnidadeMedidaListController', ['$scope', 'UnidadeMedidaRepository', '$translate', '$timeout', 'DominioRepository', | |
4 | - function UnidadeMedidaListController($scope, UnidadeMedidaRepository, $translate, $timeout, DominioRepository) { | |
5 | - $scope.$showAdvancedFilters = false; | |
6 | - | |
7 | - $scope.resetForm = function() { | |
8 | - angular.element("#editUnidadeMedida").scope().resetForm(); | |
9 | - }; | |
10 | - | |
11 | - $scope.headers = [ {title : $translate.instant('LABEL.CODIGO'), value : 'codigo' } , | |
12 | - {title : $translate.instant('LABEL.DESCRICAO'), value : 'descricao' } , | |
13 | - {title : $translate.instant('ADMINISTRACAODEMATERIAIS.LABEL.TIPO_NUMERICO'), value : 'tipoNumerico.descricao' } , | |
14 | - {title : $translate.instant('LABEL.SIGLA'), value : 'sigla' }]; | |
15 | - | |
16 | - $scope.filterCriteria = { | |
17 | - start : 1, | |
18 | - dir : 'asc', | |
19 | - sort : 'id', | |
20 | - limit : 10, | |
21 | - fields: ['id', 'codigo', 'descricao', 'tipoNumerico.descricao', 'sigla'], | |
22 | - filters : [ {type : 'string', field : 'codigo'} , | |
23 | - {type : 'string', field : 'descricao'} , | |
24 | - {type : 'string', field : 'tipoNumerico.descricao', listaDominio : [] } , | |
25 | - {type : 'string', field : 'sigla' }] | |
26 | - }; | |
27 | - | |
28 | - DominioRepository.findAllDominio('tipoNumerico').then(function(result) { | |
29 | - $scope.filterCriteria.filters[2].listaDominio = result; | |
30 | - }); | |
31 | - | |
32 | - // ABRI UnidadeMedida SELECIONADA | |
33 | - $scope.abrirVisualizar = function(edit){ | |
34 | - var unidadeMedida = $scope.unidadeMedidaChecked; | |
35 | - | |
36 | - if(!unidadeMedida) { | |
37 | - $scope.showAlert('warning', !edit ? $translate.instant('MSG.SELECIONE_UM_ITEM_PARA_VISUALIZACAO') : $translate.instant('MSG.SELECIONE_UM_ITEM_PARA_EDICAO')); | |
38 | - return; | |
39 | - } | |
40 | - angular.element('#editUnidadeMedida').scope().getUnidadeMedida(unidadeMedida, edit); | |
41 | - $scope.$showPageEditWorkspace($scope.workspace); | |
42 | - }; | |
43 | -}]); |
cit-adm-materiais-web/bin/src/main/webapp/assets/js/angular/custom/repository/ClassificacaoMaterialRepository.js
... | ... | @@ -1,51 +0,0 @@ |
1 | -'use strict'; | |
2 | - | |
3 | -citApp.factory('ClassificacaoMaterialRepository', ['RestangularAdmMateriais', 'AbstractRepository', function (restangularAdmMateriais, AbstractRepository) { | |
4 | - | |
5 | - function ClassificacaoMaterialRepository() { | |
6 | - | |
7 | - this.listarGrupos = function() { | |
8 | - return restangularAdmMateriais.one(this.route).getList("listarGrupos").then(); | |
9 | - }; | |
10 | - | |
11 | - this.listarGruposTree = function(buscaFederalDescricao) { | |
12 | - return restangularAdmMateriais.one(this.route).getList("listarGruposTree" , {descricao : buscaFederalDescricao}).then(); | |
13 | - }; | |
14 | - | |
15 | - this.listarFilhos = function(idClassificacaoMaterial){ | |
16 | - return restangularAdmMateriais.one(this.route).getList("listarFilhos", {id: idClassificacaoMaterial}).then(); | |
17 | - }; | |
18 | - | |
19 | - this.listarClassificacaoMaterial = function(value, codigo) { | |
20 | - return restangularAdmMateriais.one(this.route).getList("listarClassificacaoMaterial", {descricao : value, codigo : codigo}).then(); | |
21 | - }; | |
22 | - | |
23 | - this.salvarClassificacaoMaterialTipoMaterial = function(classificacaoMaterial) { | |
24 | - return restangularAdmMateriais.all(this.route + '/salvarClassificacaoMaterialTipoMaterial').post(classificacaoMaterial).then(); | |
25 | - | |
26 | - }; | |
27 | - | |
28 | - this.salvarClassificacaoMaterialDetalhe = function(federalSupply) { | |
29 | - return restangularAdmMateriais.all(this.route + '/salvarClassificacaoMaterialDetalhe').post(federalSupply).then(); | |
30 | - | |
31 | - }; | |
32 | - | |
33 | - this.findClassificacaoMaterialParent = function(federalSupply) { | |
34 | - return restangularAdmMateriais.all(this.route + '/findClassificacaoMaterialParent').post(federalSupply).then(); | |
35 | - }; | |
36 | - | |
37 | - this.listarClassificacaoMaterialFilho = function(descricao, id) { | |
38 | - return restangularAdmMateriais.one(this.route).getList("listarClassificacaoMaterialFilho", {descricao : descricao, id : id}).then(); | |
39 | - }; | |
40 | - | |
41 | - this.listarFilhosPorDescricaoIdParent = function(descricao, id) { | |
42 | - return restangularAdmMateriais.one(this.route).getList("listarFilhosPorDescricaoIdParent", {descricao : descricao, id : id}).then(); | |
43 | - }; | |
44 | - | |
45 | - AbstractRepository.call(this, restangularAdmMateriais, 'rest/classificacaoMaterial'); | |
46 | - } | |
47 | - | |
48 | - AbstractRepository.extend(ClassificacaoMaterialRepository); | |
49 | - | |
50 | - return new ClassificacaoMaterialRepository(); | |
51 | -}]); | |
52 | 0 | \ No newline at end of file |
cit-adm-materiais-web/bin/src/main/webapp/assets/js/angular/custom/repository/ContaContabilMovimentoRepository.js
... | ... | @@ -1,31 +0,0 @@ |
1 | - | |
2 | -citApp.factory('ContaContabilMovimentoRepository', ['RestangularAdmMateriais', 'AbstractRepository', function (restangularAdmMateriais, AbstractRepository) { | |
3 | - | |
4 | - function ContaContabilMovimentoRepository() { | |
5 | - AbstractRepository.call(this, restangularAdmMateriais, 'rest/contaContabilMovimento'); | |
6 | - | |
7 | - this.existeSaldoReferencia = function(organizacaoId, dataReferencia) { //Método para realizar o fechamento do mês de um orgão passando o tipo de depreciação a ser realizada | |
8 | - var request = { | |
9 | - organizacao : organizacaoId, | |
10 | - dataReferencia : dataReferencia | |
11 | - }; | |
12 | - | |
13 | - return restangularAdmMateriais.all(this.route + '/existeSaldoReferencia').post(request); | |
14 | - }; | |
15 | - | |
16 | - this.existeMovimentacaoReferenciaTipoMaterial = function(organizacaoId, dataRefInicial, dataRefFinal, tipoMaterial) { //Método para verificar se existe movimentações de um tipo de material especifico em uma data de referencia | |
17 | - var request = { | |
18 | - organizacao : organizacaoId, | |
19 | - dataReferenciaInicial : dataRefInicial, | |
20 | - dataReferenciaFinal : dataRefFinal, | |
21 | - tipoMaterial : tipoMaterial | |
22 | - }; | |
23 | - | |
24 | - return restangularAdmMateriais.all(this.route + '/existeMovimentacaoReferencia').post(request); | |
25 | - }; | |
26 | - } | |
27 | - | |
28 | - AbstractRepository.extend(ContaContabilMovimentoRepository); | |
29 | - | |
30 | - return new ContaContabilMovimentoRepository(); | |
31 | -}]); | |
32 | 0 | \ No newline at end of file |
cit-adm-materiais-web/bin/src/main/webapp/assets/js/angular/custom/repository/ContaContabilRepository.js
... | ... | @@ -1,62 +0,0 @@ |
1 | - | |
2 | -citApp.factory('ContaContabilRepository', ['RestangularAdmMateriais', 'AbstractRepository', function (restangularAdmMateriais, AbstractRepository) { | |
3 | - | |
4 | - function ContaContabilRepository() { | |
5 | - | |
6 | - // Autocomplete conta contábil por código | |
7 | - this.findContaContabil = function(codigo) { | |
8 | - return restangularAdmMateriais.one('rest/contaContabil').getList("findContaContabil", {"chave": codigo}).then(); | |
9 | - }; | |
10 | - | |
11 | - // Autocomplete conta contábil por código e órgão do usuário logado | |
12 | - this.findContaContabilPorOrganizacao = function(codigo, idOrganizacao) { | |
13 | - return restangularAdmMateriais.one(this.route).getList("findContaContabilPorOrganizacao", {codigo: codigo, idOrganizacao : idOrganizacao}).then(); | |
14 | - }; | |
15 | - | |
16 | - // Autocomplete conta contábil por código; órgão do usuário logado; domínio tipo | |
17 | - this.findContaContabilPorOrganizacaoEDominio = function(codigo, idOrganizacao, idDominio) { | |
18 | - return restangularAdmMateriais.one(this.route).getList("findContaContabilPorOrganizacaoEDominio", {codigo: codigo, idOrganizacao : idOrganizacao, idDominio : idDominio}).then(); | |
19 | - }; | |
20 | - | |
21 | - // Autocomplete conta contábil por código; órgão do usuário logado; domínio tipo; sem uso com material | |
22 | - this.findContaContabilPorOrganizacaoEDominioSemUsoMaterial = function(codigo, idOrganizacao, idDominio) { | |
23 | - return restangularAdmMateriais.one(this.route).getList("findContaContabilPorOrganizacaoEDominioSemUsoMaterial", {codigo: codigo, idOrganizacao : idOrganizacao, idDominio : idDominio}).then(); | |
24 | - }; | |
25 | - | |
26 | - // Autocomplete conta contábil por código; órgão do usuário logado; domínio tipo; sem uso com almoxarifado | |
27 | - this.findContaContabilPorOrganizacaoEDominioSemUsoAlmoxarifado = function(codigo, idOrganizacao, idDominio) { | |
28 | - return restangularAdmMateriais.one(this.route).getList("findContaContabilPorOrganizacaoEDominioSemUsoAlmoxarifado", {codigo: codigo, idOrganizacao : idOrganizacao, idDominio : idDominio}).then(); | |
29 | - }; | |
30 | - | |
31 | - // Autocomplete conta contábil por código; órgão do usuário logado; domínio tipoMaterial; sem uso na estrutura | |
32 | - this.findContaContabilPorOrganizacaoTipoMaterial = function(codigo, idOrganizacao, codigoTipoMaterial) { | |
33 | - return restangularAdmMateriais.one(this.route).getList("findContaContabilPorOrganizacaoTipoMaterial", {codigo: codigo, idOrganizacao : idOrganizacao, codigoTipoMaterial : codigoTipoMaterial}).then(); | |
34 | - }; | |
35 | - | |
36 | - // Obtem conta contabil definada na configuracaoparametrosistema | |
37 | - this.obterContaContabilAlmoxarifadoConfiguracaoParametroSistema = function() { | |
38 | - return restangularAdmMateriais.one(this.route + "/obterContaContabilAlmoxarifadoConfiguracaoParametroSistema").get().then(); | |
39 | - }; | |
40 | - | |
41 | - // Obtem valor da conta contabil | |
42 | - this.getValorTotal = function(contaId) { | |
43 | - return restangularAdmMateriais.one(this.route + "/obterValorTotal").get({"contaId" : contaId}).then(); | |
44 | - }; | |
45 | - | |
46 | - // Autocomplete conta contabil por inventario | |
47 | - this.findContaContabilPorInventario = function(busca, idInventario) { | |
48 | - return restangularAdmMateriais.one(this.route).getList("findContaContabilPorInventario", {busca: busca, idInventario : idInventario}).then(); | |
49 | - }; | |
50 | - | |
51 | - // Obtem conta contabil definada na configuracaoparametrosistema | |
52 | - this.findContaContabilPorMaterial = function(materialId) { | |
53 | - return restangularAdmMateriais.one(this.route + "/findContaContabilPorMaterial").get({"materialId" : materialId}).then(); | |
54 | - }; | |
55 | - | |
56 | - AbstractRepository.call(this, restangularAdmMateriais, 'rest/contaContabil'); | |
57 | - } | |
58 | - | |
59 | - AbstractRepository.extend(ContaContabilRepository); | |
60 | - | |
61 | - return new ContaContabilRepository(); | |
62 | -}]); | |
63 | 0 | \ No newline at end of file |
cit-adm-materiais-web/bin/src/main/webapp/assets/js/angular/custom/repository/MaterialCaracteristicaRepository.js
... | ... | @@ -1,11 +0,0 @@ |
1 | -citApp.factory('MaterialCaracteristicaRepository', ['RestangularAdmMateriais', 'AbstractRepository', function (restangularPatrimonio, AbstractRepository) { | |
2 | - | |
3 | - function MaterialCaracteristicaRepository() { | |
4 | - | |
5 | - AbstractRepository.call(this, restangularPatrimonio, 'rest/materialCaracteristica'); | |
6 | - } | |
7 | - | |
8 | - AbstractRepository.extend(MaterialCaracteristicaRepository); | |
9 | - | |
10 | - return new MaterialCaracteristicaRepository(); | |
11 | -}]); | |
12 | 0 | \ No newline at end of file |
cit-adm-materiais-web/bin/src/main/webapp/assets/js/angular/custom/repository/MaterialConsumoRepository.js
... | ... | @@ -1,27 +0,0 @@ |
1 | -citApp.factory('MaterialConsumoRepository', ['RestangularAdmMateriais', 'AbstractRepository', function (restangularAdmMateriais, AbstractRepository) { | |
2 | - | |
3 | - function MaterialConsumoRepository() { | |
4 | - | |
5 | - AbstractRepository.call(this, restangularAdmMateriais, 'rest/materialConsumo'); | |
6 | - | |
7 | - this.findMateriaisConsumoByOrganizacao = function (value, idOrganizacao) { | |
8 | - return restangularAdmMateriais.one(this.route).getList("findMateriaisConsumoByOrganizacao", {descricao : value, idOrganizacao : idOrganizacao}).then(); | |
9 | - }; | |
10 | - | |
11 | - this.getValorAtualMaterial = function(idMaterial, idOrganizacao){ | |
12 | - return restangularAdmMateriais.one(this.route + "/valorAtualMaterial").get({"materialId" : idMaterial, "idOrganizacao" : idOrganizacao}).then(); | |
13 | - }; | |
14 | - | |
15 | - this.getQtdAtualMaterial = function(idMaterial, idOrganizacao){ | |
16 | - return restangularAdmMateriais.one(this.route + "/quantidadeAtualMaterial").get({"materialId" : idMaterial, "idOrganizacao" : idOrganizacao}).then(); | |
17 | - }; | |
18 | - | |
19 | - this.findMateriaisConsumoInfo = function (value, idOrganizacao) { | |
20 | - return restangularAdmMateriais.one(this.route).getList("findMateriaisConsumoInfo", {descricao : value, idOrganizacao : idOrganizacao}).then(); | |
21 | - }; | |
22 | - } | |
23 | - | |
24 | - AbstractRepository.extend(MaterialConsumoRepository); | |
25 | - | |
26 | - return new MaterialConsumoRepository(); | |
27 | -}]); |
cit-adm-materiais-web/bin/src/main/webapp/assets/js/angular/custom/repository/MaterialConsumoTipoUnidadeMedidaEntradaRepository.js
... | ... | @@ -1,11 +0,0 @@ |
1 | -citApp.factory('MaterialConsumoTipoUnidadeMedidaEntradaRepository', ['RestangularAdmMateriais', 'AbstractRepository', function (restangularAdmMateriais, AbstractRepository) { | |
2 | - | |
3 | - function MaterialConsumoTipoUnidadeMedidaEntradaRepository() { | |
4 | - | |
5 | - AbstractRepository.call(this, restangularAdmMateriais, 'rest/materialConsumoTipoUnidadeMedidaEntrada'); | |
6 | - } | |
7 | - | |
8 | - AbstractRepository.extend(MaterialConsumoTipoUnidadeMedidaEntradaRepository); | |
9 | - | |
10 | - return new MaterialConsumoTipoUnidadeMedidaEntradaRepository(); | |
11 | -}]); |
cit-adm-materiais-web/bin/src/main/webapp/assets/js/angular/custom/repository/MaterialImagemRepository.js
... | ... | @@ -1,11 +0,0 @@ |
1 | -citApp.factory('MaterialImagemRepository', ['RestangularAdmMateriais', 'AbstractRepository', function (restangularAdmMateriais, AbstractRepository) { | |
2 | - | |
3 | - function MaterialImagemRepository() { | |
4 | - | |
5 | - AbstractRepository.call(this, restangularAdmMateriais, 'rest/materialImagem'); | |
6 | - } | |
7 | - | |
8 | - AbstractRepository.extend(MaterialImagemRepository); | |
9 | - | |
10 | - return new MaterialImagemRepository(); | |
11 | -}]); | |
12 | 0 | \ No newline at end of file |
cit-adm-materiais-web/bin/src/main/webapp/assets/js/angular/custom/repository/MaterialPermanenteConsumoRepository.js
... | ... | @@ -1,11 +0,0 @@ |
1 | -citApp.factory('MaterialPermanenteConsumoRepository', ['RestangularAdmMateriais', 'AbstractRepository', function (restangularAdmMateriais, AbstractRepository) { | |
2 | - | |
3 | - function MaterialPermanenteConsumoRepository() { | |
4 | - | |
5 | - AbstractRepository.call(this, restangularAdmMateriais, 'rest/materialPermanenteConsumo'); | |
6 | - } | |
7 | - | |
8 | - AbstractRepository.extend(MaterialPermanenteConsumoRepository); | |
9 | - | |
10 | - return new MaterialPermanenteConsumoRepository(); | |
11 | -}]); |
cit-adm-materiais-web/bin/src/main/webapp/assets/js/angular/custom/repository/MaterialPermanenteRepository.js
... | ... | @@ -1,12 +0,0 @@ |
1 | -citApp.factory('MaterialPermanenteRepository', ['RestangularAdmMateriais', 'AbstractRepository', function (restangularAdmMateriais, AbstractRepository) { | |
2 | - | |
3 | - function MaterialPermanenteRepository() { | |
4 | - | |
5 | - AbstractRepository.call(this, restangularAdmMateriais, 'rest/materialPermanente'); | |
6 | - | |
7 | - } | |
8 | - | |
9 | - AbstractRepository.extend(MaterialPermanenteRepository); | |
10 | - | |
11 | - return new MaterialPermanenteRepository(); | |
12 | -}]); |
cit-adm-materiais-web/bin/src/main/webapp/assets/js/angular/custom/repository/MaterialRepository.js
... | ... | @@ -1,37 +0,0 @@ |
1 | - | |
2 | -citApp.factory('MaterialRepository', ['RestangularAdmMateriais', 'AbstractRepository', function (restangularAdmMateriais, AbstractRepository) { | |
3 | - | |
4 | - function MaterialRepository() { | |
5 | - | |
6 | - this.findMaterial = function(descricao) { | |
7 | - return restangularAdmMateriais.one('rest/material').getList("findMaterial", {"descricao": descricao}).then(); | |
8 | - }; | |
9 | - | |
10 | - this.findMaterialPermanente = function(descricao) { | |
11 | - return restangularAdmMateriais.one('rest/material').getList("findMaterialPermanente", {"descricao": descricao}).then(); | |
12 | - }; | |
13 | - | |
14 | - this.findMaterialConsumo = function(descricao) { | |
15 | - return restangularAdmMateriais.one('rest/material').getList("findMaterialConsumo", {"descricao": descricao}).then(); | |
16 | - }; | |
17 | - | |
18 | - this.findPorIdClassificacaoMaterial = function(idClassificacaoMaterial) { | |
19 | - return restangularAdmMateriais.one('rest/material/findPorIdClassificacaoMaterial').get({"idClassificacaoMaterial": idClassificacaoMaterial}).then(); | |
20 | - }; | |
21 | - | |
22 | - this.getMaterialTransferencia = function(id) { | |
23 | - return restangularAdmMateriais.one('rest/material/getMaterialTransferencia').get({"id": id}).then(); | |
24 | - }; | |
25 | - | |
26 | - this.findMateriaisByOrganizacao = function (codigoOuDescricao, idOrganizacao) { | |
27 | - return restangularAdmMateriais.one(this.route).getList("findMateriaisByOrganizacao", {codigoOuDescricao : codigoOuDescricao, idOrganizacao : idOrganizacao}).then(); | |
28 | - }; | |
29 | - | |
30 | - | |
31 | - AbstractRepository.call(this, restangularAdmMateriais, 'rest/material'); | |
32 | - } | |
33 | - | |
34 | - AbstractRepository.extend(MaterialRepository); | |
35 | - | |
36 | - return new MaterialRepository(); | |
37 | -}]); | |
38 | 0 | \ No newline at end of file |
cit-adm-materiais-web/bin/src/main/webapp/assets/js/angular/custom/repository/OrganizacaoAdmMateriaisRepository.js
... | ... | @@ -1,23 +0,0 @@ |
1 | -'use strict'; | |
2 | - | |
3 | -citApp.factory('OrganizacaoAdmMateriaisRepository', ['RestangularAdmMateriais', 'AbstractRepository', function (restangularAdmMateriais, AbstractRepository) { | |
4 | - | |
5 | - function OrganizacaoAdmMateriaisRepository() { | |
6 | - AbstractRepository.call(this, restangularAdmMateriais, 'rest/organizacaoAdmMateriais'); | |
7 | - | |
8 | - //Método para realizar o fechamento do mês de um orgão passando o tipo de depreciação a ser realizada | |
9 | - this.fecharMes = function(organizacaoId, tipoDepreciacaoId) { | |
10 | - var request = { | |
11 | - organizacao : organizacaoId, | |
12 | - tipoDepreciacao : tipoDepreciacaoId | |
13 | - }; | |
14 | - | |
15 | - return restangularAdmMateriais.all(this.route + '/fecharMes').post(request); | |
16 | - }; | |
17 | - | |
18 | - } | |
19 | - | |
20 | - AbstractRepository.extend(OrganizacaoAdmMateriaisRepository); | |
21 | - | |
22 | - return new OrganizacaoAdmMateriaisRepository(); | |
23 | -}]); |
cit-adm-materiais-web/bin/src/main/webapp/assets/js/angular/custom/repository/TransferenciaContaContabilRepository.js
... | ... | @@ -1,17 +0,0 @@ |
1 | -'use strict'; | |
2 | - | |
3 | -citApp.factory('TransferenciaContaContabilRepository', ['RestangularAdmMateriais', 'AbstractRepository', function (restangularAdmMateriais, AbstractRepository) { | |
4 | - | |
5 | - function TransferenciaContaContabilRepository() { | |
6 | - AbstractRepository.call(this, restangularAdmMateriais, 'rest/transferenciaContaContabil'); | |
7 | - | |
8 | - //Método para realizar uma transferencia entre contas contábeis | |
9 | - this.realizarTransferencia = function(transferencia) { | |
10 | - return restangularAdmMateriais.all(this.route + '/realizarTransferencia').post(transferencia); | |
11 | - }; | |
12 | - } | |
13 | - | |
14 | - AbstractRepository.extend(TransferenciaContaContabilRepository); | |
15 | - | |
16 | - return new TransferenciaContaContabilRepository(); | |
17 | -}]); |
cit-adm-materiais-web/bin/src/main/webapp/assets/js/angular/custom/repository/UnidadeMedidaRepository.js
... | ... | @@ -1,12 +0,0 @@ |
1 | -'use strict'; | |
2 | - | |
3 | -citApp.factory('UnidadeMedidaRepository', ['RestangularAdmMateriais', 'AbstractRepository', function (restangularAdmMateriais, AbstractRepository) { | |
4 | - | |
5 | - function UnidadeMedidaRepository() { | |
6 | - AbstractRepository.call(this, restangularAdmMateriais, 'rest/unidadeMedida'); | |
7 | - } | |
8 | - | |
9 | - AbstractRepository.extend(UnidadeMedidaRepository); | |
10 | - | |
11 | - return new UnidadeMedidaRepository(); | |
12 | -}]); |
cit-adm-materiais-web/bin/src/main/webapp/html/classificacaoMaterial/classificacaoMaterial.html
... | ... | @@ -1,120 +0,0 @@ |
1 | -<div class="page-content clearfix" id="classificacaoMaterialControllerId" ng-controller="ClassificacaoMaterialController"> | |
2 | - <div class="bar-buttons-action fixed"> | |
3 | - <div class="row"> | |
4 | - <div class="col-sm-8 text-left"> | |
5 | - <div ng-show="!edit"> | |
6 | - <button title="{{$translate.instant('LABEL.CADASTRAR')}}" alt="{{$translate.instant('LABEL.CADASTRAR')}}" class="btn btn-clear" ng-click="novoGrupoClassificacao()"> | |
7 | - <i class="fa fa-plus-circle yellow-dark"></i> | |
8 | - <translate>LABEL.CADASTRAR</translate> | |
9 | - </button> | |
10 | - </div> | |
11 | - | |
12 | - <div ng-show="edit"> | |
13 | - <button title="{{$translate.instant('LABEL.SALVAR')}}" alt="{{$translate.instant('LABEL.SALVAR')}}" class="btn btn-clear" ng-click="saveOrUpdate()"> | |
14 | - <i class="fa fa-save green"></i> <translate>LABEL.SALVAR</translate> | |
15 | - </button> | |
16 | - | |
17 | - <button title="{{$translate.instant('LABEL.LIMPAR')}}" alt="{{$translate.instant('LABEL.LIMPAR')}}" class="btn btn-clear" ng-click="resetForm(false)"> | |
18 | - <i class="fa fa-eraser yellow-dark"></i> <translate>LABEL.LIMPAR</translate> | |
19 | - </button> | |
20 | - </div> | |
21 | - </div><!-- .col --> | |
22 | - | |
23 | - <div class="col-sm-4 text-right"> | |
24 | - <favorito/> | |
25 | - | |
26 | - <help-button workspace="workspace" /> | |
27 | - </div><!-- .col --> | |
28 | - </div><!-- .row --> | |
29 | - </div> | |
30 | - | |
31 | - <breadcrumb ng-workspace="workspace"></breadcrumb> | |
32 | - | |
33 | - <form name="classificacaoMaterialForm" novalidate autocomplete="off"> | |
34 | - | |
35 | - <div class="row"> | |
36 | - <div class="col-sm-8"> | |
37 | - <div class="form-group has-feedback"> | |
38 | - <label class="control-label"><translate>LABEL.PESQUISAR</translate></label> | |
39 | - <input type="text" class="form-control" ng-model="buscaFederalSupply" ng-change="buscarTree(buscaFederalSupply)"> | |
40 | - <span class="glyphicon glyphicon-search form-control-feedback"></span> | |
41 | - </div><!-- .form-group --> | |
42 | - </div><!-- .col --> | |
43 | - </div><!-- .row --> | |
44 | - | |
45 | - <div class="row"> | |
46 | - <div class="col-sm-12"> | |
47 | - <ol class="list-unstyled"> | |
48 | - <li class="dd-item dd2-item" ng-repeat="classificacaoMaterial in classificacaoMaterialList" ng-class="{'selected': classificacaoMaterial.$selected}" ng-include="'tree_item_renderer.html'"></li> | |
49 | - </ol> | |
50 | - </div><!-- .col --> | |
51 | - </div><!-- .row --> | |
52 | - | |
53 | - <div class="row"> | |
54 | - <div class="col-sm-12"> | |
55 | - <script type="text/ng-template" id="tree_item_renderer.html"> | |
56 | - <div class="tree-node tree-node-content"> | |
57 | - <div class="dd-handle dd2-handle" ng-click="mostrarFilhos(classificacaoMaterial)" ng-show="{{classificacaoMaterial.dominioTipoClassificacaoMaterial.codigo != 4}}"> | |
58 | - <i class="ace-icon fa {{classificacaoMaterial.mostrarFilhos ? 'fa-minus' : 'fa-plus'}} bigger-125" ></i> | |
59 | - </div> | |
60 | - <div class="dd2-content"> | |
61 | - <div class="col-sm-10" ng-click="mostrarFilhos(classificacaoMaterial);"> | |
62 | - <a href="#void" > | |
63 | - <span class="tree-label text-word-break">{{classificacaoMaterial.codigo}} - {{classificacaoMaterial.descricao}}</span> | |
64 | - </a> | |
65 | - </div> | |
66 | - | |
67 | - <div class="col-sm-2 pull-right action-buttons" style="text-align:right !important; cursor : default !important;"> | |
68 | - <a href="#void" class="green" ng-click="novoNoFilho(classificacaoMaterial); classificacaoMaterial.$selected = true;" ng-show="{{classificacaoMaterial.dominioTipoClassificacaoMaterial.nome != 'DETALHE'}}"> | |
69 | - <i class="ace-icon fa fa-plus-circle bigger-130" title="{{$translate.instant('LABEL.CADASTRAR')}}" alt="{{$translate.instant('LABEL.CADASTRAR')}}"></i> | |
70 | - </a> | |
71 | - <a href="#void" class="blue" ng-click="setClassificacaoMaterial(classificacaoMaterial); classificacaoMaterial.$selected = true;" style="margin-left: 3px;"> | |
72 | - <i class="ace-icon fa fa-pencil bigger-130" title="{{$translate.instant('LABEL.EDITAR')}}" alt="{{$translate.instant('LABEL.EDITAR')}}"></i> | |
73 | - </a> | |
74 | - <a href="#void" class="red" ng-click="remove(classificacaoMaterial)" style="margin-left: 3px;"> | |
75 | - <i class="ace-icon fa fa-trash-o bigger-130" title="{{$translate.instant('LABEL.REMOVER')}}" alt="{{$translate.instant('LABEL.REMOVER')}}"></i> | |
76 | - </a> | |
77 | - </div> | |
78 | - </div> | |
79 | - </div> | |
80 | - <ol ng-show="classificacaoMaterial.mostrarFilhos"> | |
81 | - <li class="dd-item dd2-item" ng-repeat="classificacaoMaterial in classificacaoMaterial.classificacaoMaterialFilhos" ng-class="{'selected': classificacaoMaterial.$selected}" ng-include="'tree_item_renderer.html'"></li> | |
82 | - </ol> | |
83 | - </script> | |
84 | - </div><!-- .col --> | |
85 | - </div><!-- .row --> | |
86 | - | |
87 | - <div id="containerClassificacaoMaterialEdit" class="page-content" ng-show="edit"> | |
88 | - <p> | |
89 | - <small>( <span class="red">*</span> ) <translate>LABEL.CAMPOS_OBRIGATORIOS</translate></small> | |
90 | - </p> | |
91 | - | |
92 | - <fieldset> | |
93 | - <legend><translate>ADMINISTRACAODEMATERIAIS.LABEL.DADOS_CLASSIFICACAO_MATERIAL</translate></legend> | |
94 | - | |
95 | - <div class="row"> | |
96 | - <div class="col-md-6"> | |
97 | - <div class="form-group"> | |
98 | - <label-select ng-model="classificacaoMaterial.dominioTipoClassificacaoMaterial" ng-label="ADMINISTRACAODEMATERIAIS.LABEL.TIPO_CLASSIFICACAO_MATERIAL" ng-list="tipoClassificacaoMaterial" ng-custom-options="dominio.originalElement.id as dominio.descricao for dominio" track-by="track by dominio.descricao" ng-obrigatorio="true" ng-disabled="true" form="classificacaoMaterialForm"></label-select> | |
99 | - </div> | |
100 | - </div><!-- .col --> | |
101 | - | |
102 | - <div class="col-md-6" ng-show="isVisualizarGrupo();"> | |
103 | - <label-input ng-type="text" ng-id="classificacaoMaterial.classificacaoMaterialParent" ng-label="{{classificacaoMaterial.classificacaoMaterialParent.dominioTipoClassificacaoMaterial.descricao}}" ng-model="classificacaoMaterial.classificacaoMaterialParent.descricao" ng-disabled="true" form="classificacaoMaterialForm" ng-obrigatorio="classificacaoMaterial.dominioTipoClassificacaoMaterial.nome != 'CLASSE'"/> | |
104 | - </div><!-- .col --> | |
105 | - | |
106 | - </div><!-- .row --> | |
107 | - | |
108 | - <div class="row"> | |
109 | - <div class="col-md-4"> | |
110 | - <label-input ng-type="text" ng-id="classificacaoMaterial.codigo" ng-label="LABEL.CODIGO" ng-disabled="!edit" ng-obrigatorio="true" form="classificacaoMaterialForm" ng-model="classificacaoMaterial.codigo" ng-custom-maxlength="30" /> | |
111 | - </div><!-- .col --> | |
112 | - | |
113 | - <div class="col-md-8"> | |
114 | - <label-input ng-type="text" ng-id="classificacaoMaterial.descricao" ng-label="LABEL.DESCRICAO" ng-obrigatorio="true" ng-disabled="!edit" form="classificacaoMaterialForm" ng-model="classificacaoMaterial.descricao" ng-custom-maxlength="100" /> | |
115 | - </div><!-- .col --> | |
116 | - </div><!-- .row --> | |
117 | - </fieldset> | |
118 | - </div><!-- .page-content --> | |
119 | - </form> | |
120 | -</div> | |
121 | 0 | \ No newline at end of file |
cit-adm-materiais-web/bin/src/main/webapp/html/contaContabil/contaContabil.html
... | ... | @@ -1,2 +0,0 @@ |
1 | -<div ng-include src="'/cit-adm-materiais-web/html/contaContabil/contaContabilList.html'" ng-show="workspace.$showSearch" /> | |
2 | -<div ng-include src="'/cit-adm-materiais-web/html/contaContabil/contaContabilEdit.html'" ng-show="workspace.$showEdit" /> | |
3 | 0 | \ No newline at end of file |
cit-adm-materiais-web/bin/src/main/webapp/html/contaContabil/contaContabilEdit.html
... | ... | @@ -1,184 +0,0 @@ |
1 | -<div id="editContaContabil" class="page-content clearfix" ng-controller="ContaContabilController"> | |
2 | - <div class="bar-buttons-action fixed"> | |
3 | - <div class="row"> | |
4 | - <div class="col-sm-8 text-left"> | |
5 | - <button title="{{$translate.instant('LABEL.SALVAR')}}" alt="{{$translate.instant('LABEL.SALVAR')}}" class="btn btn-clear" ng-click="saveOrUpdate()" ng-show="edit"> | |
6 | - <i class="fa fa-save green"></i> <translate>LABEL.SALVAR</translate> | |
7 | - </button> | |
8 | - | |
9 | - <button title="{{$translate.instant('LABEL.LIMPAR')}}" alt="{{$translate.instant('LABEL.LIMPAR')}}" class="btn btn-clear" ng-click="resetForm();" ng-show="contaContabil.id === undefined"> | |
10 | - <i class="fa fa-eraser yellow-dark"></i> <translate>LABEL.LIMPAR</translate> | |
11 | - </button> | |
12 | - | |
13 | - <button title="{{$translate.instant('LABEL.EDITAR')}}" alt="{{$translate.instant('LABEL.EDITAR')}}" class="btn btn-clear" ng-show="!(pgEdit || edit)" ng-click="edit = true; pgEdit = true;"> | |
14 | - <i class="fa fa-pencil blue"></i> | |
15 | - <translate>LABEL.EDITAR</translate> | |
16 | - </button> | |
17 | - | |
18 | - <button title="{{$translate.instant('LABEL.REMOVER')}}" alt="{{$translate.instant('LABEL.REMOVER')}}" class="btn btn-clear" ng-click="remove(contaContabil);" | |
19 | - ng-show="contaContabil.id !== undefined"> | |
20 | - <i class="fa fa-times red"></i> <translate>LABEL.REMOVER</translate> | |
21 | - </button> | |
22 | - | |
23 | - <bloquear-desbloquear ng-model="contaContabil" ng-repository="ContaContabilRepository" ng-edit="edit" form="contaContabilForm"></bloquear-desbloquear> | |
24 | - | |
25 | - <button title="{{$translate.instant('LABEL.PESQUISAR')}}" alt="{{$translate.instant('LABEL.PESQUISAR')}}" class="btn btn-clear" | |
26 | - ng-click="$showPageSearchWorkspace(workspace); atualizaPaginaPesquisa();"> | |
27 | - <i class="fa fa-search"></i> <translate>LABEL.PESQUISAR</translate> | |
28 | - </button> | |
29 | - </div><!-- .col --> | |
30 | - | |
31 | - <div class="col-sm-4 text-right"> | |
32 | - <favorito/> | |
33 | - | |
34 | - <help-button workspace="workspace" /> | |
35 | - </div><!-- .col --> | |
36 | - </div><!-- .row --> | |
37 | - </div><!-- .bar-buttons-action --> | |
38 | - | |
39 | - <breadcrumb ng-workspace="workspace"></breadcrumb> | |
40 | - | |
41 | - <form name="contaContabilForm" novalidate autocomplete="off"> | |
42 | - <p> | |
43 | - <small>( <span class="red">*</span> ) <translate>LABEL.CAMPOS_OBRIGATORIOS</translate></small> | |
44 | - <small>( <span class="red">**</span> ) <translate>LABEL.PROIBIDO_EDITAR_APOS_USO_CONTA</translate></small> | |
45 | - </p> | |
46 | - | |
47 | - <fieldset> | |
48 | - <legend><translate>ADMINISTRACAODEMATERIAIS.LABEL.DADOS_CONTA_CONTABIL</translate></legend> | |
49 | - | |
50 | - <div class="row"> | |
51 | - <div class="col-sm-2"> | |
52 | - <label-input ng-type="text" ng-id="contaContabil.codigoSistemaOrigem" ng-label="ADMINISTRACAODEMATERIAIS.LABEL.CODIGO_SISTEMA_ORIGEM" ng-disabled="true" ng-model="contaContabil.codigoSistemaOrigem" | |
53 | - ng-custom-maxlength="15" form="contaContabilForm"/> | |
54 | - </div><!-- .col-sm-2 --> | |
55 | - <div class="col-sm-2"> | |
56 | - <label-input ng-type="text" ng-id="contaContabil.codigo" ng-label="LABEL.CODIGO" ng-obrigatorio="true" ng-disabled="!edit" ng-model="contaContabil.codigo" ng-custom-maxlength="15" | |
57 | - form="contaContabilForm"/> | |
58 | - </div><!-- .col --> | |
59 | - <div class="col-sm-8"> | |
60 | - <label-input ng-type="text" ng-id="contaContabil.descricao" ng-label="LABEL.DESCRICAO" ng-obrigatorio="true" ng-disabled="!edit" ng-model="contaContabil.descricao" ng-custom-maxlength="100" | |
61 | - form="contaContabilForm"/> | |
62 | - </div><!-- .col --> | |
63 | - </div><!-- row --> | |
64 | - | |
65 | - <div class="row"> | |
66 | - <div class="col-sm-2"> | |
67 | - <div class="form-group"> | |
68 | - <label for='contaContabil.dominioTipoMaterial' ng-class="{'has-error' : contaContabilForm['contaContabil.dominioTipoMaterial'].$error.required && (!contaContabilForm['contaContabil.dominioTipoMaterial'].$pristine || contaContabilForm.$submitted)}"> | |
69 | - <translate class="ng-scope ng-binding">ADMINISTRACAODEMATERIAIS.LABEL.TIPO_MATERIAL</translate><span class='red'>*</span><span class='red'> **</span> | |
70 | - <i ng-show="contaContabilForm['contaContabil.dominioTipoMaterial'].$error.required && (!contaContabilForm['contaContabil.dominioTipoMaterial'].$pristine || contaContabilForm.$submitted)" class='fa fa-warning red' | |
71 | - tooltip="{{$translate.instant('ADMINISTRACAODEMATERIAIS.LABEL.TIPO_MATERIAL')}} {{$translate.instant('LABEL.CAMPO_OBRIGATORIO')}}" tooltip-placement='top'></i> | |
72 | - </label> | |
73 | - <label-select ng-id="contaContabil.dominioTipoMaterial" ng-model="contaContabil.dominioTipoMaterial.codigo" ng-obrigatorio="true" | |
74 | - ng-disabled="!edit || emUso" form="contaContabilForm" ng-list="dominiosTipoMaterial" ng-custom-change="mudaTipoMaterial()" | |
75 | - ng-custom-options="dominioTipoMaterial.codigo as dominioTipoMaterial.descricao for dominioTipoMaterial"></label-select> | |
76 | - </div><!-- .form-group --> | |
77 | - </div><!-- .col --> | |
78 | - | |
79 | - <div class="col-sm-2" ng-show="contaContabil.dominioTipoMaterial.codigo == 2"> | |
80 | - <div class="form-group"> | |
81 | - <label-select ng-id="contaContabil.dominioTipoContaContabil" ng-model="contaContabil.dominioTipoContaContabil.id" ng-label="ADMINISTRACAODEMATERIAIS.LABEL.TIPO_CONTA_CONTABIL" | |
82 | - ng-obrigatorio="contaContabil.dominioTipoMaterial.codigo == 2" ng-disabled="!edit" form="contaContabilForm" ng-list="dominiosTipoContaContabil" | |
83 | - ng-custom-options="dominioTipoContaContabil.id as dominioTipoContaContabil.descricao for dominioTipoContaContabil"></label-select> | |
84 | - </div><!-- .form-group --> | |
85 | - </div><!-- .col --> | |
86 | - </div><!-- row --> | |
87 | - | |
88 | - <div class="widget-box margin-bottom" ng-show="contaContabil.dominioTipoMaterial.codigo == 2"> | |
89 | - <div class="widget-header"> | |
90 | - <h4 class="widget-title"> | |
91 | - <h2 class="widget-title"><translate>LABEL.DEPRECIACAO</translate></h2> | |
92 | - </h4> | |
93 | - </div> | |
94 | - <div class="widget-body"> | |
95 | - <div class="widget-main"> | |
96 | - <div class="row"> | |
97 | - | |
98 | - <div class="col-sm-3"> | |
99 | - <label-input-number ng-max-number="10000" ng-min-number="0" ng-type="text" ng-id="contaContabil.vidaUtil" ng-obrigatorio="contaContabil.dominioTipoMaterial.codigo == 2" | |
100 | - form="contaContabilForm" ng-label="LABEL.VIDA_UTIL_EM_MESES" ng-disabled="!edit" ng-model="contaContabil.vidaUtil" ng-custom-maxlength="5" | |
101 | - ng-evento-blur="calcularTaxaDepreciacao()" /> | |
102 | - </div> | |
103 | - | |
104 | - <div class="col-sm-3"> | |
105 | - <label-input-percent ng-type="text" only-number ng-max-number="100" ng-min-number="0" ng-precision-number="2" ng-id="contaContabil.taxaDepreciacaoMensal" | |
106 | - ng-label="ADMINISTRACAODEMATERIAIS.LABEL.TAXA_DEPRECIACAO_MENSAL" ng-obrigatorio="contaContabil.dominioTipoMaterial.codigo == 2" ng-disabled="true" ng-model="contaContabil.taxaDepreciacaoMensal" | |
107 | - form="contaContabilForm"/> | |
108 | - </div> | |
109 | - | |
110 | - <div class="col-sm-3"> | |
111 | - <label-input-percent ng-type="text" only-number ng-max-number="100" ng-min-number="0" ng-precision-number="2" ng-id="contaContabil.percentualNaoDepreciavel" | |
112 | - ng-label="ADMINISTRACAODEMATERIAIS.LABEL.PERCENTUAL_NAO_DEPRECIACAO" ng-obrigatorio="contaContabil.dominioTipoMaterial.codigo == 2" ng-disabled="!edit" ng-model="contaContabil.percentualNaoDepreciavel" | |
113 | - form="contaContabilForm"/> | |
114 | - </div> | |
115 | - | |
116 | - </div><!-- row --> | |
117 | - </div><!-- .widget-main --> | |
118 | - </div><!-- .widget-body --> | |
119 | - </div><!-- .widget-body --> | |
120 | - | |
121 | - <div class="widget-box margin-bottom"> | |
122 | - <div class="widget-header"> | |
123 | - <h4 class="widget-title"> | |
124 | - <h2 class="widget-title"><translate>ADMINISTRACAODEMATERIAIS.LABEL.CONFIGURACAO</translate></h2> | |
125 | - </h4> | |
126 | - </div> | |
127 | - <div class="widget-body"> | |
128 | - <div class="widget-main"> | |
129 | - <div> | |
130 | - <table class="table table-bordered table-striped"> | |
131 | - <thead> | |
132 | - <tr> | |
133 | - <th style="width: 40%;"> | |
134 | - <translate>ADMINISTRACAODEMATERIAIS.LABEL.REFERENCIA</translate> | |
135 | - </th> | |
136 | - <th style="width: 60%;" ng-show="contaContabil.dominioTipoMaterial.codigo == 1"> | |
137 | - <translate>ADMINISTRACAODEMATERIAIS.LABEL.APRESENTAR_RMA</translate> | |
138 | - </th> | |
139 | - <th style="width: 20%;" ng-show="contaContabil.dominioTipoMaterial.codigo == 2"> | |
140 | - <translate>ADMINISTRACAODEMATERIAIS.LABEL.APRESENTAR_RMB</translate> | |
141 | - </th> | |
142 | - <th style="width: 20%;" ng-show="contaContabil.dominioTipoMaterial.codigo == 2"> | |
143 | - <translate>ADMINISTRACAODEMATERIAIS.LABEL.APRESENTAR_RELATORIO_DEPRECIACAO</translate> | |
144 | - </th> | |
145 | - <th style="width: 20%;" ng-show="contaContabil.dominioTipoMaterial.codigo == 2"> | |
146 | - <translate>ADMINISTRACAODEMATERIAIS.LABEL.APRESENTAR_RELATORIO_INVENTARIO</translate> | |
147 | - </th> | |
148 | - </tr> | |
149 | - </thead> | |
150 | - <tbody> | |
151 | - <tr ng-repeat="contaContabilConfiguracao in contaContabil.configuracoesReferencia | orderReferencia" ng-hide="contaContabil.configuracoesReferencia.length == 0"> | |
152 | - <td> | |
153 | - {{contaContabilConfiguracao.mesReferencia | date : 'MMMM/yyyy'}} | |
154 | - </td> | |
155 | - <td class="text-center" ng-show="contaContabil.dominioTipoMaterial.codigo == 1"> | |
156 | - <input type="checkbox" ng-disabled="validaReferencia(contaContabilConfiguracao.mesReferencia) || !edit" | |
157 | - ng-model="contaContabilConfiguracao.apresentaRMA" /> | |
158 | - </td> | |
159 | - <td class="text-center" ng-show="contaContabil.dominioTipoMaterial.codigo == 2"> | |
160 | - <input type="checkbox" ng-disabled="validaReferencia(contaContabilConfiguracao.mesReferencia) || !edit" | |
161 | - ng-model="contaContabilConfiguracao.apresentaRMB" /> | |
162 | - </td> | |
163 | - <td class="text-center" ng-show="contaContabil.dominioTipoMaterial.codigo == 2"> | |
164 | - <input type="checkbox" ng-disabled="validaReferencia(contaContabilConfiguracao.mesReferencia) || !edit" | |
165 | - ng-model="contaContabilConfiguracao.apresentaRelatorioDepreciacao" /> | |
166 | - </td> | |
167 | - <td class="text-center" ng-show="contaContabil.dominioTipoMaterial.codigo == 2"> | |
168 | - <input type="checkbox" ng-disabled="!edit" ng-model="contaContabilConfiguracao.apresentaRelatorioInventario" /> | |
169 | - </td> | |
170 | - </tr> | |
171 | - <tr ng-hide="contaContabil.configuracoesReferencia.length != 0"> | |
172 | - <td colspan="2"> | |
173 | - <translate>LABEL.TABELA_VAZIA</translate> | |
174 | - </td> | |
175 | - </tr> | |
176 | - </tbody> | |
177 | - </table> | |
178 | - </div> | |
179 | - </div><!-- .widget-main --> | |
180 | - </div><!-- .widget-body --> | |
181 | - </div><!-- .widget-body --> | |
182 | - </fieldset> | |
183 | - </form> | |
184 | -</div><!-- .page-content --> | |
185 | 0 | \ No newline at end of file |
cit-adm-materiais-web/bin/src/main/webapp/html/contaContabil/contaContabilList.html
... | ... | @@ -1,42 +0,0 @@ |
1 | -<div id="searchContaContabil" class="page-content" ng-controller="ContaContabilListController"> | |
2 | - <div class="bar-buttons-action fixed"> | |
3 | - <div class="row"> | |
4 | - <div class="col-sm-8 text-left"> | |
5 | - <button title="{{$translate.instant('LABEL.CADASTRAR')}}" alt="{{$translate.instant('LABEL.CADASTRAR')}}" class="btn btn-clear" ng-click="$showPageEditWorkspace(workspace); resetForm();"> | |
6 | - <i class="fa fa-plus-circle yellow-dark"></i> | |
7 | - <translate>LABEL.CADASTRAR</translate> | |
8 | - </button> | |
9 | - | |
10 | - <button title="{{$translate.instant('LABEL.VISUALIZAR')}}" alt="{{$translate.instant('LABEL.VISUALIZAR')}}" class="btn btn-clear" ng-click="abrirContaContabil(false);"> | |
11 | - <i class="fa fa-search blue"></i> | |
12 | - <translate>LABEL.VISUALIZAR</translate> | |
13 | - </button> | |
14 | - | |
15 | - <button title="{{$translate.instant('LABEL.EDITAR')}}" alt="{{$translate.instant('LABEL.EDITAR')}}" class="btn btn-clear" ng-click="abrirContaContabil(true);"> | |
16 | - <i class="fa fa-pencil blue"></i> | |
17 | - <translate>LABEL.EDITAR</translate> | |
18 | - </button> | |
19 | - | |
20 | - <button title="{{$translate.instant('LABEL.REMOVER')}}" alt="{{$translate.instant('LABEL.REMOVER')}}" class="btn btn-clear" ng-click="remove(contaContabil);"> | |
21 | - <i class="fa fa-times red"></i> | |
22 | - <translate>LABEL.REMOVER</translate> | |
23 | - </button> | |
24 | - | |
25 | - <span class="divider-vertical"></span> | |
26 | - | |
27 | - <filtros ng-filter="filterCriteria" ng-workspace="workspace"></filtros> | |
28 | - </div><!-- .col --> | |
29 | - | |
30 | - <div class="col-sm-4 text-right"> | |
31 | - <favorito/> | |
32 | - | |
33 | - <help-button workspace="workspace" /> | |
34 | - </div><!-- .col --> | |
35 | - </div><!-- .row --> | |
36 | - </div><!-- .bar-buttons-action --> | |
37 | - | |
38 | - <breadcrumb ng-workspace="workspace"></breadcrumb> | |
39 | - | |
40 | - <list-view ng-lista="contaContabeis" ng-repository="ContaContabilRepository" ng-headers="headers" ng-filter-criteria="filterCriteria" ng-item-selecionado="contaContabilChecked"></list-view> | |
41 | - | |
42 | -</div><!-- .page-content --> | |
43 | 0 | \ No newline at end of file |
cit-adm-materiais-web/bin/src/main/webapp/html/fechamentoMes/fechamentoMes.html
... | ... | @@ -1,76 +0,0 @@ |
1 | -<form name="fechamentoMesForm" novalidade id="fechamentoMesControllerId" ng-controller="MesReferenciaController" autocomplete="off"> | |
2 | - <div class="bar-buttons-action" > | |
3 | - <div class="row"> | |
4 | - <div class="col-sm-8 text-left"> | |
5 | - <button title="{{$translate.instant('ADMINISTRACAODEMATERIAIS.LABEL.FECHAR_MES')}}" alt="{{$translate.instant('ADMINISTRACAODEMATERIAIS.LABEL.FECHAR_MES')}}" class="btn btn-clear" type="button" ng-disabled="false" ng-click="fecharMes(fechamentoMesForm)"> | |
6 | - <i class="fa fa-save green"></i> <translate>ADMINISTRACAODEMATERIAIS.LABEL.FECHAR_MES</translate> | |
7 | - </button> | |
8 | - </div> | |
9 | - <!-- .col --> | |
10 | - | |
11 | - <div class="col-sm-4 text-right"> | |
12 | - <favorito/> | |
13 | - | |
14 | - <help-button workspace="workspace" /> | |
15 | - </div> | |
16 | - <!-- .col --> | |
17 | - </div> | |
18 | - <!-- .row --> | |
19 | - </div> | |
20 | - <h1 class="title"><translate>ADMINISTRACAODEMATERIAIS.LABEL.FECHAMENTO_MES_REFERENCIA</translate></h1> | |
21 | - <ul class="breadcrumb"> | |
22 | - <li> | |
23 | - <translate>LABEL.MENU</translate> | |
24 | - </li> | |
25 | - | |
26 | - <li> | |
27 | - <translate>LABEL.PATRIMONIO</translate> | |
28 | - </li> | |
29 | - | |
30 | - <li class="active"> | |
31 | - <translate>ADMINISTRACAODEMATERIAIS.LABEL.FECHAMENTO_MES_REFERENCIA</translate> | |
32 | - </li> | |
33 | - </ul> | |
34 | - | |
35 | - <p> | |
36 | - <small>( <span class="red">*</span> ) <translate>LABEL.CAMPOS_OBRIGATORIOS</translate> | |
37 | - </small> | |
38 | - </p> | |
39 | - | |
40 | - <div class="page-content"> | |
41 | - <fieldset> | |
42 | - <legend> | |
43 | - <translate>LABEL.DADOS_GERAIS</translate> | |
44 | - </legend> | |
45 | - | |
46 | - <div class="form-group"> | |
47 | - <auto-complete ng-item="organizacao.nome" ng-id="organizacao" ng-label="LABEL.ORGANIZACAO" ng-model="organizacao.codigoENome" form="fechamentoMesForm" ng-disabled="true" ng-obrigatorio="true"></auto-complete> | |
48 | - </div> | |
49 | - | |
50 | - <div class="row"> | |
51 | - <div class="col-sm-6"> | |
52 | - <label-input ng-id="dataReferenciaVigente" form="fechamentoMesForm" ng-label="LABEL.REFERENCIA_VIGENTE" ng-obrigatorio="true" ng-disabled="true" ng-model="dataVigente"></label-input> | |
53 | - </div> | |
54 | - <div class="col-sm-6"> | |
55 | - <label-input ng-id="dataReferenciaSubsequente" form="fechamentoMesForm" ng-label="LABEL.REFERENCIA_SUBSEQUENTE" ng-obrigatorio="true" ng-disabled="true" ng-model="dataSubsequente"></label-input> | |
56 | - </div> | |
57 | - </div> | |
58 | - | |
59 | - <legend> | |
60 | - <label ng-class="{'has-error' : submitted && tipoDepreciacaoObj}"> | |
61 | - <translate>LABEL.DEPRECIACAO</translate> | |
62 | - <span class='red'>*</span> | |
63 | - <i ng-show="submitted && tipoDepreciacaoObj" class='fa fa-warning red' tooltip='{{labelAlertTooltipCopy}}' tooltip-placement='top'></i> | |
64 | - </label> | |
65 | - </legend> | |
66 | - | |
67 | - <div class="form-group"> | |
68 | - <label-input-radio ng-model="tipoDepreciacaoObj" list="dominiosTipoDepreciacao" value="codigo" text="descricao"></label-input-radio> | |
69 | - <label> | |
70 | - <input type="radio" name="tipoDepreciacaoObj" value="0" disabled="true" /> | |
71 | - Outros | |
72 | - </label> | |
73 | - </div> | |
74 | - </fieldset> | |
75 | - </div> <!-- /.page-content --> | |
76 | -</form> | |
77 | 0 | \ No newline at end of file |
cit-adm-materiais-web/bin/src/main/webapp/html/material/material.html
cit-adm-materiais-web/bin/src/main/webapp/html/material/materialCaracteristica.html
... | ... | @@ -1,118 +0,0 @@ |
1 | - <div class="widget-box margin-bottom"> | |
2 | - <div class="widget-header"> | |
3 | - <h4 class="widget-title"> | |
4 | - <translate>LABEL.CARACTERISTICAS</translate> <translate>ADMINISTRACAODEMATERIAIS.LABEL.DO</translate> <translate>LABEL.MATERIAL</translate> | |
5 | - </h4> | |
6 | - <div class="widget-toolbar"> | |
7 | - <a href="#void" ng-click="widgetCaracteristicaIsCollapsed = !widgetCaracteristicaIsCollapsed"> | |
8 | - <i class="fa" ng-class="{'fa-chevron-up': !widgetCaracteristicaIsCollapsed, 'fa-chevron-down': widgetCaracteristicaIsCollapsed}"></i> | |
9 | - </a> | |
10 | - </div> | |
11 | - </div> | |
12 | - <div collapse="widgetCaracteristicaIsCollapsed" class="widget-body"> | |
13 | - <div class="widget-main clearfix"> | |
14 | - <div class="row"> | |
15 | - <div class="col-sm-6"> | |
16 | - <auto-complete button-new-show="true" button-new-tooltip="{{$translate.instant('LABEL.CLIQUE_ADD_CARATERISTICA')}}" button-new-action="novaCaracteristica();" | |
17 | - ng-find="findCaracteristica(value)" ng-label="LABEL.CARACTERISTICA" ng-acao-borracha="limparCaracteristicaAutoComplete(item)" | |
18 | - ng-item="item.descricao" ng-id="materialCaracteristica.caracteristica" ng-model="materialCaracteristica.caracteristica" ng-disabled="materialCaracteristica.$edit" /> | |
19 | - </div> | |
20 | - <div class="col-sm-2"> | |
21 | - <div class="form-group no-label"> | |
22 | - <div class="input-group"> | |
23 | - <label> | |
24 | - <input type="checkbox" ng-model="materialCaracteristica.obrigatorio" value="true" /> | |
25 | - <translate>LABEL.OBRIGATORIO</translate> | |
26 | - </label> | |
27 | - </div> | |
28 | - </div><!-- .form-group --> | |
29 | - </div> | |
30 | - <div class="col-sm-2"> | |
31 | - <div class="form-group no-label"> | |
32 | - <div class="input-group"> | |
33 | - <label> | |
34 | - <input type="checkbox" ng-model="materialCaracteristica.generico" value="false" /> | |
35 | - <translate>ADMINISTRACAODEMATERIAIS.LABEL.GENERICO</translate> | |
36 | - </label> | |
37 | - </div> | |
38 | - </div><!-- .form-group --> | |
39 | - </div> | |
40 | - | |
41 | - </div><!-- .row --> | |
42 | - <div class="row"> | |
43 | - <div class="col-sm-12"> | |
44 | - <div class="panel panel-default"> | |
45 | - <div class="panel-heading clearfix"> | |
46 | - <button title="{{$translate.instant('LABEL.ADICIONAR')}}" alt="{{$translate.instant('LABEL.ADICIONAR')}}" class="btn btn-clear" ng-click="adicionarCaracteristica()" ng-disabled="!materialCaracteristica.caracteristica.id" type="button"> | |
47 | - <i class="fa fa-plus-circle yellow-dark"></i> | |
48 | - <translate>LABEL.ADICIONAR</translate> </a> | |
49 | - </button> | |
50 | - | |
51 | - <button title="{{$translate.instant('LABEL.EDITAR')}}" alt="{{$translate.instant('LABEL.EDITAR')}}" class="btn btn-clear" ng-click="editCaracteristica();" ng-show="material.materialCaracteristicas.length > 0" type="button"> | |
52 | - <i class="fa fa-pencil blue"></i> | |
53 | - <translate>LABEL.EDITAR</translate> | |
54 | - </button> | |
55 | - | |
56 | - <button-lock ng-model="dataBloqueio" action-lock="bloquearCaracteristica(dataBloqueio);" ng-show="apresentarBloquearCaracteristica"></button-lock> | |
57 | - | |
58 | - <button title="{{$translate.instant('LABEL.DESBLOQUEAR')}}" alt="{{$translate.instant('LABEL.DESBLOQUEAR')}}" class="btn btn-clear" ng-show="apresentarDesbloquearCaracteristica" ng-click="desbloquearCaracteristica()" type="button"> | |
59 | - <i class="fa fa-unlock grey"></i> <translate>LABEL.DESBLOQUEAR</translate> | |
60 | - </button> | |
61 | - | |
62 | - <button title="{{$translate.instant('LABEL.REMOVER')}}" alt="{{$translate.instant('LABEL.REMOVER')}}" class="btn btn-clear" ng-click="excluirCaracteristica()" ng-show="material.materialCaracteristicas.length > 0" type="button"> | |
63 | - <i class="fa fa-close red"></i> | |
64 | - <translate>LABEL.REMOVER</translate> </a> | |
65 | - </button> | |
66 | - </div> | |
67 | - <table class="table table-bordered table-striped"> | |
68 | - <thead> | |
69 | - <tr> | |
70 | - <th class="text-center" style="width: 5%;"></th> | |
71 | - <th style="width: 30%;"> | |
72 | - <translate>LABEL.CARACTERISTICA</translate> | |
73 | - </th> | |
74 | - <th style="width: 30%;"> | |
75 | - <translate>LABEL.TIPO</translate> | |
76 | - </th> | |
77 | - <th style="width: 10%;"> | |
78 | - <translate>LABEL.DATA_BLOQUEIO</translate> | |
79 | - </th> | |
80 | - <th style="width: 10%;"> | |
81 | - <translate>LABEL.OBRIGATORIO</translate> | |
82 | - </th> | |
83 | - <th style="width: 10%;"> | |
84 | - <translate>ADMINISTRACAODEMATERIAIS.LABEL.GENERICO</translate> | |
85 | - </th> | |
86 | - </tr> | |
87 | - </thead> | |
88 | - <tbody> | |
89 | - <tr ng-repeat="mat in material.materialCaracteristicas"> | |
90 | - <td class="text-center"> | |
91 | - <input type="radio" name="materialCaracteristicaSelected" ng-checked="mat.$checked" ng-click="checkMaterialCaracteristica(mat)"/> | |
92 | - </td> | |
93 | - <td> | |
94 | - {{mat.caracteristica.descricao}} | |
95 | - </td> | |
96 | - <td> | |
97 | - {{mat.caracteristica.dominioTipoDado.descricao}} | |
98 | - </td> | |
99 | - <td> | |
100 | - {{mat.dataInativo | date : 'dd/MM/yyyy'}} | |
101 | - </td> | |
102 | - <td> | |
103 | - <input type="checkbox" ng-model="mat.obrigatorio" ng-disabled="true"/> | |
104 | - </td> | |
105 | - <td> | |
106 | - <input type="checkbox" ng-model="mat.generico" ng-disabled="true"/> | |
107 | - </td> | |
108 | - </tr> | |
109 | - </tbody> | |
110 | - </table> | |
111 | - | |
112 | - </div> | |
113 | - | |
114 | - </div> | |
115 | - </div><!-- .row --> | |
116 | - </div><!-- .widget-main --> | |
117 | - </div><!-- .widget-body --> | |
118 | -</div><!-- .widget-box --> | |
119 | 0 | \ No newline at end of file |
cit-adm-materiais-web/bin/src/main/webapp/html/material/materialConsumo.html
... | ... | @@ -1,65 +0,0 @@ |
1 | -<div class="widget-box margin-bottom"> | |
2 | - <div class="widget-header"> | |
3 | - <h4 class="widget-title"> | |
4 | - <translate>ADMINISTRACAODEMATERIAIS.LABEL.MATERIAIS_CONSUMO_USADOS_POR_MATERIAL_PERMANENTE</translate> | |
5 | - </h4> | |
6 | - <div class="widget-toolbar"> | |
7 | - <a href="#void" ng-click="widgetMaterialConsumoCollapsed = !widgetMaterialConsumoCollapsed"> | |
8 | - <i class="fa" ng-class="{'fa-chevron-up': !widgetMaterialConsumoCollapsed, 'fa-chevron-down': widgetMaterialConsumoCollapsed}"></i> | |
9 | - </a> | |
10 | - </div> | |
11 | - </div> | |
12 | - | |
13 | - <div collapse="widgetMaterialConsumoCollapsed" class="widget-body"> | |
14 | - <div class="widget-main clearfix"> | |
15 | - <div class="row"> | |
16 | - <div class="col-sm-6"> | |
17 | - <auto-complete ng-find="findMaterialConsumo(value)" ng-item="item.codigoEDescricao" ng-id="materialConsumo.materialConsumo" ng-model="materialConsumo.materialConsumo" ng-disabled="false" ng-hide="isVisualizar"/> | |
18 | - </div> | |
19 | - </div><!-- .row --> | |
20 | - | |
21 | - <div class="row" > | |
22 | - <div class="col-sm-12"> | |
23 | - <div class="panel panel-default"> | |
24 | - <div class="panel-heading clearfix" ng-show="!isVisualizar"> | |
25 | - <button title="{{$translate.instant('LABEL.ADICIONAR')}}" alt="{{$translate.instant('LABEL.ADICIONAR')}}" class="btn btn-clear" ng-click="adicionarMaterialConsumo()" ng-disabled="!materialConsumo.materialConsumo.id" type="button"> | |
26 | - <i class="fa fa-plus-circle yellow-dark"></i> | |
27 | - <translate>LABEL.ADICIONAR</translate> </a> | |
28 | - </button> | |
29 | - | |
30 | - <button title="{{$translate.instant('LABEL.REMOVER')}}" alt="{{$translate.instant('LABEL.REMOVER')}}" class="btn btn-clear" ng-click="apresentarDialogConfirmacaoRemocaoMaterialConsumo()" ng-show="material.materiaisConsumo.length > 0" type="button"> | |
31 | - <i class="fa fa-close red"></i> | |
32 | - <translate>LABEL.REMOVER</translate> </a> | |
33 | - </button> | |
34 | - </div> | |
35 | - <table class="table table-bordered table-striped"> | |
36 | - <thead> | |
37 | - <tr> | |
38 | - <th class="text-center" style="width: 5%;"></th> | |
39 | - <th class="text-center" style="width: 40%;"><translate>LABEL.NOME</translate></th> | |
40 | - <th class="text-center" style="width: 20%;"><translate>LABEL.GRUPO</translate></th> | |
41 | - <th class="text-center" style="width: 20%;"><translate>LABEL.SUB_GRUPO</translate></th> | |
42 | - </tr> | |
43 | - </thead> | |
44 | - <tbody ng-show="material.materiaisConsumo.length < 1"> | |
45 | - <tr> | |
46 | - <td colspan="6" class="text-center"><translate>LABEL.TABLEVAZIA</translate></td> | |
47 | - </tr> | |
48 | - </tbody> | |
49 | - <tbody ng-show="material.materiaisConsumo.length > 0"> | |
50 | - <tr ng-repeat="materialConsumo in material.materiaisConsumo"> | |
51 | - <td class="text-center"> | |
52 | - <input type="radio" name="materialConsumoSelected" ng-checked="materialConsumo.$checked" ng-click="checkMaterialConsumio(materialConsumo)"/> | |
53 | - </td> | |
54 | - <td>{{materialConsumo.materialConsumo.descricao}}</td> | |
55 | - <td>{{materialConsumo.materialConsumo.classificacaoMaterial.descricao}}</td> | |
56 | - <td>{{materialConsumo.materialConsumo.classificacaoMaterial.classificacaoMaterialParent.descricao}}</td> | |
57 | - </tr> | |
58 | - </tbody> | |
59 | - </table> | |
60 | - </div> | |
61 | - </div><!-- .col --> | |
62 | - </div><!-- .row --> | |
63 | - </div><!-- .widgeet-main --> | |
64 | - </div><!-- .widget-body --> | |
65 | -</div><!-- .widget-box --> | |
66 | 0 | \ No newline at end of file |
cit-adm-materiais-web/bin/src/main/webapp/html/material/materialDadosMaterial.html
... | ... | @@ -1,80 +0,0 @@ |
1 | -<fieldset> | |
2 | - <legend class="blue"> | |
3 | - <translate>ADMINISTRACAODEMATERIAIS.LABEL.DADOS_CLASSIFICACAO_MATERIAL</translate> | |
4 | - </legend> | |
5 | - | |
6 | - <div class='row'> | |
7 | - <div class="col-sm-12"> | |
8 | - <auto-complete ng-find="findClassificacaoMaterial(value)" ng-acao-borracha="limparClassificacaoMaterial()" | |
9 | - ng-id="classificacaoMaterial" ng-disabled="!edit" ng-item="item.codigoEDescricao" ng-label="ADMINISTRACAODEMATERIAIS.LABEL.SELECIONE_DETALHE_MATERIAL" | |
10 | - ng-model="classificacaoMaterial" ng-set-result="apresentarDadosMaterial(item)" label-info-tooltip="{{$translate.instant('ADMINISTRACAODEMATERIAIS.MSG.INFO_EDICAO_MATERIAL')}}" > | |
11 | - </auto-complete> | |
12 | - </div> | |
13 | - </div> | |
14 | - <div class='row'> | |
15 | - <div class="col-sm-6"> | |
16 | - <label-input ng-id="materialDadosGrupo" name="materialDadosGrupo" ng-typ="text" ng-obrigatorio='true' ng-label="LABEL.GRUPO" ng-model="materialDadosGrupo" ng-disabled="true"/> | |
17 | - </div> | |
18 | - <div class="col-sm-6"> | |
19 | - <label-input ng-id="materialDadosSubGrupo" name="materialDadosSubGrupo" ng-typ="text" ng-obrigatorio='true' ng-label="LABEL.SUB_GRUPO" ng-model="materialDadosSubGrupo" ng-disabled="true"/> | |
20 | - </div> | |
21 | - </div> | |
22 | - <div class='row'> | |
23 | - <div class="col-sm-6"> | |
24 | - <label-input ng-id="materialDadosMaterial" name="materialDadosMaterial" ng-typ="text" ng-obrigatorio='true' ng-label="LABEL.MATERIAL" ng-model="materialDadosMaterial" ng-disabled="true"/> | |
25 | - </div> | |
26 | - <div class="col-sm-6"> | |
27 | - <label-input ng-id="MaterialDadosDetalhe" name="MaterialDadosDetalhe" ng-typ="text" ng-obrigatorio='true' ng-label="ADMINISTRACAODEMATERIAIS.LABEL.DETALHE" ng-model="MaterialDadosDetalhe" ng-disabled="true"/> | |
28 | - </div> | |
29 | - </div> | |
30 | - | |
31 | -</fieldset> | |
32 | - | |
33 | - | |
34 | -<fieldset> | |
35 | - <legend class="blue"> | |
36 | - <translate>ADMINISTRACAODEMATERIAIS.LABEL.DADOS_MATERIAL</translate> | |
37 | - </legend> | |
38 | - | |
39 | - <div class='row'> | |
40 | - <div class="col-sm-12"> | |
41 | - <div class="col-sm-6"> | |
42 | - <label-input-radio ng-id="material.dominioTipoMaterial.codigo" ng-click="limparDadosMaterial()" ng-label="ADMINISTRACAODEMATERIAIS.LABEL.TIPO_MATERIAL" list="tiposMaterial" ng-model="material.dominioTipoMaterial.codigo" ng-obrigatorio="true" text="descricao" value="codigo" form="materialForm" ng-disabled="material.id"></label-input-radio> | |
43 | - </div> | |
44 | - </div> | |
45 | - <div class="col-sm-4"> | |
46 | - <auto-complete ng-find="findContaContabil(value)" ng-show='material.dominioTipoMaterial.codigo' button-new-show="true" button-new-tooltip="{{$translate.instant('LABEL.CLIQUE_ADD_CONTA')}}" | |
47 | - button-new-action="novaContaContabil();" ng-item="item.codigo + ' / ' + item.descricao" ng-id="material.contaContabil" ng-label="LABEL.CONTA_CONTABIL" ng-model="material.contaContabil" | |
48 | - ng-disabled="material.id" form="materialForm" ng-obrigatorio="true" ng-min-length="1"></auto-complete> | |
49 | - </div> | |
50 | - | |
51 | - <div class="col-sm-2" ng-show="material.dominioTipoMaterial.codigo == 2"> | |
52 | - <div class="form-group no-label"> | |
53 | - <div class="checkbox-inline inline"> | |
54 | - <label> | |
55 | - <input type="checkbox" name="material.emplaquetavel" ng-model="material.emplaquetavel" value="material.emplaquetavel" ng-disabled="isVisualizar"/> | |
56 | - <translate>ADMINISTRACAODEMATERIAIS.LABEL.EMPLAQUETAVEL</translate> | |
57 | - </label> | |
58 | - </div> | |
59 | - </div><!-- .form-group --> | |
60 | - </div> | |
61 | - | |
62 | - <div class="col-sm-6"> | |
63 | - <label-input ng-show='material.dominioTipoMaterial.codigo == 1' ng-id="material.elementoDespesa" name="material.elementoDespesa" ng-typ="text" ng-obrigatorio='false' ng-label="ADMINISTRACAODEMATERIAIS.LABEL.ELEMENTO_DESPESA" ng-model="material.elementoDespesa"/> | |
64 | - </div> | |
65 | - | |
66 | - </div> | |
67 | - | |
68 | - <div class='row'> | |
69 | - | |
70 | - <div class='col-sm-6'> | |
71 | - <label-select ng-show="material.dominioTipoMaterial.codigo == 1" ng-id="material.unidadeArmazenamento.id" ng-model="material.unidadeArmazenamento.id" ng-label="ADMINISTRACAODEMATERIAIS.LABEL.UNIDADE_MEDIDA_ARMAZENAMENTO" | |
72 | - ng-obrigatorio="material.dominioTipoMaterial.codigo == 1" ng-disabled="false" form="materialForm" ng-list="unidadesMedida" ng-custom-options="unidadeMedida.id as unidadeMedida.descricao for unidadeMedida"> </label-select> | |
73 | - | |
74 | - <label-select ng-show="material.dominioTipoMaterial.codigo == 2" ng-id="material.unidadeMedida" ng-model="material.unidadeMedida.id" ng-label="LABEL.UNIDADE_MEDIDA" | |
75 | - ng-obrigatorio="material.dominioTipoMaterial.codigo == 2" ng-disabled="false" form="materialForm" ng-list="unidadesMedida" ng-custom-options="unidadeArmazenamento.id as unidadeArmazenamento.descricao for unidadeArmazenamento"> </label-select> | |
76 | - </div> | |
77 | - | |
78 | - </div> | |
79 | - | |
80 | -</fieldset> | |
81 | 0 | \ No newline at end of file |
cit-adm-materiais-web/bin/src/main/webapp/html/material/materialEdit.html
... | ... | @@ -1,185 +0,0 @@ |
1 | -<div class="page-content clearfix" id="editMaterial" ng-controller="MaterialController" ng-init="init()" novalidate> | |
2 | - <div class="bar-buttons-action fixed"> | |
3 | - <div class="row"> | |
4 | - <div class="col-sm-9 text-left"> | |
5 | - <button title="{{$translate.instant('LABEL.SALVAR')}}" alt="{{$translate.instant('LABEL.SALVAR')}}" class="btn btn-clear" ng-click="saveOrUpdate()" ng-show="edit" type="button"> | |
6 | - <i class="fa fa-save green"></i> <translate>LABEL.SALVAR</translate> | |
7 | - </button> | |
8 | - | |
9 | - <button title="{{$translate.instant('LABEL.LIMPAR')}}" alt="{{$translate.instant('LABEL.LIMPAR')}}" class="btn btn-clear" ng-click="limpar();" ng-show="edit && material.id !== undefined" type="button"> | |
10 | - <i class="fa fa-eraser yellow-dark"></i> <translate>LABEL.LIMPAR</translate> | |
11 | - </button> | |
12 | - | |
13 | - <button title="{{$translate.instant('LABEL.EDITAR')}}" alt="{{$translate.instant('LABEL.EDITAR')}}" class="btn btn-clear" ng-show="!edit" ng-click="edit = true;" type="button"> | |
14 | - <i class="fa fa-pencil blue"></i> | |
15 | - <translate>LABEL.EDITAR</translate> | |
16 | - </button> | |
17 | - | |
18 | - <button title="{{$translate.instant('LABEL.REMOVER')}}" alt="{{$translate.instant('LABEL.REMOVER')}}" class="btn btn-clear" ng-click="apresentarDialogConfirmacaoRemocaoMaterial();" type="button" | |
19 | - ng-show="material.id !== undefined"> | |
20 | - <i class="fa fa-times red"></i> <translate>LABEL.REMOVER</translate> | |
21 | - </button> | |
22 | - | |
23 | - <bloquear-desbloquear ng-model="material" ng-show='material.dominioTipoMaterial.codigo == 1' ng-repository="MaterialConsumoRepository" ng-edit="edit" form="materialForm"></bloquear-desbloquear> | |
24 | - <bloquear-desbloquear ng-model="material" ng-show='material.dominioTipoMaterial.codigo == 2' ng-repository="MaterialPermanenteRepository" ng-edit="edit" form="materialForm"></bloquear-desbloquear> | |
25 | - | |
26 | - <button title="{{$translate.instant('LABEL.PESQUISAR')}}" alt="{{$translate.instant('LABEL.PESQUISAR')}}" class="btn btn-clear" type="button" | |
27 | - ng-click="$showPageSearchWorkspace(workspace); atualizaPaginaPesquisa();"> | |
28 | - <i class="fa fa-search"></i> <translate>LABEL.PESQUISAR</translate> | |
29 | - </button> | |
30 | - </div><!-- .col --> | |
31 | - | |
32 | - <div class="col-sm-3 text-right"> | |
33 | - <favorito/> | |
34 | - | |
35 | - <button title="{{$translate.instant('LABEL.AJUDA')}}" alt="{{$translate.instant('LABEL.AJUDA')}}" class="btn btn-clear" type="button"> | |
36 | - <i class="fa fa-life-ring"></i> | |
37 | - <translate>LABEL.AJUDA</translate> | |
38 | - </button> | |
39 | - </div><!-- .col --> | |
40 | - </div><!-- .row --> | |
41 | - </div><!-- .bar-buttons-action --> | |
42 | - | |
43 | - <breadcrumb ng-workspace="workspace"></breadcrumb> | |
44 | - | |
45 | - <form name="materialForm" novalidate autocomplete="off"> | |
46 | - <div id="containerMaterial"> | |
47 | - <p> | |
48 | - <small>( <span class="red">*</span> ) <translate>LABEL.CAMPOS_OBRIGATORIOS</translate></small> | |
49 | - </p> | |
50 | - | |
51 | - <div class="col-sm-12"> | |
52 | - <div class='row margin-top'> | |
53 | - <div class="col-sm-12"> | |
54 | - <div ng-include src="'/cit-adm-materiais-web/html/material/materialDadosMaterial.html'" /> | |
55 | - </div> | |
56 | - </div> | |
57 | - | |
58 | - <!-- INCLUDE MATERIALDADOSMATERIAL --> | |
59 | - <div class="row"> | |
60 | - <div class="col-sm-12"> | |
61 | - | |
62 | - <div class="row margin-top" ng-show="material.dominioTipoMaterial.codigo == 1"> | |
63 | - <div class="col-sm-12"> | |
64 | - <div ng-include src="'/cit-adm-materiais-web/html/material/materialTipoUnidadeMedidaEntrada.html'" /> | |
65 | - </div> | |
66 | - </div> | |
67 | - | |
68 | - <div class="row"> | |
69 | - <div class="col-sm-12"> | |
70 | - <div ng-include src="'/cit-adm-materiais-web/html/material/materialCaracteristica.html'" /> | |
71 | - </div> | |
72 | - </div> | |
73 | - <!-- INCLUDE MATERIALCARACTERISTICA --> | |
74 | - | |
75 | - <div class="row margin-top" ng-show="material.dominioTipoMaterial.codigo == 2"> | |
76 | - <div class="col-sm-12"> | |
77 | - <div ng-include src="'/cit-adm-materiais-web/html/material/materialConsumo.html'" /> | |
78 | - </div> | |
79 | - </div> | |
80 | - <!-- INCLUDE MATERIALCONSUMO --> | |
81 | - | |
82 | - <div class="widget-box margin-bottom"> | |
83 | - <div class="widget-header"> | |
84 | - <h4 class="widget-title"> | |
85 | - <translate>ADMINISTRACAODEMATERIAIS.LABEL.IMAGENS</translate> | |
86 | - <translate>LABEL.DO</translate> | |
87 | - <translate>LABEL.MATERIAL</translate> | |
88 | - </h4> | |
89 | - <div class="widget-toolbar"> | |
90 | - <a href="#void" ng-click="widgetImagemIsCollapsed = !widgetImagemIsCollapsed"> | |
91 | - <i class="fa" ng-class="{'fa-chevron-up': !widgetImagemIsCollapsed, 'fa-chevron-down': widgetImagemIsCollapsed}"></i> | |
92 | - </a> | |
93 | - </div> | |
94 | - </div> | |
95 | - <div collapse="widgetImagemIsCollapsed" class="widget-body"> | |
96 | - <div class="widget-main clearfix"> | |
97 | - <div class="row" style="padding: 0px 12px 0px 12px !important;"> | |
98 | - <div nv-file-drop="" uploader="uploader" id="actionUploadArquivos" onclick="$('#uploadArquivos').click();"> | |
99 | - <div nv-file-over="" uploader="uploader" over-class="another-file-over-class" class="well my-drop-zone"> | |
100 | - <p><translate>MSG.ARRASTE_SOLTE_ARQUIVO</translate></p> | |
101 | - </div> | |
102 | - </div> | |
103 | - <input id="uploadArquivos" type="file" nv-file-select="" uploader="uploader" multiple ng-show="false" /> | |
104 | - </div> | |
105 | - <div class="row" ng-show="material.materialImagens.length > 0 || uploader.queue.length > 0"> | |
106 | - <div class="col-sm-12"> | |
107 | - <div class="panel panel-default"> | |
108 | - <div class="panel-heading clearfix"> | |
109 | - <button class="btn btn-clear" type="button" ng-if="material.id" ng-disabled="!materialImagemSelecionado.id" ng-click="visualizarImagem(materialImagemSelecionado)"> | |
110 | - <i class="fa fa-search blue"></i> | |
111 | - <translate>LABEL.VISUALIZAR</translate> | |
112 | - </button> | |
113 | - | |
114 | - <a class="btn btn-clear" type="button" ng-if="material.id" ng-disabled="!materialImagemSelecionado.id" href="/cit-adm-materiais-web/rest/materialImagem/downloadImagem?idMaterialImagem={{materialImagemSelecionado.id}}"> | |
115 | - <i class="fa fa-download green"></i> | |
116 | - <translate>LABEL.DOWNLOAD</translate> | |
117 | - </a> | |
118 | - | |
119 | - <button class="btn btn-clear" type="button" ng-hide="!edit" ng-click="removerUploadMaterialImagem(materialImagemSelecionado)"> | |
120 | - <i class="fa fa-times red"></i> | |
121 | - <translate>LABEL.REMOVER</translate> | |
122 | - </button> | |
123 | - </div> | |
124 | - <!-- .panel-heading --> | |
125 | - <table class="table table-striped table-bordered table-hover" > | |
126 | - <thead> | |
127 | - <tr> | |
128 | - <th width="5%" class="text-center"></th> | |
129 | - <th width="50%"><translate>LABEL.NOME</translate></th> | |
130 | - <th ng-show="uploader.isHTML5"><translate>LABEL.TAMANHO</translate></th> | |
131 | - </tr> | |
132 | - </thead> | |
133 | - <tbody> | |
134 | - <tr ng-repeat="item in uploader.queue"> | |
135 | - <td class="text-center"><input type="radio" name="materialImagemChecked" ng-value="item" ng-model="$parent.materialImagemSelecionado" /></td> | |
136 | - <td><strong>{{ item.file.name }}</strong></td> | |
137 | - <td ng-show="uploader.isHTML5" nowrap>{{ item.file.size/1024/1024|number:2 }} MB</td> | |
138 | - </tr> | |
139 | - <tr ng-repeat="materialImagem in material.materialImagens"> | |
140 | - <td class="text-center"><input type="radio" name="materialImagemChecked" ng-value="materialImagem" ng-model="$parent.materialImagemSelecionado" /></td> | |
141 | - <td><strong>{{ materialImagem.descricao }}</strong></td> | |
142 | - <td nowrap >{{ materialImagem.tamanho/1024/1024|number:2 }} MB</td> | |
143 | - </tr> | |
144 | - </tbody> | |
145 | - </table> | |
146 | - </div> | |
147 | - </div> | |
148 | - <!-- .col --> | |
149 | - </div> | |
150 | - | |
151 | - <div class="row" ng-show="uploader.progress > 0 && uploader.progress < 100"> | |
152 | - <div class="col-sm-12"> | |
153 | - <translate>LABEL.PROGRESSO</translate> | |
154 | - <div class="progress" style=""> | |
155 | - <div class="progress-bar" role="progressbar" ng-style="{ 'width': uploader.progress + '%' }"></div> | |
156 | - </div> | |
157 | - </div> | |
158 | - </div> | |
159 | - </div> | |
160 | - </div> | |
161 | - </div> | |
162 | - </div> | |
163 | -<script type="text/ng-template" id="visualizarArquivos"> | |
164 | - <div class="modal-header"> | |
165 | - <button ng-click="$dismiss('cancel');" class="btn btn-clear"> | |
166 | - <i class="fa fa-times red"></i> | |
167 | - Cancelar | |
168 | - </button> | |
169 | - </div><!-- .modal-header --> | |
170 | - | |
171 | - <div class="modal-body"> | |
172 | - <iframe src="{{url}}" allowfullscreen class="iframe-report" /> | |
173 | - </div><!-- .modal-body --> | |
174 | -</script> | |
175 | - <!-- .row --> | |
176 | - </div> | |
177 | - </div> | |
178 | - <!-- .row ng-show --> | |
179 | - | |
180 | - </div><!-- #containerMaterial --> | |
181 | - | |
182 | - <br /> | |
183 | - <br /> | |
184 | - </form> | |
185 | -</div><!-- .page-content --> | |
186 | 0 | \ No newline at end of file |
cit-adm-materiais-web/bin/src/main/webapp/html/material/materialList.html
... | ... | @@ -1,105 +0,0 @@ |
1 | -<div id="searchMaterial" class="page-content" ng-controller="MaterialListController"> | |
2 | - <div class="bar-buttons-action fixed"> | |
3 | - <div class="row"> | |
4 | - <div class="col-sm-8 text-left"> | |
5 | - <button title="{{$translate.instant('LABEL.CADASTRAR')}}" alt="{{$translate.instant('LABEL.CADASTRAR')}}" class="btn btn-clear" type="button" | |
6 | - 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 title="{{$translate.instant('LABEL.VISUALIZAR')}}" alt="{{$translate.instant('LABEL.VISUALIZAR')}}" class="btn btn-clear" type="button" | |
12 | - ng-click="abrirMaterial(false);" ng-show="!mostraArvore"> | |
13 | - <i class="fa fa-search blue"></i> | |
14 | - <translate>LABEL.VISUALIZAR</translate> | |
15 | - </button> | |
16 | - | |
17 | - <button title="{{$translate.instant('LABEL.EDITAR')}}" alt="{{$translate.instant('LABEL.EDITAR')}}" class="btn btn-clear" type="button" | |
18 | - ng-click="abrirMaterial(true);" ng-show="!mostraArvore"> | |
19 | - <i class="fa fa-pencil blue"></i> | |
20 | - <translate>LABEL.EDITAR</translate> | |
21 | - </button> | |
22 | - | |
23 | - <button title="{{$translate.instant('LABEL.REMOVER')}}" alt="{{$translate.instant('LABEL.REMOVER')}}" class="btn btn-clear" ng-click="remove();" type="button" | |
24 | - ng-show="!mostraArvore"> | |
25 | - <i class="fa fa-times red"></i> | |
26 | - <translate>LABEL.REMOVER</translate> | |
27 | - </button> | |
28 | - | |
29 | - <span class="divider-vertical"></span> | |
30 | - | |
31 | - <filtros ng-filter="filterCriteria" ng-workspace="workspace"></filtros> | |
32 | - </div><!-- .col --> | |
33 | - | |
34 | - <div class="col-sm-4 text-right"> | |
35 | - <favorito/> | |
36 | - | |
37 | - <help-button workspace="workspace"></help-button> | |
38 | - | |
39 | - <button ng-show="!mostraArvore" title="{{$translate.instant('LABEL.MOSTRAR_ARVORE')}}" alt="{{$translate.instant('LABEL.MOSTRAR_ARVORE')}}" type="button" | |
40 | - class="btn btn-clear" ng-click="mostrarArvore();" style="width: 110px; padding-right: 10px;"> | |
41 | - <i class="fa fa-align-left yellow"></i> | |
42 | - <translate>LABEL.MOSTRAR_ARVORE</translate> | |
43 | - </button> | |
44 | - | |
45 | - <button ng-show="mostraArvore" title="{{$translate.instant('LABEL.MOSTRAR_LISTA')}}" alt="{{$translate.instant('LABEL.MOSTRAR_LISTA')}}" | |
46 | - class="btn btn-clear" ng-click="mostrarArvore();" style="width: 110px; padding-right: 10px;" type="button"> | |
47 | - <i class="fa fa-list yellow"></i> | |
48 | - <translate>LABEL.MOSTRAR_LISTA</translate> | |
49 | - </button> | |
50 | - </div><!-- .col --> | |
51 | - </div><!-- .row --> | |
52 | - </div><!-- .bar-buttons-action --> | |
53 | - | |
54 | - <breadcrumb ng-workspace="workspace"></breadcrumb> | |
55 | - | |
56 | - <list-view ng-show="!mostraArvore" ng-lista="materiais" ng-repository="MaterialRepository" ng-headers="headers" | |
57 | - ng-filter-criteria="filterCriteria" ng-item-selecionado="materialChecked"></list-view> | |
58 | - | |
59 | - <div ng-id="arvoreMaterial" ng-show="mostraArvore"> | |
60 | - <div class="row"> | |
61 | - <div class="col-sm-6"> | |
62 | - <div class="form-group has-feedback"> | |
63 | - <label class="control-label"><translate>LABEL.PESQUISAR</translate></label> | |
64 | - <input type="text" class="form-control" ng-model="buscaFederalSupply" ng-change="buscarTree(buscaFederalSupply)"> | |
65 | - <span class="glyphicon glyphicon-search form-control-feedback"></span> | |
66 | - </div> | |
67 | - </div> | |
68 | - </div> | |
69 | - | |
70 | - <label class="control-label"><translate>ADMINISTRACAODEMATERIAIS.LABEL.SELECIONE_MATERIAL</translate></label> | |
71 | - | |
72 | - <script type="text/ng-template" id="tree_item_renderer_material.html"> | |
73 | - <div class="tree-node tree-node-content" ng-click="exibirMaterialArvore(classificacaoMaterial)"> | |
74 | - <div class="dd-handle dd2-handle" ng-click="mostrarFilhos(classificacaoMaterial)" ng-show="{{classificacaoMaterial.dominioTipoClassificacaoMaterial.codigo != 4}}"> | |
75 | - <i class="ace-icon fa {{classificacaoMaterial.mostrarFilhos ? 'fa-minus' : 'fa-plus'}} bigger-125"></i> | |
76 | - </div> | |
77 | - <div class="dd2-content" ng-click="mostrarFilhos(classificacaoMaterial)" > | |
78 | - <span class="tree-label text-word-break">{{classificacaoMaterial.codigo}} - {{classificacaoMaterial.descricao}}</span> | |
79 | - <div class="pull-right action-buttons"> | |
80 | - <a href="#void" class="green" ng-click="novoFilho(classificacaoMaterial);" ng-show="{{classificacaoMaterial.dominioTipoClassificacaoMaterial.codigo == 2 || classificacaoMaterial.dominioTipoClassificacaoMaterial.codigo == 3}}"> | |
81 | - <i class="ace-icon fa fa-plus-circle bigger-130"></i> | |
82 | - </a> | |
83 | - </div> | |
84 | - <br> | |
85 | - <a class="btn btn-sm btn-success" title="Salvar" ng-click="salvarClassificacaoMaterialDetalhe(classificacaoMaterial, nomeDetalhe)" ng-show="classificacaoMaterial.addDetalhe"> | |
86 | - <i class="ace-icon fa fa-save"></i> | |
87 | - </a> | |
88 | - </div> | |
89 | - </div> | |
90 | - <ol ng-show="classificacaoMaterial.mostrarFilhos"> | |
91 | - <li class="dd-item dd2-item" ng-repeat="classificacaoMaterial in classificacaoMaterial.classificacaoMaterialFilhos" ng-include="'tree_item_renderer_material.html'" ></li> | |
92 | - </ol> | |
93 | - </script> | |
94 | - | |
95 | - <div class="row"> | |
96 | - <div class="col-sm-12"> | |
97 | - <ol class="list-unstyled"> | |
98 | - <li class="dd-item dd2-item" ng-repeat="classificacaoMaterial in classificacaoMaterialList" ng-include="'tree_item_renderer_material.html'"></li> | |
99 | - </ol> | |
100 | - </div> | |
101 | - </div> | |
102 | - | |
103 | - </div> | |
104 | - | |
105 | -</div><!-- .page-content --> | |
106 | 0 | \ No newline at end of file |
cit-adm-materiais-web/bin/src/main/webapp/html/material/materialTipoUnidadeMedidaEntrada.html
... | ... | @@ -1,68 +0,0 @@ |
1 | - <div class="widget-box margin-bottom"> | |
2 | - <div class="widget-header"> | |
3 | - <h4 class="widget-title"> | |
4 | - <translate>ADMINISTRACAODEMATERIAIS.LABEL.TIPO_UNIDADE_MEDIDA_ENTRADA</translate> <translate>LABEL.DO</translate> <translate>LABEL.MATERIAL</translate> | |
5 | - </h4> | |
6 | - <div class="widget-toolbar"> | |
7 | - <a href="#void" ng-click="widgetTipoUnidadeMedidaEntradaIsCollapsed = !widgetTipoUnidadeMedidaEntradaIsCollapsed"> | |
8 | - <i class="fa" ng-class="{'fa-chevron-up': !widgetTipoUnidadeMedidaEntradaIsCollapsed, 'fa-chevron-down': widgetTipoUnidadeMedidaEntradaIsCollapsed}"></i> | |
9 | - </a> | |
10 | - </div> | |
11 | - </div> | |
12 | - <div collapse="widgetTipoUnidadeMedidaEntradaIsCollapsed" class="widget-body"> | |
13 | - <div class="widget-main clearfix"> | |
14 | - <div class="row"> | |
15 | - <div class="col-sm-4"> | |
16 | - <label-select ng-id="unidadeMedidaEntrada.unidadeMedida" ng-model="unidadeMedidaEntrada.unidadeMedida" ng-label="ADMINISTRACAODEMATERIAIS.LABEL.TIPO_UNIDADE_MEDIDA_ENTRADA" ng-obrigatorio="false" ng-disabled="!edit" form="formMaterial" | |
17 | - ng-list="unidadesMedidaMaterialConsumo" ng-custom-options="unidadeMedidaEntrada as unidadeMedidaEntrada.descricao for unidadeMedidaEntrada" > </label-select> | |
18 | - </div> | |
19 | - </div> | |
20 | - <div class="row"> | |
21 | - <div class="col-sm-12"> | |
22 | - <div class="panel panel-default"> | |
23 | - <div class="panel-heading clearfix"> | |
24 | - <button title="{{$translate.instant('LABEL.ADICIONAR')}}" alt="{{$translate.instant('LABEL.ADICIONAR')}}" class="btn btn-clear" ng-click="adicionarUnidadeMedidaEntrada()" ng-disabled="!unidadeMedidaEntrada.unidadeMedida.id" type="button"> | |
25 | - <i class="fa fa-plus-circle yellow-dark"></i> | |
26 | - <translate>LABEL.ADICIONAR</translate> </a> | |
27 | - </button> | |
28 | - | |
29 | - <button title="{{$translate.instant('LABEL.REMOVER')}}" alt="{{$translate.instant('LABEL.REMOVER')}}" class="btn btn-clear" ng-click="exibirDialogRemocaoUnidadeMedida()" ng-disabled="material.tiposUnidadeMedidaEntrada.length < 1 || !edit" type="button"> | |
30 | - <i class="fa fa-close red"></i> | |
31 | - <translate>LABEL.REMOVER</translate> </a> | |
32 | - </button> | |
33 | - </div> | |
34 | - <table class="table table-bordered table-striped"> | |
35 | - <thead> | |
36 | - <tr> | |
37 | - <th class="text-center" style="width: 5%;"></th> | |
38 | - | |
39 | - <th style="width: 30%;"> | |
40 | - <translate>LABEL.UNIDADE_MEDIDA</translate> | |
41 | - </th> | |
42 | - <th style="width: 30%;"> | |
43 | - <translate>ADMINISTRACAODEMATERIAIS.LABEL.TIPO_NUMERICO</translate> | |
44 | - </th> | |
45 | - </tr> | |
46 | - </thead> | |
47 | - <tbody> | |
48 | - <tr ng-repeat="medidaEntrada in material.tiposUnidadeMedidaEntrada"> | |
49 | - <td class="text-center"> | |
50 | - <input type="radio" name="medidaEntradaSelected" ng-checked="medidaEntrada.$checked" ng-click="checkUnidadeMedidaEntrada(medidaEntrada)" ng-disabled="!edit"/> | |
51 | - </td> | |
52 | - <td> | |
53 | - {{medidaEntrada.unidadeMedida.descricao}} | |
54 | - </td> | |
55 | - <td> | |
56 | - {{medidaEntrada.unidadeMedida.tipoNumerico.descricao}} | |
57 | - </td> | |
58 | - </tr> | |
59 | - </tbody> | |
60 | - </table> | |
61 | - | |
62 | - </div> | |
63 | - | |
64 | - </div> | |
65 | - </div><!-- .row --> | |
66 | - </div><!-- .widget-main --> | |
67 | - </div><!-- .widget-body --> | |
68 | -</div><!-- .widget-box --> | |
69 | 0 | \ No newline at end of file |
cit-adm-materiais-web/bin/src/main/webapp/html/transferenciaContaContabil/transferenciaContaContabil.html
... | ... | @@ -1,2 +0,0 @@ |
1 | -<div ng-include src="'/cit-adm-materiais-web/html/transferenciaContaContabil/transferenciaContaContabilList.html'" ng-show="workspace.$showSearch"></div> | |
2 | -<div ng-include src="'/cit-adm-materiais-web/html/transferenciaContaContabil/transferenciaContaContabilEdit.html'" ng-show="workspace.$showEdit"></div> |
cit-adm-materiais-web/bin/src/main/webapp/html/transferenciaContaContabil/transferenciaContaContabilEdit.html
... | ... | @@ -1,103 +0,0 @@ |
1 | -<div id="editTransferenciaContaContabil" class="page-content clearfix" ng-controller="TransferenciaContaContabilController"> | |
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="transferenciaContaContabil.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-click="$showPageSearchWorkspace(workspace); atualizaPaginaPesquisa();"> | |
15 | - <i class="fa fa-search"></i> <translate>LABEL.PESQUISAR</translate> | |
16 | - </button> | |
17 | - | |
18 | - </div><!-- .col --> | |
19 | - | |
20 | - <div class="col-sm-4 text-right"> | |
21 | - | |
22 | - <favorito/> | |
23 | - | |
24 | - <help-button workspace="workspace" /> | |
25 | - | |
26 | - </div><!-- .col --> | |
27 | - </div><!-- .row --> | |
28 | - </div><!-- .bar-buttons-action --> | |
29 | - | |
30 | - <breadcrumb ng-workspace="workspace"></breadcrumb> | |
31 | - | |
32 | - <form name="transferenciaContaContabilForm"> | |
33 | - <p> | |
34 | - <small>( <span class="red">*</span> ) <translate>LABEL.CAMPOS_OBRIGATORIOS</translate></small> | |
35 | - </p> | |
36 | - | |
37 | - <fieldset> | |
38 | - | |
39 | - <legend><translate>ADMINISTRACAODEMATERIAIS.LABEL.DADOS_TRANSFERENCIACONTACONTABIL</translate></legend> | |
40 | - | |
41 | - <div class="row"> | |
42 | - | |
43 | - <div class="col-md-2"> | |
44 | - <label-input-data ng-id="transferenciaContaContabil.dataTransferencia" ng-label="ADMINISTRACAODEMATERIAIS.LABEL.DATATRANSFERENCIA" ng-model="transferenciaContaContabil.dataTransferencia" | |
45 | - form="transferenciaContaContabilForm" ng-obrigatorio="true" ng-disabled="!edit" ng-mode="day" ng-format="dd/MM/yyyy" /> | |
46 | - </div> | |
47 | - | |
48 | - <div class="col-md-4"> | |
49 | - <label-input-checkbox ng-model="transferenciaContaContabil.almoxarifado" ng-disabled="!edit" ng-label="ADMINISTRACAODEMATERIAIS.LABEL.TRANSFERENCIA_ESTRUTURA" ></label-input-checkbox> | |
50 | - </div> | |
51 | - | |
52 | - <div class="col-md-2" ng-show="transferenciaContaContabil.almoxarifado"> | |
53 | - <label-input-decimal ng-id="transferenciaContaContabil.valorTransferencia" form="transferenciaContaContabilForm" ng-label="ADMINISTRACAODEMATERIAIS.LABEL.VALOR_TRANSFERENCIA" ng-disabled="true" | |
54 | - ng-model="transferenciaContaContabil.valorTransferencia" ng-precision="2" /> | |
55 | - </div> | |
56 | - | |
57 | - </div> | |
58 | - | |
59 | - <div class="row" ng-show="!transferenciaContaContabil.almoxarifado"> | |
60 | - | |
61 | - <div class="col-md-4"> | |
62 | - <auto-complete ng-id="transferenciaContaContabil.material" ng-label="LABEL.MATERIAL" ng-model="transferenciaContaContabil.material" form="transferenciaContaContabilForm" ng-obrigatorio="!transferenciaDeEstrutura" | |
63 | - ng-disabled="!edit" ng-find="findMateriaisByOrganizacao(value)" ng-item="item.codigoEDescricao" ng-set-result="getMaterialTransferencia(item)" ng-acao-borracha="limparCamposMaterial()" /> | |
64 | - </div> | |
65 | - | |
66 | - <div class="col-md-2"> | |
67 | - <label-input ng-id="transferenciaContaContabil.material.dominioTipoMaterial.descricao" form="transferenciaContaContabilForm" ng-label="ADMINISTRACAODEMATERIAIS.LABEL.TIPO_MATERIAL" ng-disabled="true" | |
68 | - ng-model="transferenciaContaContabil.material.dominioTipoMaterial.descricao" ></label-input> | |
69 | - </div> | |
70 | - | |
71 | - <div class="col-md-2"> | |
72 | - <label-input ng-id="transferenciaContaContabil.quantidadeMaterial" form="transferenciaContaContabilForm" ng-label="LABEL.QTD" ng-disabled="true" | |
73 | - ng-model="transferenciaContaContabil.quantidadeMaterial"></label-input> | |
74 | - </div> | |
75 | - | |
76 | - <div class="col-md-2"> | |
77 | - <label-input-decimal ng-id="transferenciaContaContabil.valorTransferencia" form="transferenciaContaContabilForm" ng-label="LABEL.VALOR_AQUISICAO" ng-disabled="true" | |
78 | - ng-model="transferenciaContaContabil.valorTransferencia" ng-precision="2" /> | |
79 | - </div> | |
80 | - | |
81 | - <div class="col-md-2"> | |
82 | - <label-input-decimal ng-if="transferenciaContaContabil.material && transferenciaContaContabil.material.dominioTipoMaterial.codigo == 2" ng-id="transferenciaContaContabil.valorDepreciacaoAcumulada" form="transferenciaContaContabilForm" ng-label="ADMINISTRACAODEMATERIAIS.LABEL.DEPRECIACAO_ACUMULADA" ng-disabled="true" | |
83 | - ng-model="transferenciaContaContabil.valorDepreciacaoAcumulada" ng-precision="2" /> | |
84 | - </div> | |
85 | - | |
86 | - </div> | |
87 | - | |
88 | - <div class="row" > | |
89 | - | |
90 | - <div class="col-md-6"> | |
91 | - <auto-complete ng-id="transferenciaContaContabil.contaOrigem" ng-label="ADMINISTRACAODEMATERIAIS.LABEL.CONTAORIGEM" ng-model="transferenciaContaContabil.contaOrigem" form="transferenciaContaContabilForm" | |
92 | - ng-disabled="true" ng-item="item.codigo + ' / ' + item.descricao" /> | |
93 | - </div> | |
94 | - | |
95 | - <div class="col-md-6"> | |
96 | - <auto-complete ng-id="transferenciaContaContabil.contaDestino" ng-label="ADMINISTRACAODEMATERIAIS.LABEL.CONTADESTINO" ng-model="transferenciaContaContabil.contaDestino" form="transferenciaContaContabilForm" | |
97 | - ng-obrigatorio="true" ng-disabled="!edit" ng-find="findAutoCompleteContaDestino(value)" ng-item="item.codigo + ' / ' + item.descricao" /> | |
98 | - </div> | |
99 | - | |
100 | - </div> | |
101 | - </fieldset> | |
102 | - </form> | |
103 | -</div><!-- .page-content --> | |
104 | 0 | \ No newline at end of file |
cit-adm-materiais-web/bin/src/main/webapp/html/transferenciaContaContabil/transferenciaContaContabilList.html
... | ... | @@ -1,37 +0,0 @@ |
1 | -<div id="searchTransferenciaContaContabil" class="page-content" ng-controller="TransferenciaContaContabilListController"> | |
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 | - <span class="divider-vertical"></span> | |
17 | - | |
18 | - <filtros ng-filter="filterCriteria" ng-workspace="workspace"></filtros> | |
19 | - | |
20 | - </div><!-- .col --> | |
21 | - | |
22 | - <div class="col-sm-4 text-right"> | |
23 | - | |
24 | - <favorito/> | |
25 | - | |
26 | - <help-button workspace="workspace" /> | |
27 | - | |
28 | - </div><!-- .col --> | |
29 | - </div><!-- .row --> | |
30 | - </div><!-- .bar-buttons-action --> | |
31 | - | |
32 | - <breadcrumb ng-workspace="workspace"></breadcrumb> | |
33 | - | |
34 | - <list-view ng-lista="transferenciaContaContabilList" ng-repository="TransferenciaContaContabilRepository" ng-use-custom-remove="false" ng-headers="headers" ng-filter-criteria="filterCriteria" | |
35 | - ng-item-selecionado="transferenciaContaContabilChecked"></list-view> | |
36 | - | |
37 | -</div><!-- .page-content --> |
cit-adm-materiais-web/bin/src/main/webapp/html/unidadeMedida/unidadeMedida.html
cit-adm-materiais-web/bin/src/main/webapp/html/unidadeMedida/unidadeMedidaEdit.html
... | ... | @@ -1,97 +0,0 @@ |
1 | -<div id="editUnidadeMedida" class="page-content clearfix" ng-controller="UnidadeMedidaController"> | |
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="limparUnidadeMedida()" ng-show="unidadeMedida.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(unidadeMedida);" ng-show="unidadeMedida.id !== undefined"> | |
20 | - <i class="fa fa-times red"></i> <translate>LABEL.REMOVER</translate> | |
21 | - </button> | |
22 | - | |
23 | - <bloquear-desbloquear ng-model="unidadeMedida" ng-repository="UnidadeMedidaRepository" ng-edit="edit" form="unidadeMedidaForm"></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="unidadeMedidaForm"> | |
44 | - <p> | |
45 | - <small>( <span class="red">*</span> ) <translate>LABEL.CAMPOS_OBRIGATORIOS</translate></small> | |
46 | - </p> | |
47 | - | |
48 | - <fieldset> | |
49 | - | |
50 | - <legend><translate>ADMINISTRACAODEMATERIAIS.LABEL.DADOS_UNIDADE_MEDIDA</translate></legend> | |
51 | - | |
52 | - <div class="row"> | |
53 | - | |
54 | - <div class="col-md-6"> | |
55 | - | |
56 | - <label-input-number ng-id="unidadeMedida.codigo" ng-label="LABEL.CODIGO" ng-obrigatorio="true" ng-disabled="!edit" form="unidadeMedidaForm" ng-model="unidadeMedida.codigo" ng-custom-maxlength="5"/> | |
57 | - | |
58 | - </div> | |
59 | - | |
60 | - <div class="col-md-6"> | |
61 | - | |
62 | - <label-input ng-id="unidadeMedida.descricao" ng-label="LABEL.DESCRICAO" ng-obrigatorio="true" ng-disabled="!edit" form="unidadeMedidaForm" ng-model="unidadeMedida.descricao" ng-custom-maxlength="100" /> | |
63 | - | |
64 | - </div> | |
65 | - </div> | |
66 | - <div class="row"> | |
67 | - <div class="col-md-4"> | |
68 | - | |
69 | - <label-select ng-id="unidadeMedida.tipoNumerico" ng-label="ADMINISTRACAODEMATERIAIS.LABEL.TIPO_NUMERICO" ng-model="unidadeMedida.tipoNumerico" form="unidadeMedidaForm" ng-obrigatorio="true" ng-disabled="!edit" ng-custom-options="dominio.originalElement as dominio.descricao for dominio" track-by="track by dominio.id" ng-list="tipoNumericoList" /> | |
70 | - | |
71 | - </div> | |
72 | - | |
73 | - <div class="col-md-4"> | |
74 | - | |
75 | - <label-input ng-id="unidadeMedida.sigla" ng-label="LABEL.SIGLA" ng-model="unidadeMedida.sigla" form="unidadeMedidaForm" ng-obrigatorio="true" ng-custom-maxlength="3" ng-type="text" ng-disabled="!edit" /> | |
76 | - | |
77 | - </div> | |
78 | - | |
79 | - <div class="col-md-4"> | |
80 | - | |
81 | - <i tooltip="{{$translate.instant('MSG.ALTERACAO_QUANTIDADE_PADRAO')}}"> | |
82 | - <label-input-number ng-id="unidadeMedida.quantidadePadrao" ng-label="ADMINISTRACAODEMATERIAIS.LABEL.QUANTIDADE_PADRAO" ng-model="unidadeMedida.quantidadePadrao" form="unidadeMedidaForm" ng-obrigatorio="false" ng-custom-maxlength="3" ng-type="text" ng-disabled="unidadeMedida.isUnidadePadrao || !edit"/> | |
83 | - </i> | |
84 | - </div> | |
85 | - | |
86 | - </div> | |
87 | - | |
88 | - </fieldset> | |
89 | - </form> | |
90 | -</div><!-- .page-content --> | |
91 | - | |
92 | - | |
93 | - | |
94 | - | |
95 | - | |
96 | - | |
97 | - |
cit-adm-materiais-web/bin/src/main/webapp/html/unidadeMedida/unidadeMedidaList.html
... | ... | @@ -1,46 +0,0 @@ |
1 | -<div id="searchUnidadeMedida" class="page-content" ng-controller="UnidadeMedidaListController"> | |
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="unidadeMedidaList" ng-repository="UnidadeMedidaRepository" ng-use-custom-remove="false" ng-headers="headers" ng-filter-criteria="filterCriteria" ng-item-selecionado="unidadeMedidaChecked"></list-view> | |
45 | - | |
46 | -</div><!-- .page-content --> |
cit-adm-materiais-web/bin/src/test/resources/entitiesJson/UnidadeMedida.json
cit-adm-materiais-web/bin/target/classes/WEB-INF/jboss-deployment-structure.xml
cit-adm-materiais-web/bin/target/classes/WEB-INF/jboss-web.xml
cit-adm-materiais-web/bin/target/classes/WEB-INF/web.xml
... | ... | @@ -1,112 +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-adm-materiais-web</display-name> | |
7 | - <session-config> | |
8 | - <session-timeout>600</session-timeout> | |
9 | - </session-config> | |
10 | - | |
11 | - <listener> | |
12 | - <listener-class>org.springframework.web.context.request.RequestContextListener</listener-class> | |
13 | - </listener> | |
14 | - <listener> | |
15 | - <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> | |
16 | - </listener> | |
17 | - | |
18 | - <context-param> | |
19 | - <param-name>contextConfigLocation</param-name> | |
20 | - <param-value> | |
21 | - /WEB-INF/classes/spring/applicationContext.xml | |
22 | - </param-value> | |
23 | - </context-param> | |
24 | - | |
25 | - <!-- Configuracoes do properties --> | |
26 | - <context-param> | |
27 | - <param-name>contextInitializerClasses</param-name> | |
28 | - <param-value>br.com.centralit.framework.util.CustomApplicationContextInitializer</param-value> | |
29 | - </context-param> | |
30 | - <context-param> | |
31 | - <param-name>propertiesFile</param-name> | |
32 | - <param-value>classpath:cit-app.properties</param-value> | |
33 | - </context-param> | |
34 | - <context-param> | |
35 | - <param-name>propertiesFileLoadOrder</param-name> | |
36 | - <param-value>FIRST</param-value> | |
37 | - </context-param> | |
38 | - <!-- Este parametro controla a ordem na qual o arquivo de propriedades sera carregado --> | |
39 | - <!-- "FIRST": Os parametros do arquivo de propriedades sao carregados primero que os outros recursos no ambiente (System, JVM, JNDI Parameters). --> | |
40 | - <!-- "LAST": Os parametros do arquivo de propriedades sao carregados por ultimo que os outros recursos no ambiente (System, JVM, JNDI Parameters). --> | |
41 | - <!-- Por padrao o parametro eh "FIRST". --> | |
42 | - | |
43 | - <filter> | |
44 | - <filter-name>openSessionInViewFilter</filter-name> | |
45 | - <filter-class>org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter</filter-class> | |
46 | - </filter> | |
47 | - <filter-mapping> | |
48 | - <filter-name>openSessionInViewFilter</filter-name> | |
49 | - <url-pattern>*.json</url-pattern> | |
50 | - </filter-mapping> | |
51 | - | |
52 | - <filter> | |
53 | - <filter-name>encoding-filter</filter-name> | |
54 | - <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class> | |
55 | - <init-param> | |
56 | - <param-name>encoding</param-name> | |
57 | - <param-value>UTF-8</param-value> | |
58 | - </init-param> | |
59 | - </filter> | |
60 | - <filter-mapping> | |
61 | - <filter-name>encoding-filter</filter-name> | |
62 | - <url-pattern>/*</url-pattern> | |
63 | - </filter-mapping> | |
64 | - | |
65 | - <filter> | |
66 | - <filter-name>CAS Single Sign Out Filter</filter-name> | |
67 | - <filter-class>org.jasig.cas.client.session.SingleSignOutFilter</filter-class> | |
68 | - </filter> | |
69 | - | |
70 | - <filter-mapping> | |
71 | - <filter-name>CAS Single Sign Out Filter</filter-name> | |
72 | - <url-pattern>/*</url-pattern> | |
73 | - </filter-mapping> | |
74 | - | |
75 | - <listener> | |
76 | - <listener-class>org.jasig.cas.client.session.SingleSignOutHttpSessionListener</listener-class> | |
77 | - </listener> | |
78 | - | |
79 | - <filter> | |
80 | - <filter-name>springSecurityFilterChain</filter-name> | |
81 | - <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class> | |
82 | - </filter> | |
83 | - <filter-mapping> | |
84 | - <filter-name>springSecurityFilterChain</filter-name> | |
85 | - <url-pattern>/*</url-pattern> | |
86 | - </filter-mapping> | |
87 | - | |
88 | - <!-- CORS Filter --> | |
89 | - <filter> | |
90 | - <filter-name>cors</filter-name> | |
91 | - <filter-class>br.com.centralit.framework.filter.SimpleCORSFilter</filter-class> | |
92 | - </filter> | |
93 | - | |
94 | - <filter-mapping> | |
95 | - <filter-name>cors</filter-name> | |
96 | - <url-pattern>/*</url-pattern> | |
97 | - </filter-mapping> | |
98 | - | |
99 | - <servlet> | |
100 | - <servlet-name>spring</servlet-name> | |
101 | - <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> | |
102 | - <init-param> | |
103 | - <param-name>contextConfigLocation</param-name> | |
104 | - <param-value></param-value> | |
105 | - </init-param> | |
106 | - </servlet> | |
107 | - <servlet-mapping> | |
108 | - <servlet-name>spring</servlet-name> | |
109 | - <url-pattern>/</url-pattern> | |
110 | - </servlet-mapping> | |
111 | - | |
112 | -</web-app> |
cit-adm-materiais-web/bin/target/classes/log4j.properties
... | ... | @@ -1,22 +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-adm-materiais\\cit-adm-materiais-web\\target/log/cit-adm-materiais-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.engine.internal.StatefulPersistenceContext=ERROR | |
21 | -log4j.logger.org.hibernate=INFO | |
22 | -log4j.logger.org.hibernate.type=trace |
cit-adm-materiais-web/bin/target/classes/reports/logo_ministerio_planejamento.jpg
40.6 KB
cit-adm-materiais-web/bin/target/classes/reports/templatePaisagem.jrxml
... | ... | @@ -1,98 +0,0 @@ |
1 | -<?xml version="1.0" encoding="UTF-8"?> | |
2 | -<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="templatePaisagem" language="groovy" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="AllSectionsNoDetail" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="2a9bde7e-349d-4f0b-b96c-98310606be6f"> | |
3 | - <property name="ireport.zoom" value="1.5"/> | |
4 | - <property name="ireport.x" value="61"/> | |
5 | - <property name="ireport.y" value="0"/> | |
6 | - <parameter name="ORGANIZACAO_ID" class="java.lang.Long" isForPrompting="false"> | |
7 | - <defaultValueExpression><![CDATA[1]]></defaultValueExpression> | |
8 | - </parameter> | |
9 | - <parameter name="SUBREPORT_DIR" class="java.lang.Object" isForPrompting="false"> | |
10 | - <defaultValueExpression><![CDATA[]]></defaultValueExpression> | |
11 | - </parameter> | |
12 | - <parameter name="SUBREPORT_PARAMETERS_MAP" class="java.util.Map" isForPrompting="false"> | |
13 | - <parameterDescription><![CDATA[Parametros do SubReport]]></parameterDescription> | |
14 | - </parameter> | |
15 | - <parameter name="TITULO" class="java.lang.String"/> | |
16 | - <queryString> | |
17 | - <![CDATA[select aImagem.anexo as logo, | |
18 | - (select param.valor from configuracaoparametrosistema param where param.configuracao_id = conf.id and param.chave = 'RELATORIO_PRIMEIRO_TITULO') as titulo1, | |
19 | - (select param.valor from configuracaoparametrosistema param where param.configuracao_id = conf.id and param.chave = 'RELATORIO_SEGUNDO_TITULO') as titulo2, | |
20 | - (select param.valor from configuracaoparametrosistema param where param.configuracao_id = conf.id and param.chave = 'RELATORIO_TERCEIRO_TITULO') as titulo3 | |
21 | -from anexoimagem aImagem right join configuracao conf on aImagem.configuracao_id = conf.id where conf.organizacao_id = $P{ORGANIZACAO_ID};]]> | |
22 | - </queryString> | |
23 | - <field name="titulo1" class="java.lang.String"/> | |
24 | - <field name="titulo2" class="java.lang.String"/> | |
25 | - <field name="titulo3" class="java.lang.String"/> | |
26 | - <field name="logo" class="java.lang.Object"/> | |
27 | - <title> | |
28 | - <band height="130" splitType="Stretch"> | |
29 | - <image> | |
30 | - <reportElement positionType="Float" x="23" y="20" width="85" height="60" uuid="21d967cf-a639-41a7-a0af-62fc1f113936"/> | |
31 | - <imageExpression><![CDATA[new ByteArrayInputStream((byte[])$F{logo})]]></imageExpression> | |
32 | - </image> | |
33 | - <textField isBlankWhenNull="true"> | |
34 | - <reportElement x="108" y="20" width="677" height="20" uuid="4e1c4a55-25b5-42c3-a656-feaaab3ee44c"/> | |
35 | - <box leftPadding="5"/> | |
36 | - <textElement verticalAlignment="Middle"> | |
37 | - <font size="12" isBold="true"/> | |
38 | - </textElement> | |
39 | - <textFieldExpression><![CDATA[$F{titulo1}]]></textFieldExpression> | |
40 | - </textField> | |
41 | - <textField isBlankWhenNull="true"> | |
42 | - <reportElement x="108" y="40" width="677" height="20" uuid="7ce4c085-aea3-4ae6-83ae-0134ef022bd7"/> | |
43 | - <box leftPadding="5"/> | |
44 | - <textElement verticalAlignment="Middle"> | |
45 | - <font size="12" isBold="true"/> | |
46 | - </textElement> | |
47 | - <textFieldExpression><![CDATA[$F{titulo2}]]></textFieldExpression> | |
48 | - </textField> | |
49 | - <textField isBlankWhenNull="true"> | |
50 | - <reportElement x="108" y="60" width="677" height="20" uuid="edd46a21-e588-4e52-8438-c70f2ede5324"/> | |
51 | - <box leftPadding="5"/> | |
52 | - <textElement verticalAlignment="Middle"> | |
53 | - <font size="12" isBold="true"/> | |
54 | - </textElement> | |
55 | - <textFieldExpression><![CDATA[$F{titulo3}]]></textFieldExpression> | |
56 | - </textField> | |
57 | - <textField> | |
58 | - <reportElement x="41" y="99" width="802" height="20" uuid="53427ba1-1676-40f7-8925-170941b8b23c"/> | |
59 | - <textElement textAlignment="Center" verticalAlignment="Middle"> | |
60 | - <font fontName="SansSerif" size="14" isBold="true"/> | |
61 | - </textElement> | |
62 | - <textFieldExpression><![CDATA[$P{TITULO}]]></textFieldExpression> | |
63 | - </textField> | |
64 | - </band> | |
65 | - </title> | |
66 | - <detail> | |
67 | - <band height="53"> | |
68 | - <subreport> | |
69 | - <reportElement positionType="Float" x="0" y="0" width="802" height="53" uuid="f31a4070-ef73-4065-aee8-7cea1e4d1ada"/> | |
70 | - <parametersMapExpression><![CDATA[$P{SUBREPORT_PARAMETERS_MAP}]]></parametersMapExpression> | |
71 | - <connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression> | |
72 | - <subreportExpression><![CDATA[$P{SUBREPORT_DIR}]]></subreportExpression> | |
73 | - </subreport> | |
74 | - </band> | |
75 | - </detail> | |
76 | - <columnFooter> | |
77 | - <band height="50"/> | |
78 | - </columnFooter> | |
79 | - <pageFooter> | |
80 | - <band height="20"> | |
81 | - <textField> | |
82 | - <reportElement x="0" y="0" width="200" height="20" uuid="c02c2f00-5f5e-483f-a708-da077a977923"/> | |
83 | - <textElement textAlignment="Left"/> | |
84 | - <textFieldExpression><![CDATA["Emitido em: " + new java.text.SimpleDateFormat("dd/MM/yyyy HH:mm:ss").format(new Date())]]></textFieldExpression> | |
85 | - </textField> | |
86 | - <textField evaluationTime="Report"> | |
87 | - <reportElement x="765" y="0" width="37" height="20" uuid="fcdba92c-d883-401b-9166-26bb4ff77c28"/> | |
88 | - <textElement textAlignment="Left"/> | |
89 | - <textFieldExpression><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression> | |
90 | - </textField> | |
91 | - <textField> | |
92 | - <reportElement x="543" y="0" width="220" height="20" uuid="43597e29-63ea-4fe8-87b5-147ff1afbabe"/> | |
93 | - <textElement textAlignment="Right"/> | |
94 | - <textFieldExpression><![CDATA["Página "+$V{PAGE_NUMBER}+" de"]]></textFieldExpression> | |
95 | - </textField> | |
96 | - </band> | |
97 | - </pageFooter> | |
98 | -</jasperReport> |
cit-adm-materiais-web/bin/target/classes/reports/templateRetrato.jrxml
... | ... | @@ -1,97 +0,0 @@ |
1 | -<?xml version="1.0" encoding="UTF-8"?> | |
2 | -<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="templateRetrato" language="groovy" pageWidth="595" pageHeight="842" whenNoDataType="AllSectionsNoDetail" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="2a9bde7e-349d-4f0b-b96c-98310606be6f"> | |
3 | - <property name="ireport.zoom" value="2.0"/> | |
4 | - <property name="ireport.x" value="25"/> | |
5 | - <property name="ireport.y" value="66"/> | |
6 | - <parameter name="ORGANIZACAO_ID" class="java.lang.Long"> | |
7 | - <defaultValueExpression><![CDATA[]]></defaultValueExpression> | |
8 | - </parameter> | |
9 | - <parameter name="SUBREPORT_DIR" class="java.lang.Object" isForPrompting="false"> | |
10 | - <defaultValueExpression><![CDATA[]]></defaultValueExpression> | |
11 | - </parameter> | |
12 | - <parameter name="SUBREPORT_PARAMETERS_MAP" class="java.util.Map" isForPrompting="false"> | |
13 | - <parameterDescription><![CDATA[Parametros do SubReport]]></parameterDescription> | |
14 | - </parameter> | |
15 | - <parameter name="TITULO" class="java.lang.String"/> | |
16 | - <queryString> | |
17 | - <![CDATA[select aImagem.anexo as logo, | |
18 | - (select param.valor from configuracaoparametrosistema param where param.configuracao_id = conf.id and param.chave = 'RELATORIO_PRIMEIRO_TITULO') as titulo1, | |
19 | - (select param.valor from configuracaoparametrosistema param where param.configuracao_id = conf.id and param.chave = 'RELATORIO_SEGUNDO_TITULO') as titulo2, | |
20 | - (select param.valor from configuracaoparametrosistema param where param.configuracao_id = conf.id and param.chave = 'RELATORIO_TERCEIRO_TITULO') as titulo3 | |
21 | -from anexoimagem aImagem right join configuracao conf on aImagem.configuracao_id = conf.id where conf.organizacao_id = $P{ORGANIZACAO_ID};]]> | |
22 | - </queryString> | |
23 | - <field name="logo" class="java.lang.Object"/> | |
24 | - <field name="titulo1" class="java.lang.String"/> | |
25 | - <field name="titulo2" class="java.lang.String"/> | |
26 | - <field name="titulo3" class="java.lang.String"/> | |
27 | - <title> | |
28 | - <band height="134" splitType="Stretch"> | |
29 | - <textField isBlankWhenNull="true"> | |
30 | - <reportElement x="102" y="37" width="453" height="20" uuid="8b7353fa-6d6b-4b7d-bd04-2564491beff4"/> | |
31 | - <box leftPadding="5"/> | |
32 | - <textElement verticalAlignment="Middle"> | |
33 | - <font size="12" isBold="true"/> | |
34 | - </textElement> | |
35 | - <textFieldExpression><![CDATA[$F{titulo2}]]></textFieldExpression> | |
36 | - </textField> | |
37 | - <textField isBlankWhenNull="true"> | |
38 | - <reportElement x="102" y="17" width="453" height="20" uuid="0c63ef23-5e35-4c22-81ed-dbd9a2fac964"/> | |
39 | - <box leftPadding="5"/> | |
40 | - <textElement verticalAlignment="Middle"> | |
41 | - <font size="12" isBold="true"/> | |
42 | - </textElement> | |
43 | - <textFieldExpression><![CDATA[$F{titulo1}]]></textFieldExpression> | |
44 | - </textField> | |
45 | - <image isUsingCache="true" onErrorType="Icon"> | |
46 | - <reportElement positionType="Float" x="17" y="17" width="85" height="60" uuid="d161cd66-d9ef-43e9-b70a-3fb2c8b4eba4"/> | |
47 | - <imageExpression><![CDATA[new ByteArrayInputStream((byte[])$F{logo})]]></imageExpression> | |
48 | - </image> | |
49 | - <textField isBlankWhenNull="true"> | |
50 | - <reportElement x="102" y="57" width="453" height="20" uuid="7fc824c8-633f-40d4-8310-4d81780f2834"/> | |
51 | - <box leftPadding="5"/> | |
52 | - <textElement verticalAlignment="Middle"> | |
53 | - <font size="12" isBold="true"/> | |
54 | - </textElement> | |
55 | - <textFieldExpression><![CDATA[$F{titulo3}]]></textFieldExpression> | |
56 | - </textField> | |
57 | - <textField> | |
58 | - <reportElement x="0" y="103" width="555" height="20" uuid="3405a538-3907-4101-97dd-99920d6fc78d"/> | |
59 | - <textElement textAlignment="Center" verticalAlignment="Middle"> | |
60 | - <font fontName="SansSerif" size="14" isBold="true"/> | |
61 | - </textElement> | |
62 | - <textFieldExpression><![CDATA[$P{TITULO}]]></textFieldExpression> | |
63 | - </textField> | |
64 | - </band> | |
65 | - </title> | |
66 | - <detail> | |
67 | - <band height="53"> | |
68 | - <subreport> | |
69 | - <reportElement positionType="Float" x="0" y="0" width="555" height="53" uuid="39aa7cb4-c27a-484a-8e70-8c32a0da7922"/> | |
70 | - <parametersMapExpression><![CDATA[$P{SUBREPORT_PARAMETERS_MAP}]]></parametersMapExpression> | |
71 | - <connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression> | |
72 | - <subreportExpression><![CDATA[$P{SUBREPORT_DIR}]]></subreportExpression> | |
73 | - </subreport> | |
74 | - </band> | |
75 | - </detail> | |
76 | - <columnFooter> | |
77 | - <band height="50"/> | |
78 | - </columnFooter> | |
79 | - <pageFooter> | |
80 | - <band height="50"> | |
81 | - <textField> | |
82 | - <reportElement x="436" y="30" width="80" height="20" uuid="5e321400-e0dd-41c0-9b36-09d2b35badd7"/> | |
83 | - <textElement textAlignment="Right"/> | |
84 | - <textFieldExpression><![CDATA["Página "+$V{PAGE_NUMBER}+" de"]]></textFieldExpression> | |
85 | - </textField> | |
86 | - <textField evaluationTime="Report"> | |
87 | - <reportElement x="518" y="30" width="37" height="20" uuid="af94fb21-5bc2-47cb-a430-9e8535eafd64"/> | |
88 | - <textFieldExpression><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression> | |
89 | - </textField> | |
90 | - <textField> | |
91 | - <reportElement x="0" y="30" width="200" height="20" uuid="73e5cadf-9c22-4a70-8aba-7e98a9f725c7"/> | |
92 | - <textElement textAlignment="Left"/> | |
93 | - <textFieldExpression><![CDATA["Emitido em: " + new java.text.SimpleDateFormat("dd/MM/yyyy HH:mm:ss").format(new Date())]]></textFieldExpression> | |
94 | - </textField> | |
95 | - </band> | |
96 | - </pageFooter> | |
97 | -</jasperReport> |
cit-adm-materiais-web/bin/target/classes/spring/applicationContext.xml
... | ... | @@ -1,37 +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-adm-materiais" /> | |
15 | - </bean> | |
16 | - | |
17 | - <bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean" | |
18 | - p:packagesToScan="br.com.centralit.framework.model, br.com.centralit.api.model" | |
19 | - p:dataSource-ref="citPortalDataSource" | |
20 | - p:jpaPropertyMap-ref="jpaPropertyMap" | |
21 | - p:jpaVendorAdapter-ref="jpaVendorAdapter" /> | |
22 | - | |
23 | - <bean id="jpaVendorAdapter" class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter" /> | |
24 | - | |
25 | - <util:map id="jpaPropertyMap"> | |
26 | - <entry key="generateDdl" value="${hibernate.generate.ddl}" /> | |
27 | - <entry key="hibernate.hbm2ddl.auto" value="${hibernate.hbm2ddl.auto}" /> | |
28 | - <entry key="hibernate.dialect" value="${hibernate.dialect}" /> | |
29 | - <entry key="hibernate.show.sql" value="${hibernate.show.sql}" /> | |
30 | - <entry key="hibernate.format_sql" value="${hibernate.format.sql}" /> | |
31 | - </util:map> | |
32 | - | |
33 | - <import resource="webmvc-context.xml" /> | |
34 | - <import resource="classpath*:spring/applicationContext-base.xml" /> | |
35 | - <import resource="${authentication.method}" /> | |
36 | - | |
37 | -</beans> |
cit-adm-materiais-web/bin/target/classes/spring/security.properties
cit-adm-materiais-web/bin/target/classes/spring/spring-security-cas.xml
... | ... | @@ -1,80 +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:global-method-security pre-post-annotations="enabled" /> | |
12 | - | |
13 | - <security:http auto-config="true" use-expressions="true" entry-point-ref="casProcessingFilterEntryPoint" access-denied-page="/denied.jsp"> | |
14 | - <security:intercept-url pattern="/secure/extreme/**" access="ROLE_ADMIN" requires-channel="https"/> | |
15 | - <security:intercept-url pattern="/rest/inicializarCarga/**" access="permitAll" /> | |
16 | - <security:intercept-url pattern="/rest/**/existeVinculo**" access="permitAll" /> | |
17 | - <security:intercept-url pattern="/**" access="isFullyAuthenticated()" requires-channel="https"/> | |
18 | - <security:logout logout-success-url="/cas-logout.jsp"/> | |
19 | - <security:custom-filter ref="casAuthenticationFilter" after="CAS_FILTER"/> | |
20 | - | |
21 | - <security:session-management session-fixation-protection="newSession"> | |
22 | - <security:concurrency-control max-sessions="1"/> | |
23 | - </security:session-management> | |
24 | - </security:http> | |
25 | - | |
26 | - <security:authentication-manager alias="authenticationManager"> | |
27 | - <security:authentication-provider ref="casAuthenticationProvider"/> | |
28 | - </security:authentication-manager> | |
29 | - | |
30 | - <bean id="casAuthenticationFilter" | |
31 | - class="org.springframework.security.cas.web.CasAuthenticationFilter"> | |
32 | - <property name="authenticationManager" ref="authenticationManager"/> | |
33 | - <property name="authenticationFailureHandler"> | |
34 | - <bean class="org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler"> | |
35 | - <property name="defaultFailureUrl" value="/authfailed.jsp"/> | |
36 | - </bean> | |
37 | - </property> | |
38 | - <property name="authenticationSuccessHandler"> | |
39 | - <bean class="org.springframework.security.web.authentication.SimpleUrlAuthenticationSuccessHandler"> | |
40 | - <property name="defaultTargetUrl" value="/"/> | |
41 | - </bean> | |
42 | - </property> | |
43 | - <property name="proxyGrantingTicketStorage" ref="proxyGrantingTicketStorage"/> | |
44 | - <property name="proxyReceptorUrl" value="/secure/receptor"/> | |
45 | - </bean> | |
46 | - | |
47 | - <bean id="casProcessingFilterEntryPoint" class="org.springframework.security.cas.web.CasAuthenticationEntryPoint"> | |
48 | - <property name="loginUrl" value="${authentication.url}/cas/login"/> | |
49 | - <property name="serviceProperties" ref="serviceProperties"/> | |
50 | - </bean> | |
51 | - | |
52 | - <bean id="casAuthenticationProvider" | |
53 | - class="org.springframework.security.cas.authentication.CasAuthenticationProvider" | |
54 | - p:key="central@123" | |
55 | - p:serviceProperties-ref="serviceProperties" | |
56 | - p:authenticationUserDetailsService-ref="userDetailsService"> | |
57 | - <property name="ticketValidator"> | |
58 | - <bean class="org.jasig.cas.client.validation.Saml11TicketValidator"> | |
59 | - <constructor-arg index="0" value="${authentication.url}/cas"/> | |
60 | - </bean> | |
61 | - </property> | |
62 | - </bean> | |
63 | - | |
64 | - <bean id="proxyGrantingTicketStorage" class="org.jasig.cas.client.proxy.ProxyGrantingTicketStorageImpl"/> | |
65 | - | |
66 | - <bean id="serviceProperties" class="org.springframework.security.cas.ServiceProperties"> | |
67 | - <property name="service" value="${authentication.url}/cit-adm-materiais-web/j_spring_cas_security_check"/> | |
68 | - <property name="sendRenew" value="false"/> | |
69 | - </bean> | |
70 | - | |
71 | - <bean id="userDetailsService" class="br.com.centralit.api.security.GrantedAuthorityFromAssertionAttributesUserDetailsService"> | |
72 | - <constructor-arg> | |
73 | - <list> | |
74 | - <value>authorities</value> | |
75 | - </list> | |
76 | - </constructor-arg> | |
77 | - </bean> | |
78 | - | |
79 | -</beans> | |
80 | - |
cit-adm-materiais-web/bin/target/classes/spring/spring-security-db.xml
... | ... | @@ -1,29 +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="/login" access="permitAll" /> | |
13 | - <security:intercept-url pattern="/j_spring_security_check" access="permitAll" /> | |
14 | - <security:intercept-url pattern="/assets/**" access="permitAll" /> | |
15 | - <security:intercept-url pattern="/**" access="hasRole('ROLE_USER')" /> | |
16 | - | |
17 | - <security:form-login login-page="/login" authentication-failure-url="/login?error=403" default-target-url="/index" /> | |
18 | - | |
19 | - <security:logout invalidate-session="true" logout-success-url="/login" logout-url="/logout" /> | |
20 | - | |
21 | - <security:remember-me key="CentralITSolutions" remember-me-parameter="j_remenberme" /> | |
22 | - </security:http> | |
23 | - | |
24 | - <bean id="customAuthenticationProvider" class="br.com.centralit.api.security.CustomAuthenticationProvider" /> | |
25 | - | |
26 | - <security:authentication-manager> | |
27 | - <security:authentication-provider ref="customAuthenticationProvider" /> | |
28 | - </security:authentication-manager> | |
29 | -</beans> | |
30 | 0 | \ No newline at end of file |
cit-adm-materiais-web/bin/target/classes/spring/spring-security-openam.xml
... | ... | @@ -1,372 +0,0 @@ |
1 | -<?xml version="1.0" encoding="UTF-8" ?> | |
2 | -<!-- | |
3 | - | |
4 | - ********************************************************************************************************************* | |
5 | - * LICENCA*GPLv2 * | |
6 | - * Copyright [2011,2012,2013,2014,2015] da CentralIT Tecnologia da Informação Ltda (www.centralit.com.br) * | |
7 | - * * | |
8 | - * Este arquivo é parte do programa/software: Citsmart (www.citsmart.com.br) * | |
9 | - * * | |
10 | - * O Citsmart é um software livre; você pode redistribui-lo e/ou modificá-lo dentro dos termos da Licença * | |
11 | - * Pública Geral GNU como publicada pela Fundação do Software Livre (FSF); na versção 2 da Licença. * | |
12 | - * * | |
13 | - * Este programa/software é distribuído na esperança que possa ser útil, mas SEM NENHUMA GARANTIA; sem uma * | |
14 | - * garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral * | |
15 | - * GNU/GPL em português para maiores detalhes. * | |
16 | - * * | |
17 | - * Você deve ter recebido uma cópia da Licença Pública Geral GNU, sob o título 'LICENCA.txt', junto com este * | |
18 | - * programa/software, se não, acesse o Portal do Software Público Brasileiro no endereço www.softwarepublico.gov.br * | |
19 | - * ou escreva para a Fundação do Software Livre (FSF) Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301,USA * | |
20 | - ********************************************************************************************************************* | |
21 | - | |
22 | ---> | |
23 | -<beans xmlns="http://www.springframework.org/schema/beans" | |
24 | - xmlns:security="http://www.springframework.org/schema/security" | |
25 | - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
26 | - xmlns:context="http://www.springframework.org/schema/context" | |
27 | - xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd | |
28 | - 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"> | |
29 | - | |
30 | - <!-- Enable auto-wiring --> | |
31 | - <context:annotation-config/> | |
32 | - | |
33 | - <!-- Scan for auto-wiring classes in spring saml packages --> | |
34 | - <context:component-scan base-package="org.springframework.security.saml"/> | |
35 | - | |
36 | - <bean id="filterSecurityInterceptor" class="org.springframework.security.web.access.intercept.FilterSecurityInterceptor"> | |
37 | - <property name="authenticationManager" ref="authenticationManager"></property> | |
38 | - <property name="accessDecisionManager" ref="affirmativeBased"></property> | |
39 | - <property name="securityMetadataSource" ref="optionsFromDataBaseFilterInvocationSecurityMetadataSource"></property> | |
40 | - <property name="validateConfigAttributes" value="true"/> | |
41 | - </bean> | |
42 | - | |
43 | - <bean id="optionsFromDataBaseFilterInvocationSecurityMetadataSource" class="br.com.centralit.api.security.MyFilterSecurityMetadataSource" /> | |
44 | - | |
45 | - <bean id="roleVoter" class="org.springframework.security.access.vote.RoleVoter" /> | |
46 | - | |
47 | - <bean id="affirmativeBased" class='org.springframework.security.access.vote.AffirmativeBased'> | |
48 | - <property name="decisionVoters"> | |
49 | - <list> | |
50 | - <ref bean="roleVoter"/> | |
51 | - </list> | |
52 | - </property> | |
53 | - </bean> | |
54 | - | |
55 | - <!-- Unsecured pages --> | |
56 | - <security:http security="none" pattern="/favicon.ico"/> | |
57 | - <security:http security="none" pattern="/images/**"/> | |
58 | - <security:http security="none" pattern="/css/**"/> | |
59 | - <security:http security="none" pattern="/logout.jsp"/> | |
60 | - <security:http security="none" pattern="/accessDeniedPage.htm"/> | |
61 | - | |
62 | - <security:global-method-security secured-annotations="enabled" /> | |
63 | - | |
64 | - <!-- Security for the administration UI --> | |
65 | - <security:http pattern="/saml/web/**" access-denied-page="/accessDeniedPage.htm"> | |
66 | - <security:form-login login-processing-url="/saml/web/login" login-page="/saml/web/metadata/login" default-target-url="/saml/web/metadata"/> | |
67 | - <security:intercept-url pattern="/saml/web/metadata/login" access="IS_AUTHENTICATED_ANONYMOUSLY"/> | |
68 | - <security:intercept-url pattern="/saml/web/**" access="ROLE_ADMIN"/> | |
69 | - <security:custom-filter before="FIRST" ref="metadataGeneratorFilter"/> | |
70 | - </security:http> | |
71 | - | |
72 | - <!-- Secured pages with SAML as entry point --> | |
73 | - <security:http entry-point-ref="samlEntryPoint" auto-config="true" access-denied-page="/accessDeniedPage.htm"> | |
74 | - <security:intercept-url pattern="/**" access="IS_AUTHENTICATED_FULLY"/> | |
75 | - <security:custom-filter before="FIRST" ref="metadataGeneratorFilter"/> | |
76 | - <security:custom-filter after="BASIC_AUTH_FILTER" ref="samlFilter"/> | |
77 | - </security:http> | |
78 | - | |
79 | - <!-- Filters for processing of SAML messages --> | |
80 | - <bean id="samlFilter" class="org.springframework.security.web.FilterChainProxy"> | |
81 | - <security:filter-chain-map request-matcher="ant"> | |
82 | - <security:filter-chain pattern="/saml/login/**" filters="samlEntryPoint"/> | |
83 | - <security:filter-chain pattern="/saml/logout/**" filters="samlLogoutFilter"/> | |
84 | - <security:filter-chain pattern="/saml/metadata/**" filters="metadataDisplayFilter"/> | |
85 | - <security:filter-chain pattern="/saml/SSO/**" filters="samlWebSSOProcessingFilter"/> | |
86 | - <security:filter-chain pattern="/saml/SSOHoK/**" filters="samlWebSSOHoKProcessingFilter"/> | |
87 | - <security:filter-chain pattern="/saml/SingleLogout/**" filters="samlLogoutProcessingFilter"/> | |
88 | - <security:filter-chain pattern="/saml/discovery/**" filters="samlIDPDiscovery"/> | |
89 | - <security:filter-chain pattern="/html/**" filters="filterSecurityInterceptor"/> | |
90 | - </security:filter-chain-map> | |
91 | - </bean> | |
92 | - | |
93 | - <!-- Handler deciding where to redirect user after successful login --> | |
94 | - <bean id="successRedirectHandler" class="org.springframework.security.web.authentication.SavedRequestAwareAuthenticationSuccessHandler"> | |
95 | - <property name="defaultTargetUrl" value="/"/> | |
96 | - </bean> | |
97 | - <!-- | |
98 | - Use the following for interpreting RelayState coming from unsolicited response as redirect URL: | |
99 | - <bean id="successRedirectHandler" class="org.springframework.security.saml.SAMLRelayStateSuccessHandler"> | |
100 | - <property name="defaultTargetUrl" value="/" /> | |
101 | - </bean> | |
102 | - --> | |
103 | - | |
104 | - <!-- Handler deciding where to redirect user after failed login --> | |
105 | - <bean id="failureRedirectHandler" | |
106 | - class="org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler"> | |
107 | - <property name="useForward" value="true"/> | |
108 | - <property name="defaultFailureUrl" value="/error.jsp"/> | |
109 | - </bean> | |
110 | - | |
111 | - <!-- Handler for successful logout --> | |
112 | - <bean id="successLogoutHandler" class="org.springframework.security.web.authentication.logout.SimpleUrlLogoutSuccessHandler"> | |
113 | - <property name="defaultTargetUrl" value="/logout.jsp"/> | |
114 | - </bean> | |
115 | - | |
116 | - <security:authentication-manager alias="authenticationManager"> | |
117 | - <!-- Register authentication manager for SAML provider --> | |
118 | - <security:authentication-provider ref="samlAuthenticationProvider"/> | |
119 | - <!-- Register authentication manager for administration UI --> | |
120 | - <security:authentication-provider> | |
121 | - <security:user-service id="adminInterfaceService"> | |
122 | - <security:user name="admin" password="admin" authorities="ROLE_ADMIN"/> | |
123 | - </security:user-service> | |
124 | - </security:authentication-provider> | |
125 | - </security:authentication-manager> | |
126 | - | |
127 | - <!-- Logger for SAML messages and events --> | |
128 | - <bean id="samlLogger" class="org.springframework.security.saml.log.SAMLDefaultLogger"/> | |
129 | - | |
130 | - <!-- Central storage of cryptographic keys --> | |
131 | - <bean id="keyManager" class="org.springframework.security.saml.key.JKSKeyManager"> | |
132 | - <constructor-arg value="classpath:security/samlKeystore.jks"/> | |
133 | - <constructor-arg type="java.lang.String" value="nalle123"/> | |
134 | - <constructor-arg> | |
135 | - <map> | |
136 | - <entry key="apollo" value="nalle123"/> | |
137 | - </map> | |
138 | - </constructor-arg> | |
139 | - <constructor-arg type="java.lang.String" value="apollo"/> | |
140 | - </bean> | |
141 | - | |
142 | - <!-- Entry point to initialize authentication, default values taken from properties file --> | |
143 | - <bean id="samlEntryPoint" class="org.springframework.security.saml.SAMLEntryPoint"> | |
144 | - <property name="defaultProfileOptions"> | |
145 | - <bean class="org.springframework.security.saml.websso.WebSSOProfileOptions"> | |
146 | - <property name="binding" value="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"/> | |
147 | - <property name="includeScoping" value="true"/> | |
148 | - </bean> | |
149 | - </property> | |
150 | - </bean> | |
151 | - | |
152 | - <!-- IDP Discovery Service --> | |
153 | - <bean id="samlIDPDiscovery" class="org.springframework.security.saml.SAMLDiscovery"> | |
154 | - <property name="idpSelectionPath" value="/WEB-INF/security/idpSelection.jsp"/> | |
155 | - </bean> | |
156 | - | |
157 | - <!-- Filter automatically generates default SP metadata --> | |
158 | - <bean id="metadataGeneratorFilter" class="org.springframework.security.saml.metadata.MetadataGeneratorFilter"> | |
159 | - <constructor-arg> | |
160 | - <bean class="org.springframework.security.saml.metadata.MetadataGenerator"> | |
161 | - <property name="entityId" value="grp.com"/> | |
162 | - </bean> | |
163 | - </constructor-arg> | |
164 | - </bean> | |
165 | - | |
166 | - <!-- bean id="metadataGeneratorFilter" class="org.springframework.security.saml.metadata.MetadataGeneratorFilter"> | |
167 | - <constructor-arg> | |
168 | - <bean class="org.springframework.security.saml.metadata.MetadataGenerator"> | |
169 | - <property name="extendedMetadata"> | |
170 | - <bean class="org.springframework.security.saml.metadata.ExtendedMetadata"> | |
171 | - <property name="entityId" value="teste"/> | |
172 | - <property name="idpDiscoveryEnabled" value="true"/> | |
173 | - </bean> | |
174 | - </property> | |
175 | - </bean> | |
176 | - </constructor-arg> | |
177 | - </bean --> | |
178 | - | |
179 | - <!-- The filter is waiting for connections on URL suffixed with filterSuffix and presents SP metadata there --> | |
180 | - <bean id="metadataDisplayFilter" class="org.springframework.security.saml.metadata.MetadataDisplayFilter"/> | |
181 | - | |
182 | - <!-- IDP Metadata configuration - paths to metadata of IDPs in circle of trust is here --> | |
183 | - <bean id="metadata" class="org.springframework.security.saml.metadata.CachingMetadataManager"> | |
184 | - <constructor-arg> | |
185 | - <list> | |
186 | - <!-- Example of classpath metadata with Extended Metadata --> | |
187 | - <bean class="org.springframework.security.saml.metadata.ExtendedMetadataDelegate"> | |
188 | - <constructor-arg> | |
189 | - <bean class="org.opensaml.saml2.metadata.provider.ResourceBackedMetadataProvider"> | |
190 | - <constructor-arg> | |
191 | - <bean class="java.util.Timer"/> | |
192 | - </constructor-arg> | |
193 | - <constructor-arg> | |
194 | - <bean class="org.opensaml.util.resource.ClasspathResource"> | |
195 | - <constructor-arg value="/metadata/idp.xml"/> | |
196 | - </bean> | |
197 | - </constructor-arg> | |
198 | - <property name="parserPool" ref="parserPool"/> | |
199 | - </bean> | |
200 | - </constructor-arg> | |
201 | - <constructor-arg> | |
202 | - <bean class="org.springframework.security.saml.metadata.ExtendedMetadata"> | |
203 | - </bean> | |
204 | - </constructor-arg> | |
205 | - </bean> | |
206 | - <!-- Example of HTTP metadata without Extended Metadata --> | |
207 | - <bean class="org.opensaml.saml2.metadata.provider.HTTPMetadataProvider"> | |
208 | - <!-- URL containing the metadata --> | |
209 | - <constructor-arg> | |
210 | - <value type="java.lang.String">http://iam.cit.local:8080/openam/saml2/jsp/exportmetadata.jsp?realm=grp</value> | |
211 | - </constructor-arg> | |
212 | - <!-- Timeout for metadata loading in ms --> | |
213 | - <constructor-arg> | |
214 | - <value type="int">15000</value> | |
215 | - </constructor-arg> | |
216 | - <property name="parserPool" ref="parserPool"/> | |
217 | - </bean> | |
218 | - <!-- Example of file system metadata without Extended Metadata --> | |
219 | - <!-- | |
220 | - <bean class="org.opensaml.saml2.metadata.provider.FilesystemMetadataProvider"> | |
221 | - <constructor-arg> | |
222 | - <value type="java.io.File">/usr/local/metadata/idp.xml</value> | |
223 | - </constructor-arg> | |
224 | - <property name="parserPool" ref="parserPool"/> | |
225 | - </bean> | |
226 | - --> | |
227 | - </list> | |
228 | - </constructor-arg> | |
229 | - <!-- OPTIONAL used when one of the metadata files contains information about this service provider --> | |
230 | - <!-- <property name="hostedSPName" value=""/> --> | |
231 | - <!-- OPTIONAL property: can tell the system which IDP should be used for authenticating user by default. --> | |
232 | - <!-- <property name="defaultIDP" value="http://localhost:8080/opensso"/> --> | |
233 | - </bean> | |
234 | - | |
235 | - <!-- SAML Authentication Provider responsible for validating of received SAML messages --> | |
236 | - <bean id="samlAuthenticationProvider" class="org.springframework.security.saml.SAMLAuthenticationProvider"> | |
237 | - <!-- OPTIONAL property: can be used to store/load user data after login --> | |
238 | - <!-- | |
239 | - <property name="userDetails" ref="bean" /> | |
240 | - --> | |
241 | - <property name="userDetails" ref="samlUserDetailsServiceBean" /> | |
242 | - </bean> | |
243 | - | |
244 | - <bean id="samlUserDetailsServiceBean" class="br.com.centralit.api.security.SAMLUserDetailsServiceImpl" /> | |
245 | - | |
246 | - <!-- Provider of default SAML Context --> | |
247 | - <bean id="contextProvider" class="org.springframework.security.saml.context.SAMLContextProviderImpl"/> | |
248 | - | |
249 | - <!-- Processing filter for WebSSO profile messages --> | |
250 | - <bean id="samlWebSSOProcessingFilter" class="org.springframework.security.saml.SAMLProcessingFilter"> | |
251 | - <property name="authenticationManager" ref="authenticationManager"/> | |
252 | - <property name="authenticationSuccessHandler" ref="successRedirectHandler"/> | |
253 | - <property name="authenticationFailureHandler" ref="failureRedirectHandler"/> | |
254 | - </bean> | |
255 | - | |
256 | - <!-- Processing filter for WebSSO Holder-of-Key profile --> | |
257 | - <bean id="samlWebSSOHoKProcessingFilter" class="org.springframework.security.saml.SAMLWebSSOHoKProcessingFilter"> | |
258 | - <property name="authenticationManager" ref="authenticationManager"/> | |
259 | - <property name="authenticationSuccessHandler" ref="successRedirectHandler"/> | |
260 | - <property name="authenticationFailureHandler" ref="failureRedirectHandler"/> | |
261 | - </bean> | |
262 | - | |
263 | - <!-- Logout handler terminating local session --> | |
264 | - <bean id="logoutHandler" | |
265 | - class="org.springframework.security.web.authentication.logout.SecurityContextLogoutHandler"> | |
266 | - <property name="invalidateHttpSession" value="false"/> | |
267 | - </bean> | |
268 | - | |
269 | - <!-- Override default logout processing filter with the one processing SAML messages --> | |
270 | - <bean id="samlLogoutFilter" class="org.springframework.security.saml.SAMLLogoutFilter"> | |
271 | - <constructor-arg index="0" ref="successLogoutHandler"/> | |
272 | - <constructor-arg index="1" ref="logoutHandler"/> | |
273 | - <constructor-arg index="2" ref="logoutHandler"/> | |
274 | - </bean> | |
275 | - | |
276 | - <!-- Filter processing incoming logout messages --> | |
277 | - <!-- First argument determines URL user will be redirected to after successful global logout --> | |
278 | - <bean id="samlLogoutProcessingFilter" class="org.springframework.security.saml.SAMLLogoutProcessingFilter"> | |
279 | - <constructor-arg index="0" ref="successLogoutHandler"/> | |
280 | - <constructor-arg index="1" ref="logoutHandler"/> | |
281 | - </bean> | |
282 | - | |
283 | - <!-- Class loading incoming SAML messages from httpRequest stream --> | |
284 | - <bean id="processor" class="org.springframework.security.saml.processor.SAMLProcessorImpl"> | |
285 | - <constructor-arg> | |
286 | - <list> | |
287 | - <ref bean="redirectBinding"/> | |
288 | - <ref bean="postBinding"/> | |
289 | - <ref bean="artifactBinding"/> | |
290 | - <ref bean="soapBinding"/> | |
291 | - <ref bean="paosBinding"/> | |
292 | - </list> | |
293 | - </constructor-arg> | |
294 | - </bean> | |
295 | - | |
296 | - <!-- SAML 2.0 WebSSO Assertion Consumer --> | |
297 | - <bean id="webSSOprofileConsumer" class="org.springframework.security.saml.websso.WebSSOProfileConsumerImpl"> | |
298 | - <property name="responseSkew" value="500"></property> | |
299 | - </bean> | |
300 | - | |
301 | - <!-- SAML 2.0 Holder-of-Key WebSSO Assertion Consumer --> | |
302 | - <bean id="hokWebSSOprofileConsumer" class="org.springframework.security.saml.websso.WebSSOProfileConsumerHoKImpl"/> | |
303 | - | |
304 | - <!-- SAML 2.0 Web SSO profile --> | |
305 | - <bean id="webSSOprofile" class="org.springframework.security.saml.websso.WebSSOProfileImpl"/> | |
306 | - | |
307 | - <!-- SAML 2.0 Holder-of-Key Web SSO profile --> | |
308 | - <bean id="hokWebSSOProfile" class="org.springframework.security.saml.websso.WebSSOProfileConsumerHoKImpl"/> | |
309 | - | |
310 | - <!-- SAML 2.0 ECP profile --> | |
311 | - <bean id="ecpprofile" class="org.springframework.security.saml.websso.WebSSOProfileECPImpl"/> | |
312 | - | |
313 | - <!-- SAML 2.0 Logout Profile --> | |
314 | - <bean id="logoutprofile" class="org.springframework.security.saml.websso.SingleLogoutProfileImpl"/> | |
315 | - | |
316 | - <!-- Bindings, encoders and decoders used for creating and parsing messages --> | |
317 | - <bean id="postBinding" class="org.springframework.security.saml.processor.HTTPPostBinding"> | |
318 | - <constructor-arg ref="parserPool"/> | |
319 | - <constructor-arg ref="velocityEngine"/> | |
320 | - </bean> | |
321 | - | |
322 | - <bean id="redirectBinding" class="org.springframework.security.saml.processor.HTTPRedirectDeflateBinding"> | |
323 | - <constructor-arg ref="parserPool"/> | |
324 | - </bean> | |
325 | - | |
326 | - <bean id="artifactBinding" class="org.springframework.security.saml.processor.HTTPArtifactBinding"> | |
327 | - <constructor-arg ref="parserPool"/> | |
328 | - <constructor-arg ref="velocityEngine"/> | |
329 | - <constructor-arg> | |
330 | - <bean class="org.springframework.security.saml.websso.ArtifactResolutionProfileImpl"> | |
331 | - <constructor-arg> | |
332 | - <bean class="org.apache.commons.httpclient.HttpClient"> | |
333 | - <constructor-arg> | |
334 | - <bean class="org.apache.commons.httpclient.MultiThreadedHttpConnectionManager"/> | |
335 | - </constructor-arg> | |
336 | - </bean> | |
337 | - </constructor-arg> | |
338 | - <property name="processor"> | |
339 | - <bean class="org.springframework.security.saml.processor.SAMLProcessorImpl"> | |
340 | - <constructor-arg ref="soapBinding"/> | |
341 | - </bean> | |
342 | - </property> | |
343 | - </bean> | |
344 | - </constructor-arg> | |
345 | - </bean> | |
346 | - | |
347 | - <bean id="soapBinding" class="org.springframework.security.saml.processor.HTTPSOAP11Binding"> | |
348 | - <constructor-arg ref="parserPool"/> | |
349 | - </bean> | |
350 | - | |
351 | - <bean id="paosBinding" class="org.springframework.security.saml.processor.HTTPPAOS11Binding"> | |
352 | - <constructor-arg ref="parserPool"/> | |
353 | - </bean> | |
354 | - | |
355 | - <!-- Initialization of OpenSAML library--> | |
356 | - <bean class="org.springframework.security.saml.SAMLBootstrap"/> | |
357 | - | |
358 | - <!-- Initialization of the velocity engine --> | |
359 | - <bean id="velocityEngine" class="org.springframework.security.saml.util.VelocityFactory" factory-method="getEngine"/> | |
360 | - | |
361 | - <!-- XML parser pool needed for OpenSAML parsing --> | |
362 | - <bean id="parserPool" class="org.opensaml.xml.parse.StaticBasicParserPool" init-method="initialize"> | |
363 | - <property name="builderFeatures"> | |
364 | - <map> | |
365 | - <entry key="http://apache.org/xml/features/dom/defer-node-expansion" value="false"/> | |
366 | - </map> | |
367 | - </property> | |
368 | - </bean> | |
369 | - | |
370 | - <bean id="parserPoolHolder" class="org.springframework.security.saml.parser.ParserPoolHolder"/> | |
371 | - | |
372 | -</beans> |
cit-adm-materiais-web/bin/target/classes/spring/webmvc-context.xml
... | ... | @@ -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-adm-materiais-web/bin/target/m2e-wtp/web-resources/META-INF/MANIFEST.MF
cit-adm-materiais-web/bin/target/m2e-wtp/web-resources/META-INF/maven/br.com.centralit/cit-adm-materiais-web/pom.properties
... | ... | @@ -1,7 +0,0 @@ |
1 | -#Generated by Maven Integration for Eclipse | |
2 | -#Thu Mar 17 13:11:45 BRT 2016 | |
3 | -version=1.8.0-SNAPSHOT | |
4 | -groupId=br.com.centralit | |
5 | -m2e.projectName=cit-adm-materiais-web | |
6 | -m2e.projectLocation=D\:\\repositorios_git\\citsmartgrp\\cit-adm-materiais\\cit-adm-materiais-web | |
7 | -artifactId=cit-adm-materiais-web |
cit-adm-materiais-web/bin/target/m2e-wtp/web-resources/META-INF/maven/br.com.centralit/cit-adm-materiais-web/pom.xml
... | ... | @@ -1,48 +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 xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
20 | - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
21 | - <modelVersion>4.0.0</modelVersion> | |
22 | - | |
23 | - <parent> | |
24 | - <groupId>br.com.centralit</groupId> | |
25 | - <artifactId>cit-adm-materiais</artifactId> | |
26 | - <version>1.8.0-SNAPSHOT</version> | |
27 | - </parent> | |
28 | - | |
29 | - <artifactId>cit-adm-materiais-web</artifactId> | |
30 | - <packaging>war</packaging> | |
31 | - <name>cit-adm-materiais-web</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 | - <minify-maven-plugin.phase>prepare-package</minify-maven-plugin.phase> | |
38 | - </properties> | |
39 | - | |
40 | - <dependencies> | |
41 | - <dependency> | |
42 | - <groupId>br.com.centralit</groupId> | |
43 | - <artifactId>cit-adm-materiais-api</artifactId> | |
44 | - <version>${project.version}</version> | |
45 | - </dependency> | |
46 | - </dependencies> | |
47 | - | |
48 | -</project> |
cit-adm-materiais-web/bin/target/test-classes/entitiesJson/UnidadeMedida.json