|
|
|
@ -32,10 +32,11 @@ namespace BookAStar.ViewModels.EstimateAndBilling
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Data.Bill = new List<BillingLine>( Bill );
|
|
|
|
Data.Bill = new List<BillingLine>( Bill );
|
|
|
|
NotifyPropertyChanged("FormattedTotal");
|
|
|
|
NotifyPropertyChanged("FormattedTotal");
|
|
|
|
|
|
|
|
NotifyPropertyChanged("Bill");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
private Estimate data;
|
|
|
|
private Estimate data;
|
|
|
|
public Estimate Data { get { return data; } set {
|
|
|
|
public Estimate Data { get { return data; } set {
|
|
|
|
data = value;
|
|
|
|
SetProperty<Estimate>(ref data, value);
|
|
|
|
if (data.AttachedFiles == null) data.AttachedFiles = new List<string>();
|
|
|
|
if (data.AttachedFiles == null) data.AttachedFiles = new List<string>();
|
|
|
|
if (data.AttachedGraphics == null) data.AttachedGraphics = new List<string>();
|
|
|
|
if (data.AttachedGraphics == null) data.AttachedGraphics = new List<string>();
|
|
|
|
if (data.Bill == null) data.Bill = new List<BillingLine>();
|
|
|
|
if (data.Bill == null) data.Bill = new List<BillingLine>();
|
|
|
|
@ -43,6 +44,11 @@ namespace BookAStar.ViewModels.EstimateAndBilling
|
|
|
|
AttachedGraphicList = new ObservableCollection<string>(data.AttachedGraphics);
|
|
|
|
AttachedGraphicList = new ObservableCollection<string>(data.AttachedGraphics);
|
|
|
|
Bill = new ObservableCollection<BillingLine>(data.Bill);
|
|
|
|
Bill = new ObservableCollection<BillingLine>(data.Bill);
|
|
|
|
Bill.CollectionChanged += Bill_CollectionChanged;
|
|
|
|
Bill.CollectionChanged += Bill_CollectionChanged;
|
|
|
|
|
|
|
|
Title = Data.Title;
|
|
|
|
|
|
|
|
Description = Data.Description;
|
|
|
|
|
|
|
|
NotifyPropertyChanged("FormattedTotal");
|
|
|
|
|
|
|
|
NotifyPropertyChanged("Query");
|
|
|
|
|
|
|
|
NotifyPropertyChanged("CLient");
|
|
|
|
} }
|
|
|
|
} }
|
|
|
|
|
|
|
|
|
|
|
|
[JsonIgnore]
|
|
|
|
[JsonIgnore]
|
|
|
|
|