Skip to content

Commit 64ffdb5

Browse files
authored
Update
1 parent d54c59c commit 64ffdb5

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

Views/SalesView.xaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<UserControl x:Class="ProBizERP.Views.SalesView"
2+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
4+
<Grid Margin="10">
5+
<StackPanel>
6+
<TextBlock Text="Record Sale" FontWeight="Bold" FontSize="16" Margin="0,0,0,10"/>
7+
<StackPanel Orientation="Horizontal" Margin="0,0,0,10">
8+
<ComboBox Width="200" ItemsSource="{Binding Products}" SelectedItem="{Binding SelectedProduct}" DisplayMemberPath="Name" Margin="0,0,10,0"/>
9+
<TextBox Width="100" Text="{Binding SaleQuantity, UpdateSourceTrigger=PropertyChanged}" PlaceholderText="Quantity" Margin="0,0,10,0"/>
10+
<Button Content="Record Sale" Width="120" Click="RecordSale_Click"/>
11+
</StackPanel>
12+
<TextBlock Text="Sales List" FontWeight="Bold" FontSize="16" Margin="0,10,0,5"/>
13+
<DataGrid ItemsSource="{Binding Sales}" AutoGenerateColumns="False">
14+
<DataGrid.Columns>
15+
<DataGridTextColumn Header="ID" Binding="{Binding Id}" Width="50"/>
16+
<DataGridTextColumn Header="Product ID" Binding="{Binding ProductId}" Width="100"/>
17+
<DataGridTextColumn Header="Quantity" Binding="{Binding Quantity}" Width="100"/>
18+
<DataGridTextColumn Header="Total Price" Binding="{Binding TotalPrice}" Width="100"/>
19+
<DataGridTextColumn Header="Date" Binding="{Binding Date}" Width="150"/>
20+
</DataGrid.Columns>
21+
</DataGrid>
22+
</StackPanel>
23+
</Grid>
24+
</UserControl>

0 commit comments

Comments
 (0)