├── src
├── DesignatedMedicalInstitution.txt
├── MedicalCalculationParameter.txt
├── Drug.txt
├── Hospital.txt
├── img
│ ├── MenuUI.png
│ ├── LoginUI.png
│ ├── CommonBussinessUI.png
│ ├── IntegratedQueryUI.png
│ └── MedicalReimbursementUI.png
├── ClinicProject.txt
├── ServiceFacility.txt
├── DiseaseInformation.txt
├── UnreimbursedBudget.txt
├── lastReimbursement.txt
├── AdmissionInformation.txt
├── AnnualReimbursement.txt
├── PrescriptionInformation.txt
├── controller
│ ├── background.jpg
│ ├── background1.jpg
│ ├── background2.jpg
│ ├── background3.jpg
│ ├── Print.css
│ ├── ReimbursementSuccess.css
│ ├── StartReimbursement.css
│ ├── ReimbursementController.css
│ ├── Menu.css
│ ├── ComSearchController.css
│ ├── CommonBusinessController.css
│ ├── InformationMaintenController.css
│ ├── PersonController.java
│ ├── Print.java
│ ├── login.css
│ ├── Main.java
│ ├── ComSearchController.java
│ ├── ComSearchController.fxml
│ ├── LoginController.java
│ ├── MenuController.fxml
│ ├── Login.fxml
│ ├── MenuController.java
│ ├── ReimbursementSuccess.fxml
│ ├── ReimbursementSuccess.java
│ ├── Print.fxml
│ ├── ReimbursementController.java
│ ├── ReimbursementController.fxml
│ ├── StartReimbursement.fxml
│ └── CommonBusinessController.java
├── Person.txt
├── Examine
│ ├── SpecialExamine.java
│ ├── MedicalInstitutionExamine.java
│ └── Examine.java
├── Data
│ ├── Company.java
│ ├── DesignatedMedicalInstitution.java
│ ├── DiseaseInformation.java
│ ├── MedicalCalculationParameter.java
│ ├── ServiceFacility.java
│ ├── ClinicProject.java
│ ├── Drug.java
│ ├── PrescriptionInformation.java
│ ├── AnnualReimbursement.java
│ └── Person.java
├── Reimbursement
│ └── Reimbursement.java
└── IO
│ └── IO.java
├── out
└── production
│ └── MedicalInsuranceSystem
│ ├── DesignatedMedicalInstitution.txt
│ ├── MedicalCalculationParameter.txt
│ ├── Drug.txt
│ ├── Hospital.txt
│ ├── IO
│ └── IO.class
│ ├── Data
│ ├── Drug.class
│ ├── Company.class
│ ├── Person.class
│ ├── ClinicProject.class
│ ├── ServiceFacility.class
│ ├── AnnualReimbursement.class
│ ├── DiseaseInformation.class
│ ├── PrescriptionInformation.class
│ ├── MedicalCalculationParameter.class
│ └── DesignatedMedicalInstitution.class
│ ├── img
│ ├── LoginUI.png
│ ├── MenuUI.png
│ ├── CommonBussinessUI.png
│ ├── IntegratedQueryUI.png
│ └── MedicalReimbursementUI.png
│ ├── ClinicProject.txt
│ ├── ServiceFacility.txt
│ ├── AnnualReimbursement.txt
│ ├── DiseaseInformation.txt
│ ├── Examine
│ ├── Examine.class
│ ├── SpecialExamine.class
│ └── MedicalInstitutionExamine.class
│ ├── UnreimbursedBudget.txt
│ ├── controller
│ ├── Main.class
│ ├── Print.class
│ ├── background.jpg
│ ├── background1.jpg
│ ├── background2.jpg
│ ├── background3.jpg
│ ├── LoginController.class
│ ├── MenuController.class
│ ├── PersonController.class
│ ├── StartReimbursement.class
│ ├── ComSearchController.class
│ ├── ReimbursementSuccess.class
│ ├── ReimbursementController.class
│ ├── CommonBusinessController.class
│ ├── InformationMaintenController.class
│ ├── Print.css
│ ├── ReimbursementSuccess.css
│ ├── StartReimbursement.css
│ ├── ReimbursementController.css
│ ├── Menu.css
│ ├── ComSearchController.css
│ ├── CommonBusinessController.css
│ ├── InformationMaintenController.css
│ ├── login.css
│ ├── ComSearchController.fxml
│ ├── MenuController.fxml
│ ├── Login.fxml
│ ├── ReimbursementSuccess.fxml
│ ├── Print.fxml
│ ├── ReimbursementController.fxml
│ └── StartReimbursement.fxml
│ ├── lastReimbursement.txt
│ ├── AdmissionInformation.txt
│ ├── PrescriptionInformation.txt
│ ├── Reimbursement
│ └── Reimbursement.class
│ └── Person.txt
├── .idea
├── vcs.xml
├── modules.xml
└── misc.xml
├── MedicalInsuranceSystem.iml
└── README.md
/src/DesignatedMedicalInstitution.txt:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/MedicalCalculationParameter.txt:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/out/production/MedicalInsuranceSystem/DesignatedMedicalInstitution.txt:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/out/production/MedicalInsuranceSystem/MedicalCalculationParameter.txt:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/Drug.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LSKReno/MedicalInsuranceSystem/HEAD/src/Drug.txt
--------------------------------------------------------------------------------
/src/Hospital.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LSKReno/MedicalInsuranceSystem/HEAD/src/Hospital.txt
--------------------------------------------------------------------------------
/src/img/MenuUI.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LSKReno/MedicalInsuranceSystem/HEAD/src/img/MenuUI.png
--------------------------------------------------------------------------------
/src/ClinicProject.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LSKReno/MedicalInsuranceSystem/HEAD/src/ClinicProject.txt
--------------------------------------------------------------------------------
/src/img/LoginUI.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LSKReno/MedicalInsuranceSystem/HEAD/src/img/LoginUI.png
--------------------------------------------------------------------------------
/src/ServiceFacility.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LSKReno/MedicalInsuranceSystem/HEAD/src/ServiceFacility.txt
--------------------------------------------------------------------------------
/src/DiseaseInformation.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LSKReno/MedicalInsuranceSystem/HEAD/src/DiseaseInformation.txt
--------------------------------------------------------------------------------
/src/UnreimbursedBudget.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LSKReno/MedicalInsuranceSystem/HEAD/src/UnreimbursedBudget.txt
--------------------------------------------------------------------------------
/src/lastReimbursement.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LSKReno/MedicalInsuranceSystem/HEAD/src/lastReimbursement.txt
--------------------------------------------------------------------------------
/src/AdmissionInformation.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LSKReno/MedicalInsuranceSystem/HEAD/src/AdmissionInformation.txt
--------------------------------------------------------------------------------
/src/AnnualReimbursement.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LSKReno/MedicalInsuranceSystem/HEAD/src/AnnualReimbursement.txt
--------------------------------------------------------------------------------
/src/PrescriptionInformation.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LSKReno/MedicalInsuranceSystem/HEAD/src/PrescriptionInformation.txt
--------------------------------------------------------------------------------
/src/controller/background.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LSKReno/MedicalInsuranceSystem/HEAD/src/controller/background.jpg
--------------------------------------------------------------------------------
/src/controller/background1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LSKReno/MedicalInsuranceSystem/HEAD/src/controller/background1.jpg
--------------------------------------------------------------------------------
/src/controller/background2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LSKReno/MedicalInsuranceSystem/HEAD/src/controller/background2.jpg
--------------------------------------------------------------------------------
/src/controller/background3.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LSKReno/MedicalInsuranceSystem/HEAD/src/controller/background3.jpg
--------------------------------------------------------------------------------
/src/img/CommonBussinessUI.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LSKReno/MedicalInsuranceSystem/HEAD/src/img/CommonBussinessUI.png
--------------------------------------------------------------------------------
/src/img/IntegratedQueryUI.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LSKReno/MedicalInsuranceSystem/HEAD/src/img/IntegratedQueryUI.png
--------------------------------------------------------------------------------
/src/img/MedicalReimbursementUI.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LSKReno/MedicalInsuranceSystem/HEAD/src/img/MedicalReimbursementUI.png
--------------------------------------------------------------------------------
/out/production/MedicalInsuranceSystem/Drug.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LSKReno/MedicalInsuranceSystem/HEAD/out/production/MedicalInsuranceSystem/Drug.txt
--------------------------------------------------------------------------------
/out/production/MedicalInsuranceSystem/Hospital.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LSKReno/MedicalInsuranceSystem/HEAD/out/production/MedicalInsuranceSystem/Hospital.txt
--------------------------------------------------------------------------------
/out/production/MedicalInsuranceSystem/IO/IO.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LSKReno/MedicalInsuranceSystem/HEAD/out/production/MedicalInsuranceSystem/IO/IO.class
--------------------------------------------------------------------------------
/out/production/MedicalInsuranceSystem/Data/Drug.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LSKReno/MedicalInsuranceSystem/HEAD/out/production/MedicalInsuranceSystem/Data/Drug.class
--------------------------------------------------------------------------------
/out/production/MedicalInsuranceSystem/img/LoginUI.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LSKReno/MedicalInsuranceSystem/HEAD/out/production/MedicalInsuranceSystem/img/LoginUI.png
--------------------------------------------------------------------------------
/out/production/MedicalInsuranceSystem/img/MenuUI.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LSKReno/MedicalInsuranceSystem/HEAD/out/production/MedicalInsuranceSystem/img/MenuUI.png
--------------------------------------------------------------------------------
/out/production/MedicalInsuranceSystem/ClinicProject.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LSKReno/MedicalInsuranceSystem/HEAD/out/production/MedicalInsuranceSystem/ClinicProject.txt
--------------------------------------------------------------------------------
/out/production/MedicalInsuranceSystem/Data/Company.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LSKReno/MedicalInsuranceSystem/HEAD/out/production/MedicalInsuranceSystem/Data/Company.class
--------------------------------------------------------------------------------
/out/production/MedicalInsuranceSystem/Data/Person.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LSKReno/MedicalInsuranceSystem/HEAD/out/production/MedicalInsuranceSystem/Data/Person.class
--------------------------------------------------------------------------------
/out/production/MedicalInsuranceSystem/ServiceFacility.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LSKReno/MedicalInsuranceSystem/HEAD/out/production/MedicalInsuranceSystem/ServiceFacility.txt
--------------------------------------------------------------------------------
/out/production/MedicalInsuranceSystem/AnnualReimbursement.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LSKReno/MedicalInsuranceSystem/HEAD/out/production/MedicalInsuranceSystem/AnnualReimbursement.txt
--------------------------------------------------------------------------------
/out/production/MedicalInsuranceSystem/DiseaseInformation.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LSKReno/MedicalInsuranceSystem/HEAD/out/production/MedicalInsuranceSystem/DiseaseInformation.txt
--------------------------------------------------------------------------------
/out/production/MedicalInsuranceSystem/Examine/Examine.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LSKReno/MedicalInsuranceSystem/HEAD/out/production/MedicalInsuranceSystem/Examine/Examine.class
--------------------------------------------------------------------------------
/out/production/MedicalInsuranceSystem/UnreimbursedBudget.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LSKReno/MedicalInsuranceSystem/HEAD/out/production/MedicalInsuranceSystem/UnreimbursedBudget.txt
--------------------------------------------------------------------------------
/out/production/MedicalInsuranceSystem/controller/Main.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LSKReno/MedicalInsuranceSystem/HEAD/out/production/MedicalInsuranceSystem/controller/Main.class
--------------------------------------------------------------------------------
/out/production/MedicalInsuranceSystem/controller/Print.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LSKReno/MedicalInsuranceSystem/HEAD/out/production/MedicalInsuranceSystem/controller/Print.class
--------------------------------------------------------------------------------
/out/production/MedicalInsuranceSystem/lastReimbursement.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LSKReno/MedicalInsuranceSystem/HEAD/out/production/MedicalInsuranceSystem/lastReimbursement.txt
--------------------------------------------------------------------------------
/out/production/MedicalInsuranceSystem/AdmissionInformation.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LSKReno/MedicalInsuranceSystem/HEAD/out/production/MedicalInsuranceSystem/AdmissionInformation.txt
--------------------------------------------------------------------------------
/out/production/MedicalInsuranceSystem/Data/ClinicProject.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LSKReno/MedicalInsuranceSystem/HEAD/out/production/MedicalInsuranceSystem/Data/ClinicProject.class
--------------------------------------------------------------------------------
/out/production/MedicalInsuranceSystem/controller/background.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LSKReno/MedicalInsuranceSystem/HEAD/out/production/MedicalInsuranceSystem/controller/background.jpg
--------------------------------------------------------------------------------
/out/production/MedicalInsuranceSystem/img/CommonBussinessUI.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LSKReno/MedicalInsuranceSystem/HEAD/out/production/MedicalInsuranceSystem/img/CommonBussinessUI.png
--------------------------------------------------------------------------------
/out/production/MedicalInsuranceSystem/img/IntegratedQueryUI.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LSKReno/MedicalInsuranceSystem/HEAD/out/production/MedicalInsuranceSystem/img/IntegratedQueryUI.png
--------------------------------------------------------------------------------
/out/production/MedicalInsuranceSystem/Data/ServiceFacility.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LSKReno/MedicalInsuranceSystem/HEAD/out/production/MedicalInsuranceSystem/Data/ServiceFacility.class
--------------------------------------------------------------------------------
/out/production/MedicalInsuranceSystem/Examine/SpecialExamine.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LSKReno/MedicalInsuranceSystem/HEAD/out/production/MedicalInsuranceSystem/Examine/SpecialExamine.class
--------------------------------------------------------------------------------
/out/production/MedicalInsuranceSystem/PrescriptionInformation.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LSKReno/MedicalInsuranceSystem/HEAD/out/production/MedicalInsuranceSystem/PrescriptionInformation.txt
--------------------------------------------------------------------------------
/out/production/MedicalInsuranceSystem/controller/background1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LSKReno/MedicalInsuranceSystem/HEAD/out/production/MedicalInsuranceSystem/controller/background1.jpg
--------------------------------------------------------------------------------
/out/production/MedicalInsuranceSystem/controller/background2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LSKReno/MedicalInsuranceSystem/HEAD/out/production/MedicalInsuranceSystem/controller/background2.jpg
--------------------------------------------------------------------------------
/out/production/MedicalInsuranceSystem/controller/background3.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LSKReno/MedicalInsuranceSystem/HEAD/out/production/MedicalInsuranceSystem/controller/background3.jpg
--------------------------------------------------------------------------------
/.idea/vcs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/out/production/MedicalInsuranceSystem/Data/AnnualReimbursement.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LSKReno/MedicalInsuranceSystem/HEAD/out/production/MedicalInsuranceSystem/Data/AnnualReimbursement.class
--------------------------------------------------------------------------------
/out/production/MedicalInsuranceSystem/Data/DiseaseInformation.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LSKReno/MedicalInsuranceSystem/HEAD/out/production/MedicalInsuranceSystem/Data/DiseaseInformation.class
--------------------------------------------------------------------------------
/out/production/MedicalInsuranceSystem/img/MedicalReimbursementUI.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LSKReno/MedicalInsuranceSystem/HEAD/out/production/MedicalInsuranceSystem/img/MedicalReimbursementUI.png
--------------------------------------------------------------------------------
/src/Person.txt:
--------------------------------------------------------------------------------
1 | 人员ID,人员姓名,医疗人员类别,定点医疗机构编号
2 | 0001,LSK,11,123
3 | 0002,Reno,21,456
4 | 0003,Nathon,11,789
5 | 0004,WYF,11,520
6 | 0005,NJL,null,865
7 | 0006,Lisikuan,11,562
8 | 0007,Wangyufei,null,520
9 |
--------------------------------------------------------------------------------
/out/production/MedicalInsuranceSystem/Reimbursement/Reimbursement.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LSKReno/MedicalInsuranceSystem/HEAD/out/production/MedicalInsuranceSystem/Reimbursement/Reimbursement.class
--------------------------------------------------------------------------------
/out/production/MedicalInsuranceSystem/controller/LoginController.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LSKReno/MedicalInsuranceSystem/HEAD/out/production/MedicalInsuranceSystem/controller/LoginController.class
--------------------------------------------------------------------------------
/out/production/MedicalInsuranceSystem/controller/MenuController.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LSKReno/MedicalInsuranceSystem/HEAD/out/production/MedicalInsuranceSystem/controller/MenuController.class
--------------------------------------------------------------------------------
/out/production/MedicalInsuranceSystem/controller/PersonController.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LSKReno/MedicalInsuranceSystem/HEAD/out/production/MedicalInsuranceSystem/controller/PersonController.class
--------------------------------------------------------------------------------
/out/production/MedicalInsuranceSystem/Data/PrescriptionInformation.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LSKReno/MedicalInsuranceSystem/HEAD/out/production/MedicalInsuranceSystem/Data/PrescriptionInformation.class
--------------------------------------------------------------------------------
/out/production/MedicalInsuranceSystem/controller/StartReimbursement.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LSKReno/MedicalInsuranceSystem/HEAD/out/production/MedicalInsuranceSystem/controller/StartReimbursement.class
--------------------------------------------------------------------------------
/out/production/MedicalInsuranceSystem/Data/MedicalCalculationParameter.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LSKReno/MedicalInsuranceSystem/HEAD/out/production/MedicalInsuranceSystem/Data/MedicalCalculationParameter.class
--------------------------------------------------------------------------------
/out/production/MedicalInsuranceSystem/controller/ComSearchController.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LSKReno/MedicalInsuranceSystem/HEAD/out/production/MedicalInsuranceSystem/controller/ComSearchController.class
--------------------------------------------------------------------------------
/out/production/MedicalInsuranceSystem/controller/ReimbursementSuccess.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LSKReno/MedicalInsuranceSystem/HEAD/out/production/MedicalInsuranceSystem/controller/ReimbursementSuccess.class
--------------------------------------------------------------------------------
/out/production/MedicalInsuranceSystem/Data/DesignatedMedicalInstitution.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LSKReno/MedicalInsuranceSystem/HEAD/out/production/MedicalInsuranceSystem/Data/DesignatedMedicalInstitution.class
--------------------------------------------------------------------------------
/out/production/MedicalInsuranceSystem/Examine/MedicalInstitutionExamine.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LSKReno/MedicalInsuranceSystem/HEAD/out/production/MedicalInsuranceSystem/Examine/MedicalInstitutionExamine.class
--------------------------------------------------------------------------------
/out/production/MedicalInsuranceSystem/controller/ReimbursementController.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LSKReno/MedicalInsuranceSystem/HEAD/out/production/MedicalInsuranceSystem/controller/ReimbursementController.class
--------------------------------------------------------------------------------
/out/production/MedicalInsuranceSystem/controller/CommonBusinessController.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LSKReno/MedicalInsuranceSystem/HEAD/out/production/MedicalInsuranceSystem/controller/CommonBusinessController.class
--------------------------------------------------------------------------------
/out/production/MedicalInsuranceSystem/controller/InformationMaintenController.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LSKReno/MedicalInsuranceSystem/HEAD/out/production/MedicalInsuranceSystem/controller/InformationMaintenController.class
--------------------------------------------------------------------------------
/out/production/MedicalInsuranceSystem/Person.txt:
--------------------------------------------------------------------------------
1 | 人员ID,人员姓名,医疗人员类别,定点医疗机构编号
2 | 0001,LSK,11,123
3 | 0002,Reno,21,456
4 | 0003,Nathon,11,789
5 | 0004,WYF,11,520
6 | 0005,NJL,null,865
7 | 0006,Lisikuan,11,562
8 | 0007,Wangyufei,null,520
9 |
--------------------------------------------------------------------------------
/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/src/controller/Print.css:
--------------------------------------------------------------------------------
1 | /*设置button背景颜色*/
2 | .button:hover {
3 | -fx-background-color: linear-gradient(#4e4e75, #61a2b1);
4 | }
5 |
6 | .label {
7 | /*!* 设置字体 *!*/
8 | /*-fx-font-size: 28px;*/
9 | /*-fx-font-weight: bold;*/
10 | /*-fx-text-fill: #333333;*/
11 | /*-fx-font-family: FZShuTi;*/
12 | /* 设置阴影 */
13 | -fx-effect: dropshadow( gaussian , rgba(255,255,255,0.5) , 0,0,0,1 );
14 | }
15 |
16 |
--------------------------------------------------------------------------------
/src/controller/ReimbursementSuccess.css:
--------------------------------------------------------------------------------
1 | /*设置button背景颜色*/
2 | .button:hover {
3 | -fx-background-color: linear-gradient(#4e4e75, #61a2b1);
4 | }
5 |
6 | .label {
7 | /*!* 设置字体 *!*/
8 | /*-fx-font-size: 28px;*/
9 | /*-fx-font-weight: bold;*/
10 | /*-fx-text-fill: #333333;*/
11 | /*-fx-font-family: FZShuTi;*/
12 | /* 设置阴影 */
13 | -fx-effect: dropshadow( gaussian , rgba(255,255,255,0.5) , 0,0,0,1 );
14 | }
15 |
--------------------------------------------------------------------------------
/out/production/MedicalInsuranceSystem/controller/Print.css:
--------------------------------------------------------------------------------
1 | /*设置button背景颜色*/
2 | .button:hover {
3 | -fx-background-color: linear-gradient(#4e4e75, #61a2b1);
4 | }
5 |
6 | .label {
7 | /*!* 设置字体 *!*/
8 | /*-fx-font-size: 28px;*/
9 | /*-fx-font-weight: bold;*/
10 | /*-fx-text-fill: #333333;*/
11 | /*-fx-font-family: FZShuTi;*/
12 | /* 设置阴影 */
13 | -fx-effect: dropshadow( gaussian , rgba(255,255,255,0.5) , 0,0,0,1 );
14 | }
15 |
16 |
--------------------------------------------------------------------------------
/src/controller/StartReimbursement.css:
--------------------------------------------------------------------------------
1 | /*设置button背景颜色*/
2 | .button:hover {
3 | -fx-background-color: linear-gradient(#4e4e75, #61a2b1);
4 | }
5 |
6 | .label {
7 | /*!* 设置字体 *!*/
8 | /*-fx-font-size: 28px;*/
9 | /*-fx-font-weight: bold;*/
10 | /*-fx-text-fill: #333333;*/
11 | /*-fx-font-family: FZShuTi;*/
12 | /* 设置阴影 */
13 | -fx-effect: dropshadow( gaussian , rgba(255,255,255,0.5) , 0,0,0,1 );
14 | }
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/out/production/MedicalInsuranceSystem/controller/ReimbursementSuccess.css:
--------------------------------------------------------------------------------
1 | /*设置button背景颜色*/
2 | .button:hover {
3 | -fx-background-color: linear-gradient(#4e4e75, #61a2b1);
4 | }
5 |
6 | .label {
7 | /*!* 设置字体 *!*/
8 | /*-fx-font-size: 28px;*/
9 | /*-fx-font-weight: bold;*/
10 | /*-fx-text-fill: #333333;*/
11 | /*-fx-font-family: FZShuTi;*/
12 | /* 设置阴影 */
13 | -fx-effect: dropshadow( gaussian , rgba(255,255,255,0.5) , 0,0,0,1 );
14 | }
15 |
--------------------------------------------------------------------------------
/src/controller/ReimbursementController.css:
--------------------------------------------------------------------------------
1 | /*设置button背景颜色*/
2 | .button:hover {
3 | -fx-background-color: linear-gradient(#4e4e75, #61a2b1);
4 | }
5 |
6 | .label {
7 | /*!* 设置字体 *!*/
8 | /*-fx-font-size: 28px;*/
9 | /*-fx-font-weight: bold;*/
10 | /*-fx-text-fill: #333333;*/
11 | /*-fx-font-family: FZShuTi;*/
12 | /* 设置阴影 */
13 | -fx-effect: dropshadow( gaussian , rgba(255,255,255,0.5) , 0,0,0,1 );
14 | }
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/out/production/MedicalInsuranceSystem/controller/StartReimbursement.css:
--------------------------------------------------------------------------------
1 | /*设置button背景颜色*/
2 | .button:hover {
3 | -fx-background-color: linear-gradient(#4e4e75, #61a2b1);
4 | }
5 |
6 | .label {
7 | /*!* 设置字体 *!*/
8 | /*-fx-font-size: 28px;*/
9 | /*-fx-font-weight: bold;*/
10 | /*-fx-text-fill: #333333;*/
11 | /*-fx-font-family: FZShuTi;*/
12 | /* 设置阴影 */
13 | -fx-effect: dropshadow( gaussian , rgba(255,255,255,0.5) , 0,0,0,1 );
14 | }
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/out/production/MedicalInsuranceSystem/controller/ReimbursementController.css:
--------------------------------------------------------------------------------
1 | /*设置button背景颜色*/
2 | .button:hover {
3 | -fx-background-color: linear-gradient(#4e4e75, #61a2b1);
4 | }
5 |
6 | .label {
7 | /*!* 设置字体 *!*/
8 | /*-fx-font-size: 28px;*/
9 | /*-fx-font-weight: bold;*/
10 | /*-fx-text-fill: #333333;*/
11 | /*-fx-font-family: FZShuTi;*/
12 | /* 设置阴影 */
13 | -fx-effect: dropshadow( gaussian , rgba(255,255,255,0.5) , 0,0,0,1 );
14 | }
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/MedicalInsuranceSystem.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/src/controller/Menu.css:
--------------------------------------------------------------------------------
1 | /*.root {*/
2 | /*-fx-background-image: url("background.jpg");!* 设置背景图 *!*/
3 | /*}*/
4 |
5 | /*设置button背景颜色*/
6 | .button:hover {
7 | -fx-background-color: linear-gradient(#2A5058, #61a2b1);
8 | }
9 | /*.label {*/
10 | /*!* 设置字体 *!*/
11 | /*-fx-font-size: 27px;*/
12 | /*-fx-font-weight: bold;*/
13 | /*-fx-text-fill: #333333;*/
14 | /*-fx-font-family: FZShuTi;*/
15 | /*!* 设置阴影 *!*/
16 | /*-fx-effect: dropshadow( gaussian , rgba(255,255,255,0.5) , 0,0,0,1 );*/
17 | /*}*/
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/out/production/MedicalInsuranceSystem/controller/Menu.css:
--------------------------------------------------------------------------------
1 | /*.root {*/
2 | /*-fx-background-image: url("background.jpg");!* 设置背景图 *!*/
3 | /*}*/
4 |
5 | /*设置button背景颜色*/
6 | .button:hover {
7 | -fx-background-color: linear-gradient(#2A5058, #61a2b1);
8 | }
9 | /*.label {*/
10 | /*!* 设置字体 *!*/
11 | /*-fx-font-size: 27px;*/
12 | /*-fx-font-weight: bold;*/
13 | /*-fx-text-fill: #333333;*/
14 | /*-fx-font-family: FZShuTi;*/
15 | /*!* 设置阴影 *!*/
16 | /*-fx-effect: dropshadow( gaussian , rgba(255,255,255,0.5) , 0,0,0,1 );*/
17 | /*}*/
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/src/Examine/SpecialExamine.java:
--------------------------------------------------------------------------------
1 | package Examine;
2 |
3 | import javafx.scene.layout.Pane;
4 |
5 | /**
6 | * Created by LSK.Reno on 2018/7/26 13:59.
7 | */
8 | public class SpecialExamine extends Examine {
9 | private String drugID = "";
10 |
11 | /**
12 | * 构造方法
13 | * **/
14 | public SpecialExamine(String drugID) {
15 | this.drugID = drugID;
16 | }
17 |
18 | /**
19 | * getter and setter
20 | * */
21 | public String getDrugID() {
22 | return drugID;
23 | }
24 |
25 | public void setDrugID(String drugID) {
26 | this.drugID = drugID;
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/src/Examine/MedicalInstitutionExamine.java:
--------------------------------------------------------------------------------
1 | package Examine;
2 |
3 | /**
4 | * Created by LSK.Reno on 2018/7/26 13:59.
5 | */
6 | public class MedicalInstitutionExamine extends Examine{
7 | private String institutionID = "";
8 |
9 | //Constructor
10 | public MedicalInstitutionExamine(String institutionID) {
11 | this.institutionID = institutionID;
12 | }
13 |
14 | //getter and setter
15 | public String getInstitutionID() {
16 | return institutionID;
17 | }
18 |
19 | public void setInstitutionID(String institutionID) {
20 | this.institutionID = institutionID;
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/src/controller/ComSearchController.css:
--------------------------------------------------------------------------------
1 | /*.root {*/
2 | /*-fx-background-image: url("background.jpg");!* 设置背景图 *!*/
3 | /*}*/
4 |
5 | /*设置button背景颜色*/
6 | .button:hover {
7 | -fx-background-color: linear-gradient(#4e4e75, #61a2b1);
8 | }
9 | .label {
10 | /* 设置字体 */
11 | -fx-font-size: 28px;
12 | -fx-font-weight: bold;
13 | -fx-text-fill: #333333;
14 | -fx-font-family: FZShuTi;
15 | /* 设置阴影 */
16 | -fx-effect: dropshadow( gaussian , rgba(255,255,255,0.5) , 0,0,0,1 );
17 | }
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/out/production/MedicalInsuranceSystem/controller/ComSearchController.css:
--------------------------------------------------------------------------------
1 | /*.root {*/
2 | /*-fx-background-image: url("background.jpg");!* 设置背景图 *!*/
3 | /*}*/
4 |
5 | /*设置button背景颜色*/
6 | .button:hover {
7 | -fx-background-color: linear-gradient(#4e4e75, #61a2b1);
8 | }
9 | .label {
10 | /* 设置字体 */
11 | -fx-font-size: 28px;
12 | -fx-font-weight: bold;
13 | -fx-text-fill: #333333;
14 | -fx-font-family: FZShuTi;
15 | /* 设置阴影 */
16 | -fx-effect: dropshadow( gaussian , rgba(255,255,255,0.5) , 0,0,0,1 );
17 | }
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # MedicalInsuranceSystem
2 | 课设,医疗保险报销系统JavaFx
3 |
4 | ### LoginUI
5 | 
6 |
7 | ### MenuUI
8 | 
9 |
10 | ### CommonBussinessUI
11 | 
12 |
13 | ### MedicalReimbursementUI
14 | 
15 |
16 | ### IntegratedQueryUI
17 | 
18 |
19 |
20 |
--------------------------------------------------------------------------------
/src/controller/CommonBusinessController.css:
--------------------------------------------------------------------------------
1 | .root {
2 | -fx-background-image: url("background.jpg");/* 设置背景图 */
3 | }
4 |
5 | /*设置button背景颜色*/
6 | .button:hover {
7 | -fx-background-color: linear-gradient(#4e4e75, #61a2b1);
8 | }
9 |
10 | .label {
11 | /*!* 设置字体 *!*/
12 | /*-fx-font-size: 28px;*/
13 | /*-fx-font-weight: bold;*/
14 | /*-fx-text-fill: #333333;*/
15 | /*-fx-font-family: FZShuTi;*/
16 | /* 设置阴影 */
17 | -fx-effect: dropshadow( gaussian , rgba(255,255,255,0.5) , 0,0,0,1 );
18 | }
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 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
--------------------------------------------------------------------------------
/src/controller/InformationMaintenController.css:
--------------------------------------------------------------------------------
1 | .root {
2 | -fx-background-image: url("background.jpg");/* 设置背景图 */
3 | }
4 |
5 | /*设置button背景颜色*/
6 | .button:hover {
7 | -fx-background-color: linear-gradient(#4e4e75, #61a2b1);
8 | }
9 |
10 | .label {
11 | /*!* 设置字体 *!*/
12 | /*-fx-font-size: 28px;*/
13 | /*-fx-font-weight: bold;*/
14 | /*-fx-text-fill: #333333;*/
15 | /*-fx-font-family: FZShuTi;*/
16 | /* 设置阴影 */
17 | -fx-effect: dropshadow( gaussian , rgba(255,255,255,0.5) , 0,0,0,1 );
18 | }
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 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
--------------------------------------------------------------------------------
/out/production/MedicalInsuranceSystem/controller/CommonBusinessController.css:
--------------------------------------------------------------------------------
1 | .root {
2 | -fx-background-image: url("background.jpg");/* 设置背景图 */
3 | }
4 |
5 | /*设置button背景颜色*/
6 | .button:hover {
7 | -fx-background-color: linear-gradient(#4e4e75, #61a2b1);
8 | }
9 |
10 | .label {
11 | /*!* 设置字体 *!*/
12 | /*-fx-font-size: 28px;*/
13 | /*-fx-font-weight: bold;*/
14 | /*-fx-text-fill: #333333;*/
15 | /*-fx-font-family: FZShuTi;*/
16 | /* 设置阴影 */
17 | -fx-effect: dropshadow( gaussian , rgba(255,255,255,0.5) , 0,0,0,1 );
18 | }
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 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
--------------------------------------------------------------------------------
/out/production/MedicalInsuranceSystem/controller/InformationMaintenController.css:
--------------------------------------------------------------------------------
1 | .root {
2 | -fx-background-image: url("background.jpg");/* 设置背景图 */
3 | }
4 |
5 | /*设置button背景颜色*/
6 | .button:hover {
7 | -fx-background-color: linear-gradient(#4e4e75, #61a2b1);
8 | }
9 |
10 | .label {
11 | /*!* 设置字体 *!*/
12 | /*-fx-font-size: 28px;*/
13 | /*-fx-font-weight: bold;*/
14 | /*-fx-text-fill: #333333;*/
15 | /*-fx-font-family: FZShuTi;*/
16 | /* 设置阴影 */
17 | -fx-effect: dropshadow( gaussian , rgba(255,255,255,0.5) , 0,0,0,1 );
18 | }
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 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
--------------------------------------------------------------------------------
/src/controller/PersonController.java:
--------------------------------------------------------------------------------
1 | package controller;
2 |
3 | /**
4 | * Created by LSK.Reno on 2018/7/26 15:03.
5 | */
6 | public class PersonController {
7 | public void addPerson(){
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 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
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 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
--------------------------------------------------------------------------------
/src/controller/Print.java:
--------------------------------------------------------------------------------
1 | package controller;
2 |
3 | import javafx.event.ActionEvent;
4 | import javafx.fxml.FXML;
5 | import javafx.fxml.FXMLLoader;
6 | import javafx.scene.Scene;
7 | import javafx.scene.control.Button;
8 | import javafx.stage.Stage;
9 |
10 | /**
11 | * Created by LSK.Reno on 2018/8/1 17:50.
12 | */
13 | public class Print {
14 |
15 | @FXML
16 | private Button backBUtton;
17 |
18 | @FXML
19 | void back(ActionEvent event) {
20 | Stage primaryStage = Main.getStage();
21 | try {
22 | primaryStage.setTitle("Menu");
23 | Scene scene = new Scene(FXMLLoader.load(getClass().getResource("MenuController.fxml")));
24 | primaryStage.setScene(scene);
25 | scene.getStylesheets().add(this.getClass().getResource("Menu.css").toExternalForm());
26 |
27 | } catch (Exception e) {
28 | e.printStackTrace();
29 | }
30 | }
31 |
32 | }
33 |
--------------------------------------------------------------------------------
/src/controller/login.css:
--------------------------------------------------------------------------------
1 | /*.root {*/
2 | /*-fx-background-image: url("background.jpg");!* 设置背景图 *!*/
3 | /*}*/
4 | .label {
5 | /* 设置字体 */
6 | -fx-font-size: 15px;
7 | -fx-font-weight: bold;
8 | -fx-text-fill: #333333;
9 | /* 设置阴影 */
10 | -fx-effect: dropshadow( gaussian , rgba(255,255,255,0.5) , 0,0,0,1 );
11 | }
12 |
13 | #welcome_text {
14 | -fx-font-size: 32px;
15 | -fx-font-family: "Arial Black";
16 | -fx-fill: #818181;
17 | -fx-effect: innershadow( three-pass-box , rgba(0,0,0,0.7) , 6, 0.0 , 0 , 2 );
18 | }
19 |
20 | #errormessage {
21 | -fx-fill: FIREBRICK;
22 | -fx-font-weight: bold;
23 | -fx-effect: dropshadow( gaussian , rgba(255,255,255,0.5) , 0,0,0,1 );
24 | }
25 |
26 |
27 | .button:hover {
28 | -fx-background-color: linear-gradient(#2A5058, #61a2b1);
29 | }
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
--------------------------------------------------------------------------------
/out/production/MedicalInsuranceSystem/controller/login.css:
--------------------------------------------------------------------------------
1 | /*.root {*/
2 | /*-fx-background-image: url("background.jpg");!* 设置背景图 *!*/
3 | /*}*/
4 | .label {
5 | /* 设置字体 */
6 | -fx-font-size: 15px;
7 | -fx-font-weight: bold;
8 | -fx-text-fill: #333333;
9 | /* 设置阴影 */
10 | -fx-effect: dropshadow( gaussian , rgba(255,255,255,0.5) , 0,0,0,1 );
11 | }
12 |
13 | #welcome_text {
14 | -fx-font-size: 32px;
15 | -fx-font-family: "Arial Black";
16 | -fx-fill: #818181;
17 | -fx-effect: innershadow( three-pass-box , rgba(0,0,0,0.7) , 6, 0.0 , 0 , 2 );
18 | }
19 |
20 | #errormessage {
21 | -fx-fill: FIREBRICK;
22 | -fx-font-weight: bold;
23 | -fx-effect: dropshadow( gaussian , rgba(255,255,255,0.5) , 0,0,0,1 );
24 | }
25 |
26 |
27 | .button:hover {
28 | -fx-background-color: linear-gradient(#2A5058, #61a2b1);
29 | }
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
--------------------------------------------------------------------------------
/src/controller/Main.java:
--------------------------------------------------------------------------------
1 | package controller;
2 |
3 | import javafx.application.Application;
4 | import javafx.fxml.FXMLLoader;
5 | import javafx.scene.Parent;
6 | import javafx.scene.Scene;
7 | import javafx.stage.Stage;
8 | import java.io.IOException;
9 |
10 | /**
11 | * Created by LSK.Reno on 2018/7/26.
12 | */
13 |
14 | public class Main extends Application {
15 |
16 | static private Stage primaryStage;
17 |
18 | /**all the controller can call this method.
19 | * @return get the primaryStage.
20 | */
21 |
22 | //准备开始运行程序的初始化
23 | @Override
24 | public void start(Stage primaryStage) throws IOException {
25 | this.primaryStage = primaryStage;
26 | primaryStage.setTitle("Welcome To Medical System");
27 | Parent root = FXMLLoader.load(getClass().getResource("Login.fxml"));
28 | Scene scene = new Scene(root, 818.4, 399.6);
29 | primaryStage.setScene(scene);
30 | scene.getStylesheets().add(this.getClass().getResource("Login.css").toExternalForm());
31 | primaryStage.show();
32 | }
33 | //得到初始的菜单界面
34 | public static Stage getPrimaryStage() {
35 | return primaryStage;
36 | }
37 | public static Stage getStage() {
38 | return primaryStage;
39 | }
40 |
41 | //运行程序
42 | public static void main(String[] args) {
43 | launch(args);
44 | }
45 |
46 | }
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
--------------------------------------------------------------------------------
/src/Data/Company.java:
--------------------------------------------------------------------------------
1 | package Data;
2 |
3 | /**
4 | * Created by LSK.Reno on 2018/7/26.
5 | */
6 | public class Company {
7 | private String companyID = "";
8 | private String companyName = "";
9 | private String address = "";
10 | private int mailAddress = 0;
11 | private int dialNum = 0;
12 |
13 | /**
14 | * 构造方法
15 | * */
16 | public Company(String companyID, String companyName) {
17 | this.companyID = companyID;
18 | this.companyName = companyName;
19 | }
20 | public Company(){
21 | }
22 | /**
23 | * getter and setter
24 | * */
25 | public String getCompanyID() {
26 | return companyID;
27 | }
28 |
29 | public void setCompanyID(String companyID) {
30 | this.companyID = companyID;
31 | }
32 |
33 | public String getCompanyName() {
34 | return companyName;
35 | }
36 |
37 | public void setCompanyName(String companyName) {
38 | this.companyName = companyName;
39 | }
40 |
41 | public String getAddress() {
42 | return address;
43 | }
44 |
45 | public void setAddress(String address) {
46 | this.address = address;
47 | }
48 |
49 | public int getMailAddress() {
50 | return mailAddress;
51 | }
52 |
53 | public void setMailAddress(int mailAddress) {
54 | this.mailAddress = mailAddress;
55 | }
56 |
57 | public int getDialNum() {
58 | return dialNum;
59 | }
60 |
61 | public void setDialNum(int dialNum) {
62 | this.dialNum = dialNum;
63 | }
64 | }
65 |
--------------------------------------------------------------------------------
/src/controller/ComSearchController.java:
--------------------------------------------------------------------------------
1 | package controller;
2 |
3 | /**
4 | * Created by LSK.Reno on 2018/7/26 15:27.
5 | */
6 |
7 | import javafx.event.ActionEvent;
8 | import javafx.fxml.FXML;
9 | import javafx.fxml.FXMLLoader;
10 | import javafx.scene.Scene;
11 | import javafx.scene.control.Button;
12 | import javafx.scene.control.TextField;
13 | import javafx.stage.Stage;
14 |
15 | public class ComSearchController {
16 | private Stage ComSearchStage;
17 | public Stage setComSearchStage(Stage ComSearchStage) {
18 | this.ComSearchStage = ComSearchStage;
19 | return ComSearchStage;
20 | }
21 |
22 |
23 | @FXML
24 | private void initialize(){
25 | }
26 | @FXML
27 | private Button backButton;
28 |
29 | @FXML
30 | private Button comSearchButton;
31 |
32 | @FXML
33 | private TextField comSearchField;
34 |
35 | /**
36 | * 综合查询,按人员编号查询 和 按人员名称查询
37 | * */
38 | @FXML
39 | void comSearch(ActionEvent event) {
40 |
41 | }
42 |
43 | /**返回到上一界面*/
44 | @FXML
45 | void back(ActionEvent event) {
46 | Stage primaryStage = Main.getStage();
47 | try {
48 | primaryStage.setTitle("Menu");
49 | Scene scene = new Scene(FXMLLoader.load(getClass().getResource("MenuController.fxml")));
50 | primaryStage.setScene(scene);
51 | scene.getStylesheets().add(this.getClass().getResource("Menu.css").toExternalForm());
52 |
53 | } catch (Exception e) {
54 | e.printStackTrace();
55 | }
56 | }
57 |
58 | // public void goToMain(){
59 | // myController.setStage(MainApp.mainViewID);
60 | // }
61 |
62 | }
63 |
--------------------------------------------------------------------------------
/src/controller/ComSearchController.fxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
23 |
28 |
29 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/out/production/MedicalInsuranceSystem/controller/ComSearchController.fxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
23 |
28 |
29 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/src/controller/LoginController.java:
--------------------------------------------------------------------------------
1 | package controller;
2 |
3 |
4 | import javafx.event.ActionEvent;
5 | import javafx.fxml.FXML;
6 | import javafx.fxml.FXMLLoader;
7 | import javafx.scene.Scene;
8 | import javafx.scene.control.Button;
9 | import javafx.scene.control.Label;
10 | import javafx.scene.control.PasswordField;
11 | import javafx.scene.control.TextField;
12 | import javafx.stage.Stage;
13 | import javafx.scene.text.Text;
14 |
15 | /**
16 | * Created by LSK.Reno on 2018/7/25.
17 | */
18 | public class LoginController {
19 |
20 | @FXML
21 | private Label welcome_text;
22 |
23 | @FXML
24 | private TextField accountField;
25 |
26 | @FXML
27 | private PasswordField passwordField;
28 |
29 | @FXML
30 | private Button signInButton;
31 |
32 | @FXML
33 | private Text errormessage;
34 |
35 | @FXML
36 | void signIn(ActionEvent event) {
37 | if (accountField.getText().equals("Admin") && passwordField.getText().equals("123")) {
38 | Stage primaryStage = Main.getStage();
39 | try {
40 | primaryStage.setTitle("Menu");
41 | Scene scene = new Scene(FXMLLoader.load(getClass().getResource("MenuController.fxml")));
42 | primaryStage.setScene(scene);
43 | scene.getStylesheets().add(this.getClass().getResource("Menu.css").toExternalForm());
44 |
45 | } catch (Exception e) {
46 | e.printStackTrace();
47 | }
48 | } else {
49 | errormessage.setText("wrong password or account!");
50 | }
51 | }
52 |
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 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
--------------------------------------------------------------------------------
/src/controller/MenuController.fxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/out/production/MedicalInsuranceSystem/controller/MenuController.fxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/src/controller/Login.fxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
25 |
26 |
31 |
36 |
37 |
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/out/production/MedicalInsuranceSystem/controller/Login.fxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
25 |
26 |
31 |
36 |
37 |
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/src/Data/DesignatedMedicalInstitution.java:
--------------------------------------------------------------------------------
1 | package Data;
2 |
3 | /**
4 | * Created by LSK.Reno on 2018/7/26 13:48.
5 | */
6 | public class DesignatedMedicalInstitution {
7 | private String institutionID = "";
8 | private String institutionName = "";
9 | private String hospitalLevel = "";
10 | private String institutionType = "";
11 | private String LegalRepresentativeName = "";
12 | private String LegalDialNum = "";
13 |
14 |
15 | /**
16 | * 构造方法
17 | * **/
18 | public DesignatedMedicalInstitution() {
19 | }
20 |
21 | public DesignatedMedicalInstitution(String institutionID, String institutionName, String hospitalLevel) {
22 | this.institutionID = institutionID;
23 | this.institutionName = institutionName;
24 | this.hospitalLevel = hospitalLevel;
25 | }
26 |
27 | /**
28 | * getter and setter
29 | * */
30 | public String getInstitutionID() {
31 | return institutionID;
32 | }
33 |
34 | public void setInstitutionID(String institutionID) {
35 | this.institutionID = institutionID;
36 | }
37 |
38 | public String getInstitutionName() {
39 | return institutionName;
40 | }
41 |
42 | public void setInstitutionName(String institutionName) {
43 | this.institutionName = institutionName;
44 | }
45 |
46 | public String getHospitalLevel() {
47 | return hospitalLevel;
48 | }
49 |
50 | public void setHospitalLevel(String hospitalLevel) {
51 | this.hospitalLevel = hospitalLevel;
52 | }
53 |
54 | public String getInstitutionType() {
55 | return institutionType;
56 | }
57 |
58 | public void setInstitutionType(String institutionType) {
59 | this.institutionType = institutionType;
60 | }
61 |
62 | public String getLegalRepresentativeName() {
63 | return LegalRepresentativeName;
64 | }
65 |
66 | public void setLegalRepresentativeName(String legalRepresentativeName) {
67 | LegalRepresentativeName = legalRepresentativeName;
68 | }
69 |
70 | public String getLegalDialNum() {
71 | return LegalDialNum;
72 | }
73 |
74 | public void setLegalDialNum(String legalDialNum) {
75 | LegalDialNum = legalDialNum;
76 | }
77 | }
78 |
--------------------------------------------------------------------------------
/src/Examine/Examine.java:
--------------------------------------------------------------------------------
1 | package Examine;
2 |
3 | import java.util.Date;
4 |
5 | /**
6 | * Created by LSK.Reno on 2018/7/26 13:59.
7 | */
8 | public class Examine {
9 | private String examineID = "";
10 | private String personID = "";
11 | private Date startDate;
12 | private Date endDate;
13 | private String examineOpinion = "";
14 | private Date examineDate;
15 | private String examineMarker = "";
16 |
17 | /**
18 | * 构造方法
19 | * */
20 | public Examine() {
21 | }
22 |
23 | public Examine(String examineID, String personID, String examineOpinion, String examineMarker) {
24 | this.examineID = examineID;
25 | this.personID = personID;
26 | this.examineOpinion = examineOpinion;
27 | this.examineMarker = examineMarker;
28 | }
29 |
30 | /**
31 | * getter and setter
32 | */
33 | public String getExamineID() {
34 | return examineID;
35 | }
36 |
37 | public void setExamineID(String examineID) {
38 | this.examineID = examineID;
39 | }
40 |
41 | public String getPersonID() {
42 | return personID;
43 | }
44 |
45 | public void setPersonID(String personID) {
46 | this.personID = personID;
47 | }
48 |
49 | public Date getStartDate() {
50 | return startDate;
51 | }
52 |
53 | public void setStartDate(Date startDate) {
54 | this.startDate = startDate;
55 | }
56 |
57 | public Date getEndDate() {
58 | return endDate;
59 | }
60 |
61 | public void setEndDate(Date endDate) {
62 | this.endDate = endDate;
63 | }
64 |
65 | public String getExamineOpinion() {
66 | return examineOpinion;
67 | }
68 |
69 | public void setExamineOpinion(String examineOpinion) {
70 | this.examineOpinion = examineOpinion;
71 | }
72 |
73 | public Date getExamineDate() {
74 | return examineDate;
75 | }
76 |
77 | public void setExamineDate(Date examineDate) {
78 | this.examineDate = examineDate;
79 | }
80 |
81 | public String getExamineMarker() {
82 | return examineMarker;
83 | }
84 |
85 | public void setExamineMarker(String examineMarker) {
86 | this.examineMarker = examineMarker;
87 | }
88 | }
89 |
--------------------------------------------------------------------------------
/src/Data/DiseaseInformation.java:
--------------------------------------------------------------------------------
1 | package Data;
2 |
3 | import javafx.beans.property.SimpleStringProperty;
4 | import javafx.beans.property.StringProperty;
5 |
6 | /**
7 | * Created by LSK.Reno on 2018/7/26 13:38.
8 | */
9 | public class DiseaseInformation {
10 | private String diseaseID = "";
11 | private String diseaseType = "";
12 | private String examine = "";
13 |
14 | private final StringProperty diseaseIDp;
15 | private final StringProperty diseaseTypep;
16 |
17 |
18 |
19 | /**
20 | * 构造方法
21 | * */
22 | public DiseaseInformation() {
23 | diseaseIDp = null;
24 | diseaseTypep = null;
25 | }
26 |
27 | public DiseaseInformation(String diseaseIDp, String diseaseTypep) {
28 | this.diseaseIDp = new SimpleStringProperty(diseaseIDp);
29 | this.diseaseTypep = new SimpleStringProperty(diseaseTypep);
30 |
31 | }
32 | public DiseaseInformation(String diseaseID, String diseaseType, String examine) {
33 | this.diseaseID = diseaseID;
34 | this.diseaseType = diseaseType;
35 | this.examine = examine;
36 | diseaseIDp = null;
37 | diseaseTypep = null;
38 | }
39 |
40 | /**
41 | * getter and setter
42 | * */
43 | public String getDiseaseID() {
44 | return diseaseID;
45 | }
46 |
47 | public void setDiseaseID(String diseaseID) {
48 | this.diseaseID = diseaseID;
49 | }
50 |
51 | public String getDiseaseType() {
52 | return diseaseType;
53 | }
54 |
55 | public void setDiseaseType(String diseaseType) {
56 | this.diseaseType = diseaseType;
57 | }
58 |
59 | public String getExamine() {
60 | return examine;
61 | }
62 |
63 | public void setExamine(String examine) {
64 | this.examine = examine;
65 | }
66 |
67 |
68 | public String getDiseaseIDp() {
69 | return diseaseIDp.get();
70 | }
71 |
72 | public StringProperty diseaseIDpProperty() {
73 | return diseaseIDp;
74 | }
75 |
76 | public void setDiseaseIDp(String diseaseIDp) {
77 | this.diseaseIDp.set(diseaseIDp);
78 | }
79 |
80 | public String getDiseaseTypep() {
81 | return diseaseTypep.get();
82 | }
83 |
84 | public StringProperty diseaseTypepProperty() {
85 | return diseaseTypep;
86 | }
87 |
88 | public void setDiseaseTypep(String diseaseTypep) {
89 | this.diseaseTypep.set(diseaseTypep);
90 | }
91 |
92 |
93 | }
94 |
--------------------------------------------------------------------------------
/src/Data/MedicalCalculationParameter.java:
--------------------------------------------------------------------------------
1 | package Data;
2 |
3 | /**
4 | * Created by LSK.Reno on 2018/7/26 13:48.
5 | */
6 | public class MedicalCalculationParameter {
7 | private String MedicalCategory = "";
8 | private double topLine = 0;
9 | private double payStandard = 0;
10 | private double hospitalLevel = 0;
11 | private double topLimit = 0;
12 | private double lowerLimit = 0;
13 | private double PersonalExpenseRatio = 0;
14 |
15 |
16 |
17 | /**
18 | * 构造方法
19 | * **/
20 | public MedicalCalculationParameter() {
21 | }
22 | public MedicalCalculationParameter(String medicalCategory, double topLine, double payStandard, double hospitalLevel, double topLimit, double lowerLimit, double personalExpenseRatio) {
23 | MedicalCategory = medicalCategory;
24 | this.topLine = topLine;
25 | this.payStandard = payStandard;
26 | this.hospitalLevel = hospitalLevel;
27 | this.topLimit = topLimit;
28 | this.lowerLimit = lowerLimit;
29 | PersonalExpenseRatio = personalExpenseRatio;
30 | }
31 |
32 | /**
33 | * getter and setter
34 | * */
35 | public String getMedicalCategory() {
36 | return MedicalCategory;
37 | }
38 |
39 | public void setMedicalCategory(String medicalCategory) {
40 | MedicalCategory = medicalCategory;
41 | }
42 |
43 | public double getTopLine() {
44 | return topLine;
45 | }
46 |
47 | public void setTopLine(double topLine) {
48 | this.topLine = topLine;
49 | }
50 |
51 | public double getPayStandard() {
52 | return payStandard;
53 | }
54 |
55 | public void setPayStandard(double payStandard) {
56 | this.payStandard = payStandard;
57 | }
58 |
59 | public double getHospitalLevel() {
60 | return hospitalLevel;
61 | }
62 |
63 | public void setHospitalLevel(double hospitalLevel) {
64 | this.hospitalLevel = hospitalLevel;
65 | }
66 |
67 | public double getTopLimit() {
68 | return topLimit;
69 | }
70 |
71 | public void setTopLimit(double topLimit) {
72 | this.topLimit = topLimit;
73 | }
74 |
75 | public double getLowerLimit() {
76 | return lowerLimit;
77 | }
78 |
79 | public void setLowerLimit(double lowerLimit) {
80 | this.lowerLimit = lowerLimit;
81 | }
82 |
83 | public double getPersonalExpenseRatio() {
84 | return PersonalExpenseRatio;
85 | }
86 |
87 | public void setPersonalExpenseRatio(double personalExpenseRatio) {
88 | PersonalExpenseRatio = personalExpenseRatio;
89 | }
90 | }
91 |
--------------------------------------------------------------------------------
/src/Data/ServiceFacility.java:
--------------------------------------------------------------------------------
1 | package Data;
2 |
3 | import javafx.beans.property.SimpleStringProperty;
4 | import javafx.beans.property.StringProperty;
5 |
6 | /**
7 | * Created by LSK.Reno on 2018/7/26 13:38.
8 | */
9 | public class ServiceFacility {
10 | private Double facilityID = 0.1;
11 | private String facilityName = "";
12 |
13 |
14 | private final StringProperty facilityIDp;
15 | private final StringProperty facilityNamep;
16 |
17 |
18 |
19 | /**
20 |
21 | * 构造方法
22 | * */
23 | public ServiceFacility() {
24 | facilityIDp = null;
25 | facilityNamep = null;
26 | }
27 | public ServiceFacility(String facilityIDp, String facilityNamep) {
28 | this.facilityIDp = new SimpleStringProperty(facilityIDp);
29 | this.facilityNamep = new SimpleStringProperty(facilityNamep);
30 | }
31 | public ServiceFacility(Double facilityID, String facilityName) {
32 | this.facilityID = facilityID;
33 | this.facilityName = facilityName;
34 | facilityIDp = null;
35 | facilityNamep = null;
36 | }
37 |
38 |
39 |
40 |
41 | /**
42 | * getter and setter
43 | * */
44 |
45 | public Double getFacilityID() {
46 | return facilityID;
47 | }
48 |
49 | public void setFacilityID(Double facilityID) {
50 | this.facilityID = facilityID;
51 | }
52 | public String getFacilityName() {
53 | return facilityName;
54 | }
55 |
56 | public void setFacilityName(String facilityName) {
57 | this.facilityName = facilityName;
58 | }
59 |
60 |
61 |
62 | public String getFacilityIDp() {
63 | return facilityIDp.get();
64 | }
65 |
66 | public StringProperty facilityIDpProperty() {
67 | return facilityIDp;
68 | }
69 |
70 | public void setFacilityIDp(String facilityIDp) {
71 | this.facilityIDp.set(facilityIDp);
72 | }
73 |
74 | public String getFacilityNamep() {
75 | return facilityNamep.get();
76 | }
77 |
78 | public StringProperty facilityNamepProperty() {
79 | return facilityNamep;
80 | }
81 |
82 | public void setFacilityNamep(String facilityNamep) {
83 | this.facilityNamep.set(facilityNamep);
84 | }
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 | }
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
131 |
132 |
133 |
--------------------------------------------------------------------------------
/src/Data/ClinicProject.java:
--------------------------------------------------------------------------------
1 | package Data;
2 |
3 | import javafx.beans.property.SimpleStringProperty;
4 | import javafx.beans.property.StringProperty;
5 |
6 | /**
7 | * Created by LSK.Reno on 2018/7/26 13:37.
8 | */
9 | public class ClinicProject {
10 | private String projectID = "";
11 | private String projectName = "";
12 | private String projectLevel = "";
13 | private String hospitalLevel = "";
14 | private String examine = "";
15 | private String manufacturer = "";
16 |
17 | private final StringProperty projectIDp;
18 | private final StringProperty projectNamep;
19 | /**
20 | * 构造方法
21 | * */
22 | public ClinicProject() {
23 | projectIDp = null;
24 | projectNamep = null;
25 | }
26 | public ClinicProject(String projectIDp, String projectNamep) {
27 | this.projectIDp = new SimpleStringProperty(projectIDp);
28 | this.projectNamep = new SimpleStringProperty(projectNamep);
29 | }
30 |
31 | public ClinicProject(String projectID, String projectName, String projectLevel, String hospitalLevel) {
32 | this.projectID = projectID;
33 | this.projectName = projectName;
34 | this.projectLevel = projectLevel;
35 | this.hospitalLevel = hospitalLevel;
36 | projectIDp = null;
37 | projectNamep = null;
38 |
39 | }
40 |
41 | /**
42 | * getter and setter
43 | * */
44 | public String getProjectID() {
45 | return projectID;
46 | }
47 |
48 | public void setProjectID(String projectID) {
49 | this.projectID = projectID;
50 | }
51 |
52 | public String getProjectName() {
53 | return projectName;
54 | }
55 |
56 | public void setProjectName(String projectName) {
57 | this.projectName = projectName;
58 | }
59 |
60 | public String getProjectLevel() {
61 | return projectLevel;
62 | }
63 |
64 | public void setProjectLevel(String projectLevel) {
65 | this.projectLevel = projectLevel;
66 | }
67 |
68 | public String getHospitalLevel() {
69 | return hospitalLevel;
70 | }
71 |
72 | public void setHospitalLevel(String hospitalLevel) {
73 | this.hospitalLevel = hospitalLevel;
74 | }
75 |
76 | public String getExamine() {
77 | return examine;
78 | }
79 |
80 | public void setExamine(String examine) {
81 | this.examine = examine;
82 | }
83 |
84 | public String getManufacturer() {
85 | return manufacturer;
86 | }
87 |
88 | public void setManufacturer(String manufacturer) {
89 | this.manufacturer = manufacturer;
90 | }
91 |
92 |
93 | public String getProjectIDp() {
94 | return projectIDp.get();
95 | }
96 |
97 | public StringProperty projectIDpProperty() {
98 | return projectIDp;
99 | }
100 |
101 | public void setProjectIDp(String projectIDp) {
102 | this.projectIDp.set(projectIDp);
103 | }
104 |
105 | public String getProjectNamep() {
106 | return projectNamep.get();
107 | }
108 |
109 | public StringProperty projectNamepProperty() {
110 | return projectNamep;
111 | }
112 |
113 | public void setProjectNamep(String projectNamep) {
114 | this.projectNamep.set(projectNamep);
115 | }
116 |
117 | }
118 |
--------------------------------------------------------------------------------
/src/Reimbursement/Reimbursement.java:
--------------------------------------------------------------------------------
1 | package Reimbursement;
2 |
3 | /**
4 | * Created by LSK.Reno on 2018/7/26 14:07.
5 | */
6 | public class Reimbursement {
7 | private String personID = "";
8 | private String personName = "";
9 | private String MedicalCategory = "";
10 | private String institutionID = "";
11 | private String drugFee = "";
12 | private double projectFee = 0;
13 | private double institutionFee = 0;
14 | private double ReimbursementFee = 0;
15 | private double personFee = 0;
16 | /**
17 | *constructor
18 | */
19 | public Reimbursement() {
20 | }
21 |
22 | public Reimbursement(String personID, String personName, String medicalCategory, String institutionID, String drugFee, double projectFee, double institutionFee, double reimbursementFee, double personFee) {
23 | this.personID = personID;
24 | this.personName = personName;
25 | this.MedicalCategory = medicalCategory;
26 | this.institutionID = institutionID;
27 | this.drugFee = drugFee;
28 | this.projectFee = projectFee;
29 | this.institutionFee = institutionFee;
30 | this.ReimbursementFee = reimbursementFee;
31 | this.personFee = personFee;
32 | }
33 | /**
34 | * 计算药品金额
35 | * */
36 | public void calculateDrug(){
37 |
38 | }
39 | /**计算诊疗项目*/
40 | public void calculateProject(){
41 |
42 | }
43 |
44 | /**计算服务设施*/
45 | public void calculateInstitution(){
46 |
47 | }
48 |
49 | /**合算*/
50 | public void calculateAll(){
51 |
52 | }
53 |
54 |
55 | /**
56 | * getter and setter
57 | * */
58 | public String getPersonID() {
59 | return personID;
60 | }
61 |
62 | public void setPersonID(String personID) {
63 | this.personID = personID;
64 | }
65 |
66 | public String getPersonName() {
67 | return personName;
68 | }
69 |
70 | public void setPersonName(String personName) {
71 | this.personName = personName;
72 | }
73 |
74 | public String getMedicalCategory() {
75 | return MedicalCategory;
76 | }
77 |
78 | public void setMedicalCategory(String medicalCategory) {
79 | MedicalCategory = medicalCategory;
80 | }
81 |
82 | public String getInstitutionID() {
83 | return institutionID;
84 | }
85 |
86 | public void setInstitutionID(String institutionID) {
87 | this.institutionID = institutionID;
88 | }
89 |
90 | public String getDrugFee() {
91 | return drugFee;
92 | }
93 |
94 | public void setDrugFee(String drugFee) {
95 | this.drugFee = drugFee;
96 | }
97 |
98 | public double getProjectFee() {
99 | return projectFee;
100 | }
101 |
102 | public void setProjectFee(double projectFee) {
103 | this.projectFee = projectFee;
104 | }
105 |
106 | public double getInstitutionFee() {
107 | return institutionFee;
108 | }
109 |
110 | public void setInstitutionFee(double institutionFee) {
111 | this.institutionFee = institutionFee;
112 | }
113 |
114 | public double getReimbursementFee() {
115 | return ReimbursementFee;
116 | }
117 |
118 | public void setReimbursementFee(double reimbursementFee) {
119 | ReimbursementFee = reimbursementFee;
120 | }
121 |
122 | public double getPersonFee() {
123 | return personFee;
124 | }
125 |
126 | public void setPersonFee(double personFee) {
127 | this.personFee = personFee;
128 | }
129 |
130 |
131 | }
132 |
--------------------------------------------------------------------------------
/src/controller/MenuController.java:
--------------------------------------------------------------------------------
1 | package controller;
2 |
3 | import javafx.event.ActionEvent;
4 | import javafx.fxml.FXML;
5 | import javafx.fxml.FXMLLoader;
6 | import javafx.scene.Scene;
7 | import javafx.scene.control.Button;
8 | import javafx.stage.Stage;
9 |
10 | /**
11 | * Created by LSK.Reno on 2018/7/26.
12 | */
13 |
14 | public class MenuController {
15 | @FXML
16 | private Button CommonBusinessButton;
17 |
18 | @FXML
19 | private Button InformationMaintenButton;
20 |
21 | @FXML
22 | private Button ReimbursementButton;
23 |
24 | @FXML
25 | private Button ComSearchButton;
26 |
27 | @FXML
28 | private Button ExitButton;
29 |
30 | @FXML
31 | void ComSearch(ActionEvent event) {
32 | ComSearchController comSearchController = new ComSearchController();
33 | Stage ComSearchStage = comSearchController.setComSearchStage(Main.getStage());
34 | ComSearchStage.setTitle("综合查询——国家医疗保险报销中心");
35 | try {
36 | Scene scene = new Scene(FXMLLoader.load(getClass().getResource("ComSearchController.fxml")));
37 | ComSearchStage.setScene(scene);
38 | scene.getStylesheets().add(this.getClass().getResource("ComSearchController.css").toExternalForm());
39 | } catch (Exception e) {
40 | e.printStackTrace();
41 | }
42 |
43 | }
44 |
45 | @FXML
46 | void CommonBusiness(ActionEvent event) {
47 | CommonBusinessController commonBusinessController = new CommonBusinessController();
48 | Stage commonBusinessStage = commonBusinessController .setCommonBusinessStage(Main.getStage());
49 | commonBusinessStage.setTitle("公共业务——国家医疗保险报销中心");
50 | try {
51 | Scene scene = new Scene(FXMLLoader.load(getClass().getResource("CommonBusinessController.fxml")));
52 | commonBusinessStage.setScene(scene);
53 | scene.getStylesheets().add(this.getClass().getResource("CommonBusinessController.css").toExternalForm());
54 | } catch (Exception e) {
55 | e.printStackTrace();
56 | }
57 | }
58 |
59 | @FXML
60 | void InformationMainten(ActionEvent event) {
61 | InformationMaintenController informationMaintenController = new InformationMaintenController();
62 | Stage informationMaintenStage = informationMaintenController.setInformationMaintenStage(Main.getStage());
63 | informationMaintenStage.setTitle("医疗基本信息维护——国家医疗保险报销中心");
64 | try {
65 | Scene scene = new Scene(FXMLLoader.load(getClass().getResource("InformationMaintenController.fxml")));
66 | informationMaintenStage.setScene(scene);
67 | scene.getStylesheets().add(this.getClass().getResource("InformationMaintenController.css").toExternalForm());
68 |
69 | } catch (Exception e) {
70 | e.printStackTrace();
71 | }
72 | }
73 |
74 | @FXML
75 | void Reimbursement(ActionEvent event) {
76 | ReimbursementController reimbursementController = new ReimbursementController();
77 | Stage reimbursementStage = reimbursementController.setReimbursementStage(Main.getStage());
78 | reimbursementStage.setTitle("医保中心报销——国家医疗保险报销中心");
79 | try {
80 | Scene scene = new Scene(FXMLLoader.load(getClass().getResource("ReimbursementController.fxml")));
81 | reimbursementStage.setScene(scene);
82 | scene.getStylesheets().add(this.getClass().getResource("ReimbursementController.css").toExternalForm());
83 | } catch (Exception e) {
84 | e.printStackTrace();
85 | }
86 | }
87 |
88 | @FXML
89 | void Exit(ActionEvent event) {
90 | System.exit(1);
91 | }
92 |
93 |
94 | }
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
--------------------------------------------------------------------------------
/src/Data/Drug.java:
--------------------------------------------------------------------------------
1 | package Data;
2 |
3 | import javafx.beans.property.SimpleStringProperty;
4 | import javafx.beans.property.StringProperty;
5 |
6 | /**
7 | * Created by LSK.Reno on 2018/7/26.
8 | */
9 | public class Drug {
10 | private String drugID = "";
11 | private String drugName = "";
12 | private String drugLevel = "";
13 | private String highestPrice = "";
14 | private String examine = "";
15 | private String hospitalLevel = "";
16 | private String usage = "";
17 | private String useDay = "";
18 | private String factory = "";
19 | private String directoryID = "";
20 |
21 | private final StringProperty drugIDp;
22 | private final StringProperty drugNamep;
23 |
24 | public Drug(String drugIDp, String drugNamep) {
25 | this.drugIDp = new SimpleStringProperty(drugIDp);
26 | this.drugNamep = new SimpleStringProperty(drugNamep);
27 | }
28 |
29 |
30 | /**
31 | * 构造方法
32 | * */
33 | public Drug() {
34 | drugIDp = null;
35 | drugNamep = null;
36 | }
37 |
38 | public Drug(String drugID, String drugName, String drugLevel, String hospitalLevel) {
39 | this.drugID = drugID;
40 | this.drugName = drugName;
41 | this.drugLevel = drugLevel;
42 | this.hospitalLevel = hospitalLevel;
43 | drugIDp = null;
44 | drugNamep = null;
45 |
46 | }
47 |
48 | /**
49 | * getter and setter
50 | * */
51 | public String getDrugID() {
52 | return drugID;
53 | }
54 |
55 | public void setDrugID(String drugID) {
56 | this.drugID = drugID;
57 | }
58 |
59 | public String getDrugName() {
60 | return drugName;
61 | }
62 |
63 | public void setDrugName(String drugName) {
64 | this.drugName = drugName;
65 | }
66 |
67 | public String getDrugLevel() {
68 | return drugLevel;
69 | }
70 |
71 | public void setDrugLevel(String drugLevel) {
72 | this.drugLevel = drugLevel;
73 | }
74 |
75 | public String getHighestPrice() {
76 | return highestPrice;
77 | }
78 |
79 | public void setHighestPrice(String highestPrice) {
80 | this.highestPrice = highestPrice;
81 | }
82 |
83 | public String getExamine() {
84 | return examine;
85 | }
86 |
87 | public void setExamine(String examine) {
88 | this.examine = examine;
89 | }
90 |
91 | public String getHospitalLevel() {
92 | return hospitalLevel;
93 | }
94 |
95 | public void setHospitalLevel(String hospitalLevel) {
96 | this.hospitalLevel = hospitalLevel;
97 | }
98 |
99 | public String getUsage() {
100 | return usage;
101 | }
102 |
103 | public void setUsage(String usage) {
104 | this.usage = usage;
105 | }
106 |
107 | public String getUseDay() {
108 | return useDay;
109 | }
110 |
111 | public void setUseDay(String useDay) {
112 | this.useDay = useDay;
113 | }
114 |
115 | public String getFactory() {
116 | return factory;
117 | }
118 |
119 | public void setFactory(String factory) {
120 | this.factory = factory;
121 | }
122 |
123 | public String getDirectoryID() {
124 | return directoryID;
125 | }
126 |
127 | public void setDirectoryID(String directoryID) {
128 | this.directoryID = directoryID;
129 | }
130 |
131 |
132 |
133 | public String getDrugIDp() {
134 | return drugIDp.get();
135 | }
136 |
137 | public StringProperty drugIDpProperty() {
138 | return drugIDp;
139 | }
140 |
141 | public void setDrugIDp(String drugIDp) {
142 | this.drugIDp.set(drugIDp);
143 | }
144 |
145 | public String getDrugNamep() {
146 | return drugNamep.get();
147 | }
148 |
149 | public StringProperty drugNamepProperty() {
150 | return drugNamep;
151 | }
152 |
153 | public void setDrugNamep(String drugNamep) {
154 | this.drugNamep.set(drugNamep);
155 | }
156 |
157 | }
158 |
159 |
160 |
161 |
162 |
163 |
164 |
165 |
166 |
167 |
168 |
169 |
170 |
171 |
172 |
173 |
174 |
175 |
176 |
177 |
178 |
179 |
180 |
181 |
182 |
183 |
184 |
185 |
186 |
187 |
--------------------------------------------------------------------------------
/.idea/misc.xml:
--------------------------------------------------------------------------------
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 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
--------------------------------------------------------------------------------
/src/Data/PrescriptionInformation.java:
--------------------------------------------------------------------------------
1 | package Data;
2 |
3 | import javafx.beans.property.SimpleStringProperty;
4 | import javafx.beans.property.StringProperty;
5 |
6 | /**
7 | * Created by LSK.Reno on 2018/7/31 9:03.
8 | */
9 |
10 | //处方
11 | public class PrescriptionInformation {
12 | private String personID = "";
13 | private String admissionID = ""; //门诊号
14 | private String projectCategory = "";
15 | private String projectName = "";
16 | private String expense = "";
17 | private String coushu = "";
18 |
19 | private final StringProperty personIDp;
20 | private final StringProperty admissionIDp;
21 | private final StringProperty projectCategoryp;
22 | private final StringProperty projectNamep;
23 | private final StringProperty expensep;
24 |
25 |
26 | public PrescriptionInformation(String personIDp, String admissionIDp, String projectCategoryp,
27 | String projectNamep, String expensep) {
28 | this.personIDp = new SimpleStringProperty(personIDp);
29 | this.admissionIDp = new SimpleStringProperty(admissionIDp);
30 | this.projectCategoryp = new SimpleStringProperty(projectCategoryp);
31 | this.projectNamep = new SimpleStringProperty(projectNamep);
32 | this.expensep = new SimpleStringProperty(expensep);
33 | }
34 |
35 | public PrescriptionInformation(String personID, String admissionID, String projectCategory,
36 | String projectName, String expense, String coushu) {
37 | this.personID = personID;
38 | this.admissionID = admissionID;
39 | this.projectCategory = projectCategory;
40 | this.projectName = projectName;
41 | this.expense = expense;
42 | this.coushu = coushu;
43 | personIDp = null;
44 | admissionIDp = null;
45 | projectCategoryp = null;
46 | projectNamep = null;
47 | expensep = null;
48 | }
49 |
50 | public String getPersonID() {
51 | return personID;
52 | }
53 |
54 | public void setPersonID(String personID) {
55 | this.personID = personID;
56 | }
57 |
58 | public String getAdmissionID() {
59 | return admissionID;
60 | }
61 |
62 | public void setAdmissionID(String admissionID) {
63 | this.admissionID = admissionID;
64 | }
65 |
66 | public String getProjectCategory() {
67 | return projectCategory;
68 | }
69 |
70 | public void setProjectCategory(String projectCategory) {
71 | this.projectCategory = projectCategory;
72 | }
73 |
74 | public String getProjectName() {
75 | return projectName;
76 | }
77 |
78 | public void setProjectName(String projectName) {
79 | this.projectName = projectName;
80 | }
81 |
82 | public String getExpense() {
83 | return expense;
84 | }
85 |
86 | public void setExpense(String expense) {
87 | this.expense = expense;
88 | }
89 |
90 | public String getPersonIDp() {
91 | return personIDp.get();
92 | }
93 |
94 | public StringProperty personIDpProperty() {
95 | return personIDp;
96 | }
97 |
98 | public void setPersonIDp(String personIDp) {
99 | this.personIDp.set(personIDp);
100 | }
101 |
102 | public String getAdmissionIDp() {
103 | return admissionIDp.get();
104 | }
105 |
106 | public StringProperty admissionIDpProperty() {
107 | return admissionIDp;
108 | }
109 |
110 | public void setAdmissionIDp(String admissionIDp) {
111 | this.admissionIDp.set(admissionIDp);
112 | }
113 |
114 | public String getProjectCategoryp() {
115 | return projectCategoryp.get();
116 | }
117 |
118 | public StringProperty projectCategorypProperty() {
119 | return projectCategoryp;
120 | }
121 |
122 | public void setProjectCategoryp(String projectCategoryp) {
123 | this.projectCategoryp.set(projectCategoryp);
124 | }
125 |
126 | public String getProjectNamep() {
127 | return projectNamep.get();
128 | }
129 |
130 | public StringProperty projectNamepProperty() {
131 | return projectNamep;
132 | }
133 |
134 | public void setProjectNamep(String projectNamep) {
135 | this.projectNamep.set(projectNamep);
136 | }
137 |
138 | public String getExpensep() {
139 | return expensep.get();
140 | }
141 |
142 | public StringProperty expensepProperty() {
143 | return expensep;
144 | }
145 |
146 | public void setExpensep(String expensep) {
147 | this.expensep.set(expensep);
148 | }
149 | }
150 |
151 |
152 |
153 |
154 |
155 |
156 |
--------------------------------------------------------------------------------
/src/controller/ReimbursementSuccess.fxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
45 |
50 |
55 |
60 |
65 |
70 |
75 |
80 |
85 |
90 |
91 |
92 |
93 |
94 |
95 |
--------------------------------------------------------------------------------
/out/production/MedicalInsuranceSystem/controller/ReimbursementSuccess.fxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
45 |
50 |
55 |
60 |
65 |
70 |
75 |
80 |
85 |
90 |
91 |
92 |
93 |
94 |
95 |
--------------------------------------------------------------------------------
/src/controller/ReimbursementSuccess.java:
--------------------------------------------------------------------------------
1 | package controller;
2 |
3 | import Data.DiseaseInformation;
4 | import javafx.event.ActionEvent;
5 | import javafx.fxml.FXML;
6 | import javafx.fxml.FXMLLoader;
7 | import javafx.scene.Scene;
8 | import javafx.scene.control.Button;
9 | import javafx.scene.control.Label;
10 | import javafx.stage.Stage;
11 |
12 | import java.io.*;
13 |
14 | /**
15 | * Created by LSK.Reno on 2018/7/31 23:11.
16 | */
17 | public class ReimbursementSuccess {
18 | private Stage ReimbursementSuccessStage;
19 | public Stage setReimbursementSuccessStage(Stage ReimbursementSuccessStage) {
20 | this.ReimbursementSuccessStage = ReimbursementSuccessStage;
21 | return ReimbursementSuccessStage;
22 | }
23 |
24 | @FXML
25 | private Button backButton;
26 |
27 | @FXML
28 | private Label thisExpense;
29 |
30 | @FXML
31 | private Label annualLeftMoney;
32 |
33 | @FXML
34 | private Label annualReimMoney;
35 |
36 | @FXML
37 | private Label thisReimExpense;
38 |
39 | @FXML
40 | private Label thisPersonalExpense;
41 |
42 | @FXML
43 | private Button printButton;
44 |
45 | @FXML
46 | public void initialize(){
47 | String reimExpense = "";
48 | String personalExpense = "";
49 | String personID = "";
50 | try{
51 | String filename = "D:\\MedicalInsuranceSystem\\src\\lastReimbursement.txt";
52 | File file = new File(filename);
53 | BufferedReader reader = new BufferedReader(new FileReader(file));
54 | String temp;
55 | int i = 1;
56 | while((temp = reader.readLine()) != null) {
57 | if(i >= 2 ){
58 | reimExpense = temp.split(",")[0];
59 | personalExpense = temp.split(",")[1];
60 | // personID = temp.split(",")[2];
61 | }
62 | i++;
63 | }
64 | } catch (FileNotFoundException e) {
65 | System.out.println("FileNotFoundException");
66 | } catch (IOException e) {
67 | System.out.println("IOException");
68 | }
69 | //找到此人的各个年度报销数据
70 | String annualPersonalExpense = "";
71 | String annualreimExpense = "";
72 | String annualExpense = "";
73 | String topLine = "";
74 | try{
75 | String filename = "D:\\MedicalInsuranceSystem\\src\\AnnualReimbursement.txt";
76 | File file = new File(filename);
77 | BufferedReader reader = new BufferedReader(new FileReader(file));
78 | String temp;
79 | int i = 1;
80 | while((temp = reader.readLine()) != null) {
81 | if(i >= 2 ){
82 | annualPersonalExpense= temp.split(",")[3];
83 | annualreimExpense = temp.split(",")[4];
84 | annualExpense = temp.split(",")[5];
85 | topLine = temp.split(",")[6];
86 | }
87 | i++;
88 | }
89 | } catch (FileNotFoundException e) {
90 | System.out.println("FileNotFoundException");
91 | } catch (IOException e) {
92 | System.out.println("IOException");
93 | }
94 |
95 | double thisexpense = Double.parseDouble(reimExpense) + Double.parseDouble(personalExpense);
96 | double annualreimmoney = Double.parseDouble(reimExpense) + Double.parseDouble(annualreimExpense);
97 | double annualleftmoney = Double.parseDouble(topLine) - annualreimmoney;
98 | thisExpense.setText(thisexpense+"");
99 | thisReimExpense.setText(reimExpense);
100 | thisPersonalExpense.setText(personalExpense);
101 | annualReimMoney.setText(annualreimmoney+"");
102 | annualLeftMoney.setText(annualleftmoney+"");
103 |
104 |
105 | }
106 | @FXML
107 | void back(ActionEvent event) {
108 | Stage primaryStage = Main.getStage();
109 | try {
110 | primaryStage.setTitle("报销——国家医疗保险报销中心");
111 | Scene scene = new Scene(FXMLLoader.load(getClass().getResource("StartReimbursement.fxml")));
112 | primaryStage.setScene(scene);
113 | scene.getStylesheets().add(this.getClass().getResource("StartReimbursement.css").toExternalForm());
114 | } catch (Exception e) {
115 | e.printStackTrace();
116 | }
117 | }
118 |
119 | @FXML
120 | void print(ActionEvent event) {
121 | Stage primaryStage = Main.getStage();
122 | try {
123 | primaryStage.setTitle("报销表单——国家医疗保险报销中心");
124 | Scene scene = new Scene(FXMLLoader.load(getClass().getResource("Print.fxml")));
125 | primaryStage.setScene(scene);
126 | scene.getStylesheets().add(this.getClass().getResource("Print.css").toExternalForm());
127 | } catch (Exception e) {
128 | e.printStackTrace();
129 | }
130 | }
131 |
132 | }
133 |
--------------------------------------------------------------------------------
/src/controller/Print.fxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
20 |
21 |
22 |
23 |
24 |
29 |
34 |
39 |
44 |
49 |
54 |
59 |
64 |
69 |
74 |
79 |
84 |
89 |
94 |
99 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
--------------------------------------------------------------------------------
/out/production/MedicalInsuranceSystem/controller/Print.fxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
20 |
21 |
22 |
23 |
24 |
29 |
34 |
39 |
44 |
49 |
54 |
59 |
64 |
69 |
74 |
79 |
84 |
89 |
94 |
99 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
--------------------------------------------------------------------------------
/src/Data/AnnualReimbursement.java:
--------------------------------------------------------------------------------
1 | package Data;
2 |
3 | import javafx.beans.property.SimpleStringProperty;
4 | import javafx.beans.property.StringProperty;
5 |
6 | /**
7 | * Created by LSK.Reno on 2018/7/31 13:54.
8 | */
9 | public class AnnualReimbursement {
10 | private String personID = "";
11 | private String personName = "";
12 | private String institutionID = "";
13 | private String personalExpense = "";
14 | private String reimbursementExpense = "";
15 | private String expense = "";
16 | private String topLine = "";
17 | private String examine = "";
18 |
19 | private final StringProperty personIDp;
20 | private final StringProperty personNamep;
21 | private final StringProperty institutionIDp;
22 | private final StringProperty personalExpensep;
23 | private final StringProperty reimbursementExpensep;
24 | private final StringProperty expensep;
25 | private final StringProperty topLinep;
26 | //Constructor
27 | public AnnualReimbursement(String personIDp, String personNamep,
28 | String institutionIDp, String personalExpensep,
29 | String reimbursementExpensep,String expensep,String topLinep) {
30 | this.personIDp = new SimpleStringProperty(personIDp);
31 | this.personNamep = new SimpleStringProperty(personNamep);
32 | this.institutionIDp = new SimpleStringProperty(institutionIDp);
33 | this.personalExpensep = new SimpleStringProperty(personalExpensep);
34 | this.reimbursementExpensep = new SimpleStringProperty(reimbursementExpensep);
35 | this.expensep = new SimpleStringProperty(expensep);
36 | this.topLinep = new SimpleStringProperty(topLinep);
37 | }
38 |
39 |
40 |
41 | public AnnualReimbursement(String personID, String personName,
42 | String institutionID, String personalExpense,
43 | String reimbursementExpense, String expense, String topLine, String examine) {
44 | this.personID = personID;
45 | this.personName = personName;
46 | this.institutionID = institutionID;
47 | this.personalExpense = personalExpense;
48 | this.reimbursementExpense = reimbursementExpense;
49 | this.expense = expense;
50 | this.topLine = topLine;
51 |
52 | this.examine = examine;
53 | personIDp = null;
54 | personNamep = null;
55 | institutionIDp= null;
56 | personalExpensep= null;
57 | reimbursementExpensep= null;
58 | expensep= null;
59 | topLinep = null;
60 | }
61 |
62 | //getter and setter
63 |
64 | public String getPersonID() {
65 | return personID;
66 | }
67 |
68 | public void setPersonID(String personID) {
69 | this.personID = personID;
70 | }
71 |
72 | public String getPersonName() {
73 | return personName;
74 | }
75 |
76 | public void setPersonName(String personName) {
77 | this.personName = personName;
78 | }
79 |
80 | public String getInstitutionID() {
81 | return institutionID;
82 | }
83 |
84 | public void setInstitutionID(String institutionID) {
85 | this.institutionID = institutionID;
86 | }
87 |
88 | public String getPersonalExpense() {
89 | return personalExpense;
90 | }
91 |
92 | public void setPersonalExpense(String personalExpense) {
93 | this.personalExpense = personalExpense;
94 | }
95 |
96 | public String getReimbursementExpense() {
97 | return reimbursementExpense;
98 | }
99 |
100 | public void setReimbursementExpense(String reimbursementExpense) {
101 | this.reimbursementExpense = reimbursementExpense;
102 | }
103 |
104 | public String getExpense() {
105 | return expense;
106 | }
107 |
108 | public void setExpense(String expense) {
109 | this.expense = expense;
110 | }
111 |
112 | public String getExamine() {
113 | return examine;
114 | }
115 |
116 | public void setExamine(String examine) {
117 | this.examine = examine;
118 | }
119 |
120 | public String getPersonIDp() {
121 | return personIDp.get();
122 | }
123 |
124 | public StringProperty personIDpProperty() {
125 | return personIDp;
126 | }
127 |
128 | public void setPersonIDp(String personIDp) {
129 | this.personIDp.set(personIDp);
130 | }
131 |
132 | public String getPersonNamep() {
133 | return personNamep.get();
134 | }
135 |
136 | public StringProperty personNamepProperty() {
137 | return personNamep;
138 | }
139 |
140 | public void setPersonNamep(String personNamep) {
141 | this.personNamep.set(personNamep);
142 | }
143 |
144 | public String getInstitutionIDp() {
145 | return institutionIDp.get();
146 | }
147 |
148 | public StringProperty institutionIDpProperty() {
149 | return institutionIDp;
150 | }
151 |
152 | public void setInstitutionIDp(String institutionIDp) {
153 | this.institutionIDp.set(institutionIDp);
154 | }
155 |
156 | public String getPersonalExpensep() {
157 | return personalExpensep.get();
158 | }
159 |
160 | public StringProperty personalExpensepProperty() {
161 | return personalExpensep;
162 | }
163 |
164 | public void setPersonalExpensep(String personalExpensep) {
165 | this.personalExpensep.set(personalExpensep);
166 | }
167 |
168 | public String getReimbursementExpensep() {
169 | return reimbursementExpensep.get();
170 | }
171 |
172 | public StringProperty reimbursementExpensepProperty() {
173 | return reimbursementExpensep;
174 | }
175 |
176 | public void setReimbursementExpensep(String reimbursementExpensep) {
177 | this.reimbursementExpensep.set(reimbursementExpensep);
178 | }
179 |
180 | public String getExpensep() {
181 | return expensep.get();
182 | }
183 |
184 | public StringProperty expensepProperty() {
185 | return expensep;
186 | }
187 |
188 | public void setExpensep(String expensep) {
189 | this.expensep.set(expensep);
190 | }
191 |
192 | public String getTopLine() {
193 | return topLine;
194 | }
195 |
196 | public void setTopLine(String topLine) {
197 | this.topLine = topLine;
198 | }
199 |
200 | public String getTopLinep() {
201 | return topLinep.get();
202 | }
203 |
204 | public StringProperty topLinepProperty() {
205 | return topLinep;
206 | }
207 |
208 | public void setTopLinep(String topLinep) {
209 | this.topLinep.set(topLinep);
210 | }
211 | }
212 |
--------------------------------------------------------------------------------
/src/Data/Person.java:
--------------------------------------------------------------------------------
1 | package Data;
2 |
3 | import javafx.beans.property.SimpleStringProperty;
4 | import javafx.beans.property.StringProperty;
5 |
6 | /**
7 | * Created by LSK.Reno on 2018/7/26.
8 | */
9 | public class Person {
10 | private String personID = "";
11 | private String personName = "";
12 | private String documentType = "";
13 | private String documentNum = "";
14 | private String gender = "";
15 | private String nation = "";
16 | private String retirement = "";
17 | private String householdType = "";
18 | private String location = "";
19 | private String education = "";
20 | private String politicsStatus = "";
21 | private String marital = "";
22 | private String medicalCategory= "";
23 | private String cardNum= "";
24 | private String institutionID= "";
25 |
26 | private final StringProperty personIDp;
27 | private final StringProperty personNamep;
28 | // private final StringProperty medicalCategoryp;
29 | private final StringProperty institutionIDp;
30 |
31 | /**
32 | * 构造方法
33 | * @param personIDp
34 | * @param personNamep
35 | */
36 | public Person(String personIDp, String personNamep) {
37 | this.personIDp = new SimpleStringProperty(personIDp);
38 | this.personNamep = new SimpleStringProperty(personNamep);
39 | // medicalCategoryp = null;
40 | institutionIDp = null;
41 | }
42 | public Person(String personIDp, String personNamep,String institutionIDp) {
43 | this.personIDp = new SimpleStringProperty(personIDp);
44 | this.personNamep = new SimpleStringProperty(personNamep);
45 | // this.medicalCategoryp = new SimpleStringProperty(medicalCategoryp);
46 | this.institutionIDp = new SimpleStringProperty(institutionIDp);
47 | }
48 | public Person(String personID, String personName, String medicalCategory, String institutionID) {
49 | this.personID = personID;
50 | this.personName = personName;
51 | this.medicalCategory = medicalCategory;
52 | this.institutionID = institutionID;
53 | personIDp = null;
54 | personNamep = null;
55 | // medicalCategoryp = null;
56 | institutionIDp = null;
57 | }
58 | /**
59 | * getter and setter 方法
60 | */
61 | public String getPersonID() {
62 | return personID;
63 | }
64 |
65 | public void setPersonID(String personID) {
66 | this.personID = personID;
67 | }
68 |
69 | public String getDocumentType() {
70 | return documentType;
71 | }
72 |
73 | public void setDocumentType(String documentType) {
74 | this.documentType = documentType;
75 | }
76 |
77 | public String getDocumentNum() {
78 | return documentNum;
79 | }
80 |
81 | public void setDocumentNum(String documentNum) {
82 | this.documentNum = documentNum;
83 | }
84 |
85 | public String getPersonName() {
86 | return personName;
87 | }
88 |
89 | public void setPersonName(String personName) {
90 | this.personName = personName;
91 | }
92 |
93 | public String getGender() {
94 | return gender;
95 | }
96 |
97 | public void setGender(String gender) {
98 | this.gender = gender;
99 | }
100 |
101 | public String getNation() {
102 | return nation;
103 | }
104 |
105 | public void setNation(String nation) {
106 | this.nation = nation;
107 | }
108 |
109 | public String getRetirement() {
110 | return retirement;
111 | }
112 |
113 | public void setRetirement(String retirement) {
114 | this.retirement = retirement;
115 | }
116 |
117 | public String getHouseholdType() {
118 | return householdType;
119 | }
120 |
121 | public void setHouseholdType(String householdType) {
122 | this.householdType = householdType;
123 | }
124 |
125 | public String getLocation() {
126 | return location;
127 | }
128 |
129 | public void setLocation(String location) {
130 | this.location = location;
131 | }
132 |
133 | public String getEducation() {
134 | return education;
135 | }
136 |
137 | public void setEducation(String education) {
138 | this.education = education;
139 | }
140 |
141 | public String getPoliticsStatus() {
142 | return politicsStatus;
143 | }
144 |
145 | public void setPoliticsStatus(String politicsStatus) {
146 | this.politicsStatus = politicsStatus;
147 | }
148 |
149 | public String getMarital() {
150 | return marital;
151 | }
152 |
153 | public void setMarital(String marital) {
154 | this.marital = marital;
155 | }
156 |
157 | public String getMedicalCategory() {
158 | return medicalCategory;
159 | }
160 |
161 | public void setMedicalCategory(String medicalCategory) {
162 | this.medicalCategory = medicalCategory;
163 | }
164 |
165 | public String getCardNum() {
166 | return cardNum;
167 | }
168 |
169 | public void setCardNum(String cardNum) {
170 | this.cardNum = cardNum;
171 | }
172 |
173 | public String getInstitutionID() {
174 | return institutionID;
175 | }
176 |
177 | public void setInstitutionID(String institutionID) {
178 | this.institutionID = institutionID;
179 | }
180 |
181 |
182 |
183 | public String getPersonIDp() {
184 | return personIDp.get();
185 | }
186 |
187 | public StringProperty personIDpProperty() {
188 | return personIDp;
189 | }
190 |
191 | public void setPersonIDp(String personIDp) {
192 | this.personIDp.set(personIDp);
193 | }
194 |
195 | public String getPersonNamep() {
196 | return personNamep.get();
197 | }
198 |
199 | public StringProperty personNamepProperty() {
200 | return personNamep;
201 | }
202 |
203 | public void setPersonNamep(String personNamep) {
204 | this.personNamep.set(personNamep);
205 | }
206 |
207 |
208 |
209 | // public String getMedicalCategoryp() {
210 | // return medicalCategoryp.get();
211 | // }
212 | //
213 | // public StringProperty medicalCategorypProperty() {
214 | // return medicalCategoryp;
215 | // }
216 | //
217 | // public void setMedicalCategoryp(String medicalCategoryp) {
218 | // this.medicalCategoryp.set(medicalCategoryp);
219 | // }
220 |
221 | public String getInstitutionIDp() {
222 | return institutionIDp.get();
223 | }
224 |
225 | public StringProperty institutionIDpProperty() {
226 | return institutionIDp;
227 | }
228 |
229 | public void setInstitutionIDp(String institutionIDp) {
230 | this.institutionIDp.set(institutionIDp);
231 | }
232 | }
233 |
--------------------------------------------------------------------------------
/src/controller/ReimbursementController.java:
--------------------------------------------------------------------------------
1 | package controller;
2 |
3 | import Data.AnnualReimbursement;
4 | import Data.Person;
5 | import Data.PrescriptionInformation;
6 | import IO.IO;
7 | import javafx.collections.FXCollections;
8 | import javafx.collections.ObservableList;
9 | import javafx.event.ActionEvent;
10 | import javafx.fxml.FXML;
11 | import javafx.fxml.FXMLLoader;
12 | import javafx.scene.Scene;
13 | import javafx.stage.Stage;
14 | import javafx.scene.control.Button;
15 | import javafx.scene.control.DatePicker;
16 | import javafx.scene.control.TableColumn;
17 | import javafx.scene.control.TableView;
18 | import javafx.scene.control.TextField;
19 | import java.io.File;
20 | import java.io.FileNotFoundException;
21 | import java.io.IOException;
22 | import java.io.RandomAccessFile;
23 | import java.util.ArrayList;
24 | /**
25 | * Created by LSK.Reno on 2018/7/26 15:29.
26 | */
27 | public class ReimbursementController {
28 | private Stage ReimbursementStage;
29 | public Stage setReimbursementStage(Stage ReimbursementStage) {
30 | this.ReimbursementStage = ReimbursementStage;
31 | return ReimbursementStage;
32 | }
33 | @FXML
34 | private Button searchButton;
35 |
36 | @FXML
37 | private TextField searchField;
38 |
39 | @FXML
40 | private TableView InformationTable;
41 |
42 | @FXML
43 | private TableColumn personIDColumn;
44 |
45 | @FXML
46 | private TableColumn personNameColumn;
47 |
48 | @FXML
49 | private TableColumn institutionIDColumn;
50 |
51 | @FXML
52 | private TableColumn personalExpenseColumn;
53 |
54 | @FXML
55 | private TableColumn reimbursementColumn;
56 |
57 | @FXML
58 | private TableColumn expenseColumn;
59 |
60 | @FXML
61 | private TableColumn topLineColumn;
62 |
63 | @FXML
64 | private TextField institutionField;
65 |
66 | @FXML
67 | private TextField drugIDField;
68 |
69 | @FXML
70 | private TextField medicalCategoryField;
71 |
72 | @FXML
73 | private TextField personIDField;
74 |
75 | @FXML
76 | private TextField personNameField;
77 |
78 | @FXML
79 | private TextField examineField;
80 |
81 | @FXML
82 | private DatePicker admissionDate;
83 |
84 | @FXML
85 | private DatePicker dischargeDate;
86 |
87 | @FXML
88 | private Button backButton;
89 |
90 | @FXML
91 | private Button startReimbursementButton;
92 |
93 | private ObservableList annualReimbursementData = FXCollections.observableArrayList();
94 | private ArrayList annualReimbursementList = new ArrayList<>();
95 | private ArrayList addAnnualReimbursementList = new ArrayList<>();
96 | @FXML
97 | public void initialize(){
98 | IO.loadAnnualReimbursement(annualReimbursementList);
99 | for(AnnualReimbursement annualReimbursement:annualReimbursementList){
100 | AnnualReimbursement annualReimbursement1 = new AnnualReimbursement(annualReimbursement.getPersonID(),
101 | annualReimbursement.getPersonName() ,annualReimbursement.getInstitutionID() ,
102 | annualReimbursement.getPersonalExpense(),annualReimbursement.getReimbursementExpense(),
103 | annualReimbursement.getExpense(),annualReimbursement.getTopLine());
104 | annualReimbursementData.add(annualReimbursement1);
105 | }
106 | personIDColumn.setCellValueFactory(cellData -> cellData.getValue().personIDpProperty());
107 | personNameColumn.setCellValueFactory(cellData -> cellData.getValue().personNamepProperty());
108 | institutionIDColumn.setCellValueFactory(cellData -> cellData.getValue().institutionIDpProperty());
109 | personalExpenseColumn.setCellValueFactory(cellData -> cellData.getValue().personalExpensepProperty());
110 | reimbursementColumn.setCellValueFactory(cellData -> cellData.getValue().reimbursementExpensepProperty());
111 | expenseColumn.setCellValueFactory(cellData -> cellData.getValue().expensepProperty());
112 | topLineColumn.setCellValueFactory(cellData -> cellData.getValue().topLinepProperty());
113 |
114 | InformationTable.getSelectionModel().selectedItemProperty().addListener((observable, oldValue, newValue) -> showAnnualReimbursementDetails(newValue));
115 | InformationTable.setItems(annualReimbursementData);
116 | }
117 | private void showAnnualReimbursementDetails(AnnualReimbursement annualReimbursement){
118 | if (annualReimbursement != null) {
119 | personIDField.setText(annualReimbursement.personIDpProperty().get());
120 | personNameField.setText(annualReimbursement.personNamepProperty().get());
121 | } else {
122 | personIDField.setText("");
123 | personNameField.setText("");
124 | }
125 | }
126 |
127 | @FXML
128 | void search(ActionEvent event) {
129 | ObservableList newAnnualReimbursementData = FXCollections.observableArrayList();
130 | for(AnnualReimbursement annualReimbursement:annualReimbursementData){
131 | if(annualReimbursement.personIDpProperty().get().compareTo(searchField.getText())==0||
132 | annualReimbursement.personNamepProperty().get().compareTo(searchField.getText())==0){
133 | newAnnualReimbursementData.add(annualReimbursement);
134 | }else{
135 | System.out.println("");
136 | }
137 | }
138 | InformationTable.setItems(newAnnualReimbursementData);
139 | }
140 |
141 | @FXML
142 | void startReimbursement(ActionEvent event) {
143 | //将入院就诊信息写入文件
144 | String temp = personIDField.getText()+","+
145 | personNameField.getText()+","+
146 | institutionField.getText()+","+
147 | medicalCategoryField.getText()+","+
148 | drugIDField.getText()+","+
149 | admissionDate.getValue()+","+
150 | dischargeDate.getValue()+","+
151 | examineField.getText();
152 | try {
153 | String filename = "D:\\MedicalInsuranceSystem\\src\\AdmissionInformation.txt";
154 | File file = new File(filename);
155 | RandomAccessFile raf=new RandomAccessFile(file, "rw");
156 | //将写文件指针移到文件尾。
157 | raf.seek(raf.length());
158 | raf.writeBytes("\r\n" + temp);
159 | raf.close();
160 |
161 | } catch (FileNotFoundException e) {
162 | System.out.println("FileNotFoundException");
163 | } catch (IOException e) {
164 | System.out.println("IOException");
165 | }
166 |
167 | //打开报销界面
168 |
169 |
170 | StartReimbursement startReimbursement = new StartReimbursement();
171 | Stage StartReimbursementStage = startReimbursement.setStartReimbursementStage(Main.getStage());
172 | StartReimbursementStage.setTitle("报销——国家医疗保险报销中心");
173 | try {
174 | Scene scene = new Scene(FXMLLoader.load(getClass().getResource("StartReimbursement.fxml")));
175 | StartReimbursementStage.setScene(scene);
176 | scene.getStylesheets().add(this.getClass().getResource("StartReimbursement.css").toExternalForm());
177 | } catch (Exception e) {
178 | e.printStackTrace();
179 | }
180 |
181 |
182 |
183 |
184 |
185 | }
186 |
187 |
188 |
189 | /**
190 | * 返回主菜单
191 | * */
192 | @FXML
193 | void backToMenu(ActionEvent event) {
194 | Stage primaryStage = Main.getStage();
195 | try {
196 | primaryStage.setTitle("Menu");
197 | Scene scene = new Scene(FXMLLoader.load(getClass().getResource("MenuController.fxml")));
198 | primaryStage.setScene(scene);
199 | scene.getStylesheets().add(this.getClass().getResource("Menu.css").toExternalForm());
200 |
201 | } catch (Exception e) {
202 | e.printStackTrace();
203 | }
204 | }
205 | }
206 |
--------------------------------------------------------------------------------
/src/controller/ReimbursementController.fxml:
--------------------------------------------------------------------------------
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 |
30 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
--------------------------------------------------------------------------------
/out/production/MedicalInsuranceSystem/controller/ReimbursementController.fxml:
--------------------------------------------------------------------------------
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 |
30 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
--------------------------------------------------------------------------------
/src/IO/IO.java:
--------------------------------------------------------------------------------
1 | package IO;
2 |
3 | import Data.*;
4 |
5 | import java.io.*;
6 | import java.util.ArrayList;
7 | import java.util.Scanner;
8 |
9 | /**
10 | * Created by LSK.Reno on 2018/7/29 13:46.
11 | */
12 | public class IO {
13 | //加载人员
14 | public static void loadPerson(ArrayList personList){
15 | try{
16 | String filename = "D:\\MedicalInsuranceSystem\\src\\Person.txt";
17 | File file = new File(filename);
18 | BufferedReader reader = new BufferedReader(new FileReader(file));
19 | String temp;
20 | int i = 1;
21 | while((temp = reader.readLine()) != null) {
22 | if(i >= 2 ){
23 | String personID = temp.split(",")[0];
24 | String personName = temp.split(",")[1];
25 | String medicalCategory = temp.split(",")[2];
26 | String institutionID = temp.split(",")[3];
27 | Person person = new Person(personID,personName ,medicalCategory ,institutionID );
28 | personList.add(person);
29 | }
30 | i++;
31 | }
32 | } catch (FileNotFoundException e) {
33 | System.out.println("FileNotFoundException");
34 | } catch (IOException e) {
35 | System.out.println("IOException");
36 | }
37 | }
38 | //加载新增人员
39 | public static void loadAddPerson(ArrayList personList){
40 | try{
41 | Scanner sc = new Scanner(new FileReader("D:\\MedicalInsuranceSystem\\src\\Person.txt"));
42 | String line = null;
43 | while((sc.hasNextLine()&&(line=sc.nextLine())!=null)){
44 | if(!sc.hasNextLine()){
45 | String personID = line.split(",")[0];
46 | String personName = line.split(",")[1];
47 | String medicalCategory = line.split(",")[2];
48 | String institutionID = line.split(",")[3];
49 | Person person = new Person(personID,personName ,medicalCategory ,institutionID );
50 | personList.add(person);
51 | }
52 | }
53 | } catch (FileNotFoundException e) {
54 | System.out.println("没找到文件咯。");
55 | // e.printStackTrace();
56 | }
57 |
58 |
59 | }
60 | //删除人员
61 | public static void deletePerson(){
62 |
63 | }
64 |
65 |
66 | //加载药品
67 | public static void loadDrug(ArrayList drugList){
68 | try{
69 | String filename = "D:\\MedicalInsuranceSystem\\src\\Drug.txt";
70 | File file = new File(filename);
71 | BufferedReader reader = new BufferedReader(new FileReader(file));
72 | String temp;
73 | int i = 1;
74 | while((temp = reader.readLine()) != null) {
75 | if(i >= 2 ){
76 | String drugID = temp.split(",")[0];
77 | String drugName = temp.split(",")[1];
78 | String drugLevel = temp.split(",")[2];
79 | String hospitalLevel = temp.split(",")[3];
80 | Drug drug = new Drug(drugID, drugName, drugLevel,hospitalLevel);
81 | drugList.add(drug);
82 | }
83 | i++;
84 | }
85 | } catch (FileNotFoundException e) {
86 | System.out.println("FileNotFoundException");
87 | } catch (IOException e) {
88 | System.out.println("IOException");
89 | }
90 |
91 | }
92 | //加载新增药品
93 | public static void loadAddDrug(ArrayList drugList){
94 | try{
95 | Scanner sc = new Scanner(new FileReader("D:\\MedicalInsuranceSystem\\src\\Drug.txt"));
96 | String line = null;
97 | while((sc.hasNextLine()&&(line=sc.nextLine())!=null)){
98 | if(!sc.hasNextLine()){
99 | String drugID = line.split(",")[0];
100 | String drugName = line.split(",")[1];
101 | String drugLevel = line.split(",")[2];
102 | String hospitalLevel = line.split(",")[3];
103 | Drug drug = new Drug(drugID, drugName, drugLevel,hospitalLevel);
104 | drugList.add(drug);
105 | }
106 | }
107 | } catch (FileNotFoundException e) {
108 | System.out.println("没找到文件咯。");
109 | // e.printStackTrace();
110 | }
111 |
112 |
113 | }
114 |
115 |
116 | //加载诊疗项目
117 | public static void loadClinicProject(ArrayList clinicProjectList){
118 | try{
119 | String filename = "D:\\MedicalInsuranceSystem\\src\\ClinicProject.txt";
120 | File file = new File(filename);
121 | BufferedReader reader = new BufferedReader(new FileReader(file));
122 | String temp;
123 | int i = 1;
124 | while((temp = reader.readLine()) != null) {
125 | if(i >= 2 ){
126 | String projectID = temp.split(",")[0];
127 | String projectName = temp.split(",")[1];
128 | String projectLevel = temp.split(",")[2];
129 | String hospitalLevel = temp.split(",")[3];
130 | ClinicProject clinicProject = new ClinicProject(projectID, projectName, projectLevel,hospitalLevel );
131 | clinicProjectList.add(clinicProject);
132 | }
133 | i++;
134 | }
135 | } catch (FileNotFoundException e) {
136 | System.out.println("FileNotFoundException");
137 | } catch (IOException e) {
138 | System.out.println("IOException");
139 | }
140 | }
141 | //加载新增诊疗项目
142 | public static void loadAddClinicProject(ArrayList clinicProjectList){
143 | try{
144 | Scanner sc = new Scanner(new FileReader("D:\\MedicalInsuranceSystem\\src\\ClinicProject.txt"));
145 | String line = null;
146 | while((sc.hasNextLine()&&(line=sc.nextLine())!=null)){
147 | if(!sc.hasNextLine()){
148 | String projectID = line.split(",")[0];
149 | String projectName = line.split(",")[1];
150 | String projectLevel = line.split(",")[2];
151 | String hospitalLevel = line.split(",")[3];
152 | ClinicProject clinicProject = new ClinicProject(projectID, projectName, projectLevel,hospitalLevel);
153 | clinicProjectList.add(clinicProject);
154 | }
155 | }
156 | } catch (FileNotFoundException e) {
157 | System.out.println("没找到文件咯。");
158 | // e.printStackTrace();
159 | }
160 |
161 |
162 | }
163 |
164 |
165 | //加载服务设施
166 | public static void loadServiceFacility(ArrayList serviceFacilityList){
167 | try{
168 | String filename = "D:\\MedicalInsuranceSystem\\src\\ServiceFacility.txt";
169 | File file = new File(filename);
170 | BufferedReader reader = new BufferedReader(new FileReader(file));
171 | String temp;
172 | int i = 1;
173 | while((temp = reader.readLine()) != null) {
174 | if(i >= 2 ){
175 | String facilityID = temp.split(",")[0];
176 | String facilityName = temp.split(",")[1];
177 | ServiceFacility serviceFacility= new ServiceFacility(facilityID,facilityName);
178 | serviceFacilityList.add(serviceFacility);
179 | }
180 | i++;
181 | }
182 | } catch (FileNotFoundException e) {
183 | System.out.println("FileNotFoundException");
184 | } catch (IOException e) {
185 | System.out.println("IOException");
186 | }
187 | }
188 | //加载新增服务设施
189 | public static void loadAddServiceFacility(ArrayList serviceFacilityList){
190 | try{
191 | Scanner sc = new Scanner(new FileReader("D:\\MedicalInsuranceSystem\\src\\ServiceFacility.txt"));
192 | String line = null;
193 | while((sc.hasNextLine()&&(line=sc.nextLine())!=null)){
194 | if(!sc.hasNextLine()){
195 | String facilityID = line.split(",")[0];
196 | String facilityName = line.split(",")[1];
197 | ServiceFacility serviceFacility= new ServiceFacility(facilityID,facilityName);
198 | serviceFacilityList.add(serviceFacility);
199 | }
200 | }
201 | } catch (FileNotFoundException e) {
202 | System.out.println("没找到文件咯。");
203 | // e.printStackTrace();
204 | }
205 |
206 |
207 | }
208 |
209 |
210 | //加载病种信息
211 | public static void loadDiseaseInformation(ArrayList diseaseInformationList){
212 | try{
213 | String filename = "D:\\MedicalInsuranceSystem\\src\\DiseaseInformation.txt";
214 | File file = new File(filename);
215 | BufferedReader reader = new BufferedReader(new FileReader(file));
216 | String temp;
217 | int i = 1;
218 | while((temp = reader.readLine()) != null) {
219 | if(i >= 2 ){
220 | String diseaseID = temp.split(",")[0];
221 | String diseaseType = temp.split(",")[1];
222 | DiseaseInformation diseaseInformation= new DiseaseInformation(diseaseID,diseaseType );
223 | diseaseInformationList.add(diseaseInformation);
224 | }
225 | i++;
226 | }
227 | } catch (FileNotFoundException e) {
228 | System.out.println("FileNotFoundException");
229 | } catch (IOException e) {
230 | System.out.println("IOException");
231 | }
232 | }
233 | //加载新增病种信息
234 | public static void loadAddDiseaseInformation(ArrayList diseaseInformationList){
235 | try{
236 | Scanner sc = new Scanner(new FileReader("D:\\MedicalInsuranceSystem\\src\\DiseaseInformation.txt"));
237 | String line = null;
238 | while((sc.hasNextLine()&&(line=sc.nextLine())!=null)){
239 | if(!sc.hasNextLine()){
240 | String diseaseID = line.split(",")[0];
241 | String diseaseType = line.split(",")[1];
242 | DiseaseInformation diseaseInformation= new DiseaseInformation(diseaseID,diseaseType);
243 | diseaseInformationList.add(diseaseInformation);
244 | }
245 | }
246 | } catch (FileNotFoundException e) {
247 | System.out.println("没找到文件咯。");
248 | // e.printStackTrace();
249 | }
250 |
251 |
252 | }
253 |
254 |
255 | //加载年度医疗报销表
256 | public static void loadAnnualReimbursement(ArrayList annualReimbursementList){
257 | try{
258 | String filename = "D:\\MedicalInsuranceSystem\\src\\AnnualReimbursement.txt";
259 | File file = new File(filename);
260 | BufferedReader reader = new BufferedReader(new FileReader(file));
261 | String temp;
262 | int i = 1;
263 | while((temp = reader.readLine()) != null) {
264 | if(i >= 2 ){
265 | String personIDp = temp.split(",")[0];
266 | String personNamep = temp.split(",")[1];
267 | String institutionIDp = temp.split(",")[2];
268 | String personalExpensep = temp.split(",")[3];
269 | String reimbursementExpensep = temp.split(",")[4];
270 | String expensep = temp.split(",")[5];
271 | String topLinep = temp.split(",")[6];
272 | String exmaine = temp.split(",")[7];
273 | AnnualReimbursement annualReimbursement = new AnnualReimbursement(personIDp,personNamep ,institutionIDp
274 | ,personalExpensep ,reimbursementExpensep ,expensep,topLinep,exmaine);
275 | annualReimbursementList.add(annualReimbursement);
276 | }
277 | i++;
278 | }
279 | } catch (FileNotFoundException e) {
280 | System.out.println("FileNotFoundException");
281 | } catch (IOException e) {
282 | System.out.println("IOException");
283 | }
284 | }
285 |
286 | //加载未报销住院信息
287 | public static void loadUnreimbursedBudget(ArrayList unreimbursedBudgetList){
288 | try{
289 | String filename = "D:\\MedicalInsuranceSystem\\src\\UnreimbursedBudget.txt";
290 | File file = new File(filename);
291 | BufferedReader reader = new BufferedReader(new FileReader(file));
292 | String temp;
293 | int i = 1;
294 | while((temp = reader.readLine()) != null) {
295 | if(i >= 2 ){
296 | String personID = temp.split(",")[0];
297 | String admissionID = temp.split(",")[1];
298 | String projectCategory = temp.split(",")[2];
299 | String projectName = temp.split(",")[3];
300 | String expense = temp.split(",")[4];
301 |
302 | PrescriptionInformation unreimbursedBudget= new PrescriptionInformation(personID,
303 | admissionID,projectCategory,projectName,expense,"");
304 | unreimbursedBudgetList.add(unreimbursedBudget);
305 | }
306 | i++;
307 | }
308 | } catch (FileNotFoundException e) {
309 | System.out.println("FileNotFoundException");
310 | } catch (IOException e) {
311 | System.out.println("IOException");
312 | }
313 | }
314 | }
315 |
316 |
317 |
318 |
319 |
320 |
321 |
322 |
323 |
324 |
325 |
326 |
327 |
328 |
329 |
330 |
331 |
332 |
333 |
334 |
335 |
336 |
337 |
338 |
339 |
340 |
341 |
342 |
343 |
344 |
345 |
346 |
347 |
348 |
349 |
350 |
351 |
352 |
353 |
354 |
355 |
356 |
357 |
358 |
--------------------------------------------------------------------------------
/src/controller/StartReimbursement.fxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
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 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
131 |
132 |
133 |
134 |
135 |
136 |
137 |
138 |
139 |
140 |
141 |
142 |
143 |
144 |
145 |
146 |
147 |
148 |
149 |
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 |
161 |
162 |
163 |
164 |
165 |
166 |
167 |
168 |
169 |
170 |
171 |
172 |
173 |
174 |
175 |
176 |
177 |
178 |
--------------------------------------------------------------------------------
/out/production/MedicalInsuranceSystem/controller/StartReimbursement.fxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
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 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
131 |
132 |
133 |
134 |
135 |
136 |
137 |
138 |
139 |
140 |
141 |
142 |
143 |
144 |
145 |
146 |
147 |
148 |
149 |
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 |
161 |
162 |
163 |
164 |
165 |
166 |
167 |
168 |
169 |
170 |
171 |
172 |
173 |
174 |
175 |
176 |
177 |
178 |
--------------------------------------------------------------------------------
/src/controller/CommonBusinessController.java:
--------------------------------------------------------------------------------
1 | package controller;
2 |
3 | /**
4 | * Created by LSK.Reno on 2018/7/26 15:28.
5 | */
6 | import Data.Company;
7 | import Data.Person;
8 | import IO.*;
9 | import javafx.collections.FXCollections;
10 | import javafx.collections.ObservableList;
11 | import javafx.event.ActionEvent;
12 | import javafx.fxml.FXML;
13 | import javafx.fxml.FXMLLoader;
14 | import javafx.scene.Scene;
15 | import javafx.scene.control.*;
16 | import javafx.stage.Stage;
17 | import java.io.*;
18 | import java.util.ArrayList;
19 |
20 | public class CommonBusinessController {
21 | private Stage CommonBusinessStage;
22 | public Stage setCommonBusinessStage(Stage CommonBusinessStage) {
23 | this.CommonBusinessStage = CommonBusinessStage;
24 | return CommonBusinessStage;
25 | }
26 | @FXML
27 | private TableView PersonTable;
28 |
29 | @FXML
30 | private TableColumn PersonIDColumn;
31 |
32 | @FXML
33 | private TableColumn PersonNameColumn;
34 |
35 | @FXML
36 | private TableColumn institutionIDColumn;
37 |
38 | @FXML
39 | private TextField searchPersonField;
40 |
41 | @FXML
42 | private Button searchPersonButton;
43 |
44 | @FXML
45 | private TabPane myPersonTabPane;
46 |
47 | @FXML
48 | private Tab seePersonTab;
49 |
50 | @FXML
51 | private Label personIDLabel;
52 |
53 | @FXML
54 | private Label personNameLabel;
55 |
56 | @FXML
57 | private Label personInstitutionIDLabel;
58 |
59 | @FXML
60 | private Label personCategoryLabel;
61 |
62 | @FXML
63 | private Button backToMenuButton;
64 |
65 | @FXML
66 | private Button addPersonButton;
67 |
68 | @FXML
69 | private TextField PersonIDField;
70 |
71 | @FXML
72 | private TextField PersonNameField;
73 |
74 | @FXML
75 | private TextField PersonInstitutionIDField;
76 |
77 | @FXML
78 | private ComboBox cardCategoryBox;
79 |
80 | @FXML
81 | private ComboBox retirementBox;
82 |
83 | @FXML
84 | private ComboBox householdBox;
85 |
86 | @FXML
87 | private ComboBox medicalCategoryBox;
88 |
89 | @FXML
90 | private ComboBox genderBox;
91 |
92 | @FXML
93 | private ComboBox educationLevelBox;
94 |
95 | @FXML
96 | private ComboBox PoliticalBox;
97 |
98 | @FXML
99 | private ComboBox MaritalBox;
100 |
101 | @FXML
102 | private Tab changePersonTab;
103 |
104 | @FXML
105 | private Button changePersonButton;
106 |
107 | @FXML
108 | private TextField PersonIDField1;
109 |
110 | @FXML
111 | private TextField PersonNameField1;
112 |
113 | @FXML
114 | private TextField PersonInstitutionIDField1;
115 |
116 | @FXML
117 | private ComboBox cardCategoryBox1;
118 |
119 | @FXML
120 | private ComboBox retirementBox1;
121 |
122 | @FXML
123 | private ComboBox householdBox1;
124 |
125 | @FXML
126 | private ComboBox medicalCategoryBox1;
127 |
128 | @FXML
129 | private ComboBox genderBox1;
130 |
131 | @FXML
132 | private ComboBox educationLevelBox1;
133 |
134 | @FXML
135 | private ComboBox PoliticalBox1;
136 |
137 | @FXML
138 | private ComboBox MaritalBox1;
139 |
140 | @FXML
141 | private Tab deletePersonTab;
142 |
143 | @FXML
144 | private Label personIDLabel1;
145 |
146 | @FXML
147 | private Label personNameLabel1;
148 |
149 | @FXML
150 | private Label personInstitutionIDLabel1;
151 |
152 | @FXML
153 | private Label personCategoryLabel1;
154 |
155 | @FXML
156 | private Button deletePersonButton;
157 |
158 | @FXML
159 | private TableView companyTable;
160 |
161 | @FXML
162 | private TableColumn companyIDColumn;
163 |
164 | @FXML
165 | private TableColumn companyNameColumn;
166 |
167 | @FXML
168 | private TextField searchCompanyField;
169 |
170 | @FXML
171 | private Button searchCompanyButton;
172 |
173 | @FXML
174 | private Button backToMenuButton1;
175 |
176 | @FXML
177 | private Button addCompanyButton;
178 |
179 | @FXML
180 | private Button changeCompanyButton;
181 |
182 | @FXML
183 | private Button backToMenuButton2;
184 |
185 | @FXML
186 | private Button deleteCompanyButton;
187 |
188 |
189 | private ObservableList personData = FXCollections.observableArrayList();
190 | private ArrayList personList = new ArrayList<>();
191 |
192 | private ArrayList addPersonList = new ArrayList<>();
193 | private ArrayList changedPersonList = new ArrayList<>();
194 |
195 | /**初始化人员界面信息*/
196 | @FXML
197 | public void initialize() {
198 | ComboBox cardCategoryBox=(ComboBox) myPersonTabPane.lookup("#cardCategoryBox");
199 | ObservableList cardCategoryList = FXCollections.observableArrayList("身份证","军官证");
200 | cardCategoryBox.setItems(cardCategoryList);
201 |
202 | ComboBox genderBox=(ComboBox) myPersonTabPane.lookup("#genderBox");
203 | ObservableList genderList = FXCollections.observableArrayList("男","女");
204 | genderBox.setItems(genderList);
205 | ComboBox retirementBox=(ComboBox) myPersonTabPane.lookup("#retirementBox");
206 | ObservableList retirementList = FXCollections.observableArrayList("0","1");
207 | retirementBox.setItems(retirementList);
208 | ComboBox educationLevelBox=(ComboBox) myPersonTabPane.lookup("#educationLevelBox");
209 | ObservableList educationLevelList = FXCollections.observableArrayList("中专","大专","本科","研究生","博士");
210 | educationLevelBox.setItems(educationLevelList);
211 | ComboBox householdBox=(ComboBox) myPersonTabPane.lookup("#householdBox");
212 | ObservableList householdList = FXCollections.observableArrayList("农村户口","城市户口");
213 | householdBox.setItems(householdList);// MaritalBox
214 | ComboBox PoliticalBox=(ComboBox) myPersonTabPane.lookup("#PoliticalBox");
215 | ObservableList PoliticalList = FXCollections.observableArrayList("中国共产党党员","共青团团员","群众");
216 | PoliticalBox.setItems(PoliticalList);
217 | ComboBox MaritalBox=(ComboBox) myPersonTabPane.lookup("#MaritalBox");
218 | ObservableList MaritalList = FXCollections.observableArrayList("未婚","已婚");
219 | MaritalBox.setItems(MaritalList);
220 | ComboBox medicalCategoryBox=(ComboBox) myPersonTabPane.lookup("#medicalCategoryBox");
221 | ObservableList medicalCategoryList = FXCollections.observableArrayList("11", "21", "40", "41");
222 | medicalCategoryBox.setItems(medicalCategoryList);
223 |
224 | ComboBox cardCategoryBox1=(ComboBox) myPersonTabPane.lookup("#cardCategoryBox1");
225 | ObservableList cardCategoryList1 = FXCollections.observableArrayList("身份证","军官证");
226 | cardCategoryBox1.setItems(cardCategoryList1);
227 | ComboBox genderBox1=(ComboBox) myPersonTabPane.lookup("#genderBox1");
228 | ObservableList genderList1 = FXCollections.observableArrayList("男","女");
229 | genderBox1.setItems(genderList1);
230 | ComboBox retirementBox1=(ComboBox) myPersonTabPane.lookup("#retirementBox1");
231 | ObservableList retirementList1 = FXCollections.observableArrayList("0","1");
232 | retirementBox1.setItems(retirementList1);
233 | ComboBox educationLevelBox1=(ComboBox) myPersonTabPane.lookup("#educationLevelBox1");
234 | ObservableList educationLevelList1 = FXCollections.observableArrayList("中专","大专","本科","研究生","博士");
235 | educationLevelBox1.setItems(educationLevelList1);
236 | ComboBox householdBox1=(ComboBox) myPersonTabPane.lookup("#householdBox1");
237 | ObservableList householdList1 = FXCollections.observableArrayList("农村户口","城市户口");
238 | householdBox1.setItems(householdList1);// MaritalBox
239 | ComboBox PoliticalBox1=(ComboBox) myPersonTabPane.lookup("#PoliticalBox1");
240 | ObservableList PoliticalList1 = FXCollections.observableArrayList("中国共产党党员","共青团团员","群众");
241 | PoliticalBox1.setItems(PoliticalList1);
242 | ComboBox MaritalBox1=(ComboBox) myPersonTabPane.lookup("#MaritalBox1");
243 | ObservableList MaritalList1 = FXCollections.observableArrayList("未婚","已婚");
244 | MaritalBox1.setItems(MaritalList1);
245 | ComboBox medicalCategoryBox1=(ComboBox) myPersonTabPane.lookup("#medicalCategoryBox1");
246 | ObservableList medicalCategoryList1 = FXCollections.observableArrayList("11", "21", "40", "41");
247 | medicalCategoryBox1.setItems(medicalCategoryList1);
248 |
249 | IO.loadPerson(personList);
250 | for(Person person:personList){
251 | Person person1 = new Person(person.getPersonID(),person.getPersonName(),person.getInstitutionID());
252 | personData.add(person1);
253 | }
254 |
255 |
256 | PersonIDColumn.setCellValueFactory(cellData -> cellData.getValue().personIDpProperty());
257 | PersonNameColumn.setCellValueFactory(cellData -> cellData.getValue().personNamepProperty());
258 | institutionIDColumn.setCellValueFactory(cellData -> cellData.getValue().institutionIDpProperty());
259 | PersonTable.getSelectionModel().selectedItemProperty().addListener((observable, oldValue, newValue) ->
260 | showPersonDetails(newValue));
261 | PersonTable.setItems(personData);
262 | }
263 |
264 | private void showPersonDetails(Person person) {
265 | if (person != null) {
266 | personIDLabel.setText(person.personIDpProperty().get());
267 | personNameLabel.setText(person.personNamepProperty().get());
268 | personCategoryLabel.setText(person.getMedicalCategory());
269 | personInstitutionIDLabel.setText(person.institutionIDpProperty().get());
270 |
271 | personIDLabel1.setText(person.personIDpProperty().get());
272 | personNameLabel1.setText(person.personNamepProperty().get());
273 | personCategoryLabel1.setText(person.getMedicalCategory());
274 | personInstitutionIDLabel1.setText(person.institutionIDpProperty().get());
275 |
276 | PersonIDField1.setText(person.personIDpProperty().get());
277 | PersonNameField1.setText(person.personNamepProperty().get());
278 | PersonInstitutionIDField1.setText(person.institutionIDpProperty().get());
279 |
280 |
281 | } else {
282 | personIDLabel.setText("");
283 | personNameLabel.setText("");
284 | personCategoryLabel.setText("");
285 | personInstitutionIDLabel.setText("");
286 |
287 | personIDLabel1.setText("");
288 | personNameLabel1.setText("");
289 | personCategoryLabel1.setText("");
290 | personInstitutionIDLabel1.setText("");
291 |
292 | PersonIDField1.setText("");
293 | PersonNameField1.setText("");
294 | PersonInstitutionIDField1.setText("");
295 |
296 | }
297 | }
298 |
299 | @FXML
300 | void addPerson(ActionEvent event) {
301 | String temp = PersonIDField.getText()+","+
302 | PersonNameField.getText()+","+
303 | medicalCategoryBox.getValue()+","+
304 | PersonInstitutionIDField.getText();
305 | try {
306 | String filename = "D:\\MedicalInsuranceSystem\\src\\Person.txt";
307 | File file = new File(filename);
308 | RandomAccessFile raf=new RandomAccessFile(file, "rw");
309 | //将写文件指针移到文件尾。
310 | raf.seek(raf.length());
311 | raf.writeBytes("\r\n" + temp);
312 | raf.close();
313 |
314 | } catch (FileNotFoundException e) {
315 | System.out.println("FileNotFoundException");
316 | } catch (IOException e) {
317 | System.out.println("IOException");
318 | }
319 | IO.loadAddPerson(addPersonList);
320 | for(Person person:addPersonList){
321 | Person person1 = new Person(person.getPersonID(),person.getPersonName(),person.getInstitutionID());
322 | personData.add(person1);
323 | }
324 | PersonIDColumn.setCellValueFactory(cellData -> cellData.getValue().personIDpProperty());
325 | PersonNameColumn.setCellValueFactory(cellData -> cellData.getValue().personNamepProperty());
326 | }
327 | @FXML
328 | void changePerson(ActionEvent event) {
329 | String personID1 = PersonIDField1.getText();
330 | String personName1 = PersonNameField1.getText();
331 | String medicalCategory1 = medicalCategoryBox1.getValue();
332 | String institutionID1 = PersonInstitutionIDField1.getText();
333 | try{
334 | String filename = "D:\\MedicalInsuranceSystem\\src\\Person.txt";
335 | File file = new File(filename);
336 | BufferedReader reader = new BufferedReader(new FileReader(file));
337 | String temp;
338 | String firstLine = "";
339 | int i = 1;
340 | while((temp = reader.readLine()) != null) {
341 | if(i >= 2 ){
342 | String personID = temp.split(",")[0];
343 | if (personID.equals(personID1)){
344 | Person person = new Person(personID1,personName1,medicalCategory1,institutionID1);
345 | changedPersonList.add(person);
346 | }
347 | else{
348 | String personName = temp.split(",")[1];
349 | String medicalCategory = temp.split(",")[2];
350 | String institutionID = temp.split(",")[3];
351 | Person person = new Person(personID,personName ,medicalCategory ,institutionID );
352 | changedPersonList.add(person);
353 | }
354 | }
355 | else{
356 | firstLine = temp;
357 | }
358 | i++;
359 | }
360 | ArrayList listStr = new ArrayList();;
361 | listStr.add(firstLine);
362 | for (Person person: changedPersonList) {
363 | String temp1 = person.getPersonID()+","+person.getPersonName()+","
364 | +person.getMedicalCategory()+","+person.getInstitutionID();
365 | listStr.add(temp1);
366 | }
367 | OutputStreamWriter write = new OutputStreamWriter(new FileOutputStream(filename),"UTF-8");
368 | BufferedWriter bw = new BufferedWriter(write);
369 | //遍历集合
370 | for(String s : listStr){
371 | //写数据
372 | bw.write(s);
373 | bw.newLine();
374 | bw.flush();
375 | }
376 | //释放资源
377 | bw.close();
378 | // for (String str : listStr) {// 遍历listStr集合
379 | // FileOutputStream fos = null;
380 | // PrintStream ps = null;
381 | // try {
382 | // fos = new FileOutputStream(file1);
383 | // ps = new PrintStream(fos);
384 | // } catch (FileNotFoundException e) {
385 | // e.printStackTrace();
386 | // }
387 | // String string = str + "\r\n";// +换行
388 | // ps.print(string); // 执行写操作
389 | // ps.close(); // 关闭流
390 | // }
391 | System.out.println("文件写入完毕!");
392 | } catch (FileNotFoundException e) {
393 | System.out.println("FileNotFoundException");
394 | } catch (IOException e) {
395 | System.out.println("IOException");
396 | }
397 | }
398 | @FXML
399 | void deletePerson(ActionEvent event) {
400 | //进行列表中的删除
401 | int selectedIndex = PersonTable.getSelectionModel().getSelectedIndex();
402 | PersonTable.getItems().remove(selectedIndex);
403 | //进行数据中的删除
404 | // personData.remove(selectedIndex);
405 | // IO.deletePerson();
406 | }
407 |
408 | /**极其完美的一次对ID和名称进行搜索的编码*/
409 | @FXML
410 | void searchPerson(ActionEvent event) {
411 | ObservableList newpersonData = FXCollections.observableArrayList();
412 | for(Person person:personData){
413 | if(person.personIDpProperty().get().compareTo(searchPersonField.getText())==0||
414 | person.personNamepProperty().get().compareTo(searchPersonField.getText())==0){
415 | newpersonData.add(person);
416 | }else{
417 | System.out.println("");
418 | }
419 | }
420 | PersonTable.setItems(newpersonData);
421 | }
422 |
423 |
424 |
425 | @FXML
426 | void addCompany(ActionEvent event) {
427 |
428 | }
429 | @FXML
430 | void changeCompany(ActionEvent event) {
431 |
432 | }
433 | @FXML
434 | void deleteCompany(ActionEvent event) {
435 |
436 | }
437 | @FXML
438 | void searchCompany(ActionEvent event) {
439 |
440 | }
441 |
442 | /**
443 | * 返回主菜单
444 | * */
445 | @FXML
446 | void backToMenu(ActionEvent event) {
447 | Stage primaryStage = Main.getStage();
448 | try {
449 | primaryStage.setTitle("Menu");
450 | Scene scene = new Scene(FXMLLoader.load(getClass().getResource("MenuController.fxml")));
451 | primaryStage.setScene(scene);
452 | scene.getStylesheets().add(this.getClass().getResource("Menu.css").toExternalForm());
453 |
454 | } catch (Exception e) {
455 | e.printStackTrace();
456 | }
457 | }
458 |
459 |
460 |
461 |
462 |
463 |
464 |
465 |
466 |
467 |
468 |
469 |
470 |
471 |
472 |
473 |
474 |
475 | }
476 |
477 |
478 |
479 |
480 |
481 |
482 |
483 |
484 |
485 |
486 |
487 |
488 |
489 |
490 |
491 |
492 |
493 |
494 |
495 |
496 |
497 |
498 |
499 |
500 |
501 |
502 |
503 |
504 |
505 |
506 |
507 |
508 |
509 |
510 |
511 |
512 |
513 |
514 |
515 |
516 |
517 |
518 |
519 |
520 |
521 |
522 |
523 |
524 |
525 |
526 |
527 |
528 |
529 |
530 |
531 |
532 |
--------------------------------------------------------------------------------