LicenseRenewalForm.xaml 5.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <wpf:ThemableWindow x:Class="PRSServer.Forms.DatabaseLicense.LicenseRenewalForm"
  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:license="clr-namespace:PRSServer.Forms.DatabaseLicense"
  7. xmlns:dynamicgrid="clr-namespace:InABox.DynamicGrid;assembly=InABox.Wpf"
  8. xmlns:wpf="clr-namespace:InABox.Wpf;assembly=InABox.Wpf"
  9. mc:Ignorable="d"
  10. Title="License Renewal Form" Height="800" Width="600" WindowStartupLocation="CenterScreen"
  11. Loaded="Window_Loaded" x:Name="Window">
  12. <Grid Margin="5">
  13. <Grid.ColumnDefinitions>
  14. <ColumnDefinition Width="*" />
  15. <ColumnDefinition Width="Auto" />
  16. </Grid.ColumnDefinitions>
  17. <Grid.RowDefinitions>
  18. <RowDefinition Height="Auto" />
  19. <RowDefinition Height="Auto" />
  20. <RowDefinition Height="*" />
  21. <RowDefinition Height="Auto" />
  22. <RowDefinition Height="Auto" />
  23. <RowDefinition Height="Auto" />
  24. <RowDefinition Height="Auto" />
  25. <RowDefinition Height="Auto" />
  26. <RowDefinition Height="Auto" />
  27. <RowDefinition Height="Auto" />
  28. </Grid.RowDefinitions>
  29. <Label Content="Last License Renewal Date" Grid.Row="0" Grid.Column="0" Margin="5" />
  30. <dynamicgrid:DateEditorControl x:Name="LastRenewal" ColumnName="LastRenewal" Grid.Row="0" Grid.Column="1"
  31. IsEnabled="False" TodayVisible="false" Margin="5" HorizontalAlignment="Stretch"
  32. MaxWidth="Infinity" />
  33. <Label Content="Current License Expiry Date" Grid.Row="1" Grid.Column="0" Margin="5" />
  34. <dynamicgrid:DateEditorControl x:Name="CurrentExpiry" ColumnName="CurrentExpiry" Grid.Row="1" Grid.Column="1"
  35. IsEnabled="False" TodayVisible="false" Margin="5" HorizontalAlignment="Stretch"
  36. MaxWidth="Infinity" />
  37. <Border Margin="5" Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2">
  38. <license:LicenseTrackingItemGrid x:Name="Modules" />
  39. </Border>
  40. <Label Content="Renewal Period" FontWeight="Bold" Grid.Row="3" Grid.Column="0" Margin="5" />
  41. <dynamicgrid:LookupEditorControl x:Name="RenewalPeriodEditor" ColumnName="RenewalPeriod" Grid.Row="3" Grid.Column="1"
  42. Margin="5" OnEditorValueChanged="RenewalPeriod_OnEditorValueChanged"
  43. HorizontalAlignment="Stretch" MaxWidth="Infinity" />
  44. <Label Content="New License Expiry Date" FontWeight="Bold" Grid.Row="4" Grid.Column="0" Margin="5" />
  45. <dynamicgrid:DateEditorControl x:Name="NewExpiry" ColumnName="NewExpiry" Grid.Row="4" Grid.Column="1"
  46. TodayVisible="false" Margin="5" HorizontalAlignment="Stretch"
  47. MaxWidth="Infinity" />
  48. <Label Content="Gross License Fee (Ex GST)" Grid.Row="5" Grid.Column="0" Margin="5" />
  49. <dynamicgrid:CurrencyEditorControl x:Name="GrossLicenseFee" Grid.Row="5" Grid.Column="1" IsEnabled="False"
  50. Margin="5" ColumnName="GrossLicenseFee" HorizontalAlignment="Stretch"
  51. MaxWidth="Infinity" />
  52. <Label x:Name="DiscountLabel" Content="Less Discount (Ex GST)" FontWeight="Bold" Grid.Row="6" Grid.Column="0"
  53. Margin="5" />
  54. <dynamicgrid:DoubleEditorControl x:Name="DiscountEditor" Grid.Row="6" Grid.Column="1" Margin="5"
  55. ColumnName="Discount" HorizontalAlignment="Stretch" MaxWidth="Infinity" />
  56. <Label Content="Nett License Fee (Ex GST)" Grid.Row="7" Grid.Column="0" Margin="5" />
  57. <dynamicgrid:CurrencyEditorControl x:Name="NettLicenseFee" Grid.Row="7" Grid.Column="1" IsEnabled="False"
  58. Margin="5" ColumnName="NettLicenseFee" HorizontalAlignment="Stretch"
  59. MaxWidth="Infinity" />
  60. <DockPanel Grid.Row="8" Grid.Column="0">
  61. <Button x:Name="Help" Margin="5" Height="30" Width="30"/>
  62. <Button x:Name="EnterKey" DockPanel.Dock="Left" Padding="10,0" Height="30" Margin="5" Content="Manual License"
  63. Click="EnterKey_Click" ToolTipService.ShowOnDisabled="True">
  64. <Button.ContextMenu>
  65. <ContextMenu>
  66. <MenuItem Header="Create Request File" Click="CreateManualRequest"/>
  67. <MenuItem Header="Load License File" Click="LoadManualResponse"/>
  68. </ContextMenu>
  69. </Button.ContextMenu>
  70. </Button>
  71. <Label x:Name="RenewalAvailableLabel" Content="" DockPanel.Dock="Left"
  72. VerticalAlignment="Center" HorizontalAlignment="Center"
  73. VerticalContentAlignment="Center" HorizontalContentAlignment="Center" />
  74. </DockPanel>
  75. <Button x:Name="PayWithStripe" Grid.Row="8" Grid.Column="1" Height="30" Margin="5" Content="Pay Now"
  76. IsEnabled="False"
  77. Click="PayNowClick" ToolTipService.ShowOnDisabled="True">
  78. <Button.ToolTip>
  79. <ToolTip x:Name="PayTooltip">
  80. <Label Content="Loading..."/>
  81. </ToolTip>
  82. </Button.ToolTip>
  83. </Button>
  84. </Grid>
  85. </wpf:ThemableWindow>