301 lines
17 KiB
XML
301 lines
17 KiB
XML
<Window x:Class="SPC.Kiosk.Popup.HappyPointCoupon"
|
|
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:VmHappyPointCoupon/>
|
|
</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="해피앱 My쿠폰"
|
|
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="CouponStart" Grid.Column="1" Grid.Row="2"
|
|
Visibility="{Binding CouponStartVisible,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 CouponStartVisible}"
|
|
/>
|
|
<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="CouponUsing" Grid.Column="1" Grid.Row="2"
|
|
Visibility="{Binding CouponUsingVisible,Converter={StaticResource ToVisibility}}">
|
|
<local:HappyAppCoupons x:Name="CoupnDatas"
|
|
VerticalAlignment="Top"
|
|
HorizontalAlignment="Left"
|
|
Width="1140"
|
|
Height="390"
|
|
CouponData="{Binding HappyAppCoupons}"
|
|
Margin="40,70,0,0"
|
|
Command="{Binding CouponCommand}"/>
|
|
|
|
</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="CouponSuccess" Grid.Column="1" Grid.Row="2"
|
|
Visibility="{Binding CouponSuccessVisible,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>
|