课程设计药房管理系统内容摘要:

(font)。 (100, 80, 70, 20)。 (docNoLabel)。 YesBtn = new JButton(确定 )。 (font)。 (130,150,80, 30)。 (YesBtn)。 NoBtn = new JButton(取消 )。 (font)。 (220,150,80, 30)。 (NoBtn)。 (new ActionListener() { @Override public void actionPerformed(ActionEvent e) { // TODO 自动生成的方法存根 (0)。 } })。 (new ActionListener() //添加确认按钮响应 { @Override public void actionPerformed(ActionEvent e) { // TODO 自动生成的方法存根 String sql=delete from Doctor where Dnum=+()+。 (sql)。 //OperatSFrame frame=new OperatSFrame()。 } })。 } public static JTextField getdocNo() { if(docNo==null){ docNo=new JTextField()。 (180,80,150,20)。 (font)。 ()。 } return docNo。 } //public void setFrame(LoginFrame frame){ // =frame。 //} } class DocSerFrame extends JFrame //查询医生 { private JButton YesBtn,NoBtn。 private JLabel DNoLabel。 private static JTextField DNo。 private static Font font=new Font(楷体 ,14)。 public DocSerFrame() { (查询医生 )。 (400,400)。 (null)。 (false)。 (true)。 ()。 (getDNo())。 } private void addCompnents() { DNoLabel=new JLabel(医生编号 :)。 (font)。 (100, 80, 80, 20)。 (DNoLabel)。 YesBtn = new JButton(确定 )。 (font)。 (130,150,80, 30)。 (YesBtn)。 NoBtn = new JButton(取消 )。 (font)。 (220,150,80, 30)。 (NoBtn)。 (new ActionListener() { @Override public void actionPerformed(ActionEvent e) { // TODO 自动生成的方法存根 (0)。 } })。 (new ActionListener() //添加确认按钮响应 { @Override public void actionPerformed(ActionEvent e) { // TODO 自动生成的方法存根 OperatSFrame frame=new OperatSFrame()。 } })。 } public static JTextField getDNo() { if(DNo==null){ DNo=new JTextField()。 (190,80,150,20)。 (font)。 ()。 } return DNo。 } } class CheAddFrame extends JFrame //添加药剂师 { private JButton YesBtn,NoBtn。 private static JTextField CheName,CheNo。 //空白区 private JLabel CheNameLabel,CheNoLabel。 //提示区 private static Font font=new Font(楷体 ,14)。 public CheAddFrame() { (添加药剂师 )。 (400,300)。 (null)。 (false)。 (true)。 ()。 (getCheName())。 (getCheNo())。 } private void addCompnents() { CheNameLabel=new JLabel(药剂师姓名 :)。 (font)。 (100, 10, 100, 20)。 (CheNameLabel)。 CheNoLabel=new JLabel(药剂师编号 :)。 (font)。 (100, 50, 100, 20)。 (CheNoLabel)。 YesBtn = new JButton(确定 )。 (font)。 (130,150,80, 30)。 (YesBtn)。 NoBtn = new JButton(取消 )。 (font)。 (220,150,80, 30)。 (NoBtn)。 (new ActionListener() { @Override public void actionPerformed(ActionEvent e) { // TODO 自动生成的方法存根 (0)。 } })。 (new ActionListener() //添加确认按钮响应 { @Override public void actionPerformed(ActionEvent e) { // TODO 自动生成的方法存根 String sql=insert into Chemist(Cnum,Cname)values(+()+,39。 +()+39。 )。 (sql)。 OperatSFrame frame=new OperatSFrame()。 } })。 } public static JTextField getCheName() { if(CheName==null){ CheName=new JTextField()。 (200,10,150,20)。 (font)。 ()。 } return CheName。 } public static JTextField getCheNo() { if(CheNo==null) { CheNo=new JTextField()。 (font)。 (200,50,150,20)。 ()。 } return CheNo。 } } class CheAltFrame extends JFrame //修改药剂师 { private JButton YesBtn,NoBtn。 private static JTextField CheName,CheNo1,CheNo2。 //空白区 private JLabel CheNameLabel,CheNoLabel1,CheNoLabel2。 //提示区 private static Font font=new Font(楷体 ,14)。 public CheAltFrame() { (修改药剂师 )。 (400,300)。 (null)。 (false)。 (true)。 ()。 (getCheNo1())。 (getCheNo2())。 (getCheName())。 } private void addCompnents() { CheNoLabel1=new JLabel(药剂师原编号 :)。 (font)。 (100, 10, 100, 20)。 (CheNoLabel1)。 CheNoLabel2=new JLabel(修改药剂师编号 :)。 (font)。 (100, 50, 100, 20)。 (CheNoLabel2)。 CheNameLabel=new JLabel(修改药剂师编号 :)。 (font)。 (100, 90, 100, 20)。 (CheNameLabel)。 YesBtn = new JButton(确定 )。 (font)。 (130,150,80, 30)。 (YesBtn)。 NoBtn = new JButton(取消 )。 (font)。 (220,150,80, 30)。 (NoBtn)。 (new ActionListener() {。
阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。 用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。