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 // TODO throw custom exception, and catch to inform user
var errcontent = await response.Content.ReadAsStringAsync(); var errcontent = await response.Content.ReadAsStringAsync();
Debug.WriteLine($"Create failed posting {stringContent} @ {controllerUri.AbsoluteUri}"); Debug.WriteLine($"Create failed posting {stringContent} @ {controllerUri.AbsoluteUri}: {errcontent}");
} }
else else
{ {

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

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

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

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

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

Loading…