Exemplo n.º 1
0
 protected void Fetch(Data.Task data)
 {
     this.LoadProperty(TaskIdProperty, data.TaskId);
     this.LoadProperty(ProjectProperty, ProjectInfo.FetchProjectInfo(data.Project));
     this.LoadProperty(ProjectIdProperty, data.ProjectId);
     this.LoadProperty(ProjectNameProperty, data.Project.Name);
     this.LoadProperty(SprintProperty, SprintInfo.FetchSprintInfo(data.Sprint));
     this.LoadProperty(SprintIdProperty, data.SprintId);
     this.LoadProperty(SprintNameProperty, data.SprintName);
     this.LoadProperty(CategoryProperty, CategoryInfo.FetchCategoryInfo(data.Category));
     this.LoadProperty(CategoryIdProperty, data.CategoryId);
     this.LoadProperty(CategoryNameProperty, data.Category.Name);
     this.LoadProperty(StatusProperty, StatusInfo.FetchStatusInfo(data.Status));
     this.LoadProperty(StatusIdProperty, data.StatusId);
     this.LoadProperty(StatusNameProperty, data.Status.Name);
     this.LoadProperty(DescriptionProperty, data.Description);
     this.LoadProperty(AssignedToProperty, data.AssignedTo);
     this.LoadProperty(AssignedToNameProperty, data.AssignedToUser == null ? "No one" : data.AssignedToUser.Name);
     this.LoadProperty(AssignedDateProperty, data.AssignedDate);
     this.LoadProperty(StartDateProperty, data.StartDate);
     this.LoadProperty(CompletedDateProperty, data.CompletedDate);
     this.LoadProperty(EstimatedCompletedDateProperty, data.EstimatedCompletedDate);
     this.LoadProperty(DurationProperty, data.Duration);
     this.LoadProperty(EstimatedDurationProperty, data.EstimatedDuration);
     this.LoadProperty(LabelsProperty, data.Labels);
     this.LoadProperty(IsArchivedProperty, data.IsArchived);
     this.LoadProperty(NotesProperty, data.Notes);
     this.LoadProperty(ModifiedByProperty, data.ModifiedBy);
     this.LoadProperty(ModifiedByNameProperty, data.ModifiedByUser.Name);
     this.LoadProperty(ModifiedDateProperty, data.ModifiedDate);
     this.LoadProperty(CreatedByProperty, data.CreatedBy);
     this.LoadProperty(CreatedByNameProperty, data.CreatedByUser.Name);
     this.LoadProperty(CreatedDateProperty, data.CreatedDate);
     this.LoadProperty(TaskLabelsProperty, TaskLabels.FetchTaskLabels(this));
 }
Exemplo n.º 2
0
        internal static SprintInfo FetchSprintInfo(Data.Sprint data)
        {
            var result = new SprintInfo();

            result.Fetch(data);
            return(result);
        }
Exemplo n.º 3
0
        public SprintInfo ToSprintInfo()
        {
            var result = new SprintInfo();

            Csla.Data.DataMapper.Map(this, result);

            return result;
        }
Exemplo n.º 4
0
        public SprintInfo ToSprintInfo()
        {
            var result = new SprintInfo();

            Csla.Data.DataMapper.Map(this, result);

            return(result);
        }
Exemplo n.º 5
0
 private void Fetch(
     Data.Task data,
     decimal?duration,
     int?numberOfNotes,
     int?numberOfAttachments,
     int?numberOfInvoices)
 {
     this.LoadProperty(TaskIdProperty, data.TaskId);
     this.LoadProperty(ProjectProperty, ProjectInfo.FetchProjectInfo(data.Project));
     this.LoadProperty(ProjectIdProperty, data.ProjectId);
     this.LoadProperty(ProjectNameProperty, data.Project.Name);
     this.LoadProperty(SprintProperty, SprintInfo.FetchSprintInfo(data.Sprint));
     this.LoadProperty(SprintIdProperty, data.SprintId);
     this.LoadProperty(SprintNameProperty, data.SprintName);
     this.LoadProperty(CategoryProperty, CategoryInfo.FetchCategoryInfo(data.Category));
     this.LoadProperty(CategoryIdProperty, data.CategoryId);
     this.LoadProperty(CategoryNameProperty, data.Category.Name);
     this.LoadProperty(StatusProperty, StatusInfo.FetchStatusInfo(data.Status));
     this.LoadProperty(StatusIdProperty, data.StatusId);
     this.LoadProperty(StatusNameProperty, data.Status.Name);
     this.LoadProperty(DescriptionProperty, data.Description);
     this.LoadProperty(AssignedToProperty, data.AssignedTo);
     this.LoadProperty(AssignedToNameProperty, data.AssignedToUser == null ? "No one" : data.AssignedToUser.Name);
     this.LoadProperty(AssignedDateProperty, data.AssignedDate);
     this.LoadProperty(StartDateProperty, data.StartDate);
     this.LoadProperty(CompletedDateProperty, data.CompletedDate);
     this.LoadProperty(EstimatedCompletedDateProperty, data.EstimatedCompletedDate);
     this.LoadProperty(DurationProperty, duration ?? 0);
     this.LoadProperty(EstimatedDurationProperty, data.EstimatedDuration);
     this.LoadProperty(NumberOfInvoicesProperty, numberOfInvoices ?? 0);
     this.LoadProperty(NumberOfNotesProperty, numberOfNotes ?? 0);
     this.LoadProperty(NumberOfAttachmentsProperty, numberOfAttachments ?? 0);
     this.LoadProperty(LabelsProperty, data.Labels);
     this.LoadProperty(IsArchivedProperty, data.IsArchived);
     this.LoadProperty(NotesProperty, data.Notes);
     this.LoadProperty(ModifiedByProperty, data.ModifiedBy);
     this.LoadProperty(ModifiedByNameProperty, data.ModifiedByUser.Name);
     this.LoadProperty(ModifiedDateProperty, data.ModifiedDate);
     this.LoadProperty(CreatedByProperty, data.CreatedBy);
     this.LoadProperty(CreatedByNameProperty, data.CreatedByUser.Name);
     this.LoadProperty(CreatedDateProperty, data.CreatedDate);
 }
Exemplo n.º 6
0
 internal static SprintInfo FetchSprintInfo(Data.Sprint data)
 {
     var result = new SprintInfo();
     result.Fetch(data);
     return result;
 }