using System.ComponentModel;
using DS.Module.Core.Data;
using SqlSugar;
namespace DS.WMS.Core.Sys.Entity;
///
/// 系统打印模板
///
[SqlSugar.SugarTable("sys_print_template", "系统打印模板")]
public class SysPrintTemplate : BaseTenantModel
{
///
/// 打印模块Id
///
[SqlSugar.SugarColumn(ColumnDescription = "打印模块Id", IsNullable = false, DefaultValue = "0")]
public long ModuleId { get; set; }
///
///打印模板唯一编码
///
[Description("打印模板唯一编码")]
[SqlSugar.SugarColumn(ColumnDescription = "打印模板唯一编码", IsNullable = false, Length = 50)]
public string TemplateCode { get; set; }
///
///打印模板名称
///
[Description("打印模板名称")]
[SqlSugar.SugarColumn(ColumnDescription = "打印模板名称", IsNullable = false, Length = 100)]
public string TemplateName { get; set; }
///
///数据源;打印方案对应的数据来源SQL
///
[Description("数据源;打印方案对应的数据来源SQL")]
[SqlSugar.SugarColumn(ColumnDescription = "数据源;打印方案对应的数据来源SQL", IsNullable = true, ColumnDataType = StaticConfig.CodeFirst_BigString)]
public string SourceSql { get; set; }
///
///中文视图名;设计打印方案时,提供中文快捷按钮的视图来源
///
[Description("中文视图名;设计打印方案时,提供中文快捷按钮的视图来源")]
[SqlSugar.SugarColumn(ColumnDescription = "中文视图名;设计打印方案时,提供中文快捷按钮的视图来源", IsNullable = true, Length = 200)]
public string ColumnView { get; set; }
///
///入口参数字段;入库参数字段数组,通过,分隔
///
[Description("入口参数字段;入库参数字段数组,通过,分隔")]
[SqlSugar.SugarColumn(ColumnDescription = "入口参数字段;入库参数字段数组,通过,分隔", IsNullable = true, Length = 200)]
public string InParamColumn { get; set; }
///
///分组字段,通常用于主从表结构打印时
///
[Description("分组字段,通常用于主从表结构打印时")]
[SqlSugar.SugarColumn(ColumnDescription = "分组字段", IsNullable = true, Length = 200)]
public string GroupBy { get; set; }
///
/// 打印类型
///
[Description("打印类型")]
[SqlSugar.SugarColumn(ColumnDescription = "打印类型", IsNullable = true, Length = 100)]
public string PrintType { get; set; }
///
///打印方案内容;打印方案JSON对象
///
[Description("打印方案内容;打印方案JSON对象")]
[SqlSugar.SugarColumn(ColumnDescription = "数据源;打印方案对应的数据来源SQL", IsNullable = true, ColumnDataType = StaticConfig.CodeFirst_BigString)]
public string PrintJsonContent { get; set; }
///
///是否使用数据源
///
[SqlSugar.SugarColumn(ColumnDescription = "是否使用数据源", IsNullable = true, DefaultValue ="0")]
public bool IsUseDataSource { get; set; }
///
///是否公用
///
[Description("是否公用")]
[SqlSugar.SugarColumn(ColumnDescription = "是否公用", IsNullable = true, DefaultValue = "0")]
public bool IsPublic { get; set; }
///
/// 是否可用
///
[Description("是否可用")]
[SqlSugar.SugarColumn(ColumnDescription = "是否可用", IsNullable = true, DefaultValue = "0")]
public bool Disable { get; set; }
}