Package | Description |
---|---|
org.sistema.cs.doc |
All persistent classes from this package will be removed
(21-apr-2019 Juan Díaz)
|
org.sistema.cs.doc.persist |
Classes and interfaces based on the Persistent framework/library
modeling generic documents.
|
org.sistema.cs.sale.persist |
Classes and interfaces based on the Persistent framework/library
modeling sales related documents.
|
Modifier and Type | Method and Description |
---|---|
IDoc |
DocModule.loadDocument(IDoc pd)
Loads a full document instance
|
Modifier and Type | Method and Description |
---|---|
java.lang.Class |
DocModule.getDocClass(IDoc d)
Retrieves the class configured to represent a document type.
|
JCSDocType |
DocModule.getDocType(IDoc d)
Retrieves the enum type of a given document
|
IDoc |
DocModule.loadDocument(IDoc pd)
Loads a full document instance
|
Modifier and Type | Interface and Description |
---|---|
interface |
IDocItemized
A document that contains items,
and which value is based on the sum of values of those items.
|
interface |
IDocValued
A document with an accepted value in a given currency.
|
interface |
IInvoice
An invoice.
|
Modifier and Type | Class and Description |
---|---|
class |
Doc
Base implementation of a document.
|
class |
DocItemized
A document containing items.
|
class |
DocValued
A document with a value in a given currency.
|
Modifier and Type | Method and Description |
---|---|
IDoc |
DocItem.getParent() |
IDoc |
IDocItem.getParent()
Retrieves the document, parent of the item.
|
IDoc |
DocRelation.getSource() |
IDoc |
IDocRelation.getSource()
Retrieves the source document of the relation.
|
IDoc |
DocRelation.getTarget() |
IDoc |
IDocRelation.getTarget()
Retrieves the target document of the relation.
|
Modifier and Type | Method and Description |
---|---|
static java.util.Collection<IDoc> |
DocUtilities.readRelatedDocuments(java.util.Collection<IDoc> documents,
java.util.Collection filter)
Builds a collection with documents related to some documents.
|
static java.util.Collection<IDoc> |
DocUtilities.readRelatedDocuments(IDocItemized doc,
java.util.Collection<IDocType> typeFilter) |
static java.util.Collection<IDoc> |
DocUtilities.readRelatedDocuments(java.lang.Integer docId,
java.util.Collection<IDocItem> docItems,
java.util.Collection<IDocType> typeFilter)
Reads all documents related to each child present
in a collection of
IDocItem relationships. |
Modifier and Type | Method and Description |
---|---|
IDocRelation |
Doc.addSource(IDoc source,
IDocRelationType type) |
IDocRelation |
IDoc.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 |
Doc.addTarget(IDoc target,
IDocRelationType type) |
IDocRelation |
IDoc.addTarget(IDoc target,
IDocRelationType type)
Adds a related document as the target of the relationship
with
this document as the source of the relationship. |
static int |
DocUtilities.compare(IDoc doc,
java.time.ZonedDateTime date)
Compares the date of a document to a zoned time.
|
static java.util.Collection |
DocUtilities.getPayments(IDoc document,
java.util.Date closingDate)
Retrieves the payments
|
static java.lang.Boolean |
DocUtilities.isDocumentCancelled(IDoc document)
Standard way to determine if a document has been cancelled.
|
private static boolean |
DocUtilities.isToBeAdded(java.util.Collection<IDoc> docs,
java.util.Collection<IDocType> filter,
IDoc doc)
Determines whether a given document should be added
to a collection of documents or not.
|
void |
DocItem.setParent(IDoc parent) |
void |
IDocItem.setParent(IDoc parent)
Sets the document, parent of the item.
|
void |
IItem.setParent(IDoc parent) |
void |
Item.setParent(IDoc parent) |
void |
DocRelation.setSource(IDoc source) |
void |
IDocRelation.setSource(IDoc source)
Sets the source document of the relationship.
|
void |
DocRelation.setTarget(IDoc target) |
void |
IDocRelation.setTarget(IDoc target)
Sets the target document of the relationship.
|
Modifier and Type | Method and Description |
---|---|
static int |
DocUtilities.count(java.util.Collection<IDoc> docs,
IDocType type)
Counts the number of documents of a given type.
|
private static boolean |
DocUtilities.isToBeAdded(java.util.Collection<IDoc> docs,
java.util.Collection<IDocType> filter,
IDoc doc)
Determines whether a given document should be added
to a collection of documents or not.
|
static java.util.Collection<IDoc> |
DocUtilities.readRelatedDocuments(java.util.Collection<IDoc> documents,
java.util.Collection filter)
Builds a collection with documents related to some documents.
|
Constructor and Description |
---|
DocRelation(IDoc s,
IDoc t,
IDocRelationType type) |
Modifier and Type | Interface and Description |
---|---|
interface |
ICOrder
Operations of a customer order.
|
interface |
ISaleDoc
Operations of a sale document.
|
Modifier and Type | Class and Description |
---|---|
class |
COrder
A customer order.
|
class |
SaleDocument
A sales document.
|