using SqlSugar;
using System;
using System.ComponentModel;
namespace DS.WMS.PrintApi.Model
{
///
/// 打印模板
///
[SqlSugar.SugarTable("sys_print_template")]
public class SysPrintTemplate
{
///
/// 主键Id
///
[SugarColumn(IsPrimaryKey = true, ColumnDescription = "主键ID")]
public long Id { get; set; }
///
/// 打印模块Id
///
public long ModuleId { get; set; }
///
///打印模板名称
///
[Description("打印模板名称")]
public string TemplateName { get; set; }
///
///数据源;打印方案对应的数据来源SQL
///
[Description("数据源;打印方案对应的数据来源SQL")]
public string SourceSql { get; set; }
///
///中文视图名;设计打印方案时,提供中文快捷按钮的视图来源
///
[Description("中文视图名;设计打印方案时,提供中文快捷按钮的视图来源")]
public string ColumnView { get; set; }
///
///入口参数字段;入库参数字段数组,通过,分隔
///
[Description("入口参数字段;入库参数字段数组,通过,分隔")]
public string InParamColumn { get; set; }
///
///分组字段,通常用于主从表结构打印时
///
[Description("分组字段,通常用于主从表结构打印时")]
public string GroupBy { get; set; }
///
///打印方案内容;打印方案JSON对象
///
[Description("打印方案内容;打印方案JSON对象")]
public string PrintJsonContent { get; set; }
///
///是否使用数据源
///
public bool IsUseDataSource { get; set; }
///
/// 打印类型
///
[Description("打印类型")]
public string PrintType { get; set; }
///
///是否公用
///
[Description("是否公用")]
public bool IsPublic { get; set; }
///
///是否可用
///
[Description("是否可用")]
public bool Disable { get; set; }
///
/// 备注
///
[Description("备注")]
[SugarColumn(IsNullable = true, ColumnDescription = "备注", Length = 200)]
public string Note { get; set; }
///
/// 创建时间
///
[Description("创建时间")]
[SugarColumn(IsOnlyIgnoreUpdate = true, ColumnDescription = "创建时间")]
public DateTime CreateTime { get; set; }
///
/// 创建人
///
[Description("创建人")]
[SugarColumn(IsOnlyIgnoreUpdate = true, IsNullable = true, ColumnDescription = "创建人")]
public long CreateBy { get; set; }
///
/// 创建人名称
///
[Description("创建人名称")]
[SugarColumn(IsOnlyIgnoreUpdate = true, IsNullable = true, ColumnDescription = "创建人名称", Length = 50)]
public string CreateUserName { get; set; }
///
/// 修改人
///
[Description("修改人")]
[SugarColumn(IsNullable = true, ColumnDescription = "修改人")]
public long UpdateBy { get; set; }
///
/// 修改人名称
///
[Description("修改人名称")]
[SugarColumn(IsNullable = true, ColumnDescription = "修改人名称", Length = 50)]
public string UpdateUserName { get; set; }
///
/// 更新时间
///
[Description("更新时间")]
[SugarColumn(IsNullable = true, ColumnDescription = "更新时间")]
public DateTime UpdateTime { get; set; }
///
/// 删除
///
[Description("删除")]
[SugarColumn(ColumnDescription = "是否删除")]
public bool Deleted { get; set; } = false;
///
/// 删除人名称
///
[Description("删除人名称")]
[SugarColumn(IsNullable = true, ColumnDescription = "删除人名称", Length = 50)]
public string DeleteUserName { get; set; }
///
/// 删除时间
///
[Description("删除时间")]
[SugarColumn(IsNullable = true, ColumnDescription = "删除时间")]
public DateTime DeleteTime { get; set; }
///
/// 删除人
///
[Description("删除人")]
[SugarColumn(IsNullable = true, ColumnDescription = "删除人")]
public long DeleteBy { get; set; }
///
/// 租户Id
///
[SqlSugar.SugarColumn(ColumnDescription = "租户Id", IsOnlyIgnoreUpdate = true)]
public long TenantId { get; set; } = 0;
}
}