rfid-cb / CodeBarreRFID / View / AnimalView.xaml @ 0f2b4298
Historique | Voir | Annoter | Télécharger (6,175 ko)
1 |
<?xml version="1.0" encoding="utf-8" ?>
|
---|---|
2 |
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" |
3 |
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" |
4 |
x:Class="CodeBarreRFID.View.AnimalView" |
5 |
Title="Formulaire Animal"> |
6 |
<Grid>
|
7 |
<StackLayout BackgroundColor="{StaticResource InraePrimary}" Spacing="0"> |
8 |
<ScrollView>
|
9 |
<StackLayout Spacing="0"> |
10 |
<StackLayout
|
11 |
Margin="10" |
12 |
HorizontalOptions="FillAndExpand" |
13 |
VerticalOptions="FillAndExpand"> |
14 |
<Frame HorizontalOptions="FillAndExpand" |
15 |
VerticalOptions="FillAndExpand" CornerRadius="5"> |
16 |
|
17 |
<StackLayout>
|
18 |
<Frame BorderColor="{StaticResource InraePrimary}" Margin="0,0,0,20"> |
19 |
<Label
|
20 |
Text="Formulaire Animal" |
21 |
VerticalOptions="Center" |
22 |
HorizontalOptions="Center" |
23 |
Style="{StaticResource textTitre}" |
24 |
/>
|
25 |
</Frame>
|
26 |
<Grid ColumnDefinitions="20*,70*,10*" RowDefinitions="auto,auto"> |
27 |
<Label
|
28 |
Grid.Row="0" |
29 |
Grid.Column="0" |
30 |
Text="RFID : " |
31 |
VerticalOptions="Center" |
32 |
HorizontalOptions="Center" |
33 |
Style="{StaticResource textLabel}" /> |
34 |
<Entry
|
35 |
Grid.Row="0" |
36 |
Grid.Column="1" |
37 |
Text="{Binding AnimalRfid}" |
38 |
VerticalOptions="Center" |
39 |
HorizontalOptions="Center" |
40 |
Keyboard="Numeric" |
41 |
Style="{StaticResource textLabel}" |
42 |
FontSize="Large"/> |
43 |
<ImageButton
|
44 |
Grid.Row="0" |
45 |
Grid.Column="2" |
46 |
Source="erase.svg" |
47 |
Command="{Binding EffaceRFIDCommand}" |
48 |
HeightRequest="30" |
49 |
/>
|
50 |
<Label
|
51 |
Grid.Row="1" |
52 |
Grid.Column="0" |
53 |
Text="CB : " |
54 |
VerticalOptions="Center" |
55 |
HorizontalOptions="Center" |
56 |
Style="{StaticResource textLabel}"/> |
57 |
<Entry
|
58 |
Grid.Row="1" |
59 |
Grid.Column="1" |
60 |
Text="{Binding AnimalCodeBarre}" |
61 |
VerticalOptions="Center" |
62 |
HorizontalOptions="Center" |
63 |
Style="{StaticResource textLabel}" |
64 |
FontSize="Large" |
65 |
MaxLength="9"/> |
66 |
<ImageButton
|
67 |
Grid.Row="1" |
68 |
Grid.Column="2" |
69 |
Source="erase.svg" |
70 |
Command="{Binding EffaceCBCommand}" |
71 |
HeightRequest="30" |
72 |
/>
|
73 |
</Grid>
|
74 |
<Frame BorderColor="{StaticResource InraePrimary}" Margin="0,100,0,20"> |
75 |
<Grid ColumnDefinitions="80*,20*"> |
76 |
<Label
|
77 |
Grid.Column="0" |
78 |
Text="Nb d'animaux ajoutés :" |
79 |
VerticalOptions="Center" |
80 |
HorizontalOptions="End" |
81 |
Style="{StaticResource textLabel}"/> |
82 |
<Label
|
83 |
Grid.Column="1" |
84 |
Text="{Binding NbAnimaux}" |
85 |
VerticalOptions="Center" |
86 |
HorizontalOptions="Center" |
87 |
Style="{StaticResource textLabel}"/> |
88 |
</Grid>
|
89 |
</Frame>
|
90 |
</StackLayout>
|
91 |
</Frame>
|
92 |
</StackLayout>
|
93 |
</StackLayout>
|
94 |
</ScrollView>
|
95 |
<StackLayout
|
96 |
Margin="10" |
97 |
HorizontalOptions="CenterAndExpand" |
98 |
Orientation="Horizontal" |
99 |
VerticalOptions="FillAndExpand"> |
100 |
|
101 |
<Button
|
102 |
Text="Ajouter" |
103 |
Command="{Binding AjouterCommand}" |
104 |
Style="{StaticResource btnPlus}" |
105 |
VerticalOptions="End"/> |
106 |
</StackLayout>
|
107 |
</StackLayout>
|
108 |
<Grid Grid.RowSpan="1" IsVisible="{Binding IsBusy}"> |
109 |
<BoxView BackgroundColor="#FFFFFF" Opacity="0.3" /> |
110 |
<ActivityIndicator
|
111 |
HorizontalOptions="Center" |
112 |
IsRunning="True" |
113 |
VerticalOptions="Center" /> |
114 |
</Grid>
|
115 |
</Grid>
|
116 |
</ContentPage>
|