├── README.md
├── build.xml
├── build
└── classes
│ ├── .netbeans_automatic_build
│ ├── .netbeans_update_resources
│ └── itp_library
│ ├── Books$1.class
│ ├── Books$2.class
│ ├── Books$3.class
│ ├── Books$4.class
│ ├── Books$5.class
│ ├── Books$6.class
│ ├── Books$7.class
│ ├── Books$8.class
│ ├── Books.class
│ ├── Books.form
│ ├── Connect.class
│ ├── Dashboard$1.class
│ ├── Dashboard$10.class
│ ├── Dashboard$11.class
│ ├── Dashboard$12.class
│ ├── Dashboard$2.class
│ ├── Dashboard$3.class
│ ├── Dashboard$4.class
│ ├── Dashboard$5.class
│ ├── Dashboard$6.class
│ ├── Dashboard$7.class
│ ├── Dashboard$8.class
│ ├── Dashboard$9.class
│ ├── Dashboard.class
│ ├── Dashboard.form
│ ├── Lendings$1.class
│ ├── Lendings$2.class
│ ├── Lendings$3.class
│ ├── Lendings$4.class
│ ├── Lendings.class
│ ├── Lendings.form
│ ├── Principal.class
│ ├── Principal.form
│ ├── Reports$1.class
│ ├── Reports$2.class
│ ├── Reports$3.class
│ ├── Reports$4.class
│ ├── Reports.class
│ ├── Reports.form
│ ├── Returns$1.class
│ ├── Returns$2.class
│ ├── Returns$3.class
│ ├── Returns$4.class
│ ├── Returns.class
│ ├── Returns.form
│ ├── UpBooks$1.class
│ ├── UpBooks$10.class
│ ├── UpBooks$11.class
│ ├── UpBooks$12.class
│ ├── UpBooks$13.class
│ ├── UpBooks$14.class
│ ├── UpBooks$15.class
│ ├── UpBooks$16.class
│ ├── UpBooks$17.class
│ ├── UpBooks$18.class
│ ├── UpBooks$19.class
│ ├── UpBooks$2.class
│ ├── UpBooks$20.class
│ ├── UpBooks$21.class
│ ├── UpBooks$22.class
│ ├── UpBooks$23.class
│ ├── UpBooks$24.class
│ ├── UpBooks$25.class
│ ├── UpBooks$3.class
│ ├── UpBooks$4.class
│ ├── UpBooks$5.class
│ ├── UpBooks$6.class
│ ├── UpBooks$7.class
│ ├── UpBooks$8.class
│ ├── UpBooks$9.class
│ ├── UpBooks.class
│ ├── UpBooks.form
│ ├── UpUsers$1.class
│ ├── UpUsers$10.class
│ ├── UpUsers$11.class
│ ├── UpUsers$2.class
│ ├── UpUsers$3.class
│ ├── UpUsers$4.class
│ ├── UpUsers$5.class
│ ├── UpUsers$6.class
│ ├── UpUsers$7.class
│ ├── UpUsers$8.class
│ ├── UpUsers$9.class
│ ├── UpUsers.class
│ ├── UpUsers.form
│ ├── Users$1.class
│ ├── Users$2.class
│ ├── Users$3.class
│ ├── Users$4.class
│ ├── Users$5.class
│ ├── Users$6.class
│ ├── Users$7.class
│ ├── Users$8.class
│ ├── Users.class
│ ├── Users.form
│ └── images
│ ├── 336799ebb339821f342bc5a13386aff2.jpg
│ ├── account-multiple.png
│ ├── book-open-page-variant.png
│ ├── calendar-multiple-check.png
│ ├── calendar-plus.png
│ ├── file-chart.png
│ ├── home-outline.png
│ ├── iStock.jpg
│ └── prestamo.gif
├── library.sql
├── manifest.mf
├── nbproject
├── build-impl.xml
├── genfiles.properties
├── private
│ ├── private.properties
│ └── private.xml
├── project.properties
└── project.xml
└── src
└── itp_library
├── Books.form
├── Books.java
├── Connect.java
├── Dashboard.form
├── Dashboard.java
├── Lendings.form
├── Lendings.java
├── Principal.form
├── Principal.java
├── Reports.form
├── Reports.java
├── Returns.form
├── Returns.java
├── UpBooks.form
├── UpBooks.java
├── UpUsers.form
├── UpUsers.java
├── Users.form
├── Users.java
└── images
├── 336799ebb339821f342bc5a13386aff2.jpg
├── account-multiple.png
├── book-open-page-variant.png
├── calendar-multiple-check.png
├── calendar-plus.png
├── file-chart.png
├── home-outline.png
├── iStock.jpg
└── prestamo.gif
/README.md:
--------------------------------------------------------------------------------
1 | # ITPLibrary
2 | Basic system for managing a library on Java. It's a school project that I did for Object Oriented Programming. Programmed in Java.
3 |
4 | ## Features
5 | ✔️ Graphic interface with Material Design style.\
6 | ✔️ MySQL database connection.\
7 | ✔️ Management of books, loans and returns.\
8 | ✔️ Penalties for late returns.\
9 | ✔️ Movement logs.\
10 | ✔️ Lookup tables.
11 |
12 | ## Previews
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 | ## Getting Started
28 | Import the java project in your preferred IDE and import the database. Just edit the class `Connect.class` with your database connection credentials.
29 |
30 | ### Important
31 | Consider download the [mysql-connector-java-5.1.13](http://www.java2s.com/Code/JarDownload/mysql/mysql-connector-java-5.1.13.jar.zip) and import it to the project before compiling.
32 |
--------------------------------------------------------------------------------
/build.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 | Builds, tests, and runs the project ITP_Library.
12 |
13 |
73 |
74 |
--------------------------------------------------------------------------------
/build/classes/.netbeans_automatic_build:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/.netbeans_automatic_build
--------------------------------------------------------------------------------
/build/classes/.netbeans_update_resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/.netbeans_update_resources
--------------------------------------------------------------------------------
/build/classes/itp_library/Books$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Books$1.class
--------------------------------------------------------------------------------
/build/classes/itp_library/Books$2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Books$2.class
--------------------------------------------------------------------------------
/build/classes/itp_library/Books$3.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Books$3.class
--------------------------------------------------------------------------------
/build/classes/itp_library/Books$4.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Books$4.class
--------------------------------------------------------------------------------
/build/classes/itp_library/Books$5.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Books$5.class
--------------------------------------------------------------------------------
/build/classes/itp_library/Books$6.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Books$6.class
--------------------------------------------------------------------------------
/build/classes/itp_library/Books$7.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Books$7.class
--------------------------------------------------------------------------------
/build/classes/itp_library/Books$8.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Books$8.class
--------------------------------------------------------------------------------
/build/classes/itp_library/Books.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Books.class
--------------------------------------------------------------------------------
/build/classes/itp_library/Connect.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Connect.class
--------------------------------------------------------------------------------
/build/classes/itp_library/Dashboard$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Dashboard$1.class
--------------------------------------------------------------------------------
/build/classes/itp_library/Dashboard$10.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Dashboard$10.class
--------------------------------------------------------------------------------
/build/classes/itp_library/Dashboard$11.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Dashboard$11.class
--------------------------------------------------------------------------------
/build/classes/itp_library/Dashboard$12.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Dashboard$12.class
--------------------------------------------------------------------------------
/build/classes/itp_library/Dashboard$2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Dashboard$2.class
--------------------------------------------------------------------------------
/build/classes/itp_library/Dashboard$3.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Dashboard$3.class
--------------------------------------------------------------------------------
/build/classes/itp_library/Dashboard$4.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Dashboard$4.class
--------------------------------------------------------------------------------
/build/classes/itp_library/Dashboard$5.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Dashboard$5.class
--------------------------------------------------------------------------------
/build/classes/itp_library/Dashboard$6.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Dashboard$6.class
--------------------------------------------------------------------------------
/build/classes/itp_library/Dashboard$7.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Dashboard$7.class
--------------------------------------------------------------------------------
/build/classes/itp_library/Dashboard$8.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Dashboard$8.class
--------------------------------------------------------------------------------
/build/classes/itp_library/Dashboard$9.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Dashboard$9.class
--------------------------------------------------------------------------------
/build/classes/itp_library/Dashboard.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Dashboard.class
--------------------------------------------------------------------------------
/build/classes/itp_library/Lendings$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Lendings$1.class
--------------------------------------------------------------------------------
/build/classes/itp_library/Lendings$2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Lendings$2.class
--------------------------------------------------------------------------------
/build/classes/itp_library/Lendings$3.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Lendings$3.class
--------------------------------------------------------------------------------
/build/classes/itp_library/Lendings$4.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Lendings$4.class
--------------------------------------------------------------------------------
/build/classes/itp_library/Lendings.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Lendings.class
--------------------------------------------------------------------------------
/build/classes/itp_library/Lendings.form:
--------------------------------------------------------------------------------
1 |
2 |
3 |
242 |
--------------------------------------------------------------------------------
/build/classes/itp_library/Principal.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Principal.class
--------------------------------------------------------------------------------
/build/classes/itp_library/Principal.form:
--------------------------------------------------------------------------------
1 |
2 |
3 |
206 |
--------------------------------------------------------------------------------
/build/classes/itp_library/Reports$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Reports$1.class
--------------------------------------------------------------------------------
/build/classes/itp_library/Reports$2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Reports$2.class
--------------------------------------------------------------------------------
/build/classes/itp_library/Reports$3.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Reports$3.class
--------------------------------------------------------------------------------
/build/classes/itp_library/Reports$4.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Reports$4.class
--------------------------------------------------------------------------------
/build/classes/itp_library/Reports.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Reports.class
--------------------------------------------------------------------------------
/build/classes/itp_library/Reports.form:
--------------------------------------------------------------------------------
1 |
2 |
3 |
168 |
--------------------------------------------------------------------------------
/build/classes/itp_library/Returns$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Returns$1.class
--------------------------------------------------------------------------------
/build/classes/itp_library/Returns$2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Returns$2.class
--------------------------------------------------------------------------------
/build/classes/itp_library/Returns$3.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Returns$3.class
--------------------------------------------------------------------------------
/build/classes/itp_library/Returns$4.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Returns$4.class
--------------------------------------------------------------------------------
/build/classes/itp_library/Returns.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Returns.class
--------------------------------------------------------------------------------
/build/classes/itp_library/Returns.form:
--------------------------------------------------------------------------------
1 |
2 |
3 |
242 |
--------------------------------------------------------------------------------
/build/classes/itp_library/UpBooks$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpBooks$1.class
--------------------------------------------------------------------------------
/build/classes/itp_library/UpBooks$10.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpBooks$10.class
--------------------------------------------------------------------------------
/build/classes/itp_library/UpBooks$11.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpBooks$11.class
--------------------------------------------------------------------------------
/build/classes/itp_library/UpBooks$12.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpBooks$12.class
--------------------------------------------------------------------------------
/build/classes/itp_library/UpBooks$13.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpBooks$13.class
--------------------------------------------------------------------------------
/build/classes/itp_library/UpBooks$14.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpBooks$14.class
--------------------------------------------------------------------------------
/build/classes/itp_library/UpBooks$15.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpBooks$15.class
--------------------------------------------------------------------------------
/build/classes/itp_library/UpBooks$16.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpBooks$16.class
--------------------------------------------------------------------------------
/build/classes/itp_library/UpBooks$17.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpBooks$17.class
--------------------------------------------------------------------------------
/build/classes/itp_library/UpBooks$18.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpBooks$18.class
--------------------------------------------------------------------------------
/build/classes/itp_library/UpBooks$19.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpBooks$19.class
--------------------------------------------------------------------------------
/build/classes/itp_library/UpBooks$2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpBooks$2.class
--------------------------------------------------------------------------------
/build/classes/itp_library/UpBooks$20.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpBooks$20.class
--------------------------------------------------------------------------------
/build/classes/itp_library/UpBooks$21.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpBooks$21.class
--------------------------------------------------------------------------------
/build/classes/itp_library/UpBooks$22.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpBooks$22.class
--------------------------------------------------------------------------------
/build/classes/itp_library/UpBooks$23.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpBooks$23.class
--------------------------------------------------------------------------------
/build/classes/itp_library/UpBooks$24.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpBooks$24.class
--------------------------------------------------------------------------------
/build/classes/itp_library/UpBooks$25.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpBooks$25.class
--------------------------------------------------------------------------------
/build/classes/itp_library/UpBooks$3.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpBooks$3.class
--------------------------------------------------------------------------------
/build/classes/itp_library/UpBooks$4.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpBooks$4.class
--------------------------------------------------------------------------------
/build/classes/itp_library/UpBooks$5.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpBooks$5.class
--------------------------------------------------------------------------------
/build/classes/itp_library/UpBooks$6.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpBooks$6.class
--------------------------------------------------------------------------------
/build/classes/itp_library/UpBooks$7.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpBooks$7.class
--------------------------------------------------------------------------------
/build/classes/itp_library/UpBooks$8.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpBooks$8.class
--------------------------------------------------------------------------------
/build/classes/itp_library/UpBooks$9.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpBooks$9.class
--------------------------------------------------------------------------------
/build/classes/itp_library/UpBooks.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpBooks.class
--------------------------------------------------------------------------------
/build/classes/itp_library/UpUsers$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpUsers$1.class
--------------------------------------------------------------------------------
/build/classes/itp_library/UpUsers$10.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpUsers$10.class
--------------------------------------------------------------------------------
/build/classes/itp_library/UpUsers$11.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpUsers$11.class
--------------------------------------------------------------------------------
/build/classes/itp_library/UpUsers$2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpUsers$2.class
--------------------------------------------------------------------------------
/build/classes/itp_library/UpUsers$3.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpUsers$3.class
--------------------------------------------------------------------------------
/build/classes/itp_library/UpUsers$4.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpUsers$4.class
--------------------------------------------------------------------------------
/build/classes/itp_library/UpUsers$5.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpUsers$5.class
--------------------------------------------------------------------------------
/build/classes/itp_library/UpUsers$6.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpUsers$6.class
--------------------------------------------------------------------------------
/build/classes/itp_library/UpUsers$7.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpUsers$7.class
--------------------------------------------------------------------------------
/build/classes/itp_library/UpUsers$8.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpUsers$8.class
--------------------------------------------------------------------------------
/build/classes/itp_library/UpUsers$9.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpUsers$9.class
--------------------------------------------------------------------------------
/build/classes/itp_library/UpUsers.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpUsers.class
--------------------------------------------------------------------------------
/build/classes/itp_library/Users$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Users$1.class
--------------------------------------------------------------------------------
/build/classes/itp_library/Users$2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Users$2.class
--------------------------------------------------------------------------------
/build/classes/itp_library/Users$3.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Users$3.class
--------------------------------------------------------------------------------
/build/classes/itp_library/Users$4.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Users$4.class
--------------------------------------------------------------------------------
/build/classes/itp_library/Users$5.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Users$5.class
--------------------------------------------------------------------------------
/build/classes/itp_library/Users$6.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Users$6.class
--------------------------------------------------------------------------------
/build/classes/itp_library/Users$7.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Users$7.class
--------------------------------------------------------------------------------
/build/classes/itp_library/Users$8.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Users$8.class
--------------------------------------------------------------------------------
/build/classes/itp_library/Users.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Users.class
--------------------------------------------------------------------------------
/build/classes/itp_library/images/336799ebb339821f342bc5a13386aff2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/images/336799ebb339821f342bc5a13386aff2.jpg
--------------------------------------------------------------------------------
/build/classes/itp_library/images/account-multiple.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/images/account-multiple.png
--------------------------------------------------------------------------------
/build/classes/itp_library/images/book-open-page-variant.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/images/book-open-page-variant.png
--------------------------------------------------------------------------------
/build/classes/itp_library/images/calendar-multiple-check.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/images/calendar-multiple-check.png
--------------------------------------------------------------------------------
/build/classes/itp_library/images/calendar-plus.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/images/calendar-plus.png
--------------------------------------------------------------------------------
/build/classes/itp_library/images/file-chart.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/images/file-chart.png
--------------------------------------------------------------------------------
/build/classes/itp_library/images/home-outline.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/images/home-outline.png
--------------------------------------------------------------------------------
/build/classes/itp_library/images/iStock.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/images/iStock.jpg
--------------------------------------------------------------------------------
/build/classes/itp_library/images/prestamo.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/images/prestamo.gif
--------------------------------------------------------------------------------
/library.sql:
--------------------------------------------------------------------------------
1 | -- phpMyAdmin SQL Dump
2 | -- version 4.9.7
3 | -- https://www.phpmyadmin.net/
4 | --
5 | -- Servidor: localhost
6 | -- Tiempo de generación: 13-04-2021 a las 22:56:24
7 | -- Versión del servidor: 5.7.21-log
8 | -- Versión de PHP: 5.6.31
9 |
10 | SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
11 | SET AUTOCOMMIT = 0;
12 | START TRANSACTION;
13 | SET time_zone = "+00:00";
14 |
15 |
16 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
17 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
18 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
19 | /*!40101 SET NAMES utf8mb4 */;
20 |
21 | --
22 | -- Base de datos: `library`
23 | --
24 |
25 | -- --------------------------------------------------------
26 |
27 | --
28 | -- Estructura de tabla para la tabla `books`
29 | --
30 |
31 | CREATE TABLE `books` (
32 | `id` int(11) NOT NULL,
33 | `title` varchar(255) NOT NULL,
34 | `date` varchar(255) NOT NULL,
35 | `author` varchar(255) NOT NULL,
36 | `category` varchar(255) NOT NULL,
37 | `edit` varchar(255) NOT NULL,
38 | `lang` varchar(255) NOT NULL,
39 | `pages` varchar(255) NOT NULL,
40 | `description` varchar(255) NOT NULL,
41 | `ejemplares` varchar(255) NOT NULL,
42 | `stock` int(11) NOT NULL,
43 | `available` int(11) NOT NULL
44 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
45 |
46 | -- --------------------------------------------------------
47 |
48 | --
49 | -- Estructura de tabla para la tabla `lendings`
50 | --
51 |
52 | CREATE TABLE `lendings` (
53 | `id` int(11) NOT NULL,
54 | `user_id` int(11) NOT NULL,
55 | `book_id` int(11) NOT NULL,
56 | `date_out` varchar(255) NOT NULL,
57 | `date_return` varchar(255) NOT NULL
58 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
59 |
60 | -- --------------------------------------------------------
61 |
62 | --
63 | -- Estructura de tabla para la tabla `users`
64 | --
65 |
66 | CREATE TABLE `users` (
67 | `id` int(11) NOT NULL,
68 | `name` varchar(30) NOT NULL,
69 | `last_name_p` varchar(30) NOT NULL,
70 | `last_name_m` varchar(30) NOT NULL,
71 | `domicilio` varchar(250) DEFAULT NULL,
72 | `tel` varchar(25) DEFAULT NULL,
73 | `sanctions` int(11) DEFAULT '0',
74 | `sanc_money` int(11) NOT NULL DEFAULT '0'
75 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
76 |
77 | --
78 | -- Índices para tablas volcadas
79 | --
80 |
81 | --
82 | -- Indices de la tabla `books`
83 | --
84 | ALTER TABLE `books`
85 | ADD PRIMARY KEY (`id`);
86 |
87 | --
88 | -- Indices de la tabla `lendings`
89 | --
90 | ALTER TABLE `lendings`
91 | ADD PRIMARY KEY (`id`);
92 |
93 | --
94 | -- Indices de la tabla `users`
95 | --
96 | ALTER TABLE `users`
97 | ADD PRIMARY KEY (`id`);
98 |
99 | --
100 | -- AUTO_INCREMENT de las tablas volcadas
101 | --
102 |
103 | --
104 | -- AUTO_INCREMENT de la tabla `books`
105 | --
106 | ALTER TABLE `books`
107 | MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
108 |
109 | --
110 | -- AUTO_INCREMENT de la tabla `lendings`
111 | --
112 | ALTER TABLE `lendings`
113 | MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
114 |
115 | --
116 | -- AUTO_INCREMENT de la tabla `users`
117 | --
118 | ALTER TABLE `users`
119 | MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
120 | COMMIT;
121 |
122 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
123 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
124 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
125 |
--------------------------------------------------------------------------------
/manifest.mf:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | X-COMMENT: Main-Class will be added automatically by build
3 |
4 |
--------------------------------------------------------------------------------
/nbproject/genfiles.properties:
--------------------------------------------------------------------------------
1 | build.xml.data.CRC32=cc39cc8b
2 | build.xml.script.CRC32=57d498df
3 | build.xml.stylesheet.CRC32=f85dc8f2@1.97.0.48
4 | # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
5 | # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
6 | nbproject/build-impl.xml.data.CRC32=cc39cc8b
7 | nbproject/build-impl.xml.script.CRC32=1fce2e8c
8 | nbproject/build-impl.xml.stylesheet.CRC32=d549e5cc@1.97.0.48
9 |
--------------------------------------------------------------------------------
/nbproject/private/private.properties:
--------------------------------------------------------------------------------
1 | compile.on.save=true
2 | file.reference.mysql-connector-java-5.1.13-bin.jar=D:\\Respaldo\\Proyectos\\ITP_Library\\mysql-connector-java-5.1.13.jar
3 | file.reference.mysql-connector-java-5.1.13-bin.jar-1=D:\\Respaldo\\Proyectos\\ITP_Library\\mysql-connector-java-5.1.13.jar
4 | user.properties.file=C:\\Users\\Antonio\\AppData\\Roaming\\NetBeans\\12.2\\build.properties
5 |
--------------------------------------------------------------------------------
/nbproject/private/private.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/nbproject/project.properties:
--------------------------------------------------------------------------------
1 | annotation.processing.enabled=true
2 | annotation.processing.enabled.in.editor=false
3 | annotation.processing.processor.options=
4 | annotation.processing.processors.list=
5 | annotation.processing.run.all.processors=true
6 | annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output
7 | build.classes.dir=${build.dir}/classes
8 | build.classes.excludes=**/*.java,**/*.form
9 | # This directory is removed when the project is cleaned:
10 | build.dir=build
11 | build.generated.dir=${build.dir}/generated
12 | build.generated.sources.dir=${build.dir}/generated-sources
13 | # Only compile against the classpath explicitly listed here:
14 | build.sysclasspath=ignore
15 | build.test.classes.dir=${build.dir}/test/classes
16 | build.test.results.dir=${build.dir}/test/results
17 | # Uncomment to specify the preferred debugger connection transport:
18 | #debug.transport=dt_socket
19 | debug.classpath=\
20 | ${run.classpath}
21 | debug.modulepath=\
22 | ${run.modulepath}
23 | debug.test.classpath=\
24 | ${run.test.classpath}
25 | debug.test.modulepath=\
26 | ${run.test.modulepath}
27 | # Files in build.classes.dir which should be excluded from distribution jar
28 | dist.archive.excludes=
29 | # This directory is removed when the project is cleaned:
30 | dist.dir=dist
31 | dist.jar=${dist.dir}/ITP_Library.jar
32 | dist.javadoc.dir=${dist.dir}/javadoc
33 | excludes=
34 | file.reference.mysql-connector-java-5.1.13-bin.jar=C:\\Users\\Antonio\\Desktop\\TAP\\mysql_lib\\mysql-connector-java-5.1.13-bin.jar
35 | file.reference.mysql-connector-java-5.1.13-bin.jar-1=C:\\Program Files\\Java\\mysql_lib\\mysql-connector-java-5.1.13-bin.jar
36 | includes=**
37 | jar.compress=false
38 | javac.classpath=\
39 | ${file.reference.mysql-connector-java-5.1.13-bin.jar}:\
40 | ${libs.absolutelayout.classpath}:\
41 | ${file.reference.mysql-connector-java-5.1.13-bin.jar-1}
42 | # Space-separated list of extra javac options
43 | javac.compilerargs=
44 | javac.deprecation=false
45 | javac.external.vm=true
46 | javac.modulepath=
47 | javac.processormodulepath=
48 | javac.processorpath=\
49 | ${javac.classpath}
50 | javac.source=1.8
51 | javac.target=1.8
52 | javac.test.classpath=\
53 | ${javac.classpath}:\
54 | ${build.classes.dir}
55 | javac.test.modulepath=\
56 | ${javac.modulepath}
57 | javac.test.processorpath=\
58 | ${javac.test.classpath}
59 | javadoc.additionalparam=
60 | javadoc.author=false
61 | javadoc.encoding=${source.encoding}
62 | javadoc.noindex=false
63 | javadoc.nonavbar=false
64 | javadoc.notree=false
65 | javadoc.private=false
66 | javadoc.splitindex=true
67 | javadoc.use=true
68 | javadoc.version=false
69 | javadoc.windowtitle=
70 | main.class=itp_library.Dashboard
71 | manifest.file=manifest.mf
72 | meta.inf.dir=${src.dir}/META-INF
73 | mkdist.disabled=false
74 | platform.active=default_platform
75 | run.classpath=\
76 | ${javac.classpath}:\
77 | ${build.classes.dir}
78 | # Space-separated list of JVM arguments used when running the project.
79 | # You may also define separate properties like run-sys-prop.name=value instead of -Dname=value.
80 | # To set system properties for unit tests define test-sys-prop.name=value:
81 | run.jvmargs=
82 | run.modulepath=\
83 | ${javac.modulepath}
84 | run.test.classpath=\
85 | ${javac.test.classpath}:\
86 | ${build.test.classes.dir}
87 | run.test.modulepath=\
88 | ${javac.test.modulepath}
89 | source.encoding=UTF-8
90 | src.dir=src
91 | test.src.dir=test
92 |
--------------------------------------------------------------------------------
/nbproject/project.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | org.netbeans.modules.java.j2seproject
4 |
5 |
6 | ITP_Library
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/src/itp_library/Connect.java:
--------------------------------------------------------------------------------
1 | package itp_library;
2 |
3 | import java.sql.Connection;
4 | import java.sql.DriverManager;
5 | import java.sql.SQLException;
6 |
7 | public class Connect {
8 | private static Connection conn;
9 | private static final String driver = "com.mysql.jdbc.Driver";
10 | private static final String user = "root";
11 | private static final String pass = "123456";
12 | private static final String db = "library";
13 | private static final String url = "jdbc:mysql://localhost/"+db+"";
14 |
15 | public Connect(){
16 | conn = null;
17 | try{
18 | Class.forName(driver);
19 | conn = DriverManager.getConnection(url, user, pass);
20 |
21 | // Connect?
22 | if(conn != null)
23 | System.out.println("Conexión establecida exitosamente");
24 | }catch (ClassNotFoundException | SQLException ex){
25 | System.out.println("Conexión Fallida:\n\n"+ex);
26 | }
27 | }
28 |
29 | public Connection getConnection(){
30 | return conn;
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/src/itp_library/Lendings.form:
--------------------------------------------------------------------------------
1 |
2 |
3 |
242 |
--------------------------------------------------------------------------------
/src/itp_library/Lendings.java:
--------------------------------------------------------------------------------
1 | /*
2 | * To change this license header, choose License Headers in Project Properties.
3 | * To change this template file, choose Tools | Templates
4 | * and open the template in the editor.
5 | */
6 | package itp_library;
7 |
8 | import java.awt.Color;
9 | import java.sql.Connection;
10 | import java.sql.ResultSet;
11 | import java.sql.SQLException;
12 | import java.sql.Statement;
13 | import java.text.DateFormat;
14 | import java.text.ParseException;
15 | import java.text.SimpleDateFormat;
16 | import java.util.Calendar;
17 | import java.util.Date;
18 | import java.util.GregorianCalendar;
19 | import java.util.logging.Level;
20 | import java.util.logging.Logger;
21 | import javax.swing.JPanel;
22 |
23 | /**
24 | *
25 | * @author Antonio
26 | */
27 | public class Lendings extends javax.swing.JPanel {
28 |
29 | Connect conn;
30 | Connection reg;
31 | /**
32 | * Creates new form Principal
33 | */
34 | public Lendings() {
35 | initComponents();
36 | conn = new Connect();
37 | reg = conn.getConnection();
38 | }
39 |
40 | /**
41 | * This method is called from within the constructor to initialize the form.
42 | * WARNING: Do NOT modify this code. The content of this method is always
43 | * regenerated by the Form Editor.
44 | */
45 | @SuppressWarnings("unchecked")
46 | // //GEN-BEGIN:initComponents
47 | private void initComponents() {
48 |
49 | body = new javax.swing.JPanel();
50 | Title = new javax.swing.JLabel();
51 | Text1 = new javax.swing.JLabel();
52 | Text2 = new javax.swing.JLabel();
53 | jSeparator1 = new javax.swing.JSeparator();
54 | jSeparator2 = new javax.swing.JSeparator();
55 | jSeparator3 = new javax.swing.JSeparator();
56 | book_id = new javax.swing.JTextField();
57 | folio = new javax.swing.JTextField();
58 | button = new javax.swing.JPanel();
59 | jLabel1 = new javax.swing.JLabel();
60 | Image = new javax.swing.JLabel();
61 |
62 | setBackground(new java.awt.Color(255, 255, 255));
63 | setMinimumSize(new java.awt.Dimension(750, 430));
64 | setPreferredSize(new java.awt.Dimension(750, 430));
65 | setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
66 |
67 | body.setBackground(new java.awt.Color(255, 255, 255));
68 | body.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
69 | add(body, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, -1, -1));
70 |
71 | Title.setFont(new java.awt.Font("Segoe UI", 0, 24)); // NOI18N
72 | Title.setText("Nuevo Préstamo");
73 | add(Title, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 10, -1, -1));
74 |
75 | Text1.setFont(new java.awt.Font("Segoe UI", 0, 14)); // NOI18N
76 | Text1.setText("Libro ID");
77 | add(Text1, new org.netbeans.lib.awtextra.AbsoluteConstraints(470, 150, -1, -1));
78 |
79 | Text2.setFont(new java.awt.Font("Segoe UI", 0, 14)); // NOI18N
80 | Text2.setText("Folio Usuario");
81 | add(Text2, new org.netbeans.lib.awtextra.AbsoluteConstraints(470, 50, -1, -1));
82 |
83 | jSeparator1.setForeground(new java.awt.Color(0, 153, 255));
84 | jSeparator1.setPreferredSize(new java.awt.Dimension(200, 10));
85 | add(jSeparator1, new org.netbeans.lib.awtextra.AbsoluteConstraints(470, 210, 260, 10));
86 |
87 | jSeparator2.setForeground(new java.awt.Color(0, 153, 255));
88 | jSeparator2.setPreferredSize(new java.awt.Dimension(200, 10));
89 | add(jSeparator2, new org.netbeans.lib.awtextra.AbsoluteConstraints(470, 110, 260, 10));
90 |
91 | jSeparator3.setForeground(new java.awt.Color(204, 204, 204));
92 | jSeparator3.setOrientation(javax.swing.SwingConstants.VERTICAL);
93 | jSeparator3.setPreferredSize(new java.awt.Dimension(200, 10));
94 | add(jSeparator3, new org.netbeans.lib.awtextra.AbsoluteConstraints(450, 20, 10, 350));
95 |
96 | book_id.setFont(new java.awt.Font("Segoe UI", 0, 12)); // NOI18N
97 | book_id.setForeground(new java.awt.Color(102, 102, 102));
98 | book_id.setText("Ingrese el ID del Libro a prestar");
99 | book_id.setBorder(null);
100 | book_id.addMouseListener(new java.awt.event.MouseAdapter() {
101 | public void mousePressed(java.awt.event.MouseEvent evt) {
102 | book_idMousePressed(evt);
103 | }
104 | });
105 | book_id.addActionListener(new java.awt.event.ActionListener() {
106 | public void actionPerformed(java.awt.event.ActionEvent evt) {
107 | book_idActionPerformed(evt);
108 | }
109 | });
110 | add(book_id, new org.netbeans.lib.awtextra.AbsoluteConstraints(470, 180, 260, 30));
111 |
112 | folio.setFont(new java.awt.Font("Segoe UI", 0, 12)); // NOI18N
113 | folio.setForeground(new java.awt.Color(102, 102, 102));
114 | folio.setText("Ingrese el folio del usuario");
115 | folio.setBorder(null);
116 | folio.addMouseListener(new java.awt.event.MouseAdapter() {
117 | public void mousePressed(java.awt.event.MouseEvent evt) {
118 | folioMousePressed(evt);
119 | }
120 | });
121 | add(folio, new org.netbeans.lib.awtextra.AbsoluteConstraints(470, 80, 260, 30));
122 |
123 | button.setBackground(new java.awt.Color(18, 90, 173));
124 | button.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
125 | button.addMouseListener(new java.awt.event.MouseAdapter() {
126 | public void mouseEntered(java.awt.event.MouseEvent evt) {
127 | buttonMouseEntered(evt);
128 | }
129 | public void mouseExited(java.awt.event.MouseEvent evt) {
130 | buttonMouseExited(evt);
131 | }
132 | public void mousePressed(java.awt.event.MouseEvent evt) {
133 | buttonMousePressed(evt);
134 | }
135 | });
136 | button.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
137 |
138 | jLabel1.setFont(new java.awt.Font("Segoe UI", 1, 18)); // NOI18N
139 | jLabel1.setForeground(new java.awt.Color(255, 255, 255));
140 | jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
141 | jLabel1.setText("Prestar");
142 | button.add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(100, 10, -1, -1));
143 |
144 | add(button, new org.netbeans.lib.awtextra.AbsoluteConstraints(470, 270, 260, 50));
145 |
146 | Image.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
147 | Image.setIcon(new javax.swing.ImageIcon(getClass().getResource("/itp_library/images/prestamo.gif"))); // NOI18N
148 | Image.setMaximumSize(new java.awt.Dimension(750, 430));
149 | Image.setMinimumSize(new java.awt.Dimension(750, 430));
150 | add(Image, new org.netbeans.lib.awtextra.AbsoluteConstraints(-180, -140, -1, -1));
151 | }// //GEN-END:initComponents
152 |
153 | private void book_idActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_book_idActionPerformed
154 | // TODO add your handling code here:
155 | }//GEN-LAST:event_book_idActionPerformed
156 |
157 | private void folioMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_folioMousePressed
158 | if(folio.getText().equals("Ingrese el folio del usuario"))
159 | folio.setText("");
160 | if(book_id.getText().equals("") || book_id.getText() == null || book_id.getText().equals(" "))
161 | book_id.setText("Ingrese el ID del Libro a prestar");
162 | }//GEN-LAST:event_folioMousePressed
163 |
164 | private void book_idMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_book_idMousePressed
165 | if(book_id.getText().equals("Ingrese el ID del Libro a prestar"))
166 | book_id.setText("");
167 | if(folio.getText().equals("") || folio.getText() == null || folio.getText().equals(" "))
168 | folio.setText("Ingrese el folio del usuario");
169 | }//GEN-LAST:event_book_idMousePressed
170 |
171 | private void buttonMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_buttonMouseEntered
172 | setColor(button);
173 | }//GEN-LAST:event_buttonMouseEntered
174 |
175 | private void buttonMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_buttonMouseExited
176 | resetColor(button);
177 | }//GEN-LAST:event_buttonMouseExited
178 | // PRESTAR
179 | private void buttonMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_buttonMousePressed
180 | String fol = folio.getText();
181 | String book = book_id.getText();
182 | int intfol = 0;
183 |
184 | // Conditions
185 | if(fol.equals("") || book.equals("")){
186 | javax.swing.JOptionPane.showMessageDialog(this, "Debe llenar todos los campos \n", "AVISO", javax.swing.JOptionPane.INFORMATION_MESSAGE);
187 | folio.requestFocus();
188 | }
189 | else{
190 | try
191 | {
192 | intfol = Integer.parseInt(folio.getText());
193 |
194 | if(intfol <= 0){
195 | javax.swing.JOptionPane.showMessageDialog(this, "El folio del usuario debe ser mayor a 0. \n", "AVISO", javax.swing.JOptionPane.INFORMATION_MESSAGE);
196 | folio.requestFocus();
197 | }
198 | }catch(Exception ex){
199 | javax.swing.JOptionPane.showMessageDialog(this, "El folio del usuario debe ser un número entero. \n", "AVISO", javax.swing.JOptionPane.INFORMATION_MESSAGE);
200 | folio.requestFocus();
201 | }
202 | }
203 |
204 | try {
205 | // Verificamos el usuario
206 | boolean pase = UserExist(intfol);
207 | if(!pase){
208 | javax.swing.JOptionPane.showMessageDialog(this, "No existe ningún usuario con ese Folio. \n", "AVISO", javax.swing.JOptionPane.INFORMATION_MESSAGE);
209 | folio.requestFocus();
210 | }
211 | // Verificamos el libro
212 | else if(!BookExist(book)){
213 | javax.swing.JOptionPane.showMessageDialog(this, "No existe ningún libro con esa ID. \n", "AVISO", javax.swing.JOptionPane.INFORMATION_MESSAGE);
214 | book_id.requestFocus();
215 | }
216 | else if(CheckLending(intfol, book)){
217 | javax.swing.JOptionPane.showMessageDialog(this, "Esa persona ya cuenta con el préstamo de ese mismo Libro. \n", "AVISO", javax.swing.JOptionPane.INFORMATION_MESSAGE);
218 | book_id.requestFocus();
219 | }
220 | else if(!BookAvailable(book)){
221 | javax.swing.JOptionPane.showMessageDialog(this, "Ya no hay más libros con esa ID para prestar. \n", "AVISO", javax.swing.JOptionPane.INFORMATION_MESSAGE);
222 | book_id.requestFocus();
223 | }
224 | else{
225 | InsertLending(intfol, book);// Insertamos el prestamo a la DB.
226 | folio.setText("");
227 | book_id.setText("");
228 | }
229 |
230 | } catch (SQLException ex) {
231 | Logger.getLogger(Lendings.class.getName()).log(Level.SEVERE, null, ex);
232 | }
233 | }//GEN-LAST:event_buttonMousePressed
234 |
235 | void setColor(JPanel panel){
236 | panel.setBackground(new Color(21,101,192));
237 | }
238 | void resetColor(JPanel panel){
239 | panel.setBackground(new Color(18,90,173));
240 | }
241 |
242 | public boolean UserExist(int id) throws SQLException{
243 | boolean res = false;
244 | Statement stm = reg.createStatement();
245 | ResultSet re = stm.executeQuery("SELECT `id` FROM `users` WHERE `id` = '"+id+"' LIMIT 1");
246 | if(re.next())
247 | res = true;
248 |
249 | return res;
250 | }
251 |
252 | public boolean BookExist(String bookid) throws SQLException{
253 | boolean res = false;
254 | Statement stm = reg.createStatement();
255 | ResultSet re = stm.executeQuery("SELECT `id` FROM `books` WHERE `id` = '"+bookid+"' LIMIT 1");
256 | if(re.next())
257 | res = true;
258 |
259 | return res;
260 | }
261 |
262 | public boolean BookAvailable(String bookid) throws SQLException{
263 | boolean res = false;
264 | Statement stm = reg.createStatement();
265 | ResultSet re = stm.executeQuery("SELECT `available` FROM `books` WHERE `id` = '"+bookid+"' LIMIT 1");
266 | if(re.next()){
267 | int av = Integer.parseInt(re.getString("available"));
268 | if(av >= 1)
269 | res = true;
270 | }
271 |
272 | return res;
273 | }
274 |
275 | public boolean CheckSanction(int userid, String bookid) throws SQLException, ParseException{
276 | boolean res = false;
277 | Statement stm = reg.createStatement();
278 | ResultSet re = stm.executeQuery("SELECT * FROM `lendings` WHERE `id` = '"+bookid+"' AND `user_id` = '"+userid+"' LIMIT 1");
279 | System.out.println("1");
280 | if(re.next()){
281 | System.out.println("2");
282 | Date ahora = new Date();
283 | Date returned = deStringToDate(re.getString("date_return"));
284 | System.out.println("2");
285 | int days = diferenciasDeFechas(returned, ahora);
286 | System.out.println("3");
287 | System.out.println(days);
288 | int days2 = diferenciasDeFechas(ahora, returned);
289 | System.out.println(days2);
290 | if(days <= 0)
291 | res = true;
292 | System.out.println("4");
293 | }
294 | System.out.println("5");
295 | return res;
296 | }
297 |
298 | public boolean CheckLending(int userid, String bookid) throws SQLException{
299 | boolean res = false;
300 | Statement stm = reg.createStatement();
301 | ResultSet re = stm.executeQuery("SELECT * FROM `lendings` WHERE `user_id` = '"+userid+"' AND `book_id` = '"+ bookid +"'");
302 | if(re.next()){
303 | res = true;
304 | }
305 |
306 | return res;
307 | }
308 |
309 | public void InsertLending(int id, String bookid) throws SQLException{
310 | Statement stm = reg.createStatement();
311 | String date = getFechaActual();
312 | Date ahora = new Date();
313 | Date devol = sumarFechasDias(ahora, 5);//Sumamos 5 días a la fecha actual.
314 | SimpleDateFormat formateador = new SimpleDateFormat("dd-MM-yyyy");
315 | String dev = formateador.format(devol);
316 | stm.executeUpdate("INSERT INTO `lendings` (`id`, `user_id`, `book_id`, `date_out`, `date_return`) VALUES (NULL, '"+id+"', '"+ bookid +"', '"+ date +"', '"+dev+"')");
317 | stm.executeUpdate("UPDATE `books` SET `available` = available-1 WHERE `id` = '"+ bookid +"';");
318 | javax.swing.JOptionPane.showMessageDialog(this, "¡Prestamo realizado correctamente! \n", "HECHO", javax.swing.JOptionPane.INFORMATION_MESSAGE);
319 |
320 | }
321 |
322 | public void Devolutions(int fo, String bookid) throws SQLException, ParseException{
323 | Statement stm = reg.createStatement();
324 | int days = -1;
325 | boolean ready = false;
326 | do{
327 | ResultSet re = stm.executeQuery("SELECT * FROM `lendings` WHERE `book_id` = '"+bookid+"' AND `user_id` = '"+fo+"' LIMIT 1");
328 | if(re.next()){
329 | Date ahora = new Date();
330 | Date returned = deStringToDate(re.getString("date_return"));
331 | days = diferenciasDeFechas(ahora, returned);
332 | }
333 | ready = true;
334 | }while(!ready);
335 | if(ready){
336 | stm.executeUpdate("DELETE FROM `lendings` WHERE `book_id` = '"+ bookid +"' AND `user_id` = '"+ fo +"' LIMIT 1");
337 | stm.executeUpdate("UPDATE `books` SET `available` = available+1 WHERE `id` = '"+ bookid +"';");
338 | if(days <= 0){
339 | int money = 0;
340 | money = days * -1;
341 | int cost = 5;// Costo por día retardado.
342 | money = money * cost;
343 | stm.executeUpdate("UPDATE `users` SET `sanctions` = sanctions+1, `sanc_money` = sanc_money+'"+ money +"' WHERE `id` = '"+ fo +"';");
344 | javax.swing.JOptionPane.showMessageDialog(this, "¡SANCIONADO POR ENTREGA A DESTIEMPO! ($"+money+") \n", "AVISO", javax.swing.JOptionPane.INFORMATION_MESSAGE);
345 | }
346 | javax.swing.JOptionPane.showMessageDialog(this, "¡Devolución realizada correctamente! \n", "HECHO", javax.swing.JOptionPane.INFORMATION_MESSAGE);
347 |
348 | }
349 | }
350 |
351 | public static String getFechaActual() {
352 | Date ahora = new Date();
353 | SimpleDateFormat formateador = new SimpleDateFormat("dd-MM-yyyy");
354 | return formateador.format(ahora);
355 | }
356 |
357 | public static java.sql.Date sumarFechasDias(java.util.Date fch, int dias) {
358 | Calendar cal = new GregorianCalendar();
359 | cal.setTimeInMillis(fch.getTime());
360 | cal.add(Calendar.DATE, dias);
361 | return new java.sql.Date(cal.getTimeInMillis());
362 | }
363 |
364 | //Diferencias entre dos fechas
365 | //@param fechaInicial La fecha de inicio
366 | //@param fechaFinal La fecha de fin
367 | //@return Retorna el numero de dias entre dos fechas
368 | public static synchronized int diferenciasDeFechas(Date fechaInicial, Date fechaFinal) throws ParseException {
369 |
370 | DateFormat df = DateFormat.getDateInstance(DateFormat.MEDIUM);
371 | String fechaInicioString = df.format(fechaInicial);
372 | try {
373 | fechaInicial = df.parse(fechaInicioString);
374 | } catch (ParseException ex) {
375 | }
376 |
377 | String fechaFinalString = df.format(fechaFinal);
378 | fechaFinal = df.parse(fechaFinalString);
379 |
380 | long fechaInicialMs = fechaInicial.getTime();
381 | long fechaFinalMs = fechaFinal.getTime();
382 | long diferencia = fechaFinalMs - fechaInicialMs;
383 | double dias = Math.floor(diferencia / (1000 * 60 * 60 * 24));
384 | return ((int) dias);
385 | }
386 |
387 | //Devuele un java.util.Date desde un String en formato dd-MM-yyyy
388 | //@param La fecha a convertir a formato date
389 | //@return Retorna la fecha en formato Date
390 | public static synchronized java.util.Date deStringToDate(String fecha) {
391 | SimpleDateFormat formatoDelTexto = new SimpleDateFormat("dd-MM-yyyy");
392 | Date fechaEnviar = null;
393 | try {
394 | fechaEnviar = formatoDelTexto.parse(fecha);
395 | return fechaEnviar;
396 | } catch (ParseException ex) {
397 | ex.printStackTrace();
398 | return null;
399 | }
400 | }
401 |
402 | // Variables declaration - do not modify//GEN-BEGIN:variables
403 | private javax.swing.JLabel Image;
404 | private javax.swing.JLabel Text1;
405 | private javax.swing.JLabel Text2;
406 | private javax.swing.JLabel Title;
407 | private javax.swing.JPanel body;
408 | private javax.swing.JTextField book_id;
409 | private javax.swing.JPanel button;
410 | private javax.swing.JTextField folio;
411 | private javax.swing.JLabel jLabel1;
412 | private javax.swing.JSeparator jSeparator1;
413 | private javax.swing.JSeparator jSeparator2;
414 | private javax.swing.JSeparator jSeparator3;
415 | // End of variables declaration//GEN-END:variables
416 | }
417 |
--------------------------------------------------------------------------------
/src/itp_library/Principal.form:
--------------------------------------------------------------------------------
1 |
2 |
3 |
206 |
--------------------------------------------------------------------------------
/src/itp_library/Principal.java:
--------------------------------------------------------------------------------
1 | /*
2 | * To change this license header, choose License Headers in Project Properties.
3 | * To change this template file, choose Tools | Templates
4 | * and open the template in the editor.
5 | */
6 | package itp_library;
7 |
8 | /**
9 | *
10 | * @author Antonio
11 | */
12 | public class Principal extends javax.swing.JPanel {
13 |
14 | /**
15 | * Creates new form Principal
16 | */
17 | public Principal() {
18 | initComponents();
19 | }
20 |
21 | /**
22 | * This method is called from within the constructor to initialize the form.
23 | * WARNING: Do NOT modify this code. The content of this method is always
24 | * regenerated by the Form Editor.
25 | */
26 | @SuppressWarnings("unchecked")
27 | // //GEN-BEGIN:initComponents
28 | private void initComponents() {
29 |
30 | body = new javax.swing.JPanel();
31 | Title = new javax.swing.JLabel();
32 | Text1 = new javax.swing.JLabel();
33 | jLabel1 = new javax.swing.JLabel();
34 | jLabel2 = new javax.swing.JLabel();
35 | jLabel3 = new javax.swing.JLabel();
36 | Image = new javax.swing.JLabel();
37 | jLabel4 = new javax.swing.JLabel();
38 | jLabel5 = new javax.swing.JLabel();
39 | jLabel6 = new javax.swing.JLabel();
40 | jLabel7 = new javax.swing.JLabel();
41 | jLabel8 = new javax.swing.JLabel();
42 | jLabel9 = new javax.swing.JLabel();
43 |
44 | setBackground(new java.awt.Color(255, 255, 255));
45 | setMinimumSize(new java.awt.Dimension(750, 430));
46 | setPreferredSize(new java.awt.Dimension(750, 430));
47 | setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
48 |
49 | body.setBackground(new java.awt.Color(255, 255, 255));
50 | body.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
51 | add(body, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, -1, -1));
52 |
53 | Title.setFont(new java.awt.Font("Segoe UI", 0, 24)); // NOI18N
54 | Title.setText("Bienvenido");
55 | add(Title, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 10, -1, -1));
56 |
57 | Text1.setFont(new java.awt.Font("Segoe UI", 0, 14)); // NOI18N
58 | Text1.setText("Sistema de Gestión para Biblioteca Pública. Controle y administre de");
59 | add(Text1, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 70, -1, -1));
60 |
61 | jLabel1.setFont(new java.awt.Font("Segoe UI", 0, 14)); // NOI18N
62 | jLabel1.setText("forma óptima y fácil el flujo de préstamos y devoluciones de Libros. ");
63 | add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 90, -1, -1));
64 |
65 | jLabel2.setFont(new java.awt.Font("Segoe UI", 0, 14)); // NOI18N
66 | jLabel2.setText("Esta herramienta le permitirá llevar un control completo y detallado de su Biblioteca,");
67 | add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 130, -1, -1));
68 |
69 | jLabel3.setFont(new java.awt.Font("Segoe UI", 0, 14)); // NOI18N
70 | jLabel3.setText("tendrá acceso a herramientas especiales para tareas específicas, como lo son:");
71 | add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 150, -1, -1));
72 |
73 | Image.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
74 | Image.setIcon(new javax.swing.ImageIcon(getClass().getResource("/itp_library/images/336799ebb339821f342bc5a13386aff2.jpg"))); // NOI18N
75 | add(Image, new org.netbeans.lib.awtextra.AbsoluteConstraints(450, 80, -1, -1));
76 |
77 | jLabel4.setFont(new java.awt.Font("Segoe UI", 0, 14)); // NOI18N
78 | jLabel4.setText("• Sección de Reportes de acciones en el sistema");
79 | add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 300, 330, -1));
80 |
81 | jLabel5.setFont(new java.awt.Font("Segoe UI", 0, 14)); // NOI18N
82 | jLabel5.setText("• Préstamos");
83 | add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 200, 170, -1));
84 |
85 | jLabel6.setFont(new java.awt.Font("Segoe UI", 0, 14)); // NOI18N
86 | jLabel6.setText("• Devoluciones");
87 | add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 220, 170, -1));
88 |
89 | jLabel7.setFont(new java.awt.Font("Segoe UI", 0, 14)); // NOI18N
90 | jLabel7.setText("• Registro de Usuarios y Libros Nuevos");
91 | add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 240, 320, -1));
92 |
93 | jLabel8.setFont(new java.awt.Font("Segoe UI", 0, 14)); // NOI18N
94 | jLabel8.setText("• Edición de Usuarios y Libros existentes");
95 | add(jLabel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 260, 330, -1));
96 |
97 | jLabel9.setFont(new java.awt.Font("Segoe UI", 0, 14)); // NOI18N
98 | jLabel9.setText("• Eliminar todo tipo de Registros");
99 | add(jLabel9, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 280, 330, -1));
100 | }// //GEN-END:initComponents
101 |
102 |
103 | // Variables declaration - do not modify//GEN-BEGIN:variables
104 | private javax.swing.JLabel Image;
105 | private javax.swing.JLabel Text1;
106 | private javax.swing.JLabel Title;
107 | private javax.swing.JPanel body;
108 | private javax.swing.JLabel jLabel1;
109 | private javax.swing.JLabel jLabel2;
110 | private javax.swing.JLabel jLabel3;
111 | private javax.swing.JLabel jLabel4;
112 | private javax.swing.JLabel jLabel5;
113 | private javax.swing.JLabel jLabel6;
114 | private javax.swing.JLabel jLabel7;
115 | private javax.swing.JLabel jLabel8;
116 | private javax.swing.JLabel jLabel9;
117 | // End of variables declaration//GEN-END:variables
118 | }
119 |
--------------------------------------------------------------------------------
/src/itp_library/Reports.form:
--------------------------------------------------------------------------------
1 |
2 |
3 |
168 |
--------------------------------------------------------------------------------
/src/itp_library/Reports.java:
--------------------------------------------------------------------------------
1 | /*
2 | * To change this license header, choose License Headers in Project Properties.
3 | * To change this template file, choose Tools | Templates
4 | * and open the template in the editor.
5 | */
6 | package itp_library;
7 |
8 | import java.awt.Color;
9 | import java.sql.Connection;
10 | import java.sql.ResultSet;
11 | import java.sql.SQLException;
12 | import java.sql.Statement;
13 | import java.util.logging.Level;
14 | import java.util.logging.Logger;
15 | import javax.swing.DefaultListModel;
16 | import javax.swing.JPanel;
17 |
18 | /**
19 | *
20 | * @author Antonio
21 | */
22 | public class Reports extends javax.swing.JPanel {
23 |
24 | Connect conn;
25 | Connection reg;
26 | /**
27 | * Creates new form Principal
28 | */
29 | public Reports() {
30 | initComponents();
31 | conn = new Connect();
32 | reg = conn.getConnection();
33 | try {
34 | GetReports();
35 | } catch (SQLException ex) {
36 | Logger.getLogger(Reports.class.getName()).log(Level.SEVERE, null, ex);
37 | }
38 | }
39 |
40 | /**
41 | * This method is called from within the constructor to initialize the form.
42 | * WARNING: Do NOT modify this code. The content of this method is always
43 | * regenerated by the Form Editor.
44 | */
45 | @SuppressWarnings("unchecked")
46 | // //GEN-BEGIN:initComponents
47 | private void initComponents() {
48 |
49 | body = new javax.swing.JPanel();
50 | Title = new javax.swing.JLabel();
51 | jScrollPane1 = new javax.swing.JScrollPane();
52 | jTable1 = new javax.swing.JTable();
53 | button = new javax.swing.JPanel();
54 | jLabel1 = new javax.swing.JLabel();
55 |
56 | setBackground(new java.awt.Color(255, 255, 255));
57 | setMinimumSize(new java.awt.Dimension(750, 430));
58 | setPreferredSize(new java.awt.Dimension(750, 430));
59 | setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
60 |
61 | body.setBackground(new java.awt.Color(255, 255, 255));
62 | body.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
63 | add(body, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, -1, -1));
64 |
65 | Title.setFont(new java.awt.Font("Segoe UI", 0, 24)); // NOI18N
66 | Title.setText("Reportes");
67 | add(Title, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 10, -1, -1));
68 |
69 | jTable1.setFont(new java.awt.Font("Segoe UI", 0, 11)); // NOI18N
70 | jTable1.setModel(new javax.swing.table.DefaultTableModel(
71 | new Object [][] {
72 | {null, null, null, null},
73 | {null, null, null, null},
74 | {null, null, null, null},
75 | {null, null, null, null},
76 | {null, null, null, null},
77 | {null, null, null, null},
78 | {null, null, null, null},
79 | {null, null, null, null},
80 | {null, null, null, null},
81 | {null, null, null, null},
82 | {null, null, null, null},
83 | {null, null, null, null},
84 | {null, null, null, null},
85 | {null, null, null, null},
86 | {null, null, null, null},
87 | {null, null, null, null},
88 | {null, null, null, null},
89 | {null, null, null, null},
90 | {null, null, null, null}
91 | },
92 | new String [] {
93 | "User ID", "Book ID", "Fecha de Salida", "Fecha de Entrega"
94 | }
95 | ) {
96 | Class[] types = new Class [] {
97 | java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class
98 | };
99 | boolean[] canEdit = new boolean [] {
100 | false, false, false, false
101 | };
102 |
103 | public Class getColumnClass(int columnIndex) {
104 | return types [columnIndex];
105 | }
106 |
107 | public boolean isCellEditable(int rowIndex, int columnIndex) {
108 | return canEdit [columnIndex];
109 | }
110 | });
111 | jTable1.getTableHeader().setReorderingAllowed(false);
112 | jTable1.addInputMethodListener(new java.awt.event.InputMethodListener() {
113 | public void caretPositionChanged(java.awt.event.InputMethodEvent evt) {
114 | }
115 | public void inputMethodTextChanged(java.awt.event.InputMethodEvent evt) {
116 | jTable1InputMethodTextChanged(evt);
117 | }
118 | });
119 | jScrollPane1.setViewportView(jTable1);
120 |
121 | add(jScrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 50, 750, 330));
122 |
123 | button.setBackground(new java.awt.Color(18, 90, 173));
124 | button.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
125 | button.addMouseListener(new java.awt.event.MouseAdapter() {
126 | public void mouseEntered(java.awt.event.MouseEvent evt) {
127 | buttonMouseEntered(evt);
128 | }
129 | public void mouseExited(java.awt.event.MouseEvent evt) {
130 | buttonMouseExited(evt);
131 | }
132 | public void mousePressed(java.awt.event.MouseEvent evt) {
133 | buttonMousePressed(evt);
134 | }
135 | });
136 | button.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
137 |
138 | jLabel1.setFont(new java.awt.Font("Segoe UI", 1, 18)); // NOI18N
139 | jLabel1.setForeground(new java.awt.Color(255, 255, 255));
140 | jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
141 | jLabel1.setText("Actualizar");
142 | jLabel1.addMouseListener(new java.awt.event.MouseAdapter() {
143 | public void mousePressed(java.awt.event.MouseEvent evt) {
144 | jLabel1MousePressed(evt);
145 | }
146 | });
147 | button.add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 0, 100, 30));
148 |
149 | add(button, new org.netbeans.lib.awtextra.AbsoluteConstraints(600, 390, 140, 30));
150 | }// //GEN-END:initComponents
151 |
152 | private void jTable1InputMethodTextChanged(java.awt.event.InputMethodEvent evt) {//GEN-FIRST:event_jTable1InputMethodTextChanged
153 | //nothing
154 | }//GEN-LAST:event_jTable1InputMethodTextChanged
155 |
156 | private void buttonMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_buttonMouseEntered
157 | setColor(button);
158 | }//GEN-LAST:event_buttonMouseEntered
159 |
160 | private void buttonMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_buttonMouseExited
161 | resetColor(button);
162 | }//GEN-LAST:event_buttonMouseExited
163 |
164 | private void buttonMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_buttonMousePressed
165 | try {
166 | GetReports();
167 | } catch (SQLException ex) {
168 | Logger.getLogger(Reports.class.getName()).log(Level.SEVERE, null, ex);
169 | }
170 | }//GEN-LAST:event_buttonMousePressed
171 |
172 | private void jLabel1MousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel1MousePressed
173 | try {
174 | GetReports();
175 | } catch (SQLException ex) {
176 | Logger.getLogger(Reports.class.getName()).log(Level.SEVERE, null, ex);
177 | }
178 | }//GEN-LAST:event_jLabel1MousePressed
179 |
180 | void setColor(JPanel panel){
181 | panel.setBackground(new Color(21,101,192));
182 | }
183 | void resetColor(JPanel panel){
184 | panel.setBackground(new Color(18,90,173));
185 | }
186 |
187 | private void GetReports() throws SQLException{
188 | Statement stm = reg.createStatement();
189 | ResultSet counter = stm.executeQuery("SELECT * FROM `lendings`");
190 |
191 | int count = 0;
192 | while(counter.next()){count++;}
193 |
194 | String list[][] = new String[count][4];
195 | int i = 0;
196 | ResultSet re = stm.executeQuery("SELECT * FROM `lendings`");
197 | while(re.next()){
198 | list[i][0] = re.getString("user_id");
199 | list[i][1] = re.getString("book_id");
200 | list[i][2] = re.getString("date_out");
201 | list[i][3] = re.getString("date_return");
202 | i++;
203 | }
204 |
205 | jTable1.setModel(new javax.swing.table.DefaultTableModel(
206 | list,
207 | new String [] {
208 | "User ID", "Book ID", "Fecha de Salida", "Fecha de Entrega"
209 | }));
210 | }
211 |
212 | // Variables declaration - do not modify//GEN-BEGIN:variables
213 | private javax.swing.JLabel Title;
214 | private javax.swing.JPanel body;
215 | private javax.swing.JPanel button;
216 | private javax.swing.JLabel jLabel1;
217 | private javax.swing.JScrollPane jScrollPane1;
218 | private javax.swing.JTable jTable1;
219 | // End of variables declaration//GEN-END:variables
220 | }
221 |
--------------------------------------------------------------------------------
/src/itp_library/Returns.form:
--------------------------------------------------------------------------------
1 |
2 |
3 |
242 |
--------------------------------------------------------------------------------
/src/itp_library/Returns.java:
--------------------------------------------------------------------------------
1 | /*
2 | * To change this license header, choose License Headers in Project Properties.
3 | * To change this template file, choose Tools | Templates
4 | * and open the template in the editor.
5 | */
6 | package itp_library;
7 |
8 | import java.awt.Color;
9 | import java.sql.SQLException;
10 | import java.util.logging.Level;
11 | import java.util.logging.Logger;
12 | import javax.swing.JPanel;
13 |
14 | /**
15 | *
16 | * @author Antonio
17 | */
18 | public class Returns extends javax.swing.JPanel {
19 | Lendings Inter;
20 | /**
21 | * Creates new form Principal
22 | */
23 | public Returns() {
24 | initComponents();
25 | Inter = new Lendings();
26 | }
27 |
28 | /**
29 | * This method is called from within the constructor to initialize the form.
30 | * WARNING: Do NOT modify this code. The content of this method is always
31 | * regenerated by the Form Editor.
32 | */
33 | @SuppressWarnings("unchecked")
34 | // //GEN-BEGIN:initComponents
35 | private void initComponents() {
36 |
37 | body = new javax.swing.JPanel();
38 | Title = new javax.swing.JLabel();
39 | Text1 = new javax.swing.JLabel();
40 | Text2 = new javax.swing.JLabel();
41 | jSeparator1 = new javax.swing.JSeparator();
42 | jSeparator2 = new javax.swing.JSeparator();
43 | jSeparator3 = new javax.swing.JSeparator();
44 | book_id = new javax.swing.JTextField();
45 | folio = new javax.swing.JTextField();
46 | button = new javax.swing.JPanel();
47 | jLabel1 = new javax.swing.JLabel();
48 | Image = new javax.swing.JLabel();
49 |
50 | setBackground(new java.awt.Color(255, 255, 255));
51 | setMinimumSize(new java.awt.Dimension(750, 430));
52 | setPreferredSize(new java.awt.Dimension(750, 430));
53 | setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
54 |
55 | body.setBackground(new java.awt.Color(255, 255, 255));
56 | body.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
57 | add(body, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, -1, -1));
58 |
59 | Title.setFont(new java.awt.Font("Segoe UI", 0, 24)); // NOI18N
60 | Title.setText("Devolución de Libro");
61 | add(Title, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 10, -1, -1));
62 |
63 | Text1.setFont(new java.awt.Font("Segoe UI", 0, 14)); // NOI18N
64 | Text1.setText("Libro ID");
65 | add(Text1, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 170, -1, -1));
66 |
67 | Text2.setFont(new java.awt.Font("Segoe UI", 0, 14)); // NOI18N
68 | Text2.setText("Folio Usuario");
69 | add(Text2, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 70, -1, -1));
70 |
71 | jSeparator1.setForeground(new java.awt.Color(0, 153, 255));
72 | jSeparator1.setPreferredSize(new java.awt.Dimension(200, 10));
73 | add(jSeparator1, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 230, 260, 10));
74 |
75 | jSeparator2.setForeground(new java.awt.Color(0, 153, 255));
76 | jSeparator2.setPreferredSize(new java.awt.Dimension(200, 10));
77 | add(jSeparator2, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 130, 260, 10));
78 |
79 | jSeparator3.setForeground(new java.awt.Color(204, 204, 204));
80 | jSeparator3.setOrientation(javax.swing.SwingConstants.VERTICAL);
81 | jSeparator3.setPreferredSize(new java.awt.Dimension(200, 10));
82 | add(jSeparator3, new org.netbeans.lib.awtextra.AbsoluteConstraints(400, 30, 10, 350));
83 |
84 | book_id.setFont(new java.awt.Font("Segoe UI", 0, 12)); // NOI18N
85 | book_id.setForeground(new java.awt.Color(102, 102, 102));
86 | book_id.setText("Ingrese el ID del Libro a devolver");
87 | book_id.setBorder(null);
88 | book_id.addMouseListener(new java.awt.event.MouseAdapter() {
89 | public void mousePressed(java.awt.event.MouseEvent evt) {
90 | book_idMousePressed(evt);
91 | }
92 | });
93 | book_id.addActionListener(new java.awt.event.ActionListener() {
94 | public void actionPerformed(java.awt.event.ActionEvent evt) {
95 | book_idActionPerformed(evt);
96 | }
97 | });
98 | add(book_id, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 200, 260, 30));
99 |
100 | folio.setFont(new java.awt.Font("Segoe UI", 0, 12)); // NOI18N
101 | folio.setForeground(new java.awt.Color(102, 102, 102));
102 | folio.setText("Ingrese el folio del usuario");
103 | folio.setBorder(null);
104 | folio.addMouseListener(new java.awt.event.MouseAdapter() {
105 | public void mousePressed(java.awt.event.MouseEvent evt) {
106 | folioMousePressed(evt);
107 | }
108 | });
109 | add(folio, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 100, 260, 30));
110 |
111 | button.setBackground(new java.awt.Color(18, 90, 173));
112 | button.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
113 | button.addMouseListener(new java.awt.event.MouseAdapter() {
114 | public void mouseEntered(java.awt.event.MouseEvent evt) {
115 | buttonMouseEntered(evt);
116 | }
117 | public void mouseExited(java.awt.event.MouseEvent evt) {
118 | buttonMouseExited(evt);
119 | }
120 | public void mousePressed(java.awt.event.MouseEvent evt) {
121 | buttonMousePressed(evt);
122 | }
123 | });
124 | button.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
125 |
126 | jLabel1.setFont(new java.awt.Font("Segoe UI", 1, 18)); // NOI18N
127 | jLabel1.setForeground(new java.awt.Color(255, 255, 255));
128 | jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
129 | jLabel1.setText(" Devolver");
130 | button.add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(90, 10, -1, -1));
131 |
132 | add(button, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 290, 260, 50));
133 |
134 | Image.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
135 | Image.setIcon(new javax.swing.ImageIcon(getClass().getResource("/itp_library/images/iStock.jpg"))); // NOI18N
136 | Image.setMaximumSize(new java.awt.Dimension(750, 430));
137 | Image.setMinimumSize(new java.awt.Dimension(750, 430));
138 | add(Image, new org.netbeans.lib.awtextra.AbsoluteConstraints(400, 50, -1, -1));
139 | }// //GEN-END:initComponents
140 |
141 | private void book_idActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_book_idActionPerformed
142 | // TODO add your handling code here:
143 | }//GEN-LAST:event_book_idActionPerformed
144 |
145 | private void folioMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_folioMousePressed
146 | if(folio.getText().equals("Ingrese el folio del usuario"))
147 | folio.setText("");
148 | if(book_id.getText().equals("") || book_id.getText() == null || book_id.getText().equals(" "))
149 | book_id.setText("Ingrese el ID del Libro a devolver");
150 | }//GEN-LAST:event_folioMousePressed
151 |
152 | private void book_idMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_book_idMousePressed
153 | if(book_id.getText().equals("Ingrese el ID del Libro a devolver"))
154 | book_id.setText("");
155 | if(folio.getText().equals("") || folio.getText() == null || folio.getText().equals(" "))
156 | folio.setText("Ingrese el folio del usuario");
157 | }//GEN-LAST:event_book_idMousePressed
158 |
159 | private void buttonMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_buttonMouseEntered
160 | setColor(button);
161 | }//GEN-LAST:event_buttonMouseEntered
162 |
163 | private void buttonMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_buttonMouseExited
164 | resetColor(button);
165 | }//GEN-LAST:event_buttonMouseExited
166 | // DEVOLVER
167 | private void buttonMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_buttonMousePressed
168 | String book = book_id.getText();
169 | String fol = folio.getText();
170 | int intfol = 0;
171 |
172 | // Conditions
173 | if(fol.equals("") || book.equals("")){
174 | javax.swing.JOptionPane.showMessageDialog(this, "Debe rellenar todos los campos. \n", "AVISO", javax.swing.JOptionPane.INFORMATION_MESSAGE);
175 | book_id.requestFocus();
176 | }
177 | else{
178 | try
179 | {
180 | intfol = Integer.parseInt(folio.getText());
181 |
182 | if(intfol <= 0){
183 | javax.swing.JOptionPane.showMessageDialog(this, "El folio del usuario debe ser mayor a 0. \n", "AVISO", javax.swing.JOptionPane.INFORMATION_MESSAGE);
184 | folio.requestFocus();
185 | }
186 |
187 | try {
188 | // Verificamos el usuario
189 | boolean pase = Inter.UserExist(intfol);
190 | if(!pase){
191 | javax.swing.JOptionPane.showMessageDialog(this, "No existe ningún usuario con ese Folio. \n", "AVISO", javax.swing.JOptionPane.INFORMATION_MESSAGE);
192 | folio.requestFocus();
193 | }
194 | // Verificamos el libro
195 | else if (!Inter.BookExist(book))
196 | {
197 | javax.swing.JOptionPane.showMessageDialog(this, "No existe ningún libro con esa ID. \n", "AVISO", javax.swing.JOptionPane.INFORMATION_MESSAGE);
198 | book_id.requestFocus();
199 | }
200 | else if(!Inter.CheckLending(intfol, book)){
201 | javax.swing.JOptionPane.showMessageDialog(this, "No se ha podido encontrar el préstamo correspiendote a los datos ingresados. \n", "AVISO", javax.swing.JOptionPane.INFORMATION_MESSAGE);
202 | book_id.requestFocus();
203 | }
204 | else{
205 | // DEVOLVEMOS
206 | Inter.Devolutions(intfol, book);
207 | folio.setText("");
208 | book_id.setText("");
209 | }
210 |
211 | } catch (SQLException ex) {
212 | Logger.getLogger(Returns.class.getName()).log(Level.SEVERE, null, ex);
213 | }
214 |
215 | }catch(Exception ex){
216 | javax.swing.JOptionPane.showMessageDialog(this, "El folio del usuario debe ser un número entero. \n", "AVISO", javax.swing.JOptionPane.INFORMATION_MESSAGE);
217 | folio.requestFocus();
218 | }
219 | }
220 | }//GEN-LAST:event_buttonMousePressed
221 |
222 | void setColor(JPanel panel){
223 | panel.setBackground(new Color(21,101,192));
224 | }
225 | void resetColor(JPanel panel){
226 | panel.setBackground(new Color(18,90,173));
227 | }
228 |
229 | // Variables declaration - do not modify//GEN-BEGIN:variables
230 | private javax.swing.JLabel Image;
231 | private javax.swing.JLabel Text1;
232 | private javax.swing.JLabel Text2;
233 | private javax.swing.JLabel Title;
234 | private javax.swing.JPanel body;
235 | private javax.swing.JTextField book_id;
236 | private javax.swing.JPanel button;
237 | private javax.swing.JTextField folio;
238 | private javax.swing.JLabel jLabel1;
239 | private javax.swing.JSeparator jSeparator1;
240 | private javax.swing.JSeparator jSeparator2;
241 | private javax.swing.JSeparator jSeparator3;
242 | // End of variables declaration//GEN-END:variables
243 | }
244 |
--------------------------------------------------------------------------------
/src/itp_library/Users.form:
--------------------------------------------------------------------------------
1 |
2 |
3 |
347 |
--------------------------------------------------------------------------------
/src/itp_library/images/336799ebb339821f342bc5a13386aff2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/src/itp_library/images/336799ebb339821f342bc5a13386aff2.jpg
--------------------------------------------------------------------------------
/src/itp_library/images/account-multiple.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/src/itp_library/images/account-multiple.png
--------------------------------------------------------------------------------
/src/itp_library/images/book-open-page-variant.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/src/itp_library/images/book-open-page-variant.png
--------------------------------------------------------------------------------
/src/itp_library/images/calendar-multiple-check.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/src/itp_library/images/calendar-multiple-check.png
--------------------------------------------------------------------------------
/src/itp_library/images/calendar-plus.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/src/itp_library/images/calendar-plus.png
--------------------------------------------------------------------------------
/src/itp_library/images/file-chart.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/src/itp_library/images/file-chart.png
--------------------------------------------------------------------------------
/src/itp_library/images/home-outline.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/src/itp_library/images/home-outline.png
--------------------------------------------------------------------------------
/src/itp_library/images/iStock.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/src/itp_library/images/iStock.jpg
--------------------------------------------------------------------------------
/src/itp_library/images/prestamo.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/src/itp_library/images/prestamo.gif
--------------------------------------------------------------------------------