终端一体化运控平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

48 lines
1.5 KiB

  1. <UserControl
  2. x:Class="BPASmartClient.CustomResource.Pages.View.ReportView"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:BPASmartClient.CustomResource.Pages.View"
  7. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  8. xmlns:pry="clr-namespace:BPASmartClient.CustomResource.UserControls"
  9. xmlns:vm="clr-namespace:BPASmartClient.CustomResource.Pages.ViewModel"
  10. d:DesignHeight="450"
  11. d:DesignWidth="800"
  12. mc:Ignorable="d">
  13. <UserControl.DataContext>
  14. <vm:ReportViewModel />
  15. </UserControl.DataContext>
  16. <Grid>
  17. <Grid.RowDefinitions>
  18. <RowDefinition Height="40" />
  19. <RowDefinition />
  20. </Grid.RowDefinitions>
  21. <StackPanel Orientation="Horizontal">
  22. <Button
  23. Width="70"
  24. Margin="5,0"
  25. Command="{Binding AddCommand}"
  26. Content="添加数据" />
  27. <Button
  28. Width="70"
  29. Margin="5,0"
  30. Command="{Binding SaveCommand}"
  31. Content="保存数据" />
  32. <Button
  33. Width="70"
  34. Margin="5,0"
  35. Command="{Binding ReadCommand}"
  36. Content="获取数据" />
  37. </StackPanel>
  38. <Grid Grid.Row="1">
  39. <pry:DataGridEx ItemsSource="{Binding ReportData}" />
  40. </Grid>
  41. </Grid>
  42. </UserControl>