Пример #1
0
 public UpdateFuelPriceSerializeAction(IFuelPumpRestClient fuelPumpRestClient, int option, int counter)
     : base("UpdateFuelPrice")
 {
     _fuelPumpRestClient = fuelPumpRestClient;
     _option             = option;
     _counter            = counter;
 }
        public SaveBasePricesSerializeAction(IFuelPumpRestClient fuelPumpRestClient,
                                             ICacheManager cacheManager, FuelPrices prices) : base("SaveBasePrices")
        {
            _fuelPumpRestClient = fuelPumpRestClient;
            _cacheManager       = cacheManager;

            _contract = new FuelPricesContract
            {
                isReadTotalizerChecked   = prices.IsReadTotalizerChecked,
                isPricesToDisplayChecked = prices.IsPricesToDisplayChecked,
                isReadTankDipChecked     = prices.IsReadTankDipChecked,
                tillNumber = _cacheManager.TillNumberForSale,
                fuelPrices = (from f in prices.Prices
                              select new FuelPriceContract
                {
                    cashPrice = f.CashPrice,
                    creditPrice = f.CreditPrice,
                    grade = f.Grade,
                    gradeId = f.GradeId,
                    level = f.Level,
                    levelId = f.LevelId,
                    taxExemptedCashPrice = f.TaxExemptedCashPrice,
                    taxExemptedCreditPrice = f.TaxExemptedCreditPrice,
                    tier = f.Tier,
                    tierId = f.TierId,
                    row = f.Row
                }).ToList()
            };
        }
 public ReadTotalizerSerializeAction(IFuelPumpRestClient fuelPumpRestClient,
                                     ICacheManager cacheManager)
     : base("ReadTotalizer")
 {
     _fuelPumpRestClient = fuelPumpRestClient;
     _cacheManager       = cacheManager;
 }
 public UncompleteDeleteSerializeAction(IFuelPumpRestClient fuelPumpRestClient,
                                        ICacheManager cacheManager, int pumpId) : base("UncompleteDelete")
 {
     _pumpId             = pumpId;
     _fuelPumpRestClient = fuelPumpRestClient;
     _cacheManager       = cacheManager;
 }
 public VerifyGroupBasePricesSerializeAction(IFuelPumpRestClient fuelPumpRestClient,
                                             ICacheManager cacheManager,
                                             FuelPrices fuelPrices)
     : base("VerifyGroupBasePrices")
 {
     _fuelPumpRestClient = fuelPumpRestClient;
     _cacheManager       = cacheManager;
     _fuelPrices         = fuelPrices;
 }
Пример #6
0
 public LoadGradeSerializeAction(IFuelPumpRestClient fuelPumpRestClient,
                                 int pumpId, bool switchPrepay, int tillNumber)
     : base("LoadGrade")
 {
     _fuelPumpRestClient = fuelPumpRestClient;
     _pumpId             = pumpId;
     _switchPrepay       = switchPrepay;
     _tillNumber         = tillNumber;
 }
 public SetBasePriceSerializeAction(IFuelPumpRestClient fuelPumpRestClient,
     ICacheManager cacheManager,
     Price fuelPrice)
     : base("SetBasePrice")
 {
     _fuelPumpRestClient = fuelPumpRestClient;
     _cacheManager = cacheManager;
     _fuelPrice = fuelPrice;
 }
 public GetPumpActionSerializeAction(IFuelPumpRestClient fuelPumpRestClient,
                                     int pumpId, bool isStopPressed, bool isResumePressed)
     : base("GetPumpAction")
 {
     _fuelPumpRestClient = fuelPumpRestClient;
     _pumpId             = pumpId;
     _isStopPressed      = isStopPressed;
     _isResumePressed    = isResumePressed;
 }
Пример #9
0
 public InitializeFuelPumpSerializeAction(IFuelPumpRestClient fuelPumpRestClient,
                                          bool isInitializingPump,
                                          int tillNumber)
     : base("InitializeFuelPump")
 {
     _fuelPumpRestClient = fuelPumpRestClient;
     _isInitializingPump = isInitializingPump;
     _tillNumber         = tillNumber;
 }
 public LoadPricesSerializeAction(IFuelPumpRestClient fuelPumpRestClient,
                                  ICacheManager cacheManager,
                                  bool grouped)
     : base("LoadPrices")
 {
     _fuelPumpRestClient = fuelPumpRestClient;
     _cacheManager       = cacheManager;
     _grouped            = grouped;
 }
 public UpdateTierLevelSerializeAction(IFuelPumpRestClient fuelPumpRestClient,
                                       List <int> pumpIds, int tierId, int levelId) : base("UpdateTierLevel")
 {
     _fuelPumpRestClient      = fuelPumpRestClient;
     _updateTierLevelContract = new UpdateTierLevelContract
     {
         pumpIds = pumpIds,
         levelId = levelId,
         tierId  = tierId
     };
 }
Пример #12
0
 public GetFuelVolumeSerializeAction(IFuelPumpRestClient fuelPumpRestClient,
                                     ICacheManager cacheManager, int gradeId, int pumpId, string propaneValue) : base("GetFuelVolume")
 {
     _fuelPumpRestClient = fuelPumpRestClient;
     _addPropane         = new AddPropane
     {
         gradeId        = gradeId,
         propaneValue   = propaneValue,
         pumpId         = pumpId,
         registerNumber = cacheManager.RegisterNumber,
         saleNumber     = cacheManager.SaleNumber,
         tillNumber     = cacheManager.TillNumber
     };
 }
Пример #13
0
 public DeletePrepaySerializeAction(IFuelPumpRestClient fuelPumpRestClient,
                                    ICacheManager cacheManager, int activePump)
     : base("DeletePrepay")
 {
     _fuelPumpRestClient = fuelPumpRestClient;
     _cacheManager       = cacheManager;
     _addPrepayContract  = new DeletePrepayContract
     {
         activePump     = activePump,
         registerNumber = _cacheManager.RegisterNumber,
         saleNumber     = _cacheManager.SaleNumber,
         shiftNumber    = _cacheManager.ShiftNumber,
         tillNumber     = _cacheManager.TillNumber
     };
 }
Пример #14
0
        public AddBasketSerializeAction(IFuelPumpRestClient fuelPumpRestClient,
                                        ICacheManager cacheManager, int activePump, string basketValue) : base("AddBasket")
        {
            _fuelPumpRestClient = fuelPumpRestClient;
            _cacheManager       = cacheManager;

            _addBasketContract = new AddBasketContract
            {
                activePump     = activePump,
                basketValue    = basketValue,
                saleNumber     = _cacheManager.SaleNumber,
                tillNumber     = _cacheManager.TillNumber,
                registerNumber = _cacheManager.RegisterNumber
            };
        }
Пример #15
0
        public SwitchPrepaySerializeAction(IFuelPumpRestClient fuelPumpRestClient,
                                           ICacheManager cacheManager, int activePump, int newPumpId)
            : base("SwitchPrepay")
        {
            _fuelPumpRestClient = fuelPumpRestClient;
            _cacheManager       = cacheManager;

            _switchPrepayContract = new SwitchPrepayContract
            {
                activePump = activePump,
                newPumpId  = newPumpId,
                saleNumber = _cacheManager.SaleNumber,
                tillNumber = _cacheManager.TillNumber
            };
        }
 public UncompleteOverPaymentSerializeAction(IFuelPumpRestClient fuelPumpRestClient,
                                             ICacheManager cacheManager,
                                             int pumpId, string finishAmount, string finishQuantity, string finishPrice,
                                             string prepayAmount, int positionId, int gradeId, int saleNumber)
     : base("UncompleteOverPayment")
 {
     _fuelPumpRestClient = fuelPumpRestClient;
     _uncompletePrepayChangePostContract = new UncompletePrepayChangePostContract
     {
         finishAmount = finishAmount,
         finishPrice  = finishPrice,
         finishQty    = finishQuantity,
         gradeId      = gradeId,
         positionId   = positionId.ToString(),
         prepayAmount = prepayAmount,
         pumpId       = pumpId,
         saleNum      = saleNumber,
         tillNumber   = cacheManager.TillNumber
     };
 }
        public AddPrepaySerializeAction(IFuelPumpRestClient fuelPumpRestClient,
                                        ICacheManager cacheManager, int activePump, string amount, string fuelGrade,
                                        bool isAmountCash)
            : base("AddPrepay")
        {
            _fuelPumpRestClient = fuelPumpRestClient;
            _cacheManager       = cacheManager;

            _addPrepayContract = new AddPrepayContract
            {
                activePump     = activePump,
                registerNumber = _cacheManager.RegisterNumber,
                saleNumber     = _cacheManager.SaleNumber,
                shiftNumber    = _cacheManager.ShiftNumber,
                tillNumber     = _cacheManager.TillNumber,
                amount         = amount,
                fuelGrade      = fuelGrade,
                isAmountCash   = isAmountCash
            };
        }
        public AddManuallySerializeAction(IFuelPumpRestClient fuelPumpRestClient,
                                          ICacheManager cacheManager,
                                          int pumpId,
                                          string amount,
                                          bool isCashSelected,
                                          string grade) : base("AddManually")
        {
            _fuelPumpRestClient = fuelPumpRestClient;
            _cacheManager       = cacheManager;

            _payload = new AddFuelManuallyContract
            {
                amount         = amount,
                grade          = grade,
                isCashSelected = isCashSelected,
                pumpId         = pumpId,
                registerNumber = _cacheManager.RegisterNumber,
                saleNumber     = _cacheManager.SaleNumber,
                tillNumber     = _cacheManager.TillNumberForSale
            };
        }
        public SetGroupBasePriceSerializeAction(IFuelPumpRestClient fuelPumpRestClient,
                                                ICacheManager cacheManager, List <Price> fuelPrices, int row) : base("SetGroupBasePrice")
        {
            _fuelPumpRestClient = fuelPumpRestClient;
            _cacheManager       = cacheManager;

            _fuelPriceContract = new SetGroupFuelPriceContract
            {
                row    = row,
                prices = (from f in fuelPrices
                          select new FuelPriceContract
                {
                    cashPrice = f.CashPrice,
                    creditPrice = f.CreditPrice,
                    grade = f.Grade,
                    row = f.Row,
                    taxExemptedCashPrice = f.TaxExemptedCashPrice,
                    taxExemptedCreditPrice = f.TaxExemptedCreditPrice
                }).ToList()
            };
        }
Пример #20
0
 public CheckErrorSerializeAction(IFuelPumpRestClient fuelPumpRestClient) : base("CheckError")
 {
     _fuelPumpRestClient = fuelPumpRestClient;
 }
 public StopBroadcastSerializeAction(IFuelPumpRestClient fuelPumpRestClient)
     : base("StopBroadcast")
 {
     _fuelPumpRestClient = fuelPumpRestClient;
 }
 public UncompletePrepayLoadSerializeAction(IFuelPumpRestClient fuelPumpRestClient)
     : base("UncompletePrepayLoad")
 {
     _fuelPumpRestClient = fuelPumpRestClient;
 }
Пример #23
0
 public ResumeAllSerializeAction(IFuelPumpRestClient fuelPumpRestClient)
     : base("Resume All")
 {
     _fuelPumpRestClient = fuelPumpRestClient;
 }
Пример #24
0
 public StopAllSerializeAction(IFuelPumpRestClient fuelPumpRestClient)
     : base("StopAll")
 {
     _fuelPumpRestClient = fuelPumpRestClient;
 }
 public GetHeadOfficeNotificationSerializeAction(IFuelPumpRestClient fuelPumpRestClient)
     : base("GetHeadOfficeNotification")
 {
     _fuelPumpRestClient = fuelPumpRestClient;
 }
 public LoadPropaneGradeSerializeAction(IFuelPumpRestClient fuelPumpRestClient)
     : base("LoadPropaneGrade")
 {
     _fuelPumpRestClient = fuelPumpRestClient;
 }
Пример #27
0
 public LoadPropanePumpSerializeAction(IFuelPumpRestClient fuelPumpRestClient, int gradeId)
     : base("LoadPropanePump")
 {
     _fuelPumpRestClient = fuelPumpRestClient;
     _gradeId            = gradeId;
 }
 public FuelPumpSerializeManager(IFuelPumpRestClient fuelPumpRestClient,
                                 ICacheManager cacheManager)
 {
     _fuelPumpRestClient = fuelPumpRestClient;
     _cacheManager       = cacheManager;
 }
Пример #29
0
 public LoadTierLevelSerializeAction(IFuelPumpRestClient fuelPumpRestClient)
     : base("LoadTierLevel")
 {
     _fuelPumpRestClient = fuelPumpRestClient;
 }
Пример #30
0
 public GetPumpStatusSerializeAction(IFuelPumpRestClient fuelPumpRestClient)
     : base("GetPumpStatus")
 {
     _fuelPumpRestClient = fuelPumpRestClient;
 }