├── .gitignore ├── nbproject └── project.properties ├── _config.yml ├── .settings ├── org.eclipse.wst.jsdt.ui.superType.name ├── org.eclipse.wst.validation.prefs ├── org.eclipse.wst.jsdt.ui.superType.container ├── org.eclipse.m2e.core.prefs ├── org.eclipse.core.resources.prefs ├── org.eclipse.wst.common.project.facet.core.prefs.xml ├── org.eclipse.wst.common.project.facet.core.xml ├── org.eclipse.jdt.core.prefs ├── .jsdtscope └── org.eclipse.wst.common.component ├── src └── main │ ├── webapp │ ├── META-INF │ │ ├── MANIFEST.MF │ │ └── context.xml │ ├── assets │ │ ├── scss │ │ │ ├── gsdk-bootstrap-wizard │ │ │ │ ├── _mixins.scss │ │ │ │ ├── _card.scss │ │ │ │ ├── _footers.scss │ │ │ │ ├── _responsive.scss │ │ │ │ ├── _variables.scss │ │ │ │ ├── mixins │ │ │ │ │ └── _vendor-prefixes.scss │ │ │ │ ├── _navs-pagination.scss │ │ │ │ ├── _typography.scss │ │ │ │ ├── _labels.scss │ │ │ │ ├── _inputs.scss │ │ │ │ ├── _misc.scss │ │ │ │ ├── _tooltips.scss │ │ │ │ └── _wizard-card.scss │ │ │ └── gsdk-bootstrap-wizard.scss │ │ ├── .DS_Store │ │ ├── css │ │ │ ├── .DS_Store │ │ │ ├── demo.css │ │ │ ├── scrolling-nav.css │ │ │ └── dataTables.bootstrap.min.css │ │ ├── img │ │ │ ├── .DS_Store │ │ │ ├── mask.png │ │ │ ├── cover.jpeg │ │ │ ├── favicon.ico │ │ │ ├── favicon.png │ │ │ ├── slide1.jpg │ │ │ ├── slide2.jpg │ │ │ ├── slide3.jpg │ │ │ ├── slide4.jpg │ │ │ ├── slide5.jpg │ │ │ ├── wizard.jpg │ │ │ ├── apple-icon.png │ │ │ ├── faces │ │ │ │ ├── marc.jpg │ │ │ │ └── .DS_Store │ │ │ ├── new_logo.png │ │ │ ├── sidebar-1.jpg │ │ │ ├── sidebar-2.jpg │ │ │ ├── sidebar-3.jpg │ │ │ ├── sidebar-4.jpg │ │ │ ├── tim_80x80.png │ │ │ ├── wizard-boat.jpg │ │ │ ├── wizard-city.jpg │ │ │ ├── default-avatar.png │ │ │ ├── thumb_list_boat.png │ │ │ ├── thumb_register.png │ │ │ └── thumb_list_place.png │ │ ├── js │ │ │ ├── .DS_Store │ │ │ ├── scrolling-nav.js │ │ │ └── dataTables.bootstrap.min.js │ │ └── sass │ │ │ ├── .DS_Store │ │ │ ├── md │ │ │ ├── .DS_Store │ │ │ ├── mixins │ │ │ │ ├── _transparency.scss │ │ │ │ └── _chartist.scss │ │ │ ├── _tables.scss │ │ │ ├── _ripples.scss │ │ │ ├── _footers.scss │ │ │ ├── _forms.scss │ │ │ ├── _tabs.scss │ │ │ ├── _alerts.scss │ │ │ ├── _typography.scss │ │ │ ├── _dropdown.scss │ │ │ ├── _popups.scss │ │ │ ├── _dialogs.scss │ │ │ ├── _togglebutton.scss │ │ │ ├── _radios.scss │ │ │ ├── _misc.scss │ │ │ ├── _pills.scss │ │ │ └── plugins │ │ │ │ └── _plugin-nouislider.scss │ │ │ └── material-dashboard.scss │ ├── logout.jsp │ ├── reports │ │ └── invoice_logo.png │ ├── WEB-INF │ │ ├── reports │ │ │ └── invoice_logo.png │ │ └── web.xml │ ├── templates │ │ ├── header.jsp │ │ ├── footer.jsp │ │ └── user │ │ │ ├── nav-bar.jsp │ │ │ ├── changepass.jsp │ │ │ ├── viewMessage.jsp │ │ │ ├── inbox.jsp │ │ │ └── compose.jsp │ ├── admin │ │ └── dashboard.jsp │ ├── computefees.jsp │ ├── viewpatient.jsp │ ├── viewservice.jsp │ ├── dieseasePatient.jsp │ ├── employeeProfile.jsp │ ├── inbox.jsp │ ├── viewmessage.jsp │ ├── home.jsp │ ├── compose.jsp │ ├── sentMail.jsp │ ├── changePassword.jsp │ ├── mgmtroom.jsp │ ├── bookBed.jsp │ └── nurse │ │ └── viewServiceTime.jsp │ ├── java │ └── com │ │ └── hospital │ │ ├── reports │ │ ├── invoice_logo.png │ │ └── Invoice_Table_Based.jasper │ │ ├── utils │ │ ├── Entity.java │ │ ├── ActionType.java │ │ ├── PasswordEncryption.java │ │ └── FormateDate.java │ │ ├── entities │ │ ├── NurseDAO.java │ │ ├── AccountantDAO.java │ │ ├── DoctorDAO.java │ │ ├── EmployeeDAO.java │ │ ├── AdminDAO.java │ │ ├── ReceptioniestDAO.java │ │ ├── PharmatiestDAO.java │ │ └── UserDAO.java │ │ ├── models │ │ ├── EmployeeStatatistic.java │ │ ├── Lab.java │ │ ├── Xray.java │ │ ├── Doctor.java │ │ ├── Accountant.java │ │ ├── Pharmatiest.java │ │ ├── Receptioniest.java │ │ ├── Nurse.java │ │ ├── BloodGroup.java │ │ ├── ShiftTime.java │ │ ├── RoomType.java │ │ ├── Category.java │ │ ├── WorkExperince.java │ │ ├── NextOfKin.java │ │ ├── Qualification.java │ │ ├── NurseServiceTime.java │ │ ├── Room.java │ │ ├── BookBed.java │ │ ├── Disease.java │ │ ├── Drug.java │ │ ├── Message.java │ │ ├── SelledDrug.java │ │ └── Patient.java │ │ ├── DbConfig │ │ ├── HibernateUtil.java │ │ └── HibernateDriver.java │ │ ├── actions │ │ ├── AccountancyListener.java │ │ ├── ReportListener.java │ │ └── DoctorListener.java │ │ └── authentication │ │ └── LoginService.java │ └── resources │ └── hibernate.cfg.xml ├── nb-configuration.xml ├── .classpath ├── .project └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /nbproject/project.properties: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /_config.yml: -------------------------------------------------------------------------------- 1 | theme: jekyll-theme-cayman -------------------------------------------------------------------------------- /.settings/org.eclipse.wst.jsdt.ui.superType.name: -------------------------------------------------------------------------------- 1 | Window -------------------------------------------------------------------------------- /src/main/webapp/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /.settings/org.eclipse.wst.validation.prefs: -------------------------------------------------------------------------------- 1 | disabled=06target 2 | eclipse.preferences.version=1 3 | -------------------------------------------------------------------------------- /.settings/org.eclipse.wst.jsdt.ui.superType.container: -------------------------------------------------------------------------------- 1 | org.eclipse.wst.jsdt.launching.baseBrowserLibrary -------------------------------------------------------------------------------- /src/main/webapp/assets/scss/gsdk-bootstrap-wizard/_mixins.scss: -------------------------------------------------------------------------------- 1 | @import "mixins/vendor-prefixes"; 2 | -------------------------------------------------------------------------------- /src/main/webapp/logout.jsp: -------------------------------------------------------------------------------- 1 | <% 2 | session.invalidate(); 3 | response.sendRedirect("index.jsp"); 4 | %> 5 | -------------------------------------------------------------------------------- /src/main/webapp/META-INF/context.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /src/main/webapp/assets/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salmansust/HospitalManagementSystem/HEAD/src/main/webapp/assets/.DS_Store -------------------------------------------------------------------------------- /src/main/webapp/assets/css/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salmansust/HospitalManagementSystem/HEAD/src/main/webapp/assets/css/.DS_Store -------------------------------------------------------------------------------- /src/main/webapp/assets/img/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salmansust/HospitalManagementSystem/HEAD/src/main/webapp/assets/img/.DS_Store -------------------------------------------------------------------------------- /src/main/webapp/assets/img/mask.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salmansust/HospitalManagementSystem/HEAD/src/main/webapp/assets/img/mask.png -------------------------------------------------------------------------------- /src/main/webapp/assets/js/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salmansust/HospitalManagementSystem/HEAD/src/main/webapp/assets/js/.DS_Store -------------------------------------------------------------------------------- /src/main/webapp/assets/img/cover.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salmansust/HospitalManagementSystem/HEAD/src/main/webapp/assets/img/cover.jpeg -------------------------------------------------------------------------------- /src/main/webapp/assets/img/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salmansust/HospitalManagementSystem/HEAD/src/main/webapp/assets/img/favicon.ico -------------------------------------------------------------------------------- /src/main/webapp/assets/img/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salmansust/HospitalManagementSystem/HEAD/src/main/webapp/assets/img/favicon.png -------------------------------------------------------------------------------- /src/main/webapp/assets/img/slide1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salmansust/HospitalManagementSystem/HEAD/src/main/webapp/assets/img/slide1.jpg -------------------------------------------------------------------------------- /src/main/webapp/assets/img/slide2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salmansust/HospitalManagementSystem/HEAD/src/main/webapp/assets/img/slide2.jpg -------------------------------------------------------------------------------- /src/main/webapp/assets/img/slide3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salmansust/HospitalManagementSystem/HEAD/src/main/webapp/assets/img/slide3.jpg -------------------------------------------------------------------------------- /src/main/webapp/assets/img/slide4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salmansust/HospitalManagementSystem/HEAD/src/main/webapp/assets/img/slide4.jpg -------------------------------------------------------------------------------- /src/main/webapp/assets/img/slide5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salmansust/HospitalManagementSystem/HEAD/src/main/webapp/assets/img/slide5.jpg -------------------------------------------------------------------------------- /src/main/webapp/assets/img/wizard.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salmansust/HospitalManagementSystem/HEAD/src/main/webapp/assets/img/wizard.jpg -------------------------------------------------------------------------------- /src/main/webapp/assets/sass/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salmansust/HospitalManagementSystem/HEAD/src/main/webapp/assets/sass/.DS_Store -------------------------------------------------------------------------------- /src/main/webapp/assets/img/apple-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salmansust/HospitalManagementSystem/HEAD/src/main/webapp/assets/img/apple-icon.png -------------------------------------------------------------------------------- /src/main/webapp/assets/img/faces/marc.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salmansust/HospitalManagementSystem/HEAD/src/main/webapp/assets/img/faces/marc.jpg -------------------------------------------------------------------------------- /src/main/webapp/assets/img/new_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salmansust/HospitalManagementSystem/HEAD/src/main/webapp/assets/img/new_logo.png -------------------------------------------------------------------------------- /src/main/webapp/assets/img/sidebar-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salmansust/HospitalManagementSystem/HEAD/src/main/webapp/assets/img/sidebar-1.jpg -------------------------------------------------------------------------------- /src/main/webapp/assets/img/sidebar-2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salmansust/HospitalManagementSystem/HEAD/src/main/webapp/assets/img/sidebar-2.jpg -------------------------------------------------------------------------------- /src/main/webapp/assets/img/sidebar-3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salmansust/HospitalManagementSystem/HEAD/src/main/webapp/assets/img/sidebar-3.jpg -------------------------------------------------------------------------------- /src/main/webapp/assets/img/sidebar-4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salmansust/HospitalManagementSystem/HEAD/src/main/webapp/assets/img/sidebar-4.jpg -------------------------------------------------------------------------------- /src/main/webapp/assets/img/tim_80x80.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salmansust/HospitalManagementSystem/HEAD/src/main/webapp/assets/img/tim_80x80.png -------------------------------------------------------------------------------- /src/main/webapp/assets/sass/md/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salmansust/HospitalManagementSystem/HEAD/src/main/webapp/assets/sass/md/.DS_Store -------------------------------------------------------------------------------- /src/main/webapp/reports/invoice_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salmansust/HospitalManagementSystem/HEAD/src/main/webapp/reports/invoice_logo.png -------------------------------------------------------------------------------- /src/main/webapp/assets/img/faces/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salmansust/HospitalManagementSystem/HEAD/src/main/webapp/assets/img/faces/.DS_Store -------------------------------------------------------------------------------- /src/main/webapp/assets/img/wizard-boat.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salmansust/HospitalManagementSystem/HEAD/src/main/webapp/assets/img/wizard-boat.jpg -------------------------------------------------------------------------------- /src/main/webapp/assets/img/wizard-city.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salmansust/HospitalManagementSystem/HEAD/src/main/webapp/assets/img/wizard-city.jpg -------------------------------------------------------------------------------- /src/main/webapp/assets/img/default-avatar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salmansust/HospitalManagementSystem/HEAD/src/main/webapp/assets/img/default-avatar.png -------------------------------------------------------------------------------- /src/main/webapp/assets/img/thumb_list_boat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salmansust/HospitalManagementSystem/HEAD/src/main/webapp/assets/img/thumb_list_boat.png -------------------------------------------------------------------------------- /src/main/webapp/assets/img/thumb_register.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salmansust/HospitalManagementSystem/HEAD/src/main/webapp/assets/img/thumb_register.png -------------------------------------------------------------------------------- /src/main/webapp/assets/scss/gsdk-bootstrap-wizard/_card.scss: -------------------------------------------------------------------------------- 1 | .card{ 2 | background-color: #FFFFFF; 3 | padding: 10px 0 20px; 4 | width: 100%; 5 | } 6 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/reports/invoice_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salmansust/HospitalManagementSystem/HEAD/src/main/webapp/WEB-INF/reports/invoice_logo.png -------------------------------------------------------------------------------- /src/main/webapp/assets/img/thumb_list_place.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salmansust/HospitalManagementSystem/HEAD/src/main/webapp/assets/img/thumb_list_place.png -------------------------------------------------------------------------------- /src/main/java/com/hospital/reports/invoice_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salmansust/HospitalManagementSystem/HEAD/src/main/java/com/hospital/reports/invoice_logo.png -------------------------------------------------------------------------------- /src/main/java/com/hospital/reports/Invoice_Table_Based.jasper: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salmansust/HospitalManagementSystem/HEAD/src/main/java/com/hospital/reports/Invoice_Table_Based.jasper -------------------------------------------------------------------------------- /src/main/java/com/hospital/utils/Entity.java: -------------------------------------------------------------------------------- 1 | package com.hospital.utils; 2 | 3 | public enum Entity { 4 | 5 | Admin,Doctor,Nurse,Lab,Xray,Pharmatiest,Receptioniest,Accountant; 6 | 7 | } 8 | -------------------------------------------------------------------------------- /src/main/java/com/hospital/entities/NurseDAO.java: -------------------------------------------------------------------------------- 1 | package com.hospital.entities; 2 | 3 | import java.util.List; 4 | 5 | import com.hospital.models.NurseServiceTime; 6 | 7 | public interface NurseDAO { 8 | 9 | public List getAllServiceTime(int nurseID); 10 | 11 | } 12 | -------------------------------------------------------------------------------- /src/main/java/com/hospital/entities/AccountantDAO.java: -------------------------------------------------------------------------------- 1 | package com.hospital.entities; 2 | 3 | import java.util.List; 4 | 5 | import com.hospital.models.Employee; 6 | import com.hospital.models.EmployeeStatatistic; 7 | 8 | public interface AccountantDAO extends EmployeeDAO{ 9 | 10 | 11 | 12 | 13 | 14 | } 15 | -------------------------------------------------------------------------------- /.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/main/resources=UTF-8 4 | encoding//src/main/webapp/reports/Invoice.jrxml=UTF-8 5 | encoding//src/main/webapp/reports/employeeReport.jrxml=UTF-8 6 | encoding//src/test/java=UTF-8 7 | encoding/=UTF-8 8 | -------------------------------------------------------------------------------- /src/main/java/com/hospital/entities/DoctorDAO.java: -------------------------------------------------------------------------------- 1 | package com.hospital.entities; 2 | 3 | import java.util.List; 4 | 5 | import com.hospital.models.Disease; 6 | 7 | 8 | public interface DoctorDAO extends EmployeeDAO{ 9 | 10 | 11 | public List getAllDiseaseByEmployeeID(int employeeID); 12 | 13 | public void deleteAllMessageForEmployee(int employeeID); 14 | 15 | 16 | } 17 | -------------------------------------------------------------------------------- /.settings/org.eclipse.wst.common.project.facet.core.prefs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /src/main/webapp/templates/header.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=UTF-8" 2 | pageEncoding="UTF-8"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /src/main/webapp/assets/scss/gsdk-bootstrap-wizard/_footers.scss: -------------------------------------------------------------------------------- 1 | .footer{ 2 | position: relative; 3 | bottom: 20px; 4 | right: 0px; 5 | width: 100%; 6 | color: #FFFFFF; 7 | z-index: 4; 8 | text-align: center; 9 | margin-top: 60px; 10 | text-shadow: 0 0px 1px black; 11 | 12 | a{ 13 | color: #FFFFFF; 14 | } 15 | 16 | .heart{ 17 | color: #FF3B30; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/main/webapp/assets/scss/gsdk-bootstrap-wizard/_responsive.scss: -------------------------------------------------------------------------------- 1 | @media (max-width:768px){ 2 | .main .container{ 3 | margin-bottom: 50px; 4 | } 5 | } 6 | 7 | @media (min-width: 768px){ 8 | .navbar-form { 9 | margin-top: 21px; 10 | margin-bottom: 21px; 11 | padding-left: 5px; 12 | padding-right: 5px; 13 | } 14 | 15 | .btn-wd { 16 | min-width: 140px; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/main/webapp/assets/scss/gsdk-bootstrap-wizard/_variables.scss: -------------------------------------------------------------------------------- 1 | $primary-color: #3472F7 !default; 2 | $success-color: #05AE0E !default; 3 | $info-color: #2CA8FF !default; 4 | $warning-color: #FF9500 !default; 5 | $danger-color: #FF3B30 !default; 6 | $white-color: #FFFFFF !default; 7 | $gray-bg: #999999 !default; 8 | $gray-color: #999999 !default; 9 | -------------------------------------------------------------------------------- /.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 4 | org.eclipse.jdt.core.compiler.compliance=1.8 5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 6 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 7 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 8 | org.eclipse.jdt.core.compiler.source=1.8 9 | -------------------------------------------------------------------------------- /src/main/webapp/assets/scss/gsdk-bootstrap-wizard/mixins/_vendor-prefixes.scss: -------------------------------------------------------------------------------- 1 | @mixin set-wizard-color($color) { 2 | .choice{ 3 | &:hover, 4 | &.active{ 5 | .icon{ 6 | border-color: $color; 7 | } 8 | } 9 | } 10 | 11 | .picture{ 12 | &:hover{ 13 | border-color: $color; 14 | } 15 | } 16 | 17 | .moving-tab{ 18 | background-color: $color; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/main/webapp/assets/sass/md/mixins/_transparency.scss: -------------------------------------------------------------------------------- 1 | // Opacity 2 | 3 | @mixin opacity($opacity) { 4 | opacity: $opacity; 5 | // IE8 filter 6 | $opacity-ie: ($opacity * 100); 7 | filter: #{alpha(opacity=$opacity-ie)}; 8 | } 9 | 10 | @mixin black-filter($opacity){ 11 | top: 0; 12 | left: 0; 13 | height: 100%; 14 | width: 100%; 15 | position: absolute; 16 | background-color: rgba(17,17,17,$opacity); 17 | display: block; 18 | content: ""; 19 | z-index: 1; 20 | } -------------------------------------------------------------------------------- /src/main/java/com/hospital/entities/EmployeeDAO.java: -------------------------------------------------------------------------------- 1 | package com.hospital.entities; 2 | 3 | import java.util.List; 4 | 5 | public interface EmployeeDAO { 6 | public List getListObjects(Class clazz); 7 | 8 | public Object getObject(int employeeID, Class clazz); 9 | 10 | public int saveObject(T object); 11 | 12 | public void deleteObject(T object); 13 | 14 | public void updateObject(T object); 15 | } 16 | -------------------------------------------------------------------------------- /src/main/webapp/templates/footer.jsp: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/main/java/com/hospital/utils/ActionType.java: -------------------------------------------------------------------------------- 1 | package com.hospital.utils; 2 | 3 | public enum ActionType { 4 | 5 | AddEmployee,deleteEmployee,UpdateEmployee, 6 | ChangePassword,ComposeEmail,ViewMessage, 7 | AddRoom,DeleteRoom,UpdateRoom, 8 | AddPatient,DeletePatient,UpdatePatient, 9 | BookBed,DeleteBookBed,UpdateBookBed, 10 | AddDiesease,DeleteDiesease,UpdateDiesease, 11 | AddDrug,DeleteDrug,UpdateDrug,SellDrug,ReverseSellDrug,UpdateSellDrug, 12 | CheckedPatientFees, 13 | DownloadEmployeeReport, 14 | InvoiceDrug,AddServiceTime,DeleteServiceTime,UpdateServiceTime; 15 | 16 | } 17 | -------------------------------------------------------------------------------- /src/main/java/com/hospital/models/EmployeeStatatistic.java: -------------------------------------------------------------------------------- 1 | package com.hospital.models; 2 | 3 | import java.math.BigDecimal; 4 | 5 | 6 | public class EmployeeStatatistic { 7 | 8 | private String type; 9 | private BigDecimal number; 10 | 11 | public EmployeeStatatistic() { 12 | 13 | } 14 | 15 | 16 | public String getType() { 17 | return type; 18 | } 19 | public void setType(String type) { 20 | this.type = type; 21 | } 22 | public BigDecimal getNumber() { 23 | return number; 24 | } 25 | public void setNumber(BigDecimal number) { 26 | this.number = number; 27 | } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /src/main/java/com/hospital/entities/AdminDAO.java: -------------------------------------------------------------------------------- 1 | package com.hospital.entities; 2 | 3 | import java.util.List; 4 | 5 | import com.hospital.models.Employee; 6 | import com.hospital.models.EmployeeStatatistic; 7 | 8 | public interface AdminDAO extends EmployeeDAO{ 9 | 10 | public List getListObjects(Class clazz); 11 | 12 | public List getListEmployeeWithout(int employeeID); 13 | 14 | 15 | 16 | public List getEmployeeStatistic(); 17 | 18 | public void deleteAllMessageForEmployee(int employeeID); 19 | 20 | public void deleteAllRoomBooked(int roomID); 21 | 22 | 23 | } 24 | -------------------------------------------------------------------------------- /src/main/java/com/hospital/entities/ReceptioniestDAO.java: -------------------------------------------------------------------------------- 1 | package com.hospital.entities; 2 | 3 | import java.util.List; 4 | 5 | import com.hospital.models.Employee; 6 | import com.hospital.models.EmployeeStatatistic; 7 | import com.hospital.models.Room; 8 | 9 | public interface ReceptioniestDAO extends EmployeeDAO{ 10 | 11 | 12 | public List getListEmployeeWithout(int employeeID); 13 | 14 | 15 | 16 | public List getEmployeeStatistic(); 17 | 18 | public void deleteAllMessageForEmployee(int employeeID); 19 | 20 | public void deleteAllPatientMessages(int patientID); 21 | 22 | public List getAllAvailableRoom(); 23 | 24 | 25 | } 26 | -------------------------------------------------------------------------------- /src/main/java/com/hospital/models/Lab.java: -------------------------------------------------------------------------------- 1 | package com.hospital.models; 2 | 3 | import java.io.Serializable; 4 | import java.util.ArrayList; 5 | import java.util.List; 6 | import javax.persistence.CascadeType; 7 | import javax.persistence.DiscriminatorValue; 8 | import javax.persistence.Entity; 9 | import javax.persistence.FetchType; 10 | import javax.persistence.JoinColumn; 11 | import javax.persistence.ManyToOne; 12 | import javax.persistence.OneToMany; 13 | import javax.persistence.Table; 14 | 15 | @Entity 16 | @Table(name = "Employee") 17 | @DiscriminatorValue("Lab") 18 | public class Lab extends Employee implements Serializable { 19 | 20 | public Lab() { 21 | } 22 | 23 | } 24 | -------------------------------------------------------------------------------- /.settings/.jsdtscope: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /src/main/java/com/hospital/models/Xray.java: -------------------------------------------------------------------------------- 1 | package com.hospital.models; 2 | 3 | import java.io.Serializable; 4 | import java.util.ArrayList; 5 | import java.util.List; 6 | import javax.persistence.CascadeType; 7 | import javax.persistence.DiscriminatorValue; 8 | import javax.persistence.Entity; 9 | import javax.persistence.FetchType; 10 | import javax.persistence.JoinColumn; 11 | import javax.persistence.ManyToOne; 12 | import javax.persistence.OneToMany; 13 | import javax.persistence.Table; 14 | 15 | @Entity 16 | @Table(name = "Employee") 17 | @DiscriminatorValue("Xray") 18 | public class Xray extends Employee implements Serializable { 19 | 20 | public Xray() { 21 | } 22 | 23 | } 24 | -------------------------------------------------------------------------------- /src/main/java/com/hospital/models/Doctor.java: -------------------------------------------------------------------------------- 1 | package com.hospital.models; 2 | 3 | import java.io.Serializable; 4 | import java.util.ArrayList; 5 | import java.util.List; 6 | import javax.persistence.CascadeType; 7 | import javax.persistence.DiscriminatorValue; 8 | import javax.persistence.Entity; 9 | import javax.persistence.FetchType; 10 | import javax.persistence.JoinColumn; 11 | import javax.persistence.ManyToOne; 12 | import javax.persistence.OneToMany; 13 | import javax.persistence.Table; 14 | 15 | @Entity 16 | @Table(name = "Employee") 17 | @DiscriminatorValue("Doctor") 18 | public class Doctor extends Employee implements Serializable { 19 | 20 | public Doctor() { 21 | } 22 | 23 | } 24 | -------------------------------------------------------------------------------- /src/main/java/com/hospital/entities/PharmatiestDAO.java: -------------------------------------------------------------------------------- 1 | package com.hospital.entities; 2 | 3 | import java.util.List; 4 | 5 | import com.hospital.models.Employee; 6 | import com.hospital.models.EmployeeStatatistic; 7 | import com.hospital.models.SelledDrug; 8 | 9 | public interface PharmatiestDAO extends EmployeeDAO{ 10 | 11 | 12 | public List getListEmployeeWithout(int employeeID); 13 | 14 | 15 | public List getEmployeeStatistic(); 16 | 17 | public void sellDrug(SelledDrug selledDrug); 18 | 19 | public List getAllSelledDrugForPatient(int patientID); 20 | 21 | 22 | public int getMaxIDObject() ; 23 | 24 | 25 | 26 | } 27 | -------------------------------------------------------------------------------- /src/main/java/com/hospital/models/Accountant.java: -------------------------------------------------------------------------------- 1 | package com.hospital.models; 2 | 3 | import java.io.Serializable; 4 | import java.util.ArrayList; 5 | import java.util.List; 6 | import javax.persistence.CascadeType; 7 | import javax.persistence.DiscriminatorValue; 8 | import javax.persistence.Entity; 9 | import javax.persistence.FetchType; 10 | import javax.persistence.JoinColumn; 11 | import javax.persistence.ManyToOne; 12 | import javax.persistence.OneToMany; 13 | import javax.persistence.Table; 14 | 15 | @Entity 16 | @Table(name = "Employee" ) 17 | @DiscriminatorValue("Accountant") 18 | public class Accountant extends Employee implements Serializable { 19 | 20 | public Accountant() { 21 | } 22 | 23 | } 24 | -------------------------------------------------------------------------------- /src/main/java/com/hospital/models/Pharmatiest.java: -------------------------------------------------------------------------------- 1 | package com.hospital.models; 2 | 3 | import java.io.Serializable; 4 | import java.util.ArrayList; 5 | import java.util.List; 6 | import javax.persistence.CascadeType; 7 | import javax.persistence.DiscriminatorValue; 8 | import javax.persistence.Entity; 9 | import javax.persistence.FetchType; 10 | import javax.persistence.JoinColumn; 11 | import javax.persistence.ManyToOne; 12 | import javax.persistence.OneToMany; 13 | import javax.persistence.Table; 14 | 15 | @Entity 16 | @Table(name = "Employee") 17 | @DiscriminatorValue("pharmacist") 18 | public class Pharmatiest extends Employee implements Serializable { 19 | 20 | public Pharmatiest() { 21 | } 22 | 23 | } 24 | -------------------------------------------------------------------------------- /src/main/java/com/hospital/models/Receptioniest.java: -------------------------------------------------------------------------------- 1 | package com.hospital.models; 2 | 3 | import java.io.Serializable; 4 | import java.util.ArrayList; 5 | import java.util.List; 6 | import javax.persistence.CascadeType; 7 | import javax.persistence.DiscriminatorValue; 8 | import javax.persistence.Entity; 9 | import javax.persistence.FetchType; 10 | import javax.persistence.JoinColumn; 11 | import javax.persistence.ManyToOne; 12 | import javax.persistence.OneToMany; 13 | import javax.persistence.Table; 14 | 15 | @Entity 16 | @Table(name = "Employee") 17 | @DiscriminatorValue("Receptionist") 18 | public class Receptioniest extends Employee implements Serializable { 19 | 20 | public Receptioniest() { 21 | } 22 | 23 | } 24 | -------------------------------------------------------------------------------- /src/main/webapp/assets/js/scrolling-nav.js: -------------------------------------------------------------------------------- 1 | //jQuery to collapse the navbar on scroll 2 | $(window).scroll(function() { 3 | if ($(".navbar").offset().top > 50) { 4 | $(".navbar-fixed-top").addClass("top-nav-collapse"); 5 | } else { 6 | $(".navbar-fixed-top").removeClass("top-nav-collapse"); 7 | } 8 | }); 9 | 10 | //jQuery for page scrolling feature - requires jQuery Easing plugin 11 | $(function() { 12 | $('a.page-scroll').bind('click', function(event) { 13 | var $anchor = $(this); 14 | $('html, body').stop().animate({ 15 | scrollTop: $($anchor.attr('href')).offset().top 16 | }, 1500, 'easeInOutExpo'); 17 | event.preventDefault(); 18 | }); 19 | }); 20 | -------------------------------------------------------------------------------- /.settings/org.eclipse.wst.common.component: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /src/main/java/com/hospital/utils/PasswordEncryption.java: -------------------------------------------------------------------------------- 1 | package com.hospital.utils; 2 | 3 | import java.nio.charset.Charset; 4 | import java.security.MessageDigest; 5 | import java.security.NoSuchAlgorithmException; 6 | import java.util.Base64; 7 | 8 | public class PasswordEncryption { 9 | 10 | public static String encrypt(String password) throws NoSuchAlgorithmException { 11 | 12 | final MessageDigest messageDigest = MessageDigest.getInstance("MD5"); 13 | messageDigest.reset(); 14 | messageDigest.update(password.getBytes(Charset.forName("UTF8"))); 15 | final byte[] resultByte = messageDigest.digest(); 16 | 17 | final String newPass = new String(Base64.getEncoder().encodeToString(resultByte)); 18 | 19 | return newPass; 20 | 21 | } 22 | 23 | } 24 | -------------------------------------------------------------------------------- /src/main/java/com/hospital/entities/UserDAO.java: -------------------------------------------------------------------------------- 1 | package com.hospital.entities; 2 | 3 | import java.util.List; 4 | 5 | import com.hospital.models.Employee; 6 | import com.hospital.models.Message; 7 | 8 | public interface UserDAO { 9 | public List getListEmployeeWithout(int employeeID); 10 | 11 | public List getListObjects(Class clazz); 12 | 13 | public List getAllMessagesSentByEmployee(Integer employeeID); 14 | 15 | public List getAllMessagesForEmployee(Integer employeeID); 16 | 17 | public List getAllUnreadMessagesForEmployee(Integer employeeID); 18 | 19 | public List getEmployees(String type) ; 20 | 21 | public Object getObject(int employeeID, Class clazz); 22 | 23 | 24 | } 25 | -------------------------------------------------------------------------------- /src/main/java/com/hospital/utils/FormateDate.java: -------------------------------------------------------------------------------- 1 | package com.hospital.utils; 2 | 3 | import java.text.DateFormat; 4 | import java.text.SimpleDateFormat; 5 | import java.util.Date; 6 | 7 | public class FormateDate { 8 | 9 | //01/17/2017 10 | public static Date getFormatedDate(String dateText) { 11 | Date date = null; 12 | try { 13 | SimpleDateFormat df = new SimpleDateFormat("MM/dd/yyyy"); 14 | date = df.parse(dateText); 15 | } catch (Exception ex) { 16 | ex.printStackTrace(); 17 | } 18 | 19 | return date; 20 | } 21 | 22 | public static String getStringDate(Date date) 23 | { 24 | DateFormat df = new SimpleDateFormat("mm/dd/yyyy"); 25 | 26 | String reportDate = df.format(date); 27 | 28 | return reportDate; 29 | } 30 | 31 | public static void main(String[] args) {//8/16/2016 32 | Date date=getFormatedDate("8/16/2016"); 33 | System.out.println(getStringDate(date)); 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /src/main/webapp/assets/sass/md/_tables.scss: -------------------------------------------------------------------------------- 1 | .table{ 2 | > thead > tr > th{ 3 | border-bottom-width: 1px; 4 | font-size: $font-size-h6; 5 | font-weight: $font-weight-light; 6 | } 7 | 8 | .radio, 9 | .checkbox{ 10 | margin-top: 0; 11 | margin-bottom: 0; 12 | margin-left: 10px; 13 | padding: 0; 14 | width: 15px; 15 | 16 | .icons{ 17 | position: relative; 18 | } 19 | } 20 | > thead > tr > th, 21 | > tbody > tr > th, 22 | > tfoot > tr > th, 23 | > thead > tr > td, 24 | > tbody > tr > td, 25 | > tfoot > tr > td{ 26 | padding: 12px 8px; 27 | vertical-align: middle; 28 | } 29 | 30 | > thead > tr > th{ 31 | padding-bottom: 4px; 32 | } 33 | 34 | .td-actions{ 35 | display: flex; 36 | 37 | .btn{ 38 | margin: 0px; 39 | padding: 5px; 40 | } 41 | } 42 | > tbody > tr{ 43 | position: relative; 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | HospitalDashBoard 7 | 8 | index.html 9 | index.htm 10 | index.jsp 11 | default.html 12 | default.htm 13 | default.jsp 14 | 15 | 16 | 17 | 26 | 27 | -------------------------------------------------------------------------------- /src/main/java/com/hospital/models/Nurse.java: -------------------------------------------------------------------------------- 1 | package com.hospital.models; 2 | 3 | import java.io.Serializable; 4 | import java.util.ArrayList; 5 | import java.util.List; 6 | import javax.persistence.CascadeType; 7 | import javax.persistence.DiscriminatorValue; 8 | import javax.persistence.Entity; 9 | import javax.persistence.FetchType; 10 | import javax.persistence.JoinColumn; 11 | import javax.persistence.JoinTable; 12 | import javax.persistence.ManyToMany; 13 | import javax.persistence.Table; 14 | 15 | @Entity 16 | @Table(name = "Employee") 17 | @DiscriminatorValue("Nurse") 18 | public class Nurse extends Employee implements Serializable { 19 | 20 | 21 | // @ManyToMany(fetch = FetchType.EAGER, targetEntity = Room.class, cascade = { CascadeType.ALL }) 22 | // @JoinTable(name = "nurseID_roomID", joinColumns = { @JoinColumn(name = "nurse_id") }, inverseJoinColumns = { 23 | // @JoinColumn(name = "room_id") }) 24 | // private List rooms = new ArrayList<>(); 25 | 26 | public Nurse() { 27 | } 28 | 29 | 30 | 31 | 32 | } 33 | -------------------------------------------------------------------------------- /src/main/webapp/assets/sass/md/_ripples.scss: -------------------------------------------------------------------------------- 1 | .withripple { 2 | position: relative; 3 | } 4 | .ripple-container { 5 | position: absolute; 6 | top: 0; 7 | left: 0; 8 | z-index: 1; 9 | width: 100%; 10 | height: 100%; 11 | overflow: hidden; 12 | border-radius: inherit; 13 | pointer-events: none; 14 | 15 | .disabled &{ 16 | display: none; 17 | } 18 | } 19 | .ripple { 20 | position: absolute; 21 | width: 20px; 22 | height: 20px; 23 | margin-left: -10px; 24 | margin-top: -10px; 25 | border-radius: 100%; 26 | background-color: #000; // fallback color 27 | background-color: rgba(0,0,0,0.05); 28 | transform: scale(1); 29 | transform-origin: 50%; 30 | opacity: 0; 31 | pointer-events: none; 32 | } 33 | .ripple.ripple-on { 34 | transition: opacity 0.15s ease-in 0s, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s; 35 | opacity: 0.1; 36 | } 37 | .ripple.ripple-out { 38 | transition: opacity 0.1s linear 0s !important; 39 | opacity: 0; 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/com/hospital/models/BloodGroup.java: -------------------------------------------------------------------------------- 1 | package com.hospital.models; 2 | 3 | import javax.persistence.Column; 4 | import javax.persistence.Entity; 5 | import javax.persistence.GeneratedValue; 6 | import javax.persistence.GenerationType; 7 | import javax.persistence.Id; 8 | import javax.persistence.Table; 9 | 10 | @Entity 11 | @Table(name = "BloodGroups") 12 | public class BloodGroup implements java.io.Serializable { 13 | 14 | @Id 15 | @GeneratedValue(strategy = GenerationType.AUTO) 16 | @Column(name = "bloodGroupId") 17 | private Integer bloodGroupId; 18 | 19 | private String bloodGroupName; 20 | 21 | public BloodGroup() { 22 | } 23 | 24 | public Integer getBloodGroupId() { 25 | return this.bloodGroupId; 26 | } 27 | 28 | public void setBloodGroupId(Integer bloodGroupId) { 29 | this.bloodGroupId = bloodGroupId; 30 | } 31 | 32 | public String getBloodGroupName() { 33 | return this.bloodGroupName; 34 | } 35 | 36 | public void setBloodGroupName(String bloodGroupName) { 37 | this.bloodGroupName = bloodGroupName; 38 | } 39 | 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/com/hospital/models/ShiftTime.java: -------------------------------------------------------------------------------- 1 | package com.hospital.models; 2 | 3 | import javax.persistence.Column; 4 | import javax.persistence.Entity; 5 | import javax.persistence.GeneratedValue; 6 | import javax.persistence.GenerationType; 7 | import javax.persistence.Id; 8 | import javax.persistence.Table; 9 | 10 | @Entity 11 | @Table(name = "ShiftTimes") 12 | public class ShiftTime { 13 | @Id 14 | @GeneratedValue(strategy = GenerationType.AUTO) 15 | @Column(name = "shiftTimeID") 16 | private int shiftTimeID; 17 | 18 | private String fromTime; 19 | 20 | private String toTime; 21 | 22 | public int getShiftTimeID() { 23 | return shiftTimeID; 24 | } 25 | 26 | public void setShiftTimeID(int shiftTimeID) { 27 | this.shiftTimeID = shiftTimeID; 28 | } 29 | 30 | public String getFromTime() { 31 | return fromTime; 32 | } 33 | 34 | public void setFromTime(String fromTime) { 35 | this.fromTime = fromTime; 36 | } 37 | 38 | public String getToTime() { 39 | return toTime; 40 | } 41 | 42 | public void setToTime(String toTime) { 43 | this.toTime = toTime; 44 | } 45 | 46 | 47 | } 48 | -------------------------------------------------------------------------------- /src/main/webapp/assets/sass/md/_footers.scss: -------------------------------------------------------------------------------- 1 | footer{ 2 | padding: $padding-base 0; 3 | 4 | ul{ 5 | margin-bottom: 0; 6 | padding: 0; 7 | list-style: none; 8 | 9 | li{ 10 | display: inline-block; 11 | 12 | a{ 13 | color: inherit; 14 | padding: $padding-base; 15 | font-weight: $font-weight-bold; 16 | font-size: $mdb-btn-font-size-base; 17 | text-transform: uppercase; 18 | border-radius: $border-radius-base; 19 | text-decoration: none; 20 | position: relative; 21 | display: block; 22 | 23 | &:hover{ 24 | text-decoration: none; 25 | } 26 | } 27 | } 28 | } 29 | 30 | .copyright{ 31 | padding: 15px 0; 32 | margin: 0; 33 | .material-icons{ 34 | font-size: 18px; 35 | position: relative; 36 | top: 3px; 37 | } 38 | } 39 | 40 | .btn{ 41 | margin-top: 0; 42 | margin-bottom: 0; 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /src/main/java/com/hospital/models/RoomType.java: -------------------------------------------------------------------------------- 1 | package com.hospital.models; 2 | 3 | 4 | import javax.persistence.Column; 5 | import javax.persistence.Entity; 6 | import javax.persistence.GeneratedValue; 7 | import javax.persistence.GenerationType; 8 | import javax.persistence.Id; 9 | import javax.persistence.Table; 10 | 11 | @Entity 12 | @Table(name = "RoomTypes") 13 | public class RoomType implements java.io.Serializable { 14 | 15 | @Id 16 | @GeneratedValue(strategy = GenerationType.AUTO) 17 | @Column(name = "roomTypeId") 18 | private Integer roomTypeId; 19 | 20 | private String typeOfroom; 21 | 22 | private double roomCost; 23 | 24 | public RoomType() { 25 | } 26 | 27 | public Integer getRoomTypeId() { 28 | return this.roomTypeId; 29 | } 30 | 31 | public void setRoomTypeId(Integer roomTypeId) { 32 | this.roomTypeId = roomTypeId; 33 | } 34 | 35 | public String getTypeOfroom() { 36 | return this.typeOfroom; 37 | } 38 | 39 | public void setTypeOfroom(String typeOfroom) { 40 | this.typeOfroom = typeOfroom; 41 | } 42 | 43 | public double getRoomCost() { 44 | return roomCost; 45 | } 46 | 47 | public void setRoomCost(double roomCost) { 48 | this.roomCost = roomCost; 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /src/main/webapp/assets/scss/gsdk-bootstrap-wizard/_navs-pagination.scss: -------------------------------------------------------------------------------- 1 | /* Navigation menu */ 2 | .nav-pills{ 3 | background-color: $gray-bg; 4 | 5 | > li + li { 6 | margin-left: 0; 7 | } 8 | 9 | > li > a { 10 | border: 1px solid #2CA8FF; 11 | border-radius: 0; 12 | color: #2CA8FF; 13 | border: 0 !important; 14 | text-transform: uppercase; 15 | background-color: #999999; 16 | text-align: center; 17 | color: #FFFFFF !important; 18 | font-size: 12px; 19 | cursor: pointer; 20 | 21 | &:focus, 22 | &:hover{ 23 | background-color: $gray-bg; 24 | } 25 | } 26 | 27 | > li.active > a, 28 | > li.active > a:focus, 29 | > li.active > a:hover{ 30 | background-color: inherit; 31 | } 32 | 33 | } 34 | 35 | .text-primary, .text-primary:hover{ 36 | color: $primary-color; 37 | } 38 | .text-info, .text-info:hover{ 39 | color: $info-color; 40 | } 41 | .text-success, .text-success:hover{ 42 | color: $success-color; 43 | } 44 | .text-warning, .text-warning:hover{ 45 | color: $warning-color; 46 | } 47 | .text-danger, .text-danger:hover{ 48 | color: $danger-color; 49 | } 50 | -------------------------------------------------------------------------------- /src/main/java/com/hospital/models/Category.java: -------------------------------------------------------------------------------- 1 | package com.hospital.models; 2 | 3 | import javax.persistence.Column; 4 | import javax.persistence.Entity; 5 | import javax.persistence.GeneratedValue; 6 | import javax.persistence.GenerationType; 7 | import javax.persistence.Id; 8 | import javax.persistence.Table; 9 | 10 | @Entity 11 | @Table(name = "Categories") 12 | public class Category implements java.io.Serializable { 13 | 14 | /** 15 | * 16 | */ 17 | private static final long serialVersionUID = 1L; 18 | 19 | 20 | @Id 21 | @GeneratedValue(strategy = GenerationType.AUTO) 22 | @Column(name = "categoryId") 23 | private Integer categoryId; 24 | 25 | @Column(name="categoryName" ,unique=true) 26 | private String categoryName; 27 | 28 | public Category() { 29 | } 30 | 31 | public Category(String categoryName) { 32 | this.categoryName = categoryName; 33 | } 34 | 35 | public Integer getCategoryId() { 36 | return this.categoryId; 37 | } 38 | 39 | public void setCategoryId(Integer categoryId) { 40 | this.categoryId = categoryId; 41 | } 42 | 43 | public String getCategoryName() { 44 | return this.categoryName; 45 | } 46 | 47 | public void setCategoryName(String categoryName) { 48 | this.categoryName = categoryName; 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /src/main/java/com/hospital/DbConfig/HibernateUtil.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 com.hospital.DbConfig; 7 | 8 | import org.hibernate.cfg.AnnotationConfiguration; 9 | import org.hibernate.cfg.Configuration; 10 | import org.hibernate.SessionFactory; 11 | 12 | /** 13 | * Hibernate Utility class with a convenient method to get Session Factory 14 | * object. 15 | * 16 | * @author salah 17 | */ 18 | public class HibernateUtil { 19 | 20 | private static final SessionFactory sessionFactory; 21 | 22 | static { 23 | try { 24 | // Create the SessionFactory from standard (hibernate.cfg.xml) 25 | // config file. 26 | sessionFactory = new Configuration().configure().buildSessionFactory(); 27 | } catch (Throwable ex) { 28 | // Log the exception. 29 | System.err.println("Initial SessionFactory creation failed." + ex); 30 | throw new ExceptionInInitializerError(ex); 31 | } 32 | } 33 | 34 | public static SessionFactory getSessionFactory() { 35 | return sessionFactory; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /src/main/webapp/assets/scss/gsdk-bootstrap-wizard.scss: -------------------------------------------------------------------------------- 1 | /*! 2 | 3 | ========================================================= 4 | * Bootstrap Wizard - v1.1.1 5 | ========================================================= 6 | 7 | * Product Page: https://www.creative-tim.com/product/bootstrap-wizard 8 | * Copyright 2017 Creative Tim (http://www.creative-tim.com) 9 | * Licensed under MIT (https://github.com/creativetimofficial/bootstrap-wizard/blob/master/LICENSE.md) 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | 17 | 18 | @import "gsdk-bootstrap-wizard/mixins"; 19 | @import "gsdk-bootstrap-wizard/variables"; 20 | @import "gsdk-bootstrap-wizard/misc"; 21 | 22 | @import "gsdk-bootstrap-wizard/typography"; 23 | @import "gsdk-bootstrap-wizard/card"; 24 | @import "gsdk-bootstrap-wizard/wizard-card"; 25 | @import "gsdk-bootstrap-wizard/inputs"; 26 | @import "gsdk-bootstrap-wizard/buttons"; 27 | @import "gsdk-bootstrap-wizard/navs-pagination"; 28 | @import "gsdk-bootstrap-wizard/labels"; 29 | @import "gsdk-bootstrap-wizard/tooltips"; 30 | @import "gsdk-bootstrap-wizard/footers"; 31 | @import "gsdk-bootstrap-wizard/responsive"; 32 | -------------------------------------------------------------------------------- /nb-configuration.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 10 | 16 | 1.7-web 17 | Tomcat 18 | 19 | 20 | -------------------------------------------------------------------------------- /.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /src/main/webapp/assets/sass/md/_forms.scss: -------------------------------------------------------------------------------- 1 | // This file has been autogenerated by grunt task lessToSass. Any changes will be overwritten. 2 | 3 | @mixin mdb-label-color-toggle-focus(){ 4 | // override bootstrap focus and keep all the standard color (could be multiple radios in the form group) 5 | .form-group.is-focused & { 6 | color: $mdb-label-color; 7 | 8 | // on focus just darken the specific labels, do not turn them to the brand-primary 9 | &:hover, 10 | &:focus { 11 | color: $mdb-label-color-toggle-focus; 12 | } 13 | 14 | // correct the above focus color for disabled items 15 | fieldset[disabled] & { 16 | color: $mdb-label-color; 17 | } 18 | } 19 | } 20 | 21 | .form-horizontal { 22 | 23 | // Consistent vertical alignment of radios and checkboxes 24 | .radio, 25 | .checkbox, 26 | .radio-inline, 27 | .checkbox-inline { 28 | padding-top: 0; 29 | } 30 | 31 | .radio { 32 | margin-bottom: 10px; 33 | } 34 | 35 | label { 36 | text-align: right; 37 | } 38 | 39 | label.control-label { 40 | margin: 0; 41 | } 42 | } 43 | 44 | .form-newsletter{ 45 | .input-group, 46 | .form-group{ 47 | float: left; 48 | width: 78%; 49 | margin-right: 2%; 50 | margin-top: 9px; 51 | } 52 | 53 | .btn{ 54 | float: left; 55 | width: 20%; 56 | margin: 9px 0 0; 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /src/main/webapp/assets/scss/gsdk-bootstrap-wizard/_typography.scss: -------------------------------------------------------------------------------- 1 | /* Font Smoothing */ 2 | 3 | h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6, p, .navbar, .brand, .btn-simple{ 4 | -moz-osx-font-smoothing: grayscale; 5 | -webkit-font-smoothing: antialiased; 6 | } 7 | 8 | /* Typography */ 9 | 10 | h1, .h1, h2, .h2, h3, .h3, h4, .h4{ 11 | font-weight: 400; 12 | margin: 30px 0 15px; 13 | } 14 | 15 | h1, .h1 { 16 | font-size: 52px; 17 | } 18 | h2, .h2{ 19 | font-size: 36px; 20 | } 21 | h3, .h3{ 22 | font-size: 28px; 23 | margin: 20px 0 10px; 24 | } 25 | h4, .h4{ 26 | font-size: 22px; 27 | } 28 | h5, .h5 { 29 | font-size: 16px; 30 | } 31 | h6, .h6{ 32 | font-size: 14px; 33 | font-weight: bold; 34 | text-transform: uppercase; 35 | } 36 | p{ 37 | font-size: 16px; 38 | line-height: 1.6180em; 39 | } 40 | h1 small, h2 small, h3 small, h4 small, h5 small, h6 small, .h1 small, .h2 small, .h3 small, .h4 small, .h5 small, .h6 small, h1 .small, h2 .small, h3 .small, h4 .small, h5 .small, h6 .small, .h1 .small, .h2 .small, .h3 .small, .h4 .small, .h5 .small, .h6 .small { 41 | color: #999999; 42 | font-weight: 300; 43 | line-height: 1; 44 | } 45 | h1 small, h2 small, h3 small, h1 .small, h2 .small, h3 .small { 46 | font-size: 60%; 47 | } 48 | h1 .subtitle{ 49 | display: block; 50 | font-family: 'Grand Hotel',cursive; 51 | line-height: 40px; 52 | margin: 15px 0 30px; 53 | 54 | } 55 | -------------------------------------------------------------------------------- /src/main/webapp/assets/sass/md/_tabs.scss: -------------------------------------------------------------------------------- 1 | // This file has been autogenerated by grunt task lessToSass. Any changes will be overwritten. 2 | 3 | .nav-tabs { 4 | background: $brand-primary; 5 | border: 0; 6 | border-radius: $border-radius-base; 7 | padding: 0 $padding-base; 8 | 9 | > li { 10 | > a { 11 | color: #FFFFFF; 12 | border: 0; 13 | margin: 0; 14 | 15 | border-radius: $border-radius-base; 16 | 17 | line-height: $mdb-btn-font-size-base * 2; 18 | text-transform: uppercase; 19 | font-size: $mdb-btn-font-size-base; 20 | 21 | &:hover { 22 | background-color: transparent; 23 | border: 0; 24 | } 25 | } 26 | & > a, 27 | & > a:hover, 28 | & > a:focus { 29 | background-color: transparent; 30 | border: 0 !important; 31 | color: #FFFFFF !important; 32 | font-weight: $font-weight-bold; 33 | } 34 | &.disabled > a, 35 | &.disabled > a:hover { 36 | color: rgba(255,255,255,0.5); 37 | } 38 | 39 | .material-icons{ 40 | margin: -1px 5px 0 0; 41 | } 42 | } 43 | 44 | >li.active{ 45 | & > a, 46 | & > a:hover, 47 | & > a:focus { 48 | background-color: rgba(255,255,255, .2); 49 | transition: background-color .1s .2s; 50 | } 51 | } 52 | 53 | } 54 | -------------------------------------------------------------------------------- /src/main/webapp/assets/sass/md/_alerts.scss: -------------------------------------------------------------------------------- 1 | // This file has been autogenerated by grunt task lessToSass. Any changes will be overwritten. 2 | 3 | .alert { 4 | border: 0; 5 | border-radius: 0; 6 | position: relative; 7 | padding: 20px 15px; 8 | line-height: 20px; 9 | 10 | b{ 11 | font-weight: $font-weight-bold; 12 | text-transform: uppercase; 13 | font-size: $font-size-small; 14 | } 15 | // SASS conversion note: please mirror any content change in _mixins-shared.scss alert-variations-content 16 | @include alert-variations(unquote(".alert"), unquote(""), $mdb-text-color-light); 17 | 18 | &-info, &-danger, &-warning, &-success { 19 | color: $mdb-text-color-light; 20 | } 21 | 22 | &-default { 23 | a, .alert-link { 24 | color: $mdb-text-color-primary; 25 | } 26 | } 27 | 28 | i[data-notify="icon"] { 29 | font-size: 30px; 30 | display: block; 31 | left: 15px; 32 | position: absolute; 33 | top: 50%; 34 | margin-top: -15px; 35 | } 36 | 37 | span{ 38 | display: block; 39 | max-width: 89%; 40 | } 41 | 42 | .alert-icon{ 43 | display: block; 44 | float: left; 45 | margin-right: $margin-base; 46 | 47 | i{ 48 | margin-top: -7px; 49 | top: 5px; 50 | position: relative; 51 | } 52 | } 53 | } 54 | 55 | .alert.alert-with-icon { 56 | padding-left: 65px; 57 | } 58 | -------------------------------------------------------------------------------- /src/main/webapp/assets/sass/md/_typography.scss: -------------------------------------------------------------------------------- 1 | h1, .h1 { 2 | font-size: $font-size-h1; 3 | line-height: 1.15em; 4 | } 5 | h2, .h2{ 6 | font-size: $font-size-h2; 7 | } 8 | h3, .h3{ 9 | font-size: $font-size-h3; 10 | line-height: 1.4em; 11 | margin: 20px 0 10px; 12 | } 13 | h4, .h4{ 14 | font-size: $font-size-h4; 15 | line-height: 1.4em; 16 | } 17 | h5, .h5 { 18 | font-size: $font-size-h5; 19 | line-height: 1.4em; 20 | margin-bottom: 15px; 21 | } 22 | h6, .h6{ 23 | font-size: $font-size-h6; 24 | text-transform: uppercase; 25 | font-weight: $font-weight-bold; 26 | } 27 | 28 | /*.title, 29 | .card-title, 30 | .info-title, 31 | .footer-brand, 32 | .footer-big h5, 33 | .footer-big h4, 34 | .media .media-heading{ 35 | font-weight: $font-weight-extra-bold; 36 | font-family: $font-family-serif; 37 | 38 | &, 39 | a{ 40 | color: $black-color; 41 | text-decoration: none; 42 | } 43 | }*/ 44 | 45 | h2.title{ 46 | margin-bottom: $margin-base * 2; 47 | } 48 | 49 | .description, 50 | .card-description, 51 | .footer-big p{ 52 | color: $gray-light; 53 | } 54 | 55 | .text-warning { 56 | color: $brand-warning; 57 | } 58 | .text-primary { 59 | color: $brand-primary; 60 | } 61 | .text-danger { 62 | color: $brand-danger; 63 | } 64 | .text-success { 65 | color: $brand-success; 66 | } 67 | .text-info { 68 | color: $brand-info; 69 | } 70 | .text-rose{ 71 | color: $brand-rose; 72 | } 73 | .text-gray{ 74 | color: $gray-color; 75 | } 76 | -------------------------------------------------------------------------------- /src/main/webapp/assets/sass/material-dashboard.scss: -------------------------------------------------------------------------------- 1 | /*! 2 | 3 | ========================================================= 4 | * Material Dashboard - v1.1.1.0 5 | ========================================================= 6 | 7 | * Product Page: http://www.creative-tim.com/product/material-dashboard 8 | * Copyright 2017 Creative Tim (http://www.creative-tim.com) 9 | * Licensed under MIT (https://github.com/creativetimofficial/material-dashboard/blob/master/LICENSE.md) 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | 15 | */ 16 | 17 | 18 | //variables and mixins 19 | @import "md/variables"; 20 | @import "md/mixins"; 21 | @import "md/shadows"; 22 | 23 | //plugin css 24 | @import "md/plugins/_plugin-nouislider"; 25 | @import "md/plugins/_animate"; 26 | 27 | // Core CSS 28 | @import "md/typography"; 29 | @import "md/sidebar-and-main-panel"; 30 | @import "md/buttons"; 31 | @import "md/misc"; 32 | @import "md/inputs"; 33 | @import "md/forms"; 34 | @import "md/alerts"; 35 | @import "md/tables"; 36 | @import "md/checkboxes"; 37 | @import "md/radios"; 38 | @import "md/togglebutton"; 39 | @import "md/ripples"; 40 | @import "md/pills"; 41 | @import "md/dialogs"; 42 | @import "md/navbars"; 43 | @import "md/popups"; 44 | @import "md/footers"; 45 | 46 | // Fancy Stuff 47 | @import "md/dropdown"; 48 | @import "md/cards"; 49 | @import "md/tabs"; 50 | @import "md/chartist"; 51 | @import "md/responsive"; 52 | -------------------------------------------------------------------------------- /src/main/webapp/assets/css/demo.css: -------------------------------------------------------------------------------- 1 | @media ( min-width : 992px) { 2 | .typo-line { 3 | padding-left: 140px; 4 | margin-bottom: 40px; 5 | position: relative; 6 | } 7 | .typo-line .category { 8 | transform: translateY(-50%); 9 | top: 50%; 10 | left: 0px; 11 | position: absolute; 12 | } 13 | } 14 | 15 | #map { 16 | position: relative; 17 | width: 100%; 18 | height: calc(100% - 60px); 19 | margin-top: 70px; 20 | } 21 | 22 | .places-buttons .btn { 23 | margin-bottom: 30px 24 | } 25 | 26 | .space-70 { 27 | height: 70px; 28 | display: block; 29 | } 30 | 31 | .sidebar .nav>li.active-pro { 32 | position: absolute; 33 | width: 100%; 34 | bottom: 10px; 35 | } 36 | 37 | .tim-row { 38 | margin-bottom: 20px; 39 | } 40 | 41 | .tim-typo { 42 | padding-left: 25%; 43 | margin-bottom: 40px; 44 | position: relative; 45 | } 46 | 47 | .tim-typo .tim-note { 48 | bottom: 10px; 49 | color: #c0c1c2; 50 | display: block; 51 | font-weight: 400; 52 | font-size: 13px; 53 | line-height: 13px; 54 | left: 0; 55 | margin-left: 20px; 56 | position: absolute; 57 | width: 260px; 58 | } 59 | 60 | .tim-row { 61 | padding-top: 50px; 62 | } 63 | 64 | .tim-row h3 { 65 | margin-top: 0; 66 | } 67 | 68 | .logo-container { 69 | left: 50px; 70 | position: absolute; 71 | top: 20px; 72 | z-index: 3; 73 | } 74 | 75 | .logo-container .logo { 76 | overflow: hidden; 77 | border-radius: 50%; 78 | border: 1px solid #333333; 79 | width: 60px; 80 | float: left; 81 | } 82 | 83 | .logo-container .brand { 84 | font-size: 18px; 85 | color: #FFFFFF; 86 | line-height: 20px; 87 | float: left; 88 | margin-left: 10px; 89 | margin-top: 10px; 90 | width: 60px 91 | } -------------------------------------------------------------------------------- /src/main/webapp/assets/sass/md/_dropdown.scss: -------------------------------------------------------------------------------- 1 | .dropdown-menu { 2 | border: 0; 3 | box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26); 4 | 5 | .divider { 6 | background-color: rgba(0, 0, 0, .12); 7 | } 8 | 9 | 10 | li > a{ 11 | font-size: $mdb-dropdown-font-size; 12 | padding: 10px 20px; 13 | margin: 0 5px; 14 | border-radius: $border-radius-small; 15 | @include transition($fast-transition-time, $transition-linear); 16 | 17 | &:hover, 18 | &:focus { 19 | @include shadow-8dp(); 20 | 21 | } 22 | } 23 | 24 | &.dropdown-with-icons{ 25 | li > a{ 26 | padding: 12px 20px 12px 12px; 27 | 28 | .material-icons{ 29 | vertical-align: middle; 30 | font-size: 24px; 31 | position: relative; 32 | margin-top: -4px; 33 | top: 1px; 34 | margin-right: 12px; 35 | opacity: .5; 36 | } 37 | } 38 | } 39 | 40 | li { 41 | position: relative; 42 | a:hover, 43 | a:focus, 44 | a:active { 45 | background-color: $brand-primary; 46 | color: #FFFFFF; 47 | } 48 | } 49 | 50 | .divider{ 51 | margin: 5px 0; 52 | } 53 | 54 | .navbar &, 55 | .navbar.navbar-default &{ 56 | li{ 57 | a:hover, 58 | a:focus, 59 | a:active { 60 | background-color: $brand-primary; 61 | color: #FFFFFF; 62 | @include shadow-big-color($brand-primary); 63 | } 64 | } 65 | } 66 | 67 | } 68 | -------------------------------------------------------------------------------- /src/main/webapp/assets/sass/md/_popups.scss: -------------------------------------------------------------------------------- 1 | // This file has been autogenerated by grunt task lessToSass. Any changes will be overwritten. 2 | 3 | .popover, .tooltip-inner { 4 | color: $gray; 5 | line-height: 1.5em; 6 | background: $white-color; 7 | border: none; 8 | border-radius: $border-radius-base; 9 | @include shadow-8dp(); 10 | } 11 | 12 | .popover{ 13 | padding: 0; 14 | @include shadow-16dp(); 15 | 16 | &.left, 17 | &.right, 18 | &.top, 19 | &.bottom{ 20 | > .arrow{ 21 | border: none; 22 | } 23 | } 24 | } 25 | 26 | .popover-title{ 27 | background-color: $white-color; 28 | border: none; 29 | padding: 15px 15px 5px; 30 | font-size: $font-size-h4; 31 | } 32 | 33 | .popover-content{ 34 | padding: 10px 15px 15px; 35 | line-height: 1.4; 36 | } 37 | 38 | .tooltip, .tooltip.in { 39 | //opacity: 1; 40 | } 41 | .tooltip.in{ 42 | opacity: 1; 43 | @include transform-translate-y(0px); 44 | 45 | 46 | } 47 | .tooltip{ 48 | opacity: 0; 49 | transition: opacity, transform .2s ease; 50 | @include transform-translate-y(5px); 51 | 52 | &.left{ 53 | .tooltip-arrow{ 54 | border-left-color: $white-color; 55 | } 56 | } 57 | &.right{ 58 | .tooltip-arrow{ 59 | border-right-color: $white-color; 60 | } 61 | } 62 | &.top{ 63 | .tooltip-arrow{ 64 | border-top-color: $white-color; 65 | } 66 | } 67 | &.bottom{ 68 | .tooltip-arrow{ 69 | border-bottom-color: $white-color; 70 | } 71 | } 72 | } 73 | 74 | .tooltip-inner{ 75 | padding: 10px 15px; 76 | min-width: 130px; 77 | } 78 | -------------------------------------------------------------------------------- /src/main/java/com/hospital/models/WorkExperince.java: -------------------------------------------------------------------------------- 1 | package com.hospital.models; 2 | 3 | import javax.persistence.Column; 4 | import javax.persistence.Entity; 5 | import javax.persistence.GeneratedValue; 6 | import javax.persistence.GenerationType; 7 | import javax.persistence.Id; 8 | import javax.persistence.Table; 9 | 10 | @Entity 11 | @Table(name = "WorkExperinces") 12 | public class WorkExperince implements java.io.Serializable { 13 | 14 | @Id 15 | @GeneratedValue(strategy = GenerationType.AUTO) 16 | @Column(name = "workExperienceId") 17 | private Integer workExperienceId; 18 | 19 | private String nameOfOrganization; 20 | private String position; 21 | private String endDate; 22 | private String startDate; 23 | 24 | public WorkExperince() { 25 | } 26 | 27 | public Integer getWorkExperienceId() { 28 | return this.workExperienceId; 29 | } 30 | 31 | public void setWorkExperienceId(Integer workExperienceId) { 32 | this.workExperienceId = workExperienceId; 33 | } 34 | 35 | public String getNameOfOrganization() { 36 | return this.nameOfOrganization; 37 | } 38 | 39 | public void setNameOfOrganization(String nameOfOrganization) { 40 | this.nameOfOrganization = nameOfOrganization; 41 | } 42 | 43 | public String getPosition() { 44 | return this.position; 45 | } 46 | 47 | public void setPosition(String position) { 48 | this.position = position; 49 | } 50 | 51 | public String getEndDate() { 52 | return this.endDate; 53 | } 54 | 55 | public void setEndDate(String endDate) { 56 | this.endDate = endDate; 57 | } 58 | 59 | public String getStartDate() { 60 | return this.startDate; 61 | } 62 | 63 | public void setStartDate(String startDate) { 64 | this.startDate = startDate; 65 | } 66 | 67 | } 68 | -------------------------------------------------------------------------------- /src/main/webapp/assets/css/scrolling-nav.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * Start Bootstrap - Scrolling Nav HTML Template (http://startbootstrap.com) 3 | * Code licensed under the Apache License v2.0. 4 | * For details, see http://www.apache.org/licenses/LICENSE-2.0. 5 | */ 6 | 7 | body { 8 | width: 100%; 9 | height: 100%; 10 | } 11 | 12 | html { 13 | width: 100%; 14 | height: 100%; 15 | } 16 | 17 | @media(min-width:767px) { 18 | .navbar { 19 | padding: 20px 0; 20 | -webkit-transition: background .5s ease-in-out,padding .5s ease-in-out; 21 | -moz-transition: background .5s ease-in-out,padding .5s ease-in-out; 22 | transition: background .5s ease-in-out,padding .5s ease-in-out; 23 | } 24 | 25 | .top-nav-collapse { 26 | padding: 0; 27 | } 28 | } 29 | 30 | /* Demo Sections - You can use these as guides or delete them - the scroller will work with any sort of height, fixed, undefined, or percentage based. 31 | The padding is very important to make sure the scrollspy picks up the right area when scrolled to. Adjust the margin and padding of sections and children 32 | of those sections to manage the look and feel of the site. */ 33 | 34 | .intro-section { 35 | height: 100%; 36 | padding-top: 150px; 37 | text-align: center; 38 | background: #fff; 39 | } 40 | 41 | .about-section { 42 | height: 100%; 43 | padding-top: 150px; 44 | text-align: center; 45 | background: #eee; 46 | } 47 | 48 | .services-section { 49 | height: 100%; 50 | padding-top: 150px; 51 | text-align: center; 52 | background: #fff; 53 | } 54 | 55 | .contact-section { 56 | height: 100%; 57 | padding-top: 150px; 58 | text-align: center; 59 | background: #eee; 60 | } -------------------------------------------------------------------------------- /src/main/webapp/assets/scss/gsdk-bootstrap-wizard/_labels.scss: -------------------------------------------------------------------------------- 1 | /* Labels & Progress-bar */ 2 | .label{ 3 | padding: 0.2em 0.6em 0.2em; 4 | border: 1px solid $gray-color; 5 | border-radius: 3px; 6 | color: $gray-color; 7 | background-color: $white-color; 8 | font-weight: 500; 9 | font-size: 11px; 10 | text-transform: uppercase; 11 | 12 | &.label-fill{ 13 | color: $white-color; 14 | } 15 | } 16 | .label-primary{ 17 | border-color: $primary-color; 18 | color: $primary-color; 19 | } 20 | .label-info{ 21 | border-color: $info-color; 22 | color: $info-color; 23 | } 24 | .label-success{ 25 | border-color: $success-color; 26 | color: $success-color; 27 | } 28 | .label-warning{ 29 | border-color: $warning-color; 30 | color: $warning-color; 31 | } 32 | .label-danger{ 33 | border-color: $danger-color; 34 | color: $danger-color; 35 | } 36 | 37 | label{ 38 | font-weight: 400; 39 | } 40 | 41 | label.error{ 42 | color: $danger-color; 43 | margin-top: 5px; 44 | margin-bottom: 0; 45 | } 46 | 47 | label small{ 48 | color: $gray-color; 49 | } 50 | 51 | .label-primary.label-fill, .progress-bar, .progress-bar-primary{ 52 | background-color: $primary-color; 53 | } 54 | .label-info.label-fill, .progress-bar-info{ 55 | background-color: $info-color; 56 | } 57 | .label-success.label-fill, .progress-bar-success{ 58 | background-color: $success-color; 59 | } 60 | .label-warning.label-fill, .progress-bar-warning{ 61 | background-color: $warning-color; 62 | } 63 | .label-danger.label-fill, .progress-bar-danger{ 64 | background-color: $danger-color; 65 | } 66 | .label-default.label-fill{ 67 | background-color: $gray-bg; 68 | } 69 | -------------------------------------------------------------------------------- /src/main/java/com/hospital/models/NextOfKin.java: -------------------------------------------------------------------------------- 1 | package com.hospital.models; 2 | // Generated Apr 26, 2017 7:53:39 PM by Hibernate Tools 4.3.1 3 | 4 | import java.util.HashSet; 5 | import java.util.Set; 6 | 7 | import javax.persistence.Column; 8 | import javax.persistence.Entity; 9 | import javax.persistence.GeneratedValue; 10 | import javax.persistence.GenerationType; 11 | import javax.persistence.Id; 12 | import javax.persistence.Table; 13 | 14 | @Entity 15 | @Table(name = "NextOfKin") 16 | public class NextOfKin implements java.io.Serializable { 17 | 18 | @Id 19 | @GeneratedValue(strategy = GenerationType.AUTO) 20 | @Column(name = "nextOfKinId") 21 | private Integer nextOfKinId; 22 | 23 | private String address; 24 | private String fullName; 25 | private String phone; 26 | private String relationship; 27 | 28 | 29 | public NextOfKin() { 30 | } 31 | 32 | public Integer getNextOfKinId() { 33 | return this.nextOfKinId; 34 | } 35 | 36 | public void setNextOfKinId(Integer nextOfKinId) { 37 | this.nextOfKinId = nextOfKinId; 38 | } 39 | 40 | public String getAddress() { 41 | return this.address; 42 | } 43 | 44 | public void setAddress(String address) { 45 | this.address = address; 46 | } 47 | 48 | public String getFullName() { 49 | return this.fullName; 50 | } 51 | 52 | public void setFullName(String fullName) { 53 | this.fullName = fullName; 54 | } 55 | 56 | public String getPhone() { 57 | return this.phone; 58 | } 59 | 60 | public void setPhone(String phone) { 61 | this.phone = phone; 62 | } 63 | 64 | public String getRelationship() { 65 | return this.relationship; 66 | } 67 | 68 | public void setRelationship(String relationship) { 69 | this.relationship = relationship; 70 | } 71 | 72 | } 73 | -------------------------------------------------------------------------------- /src/main/java/com/hospital/actions/AccountancyListener.java: -------------------------------------------------------------------------------- 1 | package com.hospital.actions; 2 | 3 | import javax.servlet.http.HttpServletRequest; 4 | import javax.servlet.http.HttpServletResponse; 5 | 6 | import com.hospital.entities.AccountantDAO; 7 | import com.hospital.entities.HospitalService; 8 | import com.hospital.models.BookBed; 9 | import com.hospital.models.Room; 10 | 11 | public class AccountancyListener { 12 | 13 | private static AccountancyListener accountancyListener = new AccountancyListener(); 14 | 15 | private static AccountantDAO accountantDAO = HospitalService.getInstance(); 16 | 17 | private AccountancyListener() { 18 | } 19 | 20 | public static AccountancyListener getInstance() { 21 | return accountancyListener; 22 | } 23 | 24 | public void checkedPatientFees(HttpServletRequest request, HttpServletResponse response) { 25 | 26 | try { 27 | int bid = Integer.parseInt(request.getParameter("bid")); 28 | 29 | BookBed bookBed = (BookBed) accountantDAO.getObject(bid, BookBed.class); 30 | 31 | System.out.println("Test Patient Fess:" + bookBed.isStatus()); 32 | if (bookBed.isStatus()) { 33 | bookBed.setStatus(false); 34 | } else { 35 | 36 | Room room = bookBed.getRoom(); 37 | room.setNumberOfAvailableBeds(room.getNumberOfAvailableBeds() + 1); 38 | accountantDAO.updateObject(room); 39 | bookBed.setStatus(true); 40 | } 41 | 42 | accountantDAO.updateObject(bookBed); 43 | response.sendRedirect("computefees.jsp"); 44 | 45 | } catch (Exception ex) { 46 | ex.printStackTrace(); 47 | } 48 | 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | HospitalSystemV2 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.wst.jsdt.core.javascriptValidator 10 | 11 | 12 | 13 | 14 | org.eclipse.jdt.core.javabuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.wst.common.project.facet.core.builder 20 | 21 | 22 | 23 | 24 | org.eclipse.wst.validation.validationbuilder 25 | 26 | 27 | 28 | 29 | org.springframework.ide.eclipse.core.springbuilder 30 | 31 | 32 | 33 | 34 | org.eclipse.babel.editor.rbeBuilder 35 | 36 | 37 | 38 | 39 | org.eclipse.m2e.core.maven2Builder 40 | 41 | 42 | 43 | 44 | 45 | org.springframework.ide.eclipse.core.springnature 46 | org.eclipse.jem.workbench.JavaEMFNature 47 | org.eclipse.wst.common.modulecore.ModuleCoreNature 48 | org.eclipse.jdt.core.javanature 49 | org.eclipse.m2e.core.maven2Nature 50 | org.eclipse.wst.common.project.facet.core.nature 51 | org.eclipse.wst.jsdt.core.jsNature 52 | com.jaspersoft.studio.babel.editor.rbeNature 53 | 54 | 55 | -------------------------------------------------------------------------------- /src/main/java/com/hospital/models/Qualification.java: -------------------------------------------------------------------------------- 1 | package com.hospital.models; 2 | // Generated Apr 26, 2017 7:53:39 PM by Hibernate Tools 4.3.1 3 | 4 | import javax.persistence.Column; 5 | import javax.persistence.Entity; 6 | import javax.persistence.GeneratedValue; 7 | import javax.persistence.GenerationType; 8 | import javax.persistence.Id; 9 | import javax.persistence.Table; 10 | 11 | @Entity 12 | @Table(name = "Qualifications") 13 | public class Qualification implements java.io.Serializable { 14 | 15 | @Id 16 | @GeneratedValue(strategy = GenerationType.AUTO) 17 | @Column(name = "qualId") 18 | private Integer qualId; 19 | 20 | private String instituteName; 21 | private String qualificationDate; 22 | private String qualificationName; 23 | private String degree; 24 | 25 | public Qualification() { 26 | } 27 | 28 | public Integer getQualId() { 29 | return this.qualId; 30 | } 31 | 32 | public void setQualId(Integer qualId) { 33 | this.qualId = qualId; 34 | } 35 | 36 | public String getInstituteName() { 37 | return this.instituteName; 38 | } 39 | 40 | public void setInstituteName(String instituteName) { 41 | this.instituteName = instituteName; 42 | } 43 | 44 | public String getQualificationDate() { 45 | return this.qualificationDate; 46 | } 47 | 48 | public void setQualificationDate(String qualificationDate) { 49 | this.qualificationDate = qualificationDate; 50 | } 51 | 52 | public String getQualificationName() { 53 | return this.qualificationName; 54 | } 55 | 56 | public void setQualificationName(String qualificationName) { 57 | this.qualificationName = qualificationName; 58 | } 59 | 60 | public String getDegree() { 61 | return degree; 62 | } 63 | 64 | public void setDegree(String degree) { 65 | this.degree = degree; 66 | } 67 | 68 | 69 | 70 | } 71 | -------------------------------------------------------------------------------- /src/main/java/com/hospital/DbConfig/HibernateDriver.java: -------------------------------------------------------------------------------- 1 | package com.hospital.DbConfig; 2 | 3 | /* 4 | * To change this license header, choose License Headers in Project Properties. 5 | * To change this template file, choose Tools | Templates 6 | * and open the template in the editor. 7 | */ 8 | 9 | import java.io.Serializable; 10 | import org.hibernate.Session; 11 | import org.hibernate.Transaction; 12 | 13 | /** 14 | * 15 | * @author salman karim 16 | */ 17 | 18 | public class HibernateDriver implements Serializable { 19 | 20 | /** 21 | * 22 | */ 23 | private static final long serialVersionUID = 1L; 24 | private Session session; 25 | private Transaction transaction; 26 | 27 | public HibernateDriver() { 28 | // session = HibernateUtil.getSessionFactory().openSession(); 29 | System.err.println("Connecting DataBase Success"); 30 | } 31 | 32 | public void openSession() { 33 | session = HibernateUtil.getSessionFactory().openSession(); 34 | setTransaction(getSession().beginTransaction()); 35 | } 36 | 37 | 38 | 39 | public void closeSession() 40 | { 41 | transaction.commit(); 42 | session.close(); 43 | } 44 | 45 | public void roleBack() 46 | { 47 | if (transaction!=null) 48 | transaction.rollback(); 49 | } 50 | 51 | /** 52 | * @return the session 53 | */ 54 | public Session getSession() { 55 | return session; 56 | } 57 | 58 | /** 59 | * @param session 60 | * the session to set 61 | */ 62 | public void setSession(Session session) { 63 | this.session = session; 64 | } 65 | 66 | /** 67 | * @return the transaction 68 | */ 69 | public Transaction getTransaction() { 70 | return transaction; 71 | } 72 | 73 | /** 74 | * @param transaction 75 | * the transaction to set 76 | */ 77 | public void setTransaction(Transaction transaction) { 78 | this.transaction = transaction; 79 | } 80 | 81 | } 82 | -------------------------------------------------------------------------------- /src/main/webapp/assets/js/dataTables.bootstrap.min.js: -------------------------------------------------------------------------------- 1 | /*! 2 | DataTables Bootstrap 3 integration 3 | ©2011-2015 SpryMedia Ltd - datatables.net/license 4 | */ 5 | (function(b){"function"===typeof define&&define.amd?define(["jquery","datatables.net"],function(a){return b(a,window,document)}):"object"===typeof exports?module.exports=function(a,d){a||(a=window);if(!d||!d.fn.dataTable)d=require("datatables.net")(a,d).$;return b(d,a,a.document)}:b(jQuery,window,document)})(function(b,a,d,m){var f=b.fn.dataTable;b.extend(!0,f.defaults,{dom:"<'row'<'col-sm-6'l><'col-sm-6'f>><'row'<'col-sm-12'tr>><'row'<'col-sm-5'i><'col-sm-7'p>>",renderer:"bootstrap"});b.extend(f.ext.classes, 6 | {sWrapper:"dataTables_wrapper form-inline dt-bootstrap",sFilterInput:"form-control input-sm",sLengthSelect:"form-control input-sm",sProcessing:"dataTables_processing panel panel-default"});f.ext.renderer.pageButton.bootstrap=function(a,h,r,s,j,n){var o=new f.Api(a),t=a.oClasses,k=a.oLanguage.oPaginate,u=a.oLanguage.oAria.paginate||{},e,g,p=0,q=function(d,f){var l,h,i,c,m=function(a){a.preventDefault();!b(a.currentTarget).hasClass("disabled")&&o.page()!=a.data.action&&o.page(a.data.action).draw("page")}; 7 | l=0;for(h=f.length;l",{"class":t.sPageButton+" "+g,id:0===r&&"string"===typeof c?a.sTableId+"_"+c:null}).append(b("",{href:"#", 8 | "aria-controls":a.sTableId,"aria-label":u[c],"data-dt-idx":p,tabindex:a.iTabIndex}).html(e)).appendTo(d),a.oApi._fnBindAction(i,{action:c},m),p++)}},i;try{i=b(h).find(d.activeElement).data("dt-idx")}catch(v){}q(b(h).empty().html('
    ').children("ul"),s);i!==m&&b(h).find("[data-dt-idx="+i+"]").focus()};return f}); -------------------------------------------------------------------------------- /src/main/webapp/templates/user/nav-bar.jsp: -------------------------------------------------------------------------------- 1 | 2 | 49 | 50 | -------------------------------------------------------------------------------- /src/main/java/com/hospital/models/NurseServiceTime.java: -------------------------------------------------------------------------------- 1 | package com.hospital.models; 2 | 3 | import java.util.Date; 4 | 5 | import javax.persistence.CascadeType; 6 | import javax.persistence.Column; 7 | import javax.persistence.Entity; 8 | import javax.persistence.FetchType; 9 | import javax.persistence.GeneratedValue; 10 | import javax.persistence.GenerationType; 11 | import javax.persistence.Id; 12 | import javax.persistence.JoinColumn; 13 | import javax.persistence.OneToOne; 14 | import javax.persistence.Table; 15 | 16 | @Entity 17 | @Table(name = "NursesServiceTimes") 18 | public class NurseServiceTime { 19 | 20 | @Id 21 | @GeneratedValue(strategy = GenerationType.AUTO) 22 | @Column(name = "nurseServiceTimeID") 23 | private int nurseServiceTimeID; 24 | 25 | private Date serviceDate; 26 | 27 | @OneToOne(fetch = FetchType.EAGER,targetEntity = ShiftTime.class, cascade = {CascadeType.ALL}) 28 | @JoinColumn(name = "shiftTime_id") 29 | private ShiftTime shiftTime; 30 | 31 | @OneToOne(fetch = FetchType.EAGER,targetEntity = Nurse.class, cascade = {CascadeType.ALL}) 32 | @JoinColumn(name = "nurse_id") 33 | private Nurse nurse; 34 | 35 | 36 | private String department; 37 | 38 | public int getNurseServiceTimeID() { 39 | return nurseServiceTimeID; 40 | } 41 | 42 | public void setNurseServiceTimeID(int nurseServiceTimeID) { 43 | this.nurseServiceTimeID = nurseServiceTimeID; 44 | } 45 | 46 | public Date getServiceDate() { 47 | return serviceDate; 48 | } 49 | 50 | public void setServiceDate(Date serviceDate) { 51 | this.serviceDate = serviceDate; 52 | } 53 | 54 | public ShiftTime getShiftTime() { 55 | return shiftTime; 56 | } 57 | 58 | public void setShiftTime(ShiftTime shiftTime) { 59 | this.shiftTime = shiftTime; 60 | } 61 | 62 | public Nurse getNurse() { 63 | return nurse; 64 | } 65 | 66 | public void setNurse(Nurse nurse) { 67 | this.nurse = nurse; 68 | } 69 | 70 | public String getDepartment() { 71 | return department; 72 | } 73 | 74 | public void setDepartment(String department) { 75 | this.department = department; 76 | } 77 | 78 | } 79 | -------------------------------------------------------------------------------- /src/main/webapp/templates/user/changepass.jsp: -------------------------------------------------------------------------------- 1 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 2 | 3 |
    4 |
    5 |
    6 | 7 | 8 |
    9 |
    10 |
    11 |

    12 | 13 |

    14 | 15 |

    16 |
    17 | Change Your Password 18 |

    19 |

    Are you want to change Password Must at 20 | least 3 character's.

    21 |
    22 |
    23 |
    24 | 25 |
    26 |
    27 | 30 |
    31 |
    32 |
    33 |
    34 | 37 |
    38 |
    39 | 40 | 41 |
    42 |
    43 | 46 |
    47 |
    48 | 49 | 50 | 51 |
    52 |
    53 | 56 |
    57 |
    58 | 59 | 60 |
    61 |
    62 |
    63 |
    64 |
    65 |
    66 |
    67 | -------------------------------------------------------------------------------- /src/main/java/com/hospital/models/Room.java: -------------------------------------------------------------------------------- 1 | package com.hospital.models; 2 | 3 | 4 | import javax.persistence.Column; 5 | import javax.persistence.Entity; 6 | import javax.persistence.FetchType; 7 | import javax.persistence.GeneratedValue; 8 | import javax.persistence.GenerationType; 9 | import javax.persistence.Id; 10 | import javax.persistence.JoinColumn; 11 | import javax.persistence.OneToOne; 12 | import javax.persistence.Table; 13 | 14 | 15 | @Entity 16 | @Table(name = "Rooms") 17 | public class Room implements java.io.Serializable { 18 | 19 | @Id 20 | @GeneratedValue(strategy = GenerationType.AUTO) 21 | @Column(name = "roomId") 22 | private Integer roomId; 23 | 24 | private int roomNumber; 25 | 26 | private int numberOfBeds; 27 | 28 | 29 | private int numberOfAvailableBeds; 30 | 31 | 32 | 33 | @OneToOne(fetch = FetchType.EAGER, orphanRemoval=false,targetEntity = RoomType.class,cascade = javax.persistence.CascadeType.REMOVE) 34 | 35 | @JoinColumn(name = "roomType_id", referencedColumnName = "roomTypeId") 36 | private RoomType roomType; 37 | 38 | public Room() { 39 | } 40 | 41 | public Integer getRoomId() { 42 | return this.roomId; 43 | } 44 | 45 | public void setRoomId(Integer roomId) { 46 | this.roomId = roomId; 47 | } 48 | 49 | public RoomType getRoomType() { 50 | return this.roomType; 51 | } 52 | 53 | public void setRoomType(RoomType roomType) { 54 | this.roomType = roomType; 55 | } 56 | 57 | public int getNumberOfBeds() { 58 | return this.numberOfBeds; 59 | } 60 | 61 | public void setNumberOfBeds(int numberOfBeds) { 62 | this.numberOfBeds = numberOfBeds; 63 | } 64 | 65 | public int getNumberOfAvailableBeds() { 66 | return this.numberOfAvailableBeds; 67 | } 68 | 69 | public void setNumberOfAvailableBeds(int numberOfAvailableBeds) { 70 | this.numberOfAvailableBeds = numberOfAvailableBeds; 71 | } 72 | 73 | /** 74 | * @return the roomNumber 75 | */ 76 | public int getRoomNumber() { 77 | return roomNumber; 78 | } 79 | 80 | /** 81 | * @param roomNumber the roomNumber to set 82 | */ 83 | public void setRoomNumber(int roomNumber) { 84 | this.roomNumber = roomNumber; 85 | } 86 | 87 | } 88 | -------------------------------------------------------------------------------- /src/main/webapp/templates/user/viewMessage.jsp: -------------------------------------------------------------------------------- 1 | <%@page import="com.hospital.models.Message"%> 2 | <%@page import="com.hospital.models.Employee"%> 3 | <%@page import="java.util.List"%> 4 | <%@page import="com.hospital.entities.HospitalService"%> 5 | <%@page import="com.hospital.entities.UserDAO"%> 6 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 19 | 20 | 21 | 22 |
    Eng
    23 |
    24 | Made with Mustafa 25 |
    26 |
    27 | <% 28 | Message selectedMessage = (Message) session.getAttribute("selectedMessage"); 29 | 30 | %> 31 |
    32 |
    33 |
    34 |
    35 |
    36 | 37 |
    38 | 39 |
    40 |
    42 |
    <%=selectedMessage.getFromEmployee().getFirstName()%> 43 | <%=selectedMessage.getFromEmployee().getFatherName()%> 44 | <%=selectedMessage.getFromEmployee().getFamilyName()%>
    45 |
    46 |
    47 |

    <%=selectedMessage.getPatient().getName()%> 48 | <%=selectedMessage.getPatient().getFatherName()%> 49 | <%=selectedMessage.getPatient().getFamilyName()%>

    50 |

    51 | <%=selectedMessage.getSubject()%> 53 |

    54 |

    <%=selectedMessage.getMessageBody() %>

    55 |
    56 | 62 |
    63 | 64 |
    65 |
    66 |
    67 |
    68 |
    69 |
    70 | 71 | -------------------------------------------------------------------------------- /src/main/webapp/assets/sass/md/_dialogs.scss: -------------------------------------------------------------------------------- 1 | // This file has been autogenerated by grunt task lessToSass. Any changes will be overwritten. 2 | 3 | // 4 | // Modals 5 | // Material Design element Dialogs 6 | // -------------------------------------------------- 7 | .modal-content { 8 | @include shadow-z-5(); 9 | border-radius: $border-radius-large; 10 | border: none; 11 | // Modal header 12 | // Top section of the modal w/ title and dismiss 13 | .modal-header { 14 | border-bottom: none; 15 | padding-top: 24px; 16 | padding-right: 24px; 17 | padding-bottom: 0; 18 | padding-left: 24px; 19 | } 20 | // Modal body 21 | // Where all modal content resides (sibling of .modal-header and .modal-footer) 22 | .modal-body { 23 | padding-top: 24px; 24 | padding-right: 24px; 25 | padding-bottom: 16px; 26 | padding-left: 24px; 27 | } 28 | // Footer (for actions) 29 | .modal-footer { 30 | border-top: none; 31 | padding: 7px; 32 | 33 | &.text-center{ 34 | text-align: center; 35 | } 36 | 37 | button { 38 | margin: 0; 39 | padding-left: 16px; 40 | padding-right: 16px; 41 | width: auto; 42 | &.pull-left { 43 | padding-left: 5px; 44 | padding-right: 5px; 45 | position: relative; 46 | left: -5px; 47 | } 48 | } 49 | button+button { 50 | margin-bottom: 16px; 51 | } 52 | } 53 | .modal-body + .modal-footer { 54 | padding-top: 0; 55 | } 56 | } 57 | .modal-backdrop { 58 | background: rgba(0,0,0,0.3); 59 | } 60 | 61 | .modal{ 62 | .modal-dialog{ 63 | margin-top: 100px; 64 | } 65 | .modal-header .close{ 66 | color: $gray-light; 67 | 68 | &:hover, 69 | &:focus{ 70 | opacity: 1; 71 | } 72 | 73 | i{ 74 | font-size: 16px; 75 | } 76 | } 77 | } 78 | 79 | .modal-notice { 80 | .instruction{ 81 | margin-bottom: 25px; 82 | } 83 | .picture{ 84 | max-width: 150px; 85 | } 86 | 87 | .modal-content{ 88 | .btn-raised{ 89 | margin-bottom: 15px; 90 | } 91 | } 92 | } 93 | 94 | .modal-small{ 95 | width: 300px; 96 | .modal-body{ 97 | margin-top: 20px; 98 | } 99 | } -------------------------------------------------------------------------------- /src/main/java/com/hospital/models/BookBed.java: -------------------------------------------------------------------------------- 1 | package com.hospital.models; 2 | // Generated Apr 26, 2017 7:53:39 PM by Hibernate Tools 4.3.1 3 | 4 | import java.util.Date; 5 | 6 | import javax.persistence.CascadeType; 7 | import javax.persistence.Column; 8 | import javax.persistence.Entity; 9 | import javax.persistence.FetchType; 10 | import javax.persistence.GeneratedValue; 11 | import javax.persistence.GenerationType; 12 | import javax.persistence.Id; 13 | import javax.persistence.JoinColumn; 14 | import javax.persistence.OneToOne; 15 | import javax.persistence.Table; 16 | 17 | @Entity 18 | @Table(name = "BookBeds") 19 | public class BookBed implements java.io.Serializable { 20 | 21 | @Id 22 | @GeneratedValue(strategy = GenerationType.AUTO) 23 | @Column(name = "bedId") 24 | private Integer bedId; 25 | private Date datePlaced; 26 | private String departement; 27 | private boolean status; 28 | 29 | @OneToOne(fetch = FetchType.EAGER, targetEntity = Patient.class, cascade = CascadeType.ALL) 30 | @JoinColumn(name = "patient_id") 31 | private Patient patient; 32 | 33 | @OneToOne(fetch = FetchType.EAGER, targetEntity = Room.class, cascade = CascadeType.ALL) 34 | @JoinColumn(name = "room_id") 35 | private Room room; 36 | 37 | public BookBed() { 38 | } 39 | 40 | 41 | public Integer getBedId() { 42 | return this.bedId; 43 | } 44 | 45 | public void setBedId(Integer bedId) { 46 | this.bedId = bedId; 47 | } 48 | 49 | public Patient getPatient() { 50 | return this.patient; 51 | } 52 | 53 | public void setPatient(Patient patient) { 54 | this.patient = patient; 55 | } 56 | 57 | public Room getRoom() { 58 | return this.room; 59 | } 60 | 61 | public void setRoom(Room room) { 62 | this.room = room; 63 | } 64 | 65 | 66 | 67 | public Date getDatePlaced() { 68 | return this.datePlaced; 69 | } 70 | 71 | public void setDatePlaced(Date datePlaced) { 72 | this.datePlaced = datePlaced; 73 | } 74 | 75 | public String getDepartement() { 76 | return this.departement; 77 | } 78 | 79 | public void setDepartement(String departement) { 80 | this.departement = departement; 81 | } 82 | 83 | 84 | public boolean isStatus() { 85 | return status; 86 | } 87 | 88 | 89 | public void setStatus(boolean status) { 90 | this.status = status; 91 | } 92 | 93 | 94 | 95 | 96 | } 97 | -------------------------------------------------------------------------------- /src/main/java/com/hospital/models/Disease.java: -------------------------------------------------------------------------------- 1 | package com.hospital.models; 2 | // Generated Apr 26, 2017 7:53:39 PM by Hibernate Tools 4.3.1 3 | 4 | import java.util.Date; 5 | 6 | import javax.persistence.CascadeType; 7 | import javax.persistence.Column; 8 | import javax.persistence.Entity; 9 | import javax.persistence.FetchType; 10 | import javax.persistence.GeneratedValue; 11 | import javax.persistence.GenerationType; 12 | import javax.persistence.Id; 13 | import javax.persistence.JoinColumn; 14 | import javax.persistence.OneToOne; 15 | import javax.persistence.Table; 16 | 17 | @Entity 18 | @Table(name = "Diseases") 19 | public class Disease implements java.io.Serializable { 20 | 21 | @Id 22 | @GeneratedValue(strategy = GenerationType.AUTO) 23 | @Column(name = "diseaseId") 24 | private Integer diseaseId; 25 | 26 | private String disease; 27 | 28 | private String note; 29 | 30 | @OneToOne(fetch = FetchType.EAGER, targetEntity = Employee.class, cascade = CascadeType.ALL) 31 | @JoinColumn(name = "employee_id") 32 | private Employee employee; 33 | 34 | @OneToOne(fetch = FetchType.EAGER, targetEntity = Patient.class, cascade = CascadeType.ALL) 35 | @JoinColumn(name = "patient_id") 36 | private Patient patient; 37 | 38 | private Date diseaseDate; 39 | 40 | public Disease() { 41 | } 42 | 43 | public Integer getDiseaseId() { 44 | return this.diseaseId; 45 | } 46 | 47 | public void setDiseaseId(Integer diseaseId) { 48 | this.diseaseId = diseaseId; 49 | } 50 | 51 | public Patient getPatient() { 52 | return this.patient; 53 | } 54 | 55 | public void setPatient(Patient patient) { 56 | this.patient = patient; 57 | } 58 | 59 | public String getDisease() { 60 | return this.disease; 61 | } 62 | 63 | public void setDisease(String disease) { 64 | this.disease = disease; 65 | } 66 | 67 | public Employee getEmployee() { 68 | return employee; 69 | } 70 | 71 | public void setEmployee(Employee employee) { 72 | this.employee = employee; 73 | } 74 | 75 | public Date getDiseaseDate() { 76 | return diseaseDate; 77 | } 78 | 79 | public void setDiseaseDate(Date diseaseDate) { 80 | this.diseaseDate = diseaseDate; 81 | } 82 | 83 | public String getNote() { 84 | return note; 85 | } 86 | 87 | public void setNote(String note) { 88 | this.note = note; 89 | } 90 | 91 | } 92 | -------------------------------------------------------------------------------- /src/main/webapp/admin/dashboard.jsp: -------------------------------------------------------------------------------- 1 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 2 | 3 | <%@page import="com.hospital.entities.HospitalService"%> 4 | <%@page import="com.hospital.entities.AdminDAO"%> 5 | <%@page import="com.hospital.models.Employee"%> 6 | <%@page import="com.hospital.models.EmployeeStatatistic"%> 7 | <%@page import="java.util.List"%> 8 | 9 | <% 10 | Employee employee = (Employee) session.getAttribute("employee"); 11 | AdminDAO adminDAO = HospitalService.getInstance(); 12 | List employeeStatatistics = adminDAO.getEmployeeStatistic(); 13 | request.setAttribute("employeeStatatistics", employeeStatatistics); 14 | %> 15 | 16 | 17 |
    18 |
    19 |
    20 | 21 | <% 22 | for (EmployeeStatatistic employeeStatatistic : employeeStatatistics) { 23 | %> 24 |
    25 |
    26 |
    27 |
    28 |
    29 |
    <%=employeeStatatistic.getType()%>
    30 |
    31 |
    32 |
    33 |

    Number

    34 |

    35 | <%=employeeStatatistic.getNumber().intValue()%> 36 | EM 37 |

    38 |
    39 | 58 |
    59 |
    60 |
    61 | <% 62 | } 63 | %> 64 | 65 | 66 |
    67 |
    -------------------------------------------------------------------------------- /src/main/webapp/assets/sass/md/_togglebutton.scss: -------------------------------------------------------------------------------- 1 | // This file has been autogenerated by grunt task lessToSass. Any changes will be overwritten. 2 | 3 | .togglebutton { 4 | vertical-align: middle; 5 | &, label, input, .toggle { 6 | user-select: none; 7 | } 8 | label { 9 | cursor: pointer; 10 | color: $mdb-toggle-label-color; 11 | @include mdb-label-color-toggle-focus(); 12 | 13 | // Hide original checkbox 14 | input[type=checkbox] { 15 | opacity: 0; 16 | width: 0; 17 | height: 0; 18 | } 19 | 20 | .toggle { 21 | text-align: left; // Issue #737 horizontal form 22 | margin-left: 5px; 23 | } 24 | // Switch bg off and disabled 25 | .toggle, 26 | input[type=checkbox][disabled] + .toggle { 27 | content: ""; 28 | display: inline-block; 29 | width: 30px; 30 | height: 15px; 31 | background-color: rgba(80, 80, 80, 0.7); 32 | border-radius: 15px; 33 | margin-right: 15px; 34 | transition: background 0.3s ease; 35 | vertical-align: middle; 36 | } 37 | // Handle off 38 | .toggle:after { 39 | content: ""; 40 | display: inline-block; 41 | width: 20px; 42 | height: 20px; 43 | background-color: #FFFFFF; 44 | border-radius: 20px; 45 | position: relative; 46 | box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4); 47 | left: -5px; 48 | top: -3px; 49 | border: 1px solid $mdb-checkbox-border-color; 50 | transition: left 0.3s ease, background 0.3s ease, box-shadow 0.1s ease; 51 | } 52 | input[type=checkbox] { 53 | // Handle disabled 54 | &[disabled] { 55 | & + .toggle:after, 56 | &:checked + .toggle:after { 57 | background-color: #BDBDBD; 58 | } 59 | } 60 | 61 | & + .toggle:active:after, 62 | &[disabled] + .toggle:active:after { 63 | box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(0, 0, 0, 0.1); 64 | } 65 | 66 | // Ripple off and disabled 67 | &:checked + .toggle:after { 68 | left: 15px; 69 | } 70 | } 71 | 72 | // set bg when checked 73 | input[type=checkbox]:checked { 74 | + .toggle { 75 | background-color: rgba($brand-primary, (70/100)); // Switch bg on 76 | } 77 | 78 | + .toggle:after { 79 | border-color: $brand-primary; // Handle on 80 | } 81 | 82 | + .toggle:active:after { 83 | box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba($brand-primary, (10/100)); // Ripple on 84 | } 85 | } 86 | } 87 | } 88 | -------------------------------------------------------------------------------- /src/main/java/com/hospital/models/Drug.java: -------------------------------------------------------------------------------- 1 | package com.hospital.models; 2 | 3 | import java.util.Date; 4 | import javax.persistence.CascadeType; 5 | import javax.persistence.Column; 6 | import javax.persistence.Entity; 7 | import javax.persistence.FetchType; 8 | import javax.persistence.GeneratedValue; 9 | import javax.persistence.GenerationType; 10 | import javax.persistence.Id; 11 | import javax.persistence.JoinColumn; 12 | import javax.persistence.OneToOne; 13 | import javax.persistence.Table; 14 | 15 | @Entity 16 | @Table(name = "Drugs") 17 | public class Drug implements java.io.Serializable { 18 | 19 | @Id 20 | @GeneratedValue(strategy = GenerationType.AUTO) 21 | @Column(name = "drugId") 22 | private Integer drugId; 23 | 24 | private double cost; 25 | 26 | private String name; 27 | private int quantity; 28 | 29 | private Date drug_expired; 30 | private Date startDate; 31 | 32 | 33 | 34 | @OneToOne(fetch = FetchType.EAGER, targetEntity = Employee.class, cascade = CascadeType.ALL) 35 | @JoinColumn(name = "employee_id") 36 | private Employee employee; 37 | 38 | public Drug() { 39 | } 40 | 41 | 42 | 43 | public double getCost() { 44 | return this.cost; 45 | } 46 | 47 | public void setCost(double cost) { 48 | this.cost = cost; 49 | } 50 | /* 51 | public String getFinishedDate() { 52 | return this.finishedDate; 53 | } 54 | 55 | public void setFinishedDate(String finishedDate) { 56 | this.finishedDate = finishedDate; 57 | } 58 | */ 59 | public Date getDrug_expired() { 60 | return this.drug_expired; 61 | } 62 | 63 | public void setDrug_expired(Date drug_expired) { 64 | this.drug_expired = drug_expired; 65 | } 66 | 67 | public String getName() { 68 | return this.name; 69 | } 70 | 71 | public void setName(String name) { 72 | this.name = name; 73 | } 74 | 75 | 76 | 77 | public int getQuantity() { 78 | return this.quantity; 79 | } 80 | 81 | public void setQuantity(int quantity) { 82 | this.quantity = quantity; 83 | } 84 | 85 | public Date getStartDate() { 86 | return this.startDate; 87 | } 88 | 89 | public void setStartDate(Date startDate) { 90 | this.startDate = startDate; 91 | } 92 | 93 | 94 | public Integer getDrugId() { 95 | return drugId; 96 | } 97 | 98 | public void setDrugId(Integer drugId) { 99 | this.drugId = drugId; 100 | } 101 | 102 | 103 | 104 | public Employee getEmployee() { 105 | return employee; 106 | } 107 | 108 | 109 | 110 | public void setEmployee(Employee employee) { 111 | this.employee = employee; 112 | } 113 | 114 | } 115 | -------------------------------------------------------------------------------- /src/main/webapp/assets/sass/md/_radios.scss: -------------------------------------------------------------------------------- 1 | // This file has been autogenerated by grunt task lessToSass. Any changes will be overwritten. 2 | 3 | @mixin radio-color($color, $opacity){ 4 | & ~ .check, 5 | & ~ .circle { 6 | opacity: $opacity; 7 | } 8 | 9 | & ~ .check { 10 | background-color: $color; 11 | } 12 | 13 | & ~ .circle { 14 | border-color: $color; 15 | } 16 | } 17 | 18 | .radio { 19 | label { 20 | cursor: pointer; 21 | padding-left: 35px; 22 | position: relative; 23 | color: $mdb-radio-label-color; 24 | @include mdb-label-color-toggle-focus(); 25 | 26 | span { 27 | display: block; 28 | position: absolute; 29 | left: 10px; 30 | top: 2px; 31 | transition-duration: 0.2s; 32 | } 33 | .circle { 34 | border: 1px solid $mdb-radio-color-off; 35 | height: 15px; 36 | width: 15px; 37 | border-radius: 100%; 38 | } 39 | .check { 40 | height: 15px; 41 | width: 15px; 42 | border-radius: 100%; 43 | background-color: $mdb-radio-color-on; 44 | transform: scale3d(0, 0, 0); 45 | } 46 | .check:after { 47 | display: block; 48 | position: absolute; 49 | content: ""; 50 | background-color: $mdb-text-color-primary; 51 | left: -18px; 52 | top: -18px; 53 | height: 50px; 54 | width: 50px; 55 | border-radius: 100%; 56 | z-index: 1; 57 | opacity: 0; 58 | margin: 0; 59 | transform: scale3d(1.5, 1.5, 1); 60 | } 61 | input[type=radio]:not(:checked) ~ .check:after { 62 | animation: rippleOff 500ms; 63 | } 64 | input[type=radio]:checked ~ .check:after { 65 | animation: rippleOn 500ms; 66 | } 67 | 68 | } 69 | 70 | input[type=radio] { 71 | opacity: 0; 72 | height: 0; 73 | width: 0; 74 | overflow: hidden; 75 | 76 | &:checked { 77 | @include radio-color($mdb-radio-color-on, 1); 78 | } 79 | &:checked ~ .check { 80 | transform: scale3d(0.65, 0.65, 1); 81 | } 82 | } 83 | 84 | input[type=radio][disabled] { 85 | 86 | // light theme spec: Disabled: #000000, Opacity 26% 87 | @include radio-color($black, 0.26); 88 | 89 | } 90 | } 91 | 92 | @keyframes rippleOn { 93 | 0% { 94 | opacity: 0; 95 | } 96 | 50% { 97 | opacity: 0.2; 98 | } 99 | 100% { 100 | opacity: 0; 101 | } 102 | } 103 | 104 | @keyframes rippleOff { 105 | 0% { 106 | opacity: 0; 107 | } 108 | 50% { 109 | opacity: 0.2; 110 | } 111 | 100% { 112 | opacity: 0; 113 | } 114 | } 115 | -------------------------------------------------------------------------------- /src/main/resources/hibernate.cfg.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | oracle.jdbc.driver.OracleDriver 6 | jdbc:oracle:thin:@127.0.0.1:1521:orcl 7 | hadeel 8 | hadeel 9 | org.hibernate.dialect.Oracle10gDialect 10 | 11 | false 12 | update 13 | false 14 | false 15 | after_transaction 16 | true 17 | 5 18 | thread 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /src/main/webapp/assets/sass/md/_misc.scss: -------------------------------------------------------------------------------- 1 | body { 2 | background-color: #EEEEEE; 3 | // background: #fdfdfe; 4 | color: $black-color; 5 | &.inverse { 6 | background: #333333; 7 | &, .form-control { 8 | color: $mdb-text-color-light; 9 | } 10 | .modal, 11 | .panel-default, 12 | .card { 13 | &, 14 | .form-control { 15 | background-color: initial; 16 | color: initial; 17 | } 18 | } 19 | 20 | } 21 | } 22 | 23 | .wrapper{ 24 | 25 | &.wrapper-full-page{ 26 | height: auto; 27 | min-height: 100vh; 28 | } 29 | } 30 | 31 | 32 | blockquote{ 33 | p{ 34 | font-style: italic; 35 | } 36 | } 37 | 38 | .life-of-material-dashboard{ 39 | background: #FFFFFF; 40 | } 41 | 42 | body, h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4 { 43 | font-family: $font-family-sans-serif; 44 | font-weight: 300; 45 | line-height: 1.5em; 46 | } 47 | 48 | .serif-font{ 49 | font-family: $font-family-serif; 50 | } 51 | 52 | .page-header { 53 | height: 60vh; 54 | background-position: center center; 55 | background-size: cover; 56 | margin: 0; 57 | padding: 0; 58 | border: 0; 59 | border-bottom-left-radius: 6px; 60 | border-bottom-right-radius: 6px; 61 | } 62 | 63 | a{ 64 | color: $link-color; 65 | &:hover, 66 | &:focus{ 67 | color: darken($link-color, 5%); 68 | text-decoration: none; 69 | } 70 | 71 | &.text-info{ 72 | &:hover, &:focus{ 73 | color: darken($brand-info, 5%); 74 | } 75 | } 76 | 77 | & .material-icons { 78 | vertical-align: middle; 79 | } 80 | } 81 | 82 | /* Animations */ 83 | .animation-transition-general{ 84 | @include transition($general-transition-time, $transition-linear); 85 | } 86 | 87 | .animation-transition-slow{ 88 | @include transition($slow-transition-time, $transition-linear); 89 | } 90 | 91 | .animation-transition-fast{ 92 | @include transition($fast-transition-time, $transition-ease); 93 | } 94 | legend { 95 | border-bottom: 0; 96 | } 97 | 98 | // Prevent highlight on mobile 99 | * { 100 | -webkit-tap-highlight-color: rgba(255, 255, 255, 0); 101 | -webkit-tap-highlight-color: transparent; 102 | &:focus { 103 | outline: 0; 104 | } 105 | } 106 | a:focus, a:active, 107 | button:active, button:focus, button:hover, 108 | button::-moz-focus-inner, 109 | input[type="reset"]::-moz-focus-inner, 110 | input[type="button"]::-moz-focus-inner, 111 | input[type="submit"]::-moz-focus-inner, 112 | select::-moz-focus-inner, 113 | input[type="file"] > input[type="button"]::-moz-focus-inner { 114 | outline : 0 !important; 115 | } 116 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Hospital-Management-System 2 | 3 | # Used Technologies 4 | 1. Java Web Application building using ( JSP - Servlet ) 5 | 2. Hibernate 6 | 3. Design Pattern 7 | 4. Jasper Reports 8 | 5. Oracle Database 9 | 10 | ### Prerequisites And Installation 11 | 12 | After cloning this repository in your local machine , import using Eclipse IDE , or netbeans if you used eclipse after importing project press rigth click and select #run as --> maven install after cleaning and building your project you can run on any server 13 | Tomcat or Jboss 14 | - Run 15 | - Run On server 16 | - configure your server properties 17 | 18 | > Make sure you install **Java** JDK or JRE 19 | 20 | ### Home Page , Web View 21 | ![home](https://user-images.githubusercontent.com/11550708/27002545-accfd84e-4d99-11e7-9252-3ca14829f4b4.PNG) 22 | 23 | ### Mobile View 24 | ![mobileview2](https://user-images.githubusercontent.com/11550708/27002547-aced4104-4d99-11e7-86b2-cad04e5c0d47.PNG) 25 | 26 | ### Mail View 27 | ![viewallsentmails](https://user-images.githubusercontent.com/11550708/27002543-acb02832-4d99-11e7-9772-3dbf3d094872.PNG)![compose](https://user-images.githubusercontent.com/11550708/27002555-ad34d654-4d99-11e7-81d8-11f8f1b335bf.PNG) 28 | 29 | ### Statistic Page 30 | ![statisticpage](https://user-images.githubusercontent.com/11550708/27002556-ad53f408-4d99-11e7-8a32-8e6adc9398ca.PNG) 31 | 32 | ### Invoice 33 | ![druginvoice](https://user-images.githubusercontent.com/11550708/27002557-ad891e8a-4d99-11e7-8651-324a25fe8fd3.PNG) 34 | 35 | ### Employee Report 36 | ![employeereport](https://user-images.githubusercontent.com/11550708/27002549-ad0e75a4-4d99-11e7-9226-8e1372e9a679.PNG) 37 | 38 | ### Profile Page 39 | ![profileview](https://user-images.githubusercontent.com/11550708/27002553-ad3017d6-4d99-11e7-8e4e-a00179f71850.PNG) 40 | 41 | ### Pharmacy Page 42 | ![pharmacy](https://user-images.githubusercontent.com/11550708/27002550-ad0ec4c8-4d99-11e7-95ac-fa8e9008a335.PNG) 43 | ![selldrug](https://user-images.githubusercontent.com/11550708/27002554-ad317e1e-4d99-11e7-8776-d4f55758286e.PNG) 44 | 45 | ### Patient Management Page 46 | ![bookbed](https://user-images.githubusercontent.com/11550708/27002544-acb60e64-4d99-11e7-8e3f-ffdd88afd3de.PNG) 47 | ![patient](https://user-images.githubusercontent.com/11550708/27002548-acf6d480-4d99-11e7-812d-1d82413682c8.PNG) 48 | 49 | ### Password Page 50 | ![changepassword](https://user-images.githubusercontent.com/11550708/27002551-ad11112e-4d99-11e7-9f34-33a6c061ad3e.PNG) 51 | 52 | 53 | ## Deployment 54 | Clean and build your project , put war file in web app folder if you are using tomcat or standlon folder if you are using Jboss , 55 | Then click on start.bat if you using windows or start.sh if using linux. 56 | 57 | ## Built With 58 | * [Maven](https://maven.apache.org/) - Dependency Management 59 | 60 | -------------------------------------------------------------------------------- /src/main/webapp/assets/scss/gsdk-bootstrap-wizard/_inputs.scss: -------------------------------------------------------------------------------- 1 | /* Inputs */ 2 | .form-control { 3 | background-color: #FFFFFF; 4 | border: 1px solid #E3E3E3; 5 | border-radius: 4px; 6 | box-shadow: none; 7 | color: #444444; 8 | height: 38px; 9 | padding: 6px 16px; 10 | 11 | &:focus{ 12 | background-color: #FFFFFF; 13 | border: 1px solid #9A9A9A; 14 | box-shadow: none; 15 | outline: 0 none; 16 | } 17 | 18 | + .form-control-feedback{ 19 | border-radius: 6px; 20 | font-size: 14px; 21 | padding: 0 12px 0 0; 22 | position: absolute; 23 | right: 25px; 24 | top: 13px; 25 | vertical-align: middle; 26 | } 27 | 28 | .has-success &, 29 | .has-error &, 30 | .has-success &:focus, 31 | .has-error &:focus{ 32 | border-color: #E3E3E3; 33 | box-shadow: none; 34 | } 35 | 36 | .has-success &, 37 | .has-success .form-control-feedback, 38 | &.valid:focus{ 39 | border-color: #05AE0E; 40 | color: #05AE0E; 41 | } 42 | 43 | .has-error &, 44 | .has-error .form-control-feedback, 45 | &.error{ 46 | color: #FF3B30; 47 | border-color: #FF3B30; 48 | } 49 | 50 | &:focus + .input-group-addon, 51 | &:focus ~ .input-group-addon{ 52 | background-color: #FFFFFF; 53 | border-color: #9A9A9A; 54 | } 55 | 56 | ::-moz-placeholder{ 57 | color: #DDDDDD; 58 | opacity: 1; 59 | } 60 | 61 | ::-moz-placeholder{ 62 | color: #DDDDDD; 63 | opacity: 1; 64 | } 65 | 66 | ::-webkit-input-placeholder{ 67 | color: #DDDDDD; 68 | opacity: 1; 69 | } 70 | 71 | ::-ms-input-placeholder{ 72 | color: #DDDDDD; 73 | opacity: 1; 74 | } 75 | 76 | &[disabled], 77 | &[readonly], 78 | fieldset[disabled] &{ 79 | background-color: #EEEEEE; 80 | color: #999999; 81 | cursor: not-allowed; 82 | } 83 | 84 | } 85 | 86 | .input-lg{ 87 | height: 56px; 88 | padding: 10px 16px; 89 | } 90 | 91 | .input-group-addon { 92 | background-color: #FFFFFF; 93 | border: 1px solid #E3E3E3; 94 | border-radius: 4px; 95 | 96 | 97 | } 98 | 99 | 100 | .input-group .form-control:first-child, .input-group-addon:first-child, .input-group-btn:first-child > .btn, .input-group-btn:first-child > .dropdown-toggle, .input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle) { 101 | border-right: 0 none; 102 | } 103 | .input-group .form-control:last-child, .input-group-addon:last-child, .input-group-btn:last-child > .btn, .input-group-btn:last-child > .dropdown-toggle, .input-group-btn:first-child > .btn:not(:first-child) { 104 | border-left: 0 none; 105 | } 106 | -------------------------------------------------------------------------------- /src/main/webapp/templates/user/inbox.jsp: -------------------------------------------------------------------------------- 1 | <%@page import="com.hospital.models.Employee"%> 2 | <%@page import="com.hospital.models.Message"%> 3 | <%@page import="java.util.List"%> 4 | <%@page import="com.hospital.entities.HospitalService"%> 5 | <%@page import="com.hospital.entities.UserDAO"%> 6 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 19 | 20 | 21 | 22 |
    Eng
    23 |
    24 | Made with Mustafa 25 |
    26 |
    27 | <% 28 | UserDAO userDAO2 = HospitalService.getInstance(); 29 | Employee em = (Employee) session.getAttribute("employee"); 30 | List unreadMessages = userDAO2.getAllMessagesForEmployee(em.getEmployeeId()); 31 | %> 32 |
    33 |
    34 |
    35 |
    36 |
    37 |
    38 |

    39 | All Received Mails 40 |

    41 |

    All Received Emails From Employee's

    42 |
    43 | 94 |
    95 |
    96 |
    97 |
    98 |
    99 | 100 | -------------------------------------------------------------------------------- /src/main/webapp/assets/sass/md/_pills.scss: -------------------------------------------------------------------------------- 1 | .nav-pills{ 2 | 3 | .section-dark &, 4 | .section-image &{ 5 | > li > a{ 6 | color: $gray-color; 7 | } 8 | > li{ 9 | > a:hover, 10 | > a:focus{ 11 | background-color: #EEEEEE; 12 | } 13 | } 14 | } 15 | 16 | > li { 17 | > a{ 18 | line-height: $mdb-btn-font-size-base * 2; 19 | text-transform: uppercase; 20 | font-size: $mdb-btn-font-size-base; 21 | font-weight: $font-weight-bold; 22 | min-width: 100px; 23 | text-align: center; 24 | color: $gray; 25 | transition: all .3s; 26 | 27 | &:hover{ 28 | background-color: rgba(200, 200, 200, 0.2); 29 | } 30 | } 31 | 32 | i{ 33 | display: block; 34 | font-size: 30px; 35 | padding: 15px 0; 36 | } 37 | 38 | &.active > a{ 39 | &, 40 | &:focus, 41 | &:hover{ 42 | background-color: $brand-primary; 43 | color: $white-color; 44 | @include shadow-big-color($brand-primary); 45 | } 46 | } 47 | 48 | } 49 | 50 | &:not(.nav-pills-icons){ 51 | > li > a{ 52 | border-radius: $border-radius-extreme; 53 | } 54 | } 55 | 56 | &.nav-stacked{ 57 | > li + li{ 58 | margin-top: 5px; 59 | } 60 | } 61 | 62 | &.nav-pills-info{ 63 | > li { 64 | &.active > a{ 65 | &, 66 | &:focus, 67 | &:hover{ 68 | background-color: $brand-info; 69 | @include shadow-big-color($brand-info); 70 | } 71 | } 72 | } 73 | } 74 | 75 | &.nav-pills-success{ 76 | > li { 77 | &.active > a{ 78 | &, 79 | &:focus, 80 | &:hover{ 81 | background-color: $brand-success; 82 | @include shadow-big-color($brand-success); 83 | } 84 | } 85 | } 86 | } 87 | 88 | &.nav-pills-warning{ 89 | > li { 90 | &.active > a{ 91 | &, 92 | &:focus, 93 | &:hover{ 94 | background-color: $brand-warning; 95 | @include shadow-big-color($brand-warning); 96 | } 97 | } 98 | } 99 | } 100 | 101 | &.nav-pills-danger{ 102 | > li { 103 | &.active > a{ 104 | &, 105 | &:focus, 106 | &:hover{ 107 | background-color: $brand-danger; 108 | @include shadow-big-color($brand-warning); 109 | } 110 | } 111 | } 112 | } 113 | 114 | } 115 | .tab-space{ 116 | padding: 20px 0 50px 0px; 117 | } 118 | -------------------------------------------------------------------------------- /src/main/webapp/computefees.jsp: -------------------------------------------------------------------------------- 1 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 2 | <%@page import="com.hospital.models.Employee"%> 3 | <%@ page language="java" contentType="text/html; charset=UTF-8" 4 | pageEncoding="UTF-8"%> 5 | 6 | 7 | <% 8 | Employee employee = (Employee) session.getAttribute("employee"); 9 | %> 10 | 11 | 12 | 13 | Welcome <%=employee.getFirstName()%> 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 41 | 42 | 43 | 44 |
    45 | 46 | <%@include file="templates/user/side-bar.jsp"%> 47 | 48 |
    49 | 50 | <%@include file="templates/user/nav-bar.jsp"%> 51 | 52 | <%@include file="accountant/computeFees.jsp"%> 53 | 54 | <%@include file="templates/footer.jsp"%> 55 |
    56 | 57 |
    58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | -------------------------------------------------------------------------------- /src/main/webapp/viewpatient.jsp: -------------------------------------------------------------------------------- 1 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 2 | <%@page import="com.hospital.models.Employee"%> 3 | <%@ page language="java" contentType="text/html; charset=UTF-8" 4 | pageEncoding="UTF-8"%> 5 | 6 | 7 | <% 8 | Employee employee = (Employee) session.getAttribute("employee"); 9 | %> 10 | 11 | 12 | 13 | Welcome <%=employee.getFirstName()%> 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 41 | 42 | 43 | 44 |
    45 | 46 | <%@include file="templates/user/side-bar.jsp"%> 47 | 48 |
    49 | 50 | <%@include file="templates/user/nav-bar.jsp"%> 51 | 52 | <%@include file="templates/viewPatient.jsp"%> 53 | 54 | <%@include file="templates/footer.jsp"%> 55 |
    56 | 57 |
    58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | -------------------------------------------------------------------------------- /src/main/webapp/viewservice.jsp: -------------------------------------------------------------------------------- 1 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 2 | <%@page import="com.hospital.models.Employee"%> 3 | <%@ page language="java" contentType="text/html; charset=UTF-8" 4 | pageEncoding="UTF-8"%> 5 | 6 | 7 | <% 8 | Employee employee = (Employee) session.getAttribute("employee"); 9 | %> 10 | 11 | 12 | 13 | Welcome <%=employee.getFirstName()%> 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 41 | 42 | 43 | 44 |
    45 | 46 | <%@include file="templates/user/side-bar.jsp"%> 47 | 48 |
    49 | 50 | <%@include file="templates/user/nav-bar.jsp"%> 51 | 52 | <%@include file="nurse/viewServiceTime.jsp"%> 53 | 54 | <%@include file="templates/footer.jsp"%> 55 |
    56 | 57 |
    58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | -------------------------------------------------------------------------------- /src/main/webapp/dieseasePatient.jsp: -------------------------------------------------------------------------------- 1 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 2 | <%@page import="com.hospital.models.Employee"%> 3 | <%@ page language="java" contentType="text/html; charset=UTF-8" 4 | pageEncoding="UTF-8"%> 5 | 6 | 7 | <% 8 | Employee employee = (Employee) session.getAttribute("employee"); 9 | %> 10 | 11 | 12 | 13 | Welcome <%=employee.getFirstName()%> 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 41 | 42 | 43 | 44 |
    45 | 46 | <%@include file="templates/user/side-bar.jsp"%> 47 | 48 |
    49 | 50 | <%@include file="templates/user/nav-bar.jsp"%> 51 | 52 | <%@include file="doctor/dieseasepatient.jsp"%> 53 | 54 | <%@include file="templates/footer.jsp"%> 55 |
    56 | 57 |
    58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | -------------------------------------------------------------------------------- /src/main/webapp/employeeProfile.jsp: -------------------------------------------------------------------------------- 1 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> 2 | <%@page import="com.hospital.models.Employee"%> 3 | <%@ page language="java" contentType="text/html; charset=UTF-8" 4 | pageEncoding="UTF-8"%> 5 | 6 | 7 | <% Employee emp3= (Employee) session.getAttribute("employee"); %> 8 | 9 | 10 | 11 | Welcome <%= emp3.getFirstName() %> 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 38 | 39 | 40 | 41 | 42 |
    43 | 44 | <%@include file="templates/user/side-bar.jsp"%> 45 | 46 |
    47 | 48 | <%@include file="templates/user/nav-bar.jsp"%> 49 | 50 | <%@include file="templates/user/profile.jsp"%> 51 | 52 | <%@include file="templates/footer.jsp"%> 53 |
    54 | 55 |
    56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | -------------------------------------------------------------------------------- /src/main/webapp/inbox.jsp: -------------------------------------------------------------------------------- 1 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 2 | <%@page import="com.hospital.models.Employee"%> 3 | <%@ page language="java" contentType="text/html; charset=UTF-8" 4 | pageEncoding="UTF-8"%> 5 | 6 | 7 | <% 8 | Employee employee = (Employee) session.getAttribute("employee"); 9 | %> 10 | 11 | 12 | 13 | Welcome <%=employee.getFirstName()%> 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 41 | 42 | 43 | 44 | 45 | 46 |
    47 | 48 | <%@include file="templates/user/side-bar.jsp"%> 49 | 50 |
    51 | 52 | <%@include file="templates/user/nav-bar.jsp"%> 53 | 54 | <%@include file="templates/user/inbox.jsp"%> 55 | 56 | <%@include file="templates/footer.jsp"%> 57 |
    58 | 59 |
    60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | -------------------------------------------------------------------------------- /src/main/webapp/assets/scss/gsdk-bootstrap-wizard/_misc.scss: -------------------------------------------------------------------------------- 1 | /* General overwrite */ 2 | a{ 3 | color: #2CA8FF; 4 | } 5 | a:hover, a:focus { 6 | color: #109CFF; 7 | } 8 | a:focus, a:active, 9 | button::-moz-focus-inner, 10 | input[type="reset"]::-moz-focus-inner, 11 | input[type="button"]::-moz-focus-inner, 12 | input[type="submit"]::-moz-focus-inner, 13 | select::-moz-focus-inner, 14 | input[type="file"] > input[type="button"]::-moz-focus-inner, 15 | input[type="button"]:focus { 16 | outline: 0 !important; 17 | } 18 | 19 | .btn:focus, 20 | .btn:hover, 21 | .btn:active{ 22 | outline: 0; 23 | } 24 | 25 | /* Animations */ 26 | .form-control, .input-group-addon{ 27 | -webkit-transition: all 300ms linear; 28 | -moz-transition: all 300ms linear; 29 | -o-transition: all 300ms linear; 30 | -ms-transition: all 300ms linear; 31 | transition: all 300ms linear; 32 | } 33 | 34 | .image-container{ 35 | min-height: 100vh; 36 | background-position: center center; 37 | background-size: cover; 38 | } 39 | 40 | 41 | .wizard-container{ 42 | 43 | padding-top: 100px; 44 | z-index: 3; 45 | } 46 | 47 | .wizard-navigation{ 48 | position: relative; 49 | } 50 | 51 | .made-with-mk{ 52 | width: 50px; 53 | height: 50px; 54 | display: block; 55 | position: fixed; 56 | z-index: 555; 57 | bottom: 40px; 58 | right: 40px; 59 | border-radius: 30px; 60 | background-color: rgba(16, 16, 16, 0.35); 61 | border: 1px solid rgba(255,255,255,.15); 62 | color: $white-color; 63 | cursor: pointer; 64 | padding: 10px 12px; 65 | white-space: nowrap; 66 | overflow: hidden; 67 | -webkit-transition: .55s cubic-bezier(.6,0,.4,1); 68 | -moz-transition: .55s cubic-bezier(.6,0,.4,1); 69 | -o-transition: .55s cubic-bezier(.6,0,.4,1); 70 | transition: .55s cubic-bezier(.6,0,.4,1); 71 | 72 | 73 | &:hover, 74 | &:active, 75 | &:focus{ 76 | width: 218px; 77 | color: $white-color; 78 | transition-duration: .55s; 79 | padding: 10px 30px; 80 | 81 | .made-with{ 82 | opacity: 1; 83 | } 84 | 85 | .brand{ 86 | left: 0; 87 | } 88 | } 89 | 90 | .brand, 91 | .made-with{ 92 | float: left; 93 | } 94 | .brand{ 95 | position: relative; 96 | top: 3px; 97 | left: -1px; 98 | letter-spacing: 1px; 99 | vertical-align: middle; 100 | font-size: 16px; 101 | font-weight: 600; 102 | } 103 | 104 | .made-with{ 105 | color: rgba(255,255,255, .6); 106 | position: absolute; 107 | left: 75px; 108 | top: 15px; 109 | opacity: 0; 110 | margin: 0; 111 | -webkit-transition: .55s cubic-bezier(.6,0,.4,1); 112 | -moz-transition: .55s cubic-bezier(.6,0,.4,1); 113 | -o-transition: .55s cubic-bezier(.6,0,.4,1); 114 | transition: .55s cubic-bezier(.6,0,.4,1); 115 | 116 | strong{ 117 | font-weight: 400; 118 | color: rgba(255,255,255, .9); 119 | letter-spacing: 1px 120 | } 121 | } 122 | } 123 | -------------------------------------------------------------------------------- /src/main/webapp/viewmessage.jsp: -------------------------------------------------------------------------------- 1 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 2 | <%@page import="com.hospital.models.Employee"%> 3 | <%@ page language="java" contentType="text/html; charset=UTF-8" 4 | pageEncoding="UTF-8"%> 5 | 6 | 7 | <% 8 | Employee employee = (Employee) session.getAttribute("employee"); 9 | %> 10 | 11 | 12 | 13 | Welcome <%=employee.getFirstName()%> 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 41 | 42 | 43 | 44 | 45 | 46 |
    47 | 48 | <%@include file="templates/user/side-bar.jsp"%> 49 | 50 |
    51 | 52 | <%@include file="templates/user/nav-bar.jsp"%> 53 | 54 | <%@include file="templates/user/viewMessage.jsp"%> 55 | 56 | <%@include file="templates/footer.jsp"%> 57 |
    58 | 59 |
    60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | -------------------------------------------------------------------------------- /src/main/java/com/hospital/models/Message.java: -------------------------------------------------------------------------------- 1 | package com.hospital.models; 2 | // Generated Apr 26, 2017 7:53:39 PM by Hibernate Tools 4.3.1 3 | 4 | import java.util.Date; 5 | 6 | import javax.persistence.CascadeType; 7 | import javax.persistence.Column; 8 | import javax.persistence.Entity; 9 | import javax.persistence.FetchType; 10 | import javax.persistence.GeneratedValue; 11 | import javax.persistence.GenerationType; 12 | import javax.persistence.Id; 13 | import javax.persistence.JoinColumn; 14 | import javax.persistence.OneToOne; 15 | import javax.persistence.Table; 16 | import javax.persistence.Temporal; 17 | 18 | @Entity 19 | @Table(name = "Messages") 20 | public class Message implements java.io.Serializable { 21 | 22 | @Id 23 | @GeneratedValue(strategy = GenerationType.AUTO) 24 | @Column(name = "messageId") 25 | private Integer messageId; 26 | 27 | private String messageBody; 28 | 29 | private String subject; 30 | 31 | private boolean messageStatus; 32 | 33 | @Temporal(javax.persistence.TemporalType.DATE) 34 | private Date messageDate; 35 | 36 | @OneToOne(fetch = FetchType.EAGER, targetEntity = Employee.class, cascade = { CascadeType.ALL, CascadeType.REMOVE }) 37 | @JoinColumn(name = "from_employee_id") 38 | private Employee fromEmployee; 39 | 40 | @OneToOne(fetch = FetchType.EAGER, targetEntity = Employee.class, cascade = { CascadeType.ALL, CascadeType.REMOVE }) 41 | @JoinColumn(name = "fto_employee_id") 42 | private Employee toEmployee; 43 | 44 | @OneToOne(fetch = FetchType.EAGER, targetEntity = Patient.class, cascade = { CascadeType.ALL, CascadeType.REMOVE }) 45 | @JoinColumn(name = "patient_id") 46 | private Patient patient; 47 | 48 | public Message() { 49 | } 50 | 51 | public Integer getMessageId() { 52 | return this.messageId; 53 | } 54 | 55 | public void setMessageId(Integer messageId) { 56 | this.messageId = messageId; 57 | } 58 | 59 | public Patient getPatient() { 60 | return this.patient; 61 | } 62 | 63 | public void setPatient(Patient patient) { 64 | this.patient = patient; 65 | } 66 | 67 | public String getMessageBody() { 68 | return this.messageBody; 69 | } 70 | 71 | public void setMessageBody(String messageBody) { 72 | this.messageBody = messageBody; 73 | } 74 | 75 | public String getSubject() { 76 | return this.subject; 77 | } 78 | 79 | public void setSubject(String subject) { 80 | this.subject = subject; 81 | } 82 | 83 | public boolean isMessageStatus() { 84 | return this.messageStatus; 85 | } 86 | 87 | public void setMessageStatus(boolean messageStatus) { 88 | this.messageStatus = messageStatus; 89 | } 90 | 91 | public Date getMessageDate() { 92 | return this.messageDate; 93 | } 94 | 95 | public void setMessageDate(Date messageDate) { 96 | this.messageDate = messageDate; 97 | } 98 | 99 | public Employee getFromEmployee() { 100 | return fromEmployee; 101 | } 102 | 103 | public void setFromEmployee(Employee fromEmployee) { 104 | this.fromEmployee = fromEmployee; 105 | } 106 | 107 | public Employee getToEmployee() { 108 | return toEmployee; 109 | } 110 | 111 | public void setToEmployee(Employee toEmployee) { 112 | this.toEmployee = toEmployee; 113 | } 114 | 115 | } 116 | -------------------------------------------------------------------------------- /src/main/webapp/templates/user/compose.jsp: -------------------------------------------------------------------------------- 1 | <%@page import="com.hospital.utils.Entity"%> 2 | <%@page import="com.hospital.models.Patient"%> 3 | <%@page import="com.hospital.models.Employee"%> 4 | <%@page import="java.util.List"%> 5 | <%@page import="com.hospital.entities.HospitalService"%> 6 | <%@page import="com.hospital.entities.UserDAO"%> 7 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 8 | 9 | 10 | 11 |
    Eng
    12 |
    13 | Made with Mustafa 14 |
    15 |
    16 | <% 17 | UserDAO userDAO3 = HospitalService.getInstance(); 18 | Employee currentEmployee=(Employee)session.getAttribute("employee"); 19 | List employees = userDAO3.getListEmployeeWithout(currentEmployee.getEmployeeId()); 20 | 21 | List patients=userDAO3.getListObjects(Patient.class); 22 | %> 23 | 24 |
    25 |
    26 |
    27 |
    28 |
    29 |
    30 |

    31 | Sent New Mail 32 |

    33 |

    Sent E-Mails To different Employee's

    34 |
    35 |
    36 |
    37 | 38 |
    39 | 40 |
    41 |
    42 | 43 | 49 |
    50 |
    51 |
    52 |
    53 | 54 | 59 |
    60 |
    61 |
    62 |
    63 | 66 |
    67 |
    68 | 69 |
    70 |
    71 | 72 | 75 |
    76 |
    77 | 78 | 79 | 80 |
    81 |
    82 |
    83 |
    84 |
    85 |
    86 |
    87 |
    88 | 89 | -------------------------------------------------------------------------------- /src/main/webapp/home.jsp: -------------------------------------------------------------------------------- 1 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 2 | <%@page import="com.hospital.models.Employee"%> 3 | <%@ page language="java" contentType="text/html; charset=UTF-8" 4 | pageEncoding="UTF-8"%> 5 | 6 | 7 | <% 8 | Employee emp = (Employee) session.getAttribute("employee"); 9 | %> 10 | 11 | 12 | 13 | Welcome <%=emp.getFirstName()%> 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 41 | 42 | 43 | 44 | 45 | 46 |
    47 | 48 | <%@include file="templates/user/side-bar.jsp"%> 49 | 50 |
    51 | 52 | <%@include file="templates/user/nav-bar.jsp"%> 53 | 54 | <%@include file="admin/dashboard.jsp"%> 55 | 56 | <%@include file="templates/footer.jsp"%> 57 |
    58 | 59 |
    60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | -------------------------------------------------------------------------------- /src/main/webapp/assets/scss/gsdk-bootstrap-wizard/_tooltips.scss: -------------------------------------------------------------------------------- 1 | .tooltip { 2 | font-size: 14px; 3 | font-weight: bold; 4 | } 5 | 6 | .tooltip-arrow{ 7 | display: none; 8 | opacity: 0; 9 | } 10 | 11 | .tooltip-inner { 12 | background-color: #FAE6A4; 13 | border-radius: 4px; 14 | box-shadow: 0 1px 13px rgba(0, 0, 0, 0.14), 0 0 0 1px rgba(115, 71, 38, 0.23); 15 | color: #734726; 16 | max-width: 200px; 17 | padding: 6px 10px; 18 | text-align: center; 19 | text-decoration: none; 20 | 21 | &:after { 22 | content: ""; 23 | display: inline-block; 24 | left: 100%; 25 | margin-left: -56%; 26 | position: absolute; 27 | } 28 | 29 | &:before { 30 | content: ""; 31 | display: inline-block; 32 | left: 100%; 33 | margin-left: -56%; 34 | position: absolute; 35 | } 36 | } 37 | 38 | .tooltip.top { 39 | margin-top: -11px; 40 | padding: 0; 41 | 42 | .tooltip-inner:after { 43 | border-top: 11px solid #FAE6A4; 44 | border-left: 11px solid rgba(0, 0, 0, 0); 45 | border-right: 11px solid rgba(0, 0, 0, 0); 46 | bottom: -10px; 47 | } 48 | 49 | .tooltip-inner:before { 50 | border-top: 11px solid rgba(0, 0, 0, 0.2); 51 | border-left: 11px solid rgba(0, 0, 0, 0); 52 | border-right: 11px solid rgba(0, 0, 0, 0); 53 | bottom: -11px; 54 | } 55 | } 56 | 57 | .tooltip.bottom { 58 | margin-top: 11px; 59 | padding: 0; 60 | 61 | .tooltip-inner:after { 62 | border-bottom: 11px solid #FAE6A4; 63 | border-left: 11px solid rgba(0, 0, 0, 0); 64 | border-right: 11px solid rgba(0, 0, 0, 0); 65 | top: -10px; 66 | } 67 | 68 | .tooltip-inner:before { 69 | border-bottom: 11px solid rgba(0, 0, 0, 0.2); 70 | border-left: 11px solid rgba(0, 0, 0, 0); 71 | border-right: 11px solid rgba(0, 0, 0, 0); 72 | top: -11px; 73 | } 74 | } 75 | 76 | .tooltip.left{ 77 | margin-left: -11px; 78 | padding: 0; 79 | 80 | .tooltip-inner:after { 81 | border-left: 11px solid #FAE6A4; 82 | border-top: 11px solid rgba(0, 0, 0, 0); 83 | border-bottom: 11px solid rgba(0, 0, 0, 0); 84 | right: -10px; 85 | left: auto; 86 | margin-left: 0; 87 | } 88 | 89 | .tooltip-inner:before { 90 | border-left: 11px solid rgba(0, 0, 0, 0.2); 91 | border-top: 11px solid rgba(0, 0, 0, 0); 92 | border-bottom: 11px solid rgba(0, 0, 0, 0); 93 | right: -11px; 94 | left: auto; 95 | margin-left: 0; 96 | } 97 | } 98 | 99 | .tooltip.right{ 100 | margin-left: 11px; 101 | padding: 0; 102 | 103 | .tooltip-inner:after { 104 | border-right: 11px solid #FAE6A4; 105 | border-top: 11px solid rgba(0, 0, 0, 0); 106 | border-bottom: 11px solid rgba(0, 0, 0, 0); 107 | left: -10px; 108 | top: 0; 109 | margin-left: 0; 110 | } 111 | 112 | .tooltip-inner:before { 113 | border-right: 11px solid rgba(0, 0, 0, 0.2); 114 | border-top: 11px solid rgba(0, 0, 0, 0); 115 | border-bottom: 11px solid rgba(0, 0, 0, 0); 116 | left: -11px; 117 | top: 0; 118 | margin-left: 0; 119 | } 120 | } 121 | -------------------------------------------------------------------------------- /src/main/java/com/hospital/actions/ReportListener.java: -------------------------------------------------------------------------------- 1 | package com.hospital.actions; 2 | 3 | import java.io.File; 4 | import java.io.FileInputStream; 5 | import java.io.IOException; 6 | import java.io.InputStream; 7 | import java.io.PrintWriter; 8 | import java.io.StringWriter; 9 | import java.util.HashMap; 10 | import java.util.List; 11 | 12 | import javax.servlet.ServletOutputStream; 13 | import javax.servlet.annotation.WebServlet; 14 | import javax.servlet.http.HttpServlet; 15 | import javax.servlet.http.HttpServletRequest; 16 | import javax.servlet.http.HttpServletResponse; 17 | 18 | import com.hospital.entities.AdminDAO; 19 | import com.hospital.entities.HospitalService; 20 | import com.hospital.entities.UserDAO; 21 | import com.hospital.models.Employee; 22 | 23 | import net.sf.jasperreports.engine.JRDataSource; 24 | import net.sf.jasperreports.engine.JasperCompileManager; 25 | import net.sf.jasperreports.engine.JasperExportManager; 26 | import net.sf.jasperreports.engine.JasperFillManager; 27 | import net.sf.jasperreports.engine.JasperPrint; 28 | import net.sf.jasperreports.engine.JasperReport; 29 | import net.sf.jasperreports.engine.data.JRBeanArrayDataSource; 30 | 31 | public class ReportListener { 32 | 33 | private static ReportListener reportListener = new ReportListener(); 34 | 35 | private UserDAO userDAO = HospitalService.getInstance(); 36 | 37 | private ReportListener() { 38 | } 39 | 40 | public static ReportListener getInstance() { 41 | return reportListener; 42 | } 43 | 44 | private JRDataSource createReportDataSource(String employeeType) { 45 | JRBeanArrayDataSource dataSource; 46 | Object[] reportRows = initializeBeanArray(employeeType); 47 | dataSource = new JRBeanArrayDataSource(reportRows); 48 | return dataSource; 49 | } 50 | 51 | private Object[] initializeBeanArray(String employeeType) { 52 | List employees =userDAO.getEmployees(employeeType); 53 | Object[] ems = employees.toArray(); 54 | return ems; 55 | } 56 | 57 | public void downloadEmployeeReport(HttpServletRequest request, HttpServletResponse response) throws IOException { 58 | 59 | String employeeType=request.getParameter("employeeType"); 60 | 61 | ServletOutputStream servletOutputStream = response.getOutputStream(); 62 | 63 | String imagePath = request.getServletContext().getRealPath("/reports/invoice_logo.png"); 64 | 65 | InputStream reportStream = request.getServletContext().getResourceAsStream("/reports/employeeReport.jrxml"); 66 | try { 67 | JRDataSource dataSource = createReportDataSource(employeeType); 68 | JasperReport jasperReport = JasperCompileManager.compileReport(reportStream); 69 | 70 | HashMap map = new HashMap<>(); 71 | map.put("IMAGE_PATH", imagePath); 72 | 73 | JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, map, dataSource); 74 | JasperExportManager.exportReportToPdfStream(jasperPrint, response.getOutputStream()); 75 | 76 | response.setContentType("application/pdf"); 77 | 78 | servletOutputStream.flush(); 79 | servletOutputStream.close(); 80 | 81 | } catch (Exception e) { 82 | // display stack trace in the browser 83 | StringWriter stringWriter = new StringWriter(); 84 | PrintWriter printWriter = new PrintWriter(stringWriter); 85 | e.printStackTrace(); 86 | 87 | response.setContentType("text/plain"); 88 | response.getOutputStream().print(stringWriter.toString()); 89 | } 90 | } 91 | 92 | } 93 | -------------------------------------------------------------------------------- /src/main/java/com/hospital/models/SelledDrug.java: -------------------------------------------------------------------------------- 1 | package com.hospital.models; 2 | 3 | import java.util.Date; 4 | 5 | import javax.persistence.CascadeType; 6 | import javax.persistence.Column; 7 | import javax.persistence.Entity; 8 | import javax.persistence.FetchType; 9 | import javax.persistence.GeneratedValue; 10 | import javax.persistence.GenerationType; 11 | import javax.persistence.Id; 12 | import javax.persistence.JoinColumn; 13 | import javax.persistence.OneToOne; 14 | import javax.persistence.Table; 15 | import javax.persistence.Temporal; 16 | 17 | @Entity 18 | @Table(name = "SelledDrugs") 19 | public class SelledDrug { 20 | 21 | @Id 22 | @GeneratedValue(strategy = GenerationType.AUTO) 23 | @Column(name = "selledDrugID") 24 | private int selledDrugID; 25 | 26 | @Temporal(javax.persistence.TemporalType.DATE) 27 | private Date startDate; 28 | 29 | @Temporal(javax.persistence.TemporalType.DATE) 30 | private Date endDate; 31 | 32 | private String unitPerDay; 33 | 34 | @OneToOne(fetch = FetchType.EAGER, targetEntity = Drug.class, cascade = { CascadeType.ALL }) 35 | @JoinColumn(name = "Drug_ID") 36 | private Drug drug; 37 | 38 | @OneToOne(fetch = FetchType.EAGER, targetEntity = Pharmatiest.class, cascade = { CascadeType.ALL }) 39 | @JoinColumn(name = "pharmatiest_ID") 40 | private Pharmatiest pharmatiest; 41 | 42 | @OneToOne(fetch = FetchType.EAGER, targetEntity = Patient.class, cascade = { CascadeType.ALL }) 43 | @JoinColumn(name = "patient_ID") 44 | private Patient patient; 45 | 46 | private int quantity; 47 | 48 | @Temporal(javax.persistence.TemporalType.DATE) 49 | private Date selledDate; 50 | 51 | public Patient getPatient() { 52 | return patient; 53 | } 54 | 55 | public void setPatient(Patient patient) { 56 | this.patient = patient; 57 | } 58 | 59 | public Pharmatiest getPharmatiest() { 60 | return pharmatiest; 61 | } 62 | 63 | public void setPharmatiest(Pharmatiest pharmatiest) { 64 | this.pharmatiest = pharmatiest; 65 | } 66 | 67 | public Drug getDrug() { 68 | return drug; 69 | } 70 | 71 | public void setDrug(Drug drug) { 72 | this.drug = drug; 73 | } 74 | 75 | public int getQuantity() { 76 | return quantity; 77 | } 78 | 79 | public void setQuantity(int quantity) { 80 | this.quantity = quantity; 81 | } 82 | 83 | public int getSelledDrugID() { 84 | return selledDrugID; 85 | } 86 | 87 | public void setSelledDrugID(int selledDrugID) { 88 | this.selledDrugID = selledDrugID; 89 | } 90 | 91 | public Date getSelledDate() { 92 | return selledDate; 93 | } 94 | 95 | public void setSelledDate(Date selledDate) { 96 | this.selledDate = selledDate; 97 | } 98 | 99 | /** 100 | * @return the startDate 101 | */ 102 | public Date getStartDate() { 103 | return startDate; 104 | } 105 | 106 | /** 107 | * @param startDate 108 | * the startDate to set 109 | */ 110 | public void setStartDate(Date startDate) { 111 | this.startDate = startDate; 112 | } 113 | 114 | /** 115 | * @return the endDate 116 | */ 117 | public Date getEndDate() { 118 | return endDate; 119 | } 120 | 121 | /** 122 | * @param endDate 123 | * the endDate to set 124 | */ 125 | public void setEndDate(Date endDate) { 126 | this.endDate = endDate; 127 | } 128 | 129 | public String getUnitPerDay() { 130 | return unitPerDay; 131 | } 132 | 133 | public void setUnitPerDay(String unitPerDay) { 134 | this.unitPerDay = unitPerDay; 135 | } 136 | 137 | } 138 | -------------------------------------------------------------------------------- /src/main/java/com/hospital/authentication/LoginService.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 com.hospital.authentication; 7 | 8 | import java.io.IOException; 9 | import java.io.PrintWriter; 10 | import java.security.NoSuchAlgorithmException; 11 | 12 | import javax.servlet.ServletException; 13 | import javax.servlet.annotation.WebServlet; 14 | import javax.servlet.http.HttpServlet; 15 | import javax.servlet.http.HttpServletRequest; 16 | import javax.servlet.http.HttpServletResponse; 17 | import javax.servlet.http.HttpSession; 18 | 19 | import com.hospital.entities.HospitalService; 20 | import com.hospital.models.Employee; 21 | import com.hospital.utils.Entity; 22 | import com.hospital.utils.PasswordEncryption; 23 | 24 | @WebServlet("/LoginService") 25 | public class LoginService extends HttpServlet { 26 | 27 | HospitalService hospitalService = HospitalService.getInstance(); 28 | 29 | protected void processRequest(HttpServletRequest request, HttpServletResponse response) 30 | throws ServletException, IOException { 31 | response.setContentType("text/html;charset=UTF-8"); 32 | 33 | try (PrintWriter out = response.getWriter()) { 34 | 35 | HttpSession session = request.getSession(); 36 | 37 | Employee employee = (Employee) session.getAttribute("employee"); 38 | 39 | if (employee == null) { 40 | 41 | String user = request.getParameter("user"); 42 | String pass = request.getParameter("pass"); 43 | employee = hospitalService.getEmployee(user, PasswordEncryption.encrypt(pass)); 44 | if (employee != null) { 45 | session.setAttribute("employee", employee); 46 | response.sendRedirect("home.jsp"); 47 | } else { 48 | response.sendRedirect("index.jsp?error=true"); 49 | } 50 | } 51 | 52 | } catch (NoSuchAlgorithmException e) { 53 | response.sendRedirect("index.jsp?error=true"); 54 | } 55 | } 56 | 57 | // 59 | /** 60 | * Handles the HTTP GET method. 61 | * 62 | * @param request 63 | * servlet request 64 | * @param response 65 | * servlet response 66 | * @throws ServletException 67 | * if a servlet-specific error occurs 68 | * @throws IOException 69 | * if an I/O error occurs 70 | */ 71 | @Override 72 | protected void doGet(HttpServletRequest request, HttpServletResponse response) 73 | throws ServletException, IOException { 74 | processRequest(request, response); 75 | } 76 | 77 | /** 78 | * Handles the HTTP POST method. 79 | * 80 | * @param request 81 | * servlet request 82 | * @param response 83 | * servlet response 84 | * @throws ServletException 85 | * if a servlet-specific error occurs 86 | * @throws IOException 87 | * if an I/O error occurs 88 | */ 89 | @Override 90 | protected void doPost(HttpServletRequest request, HttpServletResponse response) 91 | throws ServletException, IOException { 92 | processRequest(request, response); 93 | } 94 | 95 | /** 96 | * Returns a short description of the servlet. 97 | * 98 | * @return a String containing servlet description 99 | */ 100 | @Override 101 | public String getServletInfo() { 102 | return "Short description"; 103 | }// 104 | 105 | } 106 | -------------------------------------------------------------------------------- /src/main/webapp/assets/sass/md/mixins/_chartist.scss: -------------------------------------------------------------------------------- 1 | // Scales for responsive SVG containers 2 | $ct-scales: ((1), (15/16), (8/9), (5/6), (4/5), (3/4), (2/3), (5/8), (1/1.618), (3/5), (9/16), (8/15), (1/2), (2/5), (3/8), (1/3), (1/4)) !default; 3 | $ct-scales-names: (ct-square, ct-minor-second, ct-major-second, ct-minor-third, ct-major-third, ct-perfect-fourth, ct-perfect-fifth, ct-minor-sixth, ct-golden-section, ct-major-sixth, ct-minor-seventh, ct-major-seventh, ct-octave, ct-major-tenth, ct-major-eleventh, ct-major-twelfth, ct-double-octave) !default; 4 | 5 | // Class names to be used when generating CSS 6 | $ct-class-chart: ct-chart !default; 7 | $ct-class-chart-line: ct-chart-line !default; 8 | $ct-class-chart-bar: ct-chart-bar !default; 9 | $ct-class-horizontal-bars: ct-horizontal-bars !default; 10 | $ct-class-chart-pie: ct-chart-pie !default; 11 | $ct-class-chart-donut: ct-chart-donut !default; 12 | $ct-class-label: ct-label !default; 13 | $ct-class-series: ct-series !default; 14 | $ct-class-line: ct-line !default; 15 | $ct-class-point: ct-point !default; 16 | $ct-class-area: ct-area !default; 17 | $ct-class-bar: ct-bar !default; 18 | $ct-class-slice-pie: ct-slice-pie !default; 19 | $ct-class-slice-donut: ct-slice-donut !default; 20 | $ct-class-grid: ct-grid !default; 21 | $ct-class-vertical: ct-vertical !default; 22 | $ct-class-horizontal: ct-horizontal !default; 23 | $ct-class-start: ct-start !default; 24 | $ct-class-end: ct-end !default; 25 | 26 | // Container ratio 27 | $ct-container-ratio: (1/1.618) !default; 28 | 29 | // Text styles for labels 30 | $ct-text-color: rgba(0, 0, 0, 0.4) !default; 31 | $ct-text-size: 1.3rem !default; 32 | $ct-text-align: flex-start !default; 33 | $ct-text-justify: flex-start !default; 34 | $ct-text-line-height: 1; 35 | 36 | .ct-big-chart-white{ 37 | $ct-grid-color: rgba(250, 250, 250, 0.7) !default; 38 | } 39 | // Grid styles 40 | $ct-grid-color: rgba(0, 0, 0, 0.2) !default; 41 | $ct-grid-dasharray: 2px !default; 42 | $ct-grid-width: 1px !default; 43 | 44 | // Line chart properties 45 | $ct-line-width: 3px !default; 46 | $ct-line-dasharray: false !default; 47 | $ct-point-size: 8px !default; 48 | // Line chart point, can be either round or square 49 | $ct-point-shape: round !default; 50 | // Area fill transparency between 0 and 1 51 | $ct-area-opacity: 0.8 !default; 52 | 53 | // Bar chart bar width 54 | $ct-bar-width: 10px !default; 55 | 56 | // Donut width (If donut width is to big it can cause issues where the shape gets distorted) 57 | $ct-donut-width: 60px !default; 58 | 59 | // If set to true it will include the default classes and generate CSS output. If you're planning to use the mixins you 60 | // should set this property to false 61 | $ct-include-classes: true !default; 62 | 63 | // If this is set to true the CSS will contain colored series. You can extend or change the color with the 64 | // properties below 65 | $ct-include-colored-series: $ct-include-classes !default; 66 | 67 | // If set to true this will include all responsive container variations using the scales defined at the top of the script 68 | $ct-include-alternative-responsive-containers: $ct-include-classes !default; 69 | 70 | // Series names and colors. This can be extended or customized as desired. Just add more series and colors. 71 | $ct-series-names: (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) !default; 72 | $ct-series-colors: ( 73 | 74 | $brand-info, 75 | $brand-danger, 76 | $brand-warning, 77 | $brand-primary, 78 | $brand-success, 79 | $font-background-light-grey, 80 | $gray-color, 81 | $social-google, 82 | $social-tumblr, 83 | $social-youtube, 84 | $social-twitter, 85 | $social-pinterest, 86 | $social-behance, 87 | #6188e2, 88 | #a748ca 89 | ) !default; 90 | -------------------------------------------------------------------------------- /src/main/java/com/hospital/actions/DoctorListener.java: -------------------------------------------------------------------------------- 1 | package com.hospital.actions; 2 | 3 | import java.util.Date; 4 | 5 | import javax.servlet.http.HttpServletRequest; 6 | import javax.servlet.http.HttpServletResponse; 7 | import javax.servlet.http.HttpSession; 8 | 9 | import com.hospital.entities.HospitalService; 10 | import com.hospital.entities.DoctorDAO; 11 | import com.hospital.models.BloodGroup; 12 | import com.hospital.models.BookBed; 13 | import com.hospital.models.Disease; 14 | import com.hospital.models.Employee; 15 | import com.hospital.models.NextOfKin; 16 | import com.hospital.models.Patient; 17 | import com.hospital.models.Room; 18 | 19 | public class DoctorListener { 20 | private static DoctorListener doctorListener = new DoctorListener(); 21 | 22 | private static DoctorDAO doctorDAO = HospitalService.getInstance(); 23 | 24 | private HttpSession httpSession; 25 | 26 | private DoctorListener() { 27 | } 28 | 29 | public static DoctorListener getInstance() { 30 | return doctorListener; 31 | } 32 | 33 | public int addDiesease(HttpServletRequest request, HttpServletResponse response) { 34 | 35 | int statusCode = 0; 36 | try { 37 | httpSession=request.getSession(); 38 | 39 | Employee employee=(Employee) httpSession.getAttribute("employee"); 40 | 41 | int patientID = Integer.parseInt( request.getParameter("patientID") ); 42 | String disease = request.getParameter("disease"); 43 | String note = request.getParameter("note"); 44 | 45 | Disease disease2=new Disease(); 46 | disease2.setDisease(disease); 47 | disease2.setDiseaseDate(new Date()); 48 | disease2.setEmployee(employee); 49 | disease2.setNote(note); 50 | 51 | Patient patient = (Patient) doctorDAO.getObject(patientID, Patient.class); 52 | disease2.setPatient(patient); 53 | 54 | doctorDAO.saveObject(disease2); 55 | 56 | response.sendRedirect("dieseasePatient.jsp"); 57 | 58 | } catch (Exception ex) { 59 | ex.printStackTrace(); 60 | } 61 | return statusCode; 62 | } 63 | 64 | public void deleteDiesease(HttpServletRequest request, HttpServletResponse response) { 65 | try { 66 | int diseaseID = Integer.parseInt(request.getParameter("udis")); 67 | Disease disease = (Disease) doctorDAO.getObject(diseaseID, Disease.class); 68 | disease.setEmployee(null); 69 | disease.setPatient(null); 70 | 71 | doctorDAO.deleteObject(disease); 72 | 73 | response.sendRedirect("dieseasePatient.jsp"); 74 | } catch (Exception ex) { 75 | 76 | ex.printStackTrace(); 77 | } 78 | } 79 | 80 | public void updateDiesease(HttpServletRequest request, HttpServletResponse response) { 81 | 82 | try { 83 | httpSession=request.getSession(); 84 | 85 | Employee employee=(Employee) httpSession.getAttribute("employee"); 86 | 87 | int diseaseID = Integer.parseInt(request.getParameter("diseaseID")); 88 | 89 | 90 | int patientID = Integer.parseInt( request.getParameter("patientID") ); 91 | String disease = request.getParameter("disease"); 92 | String note = request.getParameter("note"); 93 | 94 | Disease disease2=new Disease(); 95 | disease2.setDiseaseId(diseaseID); 96 | disease2.setDisease(disease); 97 | disease2.setDiseaseDate(new Date()); 98 | disease2.setEmployee(employee); 99 | disease2.setNote(note); 100 | Patient patient = (Patient) doctorDAO.getObject(patientID, Patient.class); 101 | disease2.setPatient(patient); 102 | 103 | doctorDAO.updateObject(disease2); 104 | 105 | response.sendRedirect("dieseasePatient.jsp"); 106 | 107 | 108 | 109 | } catch (Exception ex) { 110 | 111 | ex.printStackTrace(); 112 | } 113 | 114 | } 115 | 116 | } 117 | -------------------------------------------------------------------------------- /src/main/java/com/hospital/models/Patient.java: -------------------------------------------------------------------------------- 1 | package com.hospital.models; 2 | 3 | import java.util.Date; 4 | 5 | import javax.persistence.CascadeType; 6 | import javax.persistence.Column; 7 | import javax.persistence.Entity; 8 | import javax.persistence.FetchType; 9 | import javax.persistence.GeneratedValue; 10 | import javax.persistence.GenerationType; 11 | import javax.persistence.Id; 12 | import javax.persistence.JoinColumn; 13 | import javax.persistence.OneToOne; 14 | import javax.persistence.Table; 15 | import javax.persistence.Temporal; 16 | import javax.persistence.TemporalType; 17 | 18 | @Entity 19 | @Table(name = "Patients") 20 | public class Patient implements java.io.Serializable { 21 | 22 | @Id 23 | @GeneratedValue(strategy = GenerationType.AUTO) 24 | @Column(name = "patientId") 25 | private Integer patientId; 26 | 27 | private String address; 28 | 29 | 30 | @Temporal(TemporalType.DATE) 31 | private Date dob; 32 | 33 | private String email; 34 | private String familyName; 35 | private String fatherName; 36 | private String gender; 37 | private Date joiningDate; 38 | private String name; 39 | private long phone; 40 | 41 | 42 | @OneToOne(fetch = FetchType.EAGER,targetEntity = BloodGroup.class,cascade = CascadeType.ALL) 43 | @JoinColumn(name = "bloodGroup_id") 44 | private BloodGroup bloodGroup; 45 | 46 | @OneToOne(fetch = FetchType.EAGER,targetEntity = NextOfKin.class,cascade = CascadeType.ALL) 47 | @JoinColumn(name = "nextOfKin_id") 48 | private NextOfKin nextOfKin; 49 | 50 | 51 | 52 | public Patient() { 53 | } 54 | 55 | 56 | 57 | 58 | public Integer getPatientId() { 59 | return this.patientId; 60 | } 61 | 62 | public void setPatientId(Integer patientId) { 63 | this.patientId = patientId; 64 | } 65 | 66 | public BloodGroup getBloodGroup() { 67 | return this.bloodGroup; 68 | } 69 | 70 | public void setBloodGroup(BloodGroup bloodGroup) { 71 | this.bloodGroup = bloodGroup; 72 | } 73 | 74 | 75 | public NextOfKin getNextOfKin() { 76 | return this.nextOfKin; 77 | } 78 | 79 | public void setNextOfKin(NextOfKin nextOfKin) { 80 | this.nextOfKin = nextOfKin; 81 | } 82 | 83 | public String getAddress() { 84 | return this.address; 85 | } 86 | 87 | public void setAddress(String address) { 88 | this.address = address; 89 | } 90 | 91 | 92 | 93 | public Date getDob() { 94 | return this.dob; 95 | } 96 | 97 | public void setDob(Date dob) { 98 | this.dob = dob; 99 | } 100 | 101 | public String getEmail() { 102 | return this.email; 103 | } 104 | 105 | public void setEmail(String email) { 106 | this.email = email; 107 | } 108 | 109 | public String getFamilyName() { 110 | return this.familyName; 111 | } 112 | 113 | public void setFamilyName(String familyName) { 114 | this.familyName = familyName; 115 | } 116 | 117 | public String getFatherName() { 118 | return this.fatherName; 119 | } 120 | 121 | public void setFatherName(String fatherName) { 122 | this.fatherName = fatherName; 123 | } 124 | 125 | public String getGender() { 126 | return this.gender; 127 | } 128 | 129 | public void setGender(String gender) { 130 | this.gender = gender; 131 | } 132 | 133 | public Date getJoiningDate() { 134 | return this.joiningDate; 135 | } 136 | 137 | public void setJoiningDate(Date joiningDate) { 138 | this.joiningDate = joiningDate; 139 | } 140 | 141 | public String getName() { 142 | return this.name; 143 | } 144 | 145 | public void setName(String name) { 146 | this.name = name; 147 | } 148 | 149 | public long getPhone() { 150 | return this.phone; 151 | } 152 | 153 | public void setPhone(long phone) { 154 | this.phone = phone; 155 | } 156 | 157 | 158 | 159 | } 160 | -------------------------------------------------------------------------------- /src/main/webapp/compose.jsp: -------------------------------------------------------------------------------- 1 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 2 | <%@page import="com.hospital.models.Employee"%> 3 | <%@ page language="java" contentType="text/html; charset=UTF-8" 4 | pageEncoding="UTF-8"%> 5 | 6 | 7 | <% 8 | Employee employee = (Employee) session.getAttribute("employee"); 9 | %> 10 | 11 | 12 | 13 | Welcome <%=employee.getFirstName()%> 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 41 | 42 | 43 | 53 | 54 | 55 | onload="sendSuccess();" 57 | onload="error();" 58 | 59 | > 60 | 61 |
    62 | 63 | <%@include file="templates/user/side-bar.jsp"%> 64 | 65 |
    66 | 67 | <%@include file="templates/user/nav-bar.jsp"%> 68 | 69 | <%@include file="templates/user/compose.jsp"%> 70 | 71 | <%@include file="templates/footer.jsp"%> 72 |
    73 | 74 |
    75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | -------------------------------------------------------------------------------- /src/main/webapp/sentMail.jsp: -------------------------------------------------------------------------------- 1 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 2 | <%@page import="com.hospital.models.Employee"%> 3 | <%@ page language="java" contentType="text/html; charset=UTF-8" 4 | pageEncoding="UTF-8"%> 5 | 6 | 7 | <% 8 | Employee employee = (Employee) session.getAttribute("employee"); 9 | %> 10 | 11 | 12 | 13 | Welcome <%=employee.getFirstName()%> 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 40 | 41 | 55 | 56 | 57 | 58 |
    59 | 60 | <%@include file="templates/user/side-bar.jsp"%> 61 | 62 |
    63 | 64 | <%@include file="templates/user/nav-bar.jsp"%> 65 | 66 | <%@include file="templates/user/sentmail.jsp"%> 67 | 68 | <%@include file="templates/footer.jsp"%> 69 |
    70 | 71 |
    72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | -------------------------------------------------------------------------------- /src/main/webapp/changePassword.jsp: -------------------------------------------------------------------------------- 1 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 2 | <%@page import="com.hospital.models.Employee"%> 3 | <%@ page language="java" contentType="text/html; charset=UTF-8" 4 | pageEncoding="UTF-8"%> 5 | 6 | 7 | <% 8 | Employee employee = (Employee) session.getAttribute("employee"); 9 | %> 10 | 11 | 12 | 13 | Welcome <%=employee.getFirstName()%> 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 40 | 41 | 55 | 56 | 57 | 58 |
    59 | 60 | <%@include file="templates/user/side-bar.jsp"%> 61 | 62 |
    63 | 64 | <%@include file="templates/user/nav-bar.jsp"%> 65 | 66 | <%@include file="templates/user/changepass.jsp"%> 67 | 68 | <%@include file="templates/footer.jsp"%> 69 |
    70 | 71 |
    72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | -------------------------------------------------------------------------------- /src/main/webapp/assets/sass/md/plugins/_plugin-nouislider.scss: -------------------------------------------------------------------------------- 1 | // This file has been autogenerated by grunt task lessToSass. Any changes will be overwritten. 2 | 3 | .noUi-target, 4 | .noUi-target * { 5 | -webkit-touch-callout: none; 6 | -ms-touch-action: none; 7 | user-select: none; 8 | box-sizing: border-box; 9 | } 10 | .noUi-base { 11 | width: 100%; 12 | height: 100%; 13 | position: relative; 14 | } 15 | .noUi-origin { 16 | position: absolute; 17 | right: 0; 18 | top: 0; 19 | left: 0; 20 | bottom: 0; 21 | } 22 | .noUi-handle { 23 | position: relative; 24 | z-index: 1; 25 | box-sizing: border-box; 26 | } 27 | .noUi-stacking .noUi-handle { 28 | z-index: 10; 29 | } 30 | //.noUi-stacking + .noUi-origin { 31 | // *z-index: -1; 32 | //} WARNING: Property with star prefix found. Checks for the star property hack (targets IE6/7) (star-property-hack) Browsers: All 33 | .noUi-state-tap .noUi-origin { 34 | transition: left 0.3s, top 0.3s; 35 | } 36 | .noUi-state-drag * { 37 | cursor: inherit !important; 38 | } 39 | .noUi-horizontal { 40 | height: 10px; 41 | } 42 | .noUi-handle { 43 | box-sizing: border-box; 44 | width: 14px; 45 | height: 14px; 46 | left: -10px; 47 | top: -6px; 48 | cursor: pointer; 49 | border-radius: 100%; 50 | transition: all 0.2s ease-out; 51 | border: 1px solid; 52 | background: $white-color; 53 | 54 | @include shadow-2dp(); 55 | } 56 | .noUi-vertical .noUi-handle { 57 | margin-left: 5px; 58 | cursor: ns-resize; 59 | } 60 | .noUi-horizontal.noUi-extended { 61 | padding: 0 15px; 62 | } 63 | .noUi-horizontal.noUi-extended .noUi-origin { 64 | right: -15px; 65 | } 66 | .noUi-background { 67 | height: 2px; 68 | margin: 20px 0; 69 | } 70 | .noUi-origin { 71 | margin: 0; 72 | border-radius: 0; 73 | height: 2px; 74 | background: #c8c8c8; 75 | &[style^="left: 0"] .noUi-handle { 76 | background-color: #fff; 77 | border: 2px solid #c8c8c8; 78 | &.noUi-active { 79 | border-width: 1px; 80 | } 81 | } 82 | } 83 | .noUi-target { 84 | border-radius: $border-radius-base; 85 | } 86 | .noUi-horizontal { 87 | height: 2px; 88 | margin: 15px 0; 89 | } 90 | .noUi-vertical { 91 | height: 100%; 92 | width: 2px; 93 | margin: 0 15px; 94 | display: inline-block; 95 | } 96 | .noUi-handle.noUi-active { 97 | transform: scale3d(2, 2, 1); 98 | } 99 | [disabled].noUi-slider{ 100 | opacity: 0.5; 101 | } 102 | [disabled] .noUi-handle { 103 | cursor: not-allowed; 104 | } 105 | 106 | .slider { 107 | background: #c8c8c8; 108 | } 109 | 110 | .slider { 111 | 112 | &.noUi-connect{ 113 | background-color: $brand-primary; 114 | } 115 | 116 | .noUi-handle{ 117 | border-color: $brand-primary; 118 | } 119 | 120 | &.slider-info{ 121 | & .noUi-connect, 122 | &.noUi-connect{ 123 | background-color: $brand-info; 124 | } 125 | 126 | .noUi-handle{ 127 | border-color: $brand-info; 128 | } 129 | } 130 | &.slider-success{ 131 | & .noUi-connect, 132 | &.noUi-connect{ 133 | background-color: $brand-success; 134 | } 135 | 136 | .noUi-handle{ 137 | border-color: $brand-success; 138 | } 139 | } 140 | &.slider-warning{ 141 | & .noUi-connect, 142 | &.noUi-connect{ 143 | background-color: $brand-warning; 144 | } 145 | 146 | .noUi-handle{ 147 | border-color: $brand-warning; 148 | } 149 | } 150 | &.slider-danger{ 151 | & .noUi-connect, 152 | &.noUi-connect{ 153 | background-color: $brand-danger; 154 | } 155 | 156 | .noUi-handle{ 157 | border-color: $brand-danger; 158 | } 159 | } 160 | 161 | } 162 | -------------------------------------------------------------------------------- /src/main/webapp/assets/scss/gsdk-bootstrap-wizard/_wizard-card.scss: -------------------------------------------------------------------------------- 1 | .wizard-card{ 2 | min-height: 410px; 3 | background-color: #FFFFFF; 4 | box-shadow: 0 0 15px rgba(0, 0, 0, 0.15), 0 0 1px 1px rgba(0, 0, 0, 0.1); 5 | border-radius: 10px; 6 | padding: 10px 0; 7 | 8 | .picture-container{ 9 | position: relative; 10 | cursor: pointer; 11 | text-align: center; 12 | } 13 | 14 | .picture{ 15 | width: 106px; 16 | height: 106px; 17 | background-color: $gray-bg; 18 | border: 4px solid #CCCCCC; 19 | color: $white-color; 20 | border-radius: 50%; 21 | margin: 5px auto; 22 | overflow: hidden; 23 | transition: all 0.2s; 24 | -webkit-transition: all 0.2s; 25 | 26 | &:hover{ 27 | border-color: #2ca8ff; 28 | } 29 | } 30 | 31 | .picture input[type="file"] { 32 | cursor: pointer; 33 | display: block; 34 | height: 100%; 35 | left: 0; 36 | opacity: 0 !important; 37 | position: absolute; 38 | top: 0; 39 | width: 100%; 40 | } 41 | 42 | .moving-tab{ 43 | position: absolute; 44 | text-align: center; 45 | padding: 10px; 46 | font-size: 12px; 47 | text-transform: uppercase; 48 | -webkit-font-smoothing: subpixel-antialiased; 49 | top: 0px; 50 | left: 0px; 51 | color: $white-color; 52 | cursor: pointer; 53 | font-weight: 500; 54 | } 55 | 56 | .picture-src{ 57 | width: 100%; 58 | } 59 | 60 | .tab-content{ 61 | min-height: 340px; 62 | padding: 20px 10px; 63 | } 64 | 65 | .wizard-footer{ 66 | padding: 0 10px; 67 | } 68 | 69 | .disabled{ 70 | display: none; 71 | } 72 | 73 | .wizard-header h3{ 74 | font-weight: 200; 75 | text-align: center; 76 | } 77 | 78 | 79 | 80 | 81 | 82 | &[data-color="green"]{ 83 | @include set-wizard-color($success-color); 84 | } 85 | 86 | &[data-color="azzure"]{ 87 | @include set-wizard-color($info-color); 88 | } 89 | 90 | &[data-color="blue"]{ 91 | @include set-wizard-color($primary-color); 92 | } 93 | 94 | &[data-color="orange"]{ 95 | @include set-wizard-color($warning-color); 96 | } 97 | 98 | &[data-color="red"]{ 99 | @include set-wizard-color($danger-color); 100 | } 101 | 102 | 103 | 104 | .btn{ 105 | text-transform: uppercase; 106 | } 107 | 108 | .info-text{ 109 | text-align: center; 110 | font-weight: 300; 111 | margin: 10px 0 30px; 112 | } 113 | 114 | .choice{ 115 | text-align: center; 116 | cursor: pointer; 117 | margin-top: 20px; 118 | 119 | .icon{ 120 | text-align: center; 121 | vertical-align: middle; 122 | height: 116px; 123 | width: 116px; 124 | border-radius: 50%; 125 | background-color: $gray-bg; 126 | color: $white-color; 127 | margin: 0 auto 20px; 128 | border: 4px solid #CCCCCC; 129 | transition: all 0.2s; 130 | -webkit-transition: all 0.2s; 131 | } 132 | 133 | i{ 134 | font-size: 30px; 135 | line-height: 111px; 136 | } 137 | 138 | &:hover, 139 | &.active{ 140 | .icon{ 141 | border-color: #2ca8ff; 142 | } 143 | } 144 | 145 | input[type="radio"], 146 | input[type="checkbox"]{ 147 | position: absolute; 148 | left: -10000px; 149 | z-index: -1; 150 | } 151 | } 152 | 153 | .btn-finish{ 154 | display: none; 155 | } 156 | 157 | .description{ 158 | color: $gray-color; 159 | font-size: 14px; 160 | } 161 | } 162 | -------------------------------------------------------------------------------- /src/main/webapp/assets/css/dataTables.bootstrap.min.css: -------------------------------------------------------------------------------- 1 | table.dataTable{clear:both;margin-top:6px !important;margin-bottom:6px !important;max-width:none !important;border-collapse:separate !important}table.dataTable td,table.dataTable th{-webkit-box-sizing:content-box;box-sizing:content-box}table.dataTable td.dataTables_empty,table.dataTable th.dataTables_empty{text-align:center}table.dataTable.nowrap th,table.dataTable.nowrap td{white-space:nowrap}div.dataTables_wrapper div.dataTables_length label{font-weight:normal;text-align:left;white-space:nowrap}div.dataTables_wrapper div.dataTables_length select{width:75px;display:inline-block}div.dataTables_wrapper div.dataTables_filter{text-align:right}div.dataTables_wrapper div.dataTables_filter label{font-weight:normal;white-space:nowrap;text-align:left}div.dataTables_wrapper div.dataTables_filter input{margin-left:0.5em;display:inline-block;width:auto}div.dataTables_wrapper div.dataTables_info{padding-top:8px;white-space:nowrap}div.dataTables_wrapper div.dataTables_paginate{margin:0;white-space:nowrap;text-align:right}div.dataTables_wrapper div.dataTables_paginate ul.pagination{margin:2px 0;white-space:nowrap}div.dataTables_wrapper div.dataTables_processing{position:absolute;top:50%;left:50%;width:200px;margin-left:-100px;margin-top:-26px;text-align:center;padding:1em 0}table.dataTable thead>tr>th.sorting_asc,table.dataTable thead>tr>th.sorting_desc,table.dataTable thead>tr>th.sorting,table.dataTable thead>tr>td.sorting_asc,table.dataTable thead>tr>td.sorting_desc,table.dataTable thead>tr>td.sorting{padding-right:30px}table.dataTable thead>tr>th:active,table.dataTable thead>tr>td:active{outline:none}table.dataTable thead .sorting,table.dataTable thead .sorting_asc,table.dataTable thead .sorting_desc,table.dataTable thead .sorting_asc_disabled,table.dataTable thead .sorting_desc_disabled{cursor:pointer;position:relative}table.dataTable thead .sorting:after,table.dataTable thead .sorting_asc:after,table.dataTable thead .sorting_desc:after,table.dataTable thead .sorting_asc_disabled:after,table.dataTable thead .sorting_desc_disabled:after{position:absolute;bottom:8px;right:8px;display:block;font-family:'Glyphicons Halflings';opacity:0.5}table.dataTable thead .sorting:after{opacity:0.2;content:"\e150"}table.dataTable thead .sorting_asc:after{content:"\e155"}table.dataTable thead .sorting_desc:after{content:"\e156"}table.dataTable thead .sorting_asc_disabled:after,table.dataTable thead .sorting_desc_disabled:after{color:#eee}div.dataTables_scrollHead table.dataTable{margin-bottom:0 !important}div.dataTables_scrollBody>table{border-top:none;margin-top:0 !important;margin-bottom:0 !important}div.dataTables_scrollBody>table>thead .sorting:after,div.dataTables_scrollBody>table>thead .sorting_asc:after,div.dataTables_scrollBody>table>thead .sorting_desc:after{display:none}div.dataTables_scrollBody>table>tbody>tr:first-child>th,div.dataTables_scrollBody>table>tbody>tr:first-child>td{border-top:none}div.dataTables_scrollFoot>table{margin-top:0 !important;border-top:none}@media screen and (max-width: 767px){div.dataTables_wrapper div.dataTables_length,div.dataTables_wrapper div.dataTables_filter,div.dataTables_wrapper div.dataTables_info,div.dataTables_wrapper div.dataTables_paginate{text-align:center}}table.dataTable.table-condensed>thead>tr>th{padding-right:20px}table.dataTable.table-condensed .sorting:after,table.dataTable.table-condensed .sorting_asc:after,table.dataTable.table-condensed .sorting_desc:after{top:6px;right:6px}table.table-bordered.dataTable th,table.table-bordered.dataTable td{border-left-width:0}table.table-bordered.dataTable th:last-child,table.table-bordered.dataTable th:last-child,table.table-bordered.dataTable td:last-child,table.table-bordered.dataTable td:last-child{border-right-width:0}table.table-bordered.dataTable tbody th,table.table-bordered.dataTable tbody td{border-bottom-width:0}div.dataTables_scrollHead table.table-bordered{border-bottom-width:0}div.table-responsive>div.dataTables_wrapper>div.row{margin:0}div.table-responsive>div.dataTables_wrapper>div.row>div[class^="col-"]:first-child{padding-left:0}div.table-responsive>div.dataTables_wrapper>div.row>div[class^="col-"]:last-child{padding-right:0} -------------------------------------------------------------------------------- /src/main/webapp/mgmtroom.jsp: -------------------------------------------------------------------------------- 1 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 2 | <%@page import="com.hospital.models.Employee"%> 3 | <%@ page language="java" contentType="text/html; charset=UTF-8" 4 | pageEncoding="UTF-8"%> 5 | 6 | 7 | <% 8 | Employee employee = (Employee) session.getAttribute("employee"); 9 | %> 10 | 11 | 12 | 13 | Welcome <%=employee.getFirstName()%> 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 40 | 41 | 42 | 62 | 63 | 64 | 65 | onload="addRoom();" 68 | 69 | onload="deleteRoom();" 70 | 71 | onload="updateRoom();" 72 | 73 | 74 | onload="error();" 75 | 76 | > 77 | 78 |
    79 | 80 | <%@include file="templates/user/side-bar.jsp"%> 81 | 82 |
    83 | 84 | <%@include file="templates/user/nav-bar.jsp"%> 85 | 86 | <%@include file="admin/mgmtroom.jsp"%> 87 | 88 | <%@include file="templates/footer.jsp"%> 89 |
    90 | 91 |
    92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | -------------------------------------------------------------------------------- /src/main/webapp/bookBed.jsp: -------------------------------------------------------------------------------- 1 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 2 | <%@page import="com.hospital.models.Employee"%> 3 | <%@ page language="java" contentType="text/html; charset=UTF-8" 4 | pageEncoding="UTF-8"%> 5 | 6 | 7 | <% 8 | Employee employee = (Employee) session.getAttribute("employee"); 9 | %> 10 | 11 | 12 | 13 | Welcome <%=employee.getFirstName()%> 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 39 | 42 | 43 | 63 | 64 | 65 | onload="addBookBed();" 67 | onload="deleteBookBed();" 68 | onload="updateBookBed();" 69 | onload="error();" > 70 | 71 | 72 | 73 |
    74 | 75 | <%@include file="templates/user/side-bar.jsp"%> 76 | 77 |
    78 | 79 | <%@include file="templates/user/nav-bar.jsp"%> 80 | 81 | <%@include file="reception/bookbed.jsp"%> 82 | 83 | <%@include file="templates/footer.jsp"%> 84 |
    85 | 86 |
    87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | -------------------------------------------------------------------------------- /src/main/webapp/nurse/viewServiceTime.jsp: -------------------------------------------------------------------------------- 1 | <%@page import="com.hospital.entities.NurseDAO"%> 2 | <%@page import="com.hospital.models.NurseServiceTime"%> 3 | <%@page import="com.hospital.entities.DoctorDAO"%> 4 | <%@page import="com.hospital.models.Disease"%> 5 | <%@page import="com.hospital.models.BookBed"%> 6 | <%@page import="com.hospital.models.Patient"%> 7 | <%@page import="com.hospital.entities.ReceptioniestDAO"%> 8 | <%@page import="com.hospital.models.Room"%> 9 | <%@page import="com.hospital.entities.AdminDAO"%> 10 | <%@page import="com.hospital.models.RoomType"%> 11 | <%@page import="com.hospital.models.Employee"%> 12 | <%@page import="com.hospital.models.Message"%> 13 | <%@page import="java.util.List"%> 14 | <%@page import="com.hospital.entities.HospitalService"%> 15 | <%@page import="com.hospital.entities.UserDAO"%> 16 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 17 | 18 | 19 | 24 | 25 | 26 |
    Eng
    27 |
    28 | Made with Mustafa 29 |
    30 |
    31 | <% 32 | NurseDAO nurseDAO = HospitalService.getInstance(); 33 | 34 | Employee employee3 = (Employee) session.getAttribute("employee"); 35 | List nurseServiceTimes = nurseDAO.getAllServiceTime(employee3.getEmployeeId()); 36 | %> 37 |
    38 |
    39 |
    40 |
    41 |
    42 |
    43 |

    44 | View Service Time 45 |

    46 |

    View Service Time

    47 |
    48 |
    49 |
    50 |
    51 |
    52 | 64 |
    65 | 66 | 67 | 68 |
    69 |
    70 |
    71 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | <% 84 | for (NurseServiceTime nurseServiceTime : nurseServiceTimes) { 85 | %> 86 | 87 | 88 | 89 | 91 | 92 | 94 | 95 | 96 | 97 | 98 | <% 99 | } 100 | %> 101 | 102 | 103 |
    Nurse NameService DateShift TimeDepartment
    <%=nurseServiceTime.getNurse().getFirstName()%> <%=nurseServiceTime.getNurse().getFatherName()%> 90 | <%=nurseServiceTime.getNurse().getFamilyName()%><%=nurseServiceTime.getServiceDate()%><%=nurseServiceTime.getShiftTime().getFromTime()%> 93 | : <%=nurseServiceTime.getShiftTime().getToTime()%><%=nurseServiceTime.getDepartment()%>
    104 | 105 | 106 |
    107 |
    108 |
    109 |
    110 | 111 | 112 |
    113 |
    114 |
    115 |
    116 |
    117 |
    118 |
    119 | 120 | --------------------------------------------------------------------------------