aktueller stand
This commit is contained in:
@@ -68,8 +68,6 @@ namespace FasdDesktopUi.Basics.UserControls
|
||||
};
|
||||
|
||||
private const string CategoryTableNamePrimary = "M42Wpm-Ticket-Categories";
|
||||
private const string CategoryTableNameLegacy = "M42Wpm-Ticket-CloseCase-Categories";
|
||||
private string activeCategoryTableName = CategoryTableNamePrimary;
|
||||
|
||||
private static readonly Brush SharedValidationBorderBrush = CreateValidationBrush();
|
||||
private static readonly Brush DefaultTextBoxBorderBrush = CreateDefaultTextBoxBorderBrush();
|
||||
@@ -1009,20 +1007,7 @@ namespace FasdDesktopUi.Basics.UserControls
|
||||
|
||||
isCategoryLoading = true;
|
||||
|
||||
var tableCandidates = new[] { CategoryTableNamePrimary, CategoryTableNameLegacy };
|
||||
bool initialized = false;
|
||||
|
||||
foreach (var tableName in tableCandidates)
|
||||
{
|
||||
if (await TryPopulateCategoryHierarchyAsync(tableName))
|
||||
{
|
||||
activeCategoryTableName = tableName;
|
||||
initialized = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (initialized)
|
||||
if (await TryPopulateCategoryHierarchyAsync(CategoryTableNamePrimary))
|
||||
{
|
||||
CategorySelectionControl.ItemsSource = categoryHierarchy;
|
||||
TrySelectTicketCategoryFromTicketInfos();
|
||||
|
||||
@@ -70,10 +70,8 @@ namespace FasdDesktopUi.Basics.UserControls
|
||||
};
|
||||
|
||||
private const string CategoryTableNamePrimary = "M42Wpm-Ticket-Categories";
|
||||
private const string CategoryTableNameLegacy = "M42Wpm-Ticket-CloseCase-Categories";
|
||||
private const string TicketDetailsTableName = "M42Wpm-Tickets";
|
||||
private const string TicketDetailsCategoryIdColumnName = "CategoryId";
|
||||
private string activeCategoryTableName = CategoryTableNamePrimary;
|
||||
|
||||
private static readonly Brush SharedValidationBorderBrush = CreateValidationBrush();
|
||||
private static readonly Brush DefaultTextBoxBorderBrush = CreateDefaultTextBoxBorderBrush();
|
||||
@@ -1014,20 +1012,7 @@ namespace FasdDesktopUi.Basics.UserControls
|
||||
|
||||
isCategoryLoading = true;
|
||||
|
||||
var tableCandidates = new[] { CategoryTableNamePrimary, CategoryTableNameLegacy };
|
||||
bool initialized = false;
|
||||
|
||||
foreach (var tableName in tableCandidates)
|
||||
{
|
||||
if (await TryPopulateCategoryHierarchyAsync(tableName))
|
||||
{
|
||||
activeCategoryTableName = tableName;
|
||||
initialized = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (initialized)
|
||||
if (await TryPopulateCategoryHierarchyAsync(CategoryTableNamePrimary))
|
||||
{
|
||||
CategorySelectionControl.ItemsSource = categoryHierarchy;
|
||||
TrySelectTicketCategoryFromTicketInfos();
|
||||
|
||||
Reference in New Issue
Block a user