clsXDocument¶
clsXDocument represents a single print job document linked to a print-control batch (clsXPrintControl) via XPrintControlSeqNum. It extends clsBusinessBase and inserts rows into XDOCUMENT with routing metadata (bin type, sort values), document type, email/fax routing, index text, print group label, and duplex code. New instances default XBinTypeCode = "AUTO" and CopiesCount = 1 per BR-005.
Purpose¶
- Enqueue a print job document into
XDOCUMENTlinked to a parent print-control batch. - Carry routing metadata (
XBinTypeCode, sort values,PrintGroupText) used for sequencing and grouping print jobs.
Context¶
- Namespace:
SAIF.Services.Printing.Remote - Assembly/package:
SAIF.BOF.Services.Printing.Remote - Base class:
clsBusinessBase(fromSAIF.BOF.Framework/SAIF.BOF.Business)
Public members¶
| Member | Signature | Purpose |
|---|---|---|
XDocumentSeqNum |
Public Property XDocumentSeqNum As Decimal |
Primary key; generated via GetNextSeqNum("XDOCUMENT_SEQ") in Create(). |
XPrintControlSeqNum |
Public Property XPrintControlSeqNum As Decimal |
FK to parent XPRINT_CONTROL batch header. |
CopiesCount |
Public Property CopiesCount As Decimal |
Number of copies to print; defaults to 1 in Create() per BR-005. |
FileName |
Public Property FileName As String |
Print job file name. Max length 120.* |
DocumentTypeCode |
Public Property DocumentTypeCode As SmartString |
Document type code. Max length 5.* |
EmailAddress |
Public Property EmailAddress As SmartString |
Email routing address. Max length 60.* |
FaxNum |
Public Property FaxNum As SmartString |
Fax routing number. Max length 60.* |
IdxContentsText |
Public Property IdxContentsText As SmartString |
Indexed contents/imaging text. Max length 2000.* |
XBinTypeCode |
Public Property XBinTypeCode As SmartString |
Bin routing type code; defaults to "AUTO" in Create() per BR-005. Max length 5. |
PrintGroupText |
Public Property PrintGroupText As String |
Print group label; used to collapse per-document rows for ByPrintGroup mode. Max length 60.* |
DuplexCode |
Public Property DuplexCode As String |
Duplex code stored as 5-character string.* |
StartValue |
Public Property StartValue As SmartString |
Start-of-document marker. Max length 120.* |
Sort0Value–Sort9Value |
Public Property Sort0Value As SmartString (×10) |
Ten generic sort/grouping columns for print sequencing. Max length 120 each.* |
Criteria (nested class) |
Public Class Criteria Implements IBusinessCriteria |
Holds SQL text: InsertSQL (SQL-006); CreateSQL, RetrieveSQL, UpdateSQL, DeleteSQL all unconditionally throw ApplicationException (empty/dead). |
Behavioral notes¶
Create()setsXDocumentSeqNum = GetNextSeqNum("XDOCUMENT_SEQ"),XBinTypeCode = "AUTO", andCopiesCount = 1before caller-supplied values are applied.*AfterInsertchecksRowsAffected <> 1per BR-001.- No live
RetrieveSQL,UpdateSQL, or single-itemDeleteSQL—clsXDocumentis effectively insert-only at the individual object level; collection-level retrieval and batch delete are handled byclsXDocumentCollection.
Constraints and usage notes¶
- Always set
XPrintControlSeqNumbefore inserting to link the document to a batch. XBinTypeCodeandCopiesCountdefaults can be overridden afterCreate()and before insert.RetrieveSQL,UpdateSQL, andDeleteSQLare all empty (throw) — individual document retrieve and update are not supported in this library.*
Note: Statements marked with
*were inferred from code structure, naming conventions, or contextual evidence where direct confirmation was not available in source artifacts.
Sources¶
Services\SAIF.Services.Printing.Remote\clsXDocument.vb