| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- using System.ComponentModel.DataAnnotations;
- using Abp.AutoMapper;
- using AutoMapper;
- using ContractService.BaseInfo;
- using IwbZero.Authorization.Base.SystemInfo;
- namespace ContractService.CommonManager.AttachFiles
- {
- [AutoMapTo(typeof(SysAttachFile))]
- public class AttachFileCreateDto
- {
- public AttachFileCreateDto(string tableName, string columnName, string sourceKey)
- {
- TableName = tableName;
- ColumnName = columnName;
- SourceKey = sourceKey;
- }
- public AttachFileCreateDto(string tableName, string columnName, string sourceKey, string fileInfo, string fileName, string fileExt, string allowExt = null) : this(tableName, columnName, sourceKey)
- {
- FileInfo = fileInfo;
- FileName = fileName;
- FileExt = fileExt;
- AllowExt = allowExt;
- }
- public AttachFileCreateDto()
- {
- }
- [StringLength(SysAttachFileBase.AttachNoMaxLength)]
- public string AttachNo { get; set; }
- [StringLength(SysAttachFileBase.TableNameMaxLength)]
- public string TableName { get; set; }
- [StringLength(SysAttachFileBase.ColumnNameMaxLength)]
- public string ColumnName { get; set; }
- [StringLength(SysAttachFileBase.SourceKeyMaxLength)]
- public string SourceKey { get; set; }
- [StringLength(SysAttachFileBase.FileTitleMaxLength)]
- public string FileTitle { get; set; }
- [StringLength(SysAttachFileBase.FileNameMaxLength)]
- public string FileName { get; set; }
- [StringLength(SysAttachFileBase.FilePathMaxLength)]
- public string FilePath { get; set; }
- [StringLength(SysAttachFileBase.FileTypeMaxLength)]
- public string FileType { get; set; }
- [StringLength(SysAttachFileBase.FileExtMaxLength)]
- public string FileExt { get; set; }
- [StringLength(SysAttachFileBase.DescriptionMaxLength)]
- public string Description { get; set; }
- public string FileInfo { get; set; }
- [IgnoreMap]
- public string AllowExt { get; set; }
- public bool IsUpdate { get; set; }
- }
- }
|