Elexis API documentation
Version 2.1.6 as of December 11 2011

ch.elexis.privatrechnung.data
Class Leistung

java.lang.Object
  extended by ch.elexis.data.PersistentObject
      extended by ch.elexis.data.VerrechenbarAdapter
          extended by ch.elexis.privatrechnung.data.Leistung
All Implemented Interfaces:
ICodeElement, IPersistentObject, ISelectable, IVerrechenbar

public class Leistung
extends VerrechenbarAdapter

A billing plugin that is able to manage several arbitrary tax systems

Author:
gerry

Nested Class Summary
 
Nested classes/interfaces inherited from class ch.elexis.data.PersistentObject
PersistentObject.FieldType
 
Nested classes/interfaces inherited from interface ch.elexis.data.IVerrechenbar
IVerrechenbar.DefaultComparator, IVerrechenbar.DefaultFilter, IVerrechenbar.DefaultOptifier, IVerrechenbar.NoObligationOptifier, IVerrechenbar.VatInfo
 
Field Summary
static java.lang.String CODESYSTEM_CODE
           
static java.lang.String CODESYSTEM_NAME
           
static java.lang.String XIDDOMAIN
           
 
Fields inherited from class ch.elexis.data.PersistentObject
CACHE_DEFAULT_LIFETIME, CACHE_MIN_LIFETIME, CFG_CONNECTSTRING, CFG_DRIVER, CFG_PWD, CFG_TYPE, CFG_USER, DELETED, EXISTS, INEXISTENT, INVALID_ID, MATCH_AUTO, MATCH_CONTAINS, MATCH_EXACT, MATCH_REGEXP, MATCH_START
 
Fields inherited from interface ch.elexis.data.IVerrechenbar
comparator, ifilter, optifier
 
Fields inherited from interface ch.elexis.core.data.IPersistentObject
FLD_DATE, FLD_DELETED, FLD_EXTINFO, FLD_ID, FLD_LASTUPDATE, STATE_EXISTING, STATE_INEXISTENT, STATE_INVALID_ID
 
Constructor Summary
Leistung(java.lang.String subsystem, java.lang.String parent, java.lang.String name, java.lang.String kuerzel, java.lang.String kostenInRp, java.lang.String preisInRp, java.lang.String ZeitInMin, java.lang.String DatumVon, java.lang.String DatumBis)
           
 
Method Summary
static void createTable()
           
 java.lang.String getCode()
          Das Element in Code-Form.
 java.lang.String getCodeSystemCode()
          A code to describe this code system uniquely (can be written on bills etc.)
 java.lang.String getCodeSystemName()
          The name of this code system to be displayed in the CodeSelector for the user
 java.lang.String[] getDisplayedFields()
          fields to display in code selector
 double getFactor(TimeTool date, Fall fall)
          factor to calculate the final price from the base price as stored in the table and the factor that is in effect at the given date and that migh depend from the "Fall-Type" and the billing type.
 Money getKosten(TimeTool dat)
          Eigene Kosten für diese Leistung
 java.lang.String getLabel()
          A Label for this code
 int getMinutes()
          Zeitanrechnung für diese Leistung (in Minuten)
 IOptifier getOptifier()
           
 java.lang.String getText()
          Das Element in Klartext-Form
 int getTP(TimeTool date, Fall fall)
          base price at a given date for this service
 java.lang.String getXidDomain()
           
 boolean isDragOK()
          Darf dieses Objekt mit Drag&Drop verschoben werden?
static Leistung load(java.lang.String id)
          -required- This is the standard method to construct a PersistentObject from its representation in the database.
 
Methods inherited from class ch.elexis.data.VerrechenbarAdapter
getActions, getComparator, getEKMultiplikator, getFilter, getVatInfo, getVKMultiplikator, getVKMultiplikator, setVKMultiplikator
 
Methods inherited from class ch.elexis.data.PersistentObject
addChangeListener, addSticker, addToList, addXid, begin, checkNull, checkZero, checkZeroDouble, clearCache, connect, connect, delete, deleteList, disconnect, equals, executeSQLScript, exists, exportData, fireChangeEvent, flatten, fold, get, get, getCacheTime, getConnection, getDefaultCacheLifetime, getFieldType, getId, getInt, getLastUpdate, getList, getList, getMap, getSticker, getStickers, getWrappedId, getXid, getXid, getXids, hashCode, isAvailable, isDeleted, isMatching, isMatching, isMatching, isMatching, isShowDeleted, isValid, lock, map, relock, removeChangeListener, removeFromList, removeFromList, removeSticker, resetCache, set, set, setDefaultCacheLifetime, setInt, setMap, setShowDeleted, setTrace, state, storeToString, tableExists, ts, undelete, unlock
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ch.elexis.core.data.ICodeElement
getId
 

Field Detail

XIDDOMAIN

public static final java.lang.String XIDDOMAIN
See Also:
Constant Field Values

CODESYSTEM_NAME

public static final java.lang.String CODESYSTEM_NAME
See Also:
Constant Field Values

CODESYSTEM_CODE

public static final java.lang.String CODESYSTEM_CODE
See Also:
Constant Field Values
Constructor Detail

Leistung

public Leistung(java.lang.String subsystem,
                java.lang.String parent,
                java.lang.String name,
                java.lang.String kuerzel,
                java.lang.String kostenInRp,
                java.lang.String preisInRp,
                java.lang.String ZeitInMin,
                java.lang.String DatumVon,
                java.lang.String DatumBis)
Method Detail

createTable

public static void createTable()

getXidDomain

public java.lang.String getXidDomain()

getCodeSystemCode

public java.lang.String getCodeSystemCode()
A code to describe this code system uniquely (can be written on bills etc.)

Specified by:
getCodeSystemCode in interface ICodeElement
Overrides:
getCodeSystemCode in class VerrechenbarAdapter

getCodeSystemName

public java.lang.String getCodeSystemName()
The name of this code system to be displayed in the CodeSelector for the user

Specified by:
getCodeSystemName in interface ICodeElement
Overrides:
getCodeSystemName in class VerrechenbarAdapter

getLabel

public java.lang.String getLabel()
A Label for this code

Specified by:
getLabel in interface IPersistentObject
Overrides:
getLabel in class VerrechenbarAdapter

getText

public java.lang.String getText()
Description copied from interface: ICodeElement
Das Element in Klartext-Form

Specified by:
getText in interface ICodeElement
Overrides:
getText in class VerrechenbarAdapter

getCode

public java.lang.String getCode()
Description copied from interface: ICodeElement
Das Element in Code-Form. Aus dem Code und der Klasse muss das Element sich wieder erstellen lassen

Specified by:
getCode in interface ICodeElement
Overrides:
getCode in class VerrechenbarAdapter

getKosten

public Money getKosten(TimeTool dat)
Description copied from interface: IVerrechenbar
Eigene Kosten für diese Leistung

Specified by:
getKosten in interface IVerrechenbar
Overrides:
getKosten in class VerrechenbarAdapter
Parameters:
dat - Datum, für das die Kosten geliefert werden sollen

getMinutes

public int getMinutes()
Description copied from interface: IVerrechenbar
Zeitanrechnung für diese Leistung (in Minuten)

Specified by:
getMinutes in interface IVerrechenbar
Overrides:
getMinutes in class VerrechenbarAdapter

getDisplayedFields

public java.lang.String[] getDisplayedFields()
fields to display in code selector


getFactor

public double getFactor(TimeTool date,
                        Fall fall)
factor to calculate the final price from the base price as stored in the table and the factor that is in effect at the given date and that migh depend from the "Fall-Type" and the billing type.


getTP

public int getTP(TimeTool date,
                 Fall fall)
base price at a given date for this service


load

public static Leistung load(java.lang.String id)
-required- This is the standard method to construct a PersistentObject from its representation in the database. For semantic reasons we intenionally do not use the "new" constructor for that purpose. "New" should only be used to create really "new" Objects and not to load existing objects from the database. Internally, however, load simply calls new(String). The static method load(String) must exist in every sublclass of PersistentObject, but it can always be written just exacly as here. The method needs not to guarantee that the returned object exists. It can, if desired, return a null value to indicate a inexistent object. Here we return just whatever the superclass gives us.


isDragOK

public boolean isDragOK()
Description copied from class: PersistentObject
Darf dieses Objekt mit Drag&Drop verschoben werden?

Specified by:
isDragOK in interface IPersistentObject
Overrides:
isDragOK in class PersistentObject
Returns:
true wenn ja.

getOptifier

public IOptifier getOptifier()
Specified by:
getOptifier in interface IVerrechenbar
Overrides:
getOptifier in class VerrechenbarAdapter

Elexis API documentation
Version 2.1.6 as of December 11 2011

Copyright 2005-2011 by Gerry Weirich, Elexis