using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Windows.Threading;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Input;
using System.Globalization;
using SPC.Kiosk.Base;
using Cosmos.BaseFrame;
namespace SPC.Kiosk.Common
{
public static class CommonValue
{
///
/// PB Design Image Store Path
///
public static string PBdesignImagesPath { get; set; } = @"Kiosk\PB";
///
/// Intro Media Path
///
public static string IntroMediaPath { get; set; } = @"Screen";
///
/// Sign Save Width
///
public static int SignWidth { get; set; } = 128;
///
/// Sign Save Height
///
public static int SignHeight { get; set; } = 64;
///
/// Presave Sign File Name
///
public static string SignFileName { get; set; } = "SIGN.BMP";
///
/// Sign Poinnts Min
///
public static long SingPointsMin { get; set; } = 30L;
///
/// Sign Points Max Limit
///
public static long SingPointsMax { get; set; } = 2048L;
///
/// No Sign Amonut Limit
///
public static double NoSignAmountMaxLimit { get; set; } = 50000d;
///
/// AiScanner Program Path
///
public static string AiScannerPath { get; set; } = "O2AiScannerHS.exe";
///
/// Payments EndType
///
public static PaymentEndWindowEndType PaymentEndType { get; set; } = PaymentEndWindowEndType.Bell;
///
/// Payments Disable EndType
///
public static PaymentEndWindowEndType DisableEndType { get; set; } = PaymentEndWindowEndType.Talk;
///
/// Input Wait Time Out Seconds
///
public static double TimeOutSeconds { get; set; } = 30d;
///
/// Display Language
///
public static SupportLanguageType CommonLanguageType { get; set; } = SupportLanguageType.ko;
public static string CashReceiptDefaultNo { get; set; } = "0100001234";
///
/// check Touch Device Exist
///
public static bool IsHasTouchDevice
{
get
{
return Tablet.TabletDevices.OfType().Any(t => t.Type.Equals(TabletDeviceType.Touch));
}
}
///
/// check Mouse Exist
///
public static bool IsHasMouse
{
get
{
return Mouse.PrimaryDevice != null;
}
}
///
/// Default Item Image
///
public static string ItemDefaultImage
{
get
{
return ResourceManager.GetNximagePathAdd("img_contents_default.png", CommonValue.PBdesignImagesPath);
}
}
public static string OptionDefaultImage
{
get
{
return ResourceManager.GetNximagePathAdd("ic_option_takein.png", CommonValue.PBdesignImagesPath);
}
}
///
/// Log 파일 시작명 '명칭_YYYMMDD.log'
///
public static string LogName { get; set; } = @"KioskPB";
///
/// Log 보관 기한
///
public static int LogSaveDays { get; set; } = 30;
///
/// Log Setting
///
public static Log_Setting KioskLogSetting
{
get
{
return new Log_Setting
{
LogPath = Path.Combine(BaseCom.NxBinPath ,@"Kiosk"),
LogName = LogName,
LogFrom = new string[] { LogName },
LogDates = LogSaveDays,
LogType = new Log_Type[] { Log_Type.Info,Log_Type.Error,Log_Type.Debug }
};
}
}
}
}