Advertisement
Guest User

OutputXaml

a guest
Jul 18th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.46 KB | None | 0 0
  1. <Window x:Class="QuanLyKho.OutputWindow"
  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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:QuanLyKho"
  7. mc:Ignorable="d"
  8. xmlns:uc="clr-namespace:QuanLyKho.UserControlBar"
  9. xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
  10. xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
  11. TextElement.Foreground="{DynamicResource MaterialDesignBody}"
  12. TextElement.FontWeight="Regular"
  13. TextElement.FontSize="13"
  14. TextOptions.TextFormattingMode="Ideal"
  15. TextOptions.TextRenderingMode="Auto"
  16. Background="{DynamicResource MaterialDesignPaper}"
  17. FontFamily="{DynamicResource MaterialDesignFont}"
  18. ResizeMode="NoResize"
  19. WindowStyle="None"
  20. Name="outputwindow"
  21. DataContext="{StaticResource OutputVM}"
  22. WindowStartupLocation="CenterScreen"
  23. Title="Quản lý xuất kho" Height="500" Width="700">
  24. <Grid>
  25. <Grid.RowDefinitions>
  26. <RowDefinition Height="auto"></RowDefinition>
  27. <RowDefinition Height="278*"></RowDefinition>
  28.  
  29. </Grid.RowDefinitions>
  30. <Grid Grid.Row="0">
  31. <uc:ControlBar Tag="{Binding Title, ElementName=outputwindow}"></uc:ControlBar>
  32. </Grid>
  33. <Grid Grid.Row="1">
  34. <Grid.RowDefinitions>
  35. <RowDefinition Height="auto"></RowDefinition>
  36. <RowDefinition Height="auto"></RowDefinition>
  37. <RowDefinition></RowDefinition>
  38. </Grid.RowDefinitions>
  39. <!--tb,cb thuộc tính-->
  40. <materialDesign:Card Grid.Row="0" Margin="5">
  41. <WrapPanel Margin="0 0 0 10">
  42. <ComboBox
  43. DisplayMemberPath="DisplayName"
  44. Margin="5 5 15 5"
  45. ItemsSource="{Binding Object}"
  46. SelectedItem="{Binding SelectedObject, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
  47. materialDesign:HintAssist.Hint="Tên vật tư"
  48. IsEditable="True"
  49. Style="{StaticResource MaterialDesignFloatingHintComboBox}">
  50. </ComboBox>
  51. <DatePicker Margin="5 5 15 -7"
  52. VerticalAlignment="Center"
  53. SelectedDate="{Binding DateOutput}"
  54. Width="100"
  55. materialDesign:HintAssist.Hint="Ngày xuất"
  56. Style="{StaticResource MaterialDesignFloatingHintDatePicker}" />
  57. <TextBox
  58. Text="{Binding Count, UpdateSourceTrigger=PropertyChanged}"
  59. Margin="5 5 15 5"
  60. materialDesign:HintAssist.Hint="Số lượng"
  61. Style="{StaticResource MaterialDesignFloatingHintTextBox}" />
  62. <ComboBox
  63. DisplayMemberPath="OutputPrice"
  64. Margin="5 5 15 5"
  65. ItemsSource="{Binding InputInfo}"
  66. SelectedItem="{Binding SelectecInputInfo, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
  67. materialDesign:HintAssist.Hint="Gía bán"
  68. IsEditable="True"
  69. Style="{StaticResource MaterialDesignFloatingHintComboBox}">
  70. </ComboBox>
  71. <ComboBox
  72. DisplayMemberPath="DisplayName"
  73. Margin="5 5 15 5"
  74. ItemsSource="{Binding Customer}"
  75. SelectedItem="{Binding SelectedCustomer, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
  76. materialDesign:HintAssist.Hint="Khách hàng"
  77. IsEditable="True"
  78. Style="{StaticResource MaterialDesignFloatingHintComboBox}">
  79. </ComboBox>
  80. <TextBox
  81. Text="{Binding Status, UpdateSourceTrigger=PropertyChanged}"
  82. Margin="5 5 15 5"
  83. materialDesign:HintAssist.Hint="Trạng thái xuất"
  84. Style="{StaticResource MaterialDesignFloatingHintTextBox}" />
  85. </WrapPanel>
  86. </materialDesign:Card>
  87.  
  88. <materialDesign:Card Grid.Row="1" Margin="5">
  89. <WrapPanel>
  90. <Button Command="{Binding AddCommand}" Content="Thêm" Margin="5" Width="130"></Button>
  91. <Button Command="{Binding EditCommand}" Content="Sửa" Margin="5" Width="130"></Button>
  92. <Button Command="{Binding DeleteCommand}" Content="Xóa" Margin="5" Width="130"></Button>
  93.  
  94. </WrapPanel>
  95. </materialDesign:Card>
  96.  
  97. <materialDesign:Card Grid.Row="2" Margin="5" VerticalAlignment="Stretch">
  98. <ScrollViewer VerticalScrollBarVisibility="Auto">
  99. <ListView ItemsSource="{Binding List}" SelectedItem="{Binding SelectedItem, Mode=OneWayToSource}">
  100. <ListView.View>
  101. <GridView>
  102. <GridViewColumn Header="Vật tư" DisplayMemberBinding="{Binding Object.DisplayName}"></GridViewColumn>
  103. <GridViewColumn Header="Ngày xuất" DisplayMemberBinding="{Binding Output.DateOutput,StringFormat='dd/MM/yyyy'}"></GridViewColumn>
  104. <GridViewColumn Header="Số lượng" DisplayMemberBinding="{Binding Count}"></GridViewColumn>
  105. <GridViewColumn Header="Gía xuất" DisplayMemberBinding="{Binding InputInfo.OutputPrice}"></GridViewColumn>
  106. <GridViewColumn Header="Khách hàng" DisplayMemberBinding="{Binding Customer.DisplayName}"></GridViewColumn>
  107. <GridViewColumn Header="Trạng thái" DisplayMemberBinding="{Binding Status}"></GridViewColumn>
  108. </GridView>
  109. </ListView.View>
  110. </ListView>
  111. </ScrollViewer>
  112. </materialDesign:Card>
  113. </Grid>
  114. </Grid>
  115. </Window>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement