QuoteDetails.xaml 4.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <UserControl x:Class="PRSDesktop.QuoteDetails"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:PRSDesktop"
  7. xmlns:dynamicgrid="clr-namespace:InABox.DynamicGrid;assembly=InABox.Wpf"
  8. mc:Ignorable="d"
  9. d:DesignHeight="450" d:DesignWidth="800">
  10. <Border BorderBrush="Gray" BorderThickness="0.75" Background="WhiteSmoke">
  11. <Grid Margin="0,0,5,5" Background="Transparent">
  12. <Grid.ColumnDefinitions>
  13. <ColumnDefinition Width="100" />
  14. <ColumnDefinition Width="*" />
  15. </Grid.ColumnDefinitions>
  16. <Grid.RowDefinitions>
  17. <RowDefinition Height="Auto" />
  18. <RowDefinition Height="Auto" />
  19. <RowDefinition Height="Auto" />
  20. <RowDefinition Height="Auto" />
  21. <RowDefinition Height="Auto" />
  22. <RowDefinition Height="*" />
  23. <RowDefinition Height="Auto" />
  24. </Grid.RowDefinitions>
  25. <Label Grid.Row="0" Grid.Column="0" Content="Title" Margin="5,5,0,0" />
  26. <dynamicgrid:TextBoxEditorControl x:Name="Title" Grid.Row="0" Grid.Column="1" Margin="5,5,0,0" />
  27. <!--<TextBox x:Name="Title" Grid.Row="0" Grid.Column="1" Grid.ColumnSpan="2" Margin="5,5,0,0" IsReadOnly="True" VerticalContentAlignment="Center"/>-->
  28. <Label Grid.Row="1" Grid.Column="0" Content="Customer" Margin="5,5,0,0" />
  29. <dynamicgrid:CodePopupEditorControl x:Name="Customer" Grid.Row="1" Grid.Column="1" Margin="5,5,0,0" />
  30. <Label Grid.Row="2" Grid.Column="0" Content="Address" Margin="5,5,0,0" />
  31. <TextBox x:Name="Address" Grid.Row="2" Grid.Column="1" Height="100" Margin="5,5,0,0" IsReadOnly="True" />
  32. <Label Grid.Row="3" Grid.Column="0" Content="City" Margin="5,5,0,0" />
  33. <Grid Grid.Row="3" Grid.Column="1" Background="WhiteSmoke">
  34. <Grid.ColumnDefinitions>
  35. <ColumnDefinition Width="*" />
  36. <ColumnDefinition Width="*" />
  37. <ColumnDefinition Width="100" />
  38. </Grid.ColumnDefinitions>
  39. <TextBox x:Name="City" Grid.Row="0" Grid.Column="0" Margin="5,5,0,0" IsReadOnly="True" />
  40. <TextBox x:Name="State" Grid.Row="0" Grid.Column="1" Margin="5,5,0,0" IsReadOnly="True"
  41. VerticalContentAlignment="Center" />
  42. <TextBox x:Name="PostCode" Grid.Row="0" Grid.Column="2" Margin="5,5,0,0" IsReadOnly="True"
  43. VerticalContentAlignment="Center" />
  44. </Grid>
  45. <Label Grid.Row="4" Grid.Column="0" Content="Bill To" Margin="5,5,0,0" />
  46. <dynamicgrid:CodePopupEditorControl x:Name="Account" Grid.Row="4" Grid.Column="1" Margin="5,5,0,0" />
  47. <Label Grid.Row="5" Grid.Column="0" Content="Notes" Margin="5,5,0,0" />
  48. <DockPanel Grid.Row="5" Grid.Column="1">
  49. <local:QuoteProposalGrid x:Name="Proposals" DockPanel.Dock="Right" Margin="5,5,0,0" Width="400" />
  50. <TextBox x:Name="Notes" DockPanel.Dock="Left" Margin="5,5,0,0" IsReadOnly="True" />
  51. </DockPanel>
  52. <Label Grid.Row="6" Grid.Column="0" Content="Quote Status" Margin="5,5,0,0" />
  53. <DockPanel Grid.Row="6" Grid.Column="1">
  54. <ComboBox x:Name="Status" DockPanel.Dock="Left" Margin="5,5,0,0" VerticalContentAlignment="Center"
  55. Width="250" HorizontalAlignment="Left" SelectionChanged="Status_SelectionChanged"
  56. SelectedValuePath="Key" DisplayMemberPath="Value" />
  57. <TextBox x:Name="QuoteValue" DockPanel.Dock="Right" Margin="5,5,0,0" Width="100"
  58. VerticalContentAlignment="Center" HorizontalContentAlignment="Center" />
  59. <Label Content="Value (Ex Tax $)" DockPanel.Dock="Right" Margin="5,5,0,0"
  60. HorizontalContentAlignment="Right" VerticalContentAlignment="Center" />
  61. </DockPanel>
  62. </Grid>
  63. </Border>
  64. </UserControl>