예제 #1
0
        public dtoCommunityNode ToCommunityNode()
        {
            dtoCommunityNode item = new dtoCommunityNode();

            item.Id              = Id;
            item.IdFather        = IdFather;
            item.IdOrganization  = IdOrganization;
            item.IdResponsible   = IdResponsible;
            item.Name            = Name;
            item.ToolTip         = ToolTip;
            item.isPrimary       = isPrimary;
            item.IdCommunityType = IdCommunityType;
            item.Type            = Type;
            item.Status          = Status;
            item.Selected        = Selected;
            item.AccessAvailable = AccessAvailable;
            item.Path            = Path;
            return(item);
        }
예제 #2
0
 public dtoTreeCommunityNode(dtoCommunityNode node)
 {
     Id                      = node.Id;
     IdFather                = node.IdFather;
     IdOrganization          = node.IdOrganization;
     Name                    = node.Name;
     ToolTip                 = node.ToolTip;
     isPrimary               = node.isPrimary;
     IdCommunityType         = node.IdCommunityType;
     Type                    = node.Type;
     Status                  = node.Status;
     Selected                = node.Selected;
     AccessAvailable         = node.AccessAvailable;
     IdResponsible           = node.IdResponsible;
     IdDegreeType            = node.IdDegreeType;
     IdCourseTime            = node.IdCourseTime;
     CourseCode              = node.CourseCode;
     Year                    = node.Year;
     FathersName             = new List <String>();
     ConfirmSubscription     = node.ConfirmSubscription;
     isClosedByAdministrator = node.isClosedByAdministrator;
     Nodes                   = new List <dtoTreeCommunityNode>();
     IdTags                  = new List <long>();
 }