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

613 lines
38 KiB
Plaintext
Raw Normal View History

2019-06-16 05:12:09 +00:00
<Window x:Class="SPC.Kiosk.Popup.HappyPointCertify"
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:BoolToUnvisibility x:Key="ToUnvisibility" />
<uc:NumericToString x:Key="ToString" />
<uc:NumericExistToVisibility x:Key="ExistToVisibility" />
<uc:CodeToMultiLanguage x:Key="ToMultiLanguage"/>
</Window.Resources>
<Window.DataContext>
<vm:VmHappyPointCertify/>
</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="0" Grid.Row="2" Grid.ColumnSpan="3"
Visibility="{Binding CertifyStartVisible,Converter={StaticResource ToVisibility}}">
<Grid HorizontalAlignment="Center">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="746*"/>
<ColumnDefinition Width="554*"/>
</Grid.ColumnDefinitions>
<Grid Grid.Column="0"
Visibility="{Binding ShowPhoneInput,Converter={StaticResource ToUnvisibility}}">
<TextBox x:Name="BarCode"
TextAlignment="Center"
VerticalAlignment="Center"
Width="400"
FontSize="10"
Foreground="White"
Focusable="True"
BorderThickness="0"
Margin="0,0,0,16"
IsEnabled="{Binding CertifyStartVisible}"
/>
<uc:MutiLanguageTextBlock x:Name="ShowBarCode"
Grid.Row="0"
Visibility="Collapsed"
VerticalAlignment="Top"
Width="666"
Background="White"
Foreground="Black"
FontSize="24"
TextAlignment="Center"
HorizontalAlignment="Center"
Text="{Binding FormatedBarCode}"
Margin="0,0,0,16"
/>
<StackPanel Orientation="Vertical">
<uc:MediaPlayer x:Name="ScanInfoGIF"
VerticalAlignment="Top"
Width="500"
Height="400"
Margin="83,105,83,0"
RepeatMedia="True"
MediaFile="{Binding TitileImage}"/>
<Grid x:Name="HappyPointRegisterInfo" Width="666" Height="120"
VerticalAlignment="Top" Margin="0,55,0,0" Background="#f5f5f5">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="30"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="30"/>
<ColumnDefinition Width="80"/>
<ColumnDefinition Width="30"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="20"/>
<RowDefinition Height="29"/>
<RowDefinition Height="*"/>
<RowDefinition Height="20"/>
</Grid.RowDefinitions>
<uc:MutiLanguageTextBlock x:Name="HappyinfoHeader"
Grid.Column="1"
Grid.Row="1"
VerticalAlignment="Top"
HorizontalAlignment="Left"
Foreground="#1469cc"
FontSize="24"
TextAlignment="Left"
FontWeight="Bold"
FontFamily="NanumSquare"
Text="아직도 해피포인트 회원이 아니세요!!"
Margin="0,0,0,0"
MultiLanguage="{Binding ConverterParameter='LBL0073', Converter={StaticResource ToMultiLanguage}}"
DisplayLanguage="{Binding ShowLanguageType}"/>
<uc:MutiLanguageTextBlock x:Name="HappyinfoDetail"
Grid.Column="1"
Grid.Row="2"
VerticalAlignment="Center"
HorizontalAlignment="Left"
Foreground="#555555"
FontSize="14"
TextAlignment="Left"
FontWeight="Normal"
FontFamily="NanumSquare"
TextWrapping="Wrap"
Text="전국 6천여 개의 매장(파리바게뜨,베스킨라빈스,던킨도너츠 등)에서 포인트를 적립/사용할 수 있고, 각종 이벤트에 참여 하실 수 있습니다."
Margin="0,0,0,0"
MultiLanguage="{Binding ConverterParameter='LBL0089', Converter={StaticResource ToMultiLanguage}}"
DisplayLanguage="{Binding ShowLanguageType}"/>
<uc:AnimationButton x:Name="ImageQRiOs"
Grid.Row="1"
Grid.Column="3"
Grid.RowSpan="2"
Width="80"
Height="80"
NormalBrush="{Binding ImageQR}"/>
</Grid>
</StackPanel>
</Grid>
<Grid Grid.Column="1"
Visibility="{Binding ShowPhoneInput,Converter={StaticResource ToVisibility}}">
<Grid.RowDefinitions>
<RowDefinition Height="60"/>
<RowDefinition Height="40"/>
<RowDefinition Height="82"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<uc:MutiLanguageTextBlock x:Name="NumPadInput"
Grid.Row="2"
VerticalAlignment="Top"
Text="{Binding Path=ShowText ,ElementName=NumPad}"
FontFamily="NanumSquare"
Foreground="#1469cc"
FontSize="35"
FontWeight="Bold"
TextAlignment="Center"
Margin="0,16,0,0"
Visibility="{Binding NumPadInputVisible,Converter={StaticResource ToVisibility}}"
/>
<uc:MutiLanguageTextBlock x:Name="NumPadGuide"
Grid.Row="2"
VerticalAlignment="Top"
Text="{Binding Path=ShowText ,ElementName=NumPad}"
FontFamily="NanumSquare"
Foreground="#555555"
FontSize="24"
FontWeight="Normal"
TextAlignment="Center"
Margin="0,21,0,0"
Visibility="{Binding NumPadGuideVisible,Converter={StaticResource ToVisibility}}"
/>
<local:PBNumericPad x:Name="NumPad"
Grid.Row="3"
VerticalAlignment="Top"
HorizontalAlignment="Left"
Width="420"
Height="472"
Formated="True"
IsPassWord="False"
MaxLength="{Binding NumPadMaxLength}"
GuidText="{Binding NumPadGuidText}"
InputText="{Binding InputNumbers,Mode=TwoWay}"
DisplayLanguage="{Binding ShowLanguageType}"
Margin="10,0,0,0"
/>
</Grid>
</Grid>
<!--<uc:AnimationButton x:Name="SwitchPhone"
Width="400"
Height="40"
VerticalAlignment="Top"
HorizontalAlignment="Right"
BrushStretch = "Fill"
ClickAnimationType="TextSizeDown"
TextFontFamily="NanumSquare"
TextVisible ="Visible"
TextFontSize ="24"
TextForeground = "#1469cc"
TextFontWeight ="Bold"
Text="전화번호로 로그인 >>"
TextHorizontalAlignment="Right"
TextAlignment="Right"
Margin="0,10,40,0"
LanguageText="{Binding ShowPhoneButtonText}"
DisplayLanguage="{Binding ShowLanguageType}"
Command="{Binding SwitchPhoneCommand}"/>-->
<Grid Grid.Column="1" Grid.Row="1" Grid.RowSpan="2">
<Grid Margin="378,13,377,0" Height="60"
VerticalAlignment="Top"
Visibility="Visible">
<Grid.RowDefinitions>
<RowDefinition Height="2*"/>
<RowDefinition Height="99*"/>
</Grid.RowDefinitions>
<Grid.Background>
<ImageBrush ImageSource="{Binding CashReceipButtonBackground}"/>
</Grid.Background>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="255"/>
<ColumnDefinition Width="255"/>
<ColumnDefinition Width="0"/>
</Grid.ColumnDefinitions>
<!--바코드스캔 로그인-->
<uc:AnimationButton x:Name="BellButton"
Grid.Column="0"
VerticalAlignment="Top"
HorizontalAlignment="Left"
Width="210"
Height="60"
NormalBrush="{Binding CashTypePersonButtonNormal}"
DisableBrush="{Binding CashTypePersonButtonDisable}"
ClickAnimationType="SizeDown"
BrushStretch = "Fill"
TextVisible="Visible"
Text="바코드스캔 로그인"
TextFontFamily="NanumSquare"
TextForeground="#808080"
TextFontSize="20"
TextFontWeight="Bold"
DisableForeground="#1469cc"
DisableFontSize="20"
DisableWeight="ExtraBold"
TextHorizontalAlignment="Left"
TextAlignment="Left"
TextMargin="54,0,0,0"
Margin="30,2,0,-3"
Enabled="{Binding BellButtonEnable}"
LanguageText="{Binding BellButtonText}"
DisplayLanguage="{Binding ShowLanguageType}"
Command="{Binding BellButtonCommand}" Grid.Row="1"/>
<!--휴대폰 로그인-->
<uc:AnimationButton x:Name="TalkButton"
Grid.Column="1"
VerticalAlignment="Top"
HorizontalAlignment="Left"
Width="210"
Height="60"
NormalBrush="{Binding CashTypeCompanyButtonNormal}"
DisableBrush="{Binding CashTypeCompanyButtonDisable}"
ClickAnimationType="SizeDown"
BrushStretch = "Fill"
TextVisible="Visible"
Text="휴대폰 로그인"
TextFontFamily="NanumSquare"
TextForeground="#808080"
TextFontSize="20"
TextFontWeight="Bold"
DisableForeground="#1469cc"
DisableFontSize="20"
DisableWeight="ExtraBold"
TextHorizontalAlignment="Left"
TextAlignment="Left"
TextMargin="50,0,0,0"
Margin="18,2,0,-3"
Enabled="{Binding TalkButtonEnable}"
LanguageText="{Binding TalkButtonText}"
DisplayLanguage="{Binding ShowLanguageType}"
Command="{Binding TalkButtonCommand}" Grid.Row="1"/>
</Grid>
</Grid>
</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="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="{Binding TopGridMarginHeight}"/>
<RowDefinition Height="*"/>
<RowDefinition Height="{Binding MemberHistoryItemsGridHeight}"/>
</Grid.RowDefinitions>
<StackPanel Grid.Row="1"
Orientation="Horizontal"
HorizontalAlignment="Center"
VerticalAlignment="Top"
Margin="0,120,0,0">
<uc:AnimationButton x:Name="ImageUserType"
Width="80"
Height="80"
NormalBrush="{Binding ImageUserType}"/>
<StackPanel Orientation="Vertical"
VerticalAlignment="Center"
HorizontalAlignment="Left"
Margin="25,0,0,0">
<StackPanel Orientation="Horizontal"
Grid.Row="1"
VerticalAlignment="Top"
HorizontalAlignment="Left">
<uc:MutiLanguageTextBlock x:Name="MemberName"
Text="{Binding MemberNameText}"
VerticalAlignment="Top"
Foreground="#1469cc"
FontSize="36"
FontWeight="Bold"
FontFamily="NanumSquare"/>
<uc:MutiLanguageTextBlock x:Name="MemberNameLabel"
Text="님"
VerticalAlignment="Top"
Foreground="#555555"
FontSize="36"
FontWeight="Bold"
FontFamily="NanumSquare"/>
</StackPanel>
<uc:MutiLanguageTextBlock x:Name="GmbMemberNameLavel2"
Grid.Row="2"
Text="반갑습니다."
VerticalAlignment="Top"
HorizontalAlignment="Right"
Foreground="#555555"
FontSize="36"
FontWeight="Bold"
FontFamily="NanumSquare"
Margin="0,5,0,0"/>
</StackPanel>
</StackPanel>
<StackPanel Grid.Row="1"
Orientation="Horizontal"
HorizontalAlignment="Center"
VerticalAlignment="Top"
Margin="0,250,0,0">
<uc:MutiLanguageTextBlock x:Name="MemberPointsHeader"
Text="보유 포인트"
Foreground="Black"
FontSize="40"
FontWeight="Bold"
TextAlignment="Center"
VerticalAlignment="Center"
FontFamily="NanumSquare"
Margin="0,0,40,0"
MultiLanguage="{Binding MemberPointsHeaderText}"
DisplayLanguage="{Binding ShowLanguageType}" />
<uc:MutiLanguageTextBlock x:Name="PointsValue"
Text="{Binding MemberPointsText}"
Foreground="#1469cc"
FontSize="72"
FontWeight="Bold"
TextAlignment="Center"
VerticalAlignment="Center"
FontFamily="NanumSquare"/>
</StackPanel>
<uc:AnimationButton x:Name="BasketBackGround"
Grid.Row="2"
Width="1200"
Height="310"
NormalBrush="C:\SPC\POS\IMAGE\Kiosk\PB\basket_pop_bg2.png"/>
<uc:MutiLanguageTextBlock Grid.Row="2"
VerticalAlignment="Top"
HorizontalAlignment="Center"
Text="최근 주문내역입니다."
FontFamily="NanumSquare"
Foreground="Black"
FontSize="28"
FontWeight="Bold"
TextAlignment="Center"
Margin="0,20,0,0"/>
<uc:ButtonList x:Name="OrderHistory"
Grid.Row="2"
HorizontalAlignment="Left"
VerticalAlignment="Top"
Margin="30,70,0,0"
Width="1175"
Height="220"
StackOrientation="Horizontal"
TextPosition="Bottom"
ColumnCount="5"
RowCount="1"
ItemWidth="235"
ItemHeight="220"
DisplayLanguage="{Binding ShowLanguageType}"
ListItems="{Binding MemberHistoryItems}"
ClickSend="False"
MouseClicked="OrderHistory_MouseClicked" />
<Grid Grid.Row="2"
Visibility="{Binding MemberHistoryItems.Count, ConverterParameter=false, Converter={StaticResource ExistToVisibility}}" >
<uc:AnimationButton x:Name="BasketBackGround2"
Width="1200"
Height="310"
NormalBrush="C:\SPC\POS\IMAGE\Kiosk\PB\basket_pop_bg3.png"/>
<uc:MutiLanguageTextBlock Grid.Row="1"
VerticalAlignment="Top"
HorizontalAlignment="Center"
Text="최근 주문내역이 없습니다."
FontFamily="NanumSquare"
Foreground="#888888"
FontSize="21"
FontWeight="Normal"
TextAlignment="Center"
Margin="0,180,0,0"/>
</Grid>
</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>
<uc:AnimationButton x:Name="ChangeLanguage"
VerticalAlignment="Top"
HorizontalAlignment="Right"
Visibility="{Binding LanguageButttonVisibel,Converter={StaticResource ToVisibility}}"
Margin="0,44,40,0"
Width="70"
Height="70"
NormalBrush="{Binding LanguageButttonImage}"
ClickAnimationType="SizeDown"
/>
</Grid>
</Grid>
</Window>