Skip to content

AlfredoJonas/PageCRUDofDBOracle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CRUD with the PHP language and ORACLE DB

Build Status

If you do not use a framework to make a software, maybe you have a confusion about how to start or the best option to develop.

In this case, we construct software for creating, read, update and delete data referent to a consulting room dentist, easy, fast, and with little dependencies, perfect for a place without internet or in critic moment that we will have developed

This CRUD software did are developed with:

  • PHP
  • Javascript
  • HTML
  • CSS
  • jQuery
  • Oracle (Yes Oracle is not necessarily more fast DB for develop, but in this case, the investigation is required because we did learn about this in the university)

How work?

  • Run sql scripts with oracle db in the order:
    1. db-files/CentroOdontologico.sql
    2. db-files/datos.sql
  • Server de index.php in app-files/

Have many things the software? (only about data base)

(all sql scripts are in db-files/CentroOdontologico.sql)

TRIGGERS

  • NO PERMITIR MAS DE 8 CONSULTAS AL DIA POR DOCTOR
  • NO PERMITIR MAS DE 3 DOCTORES REALIZANDO TRATAMIENTO POR HORA (TOMANDO EN CUENTA QUE EN PROMEDIO CADA CONSULTA DURA UNA HORA)
  • ACTUALIZAR INVENTARIO CUANDO SE REALICE LA CONSULTA
  • UN EMPLEADO NO PUEDE TENER DOS CARGOS A LA VEZ
  • MAXIMO 12 ORTODONCIAS POR DIA
  • NO SE PUEDEN AGREGAR FECHAS QUE YA PASARON
  • SI SE CREA CARGO_EMPLEADO LA FECHA_FIN DEBE SER NULL

QUERY

  • VALIDAR LISTADO DE DOCTORES DISPONIBLES EN UNA FECHA Y HORA ESPECIFICA(AGREGAR LA HORA POR AHI)
  • TRATAMIENTOS REALIZADOS EN UN DIA DADO
  • HORARIOS DISPONIBLES PARA UN DIA DADO
  • CITAS DE UN DOCTOR DADO EN UN DÍA/RANGO DE FECHAS DADO.
  • HISTORIAL DE CITAS DE UN PACIENTE ORDENADO POR FECHAS.
  • HISTORIAL DE TRATAMIENTOS DE UN PACIENTE ORDENADO POR FECHAS Y SI YA LO PAGÓ O NO.
  • CALCULAR GANANCIAS GENERALES EN UN MES DADO
  • EL DOCTOR DERROCHADOR (EL QUE GASTA MAS DE UN IMPLEMENTO DADO EN SUS TRATAMIENTOS)
  • PACIENTES QUE NO HAN PAGADO COMPLETO
  • VALIDAR QUE LOS DOCTORES DE UN TRATAMIENTO TENGAN UNA ESPECIALIZACIÓN EN ALGO CON RELACIÓN AL TRATAMIENTO
  • VALIDAR QUE HAYA SUFICIENTES IMPLEMENTOS PARA UN TRATAMIENTO
  • PORCENTAJE DE GANANCIA DE LOS TRATAMIENTOS POR MES

RESTRICTIONS

  • CANTIDADES NEGATIVAS EN EL INVENTARIO DE IMPLEMENTOS
  • COSTOS NEGATIVOS
  • CANTIDADES NEGATIVAS EN EL INVENTARIO DE IMPLEMENTOS
  • COSTOS NEGATIVOS

alt text

alt text

alt text

alt text

alt text

alt text

alt text

alt text

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published