Beispiel #1
0
 public dtoGenericItem(Activity oActivity, Status PersonalStatus, RoleEP AssRoleEP)
 {
     Id           = oActivity.Id;
     Name         = oActivity.Name;
     Description  = oActivity.Description;
     Status       = oActivity.Status;
     this.RoleEP  = AssRoleEP;
     PermissionEP = new PermissionEP(AssRoleEP);
     Weight       = oActivity.Weight;
     Display      = DisplayPolicy.InheritedByPath;
 }
Beispiel #2
0
 public dtoGenericItem(SubActivity oSubActivity, Status PersonalStatus)
 {
     Id           = oSubActivity.Id;
     Name         = oSubActivity.Name;
     Description  = oSubActivity.Description;
     Status       = oSubActivity.Status;
     this.RoleEP  = RoleEP.None;
     PermissionEP = new PermissionEP(RoleEP);
     Weight       = oSubActivity.Weight;
     Display      = oSubActivity.Display;
 }
Beispiel #3
0
 public dtoGenericItem(Path oPath, Status PersonalStatus, RoleEP AssRoleEP)
 {
     Id           = oPath.Id;
     Name         = oPath.Name;
     Description  = oPath.Description;
     Status       = oPath.Status;
     this.RoleEP  = AssRoleEP;
     PermissionEP = new PermissionEP(AssRoleEP);
     Weight       = oPath.Weight;
     Policy       = oPath.Policy;
     Display      = (oPath.Policy != null ? oPath.Policy.DisplaySubActivity : DisplayPolicy.NoModal);
 }