Blame view

美国版/Food Labeling Management Code/Yi.Abp.Net8/module/food-labeling-us/FoodLabeling.Application.Contracts/Dtos/UsAppLabeling/UsAppLabelPreviewDto.cs 1.45 KB
a4baaa73   李曜臣   模板与产品关联实现
1
2
  using System;
  using System.Collections.Generic;
536d25c4   李曜臣   打印预览,产品分类接口实现
3
4
5
6
7
8
9
10
11
  using FoodLabeling.Application.Contracts.Dtos.Label;
  
  namespace FoodLabeling.Application.Contracts.Dtos.UsAppLabeling;
  
  /// <summary>
  /// App 标签预览出参(顶部信息 + 预览模板结构)
  /// </summary>
  public class UsAppLabelPreviewDto
  {
a4baaa73   李曜臣   模板与产品关联实现
12
13
      public string LabelId { get; set; } = string.Empty;
  
536d25c4   李曜臣   打印预览,产品分类接口实现
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
      public string LocationId { get; set; } = string.Empty;
  
      public string LabelCode { get; set; } = string.Empty;
  
      public string? TemplateCode { get; set; }
  
      public string? LabelSizeText { get; set; }
  
      public string? TypeName { get; set; }
  
      public string? ProductName { get; set; }
  
      public string? ProductCategoryName { get; set; }
  
      public string? LabelCategoryName { get; set; }
  
a4baaa73   李曜臣   模板与产品关联实现
30
31
      public DateTime? LabelLastEdited { get; set; }
  
536d25c4   李曜臣   打印预览,产品分类接口实现
32
33
34
35
36
37
38
39
40
      /// <summary>
      /// 预览图(base64 png,可空;若为空,客户端可用 Template 自行渲染)
      /// </summary>
      public string? PreviewImageBase64Png { get; set; }
  
      /// <summary>
      /// 预览模板结构(与 LabelCanvas/LabelPreviewOnly 结构尽量一致)
      /// </summary>
      public LabelTemplatePreviewDto Template { get; set; } = new();
a4baaa73   李曜臣   模板与产品关联实现
41
42
43
44
45
46
  
      /// <summary>
      /// 当前预览上下文(模板+产品+标签类型)命中的默认值配置。
      /// 数据来源:fl_label_template_product_default.DefaultValuesJson
      /// </summary>
      public Dictionary<string, object?>? TemplateProductDefaultValues { get; set; }
536d25c4   李曜臣   打印预览,产品分类接口实现
47
  }