Compare commits
5 Commits
v0.11.0
...
d8beb03b96
| Author | SHA1 | Date | |
|---|---|---|---|
| d8beb03b96 | |||
| eee90c784b | |||
| 74200083ab | |||
| 871bc299bd | |||
| a18b58f438 |
+6
-6
@@ -25,17 +25,17 @@
|
|||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.2.2" />
|
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.3.1" />
|
||||||
<PackageReference Include="LinqKit" Version="1.3.0" />
|
<PackageReference Include="LinqKit" Version="1.3.0" />
|
||||||
<PackageReference Include="MailKit" Version="4.7.1.1" />
|
<PackageReference Include="MailKit" Version="4.7.1.1" />
|
||||||
<PackageReference Include="Microsoft.AspNetCore.Razor.Language" Version="6.0.32" />
|
<PackageReference Include="Microsoft.AspNetCore.Razor.Language" Version="6.0.33" />
|
||||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Proxies" Version="8.0.7" />
|
<PackageReference Include="Microsoft.EntityFrameworkCore.Proxies" Version="8.0.8" />
|
||||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="8.0.7" />
|
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="8.0.8" />
|
||||||
<PackageReference Include="Microsoft.Extensions.Configuration.Ini" Version="8.0.0" />
|
<PackageReference Include="Microsoft.Extensions.Configuration.Ini" Version="8.0.0" />
|
||||||
<PackageReference Include="Microsoft.Web.WebView2" Version="1.0.2592.51" />
|
<PackageReference Include="Microsoft.Web.WebView2" Version="1.0.2739.15" />
|
||||||
<PackageReference Include="NJsonSchema" Version="11.0.2" />
|
<PackageReference Include="NJsonSchema" Version="11.0.2" />
|
||||||
<PackageReference Include="RazorLight" Version="2.3.1" />
|
<PackageReference Include="RazorLight" Version="2.3.1" />
|
||||||
<PackageReference Include="ScottPlot.WPF" Version="5.0.36" />
|
<PackageReference Include="ScottPlot.WPF" Version="5.0.39" />
|
||||||
<PackageReference Include="System.IO.Ports" Version="8.0.0" />
|
<PackageReference Include="System.IO.Ports" Version="8.0.0" />
|
||||||
<PackageReference Include="System.Text.Encoding.CodePages" Version="8.0.0" />
|
<PackageReference Include="System.Text.Encoding.CodePages" Version="8.0.0" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|||||||
@@ -348,7 +348,7 @@ namespace Elwig.Helpers {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static (string, string?) SplitName(string fullName, string? familyName) {
|
public static (string, string?) SplitName(string fullName, string? familyName) {
|
||||||
if (familyName == null || familyName == "") return (fullName, null);
|
if (string.IsNullOrWhiteSpace(familyName)) return (fullName, null);
|
||||||
var p0 = fullName.IndexOf(familyName, StringComparison.CurrentCultureIgnoreCase);
|
var p0 = fullName.IndexOf(familyName, StringComparison.CurrentCultureIgnoreCase);
|
||||||
if (p0 == -1) return (fullName, null);
|
if (p0 == -1) return (fullName, null);
|
||||||
var p1 = fullName.IndexOf(" und ");
|
var p1 = fullName.IndexOf(" und ");
|
||||||
@@ -362,8 +362,10 @@ namespace Elwig.Helpers {
|
|||||||
var p3 = fullName.LastIndexOf(' ', p2 - 1);
|
var p3 = fullName.LastIndexOf(' ', p2 - 1);
|
||||||
return (fullName[0..p3], fullName[(p3 + 1)..^0]);
|
return (fullName[0..p3], fullName[(p3 + 1)..^0]);
|
||||||
}
|
}
|
||||||
} else {
|
} else if (p0 + familyName.Length >= fullName.Length || fullName[p0 + familyName.Length] == ' ') {
|
||||||
return (familyName, fullName.Replace(familyName, "").Replace(" ", " ").Trim());
|
return (familyName, fullName.Replace(familyName, "").Replace(" ", " ").Trim());
|
||||||
|
} else {
|
||||||
|
return (fullName, null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ using System;
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.ComponentModel.DataAnnotations.Schema;
|
using System.ComponentModel.DataAnnotations.Schema;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
using System.Windows;
|
||||||
|
|
||||||
namespace Elwig.Models.Entities {
|
namespace Elwig.Models.Entities {
|
||||||
[Table("delivery_schedule"), PrimaryKey("Year", "DsNr")]
|
[Table("delivery_schedule"), PrimaryKey("Year", "DsNr")]
|
||||||
@@ -47,6 +48,8 @@ namespace Elwig.Models.Entities {
|
|||||||
|
|
||||||
[Column("cancelled")]
|
[Column("cancelled")]
|
||||||
public bool IsCancelled { get; set; }
|
public bool IsCancelled { get; set; }
|
||||||
|
[NotMapped]
|
||||||
|
public TextDecorationCollection? TextDecoration => IsCancelled ? TextDecorations.Strikethrough : null;
|
||||||
|
|
||||||
[Column("ancmt_from")]
|
[Column("ancmt_from")]
|
||||||
public long? AncmtFromUnix { get; set; }
|
public long? AncmtFromUnix { get; set; }
|
||||||
|
|||||||
@@ -84,7 +84,7 @@
|
|||||||
<RowDefinition Height="42"/>
|
<RowDefinition Height="42"/>
|
||||||
<RowDefinition Height="1*" MinHeight="100"/>
|
<RowDefinition Height="1*" MinHeight="100"/>
|
||||||
<RowDefinition Height="5"/>
|
<RowDefinition Height="5"/>
|
||||||
<RowDefinition Height="2*" MinHeight="100"/>
|
<RowDefinition Height="1*" MinHeight="100"/>
|
||||||
<RowDefinition Height="42"/>
|
<RowDefinition Height="42"/>
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
@@ -129,7 +129,7 @@
|
|||||||
<TextBlock Text="{Binding Date, StringFormat='ddd.'}" Width="24"/>
|
<TextBlock Text="{Binding Date, StringFormat='ddd.'}" Width="24"/>
|
||||||
<TextBlock Text="{Binding Date, StringFormat='dd.MM.'}" Width="32"/>
|
<TextBlock Text="{Binding Date, StringFormat='dd.MM.'}" Width="32"/>
|
||||||
<TextBlock Text="{Binding ZwstId}" Width="25" TextAlignment="Center"/>
|
<TextBlock Text="{Binding ZwstId}" Width="25" TextAlignment="Center"/>
|
||||||
<TextBlock Text="{Binding Description}" Width="200"/>
|
<TextBlock Text="{Binding Description}" Width="200" TextDecorations="{Binding TextDecoration}"/>
|
||||||
<TextBlock TextAlignment="Right">
|
<TextBlock TextAlignment="Right">
|
||||||
<TextBlock Text="{Binding AnnouncedWeight, StringFormat='{}{0:N0}'}" Width="42" TextAlignment="Right"/> kg
|
<TextBlock Text="{Binding AnnouncedWeight, StringFormat='{}{0:N0}'}" Width="42" TextAlignment="Right"/> kg
|
||||||
/ <TextBlock Text="{Binding MaxWeight, StringFormat='{}{0:N0}'}" Width="42" TextAlignment="Right"/> kg
|
/ <TextBlock Text="{Binding MaxWeight, StringFormat='{}{0:N0}'}" Width="42" TextAlignment="Right"/> kg
|
||||||
@@ -288,7 +288,7 @@
|
|||||||
<TextBlock Text="{Binding Date, StringFormat='ddd.'}" Width="28"/>
|
<TextBlock Text="{Binding Date, StringFormat='ddd.'}" Width="28"/>
|
||||||
<TextBlock Text="{Binding Date, StringFormat='dd.MM.'}" Width="35"/>
|
<TextBlock Text="{Binding Date, StringFormat='dd.MM.'}" Width="35"/>
|
||||||
<TextBlock Text="{Binding ZwstId}" Width="30" TextAlignment="Center"/>
|
<TextBlock Text="{Binding ZwstId}" Width="30" TextAlignment="Center"/>
|
||||||
<TextBlock Text="{Binding Description}"/>
|
<TextBlock Text="{Binding Description}" TextDecorations="{Binding TextDecoration}"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
</ComboBox.ItemTemplate>
|
</ComboBox.ItemTemplate>
|
||||||
|
|||||||
+5
-5
@@ -19,12 +19,12 @@
|
|||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
|
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
|
||||||
<PackageReference Include="Appium.WebDriver" Version="4.4.5" />
|
<PackageReference Include="Appium.WebDriver" Version="4.4.5" />
|
||||||
<PackageReference Include="NReco.PdfRenderer" Version="1.5.3" />
|
<PackageReference Include="NReco.PdfRenderer" Version="1.5.4" />
|
||||||
<PackageReference Include="NUnit" Version="4.1.0" />
|
<PackageReference Include="NUnit" Version="4.2.2" />
|
||||||
<PackageReference Include="NUnit3TestAdapter" Version="4.5.0" />
|
<PackageReference Include="NUnit3TestAdapter" Version="4.6.0" />
|
||||||
<PackageReference Include="NUnit.Analyzers" Version="4.2.0">
|
<PackageReference Include="NUnit.Analyzers" Version="4.3.0">
|
||||||
<PrivateAssets>all</PrivateAssets>
|
<PrivateAssets>all</PrivateAssets>
|
||||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||||
</PackageReference>
|
</PackageReference>
|
||||||
|
|||||||
Reference in New Issue
Block a user