天然气气费收费管理系统java源码数据库内容摘要:

vent e) { Test2 frame2=new Test2()。 if(()==btn1) { (false)。 (true)。 } } } ( 6)管理员服务界面代码 package test1。 import。 import。 import。 import。 import。 import .*。 import。 import。 import。 import。 import。 import。 import。 import。 import。 import。 public class Test6 extends JFrame implements ActionListener{ JLabel l1=new JLabel(编号: )。 JTextField t1=new JTextField()。 JButton create=new JButton(注册 )。 JButton alt=new JButton(修改 )。 JButton dlt=new JButton(注销 )。 JButton r1=new JButton(录入 )。 JButton b=new JButton(缴费 )。 JButton ret=new JButton(返回 )。 JButton sel2=new JButton(查询 )。 String[] colum={编号 ,姓名 ,本月已用 ,需缴费 }。 Object[][] row=new Object[50][4]。 JTable ta1=new JTable(row,colum)。 JScrollPane jsp=new JScrollPane(ta1)。 public Test6() { setTitle(天然气气费管理界面 )。 setSize(535,720)。 setLayout(null)。 setDefaultCloseOperation()。 (60,30)。 (30,30)。 (60, 30)。 (105,30)。 (60, 30)。 (180,30)。 (90, 30)。 (245,30)。 (60, 30)。 (415,30)。 (60,30)。 (345,30)。 (60,30)。 (220,600)。 (100,30)。 (280,600)。 (60, 30)。 (145,600)。 (450,500)。 (30,70)。 add(jsp)。 add(create)。 add(alt)。 add(dlt)。 add(r1)。 add(ret)。 add(b)。 add(sel2)。 add(l1)。 add(t1)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 } public void actionPerformed(ActionEvent e) { if((())) { Test7 frame7=new Test7()。 (false)。 (true)。 } if((())) { Test8 frame8=new Test8()。 (false)。 (true)。 } if((())) { Test9 frame9=new Test9()。 (false)。 (true)。 } if((())) { Connection con。 Statement sql。 ResultSet rs。 try{ ()。 }catch(ClassNotFoundException e1){ (this,连接数据库失败。 )。 } try{ con=(jdbc::1433。 DataBaseName=GasManagement。 user=sa。 password=dreammoon1995)。 sql=(,Res)。 for(int i=0。 i50。 i++) { for(int j=0。 j4。 j++) { (, i, j)。 } } rs=(select ,姓名 ,本月用气量 ,应付金额 from usr,record,pay where = and = )。 int k=1。 while(()) { ++k。 String Uno=(1)。 String Uname=(2)。 String gross=(3)。 String pay=(4)。 (Uno, k, 0)。 (Uname, k, 1)。 (gross, k, 2)。 (pay, k, 3)。 } }catch(SQLException e1){ (this,查询失败。 )。 } } if((())) { (false)。 Test10 frame10=new Test10()。 (true)。 } if((())) { Connection con。 Statement sql。 ResultSet rs。 try{ ()。 }catch(ClassNotFoundException e1){ (this,连接数据库失败。 )。 } try{ con=(jdbc::1433。 DataBaseName=GasManagement。 user=sa。 password=dreammoon1995)。 sql=(,Res)。 (delete from usr where 编号=39。 +()+39。 )。 (this,删除成功。 )。 ()。 }catch(SQLException e1){ (this,删除失败。 )。 } } if((())) { (false)。 Test1 frame1=new Test1()。 (true)。 } } } ( 7) 管理员开户界面代码 package test1。 import。 import .*。 import。 import。 import。 import。 import .*。 public class Test7 extends JFrame implements ActionListener{ JLabel l1=new JLabel(编号: )。 JLabel l2=new JLabel(姓名: )。 JLabel l3=new JLabel(密码: )。 JLabel l4=new JLabel(性别: )。 JLabel l5=new JLabel(手机号: )。 JLabel l6=new JLabel(地址: )。 JTextField tex1=new JTextField()。 JTextField tex2=new JTextField()。 JTextField tex3=new JTextField()。 JTextField tex4=new JTextField()。 JTextField tex5=new JTextField()。 JTextField tex6=new JTextField()。 JButton b1=new JButton(提交 )。 JButton b2=new JButton(返回 )。 public Test7() { setTitle(注册界面 )。 setSize(400,500)。 setDefaultCloseOperation()。
阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。 用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。