|
|
@ -42,23 +42,29 @@
|
|
|
|
<ScrollView>
|
|
|
|
<ScrollView>
|
|
|
|
|
|
|
|
|
|
|
|
<StackLayout x:Name="mainStackLayout">
|
|
|
|
<StackLayout x:Name="mainStackLayout">
|
|
|
|
|
|
|
|
<StackLayout Orientation="Horizontal">
|
|
|
|
<Label Text="Description de la ligne de facture"
|
|
|
|
<Label Text="Description de la ligne de facture"
|
|
|
|
Style="{StaticResource InputLabelStyle}"></Label>
|
|
|
|
Style="{StaticResource InputLabelStyle}"></Label>
|
|
|
|
|
|
|
|
<Image x:Name="descriptionSuccessErrorImage"
|
|
|
|
|
|
|
|
Style="{Binding Source={x:Reference descriptionLenValidator}, Path=IsValid, Converter={StaticResource boolToStyleImage}}" />
|
|
|
|
|
|
|
|
</StackLayout>
|
|
|
|
<Editor HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" Text="{Binding Description, Mode=TwoWay}">
|
|
|
|
<Editor HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" Text="{Binding Description, Mode=TwoWay}">
|
|
|
|
<Editor.Behaviors>
|
|
|
|
<Editor.Behaviors>
|
|
|
|
<behaviors:EditorMaxLengthValidator x:Name="descriptionLenValidator" MaxLength="12" MinLength="3" />
|
|
|
|
<behaviors:EditorMaxLengthValidator x:Name="descriptionLenValidator" MaxLength="12" MinLength="3" />
|
|
|
|
</Editor.Behaviors>
|
|
|
|
</Editor.Behaviors>
|
|
|
|
</Editor>
|
|
|
|
</Editor>
|
|
|
|
<StackLayout Orientation="Horizontal">
|
|
|
|
|
|
|
|
<Image x:Name="descriptionSuccessErrorImage"
|
|
|
|
|
|
|
|
Style="{Binding Source={x:Reference descriptionLenValidator}, Path=IsValid, Converter={StaticResource boolToStyleImage}}" />
|
|
|
|
|
|
|
|
<Label Text="{Binding Source={x:Reference descriptionLenValidator}, Path=Error}"
|
|
|
|
<Label Text="{Binding Source={x:Reference descriptionLenValidator}, Path=Error}"
|
|
|
|
Style="{StaticResource ErrorLabelStyle}"></Label>
|
|
|
|
Style="{StaticResource ErrorLabelStyle}"></Label>
|
|
|
|
</StackLayout>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<StackLayout Orientation="Horizontal">
|
|
|
|
<Label Text="Durée de la prestation"
|
|
|
|
<Label Text="Durée de la prestation"
|
|
|
|
Style="{StaticResource InputLabelStyle}">
|
|
|
|
Style="{StaticResource InputLabelStyle}">
|
|
|
|
</Label>
|
|
|
|
</Label>
|
|
|
|
|
|
|
|
<Image x:Name="durationSuccessErrorImage"
|
|
|
|
|
|
|
|
Style="{Binding Source={x:Reference durationValidator},
|
|
|
|
|
|
|
|
Path=IsValid,
|
|
|
|
|
|
|
|
Converter={StaticResource boolToStyleImage}}" />
|
|
|
|
|
|
|
|
</StackLayout>
|
|
|
|
<StackLayout Orientation="Horizontal">
|
|
|
|
<StackLayout Orientation="Horizontal">
|
|
|
|
<Entry Placeholder="Durée" Keyboard="Numeric" Style="{StaticResource BigEntry}"
|
|
|
|
<Entry Placeholder="Durée" Keyboard="Numeric" Style="{StaticResource BigEntry}"
|
|
|
|
Text="{Binding DurationValue, Mode=TwoWay, StringFormat='{0}'}" >
|
|
|
|
Text="{Binding DurationValue, Mode=TwoWay, StringFormat='{0}'}" >
|
|
|
@ -71,14 +77,16 @@
|
|
|
|
Title="Unité de temps"
|
|
|
|
Title="Unité de temps"
|
|
|
|
SelectedItem="{Binding DurationUnit, Mode=TwoWay}">
|
|
|
|
SelectedItem="{Binding DurationUnit, Mode=TwoWay}">
|
|
|
|
</views:EnumPicker>
|
|
|
|
</views:EnumPicker>
|
|
|
|
<Image x:Name="durationSuccessErrorImage"
|
|
|
|
|
|
|
|
Style="{Binding Source={x:Reference durationValidator},
|
|
|
|
</StackLayout>
|
|
|
|
|
|
|
|
<StackLayout Orientation="Horizontal">
|
|
|
|
|
|
|
|
<Label Text="Quantité facturée" Style="{StaticResource InputLabelStyle}"></Label>
|
|
|
|
|
|
|
|
<Image x:Name="countSuccessErrorImage"
|
|
|
|
|
|
|
|
Style="{Binding Source={x:Reference countValidator},
|
|
|
|
Path=IsValid,
|
|
|
|
Path=IsValid,
|
|
|
|
Converter={StaticResource boolToStyleImage}}" />
|
|
|
|
Converter={StaticResource boolToStyleImage}}" />
|
|
|
|
</StackLayout>
|
|
|
|
</StackLayout>
|
|
|
|
|
|
|
|
|
|
|
|
<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}">
|
|
|
|
<Entry.Behaviors>
|
|
|
|
<Entry.Behaviors>
|
|
|
@ -86,15 +94,18 @@
|
|
|
|
</Entry.Behaviors>
|
|
|
|
</Entry.Behaviors>
|
|
|
|
</Entry>
|
|
|
|
</Entry>
|
|
|
|
<StackLayout Orientation="Horizontal">
|
|
|
|
<StackLayout Orientation="Horizontal">
|
|
|
|
<Image x:Name="countSuccessErrorImage"
|
|
|
|
|
|
|
|
Style="{Binding Source={x:Reference countValidator},
|
|
|
|
|
|
|
|
Path=IsValid,
|
|
|
|
|
|
|
|
Converter={StaticResource boolToStyleImage}}" />
|
|
|
|
|
|
|
|
<Label Text="{Binding Source={x:Reference countValidator}, Path=Error}"
|
|
|
|
<Label Text="{Binding Source={x:Reference countValidator}, Path=Error}"
|
|
|
|
Style="{StaticResource ErrorLabelStyle}"></Label>
|
|
|
|
Style="{StaticResource ErrorLabelStyle}"></Label>
|
|
|
|
</StackLayout>
|
|
|
|
</StackLayout>
|
|
|
|
|
|
|
|
|
|
|
|
<Label Text="Prix unitaire" Style="{StaticResource InputLabelStyle}"></Label>
|
|
|
|
<StackLayout Orientation="Horizontal">
|
|
|
|
|
|
|
|
<Label Text="Prix unitaire" Style="{StaticResource InputLabelStyle}">
|
|
|
|
|
|
|
|
</Label>
|
|
|
|
|
|
|
|
<Image x:Name="unitaryCostSuccessErrorImage"
|
|
|
|
|
|
|
|
Style="{Binding Source={x:Reference unitCostValidator},
|
|
|
|
|
|
|
|
Path=IsValid,
|
|
|
|
|
|
|
|
Converter={StaticResource boolToStyleImage}}" />
|
|
|
|
|
|
|
|
</StackLayout>
|
|
|
|
<StackLayout Orientation="Horizontal">
|
|
|
|
<StackLayout Orientation="Horizontal">
|
|
|
|
<Entry Text="{Binding UnitaryCostText, Mode=TwoWay}" Placeholder="Prix"
|
|
|
|
<Entry Text="{Binding UnitaryCostText, Mode=TwoWay}" Placeholder="Prix"
|
|
|
|
Keyboard="Numeric" Style="{StaticResource BigEntry}">
|
|
|
|
Keyboard="Numeric" Style="{StaticResource BigEntry}">
|
|
|
@ -103,15 +114,13 @@
|
|
|
|
</Entry.Behaviors>
|
|
|
|
</Entry.Behaviors>
|
|
|
|
</Entry>
|
|
|
|
</Entry>
|
|
|
|
<Label Text="€" Style="{StaticResource BigLabelStyle}" />
|
|
|
|
<Label Text="€" Style="{StaticResource BigLabelStyle}" />
|
|
|
|
<Image x:Name="unitaryCostSuccessErrorImage"
|
|
|
|
|
|
|
|
Style="{Binding Source={x:Reference unitCostValidator},
|
|
|
|
|
|
|
|
Path=IsValid,
|
|
|
|
|
|
|
|
Converter={StaticResource boolToStyleImage}}" />
|
|
|
|
|
|
|
|
</StackLayout>
|
|
|
|
</StackLayout>
|
|
|
|
|
|
|
|
|
|
|
|
<StackLayout Orientation="Horizontal">
|
|
|
|
<StackLayout Orientation="Horizontal">
|
|
|
|
<Button Text="Términé"
|
|
|
|
<Button Text="Términé"
|
|
|
|
Command="{Binding ValidateCommand}"
|
|
|
|
Command="{Binding ValidateCommand}"
|
|
|
|
Clicked="OnValidateClicked"></Button>
|
|
|
|
Clicked="OnValidateClicked"
|
|
|
|
|
|
|
|
IsEnabled="{Binding ModelState.IsValid}"></Button>
|
|
|
|
<Button Text="Supprimer"
|
|
|
|
<Button Text="Supprimer"
|
|
|
|
Command="{Binding RemoveCommand}"
|
|
|
|
Command="{Binding RemoveCommand}"
|
|
|
|
Clicked="OnDeleteClicked"></Button>
|
|
|
|
Clicked="OnDeleteClicked"></Button>
|
|
|
|