[chore:] introducing KasPerson.id (refsid remains but isn't used in the mgmt-backend anymore)
This commit is contained in:
@@ -46,13 +46,13 @@ public partial class ResultWindow : Window
|
||||
Background = new SolidColorBrush(Color.Parse("#F0F0F0"))
|
||||
};
|
||||
|
||||
// Refsid
|
||||
// ID
|
||||
grid.Children.Add(new TextBlock
|
||||
{
|
||||
Text = "refsid: ",
|
||||
Text = "id: ",
|
||||
FontWeight = FontWeight.Bold, Margin = new Thickness(5)
|
||||
});
|
||||
grid.Children.Add(new TextBlock { Text = person.refsid.ToString(), Margin = new Thickness(5) });
|
||||
grid.Children.Add(new TextBlock { Text = person.id.ToString(), Margin = new Thickness(5) });
|
||||
Grid.SetColumn(grid.Children[1], 1);
|
||||
|
||||
// PLZ
|
||||
@@ -70,10 +70,10 @@ public partial class ResultWindow : Window
|
||||
return grid;
|
||||
}
|
||||
|
||||
private void ViewSingle(int refsid)
|
||||
private void ViewSingle(int id)
|
||||
{
|
||||
foreach (var result in ur_addresses.KasPersons)
|
||||
if (result.refsid == refsid)
|
||||
if (result.id == id)
|
||||
{
|
||||
var wind = new Window();
|
||||
var stp = new StackPanel();
|
||||
@@ -82,8 +82,8 @@ public partial class ResultWindow : Window
|
||||
var tb = new TextBlock();
|
||||
var tb2 = new TextBlock();
|
||||
tb.Text =
|
||||
"refsid:\nanrede:\ntitel:\nvorname:\nadel:\nname:\nnamezus:\nanredzus:\nstrasse:\nstrasse2:\nplz:\nort:\nland:\npplz:\npostfach:\nname1:\nname2:\nname3:\nname4:\nname5:\nfunktion:\nfunktion2:\nabteilung:\nfunktionad:";
|
||||
tb2.Text = result.refsid + "\n" + result.anrede + "\n" + result.titel + "\n" + result.vorname + "\n" +
|
||||
"id:\nanrede:\ntitel:\nvorname:\nadel:\nname:\nnamezus:\nanredzus:\nstrasse:\nstrasse2:\nplz:\nort:\nland:\npplz:\npostfach:\nname1:\nname2:\nname3:\nname4:\nname5:\nfunktion:\nfunktion2:\nabteilung:\nfunktionad:";
|
||||
tb2.Text = result.id + "\n" + result.anrede + "\n" + result.titel + "\n" + result.vorname + "\n" +
|
||||
result.adel + "\n" + result.name + "\n" + result.namezus + "\n" + result.anredzus + "\n" +
|
||||
result.strasse + "\n" + result.strasse2 + "\n" + result.plz + "\n" + result.ort + "\n" +
|
||||
result.land + "\n" + result.pplz + "\n" + result.postfach + "\n" + result.name1 + "\n" +
|
||||
@@ -212,7 +212,7 @@ public partial class ResultWindow : Window
|
||||
// try
|
||||
// {
|
||||
// var _asKas = (KasPerson)selected;
|
||||
// ViewSingle(_asKas.refsid);
|
||||
// ViewSingle(_asKas.id);
|
||||
// }
|
||||
// catch (Exception ex)
|
||||
// {
|
||||
|
||||
Reference in New Issue
Block a user