Пример #1
0
  private void myInit() {
    cmbLager.setModel(tools.Tools.newComboboxModel(LagerTools.getAll()));
    cmbLager.setSelectedIndex(
        Integer.parseInt(Main.getProps().getProperty("touch" + MODULENUMBER + "lager")));
    loadLieferant();
    cmbLieferant.setSelectedIndex(0);
    ziel = (Lager) cmbLager.getSelectedItem();
    lieferant = null;
    txtSearch.requestFocus();
    btnSofortUmbuchen.setSelected(true);
    cbZombieRevive.setSelected(true);

    pageprinter = Main.printers.getPrinters().get("pageprinter");
    etiprinter1 = Main.printers.getPrinters().get(Main.getProps().getProperty("etitype1"));
    etiprinter2 = Main.printers.getPrinters().get(Main.getProps().getProperty("etitype2"));

    form1 = etiprinter1.getForms().get(Main.getProps().getProperty("etiform1"));
    form2 = etiprinter2.getForms().get(Main.getProps().getProperty("etiform2"));
  }
Пример #2
0
  private void cmbLagerItemStateChanged(ItemEvent e) {
    if (e.getStateChange() == ItemEvent.SELECTED) {

      vorratsListeInsLogbuch();

      ziel = (Lager) cmbLager.getSelectedItem();
      Tools.log(txtLog, "=================================================================");
      Tools.log(txtLog, "Ab jetzt wird ins Lager: \"" + ziel.getBezeichnung() + "\" umgebucht.");
      Tools.log(txtLog, "=================================================================");
      Main.getProps()
          .put(
              "touch" + MODULENUMBER + "lager",
              new Integer(cmbLager.getSelectedIndex()).toString());
      loadVorratTable();
      txtSearch.requestFocus();
    }
  }
Пример #3
0
 private void btnLabel2ActionPerformed(ActionEvent e) {
   print(etiprinter2, form2, Main.getProps().getProperty("etiprinter2"));
 }
Пример #4
0
 private void btnLabel1ActionPerformed(ActionEvent e) {
   print(etiprinter1, form1, Main.getProps().getProperty("etiprinter1"));
 }