Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <Window x:Class="QuanLyKho.OutputWindow"
- 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:QuanLyKho"
- mc:Ignorable="d"
- xmlns:uc="clr-namespace:QuanLyKho.UserControlBar"
- xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
- xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
- TextElement.Foreground="{DynamicResource MaterialDesignBody}"
- TextElement.FontWeight="Regular"
- TextElement.FontSize="13"
- TextOptions.TextFormattingMode="Ideal"
- TextOptions.TextRenderingMode="Auto"
- Background="{DynamicResource MaterialDesignPaper}"
- FontFamily="{DynamicResource MaterialDesignFont}"
- ResizeMode="NoResize"
- WindowStyle="None"
- Name="outputwindow"
- DataContext="{StaticResource OutputVM}"
- WindowStartupLocation="CenterScreen"
- Title="Quản lý xuất kho" Height="500" Width="700">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="auto"></RowDefinition>
- <RowDefinition Height="278*"></RowDefinition>
- </Grid.RowDefinitions>
- <Grid Grid.Row="0">
- <uc:ControlBar Tag="{Binding Title, ElementName=outputwindow}"></uc:ControlBar>
- </Grid>
- <Grid Grid.Row="1">
- <Grid.RowDefinitions>
- <RowDefinition Height="auto"></RowDefinition>
- <RowDefinition Height="auto"></RowDefinition>
- <RowDefinition></RowDefinition>
- </Grid.RowDefinitions>
- <!--tb,cb thuộc tính-->
- <materialDesign:Card Grid.Row="0" Margin="5">
- <WrapPanel Margin="0 0 0 10">
- <ComboBox
- DisplayMemberPath="DisplayName"
- Margin="5 5 15 5"
- ItemsSource="{Binding Object}"
- SelectedItem="{Binding SelectedObject, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
- materialDesign:HintAssist.Hint="Tên vật tư"
- IsEditable="True"
- Style="{StaticResource MaterialDesignFloatingHintComboBox}">
- </ComboBox>
- <DatePicker Margin="5 5 15 -7"
- VerticalAlignment="Center"
- SelectedDate="{Binding DateOutput}"
- Width="100"
- materialDesign:HintAssist.Hint="Ngày xuất"
- Style="{StaticResource MaterialDesignFloatingHintDatePicker}" />
- <TextBox
- Text="{Binding Count, UpdateSourceTrigger=PropertyChanged}"
- Margin="5 5 15 5"
- materialDesign:HintAssist.Hint="Số lượng"
- Style="{StaticResource MaterialDesignFloatingHintTextBox}" />
- <ComboBox
- DisplayMemberPath="OutputPrice"
- Margin="5 5 15 5"
- ItemsSource="{Binding InputInfo}"
- SelectedItem="{Binding SelectecInputInfo, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
- materialDesign:HintAssist.Hint="Gía bán"
- IsEditable="True"
- Style="{StaticResource MaterialDesignFloatingHintComboBox}">
- </ComboBox>
- <ComboBox
- DisplayMemberPath="DisplayName"
- Margin="5 5 15 5"
- ItemsSource="{Binding Customer}"
- SelectedItem="{Binding SelectedCustomer, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
- materialDesign:HintAssist.Hint="Khách hàng"
- IsEditable="True"
- Style="{StaticResource MaterialDesignFloatingHintComboBox}">
- </ComboBox>
- <TextBox
- Text="{Binding Status, UpdateSourceTrigger=PropertyChanged}"
- Margin="5 5 15 5"
- materialDesign:HintAssist.Hint="Trạng thái xuất"
- Style="{StaticResource MaterialDesignFloatingHintTextBox}" />
- </WrapPanel>
- </materialDesign:Card>
- <materialDesign:Card Grid.Row="1" Margin="5">
- <WrapPanel>
- <Button Command="{Binding AddCommand}" Content="Thêm" Margin="5" Width="130"></Button>
- <Button Command="{Binding EditCommand}" Content="Sửa" Margin="5" Width="130"></Button>
- <Button Command="{Binding DeleteCommand}" Content="Xóa" Margin="5" Width="130"></Button>
- </WrapPanel>
- </materialDesign:Card>
- <materialDesign:Card Grid.Row="2" Margin="5" VerticalAlignment="Stretch">
- <ScrollViewer VerticalScrollBarVisibility="Auto">
- <ListView ItemsSource="{Binding List}" SelectedItem="{Binding SelectedItem, Mode=OneWayToSource}">
- <ListView.View>
- <GridView>
- <GridViewColumn Header="Vật tư" DisplayMemberBinding="{Binding Object.DisplayName}"></GridViewColumn>
- <GridViewColumn Header="Ngày xuất" DisplayMemberBinding="{Binding Output.DateOutput,StringFormat='dd/MM/yyyy'}"></GridViewColumn>
- <GridViewColumn Header="Số lượng" DisplayMemberBinding="{Binding Count}"></GridViewColumn>
- <GridViewColumn Header="Gía xuất" DisplayMemberBinding="{Binding InputInfo.OutputPrice}"></GridViewColumn>
- <GridViewColumn Header="Khách hàng" DisplayMemberBinding="{Binding Customer.DisplayName}"></GridViewColumn>
- <GridViewColumn Header="Trạng thái" DisplayMemberBinding="{Binding Status}"></GridViewColumn>
- </GridView>
- </ListView.View>
- </ListView>
- </ScrollViewer>
- </materialDesign:Card>
- </Grid>
- </Grid>
- </Window>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement