Final Presentation Herbs System Introduction to Group A4 Members. Introduction to our Consultants : Group B2 Members. Contents of the Presentation: Part A : General Introduction of the simulation system of Chinese medicine shop. Part B : Original System Design Aspects of the simulation system. Part C : JAVA ( Version 1 ) Implementation and Study Situations. Part D : JAVA ( Version 2 ) Implementation and Study Situations. Part E : C++ Implementation and Study Situations. Part F : Conclusion. Part A : Introduction of the simulation system of Chinese medicine shop. Part B : Original System Design Aspects of the simulation system. Part C : JAVA ( Version 1 ) Implementation and Study Situations. About the Elimination of services of the system Why we have to eliminate some of the services? • Since there involve so many items • Difficult to perform • Have not enough time Part C : JAVA ( Version 1 ) Implementation and Study Situations. About the Elimination of services of the system Does the elimination will make the system cause problems? • Main purpose is performed • Herbalist is not affected • Shop Assistant is not affected Part C : JAVA ( Version 1 ) Implementation and Study Situations. About the Elimination of services of the system What we have chosen? What we have eliminated? • Create the patient record for new patient. • Modify the patient record for already exist record. • Delete the patient record for useless record. • Check the patient record for only look back the old record. • Create the prescription for patient. • Check the patient’s prescription. • Check the herbs’ information including properties and purpose. • Check the nutrition soup list. • Manage the storage involve herbs quantities. Part C : JAVA ( Version 1 ) Implementation and Study Situations. About the Elimination of services of the system What we have chosen? What we have eliminated? • Calculate the expense of the customers and receive money • Manage the expenditure of the shop. • Make account of income and expenditure. • A clear and detail described receipt to patients. • A queuing system that possible to handle the registered patients. Part C : JAVA ( Version 1 ) Implementation and Study Situations. Program Implementation Descriptions. Herbs System Herbalist Patient Record Create Prescription Shopkeeper Check Prescription Shop Assistant Check Herbs Quantity Herb Information Herb Info Soup Info Part C : JAVA ( Version 1 ) Implementation and Study Situations. Program Implementation Descriptions. Objects and methods used in the program. JFrame , JMenuBar , JTabbedPane , JPanel , JTextField , JTextArea , JCheckBox , Icon , JMenu , JMenuItem , JList , JLabel , JScrollPane , JButton. JPasswordField. Part C : JAVA ( Version 1 ) Implementation and Study Situations. Program Implementation Descriptions. Objects and methods used in the program. public void SetMenu() ; public void SetPropOfFrame() ; public void SetPatientRecFrame() ; public void SetInitOfFrame() ; public void SetLabelTextFieldToCDR() ; public void SetPOListToCDR() ; public void SetCreateHerbsListFrame() ; public void SetCheckBoxToCHL() ; public void SetCheckHerbListFrame() ; public void SetHerbsQuantity() ; public void UpdatePatientRecordList() ; public void UpdateCheckHerbsList() ; public void Add_ActionListener_to_Items() ; Part C : JAVA ( Version 1 ) Implementation and Study Situations. Program Implementation Descriptions. The data files that will be used in the program. 1. HerbsName.txt. A list of the herbs name written in the file 2. HerbsQuantity.txt A list of the herbs quantities written in the data file. 3. A package of Patient’s record (PatientRecordTxt ) This package include all of the patients’ Records. 4. A package of Patient’s prescription ( PatientHerbsList ) This package include all of the patients’ Prescriptions . 5. A package of herb Information( herbName) 6. A package of Soup Information( soup) Part C : JAVA ( Version 1 ) Implementation and Study Situations. Program Implementation Descriptions. Simple descriptions about the linkage of the methods within objects public void SetMenu() ; JFrame JMenuBar JMenu JMenuItem. public void SetCheckBoxToCHL() ; JCheckBox JList JTextArea public void SetPatientRecFrame() ; JTabbedPane JPanel JList JLabel JTextField JTextArea JScrollPane JButton. Part C : JAVA ( Version 1 ) Implementation and Study Situations. Program Implementation Descriptions. Simple descriptions about the linkage of the methods within objects public void SetCheckHerbListFrame() ; public void SetHerbsQuantity() ; JTextField JLabel JButton JPanel JTextArea JLabel JButton JList public void SetCreateHerbsListFrame() ; Icon JTextField JLabel JList. JTextField Part C : JAVA ( Version 1 ) Implementation and Study Situations. 4. Sample Output. a) Some descriptions about the functions of the user interface. There are five item in the menu bar. Doctor. Shopkeeper. Assistant. Herb info. Help. Patient Record Herbs manage programming algorithms 1) For every patient, we use a individual file to keep his information. name last name gender birthday contact number remark. Many file will be created, but easy to manager 2) There are only one text file to contains information. name last name gender birthday contact number remark name last name gender birthday contact number remark name last name gender birthday contact number remark Only one file, but it will dazzle the eyes programming algorithms Physically create/delete file from hard disk. Can created n patients. We use a for loop generate large amount button, label. And add the index to each label from data file. File Processing FileReader file = new FileReader("PatientRecordTxt\\"+"PRnamelist.txt"); BufferedReader in = new BufferedReader(file); There are many part we must extend in future. • Count the cost. • Queue function. • Reference Libraries.