Beispiel #1
0
  public AusfallRechnung(
      Point pt, String pat_intern, String rez_nr, String rnummer, String rdatum) {

    super();
    afrNummer = rnummer;
    afrDatum = rdatum;
    setTitle("Kopie Ausfallrechnung erstellen");

    setSize(350, 270);
    setPreferredSize(new Dimension(350, 270));

    this.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);

    String test =
        SqlInfo.holeEinzelFeld("select id from verordn where rez_nr = '" + rez_nr + "' LIMIT 1");
    if (test.equals("")) {
      test = SqlInfo.holeEinzelFeld("select id from lza where rez_nr = '" + rez_nr + "' LIMIT 1");
      if (test.equals("")) {
        // this.dispose();
        // return;
      } else {
        vecaktrez =
            SqlInfo.holeSatz("lza", " * ", "id='" + test + "'", Arrays.asList(new String[] {}));
      }
    } else {
      vecaktrez =
          SqlInfo.holeSatz("verordn", " * ", "id='" + test + "'", Arrays.asList(new String[] {}));
    }

    patDaten =
        SqlInfo.holeSatz(
            "pat5", " * ", "pat_intern='" + pat_intern + "'", Arrays.asList(new String[] {}));
    InitHashMaps.constructPatHMap(patDaten);
    // content.add(getGebuehren(),BorderLayout.CENTER);
    // content.validate();
    // this.getContentPane().add(getGebuehren(),BorderLayout.CENTER);
    this.add(getGebuehren());

    setName("Kopie - AusfallRechnung");
    setModal(true);
    // Point lpt = new Point(pt.x-125,pt.y+30);
    Point lpt = new Point(pt.x - 150, pt.y + 30);
    // setLocation(lpt);
    this.setLocationRelativeTo(null);

    pack();
    // setVisible(true);

  }
Beispiel #2
0
 private void testeSchluessel() {
   Vector<String> vec =
       SqlInfo.holeSatz(
           "anwesend", " * ", "schrank ='" + schluessel + "'", Arrays.asList(new String[] {}));
   if (vec.size() <= 0) {
     ausgabe = true;
   } else {
     ausgabe = false;
     tfs[0].setText(vec.get(1));
     tfs[1].setText(vec.get(10));
   }
   vec.clear();
   vec = null;
 }