Switch to Datagrid
This commit is contained in:
@ -33,8 +33,9 @@ public class WorkItem
|
||||
DateTime? targetDate,
|
||||
float? timeCriticality,
|
||||
string title,
|
||||
string workItemType,
|
||||
float? weightedShortestJobFirst)
|
||||
string? violation,
|
||||
float? weightedShortestJobFirst,
|
||||
string workItemType)
|
||||
{
|
||||
AreaPath = areaPath;
|
||||
AssignedTo = assignedTo;
|
||||
@ -60,8 +61,41 @@ public class WorkItem
|
||||
TargetDate = targetDate;
|
||||
TimeCriticality = timeCriticality;
|
||||
Title = title;
|
||||
WorkItemType = workItemType;
|
||||
Violation = violation;
|
||||
WeightedShortestJobFirst = weightedShortestJobFirst;
|
||||
WorkItemType = workItemType;
|
||||
}
|
||||
|
||||
public static WorkItem Get(WorkItem workItem, string? violation)
|
||||
{
|
||||
WorkItem result = new(workItem.AreaPath,
|
||||
workItem.AssignedTo,
|
||||
workItem.BusinessValue,
|
||||
workItem.ChangedDate,
|
||||
workItem.ClosedDate,
|
||||
workItem.CommentCount,
|
||||
workItem.CreatedDate,
|
||||
workItem.Description,
|
||||
workItem.Effort,
|
||||
workItem.Id,
|
||||
workItem.IterationPath,
|
||||
workItem.Parent,
|
||||
workItem.Priority,
|
||||
workItem.Relations,
|
||||
workItem.Requester,
|
||||
workItem.ResolvedDate,
|
||||
workItem.Revision,
|
||||
workItem.RiskReductionMinusOpportunityEnablement,
|
||||
workItem.StartDate,
|
||||
workItem.State,
|
||||
workItem.Tags,
|
||||
workItem.TargetDate,
|
||||
workItem.TimeCriticality,
|
||||
workItem.Title,
|
||||
workItem.Violation is null ? violation : workItem.Violation,
|
||||
workItem.WeightedShortestJobFirst,
|
||||
workItem.WorkItemType);
|
||||
return result;
|
||||
}
|
||||
|
||||
public string AreaPath { get; set; }
|
||||
@ -88,6 +122,7 @@ public class WorkItem
|
||||
public DateTime? TargetDate { get; set; }
|
||||
public float? TimeCriticality { get; set; }
|
||||
public string Title { get; set; }
|
||||
public string? Violation { get; set; }
|
||||
public string WorkItemType { get; set; }
|
||||
public float? WeightedShortestJobFirst { get; set; }
|
||||
|
||||
|
Reference in New Issue
Block a user