| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- using System.ComponentModel.DataAnnotations;
- using Abp.AutoMapper;
- using AutoMapper;
- using WeApp.BaseInfo;
- using IwbZero.Authorization.Base.SystemInfo;
- namespace WeApp.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; }
- }
- }
|