Merge branch 'running-sheets'

# Conflicts:
#	MainWindow.axaml.cs
#	Tasks/AddressCreation.cs
#	Tasks/PdfBuilder.cs
This commit is contained in:
2026-06-04 08:28:52 +02:00
6 changed files with 374 additions and 168 deletions
+17
View File
@@ -178,6 +178,23 @@ public class KasPerson
public string abteilung { get; set; }
public string funktionad { get; set; }
public string used_plz { get; set; } = "";
public static void SetUsedPLZ(int id, string plz)
{
foreach (var set in Settings._instance.addressSets.addresses)
{
foreach (var add in set.KasPersons)
{
if (add.id == id)
{
add.used_plz = plz;
return;
}
}
}
}
public static int GenerateNewID(int base_id)
{
//var newid = 100000 + base_id;
+16
View File
@@ -67,6 +67,9 @@ public class PdfExportSettings
public double fontSize { get; set; } = 9;
public double smallFontSize { get; set; } = 6;
public bool exportRunningSheets { get; set; } = true;
public int rsNumGrouped { get; set; } = 25;
public int rsPlzStartpoint { get; set; } = 2;
}
public class Global
@@ -169,6 +172,19 @@ public class Customer
public char separator { get; set; } = ',';
public int ID { get; }
public static Customer GetCustomerByID(int id)
{
foreach (var customer in Settings._instance.customers.customers)
{
if (id == customer.ID)
{
return customer;
}
}
return null;
}
// public static int GetIDByCustomerListItem(string item_content)
// {