ViewModels: Use partial properties
This commit is contained in:
@@ -8,94 +8,94 @@ namespace Elwig.ViewModels {
|
|||||||
public partial class AreaComAdminViewModel : ObservableObject {
|
public partial class AreaComAdminViewModel : ObservableObject {
|
||||||
|
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string _title = "Flächenbindungen - Elwig";
|
public partial string Title { get; set; } = "Flächenbindungen - Elwig";
|
||||||
|
|
||||||
public required Member FilterMember { get; set; }
|
public required Member FilterMember { get; set; }
|
||||||
|
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _searchQuery = "";
|
public partial string? SearchQuery { get; set; } = "";
|
||||||
public List<string> TextFilter {
|
public List<string> TextFilter {
|
||||||
get => [.. SearchQuery?.ToLower().Split(' ').ToList().FindAll(e => e.Length > 0) ?? []];
|
get => [.. SearchQuery?.ToLower().Split(' ').ToList().FindAll(e => e.Length > 0) ?? []];
|
||||||
set => SearchQuery = string.Join(' ', value.Where(e => e.Length > 0));
|
set => SearchQuery = string.Join(' ', value.Where(e => e.Length > 0));
|
||||||
}
|
}
|
||||||
|
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _filterSeasonString;
|
public partial string? FilterSeasonString { get; set; }
|
||||||
public int? FilterSeason {
|
public int? FilterSeason {
|
||||||
get => int.TryParse(FilterSeasonString, out var year) ? year : null;
|
get => int.TryParse(FilterSeasonString, out var year) ? year : null;
|
||||||
set => FilterSeasonString = $"{value}";
|
set => FilterSeasonString = $"{value}";
|
||||||
}
|
}
|
||||||
|
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _fbNrString;
|
public partial string? FbNrString { get; set; }
|
||||||
public int? FbNr {
|
public int? FbNr {
|
||||||
get => int.TryParse(FbNrString, out var mgnr) ? mgnr : null;
|
get => int.TryParse(FbNrString, out var mgnr) ? mgnr : null;
|
||||||
set => FbNrString = $"{value}";
|
set => FbNrString = $"{value}";
|
||||||
}
|
}
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _mgNrString;
|
public partial string? MgNrString { get; set; }
|
||||||
public int? MgNr {
|
public int? MgNr {
|
||||||
get => int.TryParse(MgNrString, out var mgnr) ? mgnr : null;
|
get => int.TryParse(MgNrString, out var mgnr) ? mgnr : null;
|
||||||
set => MgNrString = $"{value}";
|
set => MgNrString = $"{value}";
|
||||||
}
|
}
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _yearFromString;
|
public partial string? YearFromString { get; set; }
|
||||||
public int? YearFrom {
|
public int? YearFrom {
|
||||||
get => int.TryParse(YearFromString, out var year) ? year : null;
|
get => int.TryParse(YearFromString, out var year) ? year : null;
|
||||||
set => YearFromString = $"{value}";
|
set => YearFromString = $"{value}";
|
||||||
}
|
}
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _yearToString;
|
public partial string? YearToString { get; set; }
|
||||||
public int? YearTo {
|
public int? YearTo {
|
||||||
get => int.TryParse(YearToString, out var year) ? year : null;
|
get => int.TryParse(YearToString, out var year) ? year : null;
|
||||||
set => YearToString = $"{value}";
|
set => YearToString = $"{value}";
|
||||||
}
|
}
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _period;
|
public partial string? Period { get; set; }
|
||||||
|
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private AreaComType? _areaComType;
|
public partial AreaComType? AreaComType { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private IEnumerable<AreaComType> _areaComTypeSource = [];
|
public partial IEnumerable<AreaComType> AreaComTypeSource { get; set; } = [];
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private object? _wineCultObj;
|
public partial object? WineCultObj { get; set; }
|
||||||
public WineCult? WineCult {
|
public WineCult? WineCult {
|
||||||
get => WineCultObj as WineCult;
|
get => WineCultObj as WineCult;
|
||||||
set => WineCultObj = value ?? WineCultSource.FirstOrDefault();
|
set => WineCultObj = value ?? WineCultSource.FirstOrDefault();
|
||||||
}
|
}
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private IEnumerable<object> _wineCultSource = [];
|
public partial IEnumerable<object> WineCultSource { get; set; } = [];
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _comment;
|
public partial string? Comment { get; set; }
|
||||||
|
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private AT_Kg? _kg;
|
public partial AT_Kg? Kg { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private IEnumerable<AT_Kg> _kgSource = [];
|
public partial IEnumerable<AT_Kg> KgSource { get; set; } = [];
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private object? _rdObj;
|
public partial object? RdObj { get; set; }
|
||||||
public WbRd? Rd {
|
public WbRd? Rd {
|
||||||
get => RdObj as WbRd;
|
get => RdObj as WbRd;
|
||||||
set => RdObj = value ?? RdSource.FirstOrDefault();
|
set => RdObj = value ?? RdSource.FirstOrDefault();
|
||||||
}
|
}
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private IEnumerable<object> _rdSource = [];
|
public partial IEnumerable<object> RdSource { get; set; } = [];
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _gstNr;
|
public partial string? GstNr { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _areaString;
|
public partial string? AreaString { get; set; }
|
||||||
public int? Area {
|
public int? Area {
|
||||||
get => int.TryParse(AreaString, out var area) ? area : null;
|
get => int.TryParse(AreaString, out var area) ? area : null;
|
||||||
set => AreaString = $"{value}";
|
set => AreaString = $"{value}";
|
||||||
}
|
}
|
||||||
|
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string _statusAreaCommitments = "-";
|
public partial string StatusAreaCommitments { get; set; } = "-";
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string _statusContracts = "-";
|
public partial string StatusContracts { get; set; } = "-";
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string _statusArea = "-";
|
public partial string StatusArea { get; set; } = "-";
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private Grid? _statusAreaToolTip;
|
public partial Grid? StatusAreaToolTip { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,175 +9,175 @@ using System.Windows.Controls;
|
|||||||
namespace Elwig.ViewModels {
|
namespace Elwig.ViewModels {
|
||||||
public partial class DeliveryAdminViewModel : ObservableObject {
|
public partial class DeliveryAdminViewModel : ObservableObject {
|
||||||
|
|
||||||
public bool IsReceipt = false;
|
public bool IsReceipt { get; set; } = false;
|
||||||
|
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string _title = "Lieferungen - Elwig";
|
public partial string Title { get; set; } = "Lieferungen - Elwig";
|
||||||
|
|
||||||
public Member? FilterMember { get; set; }
|
public Member? FilterMember { get; set; }
|
||||||
|
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _searchQuery = "";
|
public partial string? SearchQuery { get; set; } = "";
|
||||||
public List<string> TextFilter => [.. SearchQuery?.ToLower().Split(' ').ToList().FindAll(e => e.Length > 0) ?? []];
|
public List<string> TextFilter => [.. SearchQuery?.ToLower().Split(' ').ToList().FindAll(e => e.Length > 0) ?? []];
|
||||||
|
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _lastScaleError;
|
public partial string? LastScaleError { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _manualWeighingReason;
|
public partial string? ManualWeighingReason { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _scaleTerminalId;
|
public partial string? ScaleTerminalId { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _weighingData;
|
public partial string? WeighingData { get; set; }
|
||||||
|
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private bool _filterTodayOnly;
|
public partial bool FilterTodayOnly { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private bool _filterAllSeasons;
|
public partial bool FilterAllSeasons { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private bool _enableAllSeasons;
|
public partial bool EnableAllSeasons { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _filterSeasonString;
|
public partial string? FilterSeasonString { get; set; }
|
||||||
public int? FilterSeason {
|
public int? FilterSeason {
|
||||||
get => int.TryParse(FilterSeasonString, out var year) ? year : null;
|
get => int.TryParse(FilterSeasonString, out var year) ? year : null;
|
||||||
set => FilterSeasonString = $"{value}";
|
set => FilterSeasonString = $"{value}";
|
||||||
}
|
}
|
||||||
|
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private Delivery? _selectedDelivery;
|
public partial Delivery? SelectedDelivery { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private IEnumerable<Delivery> _deliveries = [];
|
public partial IEnumerable<Delivery> Deliveries { get; set; } = [];
|
||||||
|
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _mgNrString;
|
public partial string? MgNrString { get; set; }
|
||||||
public int? MgNr {
|
public int? MgNr {
|
||||||
get => int.TryParse(MgNrString, out var mgnr) ? mgnr : null;
|
get => int.TryParse(MgNrString, out var mgnr) ? mgnr : null;
|
||||||
set => MgNrString = $"{value}";
|
set => MgNrString = $"{value}";
|
||||||
}
|
}
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private Member? _member;
|
public partial Member? Member { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private IEnumerable<Member> _memberSource = [];
|
public partial IEnumerable<Member> MemberSource { get; set; } = [];
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _memberAddress;
|
public partial string? MemberAddress { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _lsNr;
|
public partial string? LsNr { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _date;
|
public partial string? Date { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _time;
|
public partial string? Time { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private Branch? _branch;
|
public partial Branch? Branch { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private IEnumerable<Branch> _branchSource = [];
|
public partial IEnumerable<Branch> BranchSource { get; set; } = [];
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _comment;
|
public partial string? Comment { get; set; }
|
||||||
|
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _sortId;
|
public partial string? SortId { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private WineVar? _wineVar;
|
public partial WineVar? WineVar { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private IEnumerable<WineVar> _wineVarSource = [];
|
public partial IEnumerable<WineVar> WineVarSource { get; set; } = [];
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private object? _wineAttrObj;
|
public partial object? WineAttrObj { get; set; }
|
||||||
public WineAttr? WineAttr {
|
public WineAttr? WineAttr {
|
||||||
get => WineAttrObj as WineAttr;
|
get => WineAttrObj as WineAttr;
|
||||||
set => WineAttrObj = value ?? WineAttrSource.FirstOrDefault();
|
set => WineAttrObj = value ?? WineAttrSource.FirstOrDefault();
|
||||||
}
|
}
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private IEnumerable<object> _wineAttrSource = [];
|
public partial IEnumerable<object> WineAttrSource { get; set; } = [];
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private object? _wineCultObj;
|
public partial object? WineCultObj { get; set; }
|
||||||
public WineCult? WineCult {
|
public WineCult? WineCult {
|
||||||
get => WineCultObj as WineCult;
|
get => WineCultObj as WineCult;
|
||||||
set => WineCultObj = value ?? WineCultSource.FirstOrDefault();
|
set => WineCultObj = value ?? WineCultSource.FirstOrDefault();
|
||||||
}
|
}
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private IEnumerable<object> _wineCultSource = [];
|
public partial IEnumerable<object> WineCultSource { get; set; } = [];
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _gradationOeString;
|
public partial string? GradationOeString { get; set; }
|
||||||
public double? GradationOe {
|
public double? GradationOe {
|
||||||
get => double.TryParse(GradationOeString, out var oe) ? oe : null;
|
get => double.TryParse(GradationOeString, out var oe) ? oe : null;
|
||||||
set => GradationOeString = $"{value:0}";
|
set => GradationOeString = $"{value:0}";
|
||||||
}
|
}
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _gradationKmwString;
|
public partial string? GradationKmwString { get; set; }
|
||||||
public double? GradationKmw {
|
public double? GradationKmw {
|
||||||
get => double.TryParse(GradationKmwString, out var kmw) ? kmw : null;
|
get => double.TryParse(GradationKmwString, out var kmw) ? kmw : null;
|
||||||
set => GradationKmwString = $"{value:0.0}";
|
set => GradationKmwString = $"{value:0.0}";
|
||||||
}
|
}
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private WineQualLevel? _wineQualityLevel;
|
public partial WineQualLevel? WineQualityLevel { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private IEnumerable<WineQualLevel> _wineQualityLevelSource = [];
|
public partial IEnumerable<WineQualLevel> WineQualityLevelSource { get; set; } = [];
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private bool _abgewertet;
|
public partial bool Abgewertet { get; set; }
|
||||||
|
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _weightString;
|
public partial string? WeightString { get; set; }
|
||||||
public int? Weight {
|
public int? Weight {
|
||||||
get => int.TryParse(WeightString?.Replace(Utils.GroupSeparator, ""), out var w) ? w : null;
|
get => int.TryParse(WeightString?.Replace(Utils.GroupSeparator, ""), out var w) ? w : null;
|
||||||
set => WeightString = $"{value:N0}";
|
set => WeightString = $"{value:N0}";
|
||||||
}
|
}
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _tareString = "-";
|
public partial string? TareString { get; set; } = "-";
|
||||||
public int? Tare {
|
public int? Tare {
|
||||||
get => int.TryParse(TareString?.Replace(Utils.GroupSeparator, "").Replace(" kg", ""), out var w) ? w : null;
|
get => int.TryParse(TareString?.Replace(Utils.GroupSeparator, "").Replace(" kg", ""), out var w) ? w : null;
|
||||||
set => TareString = value == null ? "-" : $"{value:N0} kg{(TargetTare != null ? "*" : "")}";
|
set => TareString = value == null ? "-" : $"{value:N0} kg{(TargetTare != null ? "*" : "")}";
|
||||||
}
|
}
|
||||||
public int? ActualTare;
|
public int? ActualTare { get; set; }
|
||||||
public int? TargetTare;
|
public int? TargetTare { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private bool _isManualWeighing;
|
public partial bool IsManualWeighing { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private bool? _isNetWeightValue = false;
|
public partial bool? IsNetWeightValue { get; set; } = false;
|
||||||
public bool IsNetWeight {
|
public bool IsNetWeight {
|
||||||
get => IsNetWeightValue ?? false;
|
get => IsNetWeightValue ?? false;
|
||||||
set => IsNetWeightValue = value;
|
set => IsNetWeightValue = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private WineOrigin? _wineOrigin;
|
public partial WineOrigin? WineOrigin { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private IEnumerable<WineOrigin> _wineOriginSource = [];
|
public partial IEnumerable<WineOrigin> WineOriginSource { get; set; } = [];
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private object? _wineKgObj;
|
public partial object? WineKgObj { get; set; }
|
||||||
public AT_Kg? WineKg {
|
public AT_Kg? WineKg {
|
||||||
get => WineKgObj as AT_Kg;
|
get => WineKgObj as AT_Kg;
|
||||||
set => WineKgObj = value ?? WineKgSource.FirstOrDefault();
|
set => WineKgObj = value ?? WineKgSource.FirstOrDefault();
|
||||||
}
|
}
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private IEnumerable<object> _wineKgSource = [];
|
public partial IEnumerable<object> WineKgSource { get; set; } = [];
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private object? _wineRdObj;
|
public partial object? WineRdObj { get; set; }
|
||||||
public WbRd? WineRd {
|
public WbRd? WineRd {
|
||||||
get => WineRdObj as WbRd;
|
get => WineRdObj as WbRd;
|
||||||
set => WineRdObj = value ?? WineRdSource.FirstOrDefault();
|
set => WineRdObj = value ?? WineRdSource.FirstOrDefault();
|
||||||
}
|
}
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private IEnumerable<object> _wineRdSource = [];
|
public partial IEnumerable<object> WineRdSource { get; set; } = [];
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private bool? _isGebunden;
|
public partial bool? IsGebunden { get; set; }
|
||||||
|
|
||||||
public ObservableCollection<Modifier> Modifiers { get; set; } = [];
|
public ObservableCollection<Modifier> Modifiers { get; set; } = [];
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private IEnumerable<Modifier> _modifiersSource = [];
|
public partial IEnumerable<Modifier> ModifiersSource { get; set; } = [];
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _partComment;
|
public partial string? PartComment { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _temperatureString;
|
public partial string? TemperatureString { get; set; }
|
||||||
public double? Temperature {
|
public double? Temperature {
|
||||||
get => double.TryParse(TemperatureString, out var t) ? t : null;
|
get => double.TryParse(TemperatureString, out var t) ? t : null;
|
||||||
set => TemperatureString = $"{value:0.0}";
|
set => TemperatureString = $"{value:0.0}";
|
||||||
}
|
}
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _acidString;
|
public partial string? AcidString { get; set; }
|
||||||
public double? Acid {
|
public double? Acid {
|
||||||
get => double.TryParse(AcidString, out var a) ? a : null;
|
get => double.TryParse(AcidString, out var a) ? a : null;
|
||||||
set => AcidString = $"{value:0.0}";
|
set => AcidString = $"{value:0.0}";
|
||||||
}
|
}
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private bool? _isHandPicked;
|
public partial bool? IsHandPicked { get; set; }
|
||||||
|
|
||||||
public string? Unloading {
|
public string? Unloading {
|
||||||
get => IsUnloadingDumper ? DeliveryPart.Dumper : IsUnloadingPumped ? DeliveryPart.Pumped : IsUnloadingBox ? DeliveryPart.Box : null;
|
get => IsUnloadingDumper ? DeliveryPart.Dumper : IsUnloadingPumped ? DeliveryPart.Pumped : IsUnloadingBox ? DeliveryPart.Box : null;
|
||||||
@@ -191,28 +191,28 @@ namespace Elwig.ViewModels {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private bool _isUnloadingDumper;
|
public partial bool IsUnloadingDumper { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private bool _isUnloadingPumped;
|
public partial bool IsUnloadingPumped { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private bool _isUnloadingBox;
|
public partial bool IsUnloadingBox { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private bool _isUnloadingOther;
|
public partial bool IsUnloadingOther { get; set; }
|
||||||
|
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string _statusMembers = "-";
|
public partial string StatusMembers { get; set; } = "-";
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string _statusDeliveries = "-";
|
public partial string StatusDeliveries { get; set; } = "-";
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string _statusVarieties = "-";
|
public partial string StatusVarieties { get; set; } = "-";
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string _statusWeight = "-";
|
public partial string StatusWeight { get; set; } = "-";
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string _statusGradation = "-";
|
public partial string StatusGradation { get; set; } = "-";
|
||||||
|
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private Grid? _statusWeightToolTip;
|
public partial Grid? StatusWeightToolTip { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private Grid? _statusGradationToolTip;
|
public partial Grid? StatusGradationToolTip { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,80 +9,80 @@ namespace Elwig.ViewModels {
|
|||||||
public partial class DeliveryAncmtAdminViewModel : ObservableObject {
|
public partial class DeliveryAncmtAdminViewModel : ObservableObject {
|
||||||
|
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string _title = "Anmeldungen - Elwig";
|
public partial string Title { get; set; } = "Anmeldungen - Elwig";
|
||||||
|
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _searchQuery = "";
|
public partial string? SearchQuery { get; set; } = "";
|
||||||
public List<string> TextFilter => [.. SearchQuery?.ToLower().Split(' ').ToList().FindAll(e => e.Length > 0) ?? []];
|
public List<string> TextFilter => [.. SearchQuery?.ToLower().Split(' ').ToList().FindAll(e => e.Length > 0) ?? []];
|
||||||
|
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private bool _filterOnlyUpcoming;
|
public partial bool FilterOnlyUpcoming { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private bool _filterFromAllSchedules;
|
public partial bool FilterFromAllSchedules { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _filterSeasonString;
|
public partial string? FilterSeasonString { get; set; }
|
||||||
public int? FilterSeason {
|
public int? FilterSeason {
|
||||||
get => int.TryParse(FilterSeasonString, out var year) ? year : null;
|
get => int.TryParse(FilterSeasonString, out var year) ? year : null;
|
||||||
set => FilterSeasonString = $"{value}";
|
set => FilterSeasonString = $"{value}";
|
||||||
}
|
}
|
||||||
|
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private DeliveryAncmt? _selectedDeliveryAncmt;
|
public partial DeliveryAncmt? SelectedDeliveryAncmt { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private IEnumerable<DeliveryAncmt> _deliveryAncmts = [];
|
public partial IEnumerable<DeliveryAncmt> DeliveryAncmts { get; set; } = [];
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private DeliverySchedule? _selectedDeliverySchedule;
|
public partial DeliverySchedule? SelectedDeliverySchedule { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private IEnumerable<DeliverySchedule> _deliverySchedules = [];
|
public partial IEnumerable<DeliverySchedule> DeliverySchedules { get; set; } = [];
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private bool _enableSearchInputs = true;
|
public partial bool EnableSearchInputs { get; set; } = true;
|
||||||
|
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _mgNrString;
|
public partial string? MgNrString { get; set; }
|
||||||
public int? MgNr {
|
public int? MgNr {
|
||||||
get => int.TryParse(MgNrString, out var mgnr) ? mgnr : null;
|
get => int.TryParse(MgNrString, out var mgnr) ? mgnr : null;
|
||||||
set => MgNrString = $"{value}";
|
set => MgNrString = $"{value}";
|
||||||
}
|
}
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private Member? _member;
|
public partial Member? Member { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private IEnumerable<Member> _memberSource = [];
|
public partial IEnumerable<Member> MemberSource { get; set; } = [];
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _memberAddress;
|
public partial string? MemberAddress { get; set; }
|
||||||
|
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private DeliverySchedule? _deliverySchedule;
|
public partial DeliverySchedule? DeliverySchedule { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private IEnumerable<DeliverySchedule> _deliveryScheduleSource = [];
|
public partial IEnumerable<DeliverySchedule> DeliveryScheduleSource { get; set; } = [];
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _sortId;
|
public partial string? SortId { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private WineVar? _wineVariety;
|
public partial WineVar? WineVariety { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private IEnumerable<WineVar> _wineVarietySource = [];
|
public partial IEnumerable<WineVar> WineVarietySource { get; set; } = [];
|
||||||
|
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _weightString;
|
public partial string? WeightString { get; set; }
|
||||||
public int? Weight {
|
public int? Weight {
|
||||||
get => int.TryParse(WeightString, out var w) ? w : null;
|
get => int.TryParse(WeightString, out var w) ? w : null;
|
||||||
set => WeightString = $"{value}";
|
set => WeightString = $"{value}";
|
||||||
}
|
}
|
||||||
|
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string _statusAncmts = "-";
|
public partial string StatusAncmts { get; set; } = "-";
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string _statusWeight = "-";
|
public partial string StatusWeight { get; set; } = "-";
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string _statusAncmtCreated = "-";
|
public partial string StatusAncmtCreated { get; set; } = "-";
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string _statusAncmtModified = "-";
|
public partial string StatusAncmtModified { get; set; } = "-";
|
||||||
|
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private Grid? _statusWeightToolTip;
|
public partial Grid? StatusWeightToolTip { get; set; }
|
||||||
|
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private Visibility _controlButtonsVisibility = Visibility.Visible;
|
public partial Visibility ControlButtonsVisibility { get; set; } = Visibility.Visible;
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private Visibility _editingButtonsVisibility = Visibility.Hidden;
|
public partial Visibility EditingButtonsVisibility { get; set; } = Visibility.Hidden;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,76 +10,76 @@ namespace Elwig.ViewModels {
|
|||||||
public partial class DeliveryScheduleAdminViewModel : ObservableObject {
|
public partial class DeliveryScheduleAdminViewModel : ObservableObject {
|
||||||
|
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _searchQuery = "";
|
public partial string? SearchQuery { get; set; } = "";
|
||||||
public List<string> TextFilter => [.. SearchQuery?.ToLower().Split(' ').ToList().FindAll(e => e.Length > 0) ?? []];
|
public List<string> TextFilter => [.. SearchQuery?.ToLower().Split(' ').ToList().FindAll(e => e.Length > 0) ?? []];
|
||||||
|
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private bool _filterOnlyUpcoming;
|
public partial bool FilterOnlyUpcoming { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _filterSeasonString;
|
public partial string? FilterSeasonString { get; set; }
|
||||||
public int? FilterSeason {
|
public int? FilterSeason {
|
||||||
get => int.TryParse(FilterSeasonString, out var year) ? year : null;
|
get => int.TryParse(FilterSeasonString, out var year) ? year : null;
|
||||||
set => FilterSeasonString = $"{value}";
|
set => FilterSeasonString = $"{value}";
|
||||||
}
|
}
|
||||||
|
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private DeliverySchedule? _selectedDeliverySchedule;
|
public partial DeliverySchedule? SelectedDeliverySchedule { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private IEnumerable<DeliverySchedule> _deliverySchedules = [];
|
public partial IEnumerable<DeliverySchedule> DeliverySchedules { get; set; } = [];
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private bool _enableSearchInputs = true;
|
public partial bool EnableSearchInputs { get; set; } = true;
|
||||||
|
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string _dateString = "";
|
public partial string DateString { get; set; } = "";
|
||||||
public DateOnly? Date {
|
public DateOnly? Date {
|
||||||
get => DateOnly.TryParseExact(DateString, "dd.MM.yyyy", out var d) ? d : null;
|
get => DateOnly.TryParseExact(DateString, "dd.MM.yyyy", out var d) ? d : null;
|
||||||
set => DateString = $"{value:dd.MM.yyyy}";
|
set => DateString = $"{value:dd.MM.yyyy}";
|
||||||
}
|
}
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private Branch? _branch;
|
public partial Branch? Branch { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private IEnumerable<Branch> _branchSource = [];
|
public partial IEnumerable<Branch> BranchSource { get; set; } = [];
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string _description = "";
|
public partial string Description { get; set; } = "";
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _maxWeightString = "";
|
public partial string? MaxWeightString { get; set; } = "";
|
||||||
public int? MaxWeight {
|
public int? MaxWeight {
|
||||||
get => int.TryParse(MaxWeightString, out var w) ? w : null;
|
get => int.TryParse(MaxWeightString, out var w) ? w : null;
|
||||||
set => MaxWeightString = $"{value}";
|
set => MaxWeightString = $"{value}";
|
||||||
}
|
}
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private bool _isCancelled;
|
public partial bool IsCancelled { get; set; }
|
||||||
public ObservableCollection<WineVar> MainVarieties { get; set; } = [];
|
public ObservableCollection<WineVar> MainVarieties { get; set; } = [];
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private IEnumerable<WineVar> _mainVarietiesSource = [];
|
public partial IEnumerable<WineVar> MainVarietiesSource { get; set; } = [];
|
||||||
public ObservableCollection<WineVar> OtherVarieties { get; set; } = [];
|
public ObservableCollection<WineVar> OtherVarieties { get; set; } = [];
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private IEnumerable<WineVar> _otherVarietiesSource = [];
|
public partial IEnumerable<WineVar> OtherVarietiesSource { get; set; } = [];
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private IEnumerable<object> _attributeSource = [];
|
public partial IEnumerable<object> AttributeSource { get; set; } = [];
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private object? _attributeObj;
|
public partial object? AttributeObj { get; set; }
|
||||||
public WineAttr? Attribute {
|
public WineAttr? Attribute {
|
||||||
get => AttributeObj as WineAttr;
|
get => AttributeObj as WineAttr;
|
||||||
set => AttributeObj = value ?? AttributeSource.FirstOrDefault();
|
set => AttributeObj = value ?? AttributeSource.FirstOrDefault();
|
||||||
}
|
}
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private IEnumerable<object> _cultivationSource = [];
|
public partial IEnumerable<object> CultivationSource { get; set; } = [];
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private object? _cultivationObj;
|
public partial object? CultivationObj { get; set; }
|
||||||
public WineCult? Cultivation {
|
public WineCult? Cultivation {
|
||||||
get => CultivationObj as WineCult;
|
get => CultivationObj as WineCult;
|
||||||
set => CultivationObj = value ?? CultivationSource.FirstOrDefault();
|
set => CultivationObj = value ?? CultivationSource.FirstOrDefault();
|
||||||
}
|
}
|
||||||
|
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string _ancmtFromDateString = "";
|
public partial string AncmtFromDateString { get; set; } = "";
|
||||||
public DateOnly? AncmtFromDate {
|
public DateOnly? AncmtFromDate {
|
||||||
get => DateOnly.TryParseExact(AncmtFromDateString, "dd.MM.yyyy", out var d) ? d : null;
|
get => DateOnly.TryParseExact(AncmtFromDateString, "dd.MM.yyyy", out var d) ? d : null;
|
||||||
set => AncmtFromDateString = $"{value:dd.MM.yyyy}";
|
set => AncmtFromDateString = $"{value:dd.MM.yyyy}";
|
||||||
}
|
}
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string _ancmtFromTimeString = "";
|
public partial string AncmtFromTimeString { get; set; } = "";
|
||||||
public TimeOnly? AncmtFromTime {
|
public TimeOnly? AncmtFromTime {
|
||||||
get => TimeOnly.TryParseExact(AncmtFromTimeString, "HH:mm", out var t) ? t : null;
|
get => TimeOnly.TryParseExact(AncmtFromTimeString, "HH:mm", out var t) ? t : null;
|
||||||
set => AncmtFromTimeString = $"{value:HH:mm}";
|
set => AncmtFromTimeString = $"{value:HH:mm}";
|
||||||
@@ -92,13 +92,13 @@ namespace Elwig.ViewModels {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string _ancmtToDateString = "";
|
public partial string AncmtToDateString { get; set; } = "";
|
||||||
public DateOnly? AncmtToDate {
|
public DateOnly? AncmtToDate {
|
||||||
get => DateOnly.TryParseExact(AncmtToDateString, "dd.MM.yyyy", out var d) ? d : null;
|
get => DateOnly.TryParseExact(AncmtToDateString, "dd.MM.yyyy", out var d) ? d : null;
|
||||||
set => AncmtToDateString = $"{value:dd.MM.yyyy}";
|
set => AncmtToDateString = $"{value:dd.MM.yyyy}";
|
||||||
}
|
}
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string _ancmtToTimeString = "";
|
public partial string AncmtToTimeString { get; set; } = "";
|
||||||
public TimeOnly? AncmtToTime {
|
public TimeOnly? AncmtToTime {
|
||||||
get => TimeOnly.TryParseExact(AncmtToTimeString, "HH:mm", out var t) ? t : null;
|
get => TimeOnly.TryParseExact(AncmtToTimeString, "HH:mm", out var t) ? t : null;
|
||||||
set => AncmtToTimeString = $"{value:HH:mm}";
|
set => AncmtToTimeString = $"{value:HH:mm}";
|
||||||
@@ -112,8 +112,8 @@ namespace Elwig.ViewModels {
|
|||||||
}
|
}
|
||||||
|
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private Visibility _controlButtonsVisibility = Visibility.Visible;
|
public partial Visibility ControlButtonsVisibility { get; set; } = Visibility.Visible;
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private Visibility _editingButtonsVisibility = Visibility.Hidden;
|
public partial Visibility EditingButtonsVisibility { get; set; } = Visibility.Hidden;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,197 +12,197 @@ namespace Elwig.ViewModels {
|
|||||||
public partial class MemberAdminViewModel : ObservableObject {
|
public partial class MemberAdminViewModel : ObservableObject {
|
||||||
|
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string _title = "Mitglieder - Elwig";
|
public partial string Title { get; set; } = "Mitglieder - Elwig";
|
||||||
|
|
||||||
public int? TransferPredecessorAreaComs = null;
|
public int? TransferPredecessorAreaComs { get; set; } = null;
|
||||||
public int? CancelAreaComs = null;
|
public int? CancelAreaComs { get; set; } = null;
|
||||||
|
|
||||||
public ObservableCollection<KeyValuePair<string, string>> PhoneNrTypes { get; set; } = new(Utils.PhoneNrTypes);
|
public ObservableCollection<KeyValuePair<string, string>> PhoneNrTypes { get; set; } = new(Utils.PhoneNrTypes);
|
||||||
|
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _searchQuery = "";
|
public partial string? SearchQuery { get; set; } = "";
|
||||||
public List<string> TextFilter => [.. SearchQuery?.ToLower().Split(' ').ToList().FindAll(e => e.Length > 0) ?? []];
|
public List<string> TextFilter => [.. SearchQuery?.ToLower().Split(' ').ToList().FindAll(e => e.Length > 0) ?? []];
|
||||||
|
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private bool _showOnlyActiveMembers = true;
|
public partial bool ShowOnlyActiveMembers { get; set; } = true;
|
||||||
|
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private Member? _selectedMember;
|
public partial Member? SelectedMember { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private IEnumerable<Member> _members = [];
|
public partial IEnumerable<Member> Members { get; set; } = [];
|
||||||
|
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private bool _isMemberSelected;
|
public partial bool IsMemberSelected { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private bool _isMemberSelectedOrCreating;
|
public partial bool IsMemberSelectedOrCreating { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private bool _memberHasEmail;
|
public partial bool MemberHasEmail { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private bool _memberCanSendEmail;
|
public partial bool MemberCanSendEmail { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private bool _enableMemberReferenceButton;
|
public partial bool EnableMemberReferenceButton { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private bool _enableSearchInputs = true;
|
public partial bool EnableSearchInputs { get; set; } = true;
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private IEnumerable<bool> _memberHasDeliveries = [.. Enumerable.Range(0, 9999).Select(i => false)];
|
public partial IEnumerable<bool> MemberHasDeliveries { get; set; } = [.. Enumerable.Range(0, 9999).Select(i => false)];
|
||||||
|
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private bool _memberListOrderByMgNr;
|
public partial bool MemberListOrderByMgNr { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private bool _memberListOrderByName;
|
public partial bool MemberListOrderByName { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private bool _memberListOrderByOrt;
|
public partial bool MemberListOrderByOrt { get; set; }
|
||||||
|
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _mgNrString;
|
public partial string? MgNrString { get; set; }
|
||||||
public int? MgNr {
|
public int? MgNr {
|
||||||
get => int.TryParse(MgNrString, out var mgnr) ? mgnr : null;
|
get => int.TryParse(MgNrString, out var mgnr) ? mgnr : null;
|
||||||
set => MgNrString = $"{value}";
|
set => MgNrString = $"{value}";
|
||||||
}
|
}
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _predecessorMgNrString;
|
public partial string? PredecessorMgNrString { get; set; }
|
||||||
public int? PredecessorMgNr {
|
public int? PredecessorMgNr {
|
||||||
get => int.TryParse(PredecessorMgNrString, out var mgnr) ? mgnr : null;
|
get => int.TryParse(PredecessorMgNrString, out var mgnr) ? mgnr : null;
|
||||||
set => PredecessorMgNrString = $"{value}";
|
set => PredecessorMgNrString = $"{value}";
|
||||||
}
|
}
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private bool _isJuridicalPerson;
|
public partial bool IsJuridicalPerson { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _prefix;
|
public partial string? Prefix { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _givenName;
|
public partial string? GivenName { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _name;
|
public partial string? Name { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _suffix;
|
public partial string? Suffix { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _forTheAttentionOf;
|
public partial string? ForTheAttentionOf { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _birthday;
|
public partial string? Birthday { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _age;
|
public partial string? Age { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private bool _isDeceased;
|
public partial bool IsDeceased { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _address;
|
public partial string? Address { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _plzString;
|
public partial string? PlzString { get; set; }
|
||||||
public int? Plz {
|
public int? Plz {
|
||||||
get => int.TryParse(PlzString, out var plz) ? plz : null;
|
get => int.TryParse(PlzString, out var plz) ? plz : null;
|
||||||
set => PlzString = $"{value}";
|
set => PlzString = $"{value}";
|
||||||
}
|
}
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private AT_PlzDest? _ort;
|
public partial AT_PlzDest? Ort { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private IEnumerable<AT_PlzDest> _ortSource = [];
|
public partial IEnumerable<AT_PlzDest> OrtSource { get; set; } = [];
|
||||||
|
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _billingName;
|
public partial string? BillingName { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _billingAddress;
|
public partial string? BillingAddress { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _billingPlzString;
|
public partial string? BillingPlzString { get; set; }
|
||||||
public int? BillingPlz {
|
public int? BillingPlz {
|
||||||
get => int.TryParse(BillingPlzString, out var plz) ? plz : null;
|
get => int.TryParse(BillingPlzString, out var plz) ? plz : null;
|
||||||
set => BillingPlzString = $"{value}";
|
set => BillingPlzString = $"{value}";
|
||||||
}
|
}
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private AT_PlzDest? _billingOrt;
|
public partial AT_PlzDest? BillingOrt { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private IEnumerable<AT_PlzDest> _billingOrtSource = [];
|
public partial IEnumerable<AT_PlzDest> BillingOrtSource { get; set; } = [];
|
||||||
|
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _iban;
|
public partial string? Iban { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _bic;
|
public partial string? Bic { get; set; }
|
||||||
|
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _ustIdNr;
|
public partial string? UstIdNr { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _lfbisNr;
|
public partial string? LfbisNr { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _organicOperatorId;
|
public partial string? OrganicOperatorId { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _organicAuthorityCode;
|
public partial string? OrganicAuthorityCode { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private bool _isBuchführend;
|
public partial bool IsBuchführend { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private bool _isOrganic;
|
public partial bool IsOrganic { get; set; }
|
||||||
|
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _organicState;
|
public partial string? OrganicState { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _organicDetails = "-";
|
public partial string? OrganicDetails { get; set; } = "-";
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private Brush? _organicColor = Brushes.Black;
|
public partial Brush? OrganicColor { get; set; } = Brushes.Black;
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _organicToolTip;
|
public partial string? OrganicToolTip { get; set; }
|
||||||
|
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _entryDate;
|
public partial string? EntryDate { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _exitDate;
|
public partial string? ExitDate { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _businessShares1String;
|
public partial string? BusinessShares1String { get; set; }
|
||||||
public int? BusinessShares1 {
|
public int? BusinessShares1 {
|
||||||
get => int.TryParse(BusinessShares1String, out var shares) ? shares : null;
|
get => int.TryParse(BusinessShares1String, out var shares) ? shares : null;
|
||||||
set => BusinessShares1String = $"{value}";
|
set => BusinessShares1String = $"{value}";
|
||||||
}
|
}
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _businessShares2String;
|
public partial string? BusinessShares2String { get; set; }
|
||||||
public int? BusinessShares2 {
|
public int? BusinessShares2 {
|
||||||
get => int.TryParse(BusinessShares2String, out var shares) ? shares : null;
|
get => int.TryParse(BusinessShares2String, out var shares) ? shares : null;
|
||||||
set => BusinessShares2String = $"{value}";
|
set => BusinessShares2String = $"{value}";
|
||||||
}
|
}
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _businessShares3String;
|
public partial string? BusinessShares3String { get; set; }
|
||||||
public int? BusinessShares3 {
|
public int? BusinessShares3 {
|
||||||
get => int.TryParse(BusinessShares3String, out var shares) ? shares : null;
|
get => int.TryParse(BusinessShares3String, out var shares) ? shares : null;
|
||||||
set => BusinessShares3String = $"{value}";
|
set => BusinessShares3String = $"{value}";
|
||||||
}
|
}
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _accountingNr;
|
public partial string? AccountingNr { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private bool _isActive;
|
public partial bool IsActive { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private bool _isVollLieferant;
|
public partial bool IsVollLieferant { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private bool _isFunktionär;
|
public partial bool IsFunktionär { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private Branch? _branch;
|
public partial Branch? Branch { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private IEnumerable<Branch> _branchSource = [];
|
public partial IEnumerable<Branch> BranchSource { get; set; } = [];
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private AT_Kg? _defaultKg;
|
public partial AT_Kg? DefaultKg { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private IEnumerable<AT_Kg> _defaultKgSource = [];
|
public partial IEnumerable<AT_Kg> DefaultKgSource { get; set; } = [];
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _comment;
|
public partial string? Comment { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private bool _contactViaPost;
|
public partial bool ContactViaPost { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private bool _contactViaEmail;
|
public partial bool ContactViaEmail { get; set; }
|
||||||
|
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string _createdAt = "-";
|
public partial string CreatedAt { get; set; } = "-";
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string _modifiedAt = "-";
|
public partial string ModifiedAt { get; set; } = "-";
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string _modifiedAtShort = "-";
|
public partial string ModifiedAtShort { get; set; } = "-";
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string _exportedAt = "-";
|
public partial string ExportedAt { get; set; } = "-";
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string _importedAt = "-";
|
public partial string ImportedAt { get; set; } = "-";
|
||||||
|
|
||||||
public ObservableCollection<string?> EmailAddresses { get; private set; } = [null, null, null, null, null, null, null, null, null];
|
public ObservableCollection<string?> EmailAddresses { get; private set; } = [null, null, null, null, null, null, null, null, null];
|
||||||
|
|
||||||
public partial class PhoneNr(int? type = null, string? number = null, string? comment = null) : ObservableObject {
|
public partial class PhoneNr(int? type = null, string? number = null, string? comment = null) : ObservableObject {
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
public int _type = type ?? -1;
|
public partial int Type { get; set; } = type ?? -1;
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
public string? _number = number;
|
public partial string? Number { get; set; } = number;
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
public string? _comment = comment;
|
public partial string? Comment { get; set; } = comment;
|
||||||
|
|
||||||
public override bool Equals(object? obj) {
|
public override bool Equals(object? obj) {
|
||||||
return obj is PhoneNr nr && Type == nr.Type && Number == nr.Number && Comment == nr.Comment;
|
return obj is PhoneNr nr && Type == nr.Type && Number == nr.Number && Comment == nr.Comment;
|
||||||
@@ -215,37 +215,37 @@ namespace Elwig.ViewModels {
|
|||||||
public ObservableCollection<PhoneNr> PhoneNrs { get; private set; } = [new(), new(), new(), new(), new(), new(), new(), new(), new()];
|
public ObservableCollection<PhoneNr> PhoneNrs { get; private set; } = [new(), new(), new(), new(), new(), new(), new(), new(), new()];
|
||||||
|
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string _statusMembers = "-";
|
public partial string StatusMembers { get; set; } = "-";
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _statusMembersToolTip;
|
public partial string? StatusMembersToolTip { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private TextBlock? _statusBusinessShares;
|
public partial TextBlock? StatusBusinessShares { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string _statusDeliveriesLastSeason = "-";
|
public partial string StatusDeliveriesLastSeason { get; set; } = "-";
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string _statusDeliveriesLastSeasonInfo = "letzte Saison";
|
public partial string StatusDeliveriesLastSeasonInfo { get; set; } = "letzte Saison";
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private Grid? _statusDeliveriesLastSeasonToolTip;
|
public partial Grid? StatusDeliveriesLastSeasonToolTip { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string _statusDeliveriesThisSeason = "-";
|
public partial string StatusDeliveriesThisSeason { get; set; } = "-";
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string _statusDeliveriesThisSeasonInfo = "aktuelle Saison";
|
public partial string StatusDeliveriesThisSeasonInfo { get; set; } = "aktuelle Saison";
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private Grid? _statusDeliveriesThisSeasonToolTip;
|
public partial Grid? StatusDeliveriesThisSeasonToolTip { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string _statusAreaCommitment = "-";
|
public partial string StatusAreaCommitment { get; set; } = "-";
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private Grid? _statusAreaCommitmentToolTip;
|
public partial Grid? StatusAreaCommitmentToolTip { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string _statusAreaCommitmentInfo = "aktuelle Saison";
|
public partial string StatusAreaCommitmentInfo { get; set; } = "aktuelle Saison";
|
||||||
|
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private Visibility _controlButtonsVisibility = Visibility.Visible;
|
public partial Visibility ControlButtonsVisibility { get; set; } = Visibility.Visible;
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private Visibility _editingButtonsVisibility = Visibility.Hidden;
|
public partial Visibility EditingButtonsVisibility { get; set; } = Visibility.Hidden;
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private Visibility _personalNameVisibility = Visibility.Visible;
|
public partial Visibility PersonalNameVisibility { get; set; } = Visibility.Visible;
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private Visibility _juridicalNameVisibility = Visibility.Hidden;
|
public partial Visibility JuridicalNameVisibility { get; set; } = Visibility.Hidden;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,71 +8,71 @@ namespace Elwig.ViewModels {
|
|||||||
public partial class MemberBusinessSharesViewModel : ObservableObject {
|
public partial class MemberBusinessSharesViewModel : ObservableObject {
|
||||||
|
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string _title = "Geschäftsanteilbewegungen - Elwig";
|
public partial string Title { get; set; } = "Geschäftsanteilbewegungen - Elwig";
|
||||||
|
|
||||||
public required Member FilterMember { get; set; }
|
public required Member FilterMember { get; set; }
|
||||||
|
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private MemberHistory? _selectedHistoryEntry;
|
public partial MemberHistory? SelectedHistoryEntry { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private IEnumerable<MemberHistory> _history = [];
|
public partial IEnumerable<MemberHistory> History { get; set; } = [];
|
||||||
|
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _dateNoticeString;
|
public partial string? DateNoticeString { get; set; }
|
||||||
public DateOnly? DateNotice {
|
public DateOnly? DateNotice {
|
||||||
get => DateOnly.TryParseExact(DateNoticeString, "dd.MM.yyyy", out var d) ? d : null;
|
get => DateOnly.TryParseExact(DateNoticeString, "dd.MM.yyyy", out var d) ? d : null;
|
||||||
set => DateNoticeString = $"{value:dd.MM.yyyy}";
|
set => DateNoticeString = $"{value:dd.MM.yyyy}";
|
||||||
}
|
}
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _dateEffectiveString;
|
public partial string? DateEffectiveString { get; set; }
|
||||||
public DateOnly? DateEffective {
|
public DateOnly? DateEffective {
|
||||||
get => DateOnly.TryParseExact(DateEffectiveString, "dd.MM.yyyy", out var d) ? d : null;
|
get => DateOnly.TryParseExact(DateEffectiveString, "dd.MM.yyyy", out var d) ? d : null;
|
||||||
set => DateEffectiveString = $"{value:dd.MM.yyyy}";
|
set => DateEffectiveString = $"{value:dd.MM.yyyy}";
|
||||||
}
|
}
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _reason;
|
public partial string? Reason { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _sharesString;
|
public partial string? SharesString { get; set; }
|
||||||
public int? Shares {
|
public int? Shares {
|
||||||
get => int.TryParse(SharesString, out var shares) ? shares : null;
|
get => int.TryParse(SharesString, out var shares) ? shares : null;
|
||||||
set => SharesString = $"{value}";
|
set => SharesString = $"{value}";
|
||||||
}
|
}
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _otherMgNrString;
|
public partial string? OtherMgNrString { get; set; }
|
||||||
public int? OtherMgNr {
|
public int? OtherMgNr {
|
||||||
get => int.TryParse(OtherMgNrString, out var mgnr) ? mgnr : null;
|
get => int.TryParse(OtherMgNrString, out var mgnr) ? mgnr : null;
|
||||||
set => OtherMgNrString = $"{value}";
|
set => OtherMgNrString = $"{value}";
|
||||||
}
|
}
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _deductYearString;
|
public partial string? DeductYearString { get; set; }
|
||||||
public int? DeductYear {
|
public int? DeductYear {
|
||||||
get => int.TryParse(DeductYearString, out var year) ? year : null;
|
get => int.TryParse(DeductYearString, out var year) ? year : null;
|
||||||
set => DeductYearString = $"{value}";
|
set => DeductYearString = $"{value}";
|
||||||
}
|
}
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private bool _deduct;
|
public partial bool Deduct { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private bool _companyHasSigned;
|
public partial bool CompanyHasSigned { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private bool _memberHasSigned;
|
public partial bool MemberHasSigned { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _valuePerShareString;
|
public partial string? ValuePerShareString { get; set; }
|
||||||
public decimal? ValuePerShare {
|
public decimal? ValuePerShare {
|
||||||
get => decimal.TryParse(ValuePerShareString, out var v) ? v : null;
|
get => decimal.TryParse(ValuePerShareString, out var v) ? v : null;
|
||||||
set => ValuePerShareString = $"{value:0.00}";
|
set => ValuePerShareString = $"{value:0.00}";
|
||||||
}
|
}
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _totalAmount;
|
public partial string? TotalAmount { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _comment;
|
public partial string? Comment { get; set; }
|
||||||
|
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private Visibility _controlButtonsVisibility = Visibility.Visible;
|
public partial Visibility ControlButtonsVisibility { get; set; } = Visibility.Visible;
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private Visibility _editingButtonsVisibility = Visibility.Hidden;
|
public partial Visibility EditingButtonsVisibility { get; set; } = Visibility.Hidden;
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private Visibility _personalNameVisibility = Visibility.Visible;
|
public partial Visibility PersonalNameVisibility { get; set; } = Visibility.Visible;
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private Visibility _juridicalNameVisibility = Visibility.Hidden;
|
public partial Visibility JuridicalNameVisibility { get; set; } = Visibility.Hidden;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,87 +9,87 @@ namespace Elwig.ViewModels {
|
|||||||
public partial class PaymentVariantsViewModel : ObservableObject {
|
public partial class PaymentVariantsViewModel : ObservableObject {
|
||||||
|
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private PaymentVar? _selectedPaymentVariant;
|
public partial PaymentVar? SelectedPaymentVariant { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private IEnumerable<PaymentVar> _paymentVariants = [];
|
public partial IEnumerable<PaymentVar> PaymentVariants { get; set; } = [];
|
||||||
|
|
||||||
public BillingData? BillingData;
|
public BillingData? BillingData { get; set; }
|
||||||
public bool SeasonLocked = false; // never locked
|
public bool SeasonLocked { get; set; } = false; // never locked
|
||||||
public bool WeightModifierChanged;
|
public bool WeightModifierChanged { get; set; }
|
||||||
|
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string _name = "";
|
public partial string Name { get; set; } = "";
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string _comment = "";
|
public partial string Comment { get; set; } = "";
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string _dateString = "";
|
public partial string DateString { get; set; } = "";
|
||||||
public DateOnly? Date {
|
public DateOnly? Date {
|
||||||
get => DateOnly.TryParseExact(DateString, "dd.MM.yyyy", out var d) ? d : null;
|
get => DateOnly.TryParseExact(DateString, "dd.MM.yyyy", out var d) ? d : null;
|
||||||
set => DateString = $"{value:dd.MM.yyyy}";
|
set => DateString = $"{value:dd.MM.yyyy}";
|
||||||
}
|
}
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string _transferDateString = "";
|
public partial string TransferDateString { get; set; } = "";
|
||||||
public DateOnly? TransferDate {
|
public DateOnly? TransferDate {
|
||||||
get => DateOnly.TryParseExact(TransferDateString, "dd.MM.yyyy", out var d) ? d : null;
|
get => DateOnly.TryParseExact(TransferDateString, "dd.MM.yyyy", out var d) ? d : null;
|
||||||
set => TransferDateString = $"{value:dd.MM.yyyy}";
|
set => TransferDateString = $"{value:dd.MM.yyyy}";
|
||||||
}
|
}
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string _weightModifierString = "";
|
public partial string WeightModifierString { get; set; } = "";
|
||||||
public double? WeightModifier {
|
public double? WeightModifier {
|
||||||
get => double.TryParse(WeightModifierString, out var d) ? d : null;
|
get => double.TryParse(WeightModifierString, out var d) ? d : null;
|
||||||
set => WeightModifierString = $"{value}";
|
set => WeightModifierString = $"{value}";
|
||||||
}
|
}
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string _data = "";
|
public partial string Data { get; set; } = "";
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private bool _considerModifiers;
|
public partial bool ConsiderModifiers { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private bool _considerPenalties;
|
public partial bool ConsiderPenalties { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private bool _considerPenalty;
|
public partial bool ConsiderPenalty { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private bool _considerAuto;
|
public partial bool ConsiderAuto { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private bool _considerCustom;
|
public partial bool ConsiderCustom { get; set; }
|
||||||
|
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private bool _isPaymentVariantSelected;
|
public partial bool IsPaymentVariantSelected { get; set; }
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private bool _isReadOnly = true;
|
public partial bool IsReadOnly { get; set; } = true;
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private bool _dataIsReadOnly = true;
|
public partial bool DataIsReadOnly { get; set; } = true;
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private bool _isEnabled = false;
|
public partial bool IsEnabled { get; set; } = false;
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private bool _saveIsEnabled = false;
|
public partial bool SaveIsEnabled { get; set; } = false;
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private bool _deleteIsEnabled = false;
|
public partial bool DeleteIsEnabled { get; set; } = false;
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private bool _calculateIsEnabled = false;
|
public partial bool CalculateIsEnabled { get; set; } = false;
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private bool _exportIsEnabled = false;
|
public partial bool ExportIsEnabled { get; set; } = false;
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private bool _commitIsEnabled = false;
|
public partial bool CommitIsEnabled { get; set; } = false;
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private Visibility _commitVisibility = Visibility.Visible;
|
public partial Visibility CommitVisibility { get; set; } = Visibility.Visible;
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private bool _revertIsEnabled = false;
|
public partial bool RevertIsEnabled { get; set; } = false;
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private Visibility _revertVisibility = Visibility.Hidden;
|
public partial Visibility RevertVisibility { get; set; } = Visibility.Hidden;
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string _arrow = "\xF0AF";
|
public partial string Arrow { get; set; } = "\xF0AF";
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string _editText = "Bearbeiten";
|
public partial string EditText { get; set; } = "Bearbeiten";
|
||||||
|
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string _statusModifierSum = "-";
|
public partial string StatusModifierSum { get; set; } = "-";
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string _statusTotalSum = "-";
|
public partial string StatusTotalSum { get; set; } = "-";
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string _statusVatSum = "-";
|
public partial string StatusVatSum { get; set; } = "-";
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string _statusDeductionSum = "-";
|
public partial string StatusDeductionSum { get; set; } = "-";
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string _statusPaymentSum = "-";
|
public partial string StatusPaymentSum { get; set; } = "-";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user