-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainWindow.xaml
More file actions
453 lines (411 loc) · 28.5 KB
/
Copy pathMainWindow.xaml
File metadata and controls
453 lines (411 loc) · 28.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
<Window x:Class="MyPanelCarWashing.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:MyPanelCarWashing"
xmlns:controls="clr-namespace:MyPanelCarWashing.Controls"
mc:Ignorable="d"
Title="Глянец - Панель управления"
Height="810" Width="1440"
WindowStartupLocation="CenterScreen"
WindowState="Maximized"
Background="#F5F6FA"
BorderBrush="Black"
BorderThickness="1"
WindowStyle="None"
Foreground="Black">
<Window.Resources>
<local:StatusToBackgroundConverter x:Key="StatusToBackgroundConverter"/>
<local:ZeroToVisibilityConverter x:Key="ZeroToVisibilityConverter"/>
<local:BoolToVisibilityConverter x:Key="BoolToVisibilityConverter"/>
<Style x:Key="OrderCardBorderStyle" TargetType="Border">
<Setter Property="Background" Value="White"/>
<Setter Property="CornerRadius" Value="12"/>
<Setter Property="Padding" Value="15"/>
<Setter Property="Margin" Value="0,0,0,10"/>
<Setter Property="BorderBrush" Value="#DCDDE1"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="Effect">
<Setter.Value>
<DropShadowEffect BlurRadius="10" ShadowDepth="2" Opacity="0.1"/>
</Setter.Value>
</Setter>
<Style.Triggers>
<DataTrigger Binding="{Binding IsSelected}" Value="True">
<Setter Property="BorderBrush" Value="#3498DB"/>
<Setter Property="BorderThickness" Value="2"/>
<Setter Property="Background" Value="#EBF5FB"/>
</DataTrigger>
</Style.Triggers>
</Style>
<DataTemplate x:Key="OrderTemplate" DataType="{x:Type local:OrderDisplayItem}">
<Border Style="{StaticResource OrderCardBorderStyle}">
<StackPanel>
<DockPanel LastChildFill="False" Margin="0,0,0,8">
<TextBlock Text="{Binding CarNumber}" FontSize="16" FontWeight="Bold" Foreground="#2C3E50" DockPanel.Dock="Left"/>
<TextBlock Text="{Binding Time, StringFormat={}{0:HH:mm}}" FontSize="14" Foreground="#7F8C8D" DockPanel.Dock="Right"/>
</DockPanel>
<TextBlock Text="{Binding CarModel}" FontSize="14" FontWeight="SemiBold" Margin="0,0,0,4"/>
<StackPanel Orientation="Horizontal" Margin="0,0,0,4">
<TextBlock Text="Мойщик: " Foreground="#95A5A6" FontSize="12"/>
<TextBlock Text="{Binding WasherName}" FontWeight="Medium" FontSize="12"/>
</StackPanel>
<TextBlock Text="{Binding ServicesList}"
FontSize="12"
Foreground="#7F8C8D"
TextWrapping="Wrap"
Margin="0,0,0,8"
MaxWidth="300"
HorizontalAlignment="Left"/>
<Separator Background="#F1F2F6" Margin="0,5"/>
<Grid Margin="0,5,0,0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<StackPanel Grid.Column="0">
<TextBlock Text="{Binding OriginalPriceDisplay}"
FontSize="11"
Foreground="#95A5A6"
HorizontalAlignment="Left"
TextDecorations="Strikethrough"
Visibility="{Binding ShowOriginalPrice, Converter={StaticResource BoolToVisibilityConverter}}"/>
<TextBlock Text="{Binding FinalPrice, StringFormat={}{0:N0} ₽}"
FontSize="14"
FontWeight="Bold"
Foreground="#27AE60"
HorizontalAlignment="Left"/>
<TextBlock Text="{Binding DiscountDisplay}"
FontSize="10"
Foreground="#E74C3C"
FontWeight="Bold"
Visibility="{Binding HasDiscount, Converter={StaticResource BoolToVisibilityConverter}}"
Margin="0,1,0,0"/>
<TextBlock Text="{Binding PaymentMethod, StringFormat=💳 {0}}"
FontSize="9"
Foreground="#3498DB"
Margin="0,1,0,0"/>
</StackPanel>
<Border Grid.Column="1"
Background="{Binding Status, Converter={StaticResource StatusToBackgroundConverter}}"
CornerRadius="4" Padding="6,2"
HorizontalAlignment="Right" VerticalAlignment="Top">
<TextBlock Text="{Binding Status}" Foreground="White" FontSize="9" FontWeight="Bold"/>
</Border>
</Grid>
<StackPanel Visibility="{Binding ExtraCost, Converter={StaticResource ZeroToVisibilityConverter}}">
<TextBlock Text="{Binding ExtraCost, StringFormat=➕ {0:N0} ₽}" FontSize="11" Foreground="#E67E22" FontWeight="Bold" Margin="0,4,0,0"/>
<TextBlock Text="{Binding ExtraCostReason}" FontSize="10" Foreground="#E67E22" TextWrapping="Wrap" FontStyle="Italic"/>
</StackPanel>
</StackPanel>
</Border>
</DataTemplate>
<Style x:Key="CleanListBoxStyle" TargetType="ListBox">
<Setter Property="Background" Value="Transparent"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Disabled"/>
<Setter Property="ItemContainerStyle">
<Setter.Value>
<Style TargetType="ListBoxItem">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ListBoxItem">
<ContentPresenter />
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</Setter.Value>
</Setter>
</Style>
</Window.Resources>
<Grid>
<Grid Margin="20">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid Grid.Row="0" Margin="15">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid Grid.Row="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="0,5*"/>
<ColumnDefinition Width="0,5*"/>
</Grid.ColumnDefinitions>
<StackPanel Grid.Column="0" Orientation="Horizontal" Margin="0,0,0,15">
<TextBlock Text="Главная страница" FontSize="24" FontWeight="Bold"
Foreground="#2C3E50" VerticalAlignment="Center"/>
<TextBlock Text=" | " FontSize="20" Foreground="#95A5A6" VerticalAlignment="Center"/>
<TextBlock Text="{Binding CurrentShiftInfo}" FontSize="16"
Foreground="#7F8C8D" VerticalAlignment="Center"/>
</StackPanel>
<StackPanel Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Center">
<Border Background="#3498DB" CornerRadius="20" Width="40" Height="40" Margin="0,0,10,0">
<TextBlock Text="👤" FontSize="18" HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
<StackPanel VerticalAlignment="Center">
<TextBlock Text="{Binding ActiveUserInfo}"
FontSize="13"
FontWeight="SemiBold"
Foreground="#2C3E50"/>
<TextBlock Text="{Binding CurrentShiftInfo}"
FontSize="11"
Foreground="#7F8C8D"
Visibility="{Binding CurrentShiftInfo, Converter={StaticResource ZeroToVisibilityConverter}}"/>
</StackPanel>
</StackPanel>
</Grid>
<StackPanel Grid.Row="1" Orientation="Horizontal" Margin="0,0,0,15">
<Button x:Name="AddButton" Content="➕ Добавить заказ"
Click="AddButton_Click" Padding="15,8" Margin="0,0,10,0"
Background="#3498DB" Foreground="White" BorderThickness="0"
Cursor="Hand" Height="35"/>
<Button x:Name="EmployeesButton" Content="👥 Сотрудники"
Click="EmployeesButton_Click" Padding="15,8" Margin="10,0,5,0"
Background="#9B59B6" Foreground="White" BorderThickness="0"
Cursor="Hand" Height="35"/>
<Button Content="🛠️ Услуги" x:Name="ServicesButton" Click="ServicesButton_Click"
Width="100" Margin="0,0,5,0" Background="#9B59B6" Foreground="White" Height="35"/>
<Button x:Name="ClientsButton" Content="👥 Клиенты"
Click="ClientsButton_Click" Padding="15,8" Margin="0,0,10,0"
Background="#9B59B6" Foreground="White" BorderThickness="0"
Cursor="Hand" Height="35"/>
<Button x:Name="StartShiftButton" Content="📅 Начать смену"
Click="StartShiftButton_Click" Padding="15,8" Margin="10,0,5,0"
Background="#27AE60" Foreground="White" BorderThickness="0"
Cursor="Hand" Height="35"/>
<Button x:Name="CloseShiftButton" Content="🔒 Закрыть смену"
Click="CloseShiftButton_Click" Padding="15,8" Margin="0,0,5,0"
Background="#E74C3C" Foreground="White" BorderThickness="0"
Cursor="Hand" Height="35"/>
<Button x:Name="CashboxButton" Content="💰 Трансфер сумм"
Click="CashboxButton_Click" Padding="15,8" Margin="0,0,10,0"
Background="#3498DB" Foreground="White" BorderThickness="0"
Cursor="Hand" Height="35"/>
<Button x:Name="ReportsButton" Content="📊 Отчёты"
Click="ReportsButton_Click" Padding="15,8" Margin="10,0,5,0"
Background="#F39C12" Foreground="White" BorderThickness="0"
Cursor="Hand" Height="35"/>
<Button x:Name="AppointmentsBoardButton" Content="📋 Доска записей"
Click="AppointmentsBoardButton_Click" Padding="15,8" Margin="0,0,5,0"
Background="#F39C12" Foreground="White" BorderThickness="0"
Cursor="Hand" Height="35"/>
<Button x:Name="HistoryButton" Content="📊 История"
Click="HistoryButton_Click" Padding="15,8" Margin="0,0,10,0"
Background="#F39C12" Foreground="White" BorderThickness="0"
Cursor="Hand" Height="35"/>
<TextBox x:Name="SearchFilterTextBox"
Text="🔍 Поиск по гос. номеру или модели..."
KeyUp="SearchFilterTextBox_KeyUp"
GotFocus="SearchFilterTextBox_GotFocus"
LostFocus="SearchFilterTextBox_LostFocus"
Padding="10,8" MinWidth="250" Height="40" Margin="20,0,0,0"
Background="White" BorderBrush="#BDC3C7" Foreground="#7F8C8D"
FontSize="12" VerticalAlignment="Center" VerticalContentAlignment="Center">
<TextBox.Resources>
<Style TargetType="TextBox" BasedOn="{x:Null}"/>
</TextBox.Resources>
</TextBox>
<WrapPanel Orientation="Horizontal" HorizontalAlignment="Right">
<Button x:Name="ExitButton" Content="🚪 Выход"
Click="ExitButton_Click" Padding="15,8"
Background="#E74C3C" Foreground="White" BorderThickness="0"
Cursor="Hand" HorizontalAlignment="Right" Height="35"/>
</WrapPanel>
</StackPanel>
</Grid>
<Grid Grid.Row="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<GroupBox Header="БОКС 1" Grid.Column="0" Margin="0,0,10,0" FontSize="14" FontWeight="Bold" Foreground="#2C3E50">
<GroupBox.ContextMenu>
<ContextMenu>
<MenuItem Header="✏ Редактировать заказ" Click="EditOrderMenuItem_Click"/>
<MenuItem Header="🗑 Удалить заказ" Click="DeleteOrderMenuItem_Click"/>
</ContextMenu>
</GroupBox.ContextMenu>
<ListBox x:Name="Box1ItemsControl"
ItemsSource="{Binding Box1Items}"
SelectedItem="{Binding SelectedItem, Mode=TwoWay}"
ItemTemplate="{StaticResource OrderTemplate}"
Style="{StaticResource CleanListBoxStyle}"
MouseDoubleClick="BoxItemsControl_MouseDoubleClick"
Margin="5"/>
</GroupBox>
<GroupBox Header="БОКС 2" Grid.Column="1" Margin="5,0,5,0" FontSize="14" FontWeight="Bold" Foreground="#2C3E50">
<GroupBox.ContextMenu>
<ContextMenu>
<MenuItem Header="✏ Редактировать заказ" Click="EditOrderMenuItem_Click"/>
<MenuItem Header="🗑 Удалить заказ" Click="DeleteOrderMenuItem_Click"/>
</ContextMenu>
</GroupBox.ContextMenu>
<ListBox x:Name="Box2ItemsControl"
ItemsSource="{Binding Box2Items}"
SelectedItem="{Binding SelectedItem, Mode=TwoWay}"
ItemTemplate="{StaticResource OrderTemplate}"
Style="{StaticResource CleanListBoxStyle}"
MouseDoubleClick="BoxItemsControl_MouseDoubleClick"
Margin="5"/>
</GroupBox>
<GroupBox Header="БОКС 3" Grid.Column="2" Margin="10,0,0,0" FontSize="14" FontWeight="Bold" Foreground="#2C3E50">
<GroupBox.ContextMenu>
<ContextMenu>
<MenuItem Header="✏ Редактировать заказ" Click="EditOrderMenuItem_Click"/>
<MenuItem Header="🗑 Удалить заказ" Click="DeleteOrderMenuItem_Click"/>
</ContextMenu>
</GroupBox.ContextMenu>
<ListBox x:Name="Box3ItemsControl"
ItemsSource="{Binding Box3Items}"
SelectedItem="{Binding SelectedItem, Mode=TwoWay}"
ItemTemplate="{StaticResource OrderTemplate}"
Style="{StaticResource CleanListBoxStyle}"
MouseDoubleClick="BoxItemsControl_MouseDoubleClick"
Margin="5"/>
</GroupBox>
<Border Grid.Column="3" Background="White" CornerRadius="10" Padding="15" Margin="20,0,0,0">
<DockPanel>
<StackPanel Grid.Column="3" Orientation="Vertical" Width="280" Margin="15,0,0,0" Background="White" VerticalAlignment="Top">
<TextBlock Text="👥 Статистика мойщиков:" FontSize="14" FontWeight="Bold" Foreground="#2C3E50" Margin="0,0,0,10"/>
<ItemsControl ItemsSource="{Binding WashersStats}">
<ItemsControl.ItemTemplate>
<DataTemplate>
<Border Background="#F8F9FA" CornerRadius="5" Padding="10" Margin="0,0,0,8" BorderBrush="#E9ECEF" BorderThickness="1">
<StackPanel>
<TextBlock Text="{Binding WasherName}" FontSize="13" FontWeight="Bold" Foreground="#2C3E50" Margin="0,0,0,5"/>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<StackPanel Grid.Column="0" Orientation="Horizontal">
<TextBlock Text="🚗 " FontSize="11"/>
<TextBlock FontSize="11" Text="{Binding CarsCount, StringFormat={}{0} маш.}" Foreground="#7F8C8D"/>
</StackPanel>
<StackPanel Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Right">
<TextBlock Text="📊 " FontSize="11"/>
<TextBlock FontSize="11" FontWeight="Bold" Foreground="#E67E22"
Text="{Binding Percentage, StringFormat={}{0:F1}%}" />
</StackPanel>
</Grid>
<StackPanel Orientation="Horizontal" Margin="0,5,0,0">
<TextBlock Text="💰 " FontSize="11"/>
<TextBlock FontSize="12" FontWeight="Bold" Text="{Binding Earnings, StringFormat={}{0:N0} ₽}" Foreground="#27AE60"/>
</StackPanel>
</StackPanel>
</Border>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
<Separator Margin="0,10,0,10" Height="1" Background="#BDC3C7"/>
<TextBlock Text="💳 Способы оплаты:" FontSize="14" FontWeight="Bold" Foreground="#2C3E50" Margin="0,0,0,5"/>
<Border Background="#F8F9FA" CornerRadius="5" Padding="10" Margin="0,0,0,8">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid Grid.Row="0" Margin="0,0,0,8">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<TextBlock Grid.Column="0" Text="💵" FontSize="16" VerticalAlignment="Center"/>
<TextBlock Grid.Column="1" Text="Наличные" Margin="8,0,0,0" VerticalAlignment="Center" FontWeight="SemiBold"/>
<StackPanel Grid.Column="2" Orientation="Horizontal">
<TextBlock Text="{Binding CashCount, StringFormat={}{0} шт.}" FontSize="11" Foreground="#7F8C8D"/>
<TextBlock Text=" / " FontSize="11" Foreground="#7F8C8D"/>
<TextBlock Text="{Binding CashAmount, StringFormat={}{0:N0} ₽}" FontSize="11" FontWeight="Bold" Foreground="#27AE60"/>
</StackPanel>
</Grid>
<Grid Grid.Row="1" Margin="0,0,0,8">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<TextBlock Grid.Column="0" Text="💳" FontSize="16" VerticalAlignment="Center"/>
<TextBlock Grid.Column="1" Text="Карта" Margin="8,0,0,0" VerticalAlignment="Center" FontWeight="SemiBold"/>
<StackPanel Grid.Column="2" Orientation="Horizontal">
<TextBlock Text="{Binding CardCount, StringFormat={}{0} шт.}" FontSize="11" Foreground="#7F8C8D"/>
<TextBlock Text=" / " FontSize="11" Foreground="#7F8C8D"/>
<TextBlock Text="{Binding CardAmount, StringFormat={}{0:N0} ₽}" FontSize="11" FontWeight="Bold" Foreground="#27AE60"/>
</StackPanel>
</Grid>
<Grid Grid.Row="2" Margin="0,0,0,8">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<TextBlock Grid.Column="0" Text="📱" FontSize="16" VerticalAlignment="Center"/>
<TextBlock Grid.Column="1" Text="Перевод" Margin="8,0,0,0" VerticalAlignment="Center" FontWeight="SemiBold"/>
<StackPanel Grid.Column="2" Orientation="Horizontal">
<TextBlock Text="{Binding TransferCount, StringFormat={}{0} шт.}" FontSize="11" Foreground="#7F8C8D"/>
<TextBlock Text=" / " FontSize="11" Foreground="#7F8C8D"/>
<TextBlock Text="{Binding TransferAmount, StringFormat={}{0:N0} ₽}" FontSize="11" FontWeight="Bold" Foreground="#27AE60"/>
</StackPanel>
</Grid>
<Grid Grid.Row="3" Margin="0,0,0,8">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<TextBlock Grid.Column="0" Text="📱" FontSize="16" VerticalAlignment="Center"/>
<TextBlock Grid.Column="1" Text="QR-код" Margin="8,0,0,0" VerticalAlignment="Center" FontWeight="SemiBold"/>
<StackPanel Grid.Column="2" Orientation="Horizontal">
<TextBlock Text="{Binding QrCount, StringFormat={}{0} шт.}" FontSize="11" Foreground="#7F8C8D"/>
<TextBlock Text=" / " FontSize="11" Foreground="#7F8C8D"/>
<TextBlock Text="{Binding QrAmount, StringFormat={}{0:N0} ₽}" FontSize="11" FontWeight="Bold" Foreground="#27AE60"/>
</StackPanel>
</Grid>
</Grid>
</Border>
<Separator Margin="0,10,0,10" Height="1" Background="#BDC3C7"/>
<StackPanel Orientation="Horizontal" Margin="0,5,0,0">
<TextBlock Text="🏢 Компания (65%): " FontSize="13" FontWeight="Bold" Foreground="#2C3E50"/>
<TextBlock Text="{Binding CompanyEarnings, StringFormat={}{0:N0} ₽}" FontSize="13" FontWeight="Bold" Foreground="#27AE60"/>
</StackPanel>
<StackPanel Orientation="Horizontal" Margin="0,5,0,0">
<TextBlock Text="💵 Общая выручка: " FontSize="13" FontWeight="Bold" Foreground="#2C3E50"/>
<TextBlock Text="{Binding TotalRevenue, StringFormat={}{0:N0} ₽}" FontSize="13" FontWeight="Bold" Foreground="#3498DB"/>
</StackPanel>
<Border Background="#34495E" CornerRadius="5" Padding="15" Margin="0,15,0,0">
<TextBlock Text="{Binding TotalOrdersInfo}" FontSize="14" FontWeight="Bold" Foreground="White" TextWrapping="WrapWithOverflow"/>
</Border>
<StackPanel VerticalAlignment="Bottom" HorizontalAlignment="Center">
<Button Content="📤 Экспорт данных" Click="ExportButton_Click" Padding="15,8" Margin="10"
Background="#9B59B6" Foreground="White" BorderThickness="0" Cursor="Hand" Height="35"/>
<TextBlock Text="Важно при возникновении ошибок"/>
</StackPanel>
</StackPanel>
</DockPanel>
</Border>
</Grid>
</Grid>
<controls:AppointmentsOverlay x:Name="AppointmentsOverlay"
Visibility="Collapsed"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
Panel.ZIndex="9999"/>
<controls:CashboxOverlay x:Name="CashboxPanel" Visibility="Collapsed"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
Panel.ZIndex="9999"/>
</Grid>
</Window>