public class Doc extends org.sistema.persist.Persistent implements IDoc
Constructor and Description |
---|
Doc() |
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. |
org.sistema.jcs.atlas.ICurrency |
getCurrency() |
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 |
setCurrency(org.sistema.jcs.atlas.ICurrency currency) |
void |
setDate(java.util.Date d) |
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 n)
Sets the document number
|
void |
setStatus(java.lang.Integer status)
Sets the status of the document.
|
void |
setTime(java.util.Date t) |
void |
setType(IDocType type) |
java.lang.String |
toString() |
addAttribute, addAttribute, equals, getAttribute, getAttributeMaximumLength, getAttributeMinimumLength, getAttributeValue, getField, getFieldFlagValue, getFieldNames, getFields, getFieldsUnsavedElements, getFieldValue, getPrimaryKey, getValue, hasUnsavedElements, isAttributeEditable, isAttributeRequired, isAttributeVisible, isAttributeVisible, isDeletable, isDeleted, isEditable, isFieldModified, isFieldState, isModified, isModifiedBase, isNew, setAttributeValue, setDeletable, setDeleted, setFieldFlag, setFieldState, setFieldValue, setNew
public IDocRelation add(IDocRelation relation)
IDoc
public IDocRelation addSource(IDoc source, IDocRelationType type)
IDoc
this
document as the target of the relationship.public IDocRelation addTarget(IDoc target, IDocRelationType type)
IDoc
this
document as the source of the relationship.public org.sistema.jcs.atlas.ICurrency getCurrency()
public java.util.Date getDate()
public java.lang.Integer getId()
public org.sistema.cs.agenda.IAgendaEntry getEntry()
public java.lang.String getNumber()
public java.util.Map<java.lang.Integer,IDocRelation> getRelatedDocs()
getRelatedDocs
in interface IDoc
this
document.public java.lang.Integer getStatus()
public IDocType getType()
public boolean isStatus(int flag)
public void setCurrency(org.sistema.jcs.atlas.ICurrency currency)
currency
- public void setEntry(org.sistema.cs.agenda.IAgendaEntry entry)
IDoc
public void setId(java.lang.Integer id)
IDoc
public void setNumber(java.lang.String n)
IDoc
public void setStatus(java.lang.Integer status)
IDoc
public java.lang.String toString()
toString
in class java.lang.Object