Blame view

美国版/Food Labeling Management Code/Yi.Abp.Net8/module/food-labeling-us/FoodLabeling.Application.Contracts/Dtos/LabelTemplate/LabelTemplateCreateInputVo.cs 3.69 KB
919c1b6a   李曜臣   1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
  using System.Text.Json.Serialization;
  
  namespace FoodLabeling.Application.Contracts.Dtos.LabelTemplate;
  
  public class LabelTemplateCreateInputVo
  {
      /// <summary>
      /// editor JSON 里的 id,对应数据库 fl_label_template.TemplateCode
      /// </summary>
      [JsonPropertyName("id")]
      public string TemplateCode { get; set; } = string.Empty;
  
      /// <summary>
      /// editor JSON 里的 name,对应数据库 fl_label_template.TemplateName
      /// </summary>
      [JsonPropertyName("name")]
      public string TemplateName { get; set; } = string.Empty;
  
      [JsonPropertyName("labelType")]
      public string? LabelType { get; set; }
  
      [JsonPropertyName("unit")]
      public string Unit { get; set; } = "inch";
  
      [JsonPropertyName("width")]
      public decimal Width { get; set; }
  
      [JsonPropertyName("height")]
      public decimal Height { get; set; }
  
      /// <summary>
49755ef0   李曜臣   6-12代码优化
32
      /// editor JSON 里的 appliedLocationALL / SPECIFIEDLocation 维度)
919c1b6a   李曜臣   1
33
34
35
36
      /// </summary>
      [JsonPropertyName("appliedLocation")]
      public string AppliedLocationType { get; set; } = "ALL";
  
49755ef0   李曜臣   6-12代码优化
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
      /// <summary>适用 CompanyALL / SPECIFIED</summary>
      [JsonPropertyName("appliedPartnerType")]
      public string? AppliedPartnerType { get; set; }
  
      /// <summary>适用 Company(与 <see cref="CompanyIds"/> 合并)</summary>
      [JsonPropertyName("partnerIds")]
      public List<string>? PartnerIds { get; set; }
  
      /// <summary>适用 Company<c>fl_partner.Id</c>,与 <see cref="PartnerIds"/> 相同)</summary>
      [JsonPropertyName("companyIds")]
      public List<string>? CompanyIds { get; set; }
  
      /// <summary>适用 RegionALL / SPECIFIED</summary>
      [JsonPropertyName("appliedRegionType")]
      public string? AppliedRegionType { get; set; }
  
919c1b6a   李曜臣   1
53
54
55
56
57
58
      [JsonPropertyName("showRuler")]
      public bool ShowRuler { get; set; } = true;
  
      [JsonPropertyName("showGrid")]
      public bool ShowGrid { get; set; } = true;
  
540ac0e3   杨鑫   前端修改bug
59
60
61
62
      /// <summary>整标签外框:none / line / dotted</summary>
      [JsonPropertyName("border")]
      public string BorderType { get; set; } = "none";
  
4cb354d4   杨鑫   提交
63
64
65
66
      /// <summary>打印方向:vertical / horizontal</summary>
      [JsonPropertyName("printOrientation")]
      public string PrintOrientationType { get; set; } = "vertical";
  
919c1b6a   李曜臣   1
67
68
69
70
71
72
73
74
75
76
77
78
79
      /// <summary>
      /// 预留:前端可能不传;如果不传则默认 true
      /// </summary>
      [JsonPropertyName("state")]
      public bool State { get; set; } = true;
  
      /// <summary>
      /// elements(前端 editor  elements[],会全量重建)
      /// </summary>
      [JsonPropertyName("elements")]
      public List<LabelTemplateElementDto> Elements { get; set; } = new();
  
      /// <summary>
49755ef0   李曜臣   6-12代码优化
80
      ///  AppliedLocationType=SPECIFIED 时生效(与 <see cref="LocationIds"/> 合并去重)
919c1b6a   李曜臣   1
81
82
      /// </summary>
      [JsonPropertyName("appliedLocationIds")]
49755ef0   李曜臣   6-12代码优化
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
      public List<string>? AppliedLocationIds { get; set; }
  
      /// <summary>
      /// 适用 Region 多选(<c>fl_group.Id</c>);与 <see cref="GroupIds"/> 合并去重
      /// </summary>
      [JsonPropertyName("regionIds")]
      public List<string>? RegionIds { get; set; }
  
      /// <summary>
      /// 适用 Region 多选,与 <see cref="RegionIds"/> 相同
      /// </summary>
      [JsonPropertyName("groupIds")]
      public List<string>? GroupIds { get; set; }
  
      /// <summary>
      /// 适用门店多选(<c>location.Id</c>);与 Region 合并后写入 <c>fl_label_template_location</c>
      /// </summary>
      [JsonPropertyName("locationIds")]
      public List<string>? LocationIds { get; set; }
a4baaa73   李曜臣   模板与产品关联实现
102
103
104
105
106
107
  
      /// <summary>
      /// 模板与产品/标签类型绑定默认值
      /// </summary>
      [JsonPropertyName("templateProductDefaults")]
      public List<LabelTemplateProductDefaultDto>? TemplateProductDefaults { get; set; }
919c1b6a   李曜臣   1
108
  }