commit 2ae2d26441158a95b639a23751ce99bd59259bf7 Author: oscar Date: Fri May 10 07:59:03 2024 -0600 Todo diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ae6dd5f --- /dev/null +++ b/.gitignore @@ -0,0 +1,9 @@ +/nbproject/private/ +/ProyectoInventario-war/nbproject/private/ +/ProyectoInventario-ejb/nbproject/private/ +/ProyectoInventario-ejb/build/ +/ProyectoInventario-war/build/ +/build/ +/ProyectoInventario-war/dist/ +/ProyectoInventario-ejb/dist/ +/dist/ diff --git a/Almacen.sql b/Almacen.sql new file mode 100644 index 0000000..e09026c --- /dev/null +++ b/Almacen.sql @@ -0,0 +1,190 @@ +-- MySQL Script generated by MySQL Workbench +-- Sat Apr 27 12:23:20 2024 +-- Model: New Model Version: 1.0 +-- MySQL Workbench Forward Engineering + +SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; +SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; +SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION'; + +-- ----------------------------------------------------- +-- Schema inventarioalmacen +-- ----------------------------------------------------- + +-- ----------------------------------------------------- +-- Schema inventarioalmacen +-- ----------------------------------------------------- +CREATE SCHEMA IF NOT EXISTS `inventarioalmacen` DEFAULT CHARACTER SET utf8 ; +USE `inventarioalmacen` ; + +-- ----------------------------------------------------- +-- Table `inventarioalmacen`.`marca` +-- ----------------------------------------------------- +CREATE TABLE IF NOT EXISTS `inventarioalmacen`.`marca` ( + `id` INT NOT NULL AUTO_INCREMENT, + `nombre` VARCHAR(100) NOT NULL, + `estado` INT NOT NULL, + PRIMARY KEY (`id`)) +ENGINE = InnoDB; + + +-- ----------------------------------------------------- +-- Table `inventarioalmacen`.`paises` +-- ----------------------------------------------------- +CREATE TABLE IF NOT EXISTS `inventarioalmacen`.`paises` ( + `id` INT NOT NULL AUTO_INCREMENT, + `nombre` VARCHAR(100) NOT NULL, + `estado` INT NOT NULL, + PRIMARY KEY (`id`)) +ENGINE = InnoDB; + + +-- ----------------------------------------------------- +-- Table `inventarioalmacen`.`estados` +-- ----------------------------------------------------- +CREATE TABLE IF NOT EXISTS `inventarioalmacen`.`estados` ( + `id` INT NOT NULL AUTO_INCREMENT, + `nombre` VARCHAR(45) NOT NULL, + `estado` INT NOT NULL, + `paises_id` INT NOT NULL, + PRIMARY KEY (`id`), + INDEX `fk_estados_paises1_idx` (`paises_id` ASC) VISIBLE, + CONSTRAINT `fk_estados_paises1` + FOREIGN KEY (`paises_id`) + REFERENCES `inventarioalmacen`.`paises` (`id`) + ON DELETE NO ACTION + ON UPDATE NO ACTION) +ENGINE = InnoDB; + + +-- ----------------------------------------------------- +-- Table `inventarioalmacen`.`proveedor` +-- ----------------------------------------------------- +CREATE TABLE IF NOT EXISTS `inventarioalmacen`.`proveedor` ( + `id` INT NOT NULL AUTO_INCREMENT, + `nombre` VARCHAR(100) NOT NULL, + `telefono` VARCHAR(10) NOT NULL, + `email` VARCHAR(100) NOT NULL, + `estado` INT NOT NULL, + `domicilio` VARCHAR(100) NOT NULL, + `estados_id` INT NOT NULL, + `marca_id` INT NOT NULL, + PRIMARY KEY (`id`), + INDEX `fk_proveedor_estados1_idx` (`estados_id` ASC) VISIBLE, + INDEX `fk_proveedor_marca1_idx` (`marca_id` ASC) VISIBLE, + CONSTRAINT `fk_proveedor_estados1` + FOREIGN KEY (`estados_id`) + REFERENCES `inventarioalmacen`.`estados` (`id`) + ON DELETE NO ACTION + ON UPDATE NO ACTION, + CONSTRAINT `fk_proveedor_marca1` + FOREIGN KEY (`marca_id`) + REFERENCES `inventarioalmacen`.`marca` (`id`) + ON DELETE NO ACTION + ON UPDATE NO ACTION) +ENGINE = InnoDB; + + +-- ----------------------------------------------------- +-- Table `inventarioalmacen`.`ubicacion` +-- ----------------------------------------------------- +CREATE TABLE IF NOT EXISTS `inventarioalmacen`.`ubicacion` ( + `id` INT NOT NULL AUTO_INCREMENT, + `bloque` VARCHAR(1) NOT NULL, + `anaquel` INT NOT NULL, + `estado` INT NOT NULL, + PRIMARY KEY (`id`)) +ENGINE = InnoDB; + + +-- ----------------------------------------------------- +-- Table `inventarioalmacen`.`tipo` +-- ----------------------------------------------------- +CREATE TABLE IF NOT EXISTS `inventarioalmacen`.`tipo` ( + `id` INT NOT NULL AUTO_INCREMENT, + `tipo` VARCHAR(45) NOT NULL, + `estado` INT NOT NULL, + PRIMARY KEY (`id`)) +ENGINE = InnoDB; + + +-- ----------------------------------------------------- +-- Table `inventarioalmacen`.`producto` +-- ----------------------------------------------------- +CREATE TABLE IF NOT EXISTS `inventarioalmacen`.`producto` ( + `id` INT NOT NULL AUTO_INCREMENT, + `nombre` VARCHAR(100) NOT NULL, + `codigo` INT ZEROFILL NOT NULL, + `precio` FLOAT NOT NULL, + `piezas` INT NOT NULL, + `estado` INT NOT NULL, + `fecha` DATE NOT NULL, + `proveedor_idproveedor` INT NOT NULL, + `ubicacion_id` INT NOT NULL, + `tipo_id` INT NOT NULL, + PRIMARY KEY (`id`), + INDEX `fk_producto_proveedor1_idx` (`proveedor_idproveedor` ASC) VISIBLE, + INDEX `fk_producto_ubicacion1_idx` (`ubicacion_id` ASC) VISIBLE, + INDEX `fk_producto_tipo1_idx` (`tipo_id` ASC) VISIBLE, + CONSTRAINT `fk_producto_proveedor1` + FOREIGN KEY (`proveedor_idproveedor`) + REFERENCES `inventarioalmacen`.`proveedor` (`id`) + ON DELETE NO ACTION + ON UPDATE NO ACTION, + CONSTRAINT `fk_producto_ubicacion1` + FOREIGN KEY (`ubicacion_id`) + REFERENCES `inventarioalmacen`.`ubicacion` (`id`) + ON DELETE NO ACTION + ON UPDATE NO ACTION, + CONSTRAINT `fk_producto_tipo1` + FOREIGN KEY (`tipo_id`) + REFERENCES `inventarioalmacen`.`tipo` (`id`) + ON DELETE NO ACTION + ON UPDATE NO ACTION) +ENGINE = InnoDB; + + +-- ----------------------------------------------------- +-- Table `inventarioalmacen`.`roles` +-- ----------------------------------------------------- +CREATE TABLE IF NOT EXISTS `inventarioalmacen`.`roles` ( + `id` INT NOT NULL AUTO_INCREMENT, + `rol` VARCHAR(45) NOT NULL, + `estado` INT NOT NULL, + PRIMARY KEY (`id`)) +ENGINE = InnoDB; + + +-- ----------------------------------------------------- +-- Table `inventarioalmacen`.`usuarios` +-- ----------------------------------------------------- +CREATE TABLE IF NOT EXISTS `inventarioalmacen`.`usuarios` ( + `id` INT NOT NULL AUTO_INCREMENT, + `nombre` VARCHAR(50) NOT NULL, + `apellidoPaterno` VARCHAR(50) NOT NULL, + `email` VARCHAR(100) NOT NULL, + `telefono` VARCHAR(10) NOT NULL, + `estado` INT NOT NULL, + `contrasenia` VARCHAR(20) NOT NULL, + `domicilio` VARCHAR(100) NOT NULL, + `estados_id` INT NOT NULL, + `roles_id` INT NOT NULL, + PRIMARY KEY (`id`), + INDEX `fk_usuarios_roles1_idx` (`roles_id` ASC) VISIBLE, + INDEX `fk_usuarios_estados1_idx` (`estados_id` ASC) VISIBLE, + CONSTRAINT `fk_usuarios_roles1` + FOREIGN KEY (`roles_id`) + REFERENCES `inventarioalmacen`.`roles` (`id`) + ON DELETE NO ACTION + ON UPDATE NO ACTION, + CONSTRAINT `fk_usuarios_estados1` + FOREIGN KEY (`estados_id`) + REFERENCES `inventarioalmacen`.`estados` (`id`) + ON DELETE NO ACTION + ON UPDATE NO ACTION) +ENGINE = InnoDB; + + +SET SQL_MODE=@OLD_SQL_MODE; +SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS; +SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS; diff --git a/Miky_Inventario.mwb b/Miky_Inventario.mwb new file mode 100644 index 0000000..03f7c2a Binary files /dev/null and b/Miky_Inventario.mwb differ diff --git a/Miky_Inventario.mwb.bak b/Miky_Inventario.mwb.bak new file mode 100644 index 0000000..0eaaac8 Binary files /dev/null and b/Miky_Inventario.mwb.bak differ diff --git a/ProyectoInventario-ejb b/ProyectoInventario-ejb new file mode 160000 --- /dev/null +++ b/ProyectoInventario-ejb @@ -0,0 +1 @@ +Subproject commit 0000000000000000000000000000000000000000 diff --git a/ProyectoInventario-war/build.xml b/ProyectoInventario-war/build.xml new file mode 100644 index 0000000..296e693 --- /dev/null +++ b/ProyectoInventario-war/build.xml @@ -0,0 +1,71 @@ + + + + + + + + + + + Builds, tests, and runs the project ProyectoInventario-war. + + + diff --git a/ProyectoInventario-war/libs/primefaces-12.0.0.jar b/ProyectoInventario-war/libs/primefaces-12.0.0.jar new file mode 100644 index 0000000..88dab24 Binary files /dev/null and b/ProyectoInventario-war/libs/primefaces-12.0.0.jar differ diff --git a/ProyectoInventario-war/nbproject/ant-deploy.xml b/ProyectoInventario-war/nbproject/ant-deploy.xml new file mode 100644 index 0000000..fdc06d5 --- /dev/null +++ b/ProyectoInventario-war/nbproject/ant-deploy.xml @@ -0,0 +1,131 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ProyectoInventario-war/nbproject/build-impl.xml b/ProyectoInventario-war/nbproject/build-impl.xml new file mode 100644 index 0000000..f2817e5 --- /dev/null +++ b/ProyectoInventario-war/nbproject/build-impl.xml @@ -0,0 +1,1463 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set build.web.dir + Must set build.generated.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.war + + + + + + + + + +The Java EE server classpath is not correctly set up - server home directory is missing. +Either open the project in the IDE and assign the server or setup the server classpath manually. +For example like this: + ant -Dj2ee.server.home=<app_server_installation_directory> + + +The Java EE server classpath is not correctly set up. Your active server type is ${j2ee.server.type}. +Either open the project in the IDE and assign the server or setup the server classpath manually. +For example like this: + ant -Duser.properties.file=<path_to_property_file> (where you put the property "j2ee.platform.classpath" in a .properties file) +or ant -Dj2ee.platform.classpath=<server_classpath> (where no properties file is used) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +The libs.CopyLibs.classpath property is not set up. +This property must point to +org-netbeans-modules-java-j2seproject-copylibstask.jar file which is part +of NetBeans IDE installation and is usually located at +<netbeans_installation>/java<version>/ant/extra folder. +Either open the project in the IDE and make sure CopyLibs library +exists or setup the property manually. For example like this: + ant -Dlibs.CopyLibs.classpath=a/path/to/org-netbeans-modules-java-j2seproject-copylibstask.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.jsp.includes + + + + + + + + + + + + + + + + + + + + + + + + + + Must select a file in the IDE or set jsp.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Browser not found, cannot launch the deployed application. Try to set the BROWSER environment variable. + + + Launching ${browse.url} + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ProyectoInventario-war/nbproject/faces-config.NavData b/ProyectoInventario-war/nbproject/faces-config.NavData new file mode 100644 index 0000000..187ec92 --- /dev/null +++ b/ProyectoInventario-war/nbproject/faces-config.NavData @@ -0,0 +1,6 @@ + + + + + + diff --git a/ProyectoInventario-war/nbproject/genfiles.properties b/ProyectoInventario-war/nbproject/genfiles.properties new file mode 100644 index 0000000..79e852b --- /dev/null +++ b/ProyectoInventario-war/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=6ebb76c7 +build.xml.script.CRC32=d42f2f65 +build.xml.stylesheet.CRC32=1707db4f@1.96.0.1 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=6ebb76c7 +nbproject/build-impl.xml.script.CRC32=4734eaf8 +nbproject/build-impl.xml.stylesheet.CRC32=334708a0@1.96.0.1 diff --git a/ProyectoInventario-war/nbproject/project.properties b/ProyectoInventario-war/nbproject/project.properties new file mode 100644 index 0000000..cd46bcc --- /dev/null +++ b/ProyectoInventario-war/nbproject/project.properties @@ -0,0 +1,94 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=true +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +auxiliary.org-netbeans-modules-projectapi.jsf_2e_language=Facelets +build.classes.dir=${build.web.dir}/WEB-INF/classes +build.classes.excludes=**/*.java,**/*.form +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +build.web.dir=${build.dir}/web +build.web.excludes=${build.classes.excludes} +client.urlPart= +compile.jsps=false +conf.dir=${source.root}/conf +debug.classpath=${build.classes.dir}:${javac.classpath} +debug.test.classpath=\ + ${run.test.classpath} +display.browser=true +# Files to be excluded from distribution war +dist.archive.excludes= +dist.dir=dist +dist.ear.war=${dist.dir}/${war.ear.name} +dist.javadoc.dir=${dist.dir}/javadoc +dist.war=${dist.dir}/${war.name} +endorsed.classpath=\ + ${libs.javaee-endorsed-api-7.0.classpath} +excludes= +file.reference.primefaces-12.0.0.jar=libs\\primefaces-12.0.0.jar +includes=** +j2ee.compile.on.save=true +j2ee.copy.static.files.on.save=true +j2ee.deploy.on.save=true +j2ee.platform=1.7 +j2ee.platform.classpath=${j2ee.server.home}/modules/bean-validator.jar:${j2ee.server.home}/modules/endorsed/javax.annotation-api.jar:${j2ee.server.home}/modules/endorsed/jaxb-api-osgi.jar:${j2ee.server.home}/modules/endorsed/webservices-api-osgi.jar:${j2ee.server.home}/modules/javax.batch-api.jar:${j2ee.server.home}/modules/javax.ejb-api.jar:${j2ee.server.home}/modules/javax.el.jar:${j2ee.server.home}/modules/javax.enterprise.concurrent-api.jar:${j2ee.server.home}/modules/javax.enterprise.concurrent.jar:${j2ee.server.home}/modules/javax.enterprise.deploy-api.jar:${j2ee.server.home}/modules/javax.faces.jar:${j2ee.server.home}/modules/javax.inject.jar:${j2ee.server.home}/modules/javax.interceptor-api.jar:${j2ee.server.home}/modules/javax.jms-api.jar:${j2ee.server.home}/modules/javax.json.jar:${j2ee.server.home}/modules/javax.mail.jar:${j2ee.server.home}/modules/javax.management.j2ee-api.jar:${j2ee.server.home}/modules/javax.persistence.jar:${j2ee.server.home}/modules/javax.resource-api.jar:${j2ee.server.home}/modules/javax.security.auth.message-api.jar:${j2ee.server.home}/modules/javax.security.jacc-api.jar:${j2ee.server.home}/modules/javax.servlet-api.jar:${j2ee.server.home}/modules/javax.servlet.jsp-api.jar:${j2ee.server.home}/modules/javax.servlet.jsp.jar:${j2ee.server.home}/modules/javax.servlet.jsp.jstl-api.jar:${j2ee.server.home}/modules/javax.servlet.jsp.jstl.jar:${j2ee.server.home}/modules/javax.transaction-api.jar:${j2ee.server.home}/modules/javax.websocket-api.jar:${j2ee.server.home}/modules/javax.ws.rs-api.jar:${j2ee.server.home}/modules/javax.xml.registry-api.jar:${j2ee.server.home}/modules/javax.xml.rpc-api.jar:${j2ee.server.home}/modules/jaxb-osgi.jar:${j2ee.server.home}/modules/webservices-osgi.jar:${j2ee.server.home}/modules/weld-osgi-bundle.jar:${j2ee.server.middleware}/mq/lib/jaxm-api.jar +j2ee.platform.embeddableejb.classpath=${j2ee.server.home}/lib/embedded/glassfish-embedded-static-shell.jar +j2ee.platform.wscompile.classpath=${j2ee.server.home}/modules/webservices-osgi.jar +j2ee.platform.wsgen.classpath=${j2ee.server.home}/modules/webservices-osgi.jar:${j2ee.server.home}/modules/endorsed/webservices-api-osgi.jar:${j2ee.server.home}/modules/jaxb-osgi.jar:${j2ee.server.home}/modules/endorsed/jaxb-api-osgi.jar +j2ee.platform.wsimport.classpath=${j2ee.server.home}/modules/webservices-osgi.jar:${j2ee.server.home}/modules/endorsed/webservices-api-osgi.jar:${j2ee.server.home}/modules/jaxb-osgi.jar:${j2ee.server.home}/modules/endorsed/jaxb-api-osgi.jar +j2ee.platform.wsit.classpath= +j2ee.server.type=gfv4ee7 +jar.compress=false +javac.classpath=\ + ${reference.ProyectoInventario-ejb.dist}:\ + ${file.reference.primefaces-12.0.0.jar} +# Space-separated list of extra javac options +javac.compilerargs= +javac.debug=true +javac.deprecation=false +javac.processorpath=\ + ${javac.classpath} +javac.source=1.8 +javac.target=1.8 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.preview=true +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +lib.dir=${web.docbase.dir}/WEB-INF/lib +persistence.xml.dir=${conf.dir} +platform.active=default_platform +project.ProyectoInventario-ejb=../ProyectoInventario-ejb +reference.ProyectoInventario-ejb.dist=${project.ProyectoInventario-ejb}/dist/ProyectoInventario-ejb.jar +resource.dir=setup +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +# Space-separated list of JVM arguments used when running a class with a main method or a unit test +# (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value): +runmain.jvmargs= +source.encoding=UTF-8 +source.root=src +src.dir=${source.root}/java +test.src.dir=test +war.content.additional= +war.ear.name=${war.name} +war.name=ProyectoInventario-war.war +web.docbase.dir=web +webinf.dir=web/WEB-INF diff --git a/ProyectoInventario-war/nbproject/project.xml b/ProyectoInventario-war/nbproject/project.xml new file mode 100644 index 0000000..5a43dfd --- /dev/null +++ b/ProyectoInventario-war/nbproject/project.xml @@ -0,0 +1,39 @@ + + + org.netbeans.modules.web.project + + + ProyectoInventario-war + 1.6.5 + + + ${reference.ProyectoInventario-ejb.dist} + + + ${file.reference.primefaces-12.0.0.jar} + WEB-INF/lib + + + + + + + + + + + + ..\.\lib\nblibraries.properties + + + + ProyectoInventario-ejb + jar + + dist + clean + dist + + + + diff --git a/ProyectoInventario-war/src/conf/MANIFEST.MF b/ProyectoInventario-war/src/conf/MANIFEST.MF new file mode 100644 index 0000000..58630c0 --- /dev/null +++ b/ProyectoInventario-war/src/conf/MANIFEST.MF @@ -0,0 +1,2 @@ +Manifest-Version: 1.0 + diff --git a/ProyectoInventario-war/src/java/xforce/seguridad/AutorizacionListener.java b/ProyectoInventario-war/src/java/xforce/seguridad/AutorizacionListener.java new file mode 100644 index 0000000..6b4825c --- /dev/null +++ b/ProyectoInventario-war/src/java/xforce/seguridad/AutorizacionListener.java @@ -0,0 +1,63 @@ +/* + * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license + * Click nbfs://nbhost/SystemFileSystem/Templates/JSF/JSFManagedBean.java to edit this template + */ +package xforce.seguridad; + +import java.io.IOException; +import javax.inject.Named; +import javax.enterprise.context.SessionScoped; +import javax.faces.application.NavigationHandler; +import javax.faces.context.FacesContext; +import javax.faces.event.PhaseEvent; +import javax.faces.event.PhaseId; +import javax.faces.event.PhaseListener; + +/** + * + * @author Samuel Gamez + */ +@Named(value = "autorizacionListener") +@SessionScoped +public class AutorizacionListener implements PhaseListener { + + /** + * Creates a new instance of AutorizacionListener + */ + public AutorizacionListener() { + } + + private static final long serialVersionUID = 1L; + + @Override + public void afterPhase(PhaseEvent event) { + try { + //Obtener la pagina actual para validar la sesion + String paginaActual = event.getFacesContext().getViewRoot().getViewId(); + + //inicializar la sesion en caso de no haber sesion + DemoBeanLogin.getSession(); + + //Revisar que no sea la pafina index y que no estes logueado + //para redireccionar + if (!paginaActual.contains("index.xhtml") && DemoBeanLogin.getEstatus() == false) { + FacesContext.getCurrentInstance().getExternalContext().redirect("faces/index.xhtml?faces-redirect=true"); + + NavigationHandler nh = event.getFacesContext().getApplication().getNavigationHandler(); + nh.handleNavigation(event.getFacesContext(), null, "index"); + } + } catch (IOException e) { + e.printStackTrace(); + } + } + + @Override + public void beforePhase(PhaseEvent event) { + } + + @Override + public PhaseId getPhaseId() { + return PhaseId.RESTORE_VIEW; + } + +} diff --git a/ProyectoInventario-war/src/java/xforce/seguridad/DemoBeanLogin.java b/ProyectoInventario-war/src/java/xforce/seguridad/DemoBeanLogin.java new file mode 100644 index 0000000..90a877d --- /dev/null +++ b/ProyectoInventario-war/src/java/xforce/seguridad/DemoBeanLogin.java @@ -0,0 +1,93 @@ +/* + * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license + * Click nbfs://nbhost/SystemFileSystem/Templates/JSF/JSFManagedBean.java to edit this template + */ +package xforce.seguridad; + +import javax.inject.Named; +import javax.enterprise.context.SessionScoped; +import java.io.Serializable; +import javax.ejb.EJB; +import javax.faces.context.FacesContext; +import javax.servlet.http.HttpSession; +import xforce.bl.LoginBL; +import xforce.bl.LoginBLLocal; +import xforce.modelo.Usuarios; +import xforce.msg.Mensaje; + +/** + * + * @author Samuel Gamez + */ +@Named(value = "demoBeanLogin") +@SessionScoped +public class DemoBeanLogin implements Serializable { + + @EJB + private LoginBLLocal loginBL; + + //variable para manejar la sesion + public static HttpSession httpSession; + + /** + * Creates a new instance of DemoBeanLogin + */ + public DemoBeanLogin() { + } + + private Usuarios usuarios = new Usuarios(); + + public Usuarios getUsuarios() { + return usuarios; + } + + public void setUsuarios(Usuarios usuarios) { + this.usuarios = usuarios; + } + + public static void getSession() { + httpSession = (HttpSession) FacesContext.getCurrentInstance().getExternalContext().getSession(false); + } + + public String logout() { + //quitar atributo + //invalidar la session + httpSession.removeAttribute("pinchilink"); + httpSession.invalidate(); + return "index.xhtml"; + } + + public String login() { + //BL de autenticacion de usuario + //poner atributo + + Mensaje mensaje = loginBL.login(usuarios); + + switch (mensaje) { + case SIN_ERROR: + usuarios = new Usuarios(); + httpSession.setAttribute("pinchilink", "true"); + return "productoLista.xhtml"; + case ELEMENTO_DUPLICADO: + return null;//"productoLista?faces-redirect=true"; // Redirecciona a la lista de productos + case CAMPOS_INCOMPLETOS: + return null; + case DATOS_INCORRECTOS: + return null; + default: + return null; + } + } + + public static boolean getEstatus() { + if (httpSession != null + && httpSession.getId() != null + && !httpSession.getId().isEmpty() + && httpSession.getAttribute("pinchilink") != null) { + return true; + } else { + return false; + } + } + +} diff --git a/ProyectoInventario-war/src/java/xforce/vista/DemoBeanEstados.java b/ProyectoInventario-war/src/java/xforce/vista/DemoBeanEstados.java new file mode 100644 index 0000000..156eed7 --- /dev/null +++ b/ProyectoInventario-war/src/java/xforce/vista/DemoBeanEstados.java @@ -0,0 +1,97 @@ +/* + * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license + * Click nbfs://nbhost/SystemFileSystem/Templates/JSF/JSFManagedBean.java to edit this template + */ +package xforce.vista; + +import javax.inject.Named; +import javax.enterprise.context.SessionScoped; +import java.io.Serializable; +import java.util.List; +import javax.ejb.EJB; +import org.primefaces.PrimeFaces; +import xforce.bl.EstadosBLLocal; +import xforce.modelo.Estados; +import xforce.msg.Mensaje; + +/** + * + * @author Samuel Gamez + */ +@Named(value = "demoBeanEstados") +@SessionScoped +public class DemoBeanEstados implements Serializable { + + @EJB + private EstadosBLLocal estadosBL; + + /** + * Creates a new instance of DemoBeanEstados + */ + public DemoBeanEstados() { + } + + private Estados estados = new Estados(); + + private String titulo; + + private boolean nuevo; + + public List getEstados() { + return estadosBL.buscarValidos(true); + } + + public Estados getEstado() { + return estados; + } + + public void setEstado(Estados estados) { + this.estados = estados; + } + + public String getTitulo() { + return titulo; + } + + public void setTitulo(String titulo) { + this.titulo = titulo; + } + + public String agregarEstados() { + + Mensaje mensaje = estadosBL.agregar(estados); + + switch (mensaje) { + case SIN_ERROR: + estados = new Estados(); + PrimeFaces.current().ajax().update("marcaTable:messages"); + PrimeFaces.current().ajax().update("userTable:messages"); + PrimeFaces.current().ajax().update("productoTable:messages"); + return null;//"productoLista?faces-redirect=true"; // Redirecciona a la lista de productos + case ELEMENTO_DUPLICADO: + return null; + case CAMPOS_INCOMPLETOS: + return null; + case DATOS_INCORRECTOS: + return null; + default: + return null; + } + + } + + public void eliminarEstados(Estados estados) { + nuevo = false; + this.estados = estados; + estadosBL.eliminar(estados); + PrimeFaces.current().ajax().update("marcaTable:messages"); + PrimeFaces.current().ajax().update("userTable:messages"); + PrimeFaces.current().ajax().update("productoTable:messages"); + + } + + public void prepararNuevo() { + nuevo = true; + estados = new Estados(); + } +} diff --git a/ProyectoInventario-war/src/java/xforce/vista/DemoBeanMarca.java b/ProyectoInventario-war/src/java/xforce/vista/DemoBeanMarca.java new file mode 100644 index 0000000..e9248d7 --- /dev/null +++ b/ProyectoInventario-war/src/java/xforce/vista/DemoBeanMarca.java @@ -0,0 +1,184 @@ +/* + * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license + * Click nbfs://nbhost/SystemFileSystem/Templates/JSF/JSFManagedBean.java to edit this template + */ +package xforce.vista; + +import javax.inject.Named; +import javax.enterprise.context.SessionScoped; +import java.io.Serializable; +import java.util.List; +import java.util.Locale; +import javax.ejb.EJB; +import org.primefaces.PrimeFaces; +import org.primefaces.util.LangUtils; +import xforce.bl.MarcaBLLocal; +import xforce.modelo.Marca; +import xforce.msg.Mensaje; +import static xforce.msg.Mensaje.CAMPOS_INCOMPLETOS; +import static xforce.msg.Mensaje.DATOS_INCORRECTOS; +import static xforce.msg.Mensaje.ELEMENTO_DUPLICADO; +import static xforce.msg.Mensaje.SIN_ERROR; + +/** + * + * @author Samuel Gamez + */ +@Named(value = "demoBeanMarca") +@SessionScoped +public class DemoBeanMarca implements Serializable { + + @EJB + private MarcaBLLocal marcaBL; + + /** + * Creates a new instance of DemoBeanMarca + */ + + private Marca marca = new Marca(); + private String titulo; + private boolean nuevo; + private List marcaFilter; + + + + + public DemoBeanMarca() { + } + + public String agregar() { + Mensaje mensaje = marcaBL.agregar(marca); + switch (mensaje) { + case SIN_ERROR: + marca = new Marca(); + PrimeFaces.current().executeScript("PF('mar').hide()"); + PrimeFaces.current().ajax().update("marcaTable:messages"); + return "marcaLista.xhtml"; // Redirecciona a la lista de productos + case ELEMENTO_DUPLICADO: + return null; + case CAMPOS_INCOMPLETOS: + return null; + case DATOS_INCORRECTOS: + return null; + default: + return null; + } + + } + public String editarMarca(){ + Mensaje mensaje = marcaBL.editar(marca); + switch (mensaje) { + case SIN_ERROR: + marca = new Marca(); + PrimeFaces.current().executeScript("PF('mar').hide()"); + PrimeFaces.current().ajax().update("marcaTable:messages"); + return "marcaLista.xhtml"; // Redirecciona a la lista de productos + case ELEMENTO_DUPLICADO: + return null; + case CAMPOS_INCOMPLETOS: + return null; + case DATOS_INCORRECTOS: + return null; + default: + return null; + } + } + + + +// public String buscar() { +// Marca marca = new Marca(); +// marca.setId(1); +// marcaBL.buscarId(marca); +// return "index.xhtml"; +// } +// +// public String buscarNombre() { +// Marca marca = new Marca(); +// marca.setNombre("patito"); +// marcaBL.buscarNombre(marca); +// return "index.xhtml"; +// } + + public String buscarValidos() { + System.out.println(marcaBL.buscarValidos(true)); + return "index.xhtml"; + } + + + + public List getMarcas(){ + return marcaBL.buscarValidos(true); + } + + + public Marca getMarca() { + return marca; + } + + public void setMarca(Marca marca) { + this.marca = marca; + } + + public boolean isNuevo() { + return nuevo; + } + + + public void rellenarEditar(Marca marca){ + nuevo = false; + titulo="Editando marca"; + this.marca=marca; + +} + + public String getTitulo() { + return titulo; + } + public void prepararNuevo(){ + nuevo = true; + titulo="Nueva marca"; + marca = new Marca(); + +} + public void prepararEliminar(Marca marca){ + titulo = "Eliminar Marca"; + this.marca = marca; + } + public String eliminarMarca(){ + Mensaje mensaje = marcaBL.eliminar(marca); + switch (mensaje) { + case SIN_ERROR: + PrimeFaces.current().executeScript("PF('dialogD').hide()"); + PrimeFaces.current().ajax().update("marcaTable:messages"); + return "marcaLista.xhtml"; // Redirecciona a la lista de productos + case ERROR_PRODUCTOS_ASOCIADOS: + return null; + + default: + return null; + + } + } + + public List getMarcaFilter() { + return marcaFilter; + } + + public void setMarcaFilter(List marcaFilter) { + this.marcaFilter = marcaFilter; + } + + public boolean globalFilterFunction(Object value, Object filter, Locale locale) { + String filterText = (filter == null) ? null : filter.toString().trim().toLowerCase(); + if (LangUtils.isBlank(filterText)) { + return true; + } + + Marca m = (Marca) value; + + return m.getNombre().toLowerCase().contains(filterText); + } + + +} diff --git a/ProyectoInventario-war/src/java/xforce/vista/DemoBeanPaises.java b/ProyectoInventario-war/src/java/xforce/vista/DemoBeanPaises.java new file mode 100644 index 0000000..c089958 --- /dev/null +++ b/ProyectoInventario-war/src/java/xforce/vista/DemoBeanPaises.java @@ -0,0 +1,126 @@ +/* + * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license + * Click nbfs://nbhost/SystemFileSystem/Templates/JSF/JSFManagedBean.java to edit this template + */ +package xforce.vista; + +import javax.inject.Named; +import javax.enterprise.context.SessionScoped; +import java.io.Serializable; +import java.util.List; +import javax.ejb.EJB; +import org.primefaces.PrimeFaces; +import xforce.bl.PaisesBLLocal; +import xforce.modelo.Paises; +import xforce.modelo.Producto; +import xforce.modelo.Tipo; +import xforce.msg.Mensaje; +import static xforce.msg.Mensaje.CAMPOS_INCOMPLETOS; +import static xforce.msg.Mensaje.DATOS_INCORRECTOS; +import static xforce.msg.Mensaje.ELEMENTO_DUPLICADO; +import static xforce.msg.Mensaje.SIN_ERROR; + +/** + * + * @author Samuel Gamez + */ +@Named(value = "demoBeanPaises") +@SessionScoped +public class DemoBeanPaises implements Serializable { + + @EJB + private PaisesBLLocal paisesBL; + + /** + * Creates a new instance of DemoBeaPaises + */ + public DemoBeanPaises() { + } + + private Paises paises = new Paises(); + + private String titulo; + + private boolean nuevo; + + public List getPaises() { + return paisesBL.buscarValidos(true); + } + + public Paises getPais() { + return paises; + } + + public void setPais(Paises paises) { + this.paises = paises; + } + + public String getTitulo() { + return titulo; + } + + public void setTitulo(String titulo) { + this.titulo = titulo; + } + + public String agregarPais() { + + Mensaje mensaje = paisesBL.agregar(paises); + + switch (mensaje) { + case SIN_ERROR: + paises = new Paises(); + PrimeFaces.current().ajax().update("marcaTable:messages"); + PrimeFaces.current().ajax().update("userTable:messages"); + PrimeFaces.current().ajax().update("productoTable:messages"); + return null;//"productoLista?faces-redirect=true"; // Redirecciona a la lista de productos + case ELEMENTO_DUPLICADO: + return null; + case CAMPOS_INCOMPLETOS: + return null; + case DATOS_INCORRECTOS: + return null; + default: + return null; + } + + } + + public String editarProducto() { + + Mensaje mensaje = paisesBL.editar(paises); + + switch (mensaje) { + case SIN_ERROR: + paises = new Paises(); + PrimeFaces.current().ajax().update("marcaTable:messages"); + PrimeFaces.current().ajax().update("userTable:messages"); + PrimeFaces.current().ajax().update("productoTable:messages"); + return "productoLista.xhtml"; // Redirecciona a la lista de productos + case ELEMENTO_DUPLICADO: + return null; + case CAMPOS_INCOMPLETOS: + return null; + case DATOS_INCORRECTOS: + return null; + default: + return null; + } + + } + + public void eliminarPais(Paises paises) { + nuevo = false; + this.paises = paises; + paisesBL.eliminar(paises); + PrimeFaces.current().ajax().update("marcaTable:messages"); + PrimeFaces.current().ajax().update("userTable:messages"); + PrimeFaces.current().ajax().update("productoTable:messages"); + + } + + public void prepararNuevo() { + nuevo = true; + paises = new Paises(); + } +} diff --git a/ProyectoInventario-war/src/java/xforce/vista/DemoBeanProducto.java b/ProyectoInventario-war/src/java/xforce/vista/DemoBeanProducto.java new file mode 100644 index 0000000..9a2422d --- /dev/null +++ b/ProyectoInventario-war/src/java/xforce/vista/DemoBeanProducto.java @@ -0,0 +1,178 @@ +/* + * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license + * Click nbfs://nbhost/SystemFileSystem/Templates/JSF/JSFManagedBean.java to edit this template + */ +package xforce.vista; + +import javax.inject.Named; +import javax.enterprise.context.SessionScoped; +import java.io.Serializable; +import java.time.Instant; +import java.util.Date; +import java.util.List; +import java.util.Locale; +import javax.ejb.EJB; +import org.primefaces.PrimeFaces; +import org.primefaces.model.SortMeta; +import org.primefaces.util.LangUtils; +import xforce.bl.ProductoBLLocal; +import xforce.modelo.Producto; +import xforce.modelo.Tipo; +import xforce.msg.Mensaje; + +/** + * + * @author Samuel Gamez + */ +@Named(value = "demoBeanProducto") +@SessionScoped +public class DemoBeanProducto implements Serializable { + + @EJB + private ProductoBLLocal productoBL; + + private Producto producto = new Producto(); + + private String titulo; + + private boolean nuevo; + + ///////////////////////////////////////// + private List productoFilter;/// + //////////////////////////////////////// + + private List sortBy; + + public List getSortBy() { + return sortBy; + } + + + /** + * Creates a new instance of DemoBeanProducto + */ + public DemoBeanProducto() { + } + + public String agregarProducto() { + + //producto.setFecha(Date.from(Instant.now())); + + Mensaje mensaje = productoBL.agregar(producto); + + switch (mensaje) { + case SIN_ERROR: + producto = new Producto(); + PrimeFaces.current().executeScript("PF('dialogProducto').hide()"); + PrimeFaces.current().ajax().update("productoTable:messages"); + return "productoLista.xhtml";//"productoLista?faces-redirect=true"; // Redirecciona a la lista de productos + case ELEMENTO_DUPLICADO: + return null; + case CAMPOS_INCOMPLETOS: + return null; + case DATOS_INCORRECTOS: + return null; + default: + return null; + } + + } + + public String editarProducto() { + + Mensaje mensaje = productoBL.editar(producto); + + switch (mensaje) { + case SIN_ERROR: + producto = new Producto(); + PrimeFaces.current().executeScript("PF('dialogProducto').hide()"); + PrimeFaces.current().ajax().update("productoTable:messages"); + return "productoLista.xhtml"; // Redirecciona a la lista de productos + case ELEMENTO_DUPLICADO: + return null; + case CAMPOS_INCOMPLETOS: + return null; + case DATOS_INCORRECTOS: + return null; + default: + return null; + } + + } + + public void eliminarProducto() { + + productoBL.eliminar(producto); + + PrimeFaces.current().executeScript("PF('deleteProducto').hide()"); + PrimeFaces.current().ajax().update("productoTable:messages"); + + } + + public void prepararEditar(Producto producto) { + nuevo = false; + titulo = "Editando Producto"; + this.producto = producto; + } + + public void prepararNuevo() { + nuevo = true; + titulo = "Nuevo Producto"; + producto = new Producto(); + } + + public void prepararEliminar(Producto producto) { + this.producto = producto; + } + + public List getProductos() { + return productoBL.buscarValidos(true); + } + + ////////////////////////////////////////////////////////////////////// + public List getProductoFilter() { // + return productoFilter; // + } // + // + + public void setProductoFilter(List productoFilter) { // + this.productoFilter = productoFilter; // + } // + ////////////////////////////////////////////////////////////////////// + + public Producto getProducto() { + return producto; + } + + public void setProducto(Producto producto) { + this.producto = producto; + } + + public String getTitulo() { + return titulo; + } + + public boolean isNuevo() { + return nuevo; + } + + public boolean globalFilterFunction(Object value, Object filter, Locale locale) { + String filterText = (filter == null) ? null : filter.toString().trim().toLowerCase(); + if (LangUtils.isBlank(filterText)) { + return true; + } + + Producto p = (Producto) value; + + return p.getNombre().toLowerCase().contains(filterText) + || String.valueOf(p.getCodigo()).contains(filterText) + || String.valueOf(p.getPrecio()).contains(filterText) + || String.valueOf(p.getPiezas()).contains(filterText) + || String.valueOf(p.getFecha()).contains(filterText) + || p.getProveedorIdproveedor().getMarcaId().getNombre().toLowerCase().contains(filterText) + || p.getProveedorIdproveedor().getNombre().toLowerCase().contains(filterText) + || p.getTipoId().getTipo().toLowerCase().contains(filterText) + || p.getUbicacionId().getLugar().toLowerCase().contains(filterText); + } + +} diff --git a/ProyectoInventario-war/src/java/xforce/vista/DemoBeanProveedor.java b/ProyectoInventario-war/src/java/xforce/vista/DemoBeanProveedor.java new file mode 100644 index 0000000..316a1be --- /dev/null +++ b/ProyectoInventario-war/src/java/xforce/vista/DemoBeanProveedor.java @@ -0,0 +1,212 @@ +/* + * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license + * Click nbfs://nbhost/SystemFileSystem/Templates/JSF/JSFManagedBean.java to edit this template + */ +package xforce.vista; + +import javax.inject.Named; +import javax.enterprise.context.SessionScoped; +import java.io.Serializable; +import java.util.List; +import java.util.Locale; +import javax.ejb.EJB; +import org.primefaces.PrimeFaces; +import org.primefaces.util.LangUtils; +import xforce.bl.ProveedorBLLocal; +import xforce.modelo.Proveedor; +import xforce.modelo.Ubicacion; +import xforce.msg.Mensaje; +import static xforce.msg.Mensaje.CAMPOS_INCOMPLETOS; +import static xforce.msg.Mensaje.DATOS_INCORRECTOS; +import static xforce.msg.Mensaje.ELEMENTO_DUPLICADO; +import static xforce.msg.Mensaje.SIN_ERROR; + +/** + * + * @author oscar + */ +@Named(value = "demoBeanProveedor") +@SessionScoped +public class DemoBeanProveedor implements Serializable { + + @EJB + private ProveedorBLLocal proveedorBL; + + private Proveedor proveedor = new Proveedor(); + private String titulo; + private boolean nuevo; + private List proveedorFilter; + + /** + * Creates a new instance of DemoBeanProveedor + */ + public DemoBeanProveedor() { + } + +public String agregar() { + + Mensaje mensaje = proveedorBL.agregar(proveedor); + + switch (mensaje) { + case SIN_ERROR: + proveedor = new Proveedor(); + PrimeFaces.current().executeScript("PF('dialogproveedor').hide()"); + PrimeFaces.current().ajax().update("proveedorTabla:messages"); + return "proveedorLista.xhtml"; // Redirecciona a la lista de productos + case ELEMENTO_DUPLICADO: + return null; + case CAMPOS_INCOMPLETOS: + return null; + case DATOS_INCORRECTOS: + return null; + default: + return null; + } +} + + public List getProveedorFilter() { + return proveedorFilter; + } + + public void setProveedorFilter(List proveedorFilter) { + this.proveedorFilter = proveedorFilter; + } + + public boolean globalFilterFunction(Object value, Object filter, Locale locale) { + String filterText = (filter == null) ? null : filter.toString().trim().toLowerCase(); + if (LangUtils.isBlank(filterText)) { + return true; + } + + Proveedor p = (Proveedor) value; + + return p.getNombre().toLowerCase().contains(filterText) + || p.getTelefono().contains(filterText) + || p.getEmail().contains(filterText); + } + + public void agregarProveedor() { + proveedorBL.agregar(proveedor); + } + + public String eliminar() { + Proveedor p = new Proveedor(); + p.setId(1); + proveedorBL.eliminar(p); + return "index.xhtml"; + } + + public String buscar() { + Proveedor p = new Proveedor(); + p.setId(1); + proveedorBL.buscarId(p); + return "index.xhtml"; + } + + public String buscarNombre() { + Proveedor p = new Proveedor(); + p.setNombre("DHL"); + proveedorBL.buscarNombre(p); + return "index.xhtml"; + } + + public String editar() { + + Proveedor p = new Proveedor(); + p.setId(1); + p.setNombre("comex"); + p.setEmail("comex@gmail.com"); + p.setTelefono("3433445577"); + p.setEstado(2); + + proveedorBL.editar(p); + + return "index.xhtml"; + } + + public String buscarValidos() { + System.out.println(proveedorBL.buscarValidos(true)); + return "index.xhtml"; + } + + public List getProveedores() { + return proveedorBL.buscarValidos(true); + } + + public Proveedor getProveedor() { + return proveedor; + } + + public void setProveedor(Proveedor proveedor) { + this.proveedor = proveedor; + } + + public void prepararEditar(Proveedor proveedor) { + nuevo = false; + titulo = "Editando Proveedor"; + this.proveedor = proveedor; + + } + + public String getTitulo() { + return titulo; + } + + public boolean isNuevo() { + return nuevo; + } + + public void prepararnuevo() { + nuevo = true; + titulo = "Agregando proveedor"; + proveedor = new Proveedor(); + } + + public String editarP() { + + Mensaje mensaje = proveedorBL.editar(proveedor); + switch (mensaje) { + case SIN_ERROR: + proveedor = new Proveedor(); + PrimeFaces.current().executeScript("PF('dialogproveedor').hide()"); + PrimeFaces.current().ajax().update("proveedorTabla:messages"); + return "proveedorLista.xhtml"; // Redirecciona a la lista de productos + case ELEMENTO_DUPLICADO: + return null; + case CAMPOS_INCOMPLETOS: + return null; + case DATOS_INCORRECTOS: + return null; + default: + return null; + } + + } + + public void prepararEliminar(Proveedor proveedor) { + titulo = "Eliminar proveedor"; + this.proveedor = proveedor; + } + + public String eliminarProveedor() { + Mensaje mensaje = proveedorBL.eliminar(proveedor); + + switch (mensaje) { + case SIN_ERROR: + PrimeFaces.current().executeScript("PF('deleteProveedor').hide()"); + PrimeFaces.current().ajax().update("proveedorTabla:messages"); + return "proveedorLista.xhtml"; // Redirecciona a la lista de productos + case ELEMENTO_DUPLICADO: + return null; + case CAMPOS_INCOMPLETOS: + return null; + case DATOS_INCORRECTOS: + return null; + case ERROR_PRODUCTOS_ASOCIADOS: + return null; + default: + return null; + } + } + +} diff --git a/ProyectoInventario-war/src/java/xforce/vista/DemoBeanRoles.java b/ProyectoInventario-war/src/java/xforce/vista/DemoBeanRoles.java new file mode 100644 index 0000000..1dddc51 --- /dev/null +++ b/ProyectoInventario-war/src/java/xforce/vista/DemoBeanRoles.java @@ -0,0 +1,116 @@ +/* + * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license + * Click nbfs://nbhost/SystemFileSystem/Templates/JSF/JSFManagedBean.java to edit this template + */ +package xforce.vista; + +import javax.inject.Named; +import javax.enterprise.context.SessionScoped; +import java.io.Serializable; +import java.util.List; +import javax.ejb.EJB; +import org.primefaces.PrimeFaces; +import xforce.bl.RolesBLLocal; +import xforce.modelo.Roles; +import xforce.msg.Mensaje; + + +/** + * + * @author hugoa + */ +@Named(value = "demoBeanRoles") +@SessionScoped +public class DemoBeanRoles implements Serializable { + + @EJB + private RolesBLLocal rolesBL; + /** + * Creates a new instance of DemoBeanRoles + */ + + public DemoBeanRoles() { + } + + private Roles roles = new Roles(); + private boolean nuevo; + private String titulo; + + public String agregarRol(){ + Mensaje mensaje = rolesBL.agregar(roles); + + switch (mensaje) { + case SIN_ERROR: + roles = new Roles(); + PrimeFaces.current().ajax().update("marcaTable:messages"); + PrimeFaces.current().ajax().update("userTable:messages"); + return null; + case ELEMENTO_DUPLICADO: + return null; + case CAMPOS_INCOMPLETOS: + return null; + case DATOS_INCORRECTOS: + return null; + default: + return null; + } + } + + public void prepararNuevo() { + nuevo = true; + titulo = "Roles"; + roles = new Roles(); + } + + public boolean isNuevo() { + return nuevo; + } + + public void eliminarRol(Roles roles) { + nuevo=false; + this.roles = roles; + rolesBL.eliminar(roles); + PrimeFaces.current().ajax().update("marcaTable:messages"); + PrimeFaces.current().ajax().update("userTable:messages"); + + } + public String getTitulo() { + return titulo; + } + public List getRoles() { + return rolesBL.buscarValidos(true); + } + + public Roles getRol() { + return roles; + } + + public void setRol(Roles rol) { + this.roles = rol; + } + + + + + + + + + + + + + + + + + + + + + + + + + +} diff --git a/ProyectoInventario-war/src/java/xforce/vista/DemoBeanTipo.java b/ProyectoInventario-war/src/java/xforce/vista/DemoBeanTipo.java new file mode 100644 index 0000000..741ca0e --- /dev/null +++ b/ProyectoInventario-war/src/java/xforce/vista/DemoBeanTipo.java @@ -0,0 +1,89 @@ +/* + * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license + * Click nbfs://nbhost/SystemFileSystem/Templates/JSF/JSFManagedBean.java to edit this template + */ +package xforce.vista; + +import javax.inject.Named; +import javax.enterprise.context.SessionScoped; +import java.io.Serializable; +import java.util.List; +import javax.ejb.EJB; +import org.primefaces.PrimeFaces; +import xforce.bl.TipoBLLocal; +import xforce.modelo.Tipo; +import xforce.msg.Mensaje; + +/** + * + * @author oscar + */ +@Named(value = "demoBeanTipo") +@SessionScoped +public class DemoBeanTipo implements Serializable { + + @EJB + private TipoBLLocal tipoBl; + private Tipo tipo = new Tipo(); + private String titulo; + private boolean nuevo; + private List proveedorFilter; + + /** + * Creates a new instance of DemoBeanTipo + */ + public DemoBeanTipo() { + } + + public String agregar() { + + Mensaje mensaje = tipoBl.agregar(tipo); + + switch (mensaje) { + case SIN_ERROR: + tipo = new Tipo(); + PrimeFaces.current().ajax().update("ubicacionTabla:messages"); + + return null; // Redirecciona a la lista de productos + case ELEMENTO_DUPLICADO: + return null; + case CAMPOS_INCOMPLETOS: + return null; + case DATOS_INCORRECTOS: + return null; + default: + return null; + } + } + public void eliminarTipo(Tipo tipo) { + nuevo=false; + this.tipo = tipo; + tipoBl.eliminar(tipo); + PrimeFaces.current().ajax().update("tipT:messages"); + PrimeFaces.current().ajax().update("ubicacionTabla:messages"); + + } + + + public void prepararNuevo() { + nuevo = true; + + tipo = new Tipo(); + } + + public boolean isNuevo() { + return nuevo; + } + public List getTipos() { + return tipoBl.buscarValidos(true); + } + + public Tipo getTipo() { + return tipo; + } + + public void setTipo(Tipo tip) { + this.tipo = tip; + } + +} diff --git a/ProyectoInventario-war/src/java/xforce/vista/DemoBeanUbicacion.java b/ProyectoInventario-war/src/java/xforce/vista/DemoBeanUbicacion.java new file mode 100644 index 0000000..24e6051 --- /dev/null +++ b/ProyectoInventario-war/src/java/xforce/vista/DemoBeanUbicacion.java @@ -0,0 +1,213 @@ +/* + * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license + * Click nbfs://nbhost/SystemFileSystem/Templates/JSF/JSFManagedBean.java to edit this template + */ +package xforce.vista; + +import javax.inject.Named; +import javax.enterprise.context.SessionScoped; +import java.io.Serializable; +import java.util.List; +import java.util.Locale; +import javax.ejb.EJB; +import org.primefaces.PrimeFaces; +import org.primefaces.util.LangUtils; +import xforce.bl.UbicacionBLLocal; +import xforce.modelo.Marca; +import xforce.modelo.Ubicacion; +import xforce.msg.Mensaje; +import static xforce.msg.Mensaje.CAMPOS_INCOMPLETOS; +import static xforce.msg.Mensaje.DATOS_INCORRECTOS; +import static xforce.msg.Mensaje.ELEMENTO_DUPLICADO; +import static xforce.msg.Mensaje.SIN_ERROR; + +/** + * + * @author oscar + */ +@Named(value = "demoBeanUbicacion") +@SessionScoped +public class DemoBeanUbicacion implements Serializable { + + @EJB + private UbicacionBLLocal ubicacionBL; + private Ubicacion ubicacion = new Ubicacion(); + private String titulo; + private boolean nuevo; + private List ubicacionFilter; + + /** + * Creates a new instance of DemoBeanUbicacion + */ + public DemoBeanUbicacion() { + } + + public String agregar() { + + Mensaje mensaje = ubicacionBL.agregar(ubicacion); + + switch (mensaje) { + case SIN_ERROR: + ubicacion = new Ubicacion(); + PrimeFaces.current().executeScript("PF('mar').hide()"); + PrimeFaces.current().ajax().update("ubicacionTabla:messages"); + return "ubicacionLista.xhtml"; // Redirecciona a la lista de productos + case ELEMENTO_DUPLICADO: + return null; + case CAMPOS_INCOMPLETOS: + return null; + case DATOS_INCORRECTOS: + return null; + default: + return null; + } + } + + public String editarU() { + + Mensaje mensaje = ubicacionBL.editar(ubicacion); + switch (mensaje) { + + case SIN_ERROR: + PrimeFaces.current().executeScript("PF('mar').hide()"); + PrimeFaces.current().ajax().update("ubicacionTabla:messages"); + ubicacion = new Ubicacion(); + return "ubicacionLista.xhtml"; // Redirecciona a la lista de productos + case ELEMENTO_DUPLICADO: + return null; + case CAMPOS_INCOMPLETOS: + return null; + case DATOS_INCORRECTOS: + return null; + default: + return null; + } + + } + + public List getUbicacionFilter() { + return ubicacionFilter; + } + + public void setUbicacionFilter(List ubicacionFilter) { + this.ubicacionFilter = ubicacionFilter; + } + + public boolean globalFilterFunction(Object value, Object filter, Locale locale) { + String filterText = (filter == null) ? null : filter.toString().trim().toLowerCase(); + if (LangUtils.isBlank(filterText)) { + return true; + } + + Ubicacion p = (Ubicacion) value; + + return p.getBloque().toLowerCase().contains(filterText) + || String.valueOf(p.getAnaquel()).contains(filterText); + } + + public void agregarUbicacion() { + ubicacionBL.agregar(ubicacion); + } + + public String eliminar() { + + Ubicacion ubi = new Ubicacion(); + ubi.setId(1); + ubicacionBL.eliminar(ubi); + + return "index.xhtml"; + } + + public String buscar() { + Ubicacion p = new Ubicacion(); + p.setId(2); + ubicacionBL.buscarId(p); + return "index.xhtml"; + } + + public String buscarNombre() { + Ubicacion p = new Ubicacion(); + p.setBloque(""); + ubicacionBL.buscaUbicacion(p); + return "index.xhtml"; + } + + public String editar() { + + Ubicacion p = new Ubicacion(); + p.setId(1); + p.setBloque(""); + p.setAnaquel(1); + p.setEstado(2); + + ubicacionBL.editar(p); + + return "index.xhtml"; + } + + public String buscarValidos() { + System.out.println(ubicacionBL.buscarValidos(true)); + return "index.xhtml"; + } + + public List getUbicacion() { + return ubicacionBL.buscarValidos(true); + } + + public Ubicacion getUbi() { + return ubicacion; + } + + public void setUbicacion(Ubicacion ubicacion) { + this.ubicacion = ubicacion; + } + + public void prepararEditar(Ubicacion ubicacion) { + nuevo = false; + titulo = "Editando ubicacion"; + this.ubicacion = ubicacion; + + } + + public String getTitulo() { + return titulo; + } + + public boolean isNuevo() { + return nuevo; + } + + public void prepararnuevo() { + nuevo = true; + titulo = "Agregando ubicacion"; + ubicacion = new Ubicacion(); + } + + public void prepararEliminar(Ubicacion ubicacion) { + + titulo="Eliminar ubicacion"; + + this.ubicacion = ubicacion; + } + + public String eliminarUbicacion() { + Mensaje mensaje = ubicacionBL.eliminar(ubicacion); + + switch (mensaje) { + + case SIN_ERROR: + PrimeFaces.current().executeScript("PF('deleteUbicacion').hide()"); + PrimeFaces.current().ajax().update("ubicacionTabla:messages"); + return "ubicacionLista.xhtml"; // Redirecciona a la lista de productos + case ELEMENTO_DUPLICADO: + return null; + case CAMPOS_INCOMPLETOS: + return null; + case DATOS_INCORRECTOS: + return null; + default: + return null; + } + } + +} diff --git a/ProyectoInventario-war/src/java/xforce/vista/DemoBeanUsuarios.java b/ProyectoInventario-war/src/java/xforce/vista/DemoBeanUsuarios.java new file mode 100644 index 0000000..386be56 --- /dev/null +++ b/ProyectoInventario-war/src/java/xforce/vista/DemoBeanUsuarios.java @@ -0,0 +1,182 @@ +/* + * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license + * Click nbfs://nbhost/SystemFileSystem/Templates/JSF/JSFManagedBean.java to edit this template + */ +package xforce.vista; + +import javax.inject.Named; +import javax.enterprise.context.SessionScoped; +import java.io.Serializable; +import java.util.List; +import java.util.Locale; +import javax.ejb.EJB; +import org.primefaces.PrimeFaces; +import org.primefaces.util.LangUtils; +import xforce.bl.UsuariosBLLocal; +import xforce.modelo.Estados; +import xforce.modelo.Usuarios; +import xforce.msg.Mensaje; +import static xforce.msg.Mensaje.CAMPOS_INCOMPLETOS; +import static xforce.msg.Mensaje.DATOS_INCORRECTOS; +import static xforce.msg.Mensaje.ELEMENTO_DUPLICADO; +import static xforce.msg.Mensaje.SIN_ERROR; + +/** + * + * @author hugoa + */ +@Named(value = "demoBeanUsuarios") +@SessionScoped +public class DemoBeanUsuarios implements Serializable { + + @EJB + private UsuariosBLLocal usuariosBL; + + /** + * Creates a new instance of DemoBeanUsuarios + */ + private Usuarios usuario = new Usuarios(); + private String titulo; + private boolean nuevo; + private List usuariosFilter; + + public DemoBeanUsuarios() { + } + + public String agregar() { + + Estados estao = new Estados(); + estao.setId(3); + + usuario.setEstadosId(estao); + + Mensaje mensaje = usuariosBL.agregar(usuario); + switch (mensaje) { + case SIN_ERROR: + + usuario = new Usuarios(); + PrimeFaces.current().executeScript("PF('user').hide()"); + PrimeFaces.current().ajax().update("userTable:messages"); + return "usuariosLista.xhtml"; // Redirecciona a la lista de productos + case ELEMENTO_DUPLICADO: + return null; + case CAMPOS_INCOMPLETOS: + return null; + case DATOS_INCORRECTOS: + return null; + default: + return null; + } + + } + + public void eliminarUsuario() { + usuariosBL.eliminar(usuario); + PrimeFaces.current().executeScript("PF('userD').hide()"); + PrimeFaces.current().ajax().update("userTable:messages"); + } + + public void prepararEliminar(Usuarios usuario) { + titulo = "Eliminar usuario"; + this.usuario = usuario; + } + + public String buscarValidos() { + System.out.println(usuariosBL.buscarValidos(true)); + + return "index.xhtml"; + } + + public List getUsuarios() { + return usuariosBL.buscarValidos(true); + } + + public String editarUsuario() { + Mensaje mensaje = usuariosBL.editar(usuario); + switch (mensaje) { + case SIN_ERROR: + usuario = new Usuarios(); + PrimeFaces.current().executeScript("PF('user').hide()"); + PrimeFaces.current().ajax().update("userTable:messages"); + return "usuariosLista.xhtml"; // Redirecciona a la lista de productos + case ELEMENTO_DUPLICADO: + return null; + case CAMPOS_INCOMPLETOS: + return null; + case DATOS_INCORRECTOS: + return null; + default: + return null; + } + } + + public void prepararNuevo() { + nuevo = true; + titulo = "Nuevo usuario"; + usuario = new Usuarios(); + } + + public boolean isNuevo() { + return nuevo; + } + + public void rellenarEditar(Usuarios usuario) { + nuevo = false; + titulo = "Editando usuario"; + this.usuario = usuario; + + } + + public String getTitulo() { + return titulo; + } + + public Usuarios getUsuario() { + return usuario; + } + + public void setUsuario(Usuarios usuario) { + this.usuario = usuario; + } + + public List getUsuariosFilter() { + return usuariosFilter; + } + + public void setUsuariosFilter(List usuariosFilter) { + this.usuariosFilter = usuariosFilter; + } + + public boolean globalFilterFunction(Object value, Object filter, Locale locale) { + String filterText = (filter == null) ? null : filter.toString().trim().toLowerCase(); + if (LangUtils.isBlank(filterText)) { + return true; + } + + Usuarios u = (Usuarios) value; + + return u.getNombre().toLowerCase().contains(filterText) + || u.getApellidoPaterno().toLowerCase().contains(filterText) + || u.getEmail().toLowerCase().contains(filterText) + || u.getTelefono().toLowerCase().contains(filterText) + || u.getRolesId().getRol().toLowerCase().contains(filterText) + || u.getEstadosId().getNombre().toLowerCase().contains(filterText); + } + + // public String buscar() { +// Usuarios usuarios = new Usuarios(); +// +// usuarios.setId(4); +// +// usuariosBL.buscarId(usuarios); +// +// return "index.xhtml"; +// } +// +// public String buscarNombre(){ +// Usuarios usuario = new Usuarios(); +// usuario.setNombre("samuel"); +// usuariosBL.buscarNombre(usuario); +// return "index.xhtml"; +// } +} diff --git a/ProyectoInventario-war/src/java/xforce/vista/SelectOneMenuConverter.java b/ProyectoInventario-war/src/java/xforce/vista/SelectOneMenuConverter.java new file mode 100644 index 0000000..ba0ac17 --- /dev/null +++ b/ProyectoInventario-war/src/java/xforce/vista/SelectOneMenuConverter.java @@ -0,0 +1,86 @@ +/* + * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license + * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template + */ +package xforce.vista; + +import java.util.List; +import javax.faces.component.UIComponent; +import javax.faces.component.UISelectItem; +import javax.faces.component.UISelectItems; +import javax.faces.context.FacesContext; +import javax.faces.convert.Converter; +import javax.faces.convert.FacesConverter; + +/** + * + * @author Samuel Gamez + */ +@FacesConverter("selectOneMenuConverter") +public class SelectOneMenuConverter implements Converter{ + + @Override + public Object getAsObject(final FacesContext arg0, final UIComponent arg1, final String objectString) { + if (objectString == null) { + return null; + } + + return fromSelect(arg1, objectString); + } + + /** + * Serialize. + * + * @param object the object + * @return the string + */ + private String serialize(final Object object) { + if (object == null) { + return null; + } + return object.getClass() + "@" + object.hashCode(); + } + + /** + * From select. + * + * @param currentcomponent the currentcomponent + * @param objectString the object string + * @return the object + */ + private Object fromSelect(final UIComponent currentcomponent, final String objectString) { + + if (currentcomponent.getClass() == UISelectItem.class) { + final UISelectItem item = (UISelectItem) currentcomponent; + final Object value = item.getValue(); + if (objectString.equals(serialize(value))) { + return value; + } + } + + if (currentcomponent.getClass() == UISelectItems.class) { + final UISelectItems items = (UISelectItems) currentcomponent; + final List elements = (List) items.getValue(); + for (final Object element : elements) { + if (objectString.equals(serialize(element))) { + return element; + } + } + } + + if (!currentcomponent.getChildren().isEmpty()) { + for (final UIComponent component : currentcomponent.getChildren()) { + final Object result = fromSelect(component, objectString); + if (result != null) { + return result; + } + } + } + return null; + } + + @Override + public String getAsString(final FacesContext arg0, final UIComponent arg1, final Object object) { + return serialize(object); + } +} diff --git a/ProyectoInventario-war/src/java/xforce/vista/ventanas.java b/ProyectoInventario-war/src/java/xforce/vista/ventanas.java new file mode 100644 index 0000000..c609a44 --- /dev/null +++ b/ProyectoInventario-war/src/java/xforce/vista/ventanas.java @@ -0,0 +1,46 @@ +/* + * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license + * Click nbfs://nbhost/SystemFileSystem/Templates/JSF/JSFManagedBean.java to edit this template + */ +package xforce.vista; + +import javax.inject.Named; +import javax.enterprise.context.SessionScoped; +import java.io.Serializable; +import org.primefaces.PrimeFaces; +import org.primefaces.model.DialogFrameworkOptions; + +/** + * + * @author Samuel Gamez + */ +@Named(value = "ventanas") +@SessionScoped +public class ventanas implements Serializable { + + /** + * Creates a new instance of ventanas + */ + public ventanas() { + } + + //////////////////////////////////////////////////////////////////////////// + public void viewProductsCustomized() { + DialogFrameworkOptions options = DialogFrameworkOptions.builder() + .modal(true) + .width("640") + .height("340") + .contentHeight("100%") + .contentWidth("100%") + .headerElement("customheader") + .build(); + + System.out.println("si"); + PrimeFaces.current().dialog().openDynamic("paises1", options, null); + } + + public void close() { + PrimeFaces.current().dialog().closeDynamic(this); + } + +} diff --git a/ProyectoInventario-war/web/Images/Psicología-social.jpg b/ProyectoInventario-war/web/Images/Psicología-social.jpg new file mode 100644 index 0000000..56d0788 Binary files /dev/null and b/ProyectoInventario-war/web/Images/Psicología-social.jpg differ diff --git a/ProyectoInventario-war/web/Images/Usuario.png b/ProyectoInventario-war/web/Images/Usuario.png new file mode 100644 index 0000000..2b8b658 Binary files /dev/null and b/ProyectoInventario-war/web/Images/Usuario.png differ diff --git a/ProyectoInventario-war/web/Images/user.png b/ProyectoInventario-war/web/Images/user.png new file mode 100644 index 0000000..ed77ad7 Binary files /dev/null and b/ProyectoInventario-war/web/Images/user.png differ diff --git a/ProyectoInventario-war/web/WEB-INF/faces-config.xml b/ProyectoInventario-war/web/WEB-INF/faces-config.xml new file mode 100644 index 0000000..18c4f3b --- /dev/null +++ b/ProyectoInventario-war/web/WEB-INF/faces-config.xml @@ -0,0 +1,33 @@ + + + + + + + xforce.seguridad.AutorizacionListener + + + + diff --git a/ProyectoInventario-war/web/WEB-INF/glassfish-web.xml b/ProyectoInventario-war/web/WEB-INF/glassfish-web.xml new file mode 100644 index 0000000..584a477 --- /dev/null +++ b/ProyectoInventario-war/web/WEB-INF/glassfish-web.xml @@ -0,0 +1,25 @@ + + + + + + + + Keep a copy of the generated servlet class' java code. + + + diff --git a/ProyectoInventario-war/web/WEB-INF/web.xml b/ProyectoInventario-war/web/WEB-INF/web.xml new file mode 100644 index 0000000..c270ea7 --- /dev/null +++ b/ProyectoInventario-war/web/WEB-INF/web.xml @@ -0,0 +1,28 @@ + + + + javax.faces.PROJECT_STAGE + Development + + + Faces Servlet + javax.faces.webapp.FacesServlet + 1 + + + Faces Servlet + /faces/* + + + + 30 + + + + faces/productoLista.xhtml + + + javax.faces.CONFIG_FILES + /WEB-INF/faces-config.xml + + diff --git a/ProyectoInventario-war/web/estados.xhtml b/ProyectoInventario-war/web/estados.xhtml new file mode 100644 index 0000000..7fe5f64 --- /dev/null +++ b/ProyectoInventario-war/web/estados.xhtml @@ -0,0 +1,140 @@ + + + + + + + + +
Estados
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+ + +
+ +
+ +
+ + + +
Nuevo Estado
+ + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ +
+
+ +
+ + + + + diff --git a/ProyectoInventario-war/web/index.html b/ProyectoInventario-war/web/index.html new file mode 100644 index 0000000..4cea0a0 --- /dev/null +++ b/ProyectoInventario-war/web/index.html @@ -0,0 +1,15 @@ + + + + + TODO supply a title + + + + +
TODO write content
+ + diff --git a/ProyectoInventario-war/web/index.xhtml b/ProyectoInventario-war/web/index.xhtml new file mode 100644 index 0000000..6116607 --- /dev/null +++ b/ProyectoInventario-war/web/index.xhtml @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/ProyectoInventario-war/web/marcaCrearEditar.xhtml b/ProyectoInventario-war/web/marcaCrearEditar.xhtml new file mode 100644 index 0000000..66c0da6 --- /dev/null +++ b/ProyectoInventario-war/web/marcaCrearEditar.xhtml @@ -0,0 +1,64 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+ + + + + + + + + + + + + + +
+ +
+ + +
+ +
+ + + diff --git a/ProyectoInventario-war/web/marcaEliminar.xhtml b/ProyectoInventario-war/web/marcaEliminar.xhtml new file mode 100644 index 0000000..4e5ef9e --- /dev/null +++ b/ProyectoInventario-war/web/marcaEliminar.xhtml @@ -0,0 +1,60 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + +

+ + + + + + + + + + +
+
+ +
+ +
+ + + diff --git a/ProyectoInventario-war/web/marcaLista.xhtml b/ProyectoInventario-war/web/marcaLista.xhtml new file mode 100644 index 0000000..6fa2029 --- /dev/null +++ b/ProyectoInventario-war/web/marcaLista.xhtml @@ -0,0 +1,231 @@ + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
+ +
+ +
+ +
+
Marcas
+
+ +
+
+ + +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + +
+ + +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + +
+ + + + + +
+
+
+ + + + + + + + + + + + + + + + + +
+ + +
+
+ +
+ + + + + + +
+ +
+ +
+ + + + diff --git a/ProyectoInventario-war/web/paises.xhtml b/ProyectoInventario-war/web/paises.xhtml new file mode 100644 index 0000000..4f09b9b --- /dev/null +++ b/ProyectoInventario-war/web/paises.xhtml @@ -0,0 +1,106 @@ + + + + + + + + +
Paises
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+ + +
+ +
+ +
+ + + +
Nuevo Pais
+ + + + + + + + + + + +
+ + + +
+ +
+
+ +
+ + + + diff --git a/ProyectoInventario-war/web/productoCrearEditar.xhtml b/ProyectoInventario-war/web/productoCrearEditar.xhtml new file mode 100644 index 0000000..a7304ed --- /dev/null +++ b/ProyectoInventario-war/web/productoCrearEditar.xhtml @@ -0,0 +1,150 @@ + + + + + + + + + + top + + + + left + + + + right + + + + + + +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+ + + diff --git a/ProyectoInventario-war/web/productoEliminar.xhtml b/ProyectoInventario-war/web/productoEliminar.xhtml new file mode 100644 index 0000000..c17680b --- /dev/null +++ b/ProyectoInventario-war/web/productoEliminar.xhtml @@ -0,0 +1,72 @@ + + + + + + + + + + top + + + + left + + + + right + + + + + + + +

+ + + + + + + + + + + + + + + + + + + + + + + +
+
+ +
+ +
+ + + diff --git a/ProyectoInventario-war/web/productoLista.xhtml b/ProyectoInventario-war/web/productoLista.xhtml new file mode 100644 index 0000000..605069a --- /dev/null +++ b/ProyectoInventario-war/web/productoLista.xhtml @@ -0,0 +1,447 @@ + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + +
+ + + + +
+
+ +
+ +
+
Productos
+
+ +
+
+ + +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + TODO: update below reference to list of available items + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ +
+ +
+ +
+ +
+
+ + + diff --git a/ProyectoInventario-war/web/proveedorCrearEditar.xhtml b/ProyectoInventario-war/web/proveedorCrearEditar.xhtml new file mode 100644 index 0000000..ec59c9b --- /dev/null +++ b/ProyectoInventario-war/web/proveedorCrearEditar.xhtml @@ -0,0 +1,94 @@ + + + + + + + + + + top + + + + left + + + + right + + + + + + + +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ +
+ +
+ + + diff --git a/ProyectoInventario-war/web/proveedorEliminar.xhtml b/ProyectoInventario-war/web/proveedorEliminar.xhtml new file mode 100644 index 0000000..4cf6d83 --- /dev/null +++ b/ProyectoInventario-war/web/proveedorEliminar.xhtml @@ -0,0 +1,61 @@ + + + + + + + + + + top + + + + left + + + + right + + + + + + + +

+ + + + + + + + + + + + + + + + +
+
+ +
+ +
+ + + diff --git a/ProyectoInventario-war/web/proveedorLista.xhtml b/ProyectoInventario-war/web/proveedorLista.xhtml new file mode 100644 index 0000000..f634cc9 --- /dev/null +++ b/ProyectoInventario-war/web/proveedorLista.xhtml @@ -0,0 +1,444 @@ + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + +
+ + + + +
+
+ +
+ +
+
Proveedores
+
+
+
+ + +
+
+
+
+ + + + + +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + +
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+ + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + +
+ +
+ + + + diff --git a/ProyectoInventario-war/web/resources/css/cssLayout.css b/ProyectoInventario-war/web/resources/css/cssLayout.css new file mode 100644 index 0000000..b987ce4 --- /dev/null +++ b/ProyectoInventario-war/web/resources/css/cssLayout.css @@ -0,0 +1,82 @@ + +#top { + position: relative; + background-color: #036fab; + color: white; + padding: 5px; + margin: 0px 0px 10px 0px; +} + +#bottom { + position: relative; + background-color: #c2dfef; + padding: 5px; + margin: 10px 0px 0px 0px; +} + + +#left { + float: left; + background-color: #000000; + padding: 5px; + width: 150px; +} + +#right { + float: right; + background-color: #000000; + padding: 5px; + width: 150px; +} +.abajo{ + position: absolute; + bottom: 0; +} +.center_content { + position: relative; + background-color: #dddddd; + padding: 5px; +} +.titulo { + +font-family: Arial Black; +font-weight: bold; + +font-size: 30px; +color: pink; + +} +.negrita{ + font-family: Arial Black; +} +.centro{ + text-aling: center; +} +.izq{ + text-align: left; +} +.left_content { + background-color: #dddddd; + padding: 5px; + margin-left: 170px; +} + +.right_content { + background-color: #dddddd; + padding: 5px; + margin: 0px 170px 0px 170px; +} + +#top a:link, #top a:visited { + color: white; + font-weight : bold; + text-decoration: none; +} + +#top a:link:hover, #top a:visited:hover { + color: black; + font-weight : bold; + text-decoration : underline; +} + + diff --git a/ProyectoInventario-war/web/resources/css/default.css b/ProyectoInventario-war/web/resources/css/default.css new file mode 100644 index 0000000..3fde41e --- /dev/null +++ b/ProyectoInventario-war/web/resources/css/default.css @@ -0,0 +1,31 @@ +body { + background-color: #ffffff; + font-size: 12px; + font-family: Verdana, "Verdana CE", Arial, "Arial CE", "Lucida Grande CE", lucida, "Helvetica CE", sans-serif; + color: #000000; + margin: 10px; +} + +h1 { + font-family: Arial, "Arial CE", "Lucida Grande CE", lucida, "Helvetica CE", sans-serif; + border-bottom: 1px solid #AFAFAF; + font-size: 25px; + font-weight: bold; + margin: 0px; + padding: 0px; + color: #000000; + text-aling: center; +} + + +a:link, a:visited { + color: #045491; + font-weight : bold; + text-decoration: none; +} + +a:link:hover, a:visited:hover { + color: #000000; + font-weight : bold; + text-decoration : underline; +} diff --git a/ProyectoInventario-war/web/roles.xhtml b/ProyectoInventario-war/web/roles.xhtml new file mode 100644 index 0000000..32d68b2 --- /dev/null +++ b/ProyectoInventario-war/web/roles.xhtml @@ -0,0 +1,93 @@ + + + + + + + + +
Roles
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Nuevo Rol
+ + + + + + + + + + + + +
+ + + +
+ +
+
+ + + +
+ + + + diff --git a/ProyectoInventario-war/web/template/listas.xhtml b/ProyectoInventario-war/web/template/listas.xhtml new file mode 100644 index 0000000..3115c1f --- /dev/null +++ b/ProyectoInventario-war/web/template/listas.xhtml @@ -0,0 +1,50 @@ + + + + + + + + + + Gestor de inventario + + + + + +
+
+ Almacen + + + + + +
+
+ +
+ Content +
+ +
+
+
Derechos reservados XFORCE
+ + +
2024
+
+
+ +
+ + diff --git a/ProyectoInventario-war/web/template/login.xhtml b/ProyectoInventario-war/web/template/login.xhtml new file mode 100644 index 0000000..da2fbd1 --- /dev/null +++ b/ProyectoInventario-war/web/template/login.xhtml @@ -0,0 +1,73 @@ + + + + + + Ingreso + + + + + +
+ + + +
+
+ Almacen + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ diff --git a/ProyectoInventario-war/web/template/principal.xhtml b/ProyectoInventario-war/web/template/principal.xhtml new file mode 100644 index 0000000..895ac3e --- /dev/null +++ b/ProyectoInventario-war/web/template/principal.xhtml @@ -0,0 +1,57 @@ + + + + + + + + + + + + + + + + Gestor de inventario + + + + + +
+
+ Almacen +
+
+ +
+
+ Left +
+
+ +
+ Content +
+
+
+
+ +
Derechos reservados XFORCE
+ + +
2024
+
+ +
+ + diff --git a/ProyectoInventario-war/web/tipos.xhtml b/ProyectoInventario-war/web/tipos.xhtml new file mode 100644 index 0000000..8e3509f --- /dev/null +++ b/ProyectoInventario-war/web/tipos.xhtml @@ -0,0 +1,167 @@ + + + + + + + + + + + + + + +
+ + + + + + + + + + + +

+ + + + + + + + + + + + + + + + + + + + +
+
+ + + +
Nuevo tipo
+ + + + + + + + + + + + +
+ + + +
+ +
+ + + + + + + + + +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ProyectoInventario-war/web/ubicacionCrearEditar.xhtml b/ProyectoInventario-war/web/ubicacionCrearEditar.xhtml new file mode 100644 index 0000000..d80963f --- /dev/null +++ b/ProyectoInventario-war/web/ubicacionCrearEditar.xhtml @@ -0,0 +1,84 @@ + + + + + + + + + + top + + + + left + + + + right + + + + + + + + + + + +

+ + + + + + + + + + + + + + + + + + + +
+
+ + +
+ +
+ + + diff --git a/ProyectoInventario-war/web/ubicacionEliminar.xhtml b/ProyectoInventario-war/web/ubicacionEliminar.xhtml new file mode 100644 index 0000000..02029a9 --- /dev/null +++ b/ProyectoInventario-war/web/ubicacionEliminar.xhtml @@ -0,0 +1,58 @@ + + + + + + + + + + top + + + + left + + + + right + + + + + + + +

+ + + + + + + + + + + + + +
+
+ +
+ +
+ + + diff --git a/ProyectoInventario-war/web/ubicacionLista.xhtml b/ProyectoInventario-war/web/ubicacionLista.xhtml new file mode 100644 index 0000000..7c77013 --- /dev/null +++ b/ProyectoInventario-war/web/ubicacionLista.xhtml @@ -0,0 +1,306 @@ + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + +
+
+ +
+
+
Ubicacion
+
+ + +
+ +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + +
+ + +
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+ + + diff --git a/ProyectoInventario-war/web/usuarioCrearEditar.xhtml b/ProyectoInventario-war/web/usuarioCrearEditar.xhtml new file mode 100644 index 0000000..3e1fcf4 --- /dev/null +++ b/ProyectoInventario-war/web/usuarioCrearEditar.xhtml @@ -0,0 +1,68 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+ + + + + + + + + + + + + + + + + + + + + + + +
+
+ +
+ +
+ + + diff --git a/ProyectoInventario-war/web/usuarioEliminar.xhtml b/ProyectoInventario-war/web/usuarioEliminar.xhtml new file mode 100644 index 0000000..8676915 --- /dev/null +++ b/ProyectoInventario-war/web/usuarioEliminar.xhtml @@ -0,0 +1,63 @@ + + + + + + + + + + + + + + + + + + + + + + + + + +

+ + + + + + + + + + + + + + + + +
+
+ +
+ +
+ + + diff --git a/ProyectoInventario-war/web/usuariosLista.xhtml b/ProyectoInventario-war/web/usuariosLista.xhtml new file mode 100644 index 0000000..92820a3 --- /dev/null +++ b/ProyectoInventario-war/web/usuariosLista.xhtml @@ -0,0 +1,374 @@ + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + +
+ +
+ +
+ +
+
Usuarios
+
+ +
+
+ + +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+
+ + + + +
+ + +
+ +
+ +
+ + + diff --git a/build.xml b/build.xml new file mode 100644 index 0000000..d7bf4d0 --- /dev/null +++ b/build.xml @@ -0,0 +1,61 @@ + + + + + + + + + + + Builds, tests, and runs the project ProyectoInventario. + + + diff --git a/lib/CopyLibs/org-netbeans-modules-java-j2seproject-copylibstask.jar b/lib/CopyLibs/org-netbeans-modules-java-j2seproject-copylibstask.jar new file mode 100644 index 0000000..b545720 Binary files /dev/null and b/lib/CopyLibs/org-netbeans-modules-java-j2seproject-copylibstask.jar differ diff --git a/lib/EclipseLink-GlassFish-v3/javaee-doc-api.jar b/lib/EclipseLink-GlassFish-v3/javaee-doc-api.jar new file mode 100644 index 0000000..9e19d4f Binary files /dev/null and b/lib/EclipseLink-GlassFish-v3/javaee-doc-api.jar differ diff --git a/lib/javaee-endorsed-api-7.0/javaee-doc-api.jar b/lib/javaee-endorsed-api-7.0/javaee-doc-api.jar new file mode 100644 index 0000000..9e19d4f Binary files /dev/null and b/lib/javaee-endorsed-api-7.0/javaee-doc-api.jar differ diff --git a/lib/javaee-endorsed-api-7.0/javax.annotation-api.jar b/lib/javaee-endorsed-api-7.0/javax.annotation-api.jar new file mode 100644 index 0000000..9ab39ff Binary files /dev/null and b/lib/javaee-endorsed-api-7.0/javax.annotation-api.jar differ diff --git a/lib/javaee-endorsed-api-7.0/javax.xml.soap-api.jar b/lib/javaee-endorsed-api-7.0/javax.xml.soap-api.jar new file mode 100644 index 0000000..b9f4d5b Binary files /dev/null and b/lib/javaee-endorsed-api-7.0/javax.xml.soap-api.jar differ diff --git a/lib/javaee-endorsed-api-7.0/jaxb-api-osgi.jar b/lib/javaee-endorsed-api-7.0/jaxb-api-osgi.jar new file mode 100644 index 0000000..8be7c66 Binary files /dev/null and b/lib/javaee-endorsed-api-7.0/jaxb-api-osgi.jar differ diff --git a/lib/javaee-endorsed-api-7.0/jaxws-api.jar b/lib/javaee-endorsed-api-7.0/jaxws-api.jar new file mode 100644 index 0000000..c2ed58b Binary files /dev/null and b/lib/javaee-endorsed-api-7.0/jaxws-api.jar differ diff --git a/lib/javaee-endorsed-api-7.0/jsr181-api.jar b/lib/javaee-endorsed-api-7.0/jsr181-api.jar new file mode 100644 index 0000000..91538a7 Binary files /dev/null and b/lib/javaee-endorsed-api-7.0/jsr181-api.jar differ diff --git a/lib/jpa20-persistence/jakarta.persistence-2.2.3-doc.zip b/lib/jpa20-persistence/jakarta.persistence-2.2.3-doc.zip new file mode 100644 index 0000000..6d042bc Binary files /dev/null and b/lib/jpa20-persistence/jakarta.persistence-2.2.3-doc.zip differ diff --git a/lib/jpa20-persistence/jakarta.persistence-2.2.3.jar b/lib/jpa20-persistence/jakarta.persistence-2.2.3.jar new file mode 100644 index 0000000..22fdc22 Binary files /dev/null and b/lib/jpa20-persistence/jakarta.persistence-2.2.3.jar differ diff --git a/lib/nblibraries.properties b/lib/nblibraries.properties new file mode 100644 index 0000000..24ccba4 --- /dev/null +++ b/lib/nblibraries.properties @@ -0,0 +1,28 @@ +libs.CopyLibs.classpath=\ + ${base}/CopyLibs/org-netbeans-modules-java-j2seproject-copylibstask.jar +libs.CopyLibs.displayName=CopyLibs Task +libs.CopyLibs.prop-version=3.0 +libs.EclipseLink-GlassFish-v3.classpath=\ + ${base}/../../../../../../../../GlassFish_Server4.0/glassfish/modules/org.eclipse.persistence.antlr.jar;\ + ${base}/../../../../../../../../GlassFish_Server4.0/glassfish/modules/org.eclipse.persistence.asm.jar;\ + ${base}/../../../../../../../../GlassFish_Server4.0/glassfish/modules/org.eclipse.persistence.core.jar;\ + ${base}/../../../../../../../../GlassFish_Server4.0/glassfish/modules/org.eclipse.persistence.dbws.jar;\ + ${base}/../../../../../../../../GlassFish_Server4.0/glassfish/modules/org.eclipse.persistence.jpa.jar;\ + ${base}/../../../../../../../../GlassFish_Server4.0/glassfish/modules/org.eclipse.persistence.jpa.jpql.jar;\ + ${base}/../../../../../../../../GlassFish_Server4.0/glassfish/modules/org.eclipse.persistence.jpa.modelgen.processor.jar;\ + ${base}/../../../../../../../../GlassFish_Server4.0/glassfish/modules/org.eclipse.persistence.moxy.jar;\ + ${base}/../../../../../../../../GlassFish_Server4.0/glassfish/modules/org.eclipse.persistence.oracle.jar;\ + ${base}/../../../../../../../../GlassFish_Server4.0/glassfish/modules/javax.persistence.jar +libs.EclipseLink-GlassFish-v3.displayName=EclipseLink from GlassFish +libs.EclipseLink-GlassFish-v3.javadoc=\ + ${base}/EclipseLink-GlassFish-v3/javaee-doc-api.jar +libs.javaee-endorsed-api-7.0.classpath=\ + ${base}/javaee-endorsed-api-7.0/javax.annotation-api.jar;\ + ${base}/javaee-endorsed-api-7.0/javax.xml.soap-api.jar;\ + ${base}/javaee-endorsed-api-7.0/jaxb-api-osgi.jar;\ + ${base}/javaee-endorsed-api-7.0/jaxws-api.jar;\ + ${base}/javaee-endorsed-api-7.0/jsr181-api.jar +libs.javaee-endorsed-api-7.0.displayName=Java EE 7 Endorsed API Library +libs.javaee-endorsed-api-7.0.javadoc=\ + ${base}/javaee-endorsed-api-7.0/javaee-doc-api.jar +libs.javaee-endorsed-api-7.0.prop-maven-dependencies=\n javax.annotation:javax.annotation-api:1.2\n javax.xml.bind:jaxb-api-osgi:2.2.7\n javax.xml.soap:javax.xml.soap-api:1.3.5\n javax.xml.ws:jaxws-api:2.2.8\n javax.jws:jsr181-api:1.0-MR1\n diff --git a/nbproject/ant-deploy.xml b/nbproject/ant-deploy.xml new file mode 100644 index 0000000..fdc06d5 --- /dev/null +++ b/nbproject/ant-deploy.xml @@ -0,0 +1,131 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/nbproject/build-impl.xml b/nbproject/build-impl.xml new file mode 100644 index 0000000..fedfc77 --- /dev/null +++ b/nbproject/build-impl.xml @@ -0,0 +1,660 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set build.dir + Must set build.generated.dir + Must set dist.dir + Must set build.classes.excludes + Must set dist.jar + + + +The libs.CopyLibs.classpath property is not set up. +This property must point to +org-netbeans-modules-java-j2seproject-copylibstask.jar file which is part +of NetBeans IDE installation and is usually located at +<netbeans_installation>/java<version>/ant/extra folder. +Either open the project in the IDE and make sure CopyLibs library +exists or setup the property manually. For example like this: + ant -Dlibs.CopyLibs.classpath=a/path/to/org-netbeans-modules-java-j2seproject-copylibstask.jar + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Browser not found, cannot launch the deployed application. Try to set the BROWSER environment variable. + + + Launching ${browse.url} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/nbproject/genfiles.properties b/nbproject/genfiles.properties new file mode 100644 index 0000000..87198ae --- /dev/null +++ b/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=4389f768 +build.xml.script.CRC32=02fa562d +build.xml.stylesheet.CRC32=7e2ae9c8@1.73 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=4389f768 +nbproject/build-impl.xml.script.CRC32=65862f86 +nbproject/build-impl.xml.stylesheet.CRC32=abdce74a@1.73 diff --git a/nbproject/project.properties b/nbproject/project.properties new file mode 100644 index 0000000..67bf9c7 --- /dev/null +++ b/nbproject/project.properties @@ -0,0 +1,41 @@ +build.classes.excludes=**/*.java,**/*.form,**/.nbattrs +build.dir=build +build.generated.dir=${build.dir}/generated +client.module.uri=ProyectoInventario-war +client.urlPart= +debug.classpath=${javac.classpath}::${jar.content.additional}:${run.classpath} +display.browser=true +dist.dir=dist +dist.jar=${dist.dir}/${jar.name} +endorsed.classpath=\ + ${libs.javaee-endorsed-api-7.0.classpath} +j2ee.appclient.mainclass.args=${j2ee.appclient.tool.args} +j2ee.compile.on.save=true +j2ee.deploy.on.save=true +j2ee.platform=1.7 +j2ee.platform.classpath= +j2ee.platform.embeddableejb.classpath=${j2ee.server.home}/lib/embedded/glassfish-embedded-static-shell.jar +j2ee.platform.wscompile.classpath=${j2ee.server.home}/modules/webservices-osgi.jar +j2ee.platform.wsgen.classpath=${j2ee.server.home}/modules/webservices-osgi.jar:${j2ee.server.home}/modules/endorsed/webservices-api-osgi.jar:${j2ee.server.home}/modules/jaxb-osgi.jar:${j2ee.server.home}/modules/endorsed/jaxb-api-osgi.jar +j2ee.platform.wsimport.classpath=${j2ee.server.home}/modules/webservices-osgi.jar:${j2ee.server.home}/modules/endorsed/webservices-api-osgi.jar:${j2ee.server.home}/modules/jaxb-osgi.jar:${j2ee.server.home}/modules/endorsed/jaxb-api-osgi.jar +j2ee.platform.wsit.classpath= +j2ee.server.type=gfv4ee7 +jar.compress=false +jar.content.additional=\ + ${reference.ProyectoInventario-war.dist-ear}:\ + ${reference.ProyectoInventario-ejb.dist-ear} +jar.name=ProyectoInventario.ear +javac.debug=true +javac.deprecation=false +javac.source=1.7 +javac.target=1.7 +meta.inf=src/conf +no.dependencies=false +platform.active=default_platform +project.ProyectoInventario-ejb=ProyectoInventario-ejb +project.ProyectoInventario-war=ProyectoInventario-war +reference.ProyectoInventario-ejb.dist-ear=${project.ProyectoInventario-ejb}/dist/ProyectoInventario-ejb.jar +reference.ProyectoInventario-war.dist-ear=${project.ProyectoInventario-war}/dist/ProyectoInventario-war.war +resource.dir=setup +run.classpath= +source.root=. diff --git a/nbproject/project.xml b/nbproject/project.xml new file mode 100644 index 0000000..f2f990a --- /dev/null +++ b/nbproject/project.xml @@ -0,0 +1,42 @@ + + + org.netbeans.modules.j2ee.earproject + + + ProyectoInventario + 1.6.5 + + + + ${reference.ProyectoInventario-war.dist-ear} + / + + + ${reference.ProyectoInventario-ejb.dist-ear} + / + + + + + .\lib\nblibraries.properties + + + + ProyectoInventario-ejb + j2ee_ear_archive + + dist-ear + clean-ear + dist-ear + + + ProyectoInventario-war + j2ee_ear_archive + + dist-ear + clean-ear + dist-ear + + + + diff --git a/src/conf/MANIFEST.MF b/src/conf/MANIFEST.MF new file mode 100644 index 0000000..59499bc --- /dev/null +++ b/src/conf/MANIFEST.MF @@ -0,0 +1,2 @@ +Manifest-Version: 1.0 +