226 lines
12 KiB
XML
226 lines
12 KiB
XML
<Window x:Class="SPC.Kiosk.Popup.OptionSelect"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:local="clr-namespace:SPC.Kiosk.Popup"
|
|
xmlns:uc ="clr-namespace:SPC.Kiosk.Common;assembly=SPC.Kiosk.Common"
|
|
xmlns:vm ="clr-namespace:SPC.Kiosk.Popup.ViewModel;assembly=SPC.Kiosk.Popup.ViewModel"
|
|
mc:Ignorable="d"
|
|
d:DesignHeight="1010" d:DesignWidth="1300"
|
|
ShowInTaskbar="False"
|
|
Topmost="True"
|
|
WindowStyle="None"
|
|
WindowState="Normal"
|
|
AllowsTransparency="True"
|
|
Background="Transparent">
|
|
<Window.Resources>
|
|
<uc:BoolToVisibility x:Key="ToVisibility" />
|
|
<uc:NumericToString x:Key="ToString" />
|
|
<uc:CodeToMultiLanguage x:Key="ToMultiLanguage"/>
|
|
</Window.Resources>
|
|
<Window.DataContext>
|
|
<vm:VmOptionSelect/>
|
|
</Window.DataContext>
|
|
<Window.InputBindings>
|
|
<KeyBinding Modifiers="Alt" Key="F4" Command="{Binding ToExecuteNothing}" />
|
|
</Window.InputBindings>
|
|
<Grid x:Name="FormBase" Background="#C0000000">
|
|
<Grid x:Name="FrameBase" Width="1300" Height="1010" Background="White">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="*"/>
|
|
<RowDefinition Height="80"/>
|
|
</Grid.RowDefinitions>
|
|
<Grid Grid.Row="0">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="40"/>
|
|
<ColumnDefinition Width="*"/>
|
|
<ColumnDefinition Width="40"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="110"/>
|
|
<RowDefinition Height="60"/>
|
|
<RowDefinition Height="158"/>
|
|
<RowDefinition Height="38"/>
|
|
<RowDefinition Height="*"/>
|
|
<RowDefinition Height="116"/>
|
|
</Grid.RowDefinitions>
|
|
<Border Grid.Column="1" Grid.Row="1" BorderBrush="#dddddd" BorderThickness="0,0,0,1" />
|
|
<Border Grid.Column="1" Grid.Row="2" BorderBrush="#dddddd" BorderThickness="0,0,0,1" />
|
|
<Border Grid.Column="1" Grid.Row="4" BorderBrush="#dddddd" BorderThickness="0,0,0,1" />
|
|
<uc:MutiLanguageTextBlock x:Name="Header"
|
|
Grid.Row="0"
|
|
Grid.Column="1"
|
|
VerticalAlignment="Top"
|
|
Foreground="#1469cc"
|
|
FontSize="44"
|
|
FontWeight="ExtraBold"
|
|
Text="추가 선택"
|
|
TextAlignment="Left"
|
|
FontFamily="NanumSquare"
|
|
Margin="0,44,0,0"
|
|
MultiLanguage="{Binding HeaderText}"
|
|
DisplayLanguage="{Binding ShowLanguageType}"
|
|
/>
|
|
<uc:MutiLanguageTextBlock x:Name="ScanGuid"
|
|
Grid.Row="1"
|
|
Grid.Column="1"
|
|
VerticalAlignment="Top"
|
|
Foreground="#888888"
|
|
FontSize="28"
|
|
FontWeight="Bold"
|
|
Text="선택 완료 시 주문내역에 담깁니다."
|
|
TextAlignment="Left"
|
|
FontFamily="NanumSquare"
|
|
Margin="0,0,0,0"
|
|
MultiLanguage="{Binding ScanGuidText}"
|
|
DisplayLanguage="{Binding ShowLanguageType}"
|
|
/>
|
|
<Grid x:Name="ItemHeader" Grid.Column="1" Grid.Row="2">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="240"/>
|
|
<ColumnDefinition Width="26"/>
|
|
<ColumnDefinition Width="954"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="66"/>
|
|
<RowDefinition Height="90"/>
|
|
</Grid.RowDefinitions>
|
|
<Image Grid.Column="0"
|
|
Grid.Row="0"
|
|
Grid.RowSpan="2"
|
|
Width="90" Height="90"
|
|
Stretch="Fill"
|
|
Source="{Binding ItemImageBrush}">
|
|
</Image>
|
|
<uc:MutiLanguageTextBlock x:Name="ItemName"
|
|
Grid.Column="3"
|
|
Grid.Row="0"
|
|
Grid.ColumnSpan="3"
|
|
Width="954"
|
|
AutoTextTrim="True"
|
|
VerticalAlignment="Bottom"
|
|
HorizontalAlignment="Left"
|
|
Foreground="Black"
|
|
FontSize="30"
|
|
FontWeight="Bold"
|
|
Text="제품명"
|
|
FontFamily="NanumSquare"
|
|
TextAlignment="Left"
|
|
MultiLanguage="{Binding ItemName}"
|
|
DisplayLanguage="{Binding ShowLanguageType}"
|
|
/>
|
|
|
|
<uc:NumericCombo x:Name="ItemCountCombo"
|
|
Grid.Column="2"
|
|
Grid.Row="1"
|
|
Height="36"
|
|
TextWidth="57"
|
|
TextFontSize="20"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Bottom"
|
|
BackgroungBrush="Transparent"
|
|
ForegroungBrush ="Black"
|
|
MinValue="1"
|
|
MaxValue="99"
|
|
ValueStep="1"
|
|
LeftButtonData="{Binding LeftButtonData}"
|
|
RightButtonData="{Binding RightButtonData}"
|
|
SelectedValue="{Binding ItemCount,Mode=TwoWay}"
|
|
IsDropDown="False"
|
|
Margin="0,0,0,28"/>
|
|
|
|
</Grid>
|
|
<local:OptionSelector Grid.Column="1" Grid.Row="4"
|
|
HorizontalAlignment="Left"
|
|
Width="1220"
|
|
x:Name="OptionSelectControl"
|
|
EditMode="{Binding EditMode}"
|
|
DisplayLanguage="{Binding ShowLanguageType}"
|
|
OptionData="{Binding Options}"
|
|
Command="{Binding OptionCommand}"/>
|
|
<Grid Grid.Column="1"
|
|
Grid.Row="5"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Center">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="770"/>
|
|
<ColumnDefinition Width="450"/>
|
|
</Grid.ColumnDefinitions>
|
|
<StackPanel Orientation="Horizontal" Grid.Column="1" HorizontalAlignment="Right">
|
|
<uc:MutiLanguageTextBlock x:Name="TotalPriceLabel"
|
|
VerticalAlignment="Center"
|
|
HorizontalAlignment="Left"
|
|
Foreground="Black"
|
|
FontSize="30"
|
|
FontFamily="NanumSquare"
|
|
FontWeight="Bold"
|
|
Text="합계금액 "
|
|
TextAlignment="Left"
|
|
MultiLanguage="{Binding TotalPriceLabel}"
|
|
DisplayLanguage="{Binding ShowLanguageType}"
|
|
Margin="0,0,30,0"
|
|
/>
|
|
<uc:MutiLanguageTextBlock x:Name="TotalPriceLabel2"
|
|
VerticalAlignment="Center"
|
|
HorizontalAlignment="Left"
|
|
Foreground="#1469cc"
|
|
FontSize="30"
|
|
FontFamily="NanumSquare"
|
|
FontWeight="Bold"
|
|
Text="\"
|
|
TextAlignment="Left"
|
|
Margin="0,0,10,0"
|
|
/>
|
|
<uc:MutiLanguageTextBlock x:Name="TotalPrice"
|
|
VerticalAlignment="Center"
|
|
HorizontalAlignment="Right"
|
|
Foreground="#1469cc"
|
|
FontSize="64"
|
|
FontWeight="Bold"
|
|
Text="{Binding TotalPrice,ConverterParameter='#,##0', Converter={StaticResource ToString}}"
|
|
TextAlignment="Left"
|
|
/>
|
|
|
|
</StackPanel>
|
|
</Grid>
|
|
</Grid>
|
|
<Grid Grid.Row="1">
|
|
<StackPanel Orientation="Horizontal">
|
|
<uc:AnimationButton x:Name="Cancel_Button"
|
|
VerticalAlignment="Center"
|
|
HorizontalAlignment="Center"
|
|
Width="650"
|
|
Height="80"
|
|
NormalBrush="#333333"
|
|
ClickAnimationType="TextSizeDown"
|
|
TextFontFamily="NanumSquare"
|
|
TextVisible ="Visible"
|
|
TextFontSize ="30"
|
|
TextForeground = "White"
|
|
TextFontWeight ="Bold"
|
|
Command="{Binding CancelCommand}"
|
|
LanguageText="{Binding CancelButtonText}"
|
|
DisplayLanguage="{Binding ShowLanguageType}"/>
|
|
<uc:AnimationButton x:Name="OK_Button"
|
|
VerticalAlignment="Center"
|
|
HorizontalAlignment="Center"
|
|
Width="650"
|
|
Height="80"
|
|
NormalBrush="#1469cc"
|
|
DisableBrush="#aaaaaa"
|
|
ClickAnimationType="TextSizeUp"
|
|
TextVisible ="Visible"
|
|
TextFontSize ="30"
|
|
TextForeground = "White"
|
|
DisableForeground="#dddddd"
|
|
TextFontWeight ="Bold"
|
|
Command="{Binding OkCommand}"
|
|
LanguageText="{Binding OkButtonText}"
|
|
DisplayLanguage="{Binding ShowLanguageType}"/>
|
|
</StackPanel>
|
|
</Grid>
|
|
</Grid>
|
|
</Grid>
|
|
</Window>
|