public interface IDoc
Modifier and Type | Method and Description |
---|---|
IDocRelation |
add(IDocRelation relation)
Adds a document-relationship in which this document
is either source or target.
|
IDocRelation |
addSource(IDoc source,
IDocRelationType type)
Adds a related document as the source of the relationship
with
this document as the target of the relationship. |
IDocRelation |
addTarget(IDoc target,
IDocRelationType type)
Adds a related document as the target of the relationship
with
this document as the source of the relationship. |
java.util.Date |
getDate() |
org.sistema.cs.agenda.IAgendaEntry |
getEntry() |
java.lang.Integer |
getId() |
java.lang.String |
getNumber() |
java.util.Map<java.lang.Integer,IDocRelation> |
getRelatedDocs() |
java.lang.Integer |
getStatus() |
java.util.Date |
getTime() |
IDocType |
getType() |
boolean |
isStatus(int flag) |
void |
setDate(java.util.Date date) |
void |
setEntry(org.sistema.cs.agenda.IAgendaEntry entry)
Sets the agenda entry (customer, supplier, etc.) to which the document belongs to.
|
void |
setId(java.lang.Integer id)
Sets the unique identifier of the document.
|
void |
setNumber(java.lang.String number)
Sets the document number
|
void |
setStatus(java.lang.Integer status)
Sets the status of the document.
|
void |
setTime(java.util.Date date) |
void |
setType(IDocType type) |
IDocRelation add(IDocRelation relation)
relation
- relationship containing the child document.IDocRelation addSource(IDoc source, IDocRelationType type)
this
document as the target of the relationship.source
- A source document related to this document.type
- The type of relationshipIDocRelation addTarget(IDoc target, IDocRelationType type)
this
document as the source of the relationship.target
- Target document related to this document.type
- The type of relationshipjava.util.Date getDate()
org.sistema.cs.agenda.IAgendaEntry getEntry()
java.lang.Integer getId()
java.lang.String getNumber()
java.util.Map<java.lang.Integer,IDocRelation> getRelatedDocs()
this
document.java.lang.Integer getStatus()
java.util.Date getTime()
IDocType getType()
boolean isStatus(int flag)
flag
- void setDate(java.util.Date date)
date
- void setEntry(org.sistema.cs.agenda.IAgendaEntry entry)
entry
- Agenda entry to which the document belongs to.void setId(java.lang.Integer id)
id
- New unique id of the document.void setNumber(java.lang.String number)
number
- Number of the documentvoid setStatus(java.lang.Integer status)
status
- Status of the document.void setTime(java.util.Date date)
void setType(IDocType type)