public class KvController extends AgentController
Constructor and Description |
---|
KvController()
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
changeState(Faktura model)
Change the state of the given Faktura model.
|
void |
FilterTable(Code state,
java.time.LocalDate dateFrom,
java.time.LocalDate dateTo)
Filter the Faktura table based on the given criterias
|
void |
generateInvoice(Faktura model)
Generate the Invoice Export based on the given data model
|
Code |
getAssignedCode(int id)
Check the Code list and return the Code Model object based on the given ID
|
Code |
getAssignedCode(java.lang.String desc)
Check the Code list and return the Code Model object based on the given Description
|
void |
loadData()
Load the data from the Database and save it into the model
|
boolean |
setupAgent()
is called by create an agent. and setup default values.
|
addChild, getParent, receiveMessage, removeCildren, setParent
public boolean setupAgent()
AgentController
setupAgent
in class AgentController
public Code getAssignedCode(int id)
id
- the Code ID which should be returnedpublic Code getAssignedCode(java.lang.String desc)
desc
- the Code Description to compare which should be returnedpublic void generateInvoice(Faktura model)
model
- the data model which should be exportedpublic void changeState(Faktura model)
model
- public void FilterTable(Code state, java.time.LocalDate dateFrom, java.time.LocalDate dateTo)
state
- as nameddateFrom
- as nameddateTo
- as namedpublic void loadData()