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

445 lines
27 KiB
Plaintext
Raw Normal View History

2019-06-16 05:12:09 +00:00
<Window x:Class="SPC.Kiosk.Popup.HappyPointUsing"
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" />
</Window.Resources>
<Window.DataContext>
<vm:VmHappyPointUsing/>
</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="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"
Margin="0,0,0,16"
IsEnabled="{Binding CertifyStartVisible}"
/>
<uc:MediaPlayer x:Name="ScanInfoGIF"
VerticalAlignment="Center"
HorizontalAlignment="Center"
Width="660"
Height="480"
Margin="0,60,0,0"
RepeatMedia="True"
MediaFile="{Binding TitileImage}"/>
<uc:MutiLanguageTextBlock x:Name="ShowBarCode"
VerticalAlignment="Bottom"
Width="706"
Background="White"
Foreground="Black"
FontSize="24"
TextAlignment="Center"
HorizontalAlignment="Center"
Text="{Binding FormatedBarCode}"
Margin="0,0,0,16"
/>
</Grid>
<Grid x:Name="PointUsing" Grid.Column="1" Grid.Row="2"
Visibility="{Binding PointUsingVisible,Converter={StaticResource ToVisibility}}">
<Grid.RowDefinitions>
<RowDefinition Height="60"/>
<RowDefinition Height="40"/>
<RowDefinition Height="82"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="706"/>
<ColumnDefinition Width="514"/>
</Grid.ColumnDefinitions>
<Border Grid.Column="1" Grid.Row="1" Grid.RowSpan="3" BorderBrush="#dddddd" BorderThickness="1,0,0,0" />
<Grid Grid.Column="0" Grid.Row="0" Grid.RowSpan="4">
<uc:AnimationButton x:Name="PointImage" Grid.Row="0"
VerticalAlignment="Top"
HorizontalAlignment="Center"
Width="345"
Height="345"
NormalBrush="{Binding PointImage}"
BrushStretch = "Fill"
TextVisible ="Collapsed"
Margin="0,245,43,0"/>
</Grid>
<Grid Grid.Column="0" Grid.Row="0" Grid.RowSpan="3">
<Grid x:Name="PointsInfo" Width="620" HorizontalAlignment="Left">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="52"/>
<ColumnDefinition Width="52"/>
<ColumnDefinition Width="516"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="60"/>
<RowDefinition Height="60"/>
<RowDefinition Height="60"/>
</Grid.RowDefinitions>
<uc:AnimationButton Grid.Column="1" Grid.Row="1"
VerticalAlignment="Top"
HorizontalAlignment="Left"
Width="38"
Height="38"
NormalBrush="{Binding WonIconImage}"
BrushStretch = "Fill"
TextVisible ="Collapsed"
Margin="0,0,0,0"/>
<uc:MutiLanguageTextBlock
Grid.Column="2" Grid.Row="1"
VerticalAlignment="Top"
Text="최종 결제금액"
FontFamily="NanumSquare"
Foreground="Black"
FontSize="30"
FontWeight="Bold"
TextAlignment="Left"
Margin="0,4,0,0"
MultiLanguage="{Binding TotalPayHeaderText}"
DisplayLanguage="{Binding ShowLanguageType}"/>
<uc:MutiLanguageTextBlock
Grid.Column="2" Grid.Row="1"
VerticalAlignment="Top"
Text="{Binding Payments,ConverterParameter='#,##0',Converter={StaticResource ToString}}"
FontFamily="NanumSquare"
Foreground="Black"
FontSize="35"
FontWeight="Bold"
TextAlignment="Right"
Margin="0,0,0,0"/>
<uc:MutiLanguageTextBlock
Grid.Column="2" Grid.Row="2"
VerticalAlignment="Top"
Text="보유 포인트"
FontFamily="NanumSquare"
Foreground="#1469cc"
FontSize="27"
FontWeight="Bold"
TextAlignment="Left"
Margin="0,0,0,0"
MultiLanguage="{Binding QueryPointsHeaderText}"
DisplayLanguage="{Binding ShowLanguageType}"/>
<uc:MutiLanguageTextBlock
Grid.Column="2" Grid.Row="2"
VerticalAlignment="Top"
Text="{Binding QueryPoints,ConverterParameter='#,##0',Converter={StaticResource ToString}}"
FontFamily="NanumSquare"
Foreground="#1469cc"
FontSize="32"
FontWeight="Bold"
TextAlignment="Right"
Margin="0,0,0,0"/>
</Grid>
</Grid>
<uc:MutiLanguageTextBlock x:Name="NumPadInput"
Grid.Column="2" Grid.Row="2"
VerticalAlignment="Top"
Text="{Binding Path=ShowText ,ElementName=PointNumPad}"
FontFamily="NanumSquare"
Foreground="#1469cc"
FontSize="35"
FontWeight="Bold"
TextAlignment="Right"
Margin="230,16,50,0"
Visibility="{Binding NumPadInputVisible,Converter={StaticResource ToVisibility}}"
/>
<uc:MutiLanguageTextBlock x:Name="NumPadGuide"
Grid.Column="2" Grid.Row="2"
VerticalAlignment="Top"
Text="{Binding Path=ShowText ,ElementName=PointNumPad}"
FontFamily="NanumSquare"
Foreground="#555555"
FontSize="24"
FontWeight="Normal"
TextAlignment="Right"
Margin="230,21,50,0"
Visibility="{Binding NumPadGuideVisible,Converter={StaticResource ToVisibility}}"/>
<uc:AnimationButton Grid.Column="2" Grid.Row="2"
VerticalAlignment="Top"
HorizontalAlignment="Left"
Width="140"
Height="50"
NormalBrush="{Binding AllUseNoramlBrush}"
SwitchOnBrush="{Binding AllUseSwitchOnBrush}"
ClickAnimationType="SizeDown"
BrushStretch = "Fill"
TextVisible="Visible"
Text="모두사용"
TextFontFamily="NanumSquare"
TextForeground="#1469cc"
TextFontSize="24"
TextFontWeight="ExtraBold"
SwitchOnForeground="White"
SwitchOnFontSize="24"
SwitchOnFontWeight="ExtraBold"
TextAlignment="Center"
Margin="90,11,0,0"
Switch="{Binding AllUseSwitch}"
LanguageText="{Binding AllUseButtonText}"
DisplayLanguage="{Binding ShowLanguageType}"
Command="{Binding AllUseCommand}"/>
<local:PBNumericPad x:Name="PointNumPad"
Grid.Column="2"
Grid.Row="3"
VerticalAlignment="Top"
HorizontalAlignment="Left"
Width="420"
Height="472"
Formated="False"
IsPassWord="False"
MaxLength="{Binding PointPadMaxLength}"
GuidText="{Binding PointPadGuidText}"
InputText="{Binding InputPoints,Mode=TwoWay}"
DisplayLanguage="{Binding ShowLanguageType}"
Margin="67,0,0,0"
/>
</Grid>
<Grid x:Name="Processing" Grid.Column="1" Grid.Row="2"
Visibility="{Binding ProcessingVisible,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="CertifySuccess" Grid.Column="1" Grid.Row="2"
Visibility="{Binding CertifySuccessVisible,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>