Compare commits
2 Commits
286279b89f
...
b76d43a5ff
| Author | SHA1 | Date | |
|---|---|---|---|
| b76d43a5ff | |||
| 8b48882c86 |
@@ -7,10 +7,10 @@ using System.Threading.Tasks;
|
||||
namespace Elwig.Helpers {
|
||||
public class ClientParameters {
|
||||
|
||||
public enum Type { Matzen, GWK };
|
||||
public enum Type { Matzen, Winzerkeller };
|
||||
|
||||
public bool IsMatzen => Client == Type.Matzen;
|
||||
public bool IsGWK => Client == Type.GWK;
|
||||
public bool IsWinzerkeller => Client == Type.Winzerkeller;
|
||||
|
||||
public string NameToken;
|
||||
public string NameShort;
|
||||
@@ -61,7 +61,7 @@ namespace Elwig.Helpers {
|
||||
NameType = parameters["CLIENT_NAME_TYPE"] ?? throw new KeyNotFoundException();
|
||||
switch (Name) {
|
||||
case "Winzergenossenschaft für Matzen und Umgebung": Client = Type.Matzen; break;
|
||||
case "Winzerkeller im Weinviertel": Client = Type.GWK; break;
|
||||
case "Winzerkeller im Weinviertel": Client = Type.Winzerkeller; break;
|
||||
};
|
||||
|
||||
Plz = int.Parse(parameters["CLIENT_PLZ"] ?? "");
|
||||
|
||||
@@ -212,7 +212,7 @@ namespace Elwig.Windows {
|
||||
p.Address = ClientAddressInput.Text;
|
||||
p.Plz = int.Parse(ClientPlzInput.Text);
|
||||
p.Ort = ClientOrtInput.Text;
|
||||
p.Iban = ClientIbanInput.Text.Length > 0 ? ClientIbanInput.Text.Replace(" ", "") : null;
|
||||
p.Iban = ClientIbanInput.Text.Length > 0 ? ClientIbanInput.Text : null;
|
||||
p.Bic = ClientBicInput.Text.Length > 0 ? ClientBicInput.Text : null;
|
||||
p.UstIdNr = ClientUstIdNrInput.Text.Length > 0 ? ClientUstIdNrInput.Text : null;
|
||||
p.LfbisNr = ClientLfbisNrInput.Text.Length > 0 ? ClientLfbisNrInput.Text : null;
|
||||
|
||||
Reference in New Issue
Block a user