/*
*代码由框架生成,任何更改都可能导致被代码生成器覆盖
*如果数据库字段发生变化,请在代码生器重新生成此Model
*/
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.SystemModels;
namespace VOL.Entity.DomainModels
{
[Entity(TableCnName = "打印格式列表", TableName = "SYS_PRINTINFO", DetailTable = new Type[] { typeof(SYS_PRINTINFO_DETAIL) }, DetailTableCnName = "SYS_PRINTINFO_DETAIL")]
public class SYS_PRINTINFO : BaseEntity
{
///
///
///
[Key]
[Display(Name = "PRINTID")]
[Column(TypeName = "uniqueidentifier")]
[Required(AllowEmptyStrings = false)]
public Guid PRINTID { get; set; }
///
///模块名称
///
[Display(Name = "模块名称")]
[MaxLength(50)]
[Column(TypeName = "varchar(50)")]
[Editable(true)]
public string MODNAME { get; set; }
///
///打印格式名称
///
[Display(Name = "打印格式名称")]
[MaxLength(50)]
[Column(TypeName = "varchar(50)")]
[Editable(true)]
public string PRINTNAME { get; set; }
///
///打印格式文件
///
[Display(Name = "打印格式文件")]
[MaxLength(500)]
[Column(TypeName = "varchar(500)")]
[Editable(true)]
public string FILEPATH { get; set; }
///
///分公司
///
[Display(Name = "分公司")]
[MaxLength(50)]
[Column(TypeName = "varchar(50)")]
[Editable(true)]
public string CORPID { get; set; }
///
///
///
[Display(Name = "CreateID")]
[Column(TypeName = "uniqueidentifier")]
public Guid? CreateID { get; set; }
///
///
///
[Display(Name = "Creator")]
[MaxLength(50)]
[Column(TypeName = "varchar(50)")]
public string Creator { get; set; }
///
///
///
[Display(Name = "CreateDate")]
[Column(TypeName = "datetime")]
public DateTime? CreateDate { get; set; }
///
///
///
[Display(Name = "ModifyID")]
[Column(TypeName = "uniqueidentifier")]
public Guid? ModifyID { get; set; }
///
///
///
[Display(Name = "Modifier")]
[MaxLength(50)]
[Column(TypeName = "varchar(50)")]
public string Modifier { get; set; }
///
///
///
[Display(Name = "ModifyDate")]
[Column(TypeName = "datetime")]
public DateTime? ModifyDate { get; set; }
///
///
///
[Display(Name = "CRC")]
[MaxLength(50)]
[Column(TypeName = "varchar(50)")]
public string CRC { get; set; }
[Display(Name = "SYS_PRINTINFO_DETAIL")]
[ForeignKey("PRINTID")]
public List SYS_PRINTINFO_DETAIL { get; set; }
//private string OldFilePath { get; set; }
//public void SetOldFilePath()
//{
// OldFilePath = FILEPATH;
//}
//public string GetOldFilePath()
//{
// return OldFilePath;
//}
}
}