Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ewee #1

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="src" path="BM_System/src"/>
<classpathentry kind="lib" path="BM_System/libs/barcodes-7.1.9.jar"/>
<classpathentry kind="lib" path="BM_System/libs/font-asian-7.1.9.jar"/>
<classpathentry kind="lib" path="BM_System/libs/forms-7.1.9.jar"/>
<classpathentry kind="lib" path="BM_System/libs/html2pdf-2.1.6.jar"/>
<classpathentry kind="lib" path="BM_System/libs/hyph-7.1.9.jar"/>
<classpathentry kind="lib" path="BM_System/libs/io-7.1.9.jar"/>
<classpathentry kind="lib" path="BM_System/libs/kernel-7.1.9.jar"/>
<classpathentry kind="lib" path="BM_System/libs/layout-7.1.9.jar"/>
<classpathentry kind="lib" path="BM_System/libs/mysql-connector-java-8.0.22.jar"/>
<classpathentry kind="lib" path="BM_System/libs/pdfa-7.1.9.jar"/>
<classpathentry kind="lib" path="BM_System/libs/pdftest-7.1.9.jar"/>
<classpathentry kind="lib" path="BM_System/libs/sign-7.1.9.jar"/>
<classpathentry kind="lib" path="BM_System/libs/slf4j-api-1.7.2.jar"/>
<classpathentry kind="lib" path="BM_System/libs/slf4j-simple-1.7.2.jar"/>
<classpathentry kind="lib" path="BM_System/libs/styled-xml-parser-7.1.9.jar"/>
<classpathentry kind="lib" path="BM_System/libs/svg-7.1.9.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/bin/
17 changes: 17 additions & 0 deletions .project
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>Bank-Management-System</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
22 changes: 22 additions & 0 deletions BM_System/.classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="lib" path="libs/barcodes-7.1.9.jar"/>
<classpathentry kind="lib" path="libs/font-asian-7.1.9.jar"/>
<classpathentry kind="lib" path="libs/forms-7.1.9.jar"/>
<classpathentry kind="lib" path="libs/html2pdf-2.1.6.jar"/>
<classpathentry kind="lib" path="libs/hyph-7.1.9.jar"/>
<classpathentry kind="lib" path="libs/io-7.1.9.jar"/>
<classpathentry kind="lib" path="libs/kernel-7.1.9.jar"/>
<classpathentry kind="lib" path="libs/layout-7.1.9.jar"/>
<classpathentry kind="lib" path="libs/mysql-connector-java-8.0.22.jar"/>
<classpathentry kind="lib" path="libs/pdfa-7.1.9.jar"/>
<classpathentry kind="lib" path="libs/pdftest-7.1.9.jar"/>
<classpathentry kind="lib" path="libs/sign-7.1.9.jar"/>
<classpathentry kind="lib" path="libs/slf4j-api-1.7.2.jar"/>
<classpathentry kind="lib" path="libs/slf4j-simple-1.7.2.jar"/>
<classpathentry kind="lib" path="libs/styled-xml-parser-7.1.9.jar"/>
<classpathentry kind="lib" path="libs/svg-7.1.9.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>
1 change: 1 addition & 0 deletions BM_System/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/bin/
17 changes: 17 additions & 0 deletions BM_System/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>BM_System</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
5 changes: 4 additions & 1 deletion BM_System/src/def_pkg/Accountant.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

public class Accountant {

public String name;
private String name;

public Accountant( ) {
this.name = "";
Expand All @@ -17,6 +17,9 @@ public Accountant( String name) {
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}

// Search Account function
Bank_Account searchAccount1(String accountNum, String CNIC) {
Expand Down
29 changes: 15 additions & 14 deletions BM_System/src/def_pkg/DB_Handler.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,26 @@
import com.itextpdf.html2pdf.HtmlConverter;

public class DB_Handler {

private String url = "jdbc:mysql://localhost:3307/bank_schema";
private String username = "root";
private String password = "sunshine";
private static DB_Handler dataBaseHandler;
private Connection conn;



public DB_Handler() {
try {
conn = DriverManager.getConnection(url, username, password);
System.out.println("Connection established successfully!");
}
catch (SQLException e) {
throw new IllegalStateException("Unable to connect to the database. " + e.getMessage());
}
private DB_Handler() {

}

public DB_Handler getDataBaseHandler() {
if(this.dataBaseHandler == null) {
dataBaseHandler = new DB_Handler();
}
return dataBaseHandler;
}

public boolean createConnection() throws SQLException{
if(conn == null) {
conn = DriverManager.getConnection("","","");
}
return true;
}

public Login_Account signIn( String username, String password ) {
Login_Account user = new Login_Account();
Expand Down
7 changes: 7 additions & 0 deletions BM_System/src/def_pkg/ImageDB.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package def_pkg;

public class ImageDB {

public void setIconImage(TiFFImage) {//metodo legacy que se utilizaria si es compatible el formato TIFF}
}
}
5 changes: 5 additions & 0 deletions BM_System/src/def_pkg/Seteable.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package def_pkg;

public interface Seteable {

}
5 changes: 5 additions & 0 deletions BM_System/src/def_pkg/TIFFAdapter.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package def_pkg;

public class TIFFAdapter {

}
5 changes: 5 additions & 0 deletions BM_System/src/def_pkg/image.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package def_pkg;

public class image {

}