You are on page 1of 40

DIAGRAMA CLASES DE USO

CASO DE USO: ACTORES: PROPSITO:

Ingreso de usuarios y bsqueda de partida Administrador, usuario Entregar las partidas solicitadas.

RESUMEN: El usuario del sistema (Administrador usuario) recibe el nuevo cliente que solicita una partida, verifica si existe en el sistema en caso afirmativo procede a imprimirla, si no es as lo busca en los registros fsicos, si lo encuentra lo digita y lo imprime, en caso contrario informa al cliente que no existe. PRECONDICIONES en los libros parroquiales. Haber ingresado al sistema estar registrado

DIAGRAMA DE ESTADO

DIAGRAMA DE TRANSICIN DE ESTADOS

DIAGRAMA DE CLASES

DIAGRAMA ENTIDAD RELACION

DIAGRAMA DE SECUENCIA

DISEO GLOBAL

DISEO DETALLADO REGISTRO DE SIGLIC_USUARIO Antes de ingresar al aplicativo SIGLIC, el usuario debe de tener permisos mediante el registro que se le otorga para ser ejecutado y registrar su acceso al software. Sin ejecutar el registro de usuario, no se podr acceder al aplicativo. Por lo que se puede controlar los accesos. TABLAS MAESTRAS Estas tablas son de acceso restringido, ya que contendrn la informacin que se podr ver en todas los dems formularios por medio de las listas desplegables, adems de ser la informacin bsica en todos los registros. Libro: Los soportes fsicos son libros que van enumerados, esta numeracin la vamos a realizar por medio de este formulario que nos facilitara tener un control de los libros que tenesmos creados tanto en el sistema.

Informacin General: Aqu almacenaremos todos los campos obligatorios de cada persona, como lo es nombres y apellidos, nombre de los padres, abuelos maternos y paternos, fecha de nacimiento. Dicha informacin podr ser visualizada en los formularios de bautizo, confirmacin, defuncin y matrimonio. Presbtero: Esta sera una base de datos de todos los sacerdotes que han realizado la celebracin de sacramentos en la iglesia donde se tiene instalado y funcionando la solucin informtica. MODULO SACRAMENTO All encontramos los submens de bautizo, confirmacin, matrimonio y defuncin. Donde podemos ingresar la informacin de los feligreses adscritos a la capilla, con el fin de llevar registro y control de los sacramentos realizados por los feligreses con informacin detallada por fechas. Bautizo: Permite guardar los principales datos de los feligreses que participan en este sacramento; con el fin de ser consultada en un futuro detallando nombres, fecha, nombre de los padres, abuelos y padrinos.

Confirmacin: En este modulo ingresaremos todos los feligreses que realicen la confirmacin en la iglesia donde se cuente con esta solucin informtica. Se ingresan datos como ya consignados en informacin general ms el nombre de la parroquia donde fue bautizado, el nombre del padrino, y el nombre del presbtero. Matrimonio: En este modulo registramos la informacin tanto de la novia como del novio, identificamos donde fue bautizado cada uno de ellos, el nombre de los testigos ms la informacin ya almacenada en la informacin general del novio y de la novia. Defuncin: Aqu se almacenar la informacin de todas las eucaristas que realicen por concepto de honras fnebres. Identificares datos como causa de muerte, lugar de muerte y dems informacin ya consignada en la informacin general.

DISEO DE BASE DE DATOS USE [SIGI] GO /****** Object: User [sigi] Script Date: 10/09/2011 22:59:17 ******/

CREATE USER [sigi] FOR LOGIN [sigi] WITH DEFAULT_SCHEMA=[dbo] GO /****** Object: Table [dbo].[LIBRO] SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO CREATE TABLE [dbo].[LIBRO]( [BAUT_ID_LIBRO] [int] IDENTITY(1,1) NOT NULL, [BAUT_LIBRO] [varchar](50) NULL, [BAUT_DESCRIPCION] [nchar](10) NULL, CONSTRAINT [PK_LIBRO] PRIMARY KEY CLUSTERED ( [BAUT_ID_LIBRO] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO 10 = OFF, = ON, Script Date: 10/09/2011 22:59:15 ******/

SET ANSI_PADDING OFF GO /****** Object: Table [dbo].[PARROQUIA] ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO CREATE TABLE [dbo].[PARROQUIA]( [ID_PARROQUIA] [int] IDENTITY(1,1) NOT NULL, [NOMBRE_PARROQUIA] [varchar](50) NOT NULL, [ID_CIUDAD] [int] NULL, CONSTRAINT [PK_PARROQUIA] PRIMARY KEY CLUSTERED ( [ID_PARROQUIA] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO SET ANSI_PADDING OFF GO /****** Object: Table [dbo].[PAIS] SET ANSI_NULLS ON GO 11 Script Date: 10/09/2011 22:59:15 ******/ = OFF, = ON, Script Date: 10/09/2011 22:59:15

SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO CREATE TABLE [dbo].[PAIS]( [ID_PAIS] [int] IDENTITY(1,1) NOT NULL, [NOMBRE_PAIS] [varchar](50) NOT NULL, CONSTRAINT [PK_PAIS] PRIMARY KEY CLUSTERED ( [ID_PAIS] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO SET ANSI_PADDING OFF GO /****** Object: Table [dbo].[ROLES] SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO CREATE TABLE [dbo].[ROLES]( [ROL_ID_ROL] [int] IDENTITY(1,1) NOT NULL, [ROL_CODIGO] [varchar](4) NULL, 12 Script Date: 10/09/2011 22:59:15 ******/ = OFF, = ON,

[ROL_DESCRIPCION] [varchar](50) NULL, [FECHA] [date] NULL, CONSTRAINT [PK_ROLES] PRIMARY KEY CLUSTERED ( [ROL_ID_ROL] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO SET ANSI_PADDING OFF GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Primary key' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ROLES', @level2type=N'COLUMN',@level2name=N'ROL_ID_ROL' GO /****** Object: Table [dbo].[PRESBITERO] ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO CREATE TABLE [dbo].[PRESBITERO]( [ID_PRESBITERO] [int] IDENTITY(1,1) NOT NULL, [NOMBRES_PBRO] [varchar](50) NOT NULL, 13 Script Date: 10/09/2011 22:59:15 = OFF, = ON,

[APELLIDOS_PBRO] [varchar](50) NOT NULL, CONSTRAINT [PK_PRESBITERO] PRIMARY KEY CLUSTERED ( [ID_PRESBITERO] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO SET ANSI_PADDING OFF GO /****** Object: UserDefinedFunction [dbo].[ENCRIPTADA] 10/09/2011 22:59:17 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE FUNCTION [dbo].[ENCRIPTADA] ( @clave as varchar(8000) ) returns varchar(8000) AS BEGIN DECLARE @PASS AS VARCHAR(8000) set @PASS=ENCRYPTBYPASSPHRASE('clave',@clave) return @PASS 14 Script Date: = OFF, = ON,

END GO /****** Object: UserDefinedFunction [dbo].[Desncriptar] 10/09/2011 22:59:17 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE FUNCTION [dbo].[Desncriptar] ( @clave varchar(8000) ) RETURNS VARCHAR(8000) AS BEGIN DECLARE @PAS VARCHAR(8000) SET @PAS=DECRYPTBYPASSPHRASE('clave',@clave) return @PAS END GO /****** Object: Table [dbo].[INFORMACION GENERAL] 10/09/2011 22:59:15 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON 15 Script Date: Script Date:

GO CREATE TABLE [dbo].[INFORMACION GENERAL]( [ID_INFORMACION] [int] IDENTITY(1,1) NOT NULL, [NOMBRES] [varchar](50) NOT NULL, [APELLIDOS] [varchar](50) NOT NULL, [FECHA_NACIMIENTO] [date] NOT NULL, [NOMBRE_PADRES] [varchar](50) NOT NULL, [APELLIDO_PADRES] [varchar](50) NOT NULL, [NOMBRE_MADRES] [varchar](50) NOT NULL, [APELLIDO_MADRES] [varchar](50) NOT NULL, [ABUELOS_PATERNOS] [varchar](50) NULL, [ABUELOS_MATERNOS] [varchar](50) NULL, CONSTRAINT [PK_INFORMACION GENERAL] PRIMARY KEY CLUSTERED ( [ID_INFORMACION] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO SET ANSI_PADDING OFF GO /****** Object: Table [dbo].[FORMULARIO] ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON 16 Script Date: 10/09/2011 22:59:15 = OFF, = ON,

GO SET ANSI_PADDING ON GO CREATE TABLE [dbo].[FORMULARIO]( [FORM_ID_FORMULARIO] [int] IDENTITY(1,1) NOT NULL, [FORM_CODIGO] [varchar](4) NULL, [FORM_DESCRIPCION] [varchar](50) NULL, [FORM_ARCHIVO] [varchar](100) NULL, [FECHA] [datetime] NULL, CONSTRAINT [PK_FORMULARIO] PRIMARY KEY CLUSTERED ( [FORM_ID_FORMULARIO] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO SET ANSI_PADDING OFF GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Primary key' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'FORMULARIO', @level2type=N'COLUMN',@level2name=N'FORM_ID_FORMULARIO' GO /****** Object: Table [dbo].[FOLIO] SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON 17 Script Date: 10/09/2011 22:59:15 ******/ = OFF, = ON,

GO SET ANSI_PADDING ON GO CREATE TABLE [dbo].[FOLIO]( [FOLI_ID_FOLIO] [int] IDENTITY(1,1) NOT NULL, [FOLI_ID_LIBRO] [int] NULL, [FOLI_NUMERO] [varchar](4) NULL, CONSTRAINT [PK_FOLIO] PRIMARY KEY CLUSTERED ( [FOLI_ID_FOLIO] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO SET ANSI_PADDING OFF GO /****** Object: Table [dbo].[DEPARTAMENTO] 22:59:15 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO CREATE TABLE [dbo].[DEPARTAMENTO]( [ID_DEPARTAMENTO] [int] IDENTITY(1,1) NOT NULL, 18 Script Date: 10/09/2011 = OFF, = ON,

[ID_PAIS] [int] NOT NULL, [NOMBRE_DEPARTAMENTO] [varchar](50) NOT NULL, CONSTRAINT [PK_DEPARTAMENTO] PRIMARY KEY CLUSTERED ( [ID_DEPARTAMENTO] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO SET ANSI_PADDING OFF GO /****** Object: Table [dbo].[PERMISOS] ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO CREATE TABLE [dbo].[PERMISOS]( [PER_ID_PERMISO] [int] IDENTITY(1,1) NOT NULL, [PER_ID_ROL] [int] NULL, [PER_ID_FORMULARIO] [int] NULL, [PER_CONTROLTOTAL] [varchar](2) NULL, [PER_ESCRITURA] [varchar](2) NULL, [PER_MODIFICAR] [varchar](2) NULL, 19 Script Date: 10/09/2011 22:59:15 = OFF, = ON,

[PER_ELIMINAR] [varchar](2) NULL, [PER_LECTURA] [varchar](2) NULL, [FECHA] [datetime] NULL, CONSTRAINT [PK_PERMISOS] PRIMARY KEY CLUSTERED ( [PER_ID_PERMISO] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO SET ANSI_PADDING OFF GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Primary key' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'PERMISOS', @level2type=N'COLUMN',@level2name=N'PER_ID_PERMISO' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Link to TBL_ROLES table' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'PERMISOS', @level2type=N'COLUMN',@level2name=N'PER_ID_ROL' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Link to TBL_FORMULARIO table' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'PERMISOS', @level2type=N'COLUMN',@level2name=N'PER_ID_FORMULARIO' GO = OFF, = ON,

20

/****** Object: ******/

Table [dbo].[USUARIO]

Script Date: 10/09/2011 22:59:15

SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO CREATE TABLE [dbo].[USUARIO]( [USUA_ID_USUARIO] [int] IDENTITY(1,1) NOT NULL, [USUA_ID_ROL] [int] NOT NULL, [USUA_DOCUMENTO] [varchar](20) NULL, [USUA_NOMBRE] [varchar](20) NULL, [USUA_APELLIDOS] [varchar](50) NULL, [USUA_ID_CIUDAD] [int] NULL, [USUA_DETALLE] [varchar](100) NULL, [USUA_TELEFONO] [varchar](20) NULL, [USUA_CORREO] [varchar](100) NULL, [USUA_NICKNAME] [varchar](20) NULL, [USUA_PASSWORD] [varchar](8000) NULL, [USUA_SEXO] [varchar](10) NULL, [USUA_FECHA] [datetime] NULL, [USUA_PREGUNTA] [varchar](50) NULL, [USUA_RESPUESTA] [varchar](100) NULL, [USUA_TIPO_DOCUMENTO] [varchar](15) NULL, CONSTRAINT [PK_USUARIO] PRIMARY KEY CLUSTERED 21

( [USUA_ID_USUARIO] ASC, [USUA_ID_ROL] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO SET ANSI_PADDING OFF GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Primary key' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'USUARIO', @level2type=N'COLUMN',@level2name=N'USUA_ID_USUARIO' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Link to TBL_ROLES table' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'USUARIO', @level2type=N'COLUMN',@level2name=N'USUA_ID_ROL' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Link to TBL_CIUDAD table' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'USUARIO', @level2type=N'COLUMN',@level2name=N'USUA_ID_CIUDAD' GO /****** Object: StoredProcedure [dbo].[STP_ROLES] 22:59:12 ******/ SET ANSI_NULLS ON GO 22 Script Date: 10/09/2011 = OFF, = ON,

SET QUOTED_IDENTIFIER ON GO CREATE PROCEDURE [dbo].[STP_ROLES] @Operacion as integer, @idRol as int, @codigo as varchar(4), @descripcion as varchar(50), @fecha as date AS BEGIN if @Operacion=1 BEGIN INSERT INTO VALUES(@codigo,@descripcion,@fecha) SET @Operacion=4 END if @Operacion=2 BEGIN UPDATE dbo.ROLES ROL_CODIGO=@codigo,ROL_DESCRIPCION=@descripcion, FECHA=@fecha WHERE ROL_ID_ROL=@idRol SET @Operacion=4 END if @Operacion=3 BEGIN DELETE FROM dbo.ROLES 23 SET dbo.ROLES

WHERE ROL_ID_ROL=@idRol SET @Operacion=4 END IF @Operacion=4 BEGIN SELECT ROL_ID_ROL,ROL_CODIGO,ROL_DESCRIPCION, FECHA FROM dbo.ROLES ORDER BY ROL_CODIGO END END GO /****** Object: StoredProcedure [dbo].[INICIO] 22:59:12 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE PROCEDURE [dbo].[INICIO] @usuario varchar(10), @clave varchar(8000) AS BEGIN SELECT U.USUA_NICKNAME,dbo.Desncriptar(U.USUA_PASSWORD)as 'CLAVE',U.USUA_NOMBRE+' '+U.USUA_APELLIDOS 'NOMBRE',R.ROL_ID_ROL,R.ROL_DESCRIPCION, 24 Script Date: 10/09/2011

as

U.USUA_DOCUMENTO,USUA_ID_USUARIO FROM dbo.USUARIO U,dbo.ROLES R WHERE U.USUA_NICKNAME=@usuario SQL_Latin1_General_CP1_CS_AS COLLATE

AND dbo.Desncriptar(U.USUA_PASSWORD)=@clave COLLATE SQL_Latin1_General_CP1_CS_AS AND U.USUA_ID_ROL=R.ROL_ID_ROL END GO /****** Object: StoredProcedure [dbo].[STP_CARGARFOLIOS] 10/09/2011 22:59:12 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE PROCEDURE [dbo].[STP_CARGARFOLIOS] @IdLibro as int, @TotalFolios as int AS BEGIN DECLARE @CONTADOR AS INT DECLARE @VALOR AS INT SET @CONTADOR=1 WHILE @CONTADOR<=@TotalFolios BEGIN INSERT INTO dbo.FOLIO VALUES(@IdLibro,@CONTADOR) SET @CONTADOR=@CONTADOR+1 END 25 Script Date:

END GO /****** Object: Table [dbo].[MATRIMONIO] ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO CREATE TABLE [dbo].[MATRIMONIO]( [ID_MATRIMONIO] [int] IDENTITY(1,1) NOT NULL, [ID_FOLIO] [int] NOT NULL, [NUMERO_MATRIMONIO] [int] NOT NULL, [FECHA_MATRIMONIO] [date] NOT NULL, [TESTIGO1] [varchar](50) NOT NULL, [TESTIGO2] [varchar](50) NULL, [ID_PRESBITERO] [int] NOT NULL, [ID_NOVIO] [int] NULL, [ID_NOVIA] [int] NULL, [FECHA_BAUTIZO_NOVIO] [date] NULL, [FECHA_BAUTIZO_NOVIA] [date] NULL, CONSTRAINT [PK_MATRIMONIO] PRIMARY KEY CLUSTERED ( [ID_MATRIMONIO] ASC Script Date: 10/09/2011 22:59:15

26

)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO SET ANSI_PADDING OFF GO /****** Object: Table [dbo].[CONFIRMACION] 22:59:15 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO CREATE TABLE [dbo].[CONFIRMACION]( [ID_CONFIRMACION] [int] IDENTITY(1,1) NOT NULL, [ID_FOLIO] [int] NOT NULL, [NUMERO_CONFIRMACION] [int] NOT NULL, [FECHA_CONFIRMACION] [date] NOT NULL, [PADRINO] [varchar](50) NOT NULL, [ID_PRESBITERO] [int] NOT NULL, [ID_INFORMACION] [int] NULL, [ID_PARROQUIA] [int] NULL, CONSTRAINT [PK_CONFIRMACION] PRIMARY KEY CLUSTERED ( [ID_CONFIRMACION] ASC 27

= OFF, = ON,

Script Date: 10/09/2011

)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO SET ANSI_PADDING OFF GO /****** Object: Table [dbo].[CIUDAD] SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO CREATE TABLE [dbo].[CIUDAD]( [ID_CIUDAD] [int] IDENTITY(1,1) NOT NULL, [ID_DEPARTAMENTO] [int] NOT NULL, [NOMBRE_CIUDAD] [varchar](50) NOT NULL, CONSTRAINT [PK_CIUDAD] PRIMARY KEY CLUSTERED ( [ID_CIUDAD] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO SET ANSI_PADDING OFF 28

= OFF, = ON,

Script Date: 10/09/2011 22:59:15 ******/

= OFF, = ON,

GO /****** Object: ******/ Table [dbo].[BAUTIZO] Script Date: 10/09/2011 22:59:15

SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO CREATE TABLE [dbo].[BAUTIZO]( [ID_BAUTIZO] [int] IDENTITY(1,1) NOT NULL, [ID_FOLIO] [int] NOT NULL, [NUMERO_BAUTIZO] [int] NOT NULL, [FECHA_BAUTIZO] [date] NOT NULL, [PADRINOS] [varchar](50) NOT NULL, [ID_PRESBITERO] [int] NOT NULL, [ID_INFORMACION] [int] NULL, CONSTRAINT [PK_BAUTIZO] PRIMARY KEY CLUSTERED ( [ID_BAUTIZO] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO SET ANSI_PADDING OFF GO 29 = OFF, = ON,

/****** Object: Table [dbo].[DEFUNCION] ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO CREATE TABLE [dbo].[DEFUNCION](

Script Date: 10/09/2011 22:59:15

[ID_DEFUNCION] [int] IDENTITY(1,1) NOT NULL, [ID_FOLIO] [int] NOT NULL, [NUMERO_DEFUNCION] [int] NOT NULL, [FECHA_DEFUNCION] [date] NOT NULL, [ESTADOCIVIL] [varchar](50) NOT NULL, [CASADOCON] [varchar](50) NOT NULL, [ID_INFORMACION] [int] NULL, [CAUSA_MUERTE] [varchar](300) NULL, [NUMERO_ACTADEFUNCION] [varchar](15) NULL, [ID_CIUDAD] [int] NULL, [EDAD] [int] NULL, [SEPULTADOEN] [int] NULL, [FECHA_SEPULTURA] [date] NULL, CONSTRAINT [PK_DEFUNCION] PRIMARY KEY CLUSTERED ( [ID_DEFUNCION] ASC

30

)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO SET ANSI_PADDING OFF GO /****** Object: ForeignKey [FK_BAUTIZO_FOLIO] 22:59:15 ******/

= OFF, = ON,

Script Date: 10/09/2011

ALTER TABLE [dbo].[BAUTIZO] WITH CHECK ADD [FK_BAUTIZO_FOLIO] FOREIGN KEY([ID_FOLIO]) REFERENCES [dbo].[FOLIO] ([FOLI_ID_FOLIO]) ON UPDATE CASCADE GO ALTER TABLE [FK_BAUTIZO_FOLIO] GO [dbo].[BAUTIZO] CHECK

CONSTRAINT

CONSTRAINT

/****** Object: ForeignKey [FK_BAUTIZO_INFORMACION GENERAL] Date: 10/09/2011 22:59:15 ******/ ALTER TABLE [dbo].[BAUTIZO] [FK_BAUTIZO_INFORMACION KEY([ID_INFORMACION]) WITH CHECK ADD GENERAL]

Script

CONSTRAINT FOREIGN

REFERENCES [dbo].[INFORMACION GENERAL] ([ID_INFORMACION]) ON UPDATE CASCADE GO ALTER TABLE [dbo].[BAUTIZO] [FK_BAUTIZO_INFORMACION GENERAL] GO /****** Object: ForeignKey [FK_BAUTIZO_PRESBITERO1] 10/09/2011 22:59:15 ******/ 31 Script Date: CHECK CONSTRAINT

ALTER TABLE [dbo].[BAUTIZO] WITH CHECK ADD CONSTRAINT [FK_BAUTIZO_PRESBITERO1] FOREIGN KEY([ID_PRESBITERO]) REFERENCES [dbo].[PRESBITERO] ([ID_PRESBITERO]) ON UPDATE CASCADE GO ALTER TABLE [dbo].[BAUTIZO] [FK_BAUTIZO_PRESBITERO1] GO /****** Object: ForeignKey [FK_CIUDAD_DEPARTAMENTO] 10/09/2011 22:59:15 ******/ Script Date: CHECK CONSTRAINT

ALTER TABLE [dbo].[CIUDAD] WITH CHECK ADD CONSTRAINT [FK_CIUDAD_DEPARTAMENTO] FOREIGN KEY([ID_DEPARTAMENTO]) REFERENCES [dbo].[DEPARTAMENTO] ([ID_DEPARTAMENTO]) ON UPDATE CASCADE GO ALTER TABLE [dbo].[CIUDAD] [FK_CIUDAD_DEPARTAMENTO] GO /****** Object: ForeignKey [FK_CONFIRMACION_FOLIO] 10/09/2011 22:59:15 ******/ Script Date: CHECK CONSTRAINT

ALTER TABLE [dbo].[CONFIRMACION] WITH CHECK ADD CONSTRAINT [FK_CONFIRMACION_FOLIO] FOREIGN KEY([ID_FOLIO]) REFERENCES [dbo].[FOLIO] ([FOLI_ID_FOLIO]) ON UPDATE CASCADE GO ALTER TABLE [dbo].[CONFIRMACION] [FK_CONFIRMACION_FOLIO] GO CHECK CONSTRAINT

32

/****** Object: ForeignKey [FK_CONFIRMACION_INFORMACION GENERAL] Script Date: 10/09/2011 22:59:15 ******/ ALTER TABLE [dbo].[CONFIRMACION] WITH CHECK ADD CONSTRAINT [FK_CONFIRMACION_INFORMACION GENERAL] FOREIGN KEY([ID_INFORMACION]) REFERENCES [dbo].[INFORMACION GENERAL] ([ID_INFORMACION]) ON UPDATE CASCADE GO ALTER TABLE [dbo].[CONFIRMACION] CHECK [FK_CONFIRMACION_INFORMACION GENERAL] GO /****** Object: ForeignKey [FK_CONFIRMACION_PARROQUIA] 10/09/2011 22:59:15 ******/ Script Date: CONSTRAINT

ALTER TABLE [dbo].[CONFIRMACION] WITH CHECK ADD CONSTRAINT [FK_CONFIRMACION_PARROQUIA] FOREIGN KEY([ID_PARROQUIA]) REFERENCES [dbo].[PARROQUIA] ([ID_PARROQUIA]) ON UPDATE CASCADE GO ALTER TABLE [dbo].[CONFIRMACION] [FK_CONFIRMACION_PARROQUIA] GO /****** Object: ForeignKey [FK_CONFIRMACION_PRESBITERO] Date: 10/09/2011 22:59:15 ******/ Script CHECK CONSTRAINT

ALTER TABLE [dbo].[CONFIRMACION] WITH CHECK ADD CONSTRAINT [FK_CONFIRMACION_PRESBITERO] FOREIGN KEY([ID_PRESBITERO]) REFERENCES [dbo].[PRESBITERO] ([ID_PRESBITERO]) ON UPDATE CASCADE GO ALTER TABLE [dbo].[CONFIRMACION] [FK_CONFIRMACION_PRESBITERO] 33 CHECK CONSTRAINT

GO /****** Object: ForeignKey [FK_DEFUNCION_CIUDAD] 10/09/2011 22:59:15 ******/ ALTER TABLE [dbo].[DEFUNCION] WITH CHECK ADD [FK_DEFUNCION_CIUDAD] FOREIGN KEY([ID_CIUDAD]) REFERENCES [dbo].[CIUDAD] ([ID_CIUDAD]) ON UPDATE CASCADE GO ALTER TABLE [dbo].[DEFUNCION] [FK_DEFUNCION_CIUDAD] GO /****** Object: ForeignKey [FK_DEFUNCION_FOLIO] 10/09/2011 22:59:15 ******/ ALTER TABLE [dbo].[DEFUNCION] WITH CHECK ADD [FK_DEFUNCION_FOLIO] FOREIGN KEY([ID_FOLIO]) REFERENCES [dbo].[FOLIO] ([FOLI_ID_FOLIO]) ON UPDATE CASCADE GO ALTER TABLE [dbo].[DEFUNCION] [FK_DEFUNCION_FOLIO] GO /****** Object: ForeignKey [FK_DEFUNCION_INFORMACION GENERAL] Script Date: 10/09/2011 22:59:15 ******/ ALTER TABLE [dbo].[DEFUNCION] [FK_DEFUNCION_INFORMACION KEY([ID_INFORMACION]) WITH CHECK ADD GENERAL] CONSTRAINT FOREIGN CHECK CONSTRAINT Script Date: CHECK CONSTRAINT Script Date:

CONSTRAINT

CONSTRAINT

REFERENCES [dbo].[INFORMACION GENERAL] ([ID_INFORMACION]) ON UPDATE CASCADE GO 34

ALTER TABLE [dbo].[DEFUNCION] [FK_DEFUNCION_INFORMACION GENERAL] GO

CHECK

CONSTRAINT

/****** Object: ForeignKey [FK_DEPARTAMENTO_PAIS] 10/09/2011 22:59:15 ******/

Script Date:

ALTER TABLE [dbo].[DEPARTAMENTO] WITH CHECK ADD CONSTRAINT [FK_DEPARTAMENTO_PAIS] FOREIGN KEY([ID_PAIS]) REFERENCES [dbo].[PAIS] ([ID_PAIS]) ON UPDATE CASCADE GO ALTER TABLE [dbo].[DEPARTAMENTO] [FK_DEPARTAMENTO_PAIS] GO /****** Object: ForeignKey [FK_FOLIO_LIBRO] 22:59:15 ******/ Script Date: 10/09/2011 CHECK CONSTRAINT

ALTER TABLE [dbo].[FOLIO] WITH CHECK ADD [FK_FOLIO_LIBRO] FOREIGN KEY([FOLI_ID_LIBRO]) REFERENCES [dbo].[LIBRO] ([BAUT_ID_LIBRO]) ON UPDATE CASCADE ON DELETE CASCADE GO

CONSTRAINT

ALTER TABLE [dbo].[FOLIO] CHECK CONSTRAINT [FK_FOLIO_LIBRO] GO /****** Object: ForeignKey [FK_MATRIMONIO_FOLIO] 10/09/2011 22:59:15 ******/ ALTER TABLE [dbo].[MATRIMONIO] WITH CHECK ADD [FK_MATRIMONIO_FOLIO] FOREIGN KEY([ID_FOLIO]) REFERENCES [dbo].[FOLIO] ([FOLI_ID_FOLIO]) ON UPDATE CASCADE 35 Script Date:

CONSTRAINT

GO ALTER TABLE [dbo].[MATRIMONIO] [FK_MATRIMONIO_FOLIO] GO /****** Object: ForeignKey [FK_MATRIMONIO_PRESBITERO] 10/09/2011 22:59:15 ******/ Script Date: CHECK CONSTRAINT

ALTER TABLE [dbo].[MATRIMONIO] WITH CHECK ADD CONSTRAINT [FK_MATRIMONIO_PRESBITERO] FOREIGN KEY([ID_PRESBITERO]) REFERENCES [dbo].[PRESBITERO] ([ID_PRESBITERO]) ON UPDATE CASCADE GO ALTER TABLE [dbo].[MATRIMONIO] [FK_MATRIMONIO_PRESBITERO] GO /****** Object: ForeignKey [FK_PERMISOS_FORMULARIO] 10/09/2011 22:59:15 ******/ Script Date: CHECK CONSTRAINT

ALTER TABLE [dbo].[PERMISOS] WITH CHECK ADD CONSTRAINT [FK_PERMISOS_FORMULARIO] FOREIGN KEY([PER_ID_FORMULARIO]) REFERENCES [dbo].[FORMULARIO] ([FORM_ID_FORMULARIO]) ON UPDATE CASCADE GO ALTER TABLE [dbo].[PERMISOS] [FK_PERMISOS_FORMULARIO] GO /****** Object: ForeignKey [FK_PERMISOS_ROLES] 22:59:15 ******/ Script Date: 10/09/2011 CHECK CONSTRAINT

ALTER TABLE [dbo].[PERMISOS] WITH CHECK ADD [FK_PERMISOS_ROLES] FOREIGN KEY([PER_ID_ROL]) REFERENCES [dbo].[ROLES] ([ROL_ID_ROL]) 36

CONSTRAINT

ON UPDATE CASCADE GO ALTER TABLE [dbo].[PERMISOS] [FK_PERMISOS_ROLES] GO /****** Object: ForeignKey [FK_USUARIO_ROLES] 22:59:15 ******/ Script Date: 10/09/2011 CHECK CONSTRAINT

ALTER TABLE [dbo].[USUARIO] WITH CHECK ADD [FK_USUARIO_ROLES] FOREIGN KEY([USUA_ID_ROL]) REFERENCES [dbo].[ROLES] ([ROL_ID_ROL]) ON UPDATE CASCADE GO ALTER TABLE [FK_USUARIO_ROLES] GO [dbo].[USUARIO] CHECK

CONSTRAINT

CONSTRAINT

37

RECURSOS EMPLEADOS

Un computador instalado y configurado para consulta Web al sistema, la siguiente ser su configuracin mnima: Procesador: Intel Core2 Duo Sistema Operativo: Windows Vista Business SP1 Original, en Espaol Memoria: Memoria de 2GB Monitor: Monitor Plano de 19" o superior Tarjeta de Video: Video Integrado Disco Duro: 250GB Serial ATA Hard Drive o superior Unidad ptica: 8X (DVD+/-RW) o superior Teclado: Teclado Espaol Mouse: Mouse ptico Network Interface: Tarjeta de Red Integrada 10/100 o superior. Se necesita un usuario que sera el operador del sistema y este usuario debe tener conocimientos bsicos en sistema operativo Windows. Sistema operativo de Windows Software de Adobe: Adobe Reader 9.0 Software SIGLIC

38

CONCLUSIONES En nuestro proyecto de grados hemos implementado todos los conocimientos que hemos adquirido en el trascurso de cada uno de los semestres acadmicos que se han trabajado en la universidad. Utilizamos nuestro espritu investigativo para buscar una necesidad informtica para poder crear y ofrecer una solucin. En este caso en particular con el proyecto de SIGLIC (Sistema de Informacin para Iglesias Catlicas) proporcionamos una solucin al problema de manejo de informacin y facilitamos la labor referente a la bsqueda de datos en el despacho parroquial, dando una imagen de organizacin e incursin en la tecnologa. El proyecto SIGLIC es una combinacin de tecnologa, procesos administrativos y archivsticos, que respeta en todo momento el derecho cannico y la normatividad eclesistica sobre la informacin de los libros parroquiales donde reposa la informacin de todos los feligreses que realizan sus sacramentos. La solucin informtica cumple con todos los requisitos necesarios para ser utilizados en cualquier Iglesia Catlica.

39

CYBERGRAFA http://www.jmcommunications.com/spanish/rodrigoconversar.html

http://www.mundoarchivistico.com/index.php?menu=articulos&accion=ver&id= 87 http://www.eluniverso.com/2010/01/23/1/1382/iglesia-catolica-apuestanuevas-tecnologias.html http://ange.nireblog.com/ http://es.wikipedia.org/wiki/Microsoft_Visual_Studio#Visual_Studio_2008

40