aktueller Status
This commit is contained in:
@@ -324,6 +324,7 @@ namespace C4IT.F4SD
|
|||||||
public bool ReactionTimeEscalated { get; set; }
|
public bool ReactionTimeEscalated { get; set; }
|
||||||
public bool SolutionTimeEscalated { get; set; }
|
public bool SolutionTimeEscalated { get; set; }
|
||||||
public bool IsIncident { get; set; }
|
public bool IsIncident { get; set; }
|
||||||
|
public string ActivityType { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
internal async Task<TicketOverviewCountsResult> getTicketOverviewCounts(
|
internal async Task<TicketOverviewCountsResult> getTicketOverviewCounts(
|
||||||
@@ -472,6 +473,7 @@ namespace C4IT.F4SD
|
|||||||
{
|
{
|
||||||
["Summary"] = entry.Summary ?? string.Empty,
|
["Summary"] = entry.Summary ?? string.Empty,
|
||||||
["StatusId"] = ConvertM42State(entry.State),
|
["StatusId"] = ConvertM42State(entry.State),
|
||||||
|
["ActivityType"] = entry.ActivityType ?? string.Empty,
|
||||||
["UserDisplayName"] = entry.InitiatorDisplayName ?? string.Empty,
|
["UserDisplayName"] = entry.InitiatorDisplayName ?? string.Empty,
|
||||||
["UserAccount"] = entry.InitiatorAccount ?? string.Empty,
|
["UserAccount"] = entry.InitiatorAccount ?? string.Empty,
|
||||||
["UserDomain"] = entry.InitiatorDomain ?? string.Empty,
|
["UserDomain"] = entry.InitiatorDomain ?? string.Empty,
|
||||||
@@ -583,7 +585,8 @@ namespace C4IT.F4SD
|
|||||||
", NewInformationReceived" +
|
", NewInformationReceived" +
|
||||||
", ReactionTimeEscalated" +
|
", ReactionTimeEscalated" +
|
||||||
", SolutionTimeEscalated" +
|
", SolutionTimeEscalated" +
|
||||||
", UsedInTypeSPSActivityTypeIncident as IsIncident",
|
", UsedInTypeSPSActivityTypeTicket as TicketEoid" +
|
||||||
|
", UsedInTypeSPSActivityTypeIncident as IncidentEoid",
|
||||||
filter);
|
filter);
|
||||||
|
|
||||||
if (tbl?.Rows == null || tbl.Rows.Count == 0)
|
if (tbl?.Rows == null || tbl.Rows.Count == 0)
|
||||||
@@ -596,6 +599,13 @@ namespace C4IT.F4SD
|
|||||||
if (ticketId == Guid.Empty)
|
if (ticketId == Guid.Empty)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
var ticketEoid = getGuidFromObject(row["TicketEoid"]);
|
||||||
|
var incidentEoid = getGuidFromObject(row["IncidentEoid"]);
|
||||||
|
var isIncident = incidentEoid != Guid.Empty;
|
||||||
|
var activityType = isIncident
|
||||||
|
? "SPSActivityTypeIncident"
|
||||||
|
: (ticketEoid != Guid.Empty ? "SPSActivityTypeTicket" : null);
|
||||||
|
|
||||||
entries.Add(new TicketOverviewEntry
|
entries.Add(new TicketOverviewEntry
|
||||||
{
|
{
|
||||||
TicketId = ticketId,
|
TicketId = ticketId,
|
||||||
@@ -613,7 +623,8 @@ namespace C4IT.F4SD
|
|||||||
NewInformationReceived = GetBoolValue(row["NewInformationReceived"]),
|
NewInformationReceived = GetBoolValue(row["NewInformationReceived"]),
|
||||||
ReactionTimeEscalated = GetBoolValue(row["ReactionTimeEscalated"]),
|
ReactionTimeEscalated = GetBoolValue(row["ReactionTimeEscalated"]),
|
||||||
SolutionTimeEscalated = GetBoolValue(row["SolutionTimeEscalated"]),
|
SolutionTimeEscalated = GetBoolValue(row["SolutionTimeEscalated"]),
|
||||||
IsIncident = row["IsIncident"] != DBNull.Value
|
IsIncident = isIncident,
|
||||||
|
ActivityType = activityType
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user