コード例 #1
0
ファイル: PosController.cs プロジェクト: CocacolaSh/temp
 public PosController(IPosService posService, IPosApplyService posApplyService, IMpUserService mpUserService, IPosAuthService posAuthService)
 {
     this._posService      = posService;
     this._posApplyService = posApplyService;
     _mpUserService        = mpUserService;
     _posAuthService       = posAuthService;
 }
コード例 #2
0
        private void CreateWaiterClient()
        {
            waiterClient = DependencyService.Get <IWaiterClient>().GetWaiterClient(endpointIpAddressPart1 + waiterIpAddressPart2, new TimeSpan(0, 0, 10));

            int pingResult = 0;

            try
            {
                pingResult = waiterClient.Ping(0);
            }

            catch (Exception ex)
            {
                ServiceCallConfig       = ServiceCallConfigType.AllServiceCallsOff;
                ServerConnectionProblem = true;
            }

            if (pingResult == 10)
            {
                waiterClient = DependencyService.Get <IWaiterClient>().GetWaiterClient(endpointIpAddressPart1 + waiterIpAddressPart2, new TimeSpan(0, 10, 0));
            }

            //waiterClient = new PosServiceClient(
            //             new BasicHttpBinding(),
            //             new EndpointAddress(endpointIpAddressPart1 + waiterIpAddressPart2));
            //waiterClient.Endpoint.Binding.SendTimeout = new TimeSpan(0, 10, 0);
        }
コード例 #3
0
ファイル: ParseService.cs プロジェクト: SamWangExport/Sam
        char?NextChar()
        {
            var c = _pos.Current;

            _pos = _pos.MoveRight();
            return(c);
        }
コード例 #4
0
        // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
        public void Configure(IApplicationBuilder app,
                              IHostingEnvironment env,
                              IPhoebusService _phoebusService,
                              IIntermeioService _intermeioService,
                              IAnaliseService _analiseService,
                              IPosService _posService,
                              IExtratoService _extratoService)
        {
            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
            }
            else
            {
                // The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
                app.UseHsts();
            }
            //  app.UseHttpsRedirection();
            app.UseHangfireDashboard();
            app.UseCors(x => x.AllowAnyOrigin().AllowAnyMethod().AllowAnyHeader());
            app.UseAuthentication();
            app.UseMvc();

            #region Background Jobs HangFire
            BackgroundJob.Schedule(() => _phoebusService.RequestPhoebus(DateTime.Now, "00:00:00", "23:59:59"), TimeSpan.FromMinutes(60));
            RecurringJob.AddOrUpdate(() => _intermeioService.GetAllBaseIntermeio(), Cron.Daily(12, 30));
            RecurringJob.AddOrUpdate(() => _analiseService.ValidationAnalise(), Cron.Daily(12, 30));
            RecurringJob.AddOrUpdate(() => _posService.RequestPosByIntermeio(), Cron.Daily(12, 30));
            RecurringJob.AddOrUpdate(() => _extratoService.ValidationAluguel(), Cron.Daily(12, 30));
            #endregion
        }
コード例 #5
0
ファイル: PosController.cs プロジェクト: CocacolaSh/temp
 public PosController(IPosAuthService posAuthService, IPosApplyService posApplyService,
                      IMobileCodeService mobileCodeService, IPosService posService)
 {
     _posAuthService    = posAuthService;
     _posApplyService   = posApplyService;
     _mobileCodeService = mobileCodeService;
     _posService        = posService;
 }
コード例 #6
0
 public FileService(IPosDataService posDataService, IPosColumnMapService posColumnMapService, IUploadLogService uploadLogSerivice, ILoginService loginService, FileAdapterFactory fileAdapterFactory, IPosService posService, ICommonFileService commonFileService)
 {
     this._posDataService      = posDataService;
     this._posColumnMapService = posColumnMapService;
     this._uploadLogService    = uploadLogSerivice;
     this._loginService        = loginService;
     this._fileAdapterFactory  = fileAdapterFactory;
     this._posService          = posService;
     this._commonFileService   = commonFileService;
 }
コード例 #7
0
 public LoadTestAppController(IPartnerService partnerService, IPosService posService,
                              IProductService productService, IHttpContextAccessor httpContextAccessor, IUtilityService utilityService
                              , IViewRenderService viewRenderService)
 {
     _partnerService      = partnerService;
     _posService          = posService;
     _productService      = productService;
     _httpContextAccessor = httpContextAccessor;
     _utilityService      = utilityService;
     _viewRenderService   = viewRenderService;
 }
コード例 #8
0
        public MainOrderVm(IBackPreviousVm backPreviousVm, ISearchNewPhoneVm searchNewPhone, IFranchiseContainerVm franchiseContainer,
                           IClientsListVm clientsList, IAddressListVm addressList, IOrderSummaryVm orderSummary, IOrderPosVm orderPosVm, ISendOrderVm sendOrder,
                           IMainOrderService orderService, IPosService posService, IStoreAddressService storeAddressService, ILastOrderFoVm lastOrderFo)
        {
            BackPrevious   = backPreviousVm;
            SearchNewPhone = searchNewPhone;
            Franchises     = franchiseContainer;
            ClientsList    = clientsList;
            AddressList    = addressList;
            OrderPos       = orderPosVm;
            SendOrder      = sendOrder;

            clientsList.ValidateModel = orderService.ValidateModel;
            addressList.ValidateModel = orderService.ValidateModel;
            orderPosVm.ValidateModel  = orderService.ValidateModel;
            sendOrder.ValidateModel   = orderService.ValidateModel;

            _orderService        = orderService;
            _posService          = posService;
            _storeAddressService = storeAddressService;
            _storeAddressService.OrderService = orderService;

            _lastOrderFo = lastOrderFo;
            orderSummary.OrderService = orderService;
            OrderSummary           = orderSummary;
            sendOrder.OrderService = orderService;

            clientsList.SetOrderModel(() => orderService.OrderModel);
            addressList.SetOrderModel(() => orderService.OrderModel);

            _dicTabItems = new Dictionary <int, IUcViewModel>
            {
                { SharedConstants.Client.ORDER_TAB_PHONE, _searchNewPhone },
                { SharedConstants.Client.ORDER_TAB_FRANCHISE, _franchises },
                { SharedConstants.Client.ORDER_TAB_CLIENTS, _clientsList },
                { SharedConstants.Client.ORDER_TAB_ORDER, _orderPos },
                { SharedConstants.Client.ORDER_TAB_DELIVERY, _sendOrder }
            };

            LstChildren.AddRange(_dicTabItems.Values);

            foreach (var wizard in LstChildren)
            {
                wizard.NextStep += GoNextStep;
            }

            LstChildren.Add(_backPrevious);
            LstChildren.Add(_addressList);
            LstChildren.Add(_orderSummary);

            RxApp.MainThreadScheduler.Schedule(_ => SelectedTab = SharedConstants.Client.ORDER_TAB_PHONE);

            InitializeServices();
        }
コード例 #9
0
 public PositionController()
 {
     service = new PosService();
 }
コード例 #10
0
 public App(IPosService posService, ILogger <App> logger)
 {
     _posService = posService;
     _logger     = logger;
 }
コード例 #11
0
ファイル: ParseService.cs プロジェクト: SamWangExport/Sam
 public ParseService(IPosService parsePosService)
 {
     _pos = parsePosService;
 }
コード例 #12
0
 public PosController(IPosRepository posRepository, IPosService posService)
 {
     _posRepository = posRepository;
     _posService    = posService;
 }
コード例 #13
0
 public PosController(IPosService service, ILogger <PosController> logger)
 {
     _service = service;
     _logger  = logger;
 }
コード例 #14
0
 public PosController(IPosService posService, ILogger <PosController> logger, IMapper mapper)
 {
     this.posService = posService;
     this.logger     = logger;
     this.mapper     = mapper;
 }
コード例 #15
0
 private List <string> ValidCurrencies(IPosService pos)
 {
     return(pos.GetAllValidCurrencies());
 }