Merge branch 'vnext' of github.com:pazof/yavsc into vnext
This commit is contained in:
commit
c47e2b4621
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
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
</StackLayout>
|
||||||
</ScrollView>
|
</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…
Add table
Add a link
Reference in a new issue