跳转至

可打印文档#

🔒 PrintableDocument.Show

概述#

可打印文档是“高级布局和打印”的核心对象,该模块用于标签和批次流转卡打印。

Info

“高级布局和打印”是可选的凯睿德制造软件模块。

可打印文档代表一个通用文档,其内容在打印时根据上下文动态生成,此上下文是用户输入和自动计算数据(包括序列号)的组合。

此外,它还通过对可打印文档对象进行版本控制并选择性地保留每个打印操作的历史记录(包括打印内容的预览),确保完全可追溯性。

可打印文档可用于每个对象。但是,只有物料对象有一个可用于从其详细信息页面打印文档的内置按钮。对于物料对象,要打印的文档是使用智能表格MaterialPrintableDocumentContext进行解析。对于所有其他对象类型,需要从可打印文档页面触发打印。

全局数据和版本控制数据#

可打印文档是一个更改受控对象,包含全局数据组件和版本控制数据组件,如下图所示。

graph TD
subgraph Printable Document
Main1["Global Data<br>(Without Change Control)"] --- A1[All other]
Main2["Versioned Data<br>(With Change Control)"] --- A2[Layout<br>Context Items]
end


classDef mermaid_title color:#000, fill:#fafafa, stroke:#fafafa, stroke-width:0x, font-size:100%, font-weight:200;
classDef mermaid_start color:#000, fill:#fafafa, stroke:#fafafa, color:#fafafa, stroke-width:0x, font-size:100%, visibility: hidden;
classDef mermaid_businessdata color:#000, fill:#65CDE8, stroke:#65CDE8, stroke-width:0px, font-size:100%;
classDef mermaid_nonbusinessdata color:#000, fill:#B7DEE8, stroke:#B7DEE8, stroke-width:0px, font-size:100%;
classDef mermaid_entity color:#000, fill:#FB9F53, stroke:#FB9F53, stroke-width:0px, font-size:100%;
classDef mermaid_entitylinked color:#000, fill:#FCD5B5, stroke:#FCD5B5, stroke-width:0px, font-size:100%;
classDef mermaid_context color:#000, fill:#B9CDE5, stroke:#B9CDE5, stroke-width:0px, font-size:100%;
classDef mermaid_optional color:#000, fill:#B7DEE8, stroke:#65CDE8, stroke-width:1px, font-size:100%, stroke-dasharray: 5 5;
classDef mermaid_state color:#000, fill:#d7e4bd, stroke:#000, stroke-width:1px, font-size:100%, font-weight:300;
class Main1,Main2 mermaid_entity
class A1,A2 mermaid_entitylinked

将一切捆绑在一起#

graph LR
    A1["Entity Type<br>'Applies To'"] --- Main[Printable Document]
    C1[Area Printable Document] --- Main
    C2[Resource Data Collection Context] --- Main
    C3[Material Data Collection Context] --- Main
    C4[Printer Type Printers Context] -.- Main
    Main === L1[Printable Document Print History]
    Main === L2[Printable Document Context Item Print History]
    Main === L3[Printable Document Context Item]

classDef mermaid_title color:#000, fill:#fafafa, stroke:#fafafa, stroke-width:0x, font-size:100%, font-weight:200;
classDef mermaid_start color:#000, fill:#fafafa, stroke:#fafafa, color:#fafafa, stroke-width:0x, font-size:100%, visibility: hidden;
classDef mermaid_businessdata color:#000, fill:#65CDE8, stroke:#65CDE8, stroke-width:0px, font-size:100%;
classDef mermaid_nonbusinessdata color:#000, fill:#B7DEE8, stroke:#B7DEE8, stroke-width:0px, font-size:100%;
classDef mermaid_entity color:#000, fill:#FB9F53, stroke:#FB9F53, stroke-width:0px, font-size:100%;
classDef mermaid_entitylinked color:#000, fill:#FCD5B5, stroke:#FCD5B5, stroke-width:0px, font-size:100%;
classDef mermaid_context color:#000, fill:#B9CDE5, stroke:#B9CDE5, stroke-width:0px, font-size:100%;
classDef mermaid_optional color:#000, fill:#B7DEE8, stroke:#65CDE8, stroke-width:1px, font-size:100%, stroke-dasharray: 5 5;
class Main mermaid_entity
class A1,A2,A3,A4,A5,A6,A7,A8,A9,A10 mermaid_businessdata
class L1,L2,L3,L4,L5,L6 mermaid_entitylinked
class C1,C2,C3,C4,C5,C6 mermaid_context
class N1,N2,N3,N4,N5,N6 mermaid_nonbusinessdata

click Main "../../business-data/printable-document"
click C1 "../../administration/tables/smart-tables/areaprintabledocumentcontext"
click C2 "../../administration/tables/smart-tables/resourcedatacollectioncontext"
click C3 "../../administration/tables/smart-tables/materialdatacollectioncontext"
click C4 "../../administration/tables/smart-tables/printertypeprinterscontext"

步骤顺序#

正确使用可打印文档的必要步骤如下:

  1. 创建可打印文档 - 请注意,必须将可打印文档变更集关联。
  2. 使用布局编辑器创建或编辑可打印文档布局。
  3. 批准变更集,该变更集包含已创建的可打印文档

Info

为方便起见,可以将可打印文档配置为使用隐式变更集。有关详细信息,请参阅变更集部分。