|
@@ -39,15 +39,63 @@ |
|
|
<hc:Window.Background> |
|
|
<hc:Window.Background> |
|
|
<ImageBrush ImageSource="/HKResouces/背景.jpg" /> |
|
|
<ImageBrush ImageSource="/HKResouces/背景.jpg" /> |
|
|
</hc:Window.Background> |
|
|
</hc:Window.Background> |
|
|
<StackPanel> |
|
|
|
|
|
|
|
|
<Grid> |
|
|
|
|
|
<Grid.ColumnDefinitions> |
|
|
|
|
|
<ColumnDefinition /> |
|
|
|
|
|
<ColumnDefinition Width="200" /> |
|
|
|
|
|
</Grid.ColumnDefinitions> |
|
|
|
|
|
<DataGrid |
|
|
|
|
|
AutoGenerateColumns="False" |
|
|
|
|
|
Background="Transparent" |
|
|
|
|
|
IsReadOnly="True" |
|
|
|
|
|
ItemsSource="{Binding Result}" |
|
|
|
|
|
Style="{StaticResource DataGridBaseStyle}"> |
|
|
|
|
|
<DataGrid.RowStyle> |
|
|
|
|
|
<Style BasedOn="{StaticResource DataGridRowStyle}" TargetType="DataGridRow"> |
|
|
|
|
|
<Setter Property="Background" Value="Transparent" /> |
|
|
|
|
|
<Style.Triggers> |
|
|
|
|
|
<Trigger Property="UIElement.IsMouseOver" Value="true"> |
|
|
|
|
|
<Setter Property="Background" Value="Transparent" /> |
|
|
|
|
|
</Trigger> |
|
|
|
|
|
</Style.Triggers> |
|
|
|
|
|
</Style> |
|
|
|
|
|
</DataGrid.RowStyle> |
|
|
|
|
|
<DataGrid.Columns> |
|
|
|
|
|
<DataGridTextColumn |
|
|
|
|
|
Width="300" |
|
|
|
|
|
Binding="{Binding CardNo}" |
|
|
|
|
|
ElementStyle="{StaticResource CenterAlignmentStyle}" |
|
|
|
|
|
Header="卡号" |
|
|
|
|
|
HeaderStyle="{StaticResource SaleLogHeader}" /> |
|
|
|
|
|
<DataGridTextColumn |
|
|
|
|
|
Width="200" |
|
|
|
|
|
Binding="{Binding Money}" |
|
|
|
|
|
ElementStyle="{StaticResource CenterAlignmentStyle}" |
|
|
|
|
|
Header="金额" |
|
|
|
|
|
HeaderStyle="{StaticResource SaleLogHeader}" /> |
|
|
|
|
|
<DataGridTextColumn |
|
|
|
|
|
Width="200" |
|
|
|
|
|
Binding="{Binding Location}" |
|
|
|
|
|
ElementStyle="{StaticResource CenterAlignmentStyle}" |
|
|
|
|
|
Header="档口" |
|
|
|
|
|
HeaderStyle="{StaticResource SaleLogHeader}" /> |
|
|
|
|
|
<DataGridTextColumn |
|
|
|
|
|
Width="300" |
|
|
|
|
|
Binding="{Binding CreateTime, StringFormat={}{0:yyyy-MM-dd HH:mm:ss}}" |
|
|
|
|
|
ElementStyle="{StaticResource CenterAlignmentStyle}" |
|
|
|
|
|
Header="消费时间" |
|
|
|
|
|
HeaderStyle="{StaticResource SaleLogHeader}" /> |
|
|
|
|
|
</DataGrid.Columns> |
|
|
|
|
|
</DataGrid> |
|
|
<ListBox |
|
|
<ListBox |
|
|
|
|
|
Grid.Column="1" |
|
|
Background="Transparent" |
|
|
Background="Transparent" |
|
|
BorderThickness="0" |
|
|
BorderThickness="0" |
|
|
ItemsSource="{Binding Ad}" |
|
|
ItemsSource="{Binding Ad}" |
|
|
Style="{StaticResource WrapPanelHorizontalListBox}"> |
|
|
|
|
|
|
|
|
Style="{StaticResource WrapPanelVerticalListBox}"> |
|
|
<ListBox.ItemsPanel> |
|
|
<ListBox.ItemsPanel> |
|
|
<ItemsPanelTemplate> |
|
|
<ItemsPanelTemplate> |
|
|
<WrapPanel HorizontalAlignment="Left" VerticalAlignment="Center" /> |
|
|
|
|
|
|
|
|
<WrapPanel HorizontalAlignment="Center" VerticalAlignment="Top" /> |
|
|
</ItemsPanelTemplate> |
|
|
</ItemsPanelTemplate> |
|
|
</ListBox.ItemsPanel> |
|
|
</ListBox.ItemsPanel> |
|
|
<ListBox.ItemTemplate> |
|
|
<ListBox.ItemTemplate> |
|
@@ -55,7 +103,7 @@ |
|
|
<Button |
|
|
<Button |
|
|
Width="160" |
|
|
Width="160" |
|
|
Height="80" |
|
|
Height="80" |
|
|
Margin="20,0,0,0" |
|
|
|
|
|
|
|
|
Margin="20,20,0,0" |
|
|
s:View.ActionTarget="{Binding DataContext, ElementName=Main}" |
|
|
s:View.ActionTarget="{Binding DataContext, ElementName=Main}" |
|
|
Command="{s:Action UpdateAction}" |
|
|
Command="{s:Action UpdateAction}" |
|
|
CommandParameter="{Binding .}" |
|
|
CommandParameter="{Binding .}" |
|
@@ -80,55 +128,13 @@ |
|
|
FontSize="18" |
|
|
FontSize="18" |
|
|
FontWeight="Bold" |
|
|
FontWeight="Bold" |
|
|
Foreground="Red" |
|
|
Foreground="Red" |
|
|
Text="{Binding IsActive, Converter={StaticResource TOC}}" /> |
|
|
|
|
|
|
|
|
Text="{Binding IsActive, Converter={StaticResource TOC}, StringFormat=广告:{0}}" /> |
|
|
</StackPanel> |
|
|
</StackPanel> |
|
|
</Button.Content> |
|
|
</Button.Content> |
|
|
</Button> |
|
|
</Button> |
|
|
</DataTemplate> |
|
|
</DataTemplate> |
|
|
</ListBox.ItemTemplate> |
|
|
</ListBox.ItemTemplate> |
|
|
</ListBox> |
|
|
</ListBox> |
|
|
<DataGrid |
|
|
|
|
|
AutoGenerateColumns="False" |
|
|
|
|
|
Background="Transparent" |
|
|
|
|
|
IsReadOnly="True" |
|
|
|
|
|
ItemsSource="{Binding Result}" |
|
|
|
|
|
Style="{StaticResource DataGridBaseStyle}"> |
|
|
|
|
|
<DataGrid.RowStyle> |
|
|
|
|
|
<Style BasedOn="{StaticResource DataGridRowStyle}" TargetType="DataGridRow"> |
|
|
|
|
|
<Setter Property="Background" Value="Transparent" /> |
|
|
|
|
|
<Style.Triggers> |
|
|
|
|
|
<Trigger Property="UIElement.IsMouseOver" Value="true"> |
|
|
|
|
|
<Setter Property="Background" Value="Transparent" /> |
|
|
|
|
|
</Trigger> |
|
|
|
|
|
</Style.Triggers> |
|
|
|
|
|
</Style> |
|
|
|
|
|
</DataGrid.RowStyle> |
|
|
|
|
|
<DataGrid.Columns> |
|
|
|
|
|
<DataGridTextColumn |
|
|
|
|
|
Width="300" |
|
|
|
|
|
Binding="{Binding CardNo}" |
|
|
|
|
|
ElementStyle="{StaticResource CenterAlignmentStyle}" |
|
|
|
|
|
Header="卡号" |
|
|
|
|
|
HeaderStyle="{StaticResource SaleLogHeader}" /> |
|
|
|
|
|
<DataGridTextColumn |
|
|
|
|
|
Width="260" |
|
|
|
|
|
Binding="{Binding Money}" |
|
|
|
|
|
ElementStyle="{StaticResource CenterAlignmentStyle}" |
|
|
|
|
|
Header="金额" |
|
|
|
|
|
HeaderStyle="{StaticResource SaleLogHeader}" /> |
|
|
|
|
|
<DataGridTextColumn |
|
|
|
|
|
Width="260" |
|
|
|
|
|
Binding="{Binding Location}" |
|
|
|
|
|
ElementStyle="{StaticResource CenterAlignmentStyle}" |
|
|
|
|
|
Header="档口" |
|
|
|
|
|
HeaderStyle="{StaticResource SaleLogHeader}" /> |
|
|
|
|
|
<DataGridTextColumn |
|
|
|
|
|
Width="260" |
|
|
|
|
|
Binding="{Binding CreateTime, StringFormat={}{0:yyyy-MM-dd HH:mm:ss}}" |
|
|
|
|
|
ElementStyle="{StaticResource CenterAlignmentStyle}" |
|
|
|
|
|
Header="消费时间" |
|
|
|
|
|
HeaderStyle="{StaticResource SaleLogHeader}" /> |
|
|
|
|
|
</DataGrid.Columns> |
|
|
|
|
|
</DataGrid> |
|
|
|
|
|
</StackPanel> |
|
|
|
|
|
|
|
|
</Grid> |
|
|
|
|
|
|
|
|
</hc:Window> |
|
|
</hc:Window> |