Перейти до основного вмісту

Kandra.DtoCommon

Kandra.DtoCommon.Printing.CodeDateRef

An id/code/date lookup result — the Document-flavored sibling of CodeNameRef. Documents have Code+Date, not Code+Name (see DocumentBase), so a Document-typed reference (e.g. a resolved subconto value) doesn't fit CodeNameRef's shape.

Constructors

ConstructorDescription
CodeDateRef(Guid, String, DateTime)An id/code/date lookup result — the Document-flavored sibling of CodeNameRef. Documents have Code+Date, not Code+Name (see DocumentBase), so a Document-typed reference (e.g. a resolved subconto value) doesn't fit CodeNameRef's shape.

Properties

PropertyDescription
DisplayTextThe "Code - Date" display convention for a document reference, mirroring DisplayText's "Code - Name" for a dictionary reference.

Methods

MethodDescription
Combine(String, DateTime)Same combination, for call sites holding a separate Code/Date pair rather than a CodeDateRef instance.

Kandra.DtoCommon.Printing.CodeNameRef

An id/code/name lookup result — the Forms-plane (client-visible) sibling of Kandra.Domain's server-only IdNameLookupModel, used to enrich report/document print output (e.g. resolved warehouse/item filters) without exposing raw Guids.

Constructors

ConstructorDescription
CodeNameRef(Guid, String, String)An id/code/name lookup result — the Forms-plane (client-visible) sibling of Kandra.Domain's server-only IdNameLookupModel, used to enrich report/document print output (e.g. resolved warehouse/item filters) without exposing raw Guids.

Properties

PropertyDescription
DisplayTextThe single "Code - Name" display convention every Code+Name combination in this codebase should share (report grid composite columns, lookup picker labels, print output, ...) — call this instead of re-deriving the format inline.

Methods

MethodDescription
Combine(String, String)Same combination, for call sites holding separate Code/Name values rather than a CodeNameRef instance (e.g. a report line Dto's own flat WarehouseCode/WarehouseName columns).