コード例 #1
0
  private void writeDISatz(NukeMrcommerceItems item) throws IOException {

    JDCsvWriter writer = configurationController.getCSVController().getWriterDI();
    if (writer != null) {
      writer.write("4");
      writer.write(Integer.toString(item.getNukeItemId()));
      writer.write(item.getNukeItemName());
      writer.endRecord();
    }
  }
コード例 #2
0
  private void writeKTSatz(NukeMrcommerceArrangementCity arrCity, NukeMrcommerceItems item)
      throws IOException {
    // int id = arrCity.getNukeMrcommerceEventsArrangementCitiesPK().getArrangementToCityId();
    JDCsvWriter writer = configurationController.getCSVController().getWriterKT();

    if (writer != null) {
      configurationController.setProperty(
          Globals.PREFIXARRCITY + arrCity.getId(), arrCity.getId().toString());

      //   Versicherungserträge AT	VERSICHERUNGSERTRÄGE AT	x	x	0	1	1	0	x	x	x	x	2	1
      String desc =
          item.getNukeItemName() + " - " + arrCity.getNukeMrcommerceAddress().getDescription();
      writer.write("2");
      writer.write(arrCity.getId().toString());
      writer.write(desc);
      writer.endRecord();
    }
  }
コード例 #3
0
  public void processStorno(
      Date from, Date to, File dir, LoggingHandler lh, CSVController cSVController) {
    try {
      List<Invoice> invoices =
          configurationController
              .getInvoiceJpaController()
              .findInvoiceEntitiesOrdertypeDate(4, 10, from, to, 0);

      JDCsvWriter writer = cSVController.getWriterStorno();

      for (Invoice invoice : invoices) {
        writer.write(format.format(invoice.getInvoiceDate()));
        writer.write(invoice.getInvoiceNumber());
        writer.write(Integer.toString(invoice.getPartnerID() + Globals.DEBITORSTARTVALUE));
        writer.endRecord();
      }
    } catch (IOException ex) {
      Logger.getLogger(BookingController.class.getName()).log(Level.SEVERE, null, ex);
    }
  }