Merge branch 'vnext' of github.com:pazof/yavsc into vnext

vnext
Paul Schneider 8 years ago
commit 5b55b66e9a
6 changed files with 20 additions and 15 deletions

@ -137,7 +137,7 @@ namespace BookAStar.Data
{
// TODO throw custom exception, and catch to inform user
var errcontent = await response.Content.ReadAsStringAsync();
Debug.WriteLine($"Create failed posting {stringContent} @ {controllerUri.AbsoluteUri}");
Debug.WriteLine($"Create failed posting {stringContent} @ {controllerUri.AbsoluteUri}: {errcontent}");
}
else
{

@ -5,9 +5,9 @@ namespace BookAStar.Model.Interfaces
{
public interface IEstimate
{
IList<string> AttachedFiles { get; set; }
IList<string> AttachedGraphics { get; }
IList<BillingLine> Bill { get; set; }
List<string> AttachedFiles { get; set; }
List<string> AttachedGraphics { get; }
List<BillingLine> Bill { get; set; }
string ClientId { get; set; }
long? CommandId { get; set; }
string CommandType { get; set; }

@ -15,7 +15,7 @@ namespace BookAStar.Model.Workflow
// Markdown expected
public string Description { get; set; }
public string Title { get; set; }
public IList<BillingLine> Bill { get; set; }
public List<BillingLine> Bill { get; set; }
/// <summary>
/// List of attached graphic files
/// to this estimate, as relative pathes to
@ -23,7 +23,7 @@ namespace BookAStar.Model.Workflow
/// In db, they are separated by <c>:</c>
/// </summary>
/// <returns></returns>
public IList<string> AttachedGraphics { get; set; }
public List<string> AttachedGraphics { get; set; }
[JsonIgnore]
public string AttachedGraphicsString
{
@ -37,7 +37,7 @@ namespace BookAStar.Model.Workflow
/// In db, they are separated by <c>:</c>
/// </summary>
/// <returns></returns>
public IList<string> AttachedFiles { get; set; }
public List<string> AttachedFiles { get; set; }
[JsonIgnore]
public string AttachedFilesString
{

@ -39,9 +39,9 @@
</ResourceDictionary>
</ContentPage.Resources>
<ScrollView>
<ScrollView>
<StackLayout x:Name="mainStackLayout">
<StackLayout x:Name="mainStackLayout">
<Label Text="Description de la ligne de facture"
Style="{StaticResource InputLabelStyle}"></Label>
<StackLayout Orientation="Horizontal" VerticalOptions="FillAndExpand">
@ -93,12 +93,14 @@
Path=IsValid,
Converter={StaticResource boolToStyleImage}}" />
</StackLayout>
<Button Text="Términé"
<StackLayout Orientation="Horizontal">
<Button Text="Supprimer"
Command="{Binding DeleteCommand}"
Clicked="OnValidateClicked"></Button>
Clicked="OnDeleteClicked"></Button>
<Button Text="Términé"
Command="{Binding ValidateCommand}"
Clicked="OnValidateClicked"></Button>
</StackLayout>
</ScrollView>
</StackLayout>
</StackLayout>
</ScrollView>
</ContentPage>

@ -16,7 +16,10 @@ namespace BookAStar.Pages
picker.Items.Add(du);
BindingContext = model;
}
public void OnDeleteClicked(object sender, EventArgs e)
{
throw new NotImplementedException();
}
public void OnValidateClicked (object sender, EventArgs e)
{
this.Navigation.PopAsync();

@ -31,7 +31,7 @@ namespace BookAStar.ViewModels
private void Bill_CollectionChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e)
{
Data.Bill = Bill;
Data.Bill = new List<BillingLine>( Bill );
NotifyPropertyChanged("FormattedTotal");
}
private Estimate data;

Loading…