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

326 lines
19 KiB
XML

<Window x:Class="SPC.Kiosk.Popup.PaymentProcess"
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" />
</Window.Resources>
<Window.DataContext>
<vm:VmPaymentProcess/>
</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 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" />
<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="PaymentStart" Grid.Column="1" Grid.Row="2"
Visibility="{Binding PaymentStartVisible,Converter={StaticResource ToVisibility}}">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="41*"/>
<ColumnDefinition Width="309*"/>
<ColumnDefinition Width="260*"/>
</Grid.ColumnDefinitions>
<TextBox x:Name="BarCode"
TextAlignment="Center"
VerticalAlignment="Center"
FontSize="10"
Foreground="White"
Focusable="True"
BorderThickness="0"
Margin="0,325,0,341"
IsEnabled="{Binding CertifyStartVisible}" Grid.ColumnSpan="3"
/>
<uc:MediaPlayer x:Name="TitileImage"
VerticalAlignment="Center"
HorizontalAlignment="Center"
Width="660"
Height="480"
Margin="198,130,280,70"
RepeatMedia="True"
MediaFile="{Binding TitileImage}" Grid.ColumnSpan="2" Grid.Column="1"/>
<uc:MutiLanguageTextBlock x:Name="ShowBarCode"
VerticalAlignment="Bottom"
Width="706"
Background="White"
Foreground="Black"
FontSize="24"
TextAlignment="Center"
HorizontalAlignment="Center"
Text="{Binding FormatedBarCode}"
Margin="175,0,257,16" Grid.ColumnSpan="2" Grid.Column="1"
/>
</Grid>
<Grid x:Name="ReadSign" Grid.Column="1" Grid.Row="2"
Visibility="{Binding ReadSignVisible,Converter={StaticResource ToVisibility}}">
<Grid VerticalAlignment="Center" HorizontalAlignment="Center">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="10"/>
<ColumnDefinition Width="960"/>
<ColumnDefinition Width="10"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="10"/>
<RowDefinition Height="512"/>
<RowDefinition Height="10"/>
</Grid.RowDefinitions>
<Border Grid.Column="0" Grid.ColumnSpan="3"
Grid.Row="0" Grid.RowSpan="3"
CornerRadius="5"
Background="#dddddd"
BorderBrush="#dddddd" BorderThickness="0" />
<uc:SignPad Grid.Column="1"
Grid.Row="1"
Width="960"
Height="512"
BrushColor ="Black"
BackgroundColor="White"
BrushSize="8"
UseableSign="{Binding UseableSign,Mode=OneWayToSource}"
SavedFile="{Binding SignFile, Mode=OneWayToSource}"
SignData="{Binding SignData, Mode=OneWayToSource}"
SignEnd ="{Binding SignEnd, Mode=TwoWay}"
SignReset ="{Binding SignReset, Mode=TwoWay}"
/>
</Grid>
</Grid>
<Grid x:Name="PaymentProcessing" Grid.Column="1" Grid.Row="2"
Visibility="{Binding PaymentProcessingVisible,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="Top"
Foreground="Black"
FontSize="42"
FontWeight="Bold"
TextAlignment="Center"
FontFamily="NanumSquare"
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="PaymentSuccess" Grid.Column="1" Grid.Row="2"
Visibility="{Binding PaymentSuccessVisible,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="SuccessImage"
Grid.Row="1"
Width="130"
Height="130"
NormalBrush="{Binding SuccessImage}"/>
<uc:MutiLanguageTextBlock x:Name="SuccessText"
Grid.Row="3"
Text="정상처리 되었습니다."
VerticalAlignment="Top"
Foreground="Black"
FontSize="42"
FontWeight="Bold"
FontFamily="NanumSquare"
TextAlignment="Center"
MultiLanguage="{Binding SuccessText}"
DisplayLanguage="{Binding ShowLanguageType}" />
</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="* 인증시 해피포인트가 자동 적립됩니다."
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>