Update 20240719

This commit is contained in:
Stefan Hutter
2024-07-19 17:03:49 +02:00
parent 153fbef133
commit ea8d48ac9e
90 changed files with 1011 additions and 230 deletions

View File

@@ -31,8 +31,8 @@ namespace OnDoc.Klassen
public class EDK_Parameters
{
private string name { get; set; }
private string value { get; set; }
public string name { get; set; }
public string value { get; set; }
public EDK_Parameters(string name, string value)
{
@@ -43,8 +43,8 @@ namespace OnDoc.Klassen
public class EDK_Dokumentwerte
{
private string name { get; set; }
private string value { get; set; }
public string name { get; set; }
public string value { get; set; }
public EDK_Dokumentwerte (string name, string value)
{
@@ -131,6 +131,30 @@ namespace OnDoc.Klassen
}
}
public static string GetAVQ_Value(string name, string techname)
{
for (int i = 0; i < dokumentwerte.Count; i++)
{
EDK_Dokumentwerte d = dokumentwerte[i];
if (dokumentwerte[i].name == name || dokumentwerte[i].name == techname)
{
return dokumentwerte[i].value;
}
}
return "";
}
public static string GetAVQ_Parameter(string name)
{
for (int i = 0; i < parameters.Count; i++) {
if (parameters[i].name.ToUpper() == name.ToUpper())
{
return parameters[i].value;
}
}
return "";
}
}
}