医院管理系统 压缩包内有比较详尽的安装演示与功能介绍 大家可以放心下载

源代码在线查看: message.java

软件大小: 8212 K
上传用户: zhiver
关键词: 管理系统 比较
下载地址: 免注册下载 普通下载 VIP

相关代码

				//床位管理 床位信息设置 调用conectMsg()读取数据库中床位相应信息
				package src;
				
				import java.awt.*;
				import javax.swing.*;
				import java.awt.event.*;
				import javax.swing.JLabel;
				
				public class message extends JPanel{
				  private JPanel pa1;
				  private JPanel pa2;
				  private JPanel pa3;
				  private JPanel pa4;
				  private JPanel pa5;
				  private JPanel pa6;
				  private JPanel pa7;
				  //do not find out at databass
				  public message(){
				        setLayout(new GridLayout(3,1));
				        setBorder(BorderFactory.createCompoundBorder(
				            BorderFactory.createTitledBorder("床位信息"),
				            BorderFactory.createEmptyBorder(0,1,1,1)));
				
				        JPanel jp21=new JPanel(new GridLayout(1,3));
				        pa1=new JPanel(new FlowLayout(FlowLayout.LEFT));
				        pa2=new JPanel(new FlowLayout(FlowLayout.LEFT));
				        pa3=new JPanel(new FlowLayout(FlowLayout.LEFT));
				        JLabel labe11=new JLabel("床位费  ");pa1.add(labe11);
				        labe11.setForeground(new Color(7,53,250));
				        JLabel labe12=new JLabel("床号  ");  pa2.add(labe12);
				        labe12.setForeground(new Color(7,53,250));
				        JLabel labe13=new JLabel("病历号  "); pa3.add(labe13);
				        labe13.setForeground(new Color(7,53,250));
				        jp21.add(pa1);jp21.add(pa2);jp21.add(pa3);
				        JPanel jp22=new JPanel(new GridLayout(1,3));
				        pa4=new JPanel(new FlowLayout(FlowLayout.LEFT));
				        pa5=new JPanel(new FlowLayout(FlowLayout.LEFT));
				        pa6=new JPanel(new FlowLayout(FlowLayout.LEFT));
				        JLabel labe21=new JLabel("姓名  "); pa4.add(labe21);
				        labe21.setForeground(new Color(7,53,250));
				        JLabel labe22=new JLabel("性别  "); pa5.add(labe22);
				        labe22.setForeground(new Color(7,53,250));
				        JLabel labe23=new JLabel("年龄  "); pa6.add(labe23);
				        labe23.setForeground(new Color(7,53,250));
				        jp22.add(pa4);jp22.add(pa5);jp22.add(pa6);
				        JPanel jp23=new JPanel(new GridLayout(1,2));
				        pa7=new JPanel(new FlowLayout(FlowLayout.LEFT));
				        JPanel pa8=new JPanel(new FlowLayout(FlowLayout.RIGHT));
				        JLabel labe31=new JLabel("诊断  ");
				        labe31.setForeground(new Color(7,53,250)); pa7.add(labe31);
				        pa8.add(new JLabel(new ImageIcon("images/125.gif")));
				        jp23.add(pa7);jp23.add(pa8);
				        add(jp21); add(jp22); add(jp23);
				  }
				  //find out at databass
				  public message(int num){
				        setLayout(new GridLayout(3,1));
				        setBorder(BorderFactory.createCompoundBorder(
				            BorderFactory.createTitledBorder("床位信息"),
				            BorderFactory.createEmptyBorder(0,1,1,1)));
				
				        JPanel jp21=new JPanel(new GridLayout(1,3));
				        pa1=new JPanel(new GridLayout(1,2));
				        pa2=new JPanel(new GridLayout(1,2));
				        pa3=new JPanel(new GridLayout(1,2));
				        JLabel labe11=new JLabel("床位费  ");pa1.add(labe11);
				        labe11.setForeground(new Color(7,53,250));
				        pa1.add(new JLabel(conectMsg.bedCost));
				        JLabel labe12=new JLabel("床号  ");  pa2.add(labe12);
				        labe12.setForeground(new Color(7,53,250));
				        pa2.add(new JLabel(conectMsg.bedNo));
				        JLabel labe13=new JLabel("病历号  "); pa3.add(labe13);
				        labe13.setForeground(new Color(7,53,250));
				        pa3.add(new JLabel(conectMsg.medicalNo));
				        jp21.add(pa1);jp21.add(pa2);jp21.add(pa3);
				        JPanel jp22=new JPanel(new GridLayout(1,3));
				        pa4=new JPanel(new GridLayout(1,2));
				        pa5=new JPanel(new GridLayout(1,2));
				        pa6=new JPanel(new GridLayout(1,2));
				        JLabel labe21=new JLabel("姓名  "); pa4.add(labe21);
				        labe21.setForeground(new Color(7,53,250));
				        pa4.add(new JLabel(conectMsg.sickName));
				        JLabel labe22=new JLabel("性别  "); pa5.add(labe22);
				        labe22.setForeground(new Color(7,53,250));
				        pa5.add(new JLabel(conectMsg.sex));
				        JLabel labe23=new JLabel("年龄  "); pa6.add(labe23);
				        labe23.setForeground(new Color(7,53,250));
				        pa6.add(new JLabel(conectMsg.age));
				        jp22.add(pa4);jp22.add(pa5);jp22.add(pa6);
				        JPanel jp23=new JPanel(new GridLayout(1,2));
				        pa7=new JPanel(new GridLayout(1,2));
				        JLabel labe31=new JLabel("诊断  ");
				        labe31.setForeground(new Color(7,53,250)); pa7.add(labe31);
				        pa7.add(new JLabel(conectMsg.diagnoses));
				        JPanel pa8=new JPanel(new FlowLayout(FlowLayout.RIGHT));
				        pa8.add(new JLabel(new ImageIcon("images/125.gif")));
				        jp23.add(pa7);jp23.add(pa8);
				        add(jp21); add(jp22); add(jp23);
				  }
				}			

相关资源