spc-kiosk-pb/Kiosk/Popup/SPC.Kiosk.Popup/OkCashBagCertify.xaml
2019-06-16 14:12:09 +09:00

299 lines
18 KiB
XML

<Window x:Class="SPC.Kiosk.Popup.OkCashBagCertify"
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="810" d:DesignWidth="760"
ShowInTaskbar="False"
Topmost="True"
WindowStyle="None"
WindowState="Normal"
AllowsTransparency="True"
Background="Transparent">
<Window.DataContext>
<vm:VmOkCashBagCertify/>
</Window.DataContext>
<Window.InputBindings>
<KeyBinding Modifiers="Alt" Key="F4" Command="{Binding ToExecuteNothing}" />
</Window.InputBindings>
<Window.Resources>
<uc:BoolToVisibility x:Key="ToVisibility" />
<uc:BoolToUnvisibility x:Key="ToUnvisibility" />
</Window.Resources>
<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 x:Name="FrameData" 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="*"/>
<RowDefinition Height="80"/>
</Grid.RowDefinitions>
<Border Grid.Column="1" Grid.Row="1" BorderBrush="#dddddd" BorderThickness="0,0,0,1" />
<StackPanel Grid.Column="1" Grid.Row="0" Orientation="Horizontal" VerticalAlignment="Top" Margin="0,44,0,0">
<uc:MutiLanguageTextBlock x:Name="Header"
Foreground="#1469cc"
FontSize="44"
FontWeight="ExtraBold"
TextAlignment="Left"
FontFamily="NanumSquare"
Text="OK CashBag 회원인증"
MultiLanguage="{Binding HeaderText}"
DisplayLanguage="{Binding ShowLanguageType}"
/>
</StackPanel>
<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="CertifyStart" Grid.Column="1" Grid.Row="2"
Visibility="{Binding CertifyStartVisible,Converter={StaticResource ToVisibility}}">
<TextBox x:Name="BarCode"
TextAlignment="Center"
VerticalAlignment="Center"
FontSize="10"
Foreground="White"
Focusable="True"
BorderThickness="0"
IsEnabled="{Binding CertifyStartVisible}"
/>
<uc:MutiLanguageTextBlock x:Name="ShowBarCode"
Width="340"
Background="White"
Foreground="Black"
FontSize="24"
TextAlignment="Center"
VerticalAlignment="Center"
HorizontalAlignment="Center"
Text="{Binding FormatedBarCode}"
/>
<!--스캔이미지-->
<uc:MediaPlayer x:Name="ScanInfoGIF"
VerticalAlignment="Center"
HorizontalAlignment="Center"
Width="660"
Height="480"
RepeatMedia="True"
MediaFile="{Binding BarcodeScanImage}"
/>
</Grid>
<Grid x:Name="CertifyProcessing" Grid.Column="1" Grid.Row="2"
Visibility="{Binding CertifyProcessingVisible,Converter={StaticResource ToVisibility}}">
<Grid.RowDefinitions>
<RowDefinition Height="170"/>
<RowDefinition Height="130"/>
<RowDefinition Height="75"/>
<RowDefinition Height="2*"/>
<RowDefinition Height="1*"/>
<RowDefinition Height="135"/>
</Grid.RowDefinitions>
<uc:MediaPlayer x:Name="ProcessingImage"
Grid.Row="1"
HorizontalAlignment="Center"
Width="130"
Height="130"
RepeatMedia="True"
MediaFile="{Binding ProcessingGIF}"/>
<uc:MutiLanguageTextBlock x:Name="Message1"
Grid.Row="3"
Text="처리중..."
VerticalAlignment="Center"
Foreground="Black"
FontSize="40"
FontWeight="Bold"
TextAlignment="Center"
MultiLanguage="{Binding ProcessingMessageText}"
DisplayLanguage="{Binding ShowLanguageType}" />
<uc:MutiLanguageTextBlock x:Name="ProcessingGuide"
Grid.Row="4"
Text="화면 상태가 지속되면 직원을 호출 하세요."
VerticalAlignment="Bottom"
Foreground="#1469cc"
FontSize="30"
FontWeight="Normal"
TextAlignment="Center"
FontFamily="NanumSquare"
MultiLanguage="{Binding ProcessingGuide}"
DisplayLanguage="{Binding ShowLanguageType}" />
</Grid>
<Grid x:Name="ProcessingError" Grid.Column="1" Grid.Row="2"
Visibility="{Binding ProcessingErrorVisible,Converter={StaticResource ToVisibility}}">
<Grid.RowDefinitions>
<RowDefinition Height="170"/>
<RowDefinition Height="130"/>
<RowDefinition Height="75"/>
<RowDefinition Height="2*"/>
<RowDefinition Height="1*"/>
<RowDefinition Height="135"/>
</Grid.RowDefinitions>
<uc:AnimationButton x:Name="ErrorImage"
Grid.Row="1"
Width="130"
Height="130"
NormalBrush="{Binding ErrorImage}"
/>
<uc:MutiLanguageTextBlock x:Name="ErrorText"
Grid.Row="3"
Text="에러 메세지"
VerticalAlignment="Top"
Foreground="Black"
FontSize="42"
FontWeight="Bold"
FontFamily="NanumSquare"
TextAlignment="Center"
BlinkText="{Binding IsErrorBlink}"
MultiLanguage="{Binding ErrorText}"
DisplayLanguage="{Binding ShowLanguageType}" />
<uc:MutiLanguageTextBlock x:Name="ErrorGuide"
Grid.Row="4"
Text="화면 상태가 지속되면 직원을 호출 하세요."
VerticalAlignment="Bottom"
Foreground="#1469cc"
FontSize="30"
FontWeight="Normal"
TextAlignment="Center"
FontFamily="NanumSquare"
MultiLanguage="{Binding ErrorGuide}"
DisplayLanguage="{Binding ShowLanguageType}" />
</Grid>
<Grid x:Name="CertifySuccess" Grid.Column="1" Grid.Row="2"
Visibility="{Binding CertifySuccessVisible,Converter={StaticResource ToVisibility}}">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="500"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="10"/>
<RowDefinition Height="80"/>
<RowDefinition Height="120"/>
<RowDefinition Height="10"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Border Grid.Column="1" Grid.Row="1" BorderBrush="Gray" BorderThickness="0,2,0,0"/>
<Border Grid.Column="1" Grid.Row="4" BorderBrush="Gray" BorderThickness="0,0,0,2"/>
<uc:MutiLanguageTextBlock x:Name="MemberPointsHeader"
Grid.Column="1"
Grid.Row="2"
Text="사용 가능 포인트"
Foreground="Black"
FontSize="60"
FontWeight="Bold"
TextAlignment="Center"
MultiLanguage="{Binding MemberPointsHeaderText}"
DisplayLanguage="{Binding ShowLanguageType}" />
<uc:MutiLanguageTextBlock x:Name="WaitNumber"
Grid.Column="1"
Grid.Row="3"
Text="{Binding MemberPointsText}"
Foreground="Black"
FontSize="65"
FontWeight="Black"
TextAlignment="Center"/>
</Grid>
<StackPanel Grid.Column="1"
Grid.Row="3"
Orientation="Vertical"
VerticalAlignment="Center">
<uc:MutiLanguageTextBlock x:Name="InfoGuid1"
Width="1260"
HorizontalAlignment="Left"
Foreground="#cc1473"
FontFamily="NanumSquare"
FontSize="20"
FontWeight="Bold"
Margin="0,0,0,0"
Text="* 인증시 OK 캐시백 포인트가 자동 적립됩니다."
TextAlignment="Left"
MultiLanguage="{Binding InfoGuid1Text}"
DisplayLanguage="{Binding ShowLanguageType}"
/>
<uc:MutiLanguageTextBlock x:Name="InfoGuid2"
Width="1260"
AutoTextTrim="True"
HorizontalAlignment="Left"
Foreground="#cc1473"
FontFamily="NanumSquare"
FontSize="20"
FontWeight="Bold"
Margin="0,0,0,0"
Text="* 수집된 개인정보는 활용 후 자동 폐기 됩니다."
TextAlignment="Left"
MultiLanguage="{Binding InfoGuid2Text}"
DisplayLanguage="{Binding ShowLanguageType}"
/>
</StackPanel>
</Grid>
<StackPanel x:Name="ButtonStack" Grid.Row="1"
Orientation="Horizontal">
<uc:AnimationButton x:Name="Cancel_Button"
VerticalAlignment="Center"
HorizontalAlignment="Left"
Width="{Binding CancelButtonWidth}"
Height="80"
NormalBrush="#333333"
BrushStretch = "Fill"
ClickAnimationType="TextSizeDown"
TextFontFamily="NanumSquare"
TextVisible ="Visible"
TextFontSize ="30"
TextForeground = "White"
TextFontWeight ="Bold"
LanguageText="{Binding CancelButtonText}"
DisplayLanguage="{Binding ShowLanguageType}"
Command="{Binding CancelCommand}"/>
<uc:AnimationButton x:Name="OK_Button"
VerticalAlignment="Center"
HorizontalAlignment="Right"
Width="{Binding OKButtonWidth}"
Height="80"
NormalBrush="#1469cc"
BrushStretch = "Fill"
DisableBrush="#aaaaaa"
ClickAnimationType="TextSizeUp"
TextVisible ="Visible"
TextFontSize ="30"
TextForeground = "White"
DisableForeground="#dddddd"
TextFontWeight ="Bold"
Enabled="{Binding OKButtonEnabled}"
LanguageText="{Binding OkButtonText}"
DisplayLanguage="{Binding ShowLanguageType}"
Command="{Binding OkCommand}"/>
</StackPanel>
</Grid>
</Grid>
</Window>