spc-kiosk-pb/Kiosk/Popup/SPC.Kiosk.Popup/OkCashBagUsing.xaml

494 lines
28 KiB
Plaintext
Raw Normal View History

2019-06-16 05:12:09 +00:00
<Window x:Class="SPC.Kiosk.Popup.OkCashBagUsing"
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="830" d:DesignWidth="760"
ShowInTaskbar="False"
Topmost="True"
WindowStyle="None"
WindowState="Normal"
AllowsTransparency="True"
Background="Transparent">
<Window.Resources>
<uc:BoolToVisibility x:Key="ToVisibility" />
</Window.Resources>
<Window.DataContext>
<vm:VmOkCashBagUsing/>
</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="760" Height="830" Background="White">
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="60"/>
</Grid.RowDefinitions>
<Grid Grid.Row="0">
<Grid.RowDefinitions>
<RowDefinition Height="60"/>
<RowDefinition Height="40"/>
<RowDefinition Height="60"/>
<RowDefinition Height="*"/>
<RowDefinition Height="20"/>
<RowDefinition Height="20"/>
<RowDefinition Height="20"/>
</Grid.RowDefinitions>
<uc:MutiLanguageTextBlock x:Name="Header"
Grid.Row="0"
VerticalAlignment="Center"
Foreground="Black"
FontSize="40"
FontWeight="Black"
Text="OK 캐쉬백 회원인증"
TextAlignment="Left"
Margin="10,0,0,0"
MultiLanguage="{Binding HeaderText}"
DisplayLanguage="{Binding ShowLanguageType}"
/>
<uc:MutiLanguageTextBlock x:Name="ScanGuid"
Grid.Row="1"
VerticalAlignment="Center"
Foreground="Black"
FontSize="20"
FontWeight="Black"
Text="바코드 스켄 또는 전화 번호를 입력하세요."
TextAlignment="Left"
Margin="10,0,0,0"
MultiLanguage="{Binding ScanGuidText}"
DisplayLanguage="{Binding ShowLanguageType}"
/>
<uc:MutiLanguageTextBlock x:Name="ErrorText"
Grid.Row="2"
VerticalAlignment="Center"
Foreground="DarkRed"
FontSize="24"
FontWeight="Black"
TextAlignment="Center"
Margin="0,0,0,0"
BlinkText="{Binding IsErrorBlink}"
MultiLanguage="{Binding ErrorText}"
DisplayLanguage="{Binding ShowLanguageType}" />
<Grid Grid.Row="3">
<Grid.RowDefinitions>
<RowDefinition Height="60"/>
<RowDefinition Height="10"/>
<RowDefinition Height="450"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="10"/>
<ColumnDefinition Width="370"/>
<ColumnDefinition Width="370"/>
<ColumnDefinition Width="10"/>
</Grid.ColumnDefinitions>
<Grid Grid.Column="1" Grid.Row="0" Grid.RowSpan="3">
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="60"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="15"/>
<ColumnDefinition Width="340"/>
<ColumnDefinition Width="15"/>
</Grid.ColumnDefinitions>
<uc:AnimationButton x:Name="ScanImage" Grid.Column="1" Grid.Row="0"
HorizontalAlignment="Center"
Width="200"
Height="200"
NormalBrush="Navy"
DownBrush="DarkGray"
DisableBrush="LightGray"
BrushStretch = "Fill"
TextVisible ="Visible"
TextFontSize ="30"
TextForeground = "White"
DisableForeground="Black"
TextFontWeight ="Black"
Text="ScanImage"/>
<TextBox x:Name="BarCode"
Grid.Column="1" Grid.Row="1"
TextAlignment="Center"
VerticalAlignment="Center"
FontSize="10"
Foreground="Black"
Focusable="True"
BorderThickness="0"
/>
<uc:MutiLanguageTextBlock x:Name="ShowBarCode"
Grid.Column="1" Grid.Row="1"
Width="340"
Background="White"
Foreground="Black"
FontSize="24"
TextAlignment="Center"
VerticalAlignment="Center"
HorizontalAlignment="Center"
Text="{Binding FormatedBarCode}"
/>
</Grid>
<Border Grid.Column="2" Grid.Row="0" BorderBrush="Gray" BorderThickness="1" />
<uc:MutiLanguageTextBlock Grid.Column="2" Grid.Row="0"
VerticalAlignment="Center"
Text="{Binding Path=ShowText ,ElementName=NumPad}"
FontSize="24"
TextAlignment="Center"
/>
<uc:NumericPad2 x:Name="NumPad"
Grid.Column="2"
Grid.Row="2"
Width="370"
Height="370"
Formated="True"
NormalBrush="White"
DownBrush="DarkGray"
TextForeground="Black"
CancelNormalBrush="DarkRed"
CancelDownBrush="DarkGray"
CancelForeground="White"
ClickAnimationType="TextSizeUp"
MaxLength="{Binding NumPadMaxLength}"
GuidText="{Binding NumPadGuidText}"
CancelLanguageText="{Binding NumPadCancelText}"
InputText="{Binding InputNumbers,Mode=TwoWay}"
DisplayLanguage="{Binding ShowLanguageType}"
BorderThickness="4"
BorderBrush="Black"
/>
</Grid>
<uc:MutiLanguageTextBlock x:Name="InfoGuid1"
Grid.Row="4"
VerticalAlignment="Center"
Foreground="Black"
FontSize="14"
FontWeight="Normal"
Margin="10,0,0,0"
Text="* 해피포인트 적립시 OK캐쉬백은 적립할 수 없습니다."
TextAlignment="Left"
MultiLanguage="{Binding InfoGuid1Text}"
DisplayLanguage="{Binding ShowLanguageType}"/>
<uc:MutiLanguageTextBlock x:Name="InfoGuid2"
Grid.Row="5"
VerticalAlignment="Center"
Foreground="Black"
FontSize="14"
FontWeight="Normal"
Margin="10,0,0,0"
Text="* 수집된 개인정보는 활용 후 자동 폐기 됩니다."
TextAlignment="Left"
MultiLanguage="{Binding InfoGuid2Text}"
DisplayLanguage="{Binding ShowLanguageType}"/>
</Grid>
<Grid Grid.Row="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<uc:AnimationButton x:Name="Cancel_Button" Grid.Column="0"
VerticalAlignment="Center"
HorizontalAlignment="Center"
Width="380"
Height="60"
NormalBrush="Navy"
DownBrush="DarkGray"
BrushStretch = "Fill"
ClickAnimationType="TextSizeUp"
TextVisible ="Visible"
TextFontSize ="30"
TextForeground = "White"
TextFontWeight ="Black"
LanguageText="{Binding CancelButtonText}"
DisplayLanguage="{Binding ShowLanguageType}"
Command="{Binding CancelCommand}"/>
<uc:AnimationButton x:Name="OK_Button" Grid.Column="1"
VerticalAlignment="Center"
HorizontalAlignment="Center"
Width="380"
Height="60"
NormalBrush="Navy"
DownBrush="DarkGray"
Enabled="{Binding OKButtonEnabled}"
DisableBrush="LightGray"
BrushStretch = "Fill"
ClickAnimationType="TextSizeUp"
TextVisible ="Visible"
TextFontSize ="30"
TextForeground = "White"
DisableForeground="Black"
TextFontWeight ="Black"
LanguageText="{Binding OkButtonText}"
DisplayLanguage="{Binding ShowLanguageType}"
Command="{Binding OkCommand}"/>
</Grid>
</Grid>
<Grid x:Name="AfterBase" Width="760" Height="830" Background="White" >
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="60"/>
</Grid.RowDefinitions>
<Grid Grid.Row="0">
<Grid.RowDefinitions>
<RowDefinition Height="60"/>
<RowDefinition Height="40"/>
<RowDefinition Height="60"/>
<RowDefinition Height="*"/>
<RowDefinition Height="20"/>
<RowDefinition Height="20"/>
<RowDefinition Height="20"/>
</Grid.RowDefinitions>
<uc:MutiLanguageTextBlock x:Name="AfterHeader"
Grid.Row="0"
VerticalAlignment="Center"
Foreground="Black"
FontSize="40"
FontWeight="Black"
Text="OK 캐쉬백"
TextAlignment="Left"
Margin="10,0,0,0"
MultiLanguage="{Binding AfterHeaderText}"
DisplayLanguage="{Binding ShowLanguageType}"
/>
<uc:MutiLanguageTextBlock x:Name="MemberInfo"
Grid.Row="1"
VerticalAlignment="Center"
Foreground="Black"
FontSize="20"
FontWeight="Black"
TextAlignment="Left"
Margin="10,0,0,0"
MultiLanguage="{Binding MemberInfo}"
DisplayLanguage="{Binding ShowLanguageType}"
/>
<uc:MutiLanguageTextBlock x:Name="ErrorText2"
Grid.Row="2"
VerticalAlignment="Center"
Foreground="DarkRed"
FontSize="24"
FontWeight="Black"
TextAlignment="Center"
Margin="0,0,0,0"
BlinkText="{Binding IsErrorBlink2}"
MultiLanguage="{Binding ErrorText2}"
DisplayLanguage="{Binding ShowLanguageType}" />
<Grid Grid.Row="3">
<Grid.RowDefinitions>
<RowDefinition Height="10"/> <!--0-->
<RowDefinition Height="50"/> <!--1-->
<RowDefinition Height="10"/> <!--2-->
<RowDefinition Height="40"/> <!--3-->
<RowDefinition Height="10"/>
<RowDefinition Height="40"/>
<RowDefinition Height="10"/>
<RowDefinition Height="370"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="155"/>
<ColumnDefinition Width="450"/>
<ColumnDefinition Width="155"/>
</Grid.ColumnDefinitions>
<Grid Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="3" HorizontalAlignment="Center">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<uc:MutiLanguageTextBlock x:Name="TotalPayHeader"
Grid.Column="0"
VerticalAlignment="Center"
Foreground="Black"
FontSize="30"
FontWeight="Black"
Text="최종 결제금액"
TextAlignment="Left"
Margin="10,0,50,0"
MultiLanguage="{Binding TotalPayHeaderText}"
DisplayLanguage="{Binding ShowLanguageType}"/>
<uc:MutiLanguageTextBlock x:Name="TotalPayment"
Grid.Column="1"
VerticalAlignment="Center"
Foreground="Black"
FontSize="30"
FontWeight="Black"
Text="{Binding ShowPayment}"
TextAlignment="Left"
Margin="10,0,0,0"/>
</Grid>
<Grid Grid.Column="1" Grid.Row="3">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<uc:AnimationButton x:Name="SwitchAnswer1" Grid.Column="0"
VerticalAlignment="Center"
HorizontalAlignment="Center"
Width="225"
Height="60"
NormalBrush="#404040"
DownBrush="DarkGray"
SwitchOnBrush="Navy"
DisableBrush="LightGray"
BrushStretch = "Fill"
AutoToggle="True"
ClickAnimationType="TextSizeUp"
Enabled="{Binding ReservePoint}"
TextVisible ="Visible"
TextFontSize ="24"
TextForeground = "White"
SwitchOnForeground="White"
DisableForeground="Black"
TextFontWeight ="Black"
Switch="{Binding SwitchAnswer1Switch,Mode=TwoWay}"
LanguageText="{Binding SwitchAnswer1Text}"
DisplayLanguage="{Binding ShowLanguageType}"
Command="{Binding SwitchAnswer1Command}"/>
<uc:AnimationButton x:Name="SwitchAnswer2" Grid.Column="1"
VerticalAlignment="Center"
HorizontalAlignment="Center"
Width="225"
Height="60"
NormalBrush="#404040"
DownBrush="DarkGray"
SwitchOnBrush="Navy"
DisableBrush="LightGray"
BrushStretch = "Fill"
AutoToggle="True"
ClickAnimationType="TextSizeUp"
TextVisible ="Visible"
TextFontSize ="30"
TextForeground = "White"
SwitchOnForeground="White"
DisableForeground="Black"
TextFontWeight ="Black"
Switch="{Binding SwitchAnswer2Switch,Mode=TwoWay}"
LanguageText="{Binding SwitchAnswer2Text}"
DisplayLanguage="{Binding ShowLanguageType}"
Command="{Binding SwitchAnswer2Command}"/>
</Grid>
<Grid Grid.Column="1" Grid.Row="5" x:Name="UsingPointsGrid" Visibility="{Binding Path=Visibility,ElementName=PointPad}">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="320"/>
<ColumnDefinition Width="10"/>
<ColumnDefinition Width="120"/>
</Grid.ColumnDefinitions>
<Border Grid.Column="0" BorderBrush="Gray" BorderThickness="1" />
<uc:MutiLanguageTextBlock Grid.Column="0"
VerticalAlignment="Center"
Text="{Binding Path=ShowText ,ElementName=PointPad}"
FontSize="24"
TextAlignment="Center" />
<uc:AnimationButton x:Name="All_Use" Grid.Column="2"
VerticalAlignment="Center"
HorizontalAlignment="Center"
Width="120"
Height="40"
NormalBrush="Navy"
DownBrush="DarkGray"
BrushStretch = "Fill"
ClickAnimationType="TextSizeUp"
TextVisible ="Visible"
TextFontSize ="24"
TextForeground = "White"
TextFontWeight ="Black"
LanguageText="{Binding AllUseButtonText}"
DisplayLanguage="{Binding ShowLanguageType}"
Command="{Binding AllUseCommand}"/>
</Grid>
<uc:NumericPad2 x:Name="PointPad"
Grid.Column="1"
Grid.Row="7"
Width="370"
Height="370"
Formated="False"
NormalBrush="White"
DownBrush="DarkGray"
TextForeground="Black"
CancelNormalBrush="DarkRed"
CancelDownBrush="DarkGray"
CancelForeground="White"
ClickAnimationType="TextSizeUp"
Visibility="{Binding PointPadVisible,Converter={StaticResource ToVisibility}}"
MaxLength="{Binding PointPadMaxLength}"
GuidText="{Binding PointPadGuidText}"
CancelLanguageText="{Binding PointPadCancelText}"
InputText="{Binding InputPoints,Mode=TwoWay}"
DisplayLanguage="{Binding ShowLanguageType}"
BorderThickness="4"
BorderBrush="Black"
/>
</Grid>
<uc:MutiLanguageTextBlock x:Name="InfoGuid3"
Grid.Row="4"
VerticalAlignment="Center"
Foreground="Black"
FontSize="14"
FontWeight="Normal"
Margin="10,0,0,0"
Text="* 해피포인트 적립시 OK캐쉬백은 적립할 수 없습니다."
TextAlignment="Left"
MultiLanguage="{Binding InfoGuid3Text}"
DisplayLanguage="{Binding ShowLanguageType}"/>
<uc:MutiLanguageTextBlock x:Name="InfoGuid4"
Grid.Row="5"
VerticalAlignment="Center"
Foreground="Black"
FontSize="14"
FontWeight="Normal"
Margin="10,0,0,0"
Text="* 수집된 개인정보는 활용 후 자동 폐기 됩니다."
TextAlignment="Left"
MultiLanguage="{Binding InfoGuid4Text}"
DisplayLanguage="{Binding ShowLanguageType}"/>
</Grid>
<Grid Grid.Row="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<uc:AnimationButton x:Name="Cancel_Button2" Grid.Column="0"
VerticalAlignment="Center"
HorizontalAlignment="Center"
Width="380"
Height="60"
NormalBrush="Navy"
DownBrush="DarkGray"
BrushStretch = "Fill"
ClickAnimationType="TextSizeUp"
TextVisible ="Visible"
TextFontSize ="30"
TextForeground = "White"
TextFontWeight ="Black"
LanguageText="{Binding CancelButton2Text}"
DisplayLanguage="{Binding ShowLanguageType}"
Command="{Binding CancelCommand}"/>
<uc:AnimationButton x:Name="OK_Button2" Grid.Column="1"
VerticalAlignment="Center"
HorizontalAlignment="Center"
Width="380"
Height="60"
NormalBrush="Navy"
DownBrush="DarkGray"
Enabled="{Binding OKButton2Enabled}"
DisableBrush="LightGray"
BrushStretch = "Fill"
ClickAnimationType="TextSizeUp"
TextVisible ="Visible"
TextFontSize ="30"
TextForeground = "White"
DisableForeground="Black"
TextFontWeight ="Black"
LanguageText="{Binding OkButton2Text}"
DisplayLanguage="{Binding ShowLanguageType}"
Command="{Binding Ok2Command}"/>
</Grid>
</Grid>
</Grid>
</Window>