コード例 #1
0
 public dtoSubmitterTypePermission(long id, dtoSubmitterType submitter)
     : base(id)
 {
     Submitter       = submitter;
     Deleted         = submitter.Deleted;
     SubmissionCount = 0;
 }
コード例 #2
0
 public dtoSubmitterTypePermission(dtoSubmitterType submitter, dtoGenericPermission generic, long count)
     : base(submitter.Id)
 {
     Submitter          = submitter;
     Deleted            = submitter.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 && generic.AllowEdit);
     SubmissionCount    = count;
 }