Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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);
 }