comparison Chronosv2/source/Modules/Sample/Views/EmpresaView.xaml @ 10:443821e55f06

Initial cleaned up add from Codeplex files
author stevenh7776 stevenhollidge@hotmail.com
date Tue, 21 Feb 2012 17:25:44 +0700
parents
children
comparison
equal deleted inserted replaced
9:904a9faadf8b 10:443821e55f06
1 <chronos:WindowElement x:Class="Chronos.Modules.Sample.Views.EmpresaView"
2 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4 xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
5 xmlns:chronos="http://chronos/schemas/2010/xaml"
6 Style="{StaticResource DefaultWorkspaceWindowStyle}"
7 StartupLocation="CenterParent"
8 Title="Company">
9
10 <Grid x:Name="ViewRoot">
11 <Grid.InputBindings>
12 <KeyBinding Gesture="CTRL+Enter" Command="{Binding InquiryCommand}" />
13 </Grid.InputBindings>
14
15 <Grid.RowDefinitions>
16 <RowDefinition Height="Auto" />
17 <RowDefinition Height="Auto" />
18 <RowDefinition Height="Auto" />
19 <RowDefinition Height="Auto" />
20 <RowDefinition Height="Auto" />
21 <RowDefinition Height="Auto" />
22 <RowDefinition Height="Auto" />
23 <RowDefinition Height="Auto" />
24 <RowDefinition Height="Auto" />
25 <RowDefinition Height="Auto" />
26 <RowDefinition Height="Auto" />
27 <RowDefinition Height="Auto" />
28 <RowDefinition Height="Auto" />
29 <RowDefinition Height="Auto" />
30 </Grid.RowDefinitions>
31
32 <Grid.ColumnDefinitions>
33 <ColumnDefinition Width="Auto" />
34 <ColumnDefinition Width="*"/>
35 </Grid.ColumnDefinitions>
36
37 <TextBlock Grid.ColumnSpan="2" Grid.Row="0"
38 HorizontalAlignment="Stretch"
39 VerticalAlignment="Center"
40 Margin="3.5,3.5,3.5,10"
41 Text="Datos Generales" FontFamily="{StaticResource ControlTitleBigFontFamily}" FontSize="{StaticResource ControlTitleBigFontSize}" FontWeight="SemiBold" />
42
43 <TextBlock Grid.Column="0" Grid.Row="1"
44 Text="Código de empresa"
45 Width="Auto" Height="Auto"
46 HorizontalAlignment="Stretch" VerticalAlignment="Center" Margin="3.5" />
47
48 <Grid Grid.Column="1" Grid.Row="1"
49 VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
50 <Grid.ColumnDefinitions>
51 <ColumnDefinition Width="Auto" />
52 <ColumnDefinition Width="Auto" />
53 <ColumnDefinition Width="Auto" />
54 <ColumnDefinition Width="Auto" />
55 <ColumnDefinition Width="Auto" />
56 </Grid.ColumnDefinitions>
57
58 <TextBox Grid.Column="0"
59 Text="{Binding Path=IdEmpresa, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
60 CharacterCasing="Upper"
61 MaxLength="4"
62 IsEnabled="{Binding Path=PropertyStates[IdEmpresa].IsEditable}"
63 Width="70" Height="Auto"
64 HorizontalAlignment="Left" VerticalAlignment="Center" Margin="3.5">
65 </TextBox>
66
67 <TextBlock Grid.Column="1"
68 Text="C.I.F."
69 Width="Auto" Height="Auto"
70 HorizontalAlignment="Stretch" VerticalAlignment="Center"
71 Margin="3.5"/>
72
73 <TextBox Grid.Column="2"
74 Text="{Binding Path=Cif, Mode=TwoWay, ValidatesOnDataErrors=True}"
75 IsEnabled="{Binding Path=PropertyStates[Cif].IsEditable}"
76 CharacterCasing="Upper"
77 HorizontalAlignment="Left" VerticalAlignment="Center" Margin="3.5"
78 Width="150" MaxLength="15">
79 </TextBox>
80
81 <TextBlock Grid.Column="3"
82 Text="Código I.A.E."
83 Width="Auto" Height="Auto"
84 HorizontalAlignment="Stretch" VerticalAlignment="Center" Margin="3.5" />
85
86 <TextBox Grid.Column="4"
87 Text="{Binding IdEpigrafeIae, Mode=TwoWay, ValidatesOnDataErrors=True}"
88 IsEnabled="{Binding Path=PropertyStates[IdEpigrafeIae].IsEditable}"
89 CharacterCasing="Upper"
90 HorizontalAlignment="Left" VerticalAlignment="Center" Margin="3.5"
91 Width="50" MaxLength="5">
92 </TextBox>
93 </Grid>
94
95 <TextBlock Grid.Column="0" Grid.Row="2"
96 Text="Nombre"
97 Width="Auto" Height="Auto"
98 HorizontalAlignment="Stretch" VerticalAlignment="Center" Margin="3.5"/>
99
100 <TextBox Grid.Column="1" Grid.Row="2"
101 Text="{Binding Path=Nombre, Mode=TwoWay, ValidatesOnDataErrors=True}"
102 CharacterCasing="Upper"
103 IsEnabled="{Binding Path=PropertyStates[Nombre].IsEditable}"
104 HorizontalAlignment="Stretch" VerticalAlignment="Center" Margin="3.5"
105 MaxLength="50" >
106 </TextBox>
107
108 <TextBlock Grid.Column="0" Grid.Row="3"
109 Text="Nombre comercial"
110 Width="Auto" Height="Auto"
111 HorizontalAlignment="Stretch" VerticalAlignment="Center" Margin="3.5" />
112
113 <TextBox Grid.Column="1" Grid.Row="3"
114 Text="{Binding Path=NombreComercial, Mode=TwoWay, ValidatesOnDataErrors=True}"
115 IsEnabled="{Binding Path=PropertyStates[NombreComercial].IsEditable}"
116 CharacterCasing="Upper"
117 HorizontalAlignment="Stretch" VerticalAlignment="Center" Margin="3.5"
118 MaxLength="50">
119 </TextBox>
120
121 <TextBlock Grid.ColumnSpan="2" Grid.Row="4"
122 HorizontalAlignment="Stretch"
123 VerticalAlignment="Center"
124 Margin="3.5,3.5,3.5,10"
125 Text="Dirección" FontFamily="{StaticResource ControlTitleBigFontFamily}" FontSize="{StaticResource ControlTitleBigFontSize}" FontWeight="SemiBold" />
126
127 <TextBlock Grid.Column="0" Grid.Row="5"
128 Text="Tipo de vía"
129 Width="Auto" Height="Auto"
130 HorizontalAlignment="Stretch" VerticalAlignment="Center" Margin="3.5" />
131
132 <Grid Grid.Column="1" Grid.Row="5"
133 VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
134 <Grid.ColumnDefinitions>
135 <ColumnDefinition Width="Auto" />
136 <ColumnDefinition Width="Auto" />
137 <ColumnDefinition Width="Auto" />
138 </Grid.ColumnDefinitions>
139
140 <TextBox Grid.Column="0"
141 Text="{Binding Path=IdTipoVia, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors=True}"
142 IsEnabled="{Binding Path=PropertyStates[IdTipoVia].IsEditable}"
143 CharacterCasing="Upper"
144 MaxLength="3"
145 Width="60"
146 HorizontalAlignment="Left" VerticalAlignment="Center" Margin="3.5">
147 </TextBox>
148
149 <TextBlock Grid.Column="1"
150 Text="Dirección"
151 Width="Auto" Height="Auto"
152 HorizontalAlignment="Stretch" VerticalAlignment="Center" Margin="3.5" />
153
154 <TextBox Grid.Column="2"
155 Text="{Binding Path=Direccion, Mode=TwoWay, ValidatesOnDataErrors=True}"
156 IsEnabled="{Binding Path=PropertyStates[Direccion].IsEditable}"
157 CharacterCasing="Upper"
158 VerticalAlignment="Center" Margin="3.5"
159 Width="525" MaxLength="50">
160 </TextBox>
161 </Grid>
162
163 <TextBlock Grid.Column="0" Grid.Row="6"
164 Text="Número"
165 Width="Auto" Height="Auto"
166 VerticalAlignment="Center" HorizontalAlignment="Stretch" Margin="3.5" />
167
168 <Grid Grid.Column="1" Grid.Row="6" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
169 <Grid.ColumnDefinitions>
170 <ColumnDefinition Width="Auto" />
171 <ColumnDefinition Width="Auto" />
172 <ColumnDefinition Width="Auto" />
173 <ColumnDefinition Width="Auto" />
174 <ColumnDefinition Width="Auto" />
175 </Grid.ColumnDefinitions>
176
177 <TextBox Grid.Column="0"
178 Text="{Binding Path=NumeroBloque, Mode=TwoWay, ValidatesOnDataErrors=True}"
179 IsEnabled="{Binding Path=PropertyStates[NumeroBloque].IsEditable}"
180 VerticalAlignment="Center"
181 MaxLength="5"
182 Width="60" Margin="3.5">
183 </TextBox>
184
185 <TextBlock Grid.Column="1"
186 Text="Piso"
187 Width="Auto" Height="Auto"
188 VerticalAlignment="Center" HorizontalAlignment="Stretch" Margin="3.5" />
189
190 <TextBox Grid.Column="2"
191 Text="{Binding Piso, Mode=TwoWay, ValidatesOnDataErrors=True}"
192 IsEnabled="{Binding Path=PropertyStates[Piso].IsEditable}"
193 VerticalAlignment="Center"
194 MaxLength="3"
195 Width="50" Margin="3.5">
196 </TextBox>
197
198 <TextBlock Grid.Column="3"
199 Text="Puerta"
200 Width="Auto" Height="Auto"
201 VerticalAlignment="Center" HorizontalAlignment="Stretch" Margin="3.5" />
202
203 <TextBox Grid.Column="4"
204 Text="{Binding Path=Puerta, Mode=TwoWay, ValidatesOnDataErrors=True}"
205 IsEnabled="{Binding Path=PropertyStates[Puerta].IsEditable}"
206 CharacterCasing="Upper"
207 VerticalAlignment="Center"
208 MaxLength="3"
209 Width="50" Margin="3.5">
210 </TextBox>
211 </Grid>
212
213 <TextBlock Grid.Column="0" Grid.Row="7"
214 Text="C.Postal"
215 Width="Auto" Height="Auto"
216 HorizontalAlignment="Stretch" VerticalAlignment="Center" Margin="3.5" />
217
218 <Grid Grid.Column="1" Grid.Row="7" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
219 <Grid.ColumnDefinitions>
220 <ColumnDefinition Width="Auto" />
221 <ColumnDefinition Width="Auto" />
222 <ColumnDefinition Width="Auto" />
223 </Grid.ColumnDefinitions>
224
225 <TextBox Grid.Column="0"
226 Text="{Binding Path=CodigoPostal, Mode=TwoWay, ValidatesOnDataErrors=True}"
227 IsEnabled="{Binding Path=PropertyStates[CodigoPostal].IsEditable}"
228 CharacterCasing="Upper"
229 VerticalAlignment="Center"
230 MaxLength="10"
231 Margin="3.5" Width="100">
232 </TextBox>
233
234 <TextBlock Grid.Column="1"
235 Text="Ciudad"
236 Width="Auto" Height="Auto"
237 HorizontalAlignment="Stretch" VerticalAlignment="Center" Margin="3.5" />
238
239 <TextBox Grid.Column="2"
240 Text="{Binding Path=Ciudad, Mode=TwoWay, ValidatesOnDataErrors=True}"
241 IsEnabled="{Binding Path=PropertyStates[Ciudad].IsEditable}"
242 CharacterCasing="Upper"
243 VerticalAlignment="Center"
244 MaxLength="25"
245 Margin="3.5" Width="150">
246 </TextBox>
247 </Grid>
248
249 <TextBlock Grid.Column="0" Grid.Row="8"
250 Text="Provincia"
251 Width="Auto" Height="Auto"
252 HorizontalAlignment="Stretch" VerticalAlignment="Center" Margin="3.5" />
253
254 <Grid Grid.Column="1" Grid.Row="8"
255 VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
256 <Grid.ColumnDefinitions>
257 <ColumnDefinition Width="Auto" />
258 <ColumnDefinition Width="Auto" />
259 <ColumnDefinition Width="Auto" />
260 </Grid.ColumnDefinitions>
261
262 <TextBox Grid.Column="0"
263 Text="{Binding Path=Provincia, Mode=TwoWay, ValidatesOnDataErrors=True}"
264 IsEnabled="{Binding Path=PropertyStates[Provincia].IsEditable}"
265 CharacterCasing="Upper"
266 VerticalAlignment="Center"
267 MaxLength="20"
268 Margin="3.5" Width="150">
269 </TextBox>
270
271 <TextBlock Grid.Column="1"
272 Text="País"
273 Width="Auto" Height="Auto"
274 HorizontalAlignment="Stretch" VerticalAlignment="Center" Margin="3.5" />
275
276 <TextBox Grid.Column="2"
277 Text="{Binding Path=Pais, Mode=TwoWay, ValidatesOnDataErrors=True}"
278 IsEnabled="{Binding Path=PropertyStates[Pais].IsEditable}"
279 CharacterCasing="Upper"
280 VerticalAlignment="Center"
281 MaxLength="15"
282 Margin="3.5" Width="150">
283 </TextBox>
284 </Grid>
285
286 <TextBlock Grid.ColumnSpan="2" Grid.Row="9"
287 HorizontalAlignment="Stretch"
288 VerticalAlignment="Center"
289 Margin="3.5,3.5,3.5,10"
290 Text="Datos de contacto" FontFamily="{StaticResource ControlTitleBigFontFamily}" FontSize="{StaticResource ControlTitleBigFontSize}" FontWeight="SemiBold" />
291
292 <TextBlock Grid.Column="0" Grid.Row="10"
293 Text="Teléfonos"
294 Width="Auto"
295 Height="Auto"
296 VerticalAlignment="Center"
297 HorizontalAlignment="Stretch"
298 Margin="3.5" />
299
300 <StackPanel Grid.Column="1" Grid.Row="10"
301 Orientation="Horizontal" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
302
303 <TextBox Text="{Binding Telefono1, Mode=TwoWay, ValidatesOnDataErrors=True}"
304 IsEnabled="{Binding Path=PropertyStates[Telefono1].IsEditable}"
305 VerticalAlignment="Center"
306 Margin="3.5" Width="150">
307 </TextBox>
308
309 <TextBox Text="{Binding Telefono2, Mode=TwoWay, ValidatesOnDataErrors=True}"
310 IsEnabled="{Binding Path=PropertyStates[Telefono2].IsEditable}"
311 VerticalAlignment="Center"
312 Margin="3.5" Width="150">
313 </TextBox>
314
315 </StackPanel>
316
317 <TextBlock Grid.Column="0" Grid.Row="11"
318 Text="Nº.Fax"
319 Width="Auto"
320 Height="Auto"
321 VerticalAlignment="Center"
322 HorizontalAlignment="Stretch"
323 Margin="3.5" />
324
325 <StackPanel Grid.Column="1" Grid.Row="11"
326 Orientation="Horizontal" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
327
328 <TextBox Text="{Binding Fax1, Mode=TwoWay, ValidatesOnDataErrors=True}"
329 IsEnabled="{Binding Path=PropertyStates[Fax1].IsEditable}"
330 VerticalAlignment="Center"
331 MaxLength="15"
332 Margin="3.5" Width="150">
333 </TextBox>
334
335 <TextBox Text="{Binding Fax2, Mode=TwoWay, ValidatesOnDataErrors=True}"
336 IsEnabled="{Binding Path=PropertyStates[Fax2].IsEditable}"
337 VerticalAlignment="Center"
338 MaxLength="15"
339 Margin="3.5" Width="150">
340 </TextBox>
341 </StackPanel>
342
343 <TextBlock Grid.Column="0" Grid.Row="12"
344 Text="Dirección Web (WWW)"
345 Width="Auto" Height="Auto"
346 HorizontalAlignment="Stretch" VerticalAlignment="Center" Margin="3.5" />
347
348 <TextBox Grid.Column="1" Grid.Row="12"
349 Text="{Binding Www, Mode=TwoWay, ValidatesOnDataErrors=True}"
350 IsEnabled="{Binding Path=PropertyStates[Www].IsEditable}"
351 CharacterCasing="Lower"
352 HorizontalAlignment="Stretch" VerticalAlignment="Center" Margin="3.5"
353 MaxLength="60">
354 </TextBox>
355
356 <TextBlock Grid.Column="0" Grid.Row="13"
357 Text="Correo electrónico"
358 Width="Auto" Height="Auto"
359 HorizontalAlignment="Stretch" VerticalAlignment="Center" Margin="3.5" />
360
361 <TextBox Grid.Column="1" Grid.Row="13"
362 Text="{Binding Email, Mode=TwoWay, ValidatesOnDataErrors=True}"
363 IsEnabled="{Binding Path=PropertyStates[Email].IsEditable}"
364 CharacterCasing="Lower"
365 HorizontalAlignment="Stretch" VerticalAlignment="Center" Margin="3.5"
366 MaxLength="60">
367 </TextBox>
368 </Grid>
369 </chronos:WindowElement>