医院病人信息管理软件_java课设_含可运行程序内容摘要:

(this)。 开始修改 .addActionListener(this)。 录入修改 .addActionListener(this)。 重置 .addActionListener(this)。 选择照片 .addActionListener(this)。 Box box1=()。 (new JLabel(输入要修改信息的病历号 :,))。 (病历号 )。 (开始修改 )。 Box box2=()。 课程设计说明书 NO . 14 沈 阳 大 学 (new JLabel((新 )姓名 :,))。 (姓名 )。 Box box3=()。 (new JLabel((新 )性别 :,))。 (男 )。 (女 )。 Box box4=()。 (new JLabel((新 )科室 :,))。 (科室 )。 Box box5=()。 (new JLabel((新 )房间号 :,))。 (房间号 )。 Box box6=()。 (new JLabel((新 )出生 :,))。 (出生 )。 Box box7=()。 (new JLabel( 病人已有的数据 :,))。 (oldMess)。 Box boxH=()。 (box1)。 (box2)。 (box3)。 (box4)。 (box5)。 (box6)。 (box7)。 (())。 JPanel picPanel=new JPanel()。 ()。 (new JLabel(选择照片 :,))。 (选择照片 )。 JPanel putButton=new JPanel()。 ()。 (录入修改 )。 (重置 )。 JPanel messPanel=new JPanel()。 ()。 (boxH)。 setLayout(new BorderLayout())。 JSplitPane splitV= new JSplitPane(,picPanel,pic)。 JSplitPane splitH=new JSplitPane(,messPanel,splitV)。 add(splitH,)。 add(putButton,)。 课程设计说明书 NO . 15 沈 阳 大 学 validate()。 } public void actionPerformed(ActionEvent e){ if(()==开始修改 ||()==病历号 ){ ()。 String number=。 imagePic=null。 stu=null。 number=病历号 .getText()。 if(()0){ try { inOne=new FileInputStream(systemFile)。 inTwo=new ObjectInputStream(inOne)。 基本信息表 =(HashMapString,Patient)()。 ()。 ()。 } catch(Exception ee){} if(基本信息表 .containsKey(number)){ 录入修改 .setEnabled(true)。 选择照片 .setEnabled(true)。 stu=基本信息表 .get(number)。 (姓名 :+())。 (科室 :+())。 (房间号 :+())。 (出生日期 :+())。 if(().equals(男 )) 男 .setSelected(true)。 else 女 .setSelected(true)。 imagePic=()。 (imagePic)。 ()。 姓名 .setText(())。 房间号 .setText(())。 出生 .setText(())。 } else{ 录入修改 .setEnabled(false)。 选择照片 .setEnabled(false)。 String warning=该病历号不存在 !。 (this,warning,警告 , )。 clearMess()。 课程设计说明书 NO . 16 沈 阳 大 学 } } else{ 录入修改 .setEnabled(false)。 选择照片 .setEnabled(false)。 String warning=必须要输入病历号 !。 (this,warning, 警告,)。 clearMess()。 } } else if(()==录入修改 ){ String number=。 number=病历号 .getText()。 if(()0){ try { inOne=new FileInputStream(systemFile)。 inTwo=new ObjectInputStream(inOne)。 基本信息表 =(HashMapString,Patient)()。 ()。 ()。 } catch(Exception ee){} if(基本信息表 .containsKey(number)){ String question=该生基本信息已存在 ,您想修改他 (她 )的基本信息吗 ?。 (this,question,警告 , )。 String m=基本信息将被修改 !。 int ok=(this,m,确认 , ,)。 if(ok==){ String name=姓名 .getText()。 if(()==0) name=()。 String discipling=(String)科室 .getSelectedItem()。 if(discipling==null) discipling=()。 String grade=房间号 .getText()。 if(()==0) grade=()。 String borth=出生 .getText()。 if(()==0) borth=()。 课程设计说明书 NO . 17 沈 阳 大 学 String sex=null。 if(男 .isSelected())。
阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。 用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。