12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- 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 = App.AppSettings["__FP_Idle"];
- public static readonly string Shared_AuthorizePump = App.AppSettings["__FP_Shared_AuthorizePump"];
- public static readonly string Shared_WaitForPayableTrx = App.AppSettings["__FP_Shared_WaitForPayableTrx"];
- public static readonly string Shared_NotifyPOS = App.AppSettings["__FP_Shared_NotifyPOS"];
- public static readonly string Shared_PayTrx = App.AppSettings["__FP_Shared_PayTrx"];
- public static readonly string Shared_WaitForFueling = App.AppSettings["__FP_Shared_WaitForFueling"];
- public static readonly string CarPlateMode_CalculateMAC = App.AppSettings["__FP_CarPlateMode_CalculateMAC"];
- public static readonly string CarPlateMode_DisableICCardReader = App.AppSettings["__FP_CarPlateMode_DisableICCardReader"];
- public static readonly string CarPlateMode_Error = App.AppSettings["__FP_CarPlateMode_Error"];
- public static readonly string CarPlateMode_OpenCardReader = App.AppSettings["__FP_CarPlateMode_OpenCardReader"];
- public static readonly string CarPlateMode_SendPaymentResult = App.AppSettings["__FP_CarPlateMode_SendPaymentResult"];
- public static readonly string CarPlateMode_SendTrxDoneToCardReader = App.AppSettings["__FP_CarPlateMode_SendTrxDoneToCardReader"];
- public static readonly string CarPlateMode_SendTrxListFillingPaid = App.AppSettings["__FP_CarPlateMode_SendTrxListFillingPaid"];
- public static readonly string CarPlateMode_SendWelcomeScreen = App.AppSettings["__FP_CarPlateMode_SendWelcomeScreen"];
- public static readonly string CarPlateMode_ShowTrxListFueling = App.AppSettings["__FP_CarPlateMode_ShowTrxListFueling"];
- public static readonly string CarPlateMode_ShowTrxListPendingFueling = App.AppSettings["__FP_CarPlateMode_ShowTrxListPendingFueling"];
- public static readonly string CarPlateMode_ShowTrxListReadyForPay = App.AppSettings["__FP_CarPlateMode_ShowTrxListReadyForPay"];
- public static readonly string CarPlateMode_WaitForCardReaderBackToIdle = App.AppSettings["__FP_CarPlateMode_WaitForCardReaderBackToIdle"];
-
- public static readonly string ICCardMode_AbortTransaction = App.AppSettings["__FP_ICCardMode_AbortTransaction"];
- public static readonly string ICCardMode_CheckCardBalance = App.AppSettings["__FP_ICCardMode_CheckCardBalance"];
- public static readonly string ICCardMode_HandleExternalCheckFailure = App.AppSettings["__FP_ICCardMode_HandleExternalCheckFailure"];
- public static readonly string ICCardMode_HandleUserTimeout = App.AppSettings["__FP_ICCardMode_HandleUserTimeout"];
- public static readonly string ICCardMode_SendCalculateMacRequest = App.AppSettings["__FP_ICCardMode_SendCalculateMacRequest"];
- public static readonly string ICCardMode_SendCardBalanceToCardReader = App.AppSettings["__FP_ICCardMode_SendCardBalanceToCardReader"];
- public static readonly string ICCardMode_SendPaymentResult = App.AppSettings["__FP_ICCardMode_SendPaymentResult"];
- public static readonly string ICCardMode_SendTrxDoneToCardReader = App.AppSettings["__FP_ICCardMode_SendTrxDoneToCardReader"];
- public static readonly string ICCardMode_WaitForCardData = App.AppSettings["__FP_ICCardMode_WaitForCardData"];
- public static readonly string ICCardMode_WaitForCardEject = App.AppSettings["__FP_ICCardMode_WaitForCardEject"];
- public static readonly string ICCardMode_WaitForMacData = App.AppSettings["__FP_ICCardMode_WaitForMacData"];
- }
- public static class EpsTrxCleanup
- {
- public static readonly string WaitForWork = App.AppSettings["__ETC_WaitForWork"];
- }
- public static class Misc
- {
- public static readonly string BigScreenBackToIdle = App.AppSettings["__Misc_BigScreenBackToIdle"];
- }
- }
- }
|