예제 #1
0
 public dtoCallSubmissionFile(RequestedFile requestedFile, Boolean allowRemove, Boolean allowUpload)
 {
     Id           = requestedFile.Id;
     FileToSubmit = new dtoCallRequestedFile(requestedFile);
     AllowRemove  = allowRemove;
     AllowUpload  = allowUpload;
     FieldError   = Domain.FieldError.None;
 }
예제 #2
0
 public dtoRequestedFilePermission(dtoCallRequestedFile file, dtoGenericPermission generic, long count)
     : base(file.Id)
 {
     File               = file;
     Deleted            = file.Deleted;
     AllowDelete        = generic.AllowDelete && Deleted != BaseStatusDeleted.None;
     AllowVirtualDelete = Deleted == BaseStatusDeleted.None && generic.AllowVirtualDelete && !(count > 0);
     AllowUnDelete      = Deleted != BaseStatusDeleted.None && generic.AllowUnDelete;
     AllowEdit          = Deleted == BaseStatusDeleted.None && !(count > 0) && generic.AllowEdit;
     SubmissionCount    = count;
 }
예제 #3
0
 public dtoRequestedFilePermission(long id, dtoCallRequestedFile file)
     : base(id)
 {
     File    = file;
     Deleted = file.Deleted;
 }