|
|
|
@ -16,6 +16,7 @@
|
|
|
|
<Style TargetType="Button">
|
|
|
|
<Style TargetType="Button">
|
|
|
|
<Setter Property="Style" Value="{StaticResource ButtonStyle}" />
|
|
|
|
<Setter Property="Style" Value="{StaticResource ButtonStyle}" />
|
|
|
|
</Style>
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
<converters:EnumConverter x:Key="enumToInt" />
|
|
|
|
<converters:BooleanToObjectConverter x:Key="boolToStyleImage" x:TypeArguments="Style">
|
|
|
|
<converters:BooleanToObjectConverter x:Key="boolToStyleImage" x:TypeArguments="Style">
|
|
|
|
|
|
|
|
|
|
|
|
<converters:BooleanToObjectConverter.FalseObject>
|
|
|
|
<converters:BooleanToObjectConverter.FalseObject>
|
|
|
|
@ -33,26 +34,29 @@
|
|
|
|
Value="{extensions:ImageResource BookAStar.Images.Validation.success.png}" />
|
|
|
|
Value="{extensions:ImageResource BookAStar.Images.Validation.success.png}" />
|
|
|
|
</Style>
|
|
|
|
</Style>
|
|
|
|
</converters:BooleanToObjectConverter.TrueObject>
|
|
|
|
</converters:BooleanToObjectConverter.TrueObject>
|
|
|
|
|
|
|
|
|
|
|
|
</converters:BooleanToObjectConverter>
|
|
|
|
</converters:BooleanToObjectConverter>
|
|
|
|
|
|
|
|
|
|
|
|
</ResourceDictionary>
|
|
|
|
</ResourceDictionary>
|
|
|
|
</ContentPage.Resources>
|
|
|
|
</ContentPage.Resources>
|
|
|
|
<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>
|
|
|
|
<Editor VerticalOptions="FillAndExpand"></Editor>
|
|
|
|
<Editor VerticalOptions="FillAndExpand" Text="{Binding Description, Mode=TwoWay}" ></Editor>
|
|
|
|
|
|
|
|
|
|
|
|
<Label Text="Durée de la prestation"
|
|
|
|
<Label Text="Durée de la prestation"
|
|
|
|
Style="{StaticResource InputLabelStyle}"></Label>
|
|
|
|
Style="{StaticResource InputLabelStyle}"></Label>
|
|
|
|
<StackLayout Orientation="Horizontal">
|
|
|
|
<StackLayout Orientation="Horizontal">
|
|
|
|
<Entry Placeholder="Durée" Keyboard="Numeric" Style="{StaticResource BigEntry}" />
|
|
|
|
<Entry Placeholder="Durée" Keyboard="Numeric" Style="{StaticResource BigEntry}"
|
|
|
|
<Picker x:Name="picker" SelectedIndex="{Binding UnitaryCost, Mode=TwoWay}"
|
|
|
|
Text="{Binding DurationValue, Mode=TwoWay}" />
|
|
|
|
Style="{StaticResource PickerStyle}" Title="Unité de temps">
|
|
|
|
<views:EnumPicker x:Name="picker" Style="{StaticResource PickerStyle}"
|
|
|
|
<Picker.Items>
|
|
|
|
EnumSource="{Binding DurationUnit}"
|
|
|
|
<x:String>Jours</x:String>
|
|
|
|
Title="Unité de temps"
|
|
|
|
<x:String>Heures</x:String>
|
|
|
|
SelectedItem="{Binding DurationUnit, Mode=TwoWay}">
|
|
|
|
<x:String>Minutes</x:String>
|
|
|
|
</views:EnumPicker>
|
|
|
|
</Picker.Items>
|
|
|
|
|
|
|
|
</Picker>
|
|
|
|
|
|
|
|
</StackLayout>
|
|
|
|
</StackLayout>
|
|
|
|
|
|
|
|
|
|
|
|
<Label Text="Quantité facturée" Style="{StaticResource InputLabelStyle}"></Label>
|
|
|
|
<Label Text="Quantité facturée" Style="{StaticResource InputLabelStyle}"></Label>
|
|
|
|
<Entry Text="{Binding Count, Mode=TwoWay}" Placeholder="Quantité" Keyboard="Numeric"
|
|
|
|
<Entry Text="{Binding Count, Mode=TwoWay}" Placeholder="Quantité" Keyboard="Numeric"
|
|
|
|
Style="{StaticResource BigEntry}"/>
|
|
|
|
Style="{StaticResource BigEntry}"/>
|
|
|
|
@ -63,14 +67,15 @@
|
|
|
|
<Entry.Behaviors>
|
|
|
|
<Entry.Behaviors>
|
|
|
|
<behaviors:DecimalValidatorBehavior x:Name="unitCostValidator" />
|
|
|
|
<behaviors:DecimalValidatorBehavior x:Name="unitCostValidator" />
|
|
|
|
</Entry.Behaviors>
|
|
|
|
</Entry.Behaviors>
|
|
|
|
|
|
|
|
</Entry>
|
|
|
|
|
|
|
|
<Label Text="€" Style="{StaticResource BigLabel}" />
|
|
|
|
<Image x:Name="unitaryCostSuccessErrorImage"
|
|
|
|
<Image x:Name="unitaryCostSuccessErrorImage"
|
|
|
|
Style="{Binding Source={x:Reference unitCostValidator},
|
|
|
|
Style="{Binding Source={x:Reference unitCostValidator},
|
|
|
|
Path=IsValid,
|
|
|
|
Path=IsValid,
|
|
|
|
Converter={StaticResource boolToStyleImage}}" />
|
|
|
|
Converter={StaticResource boolToStyleImage}}" />
|
|
|
|
</Entry>
|
|
|
|
|
|
|
|
<Label Text="€" Style="{StaticResource BigLabel}" HorizontalTextAlignment="Start"/>
|
|
|
|
|
|
|
|
</StackLayout>
|
|
|
|
</StackLayout>
|
|
|
|
<Button Text="Valider cette ligne de facture" Command="{Binding ValidateCommand}"
|
|
|
|
<Button Text="Valider cette ligne de devis"
|
|
|
|
|
|
|
|
Command="{Binding ValidateCommand}"
|
|
|
|
Clicked="OnValidateClicked"></Button>
|
|
|
|
Clicked="OnValidateClicked"></Button>
|
|
|
|
</StackLayout>
|
|
|
|
</StackLayout>
|
|
|
|
</ContentPage>
|
|
|
|
</ContentPage>
|