Elexis API documentation
Version 2.1.6 as of December 11 2011

ch.elexis.views.rechnung
Class DefaultOutputter

java.lang.Object
  extended by ch.elexis.views.rechnung.DefaultOutputter
All Implemented Interfaces:
IRnOutputter

public class DefaultOutputter
extends java.lang.Object
implements IRnOutputter

This outputter takes the output target from the case's billing syste,

Author:
Gerry

Nested Class Summary
 
Nested classes/interfaces inherited from interface ch.elexis.util.IRnOutputter
IRnOutputter.TYPE
 
Field Summary
 
Fields inherited from interface ch.elexis.util.IRnOutputter
PROP_OUTPUT_METHOD
 
Constructor Summary
DefaultOutputter()
           
 
Method Summary
 boolean canBill(Fall fall)
          check whether a case could be billed, i.e. all billing data are present.
 boolean canStorno(Rechnung rn)
          Cancelling an already output bill: Depending on the type of the outputter, this might result in propagataing the cancel information to the final destination of the bill.
 Control createSettingsControl(Composite parent)
          Create a Control to perform necessary setings for his outputter.
 Result<Rechnung> doOutput(IRnOutputter.TYPE type, java.util.Collection<Rechnung> rnn, java.util.Properties props)
          Do the actual output
 java.lang.String getDescription()
          A short textual description for this output (as Label)
 void saveComposite()
          Methode is called before dialog is closed.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultOutputter

public DefaultOutputter()
Method Detail

canBill

public boolean canBill(Fall fall)
Description copied from interface: IRnOutputter
check whether a case could be billed, i.e. all billing data are present. This should only check for required absolutely mandatory data. At output time, the outputter still can reject.

Specified by:
canBill in interface IRnOutputter
Parameters:
fall - the case to check
Returns:
true if we can send a bill from this case

canStorno

public boolean canStorno(Rechnung rn)
Description copied from interface: IRnOutputter
Cancelling an already output bill: Depending on the type of the outputter, this might result in propagataing the cancel information to the final destination of the bill.

Specified by:
canStorno in interface IRnOutputter
Parameters:
rn - the specific bill to cancel or null, if it is just a general question
Returns:
true if this outputter wants to be informed if this (or any in case of Rn==null) bill is cancelled. If an outputter does need to react on storno messages, it should return false.

createSettingsControl

public Control createSettingsControl(Composite parent)
Description copied from interface: IRnOutputter
Create a Control to perform necessary setings for his outputter.

Specified by:
createSettingsControl in interface IRnOutputter
Returns:

doOutput

public Result<Rechnung> doOutput(IRnOutputter.TYPE type,
                                 java.util.Collection<Rechnung> rnn,
                                 java.util.Properties props)
Description copied from interface: IRnOutputter
Do the actual output

Specified by:
doOutput in interface IRnOutputter
Parameters:
type - Type of the bill
rnn - collection with all bills to process
props - properties for various purposes. Can be null.
Returns:
a result indicating errors

getDescription

public java.lang.String getDescription()
Description copied from interface: IRnOutputter
A short textual description for this output (as Label)

Specified by:
getDescription in interface IRnOutputter

saveComposite

public void saveComposite()
Description copied from interface: IRnOutputter
Methode is called before dialog is closed. Used to save the widget contents before the composite is disposed;

Specified by:
saveComposite in interface IRnOutputter

Elexis API documentation
Version 2.1.6 as of December 11 2011

Copyright 2005-2011 by Gerry Weirich, Elexis