1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- using Dfs.WayneChina.SinochemEps;
- using System;
- using System.Collections.Generic;
- using System.Configuration;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace SinochemInternetPlusApp
- {
- static class TimeoutValues
- {
- public static int GetValueInMilliSec(string strValueInSec, int defaultValueInSec)
- {
- try
- {
- return int.Parse(strValueInSec) * 1000;
- }
- catch(Exception ex)
- {
- return defaultValueInSec * 1000;
- }
- }
- public static int GetValueInSec(string strValueInSec, int defaultValueInSec)
- {
- try
- {
- return int.Parse(strValueInSec);
- }
- catch (Exception ex)
- {
- return defaultValueInSec;
- }
- }
- public static class FuelingPoint
- {
- public static readonly string Idle = SinochemEpsApp.AppSettings["__FP_Idle"];
- public static readonly string Shared_AuthorizePump = SinochemEpsApp.AppSettings["__FP_Shared_AuthorizePump"];
- public static readonly string Shared_WaitForPayableTrx = SinochemEpsApp.AppSettings["__FP_Shared_WaitForPayableTrx"];
- public static readonly string Shared_NotifyPOS = SinochemEpsApp.AppSettings["__FP_Shared_NotifyPOS"];
- public static readonly string Shared_PayTrx = SinochemEpsApp.AppSettings["__FP_Shared_PayTrx"];
- public static readonly string Shared_WaitForFueling = SinochemEpsApp.AppSettings["__FP_Shared_WaitForFueling"];
- public static readonly string CarPlateMode_CalculateMAC = SinochemEpsApp.AppSettings["__FP_CarPlateMode_CalculateMAC"];
- public static readonly string CarPlateMode_DisableICCardReader = SinochemEpsApp.AppSettings["__FP_CarPlateMode_DisableICCardReader"];
- public static readonly string CarPlateMode_Error = SinochemEpsApp.AppSettings["__FP_CarPlateMode_Error"];
- public static readonly string CarPlateMode_OpenCardReader = SinochemEpsApp.AppSettings["__FP_CarPlateMode_OpenCardReader"];
- public static readonly string CarPlateMode_SendPaymentResult = SinochemEpsApp.AppSettings["__FP_CarPlateMode_SendPaymentResult"];
- public static readonly string CarPlateMode_SendTrxDoneToCardReader = SinochemEpsApp.AppSettings["__FP_CarPlateMode_SendTrxDoneToCardReader"];
- public static readonly string CarPlateMode_SendTrxListFillingPaid = SinochemEpsApp.AppSettings["__FP_CarPlateMode_SendTrxListFillingPaid"];
- public static readonly string CarPlateMode_SendWelcomeScreen = SinochemEpsApp.AppSettings["__FP_CarPlateMode_SendWelcomeScreen"];
- public static readonly string CarPlateMode_ShowTrxListFueling = SinochemEpsApp.AppSettings["__FP_CarPlateMode_ShowTrxListFueling"];
- public static readonly string CarPlateMode_ShowTrxListPendingFueling = SinochemEpsApp.AppSettings["__FP_CarPlateMode_ShowTrxListPendingFueling"];
- public static readonly string CarPlateMode_ShowTrxListReadyForPay = SinochemEpsApp.AppSettings["__FP_CarPlateMode_ShowTrxListReadyForPay"];
- public static readonly string CarPlateMode_WaitForCardReaderBackToIdle = SinochemEpsApp.AppSettings["__FP_CarPlateMode_WaitForCardReaderBackToIdle"];
-
- public static readonly string ICCardMode_AbortTransaction = SinochemEpsApp.AppSettings["__FP_ICCardMode_AbortTransaction"];
- public static readonly string ICCardMode_CheckCardBalance = SinochemEpsApp.AppSettings["__FP_ICCardMode_CheckCardBalance"];
- public static readonly string ICCardMode_HandleExternalCheckFailure = SinochemEpsApp.AppSettings["__FP_ICCardMode_HandleExternalCheckFailure"];
- public static readonly string ICCardMode_HandleUserTimeout = SinochemEpsApp.AppSettings["__FP_ICCardMode_HandleUserTimeout"];
- public static readonly string ICCardMode_SendCalculateMacRequest = SinochemEpsApp.AppSettings["__FP_ICCardMode_SendCalculateMacRequest"];
- public static readonly string ICCardMode_SendCardBalanceToCardReader = SinochemEpsApp.AppSettings["__FP_ICCardMode_SendCardBalanceToCardReader"];
- public static readonly string ICCardMode_SendPaymentResult = SinochemEpsApp.AppSettings["__FP_ICCardMode_SendPaymentResult"];
- public static readonly string ICCardMode_SendTrxDoneToCardReader = SinochemEpsApp.AppSettings["__FP_ICCardMode_SendTrxDoneToCardReader"];
- public static readonly string ICCardMode_WaitForCardData = SinochemEpsApp.AppSettings["__FP_ICCardMode_WaitForCardData"];
- public static readonly string ICCardMode_WaitForCardEject = SinochemEpsApp.AppSettings["__FP_ICCardMode_WaitForCardEject"];
- public static readonly string ICCardMode_WaitForMacData = SinochemEpsApp.AppSettings["__FP_ICCardMode_WaitForMacData"];
- }
- public static class EpsTrxCleanup
- {
- public static readonly string WaitForWork = SinochemEpsApp.AppSettings["__ETC_WaitForWork"];
- }
- public static class Misc
- {
- public static readonly string BigScreenBackToIdle = SinochemEpsApp.AppSettings["__Misc_BigScreenBackToIdle"];
- }
- }
- }
|