namespace DMSDAL.DTO.ESSDocument { /// /// Parameters passed to DMSDAL.InsertAttachment — maps to the INSERT_ATTACHMENT query. /// public class ESSDocumentInsertDTO { public int ObjectTypeId { get; set; } public int EmployeeId { get; set; } public int DocumentTypeId { get; set; } public DateTime ValidFrom { get; set; } = new DateTime(1898, 12, 31); public DateTime ValidTo { get; set; } = new DateTime(9999, 12, 31); public string? PeriodLabel { get; set; } // stored in FOLDERNAME public string? StoragePath { get; set; } // stored in CMSID public string? DisplayFileName { get; set; } public string? AttachedFileName { get; set; } public string? MimeType { get; set; } public long FileSizeBytes { get; set; } /// 0=system-generated, 1=employee-uploaded, 2=admin-uploaded public int AttachmentOption { get; set; } = 1; public int CreatedById { get; set; } public DateTime CreatedOn { get; set; } public int ModifiedById { get; set; } public DateTime ModifiedOn { get; set; } } }