Exemplo n.º 1
0
 public PurchaseViewModel(IToastService toastService,
                          IPurchasingService purchaseService,
                          ICache <SubscriptionModel> subCache,
                          ISubscriptionService subService,
                          ICurrentUserService userCache,
                          MainThreadNavigator nav,
                          ValidationModel validationModel,
                          string runtimePlatform,
                          Action <BaseNavPageType> navigateFromMenu,
                          AlertUtility alertUtility,
                          Action <Uri> openUri)
 {
     _toastService         = toastService;
     _purchaseService      = purchaseService;
     _subCache             = subCache;
     _subService           = subService;
     _userCache            = userCache;
     _validationModel      = validationModel;
     _runtimePlatform      = runtimePlatform;
     _openUri              = openUri;
     _alertUtility         = alertUtility;
     _nav                  = nav;
     _navigateFromMenu     = navigateFromMenu;
     LegalLinkCommand      = new Command(() => _openUri(new Uri(Configuration.PrivacyPolicyUrl)));
     PurchaseButtonCommand = new Command(() => PurchaseButtonClicked());
     SetVisualState(validationModel);
 }
Exemplo n.º 2
0
 public PurchaseController(
     IPurchasingService service,
     ILogger <PurchaseController> log)
 {
     _service = service;
     _log     = log;
 }
        public SingleReportPurchaseViewModel(ValidationModel validation,
                                             Action <Uri> openUri,
                                             string runtimePlatform,
                                             AlertUtility alertUtility,
                                             MainThreadNavigator nav,
                                             IToastService toastService,
                                             IPurchasedReportService prService,
                                             IPurchasingService purchaseService,
                                             ICurrentUserService userCache,
                                             ICache <PurchasedReportModel> prCache,
                                             ILogger <SingleReportPurchaseViewModel> emailLogger)
        {
            _validation      = validation;
            _openUri         = openUri;
            _nav             = nav;
            _toastService    = toastService;
            _runtimePlatform = runtimePlatform;
            _userCache       = userCache;
            _purchaseService = purchaseService;
            _prService       = prService;
            _prCache         = prCache;
            _emailLogger     = emailLogger;
            _alertUtility    = alertUtility;

            SetViewState(validation);
        }
Exemplo n.º 4
0
 public VendorController(
     IPurchasingService service,
     ILogger <VendorController> log)
 {
     _service = service;
     _log     = log;
 }
Exemplo n.º 5
0
 public PurchasingController(IInventoryService inventoryService,
     IFinancialService financialService,
     IPurchasingService purchasingService)
 {
     _inventoryService = inventoryService;
     _financialService = financialService;
     _purchasingService = purchasingService;
 }
 public PurchasingController(IInventoryService inventoryService,
                             IFinancialService financialService,
                             IPurchasingService purchasingService)
 {
     _inventoryService  = inventoryService;
     _financialService  = financialService;
     _purchasingService = purchasingService;
 }
Exemplo n.º 7
0
 public ValuesController(IEnumerable <IGamingService> gamingServices, IPurchasingService purchasingService, IUnitOfWork unitOfWork, ILeaderboard <UserModel> leaderboard, ConcreteService concreteService)
 {
     _gamingService     = gamingServices;
     _purchasingService = purchasingService;
     _unitOfWork        = unitOfWork;
     _leaderboard       = leaderboard;
     _concreteService   = concreteService;
 }
Exemplo n.º 8
0
 public PurchasingController(IAdministrationService adminService,
                             IPurchasingService purchasingService,
                             IFinancialService financialService)
 {
     _adminService      = adminService;
     _purchasingService = purchasingService;
     _financialService  = financialService;
 }
 private void Awake()
 {
     purchasingService = FindObjectOfType <PurchasingServiceStub>()
                         ?? throw new NullReferenceException(nameof(IPurchasingService));
     lobbyEcsController = FindObjectOfType <LobbyEcsController>()
                          ?? throw new NullReferenceException(nameof(lobbyEcsController));
     textTooltip = FindObjectOfType <TextTooltip>()
                   ?? throw new NullReferenceException(nameof(TextTooltip));
 }
Exemplo n.º 10
0
 private void Awake()
 {
     shopUiSpawner = FindObjectOfType <ShopUiSpawner>()
                     ?? throw new NullReferenceException(nameof(ShopUiSpawner));
     purchasingService = FindObjectOfType <PurchasingServiceStub>()
                         ?? throw new NullReferenceException(nameof(PurchasingServiceStub));
     lobbyEcsController = FindObjectOfType <LobbyEcsController>()
                          ?? throw new NullReferenceException(nameof(PurchasingServiceStub));
 }
Exemplo n.º 11
0
 public ReferenceController(
     IInventoryService service, IFinancialService financialService, IPurchasingService purchasingService, ISalesService salesService,
     ILogger <ReferenceController> log)
 {
     _service           = service;
     _financialService  = financialService;
     _purchasingService = purchasingService;
     _log         = log;
     _saleService = salesService;
 }
Exemplo n.º 12
0
 public CommonController(IInventoryService inventoryService,
                         IFinancialService financialService,
                         IPurchasingService purchasingService,
                         ISalesService salesService)
 {
     _inventoryService  = inventoryService;
     _financialService  = financialService;
     _purchasingService = purchasingService;
     _salesService      = salesService;
 }
Exemplo n.º 13
0
 public CommonController(IInventoryService inventoryService,
     IFinancialService financialService,
     IPurchasingService purchasingService,
     ISalesService salesService,
     IAdministrationService administrationService)
 {
     _inventoryService = inventoryService;
     _financialService = financialService;
     _purchasingService = purchasingService;
     _salesService = salesService;
     _administrationService = administrationService;
 }
Exemplo n.º 14
0
 public CommonController(ISalesService salesService,
                         IAdministrationService administrationService,
                         IInventoryService inventoryService,
                         IPurchasingService purchasingService,
                         IFinancialService financialService)
 {
     _salesService          = salesService;
     _administrationService = administrationService;
     _inventoryService      = inventoryService;
     _purchasingService     = purchasingService;
     _financialService      = financialService;
 }
Exemplo n.º 15
0
 public OrderController(
     IOrderService orderService,
     ILogService logService,
     IPurchasingService purchasingService,
     IDeliveriesService deliveriesService,
     IConfiguration configuration)
 {
     _orderService      = orderService;
     _logService        = logService;
     _purchasingService = purchasingService;
     _deliveriesService = deliveriesService;
     _configuration     = configuration;
 }
Exemplo n.º 16
0
 public Initializer(IAdministrationService adminService,
                    IFinancialService financialService,
                    ISalesService salesService,
                    IPurchasingService purchasingService,
                    IInventoryService inventoryService,
                    ISecurityService securityService)
 {
     _adminService      = adminService;
     _financialService  = financialService;
     _salesService      = salesService;
     _purchasingService = purchasingService;
     _inventoryService  = inventoryService;
     _securityService   = securityService;
 }
Exemplo n.º 17
0
 public PurchasingController(IPermissionService permissionService, IPurchasingService purchasingService, IWareHouseService wareHouseService,
                             ICommonService commonService, IProductService productService, ILogService logService, IUserService userService, IScheduleTaskFuncService scheduleTaskFuncService, IDbAccessor omsAccessor
                             , IHostingEnvironment hostingEnvironment)
 {
     _permissionService       = permissionService;
     _purchasingService       = purchasingService;
     _wareHouseService        = wareHouseService;
     _commonService           = commonService;
     _productService          = productService;
     _logService              = logService;
     _userService             = userService;
     _scheduleTaskFuncService = scheduleTaskFuncService;
     _omsAccessor             = omsAccessor;
     _hostingEnvironment      = hostingEnvironment;
 }
Exemplo n.º 18
0
        public InvoiceModelValidator(IInventoryService inventoryService, IPurchasingService purchasingService)
        {
            _inventoryService  = inventoryService;
            _purchasingService = purchasingService;

            RuleFor(m => m.No).NotEmpty();
            //RuleFor(m => m.Description).NotEmpty();
            RuleFor(m => m.VendorId).Must(i => ValidateVendorId(i.Value)).WithMessage("VendorId is not valid");

            RuleFor(m => m.InvoiceItems)
            .Must(i => i.Any())
            .WithMessage("At least 1 item should exists in invoice");

            RuleForEach(m => m.InvoiceItems).Must(i => ValidateItemId(i.ItemId)).WithMessage("ItemId is not valid");

            RuleFor(m => m.Total).NotEmpty();
        }
Exemplo n.º 19
0
 public ProductController(IProductService productService,
                          IOrderService orderService,
                          IDeliveriesService deliveriesService,
                          IConfiguration configuration,
                          IPurchasingService purchasingService,
                          ILogService logService,
                          IDbAccessor omsAccessor,
                          IScheduleTaskFuncService scheduleTaskFuncService,
                          ICMBService cmbService,
                          ISaleProductWareHouseStockService saleProductWareHouseStockService
                          )
 {
     _productService                   = productService;
     _orderService                     = orderService;
     _deliveriesService                = deliveriesService;
     _configuration                    = configuration;
     _purchasingService                = purchasingService;
     _logService                       = logService;
     _omsAccessor                      = omsAccessor;
     _scheduleTaskFuncService          = scheduleTaskFuncService;
     _cmbService                       = cmbService;
     _saleProductWareHouseStockService = saleProductWareHouseStockService;
     _productService.SynStock();
 }
Exemplo n.º 20
0
 public PurchasingController()
 {
     _purchasingService = new PurchasingService();
 }
Exemplo n.º 21
0
 public ContactController(ISalesService salesService, IPurchasingService purchasingService)
 {
     _salesService      = salesService;
     _purchasingService = purchasingService;
 }
Exemplo n.º 22
0
 public SupplierController(IPurchasingService purchasingService, IPermissionService permissionService, IScheduleTaskFuncService scheduleTaskFuncService)
 {
     _purchasingService       = purchasingService;
     _permissionService       = permissionService;
     _scheduleTaskFuncService = scheduleTaskFuncService;
 }
Exemplo n.º 23
0
 private void Awake()
 {
     purchaser = FindObjectOfType <PurchasingServiceStub>();
 }
 public PurchasingController(IPurchasingService purchasingService)
 {
     this.purchasingService = purchasingService;
 }