Service für app8 gebaut BeWoWindowBuilder Einführung: Zentraler Ort für generische, kleine Fenster, wie Text Viewer, Text Editor, Picture Shower, etc. Alte Gkv Abrechnungsansicht deaktiviert
52 lines
1.7 KiB
C#
52 lines
1.7 KiB
C#
using System.Collections.Generic;
|
|
using BS.Shared.Core;
|
|
using BS.Shared.DataContracts;
|
|
|
|
namespace BeWo.ViewModel.ListViewModel
|
|
{
|
|
public class GkvAbrechnungListVM : AbstractDCListMapperVM<GkvAbrechnungDC, GkvAbrechnungVM>
|
|
{
|
|
public static string PropertyName_DateTimeSpanFilter = "DateTimeSpanFilter";
|
|
|
|
public static string PropertyName_FilterResultAmountSum = "FilterResultAmountSum";
|
|
public static string PropertyName_FilterResultAmountNotPaidSum = "FilterResultAmountNotPaidSum";
|
|
|
|
private DateTimeSpan _DateTimeSpanFilter;
|
|
|
|
public GkvAbrechnungListVM(List<GkvAbrechnungDC> pDCList) : base(pDCList)
|
|
{
|
|
this.VMList.ListChanged += (s, e) => this.FirePropertyChanged(PropertyName_FilterResultAmountSum);
|
|
this.VMList.ListChanged += (s, e) => this.FirePropertyChanged(PropertyName_FilterResultAmountNotPaidSum);
|
|
}
|
|
|
|
public DateTimeSpan DateTimeSpanFilter
|
|
{
|
|
get
|
|
{
|
|
return this._DateTimeSpanFilter;
|
|
}
|
|
|
|
set
|
|
{
|
|
if (this.AreDifferent(this._DateTimeSpanFilter, value))
|
|
{
|
|
this._DateTimeSpanFilter = value;
|
|
this.FirePropertyChanged(PropertyName_DateTimeSpanFilter);
|
|
}
|
|
}
|
|
}
|
|
|
|
internal void UpdateList(IList<GkvAbrechnungDC> dcList)
|
|
{
|
|
this.VMList.Clear();
|
|
|
|
foreach (var dc in dcList)
|
|
{
|
|
VMList.Add(CreateVM(dc));
|
|
}
|
|
|
|
this.FirePropertyChanged(PropertyName_FilterResultAmountSum);
|
|
this.FirePropertyChanged(PropertyName_FilterResultAmountNotPaidSum);
|
|
}
|
|
}
|
|
} |