• applentapplentapplentapplent

    public void click_AddSign(){ if(gettxfLat().getText().equals("")||gettxfLat().getText()==null){ JOptionPane.showMessageDialog(null, "经度不能为空,请填写!"); gettxfLat().requestFocus(); }else if(gettxfLog().getText().equals("")||gettxfLog().getText()==null){ JOptionPane.showMessageDialog(null, "纬度不能为空,请填写!"); gettxfLog().requestFocus(); }else if(gettxfName().getText().equals("")||gettxfName().getText()==null){ JOptionPane.showMessageDialog(null, "航标名称不能为空,请填写!"); gettxfName().requestFocus(); }else{ float x=Float.parseFloat(gettxfLat().getText()); float y=Float.parseFloat(gettxfLog().getText()); int tpyeid=Integer.parseInt(getcbxSigne().getSelectedItem().toString()); String name=gettxfName().getText(); String str=x+","+y+","+tpyeid+","+name; boolean f=dataServiceFactory.getDataServiceRouteSign().addRouteSign(str); if(f==true){ showDialog(); gettxfLat().setText(""); gettxfLog().setText(""); gettxfName().setText(""); } } }

    0
    75
    881KB
    2009-06-23
    9
关注 私信
上传资源赚积分or赚钱