java编写电话管理系统 - 编程入门网
作者 佚名技术
来源 NET编程
浏览
发布时间 2012-06-20
370723800121592","中国","5866689",100.0)); v.addElement(new user("李先生","370723800121593","中国","5866687",100.0)); v.addElement(new user("董先生","370723800121594","中国","5866688",100.0)); v.addElement(new user("张先生","370723800121595","中国","5866686",100.0)); v.addElement(new user("闻先生","370723800121596","中国","5866685",100.0)); v.addElement(new user("张先生","370723800121598","中国","5866684",100.0)); v.addElement(new user("杨先生","370723800121599","中国","5866683",100.0)); v.addElement(new user("孔先生","370723800121590","中国","5866682",100.0)); if(e.getSource()==pn8.btn) { String ss="123"; if(ss.compareTo(pn8.t1.getText())==0&&ss.compareTo(pn8.t2.getText())==0) cc.show(this,"two"); else { d1=new Dialog(this,"警告",true); Panel p1=new Panel(); p1.add(new Label("您无权进本系统!")); d1.add("Center",p1); Panel p2=new Panel(); p2.add(btn1); d1.add("South",p2); d1.setSize(200,100); d1.show(); } } if(e.getSource()==pn9.pn4.btn1) { double x1,x2,x3; x1=Double.valueOf(pn9.pn4.t1.getText()).doubleValue(); x2=Double.valueOf(pn9.pn4.t2.getText()).doubleValue(); x3=x1+x2; pn9.pn5.t1.setText(""+x3); int i; for(i=0;i<v.size();i++) { user s=(user)v.elementAt(i); if(s.username.compareTo(pn9.pn2.t1.getText())==0) { s.phonefee=x3; v.setElementAt(s,i); break; } } } if(e.getSource()==pn9.pn6.btn1) { int i; for(i=0;i<v.size();i++) { user s=(user)v.elementAt(i); if(s.username.compareTo(pn9.pn2.t1.getText())==0) { pn9.pn2.t2.setText(""+s.id); pn9.pn3.t1.setText(""+s.address); pn9.pn3.t2.setText(""+s.phonenumber); pn9.pn4.t1.setText(""+s.phonefee); break; } } if(i==v.size()) { d1=new Dialog(this,"警告",true); Panel p1=new Panel(); p1.add(new Label("用户不存在!请重新输入!")); d1.add("Center",p1); Panel p2=new Panel(); p2.add(btn1); d1.add("South",p2); d1.setSize(200,100); d1.show(); } } if(e.getSource()==pn9.pn6.btn2) { int i; for(i=0;i<v.size();i++) { user s=(user)v.elementAt(i); if(s.phonenumber.compareTo(pn9.pn3.t2.getText())==0) { pn9.pn2.t1.setText(""+s.username); pn9.pn2.t2.setText(""+s.id); pn9.pn3.t1.setText(""+s.address); pn9.pn4.t1.setText(""+s.phonefee); break; } } if(i==v.size()) { d1=new Dialog(this,"警告",true); Panel p1=new Panel(); p1.add(new Label("用户不存在!请重新输入!")); d1.add("Center",p1); Panel p2=new Panel(); p2.add(btn1); d1.add("South",p2); d1.setSize(200,100); d1.show(); } } if(e.getSource()==pn9.pn7.btn5) { dispose(); System.exit(0); } if(e.getSource()==btn1) { d1.dispose(); } if(e.getS |
凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢! |
你可能对下面的文章感兴趣
关于java编写电话管理系统 - 编程入门网的所有评论