fixes edition cache

This commit is contained in:
Paul Schneider 2016-10-18 15:51:56 +02:00
commit 5dea4ee707
24 changed files with 269 additions and 102 deletions

View file

@ -1,4 +1,5 @@
using BookAStar.Interfaces;
using BookAStar.Data;
using BookAStar.Interfaces;
using BookAStar.Model;
using BookAStar.Model.Social;
using System;
@ -23,11 +24,34 @@ namespace BookAStar.ViewModels
Location = data.Location;
EventDate = data.EventDate;
Previsionnal = data.Previsionnal;
Id = data.Id;
this.data = data;
}
private BookQueryData data;
public BookQueryData Data {
get
{
return data;
}
}
public ClientProviderInfo Client { get; set; }
public Location Location { get; set; }
public long Id { get; set; }
public DateTime EventDate { get; set; }
public decimal? Previsionnal { get; set; }
public EditEstimateViewModel DraftEstimate
{
get
{
return DataManager.Current.EstimationCache.LocalGet(this.Id);
}
}
public string EditEstimateButtonText
{
get
{
return DraftEstimate != null ? "Editer le devis" : "Faire un devis" ;
}
}
}
}