예제 #1
0
 public bool ValidUpdateObject(Maintenance maintenance, IItemService _itemService, IItemTypeService _itemTypeService,
                           IUserService _userService, ICustomerService _customerService, IMaintenanceService _maintenanceService)
 {
     maintenance.Errors.Clear();
     VUpdateObject(maintenance, _itemService, _itemTypeService, _userService, _customerService, _maintenanceService);
     return isValid(maintenance);
 }
		public VCGoogleProductProvider(IItemService itemService, IPricingService pricingService, IBlobUrlResolver assetUrlResolver, ICatalogSearchService catalogSearchService)
        {
            _itemService = itemService;
            _pricingService = pricingService;
            _assetUrlResolver = assetUrlResolver;
            _catalogSearchService = catalogSearchService;
        }
예제 #3
0
 public ItemType VDeleteObject(ItemType itemType, IItemService _itemService, IMaintenanceService _maintenanceService)
 {
     VHasMaintenance(itemType, _maintenanceService);
     if (itemType.Errors.Any()) { return itemType; }
     VHasItem(itemType, _itemService);
     return itemType;
 }
예제 #4
0
        /// <summary>
        /// Initializes a new instance of the <see cref="CategoryListViewModel"/> class.
        /// </summary>
        /// <param name="listType">The type of list.</param>
        /// <param name="itemService">An item service.</param>
        public CategoryListViewModel(string listType, IItemService itemService)
            : base(listType, itemService)
        {
            BuildCategoriesList();

            RegisterForMessages();
        }
예제 #5
0
 public ItemModel()
 {
     itemService = new ItemService(new ItemRepository(), new ItemValidator());
     customerService = new CustomerService(new CustomerRepository(), new CustomerValidator());
     itemTypeService = new ItemTypeService(new ItemTypeRepository(), new ItemTypeValidator());
     maintenanceService = new MaintenanceService(new MaintenanceRepository(), new MaintenanceValidator());
 }
예제 #6
0
 public Customer VDeleteObject(Customer customer, IItemService _itemService, IMaintenanceService _maintenanceService)
 {
     VHasMaintenance(customer, _maintenanceService);
     if (customer.Errors.Any()) { return customer; }
     VHasItem(customer, _itemService);
     return customer;
 }
 public PricingModuleController(IPricingService pricingService, IItemService itemService, ICatalogService catalogService, IPricingExtensionManager extensionManager)
 {
     _extensionManager = extensionManager;
     _pricingService = pricingService;
     _itemService = itemService;
     _catalogService = catalogService;
 }
        public CatalogSearchServiceImpl(Func<ICatalogRepository> catalogRepositoryFactory, IItemService itemService, ICatalogService catalogService, ICategoryService categoryService)
        {
            _catalogRepositoryFactory = catalogRepositoryFactory;
            _itemService = itemService;
            _catalogService = catalogService;
            _categoryService = categoryService;
		}
        public ShoppingCartServiceImpl(Func<ICartRepository> repositoryFactory, IEventPublisher<CartChangeEvent> eventPublisher, IItemService productService, IDynamicPropertyService dynamicPropertyService)
		{
			_repositoryFactory = repositoryFactory;
			_eventPublisher = eventPublisher;
			_productService = productService;
            _dynamicPropertyService = dynamicPropertyService;
        }
예제 #10
0
        public ManageController(
            IUnitOfWorkAsync unitOfWorkAsync,
            ISettingService settingService,
            ICategoryService categoryService,
            IItemService itemService,
            IPictureService pictureService,
            IItemPictureService itemPictureService,
            IOrderService orderService,
            ICustomFieldService customFieldService,
            ICustomFieldCategoryService customFieldCategoryService,
            ICustomFieldItemService customFieldItemService,
            ISettingDictionaryService settingDictionaryService,
            IItemStatService itemStatService,
            DataCacheService dataCacheService,
            SqlDbService sqlDbService)
        {
            _settingService = settingService;
            _settingDictionaryService = settingDictionaryService;

            _categoryService = categoryService;
            _itemService = itemService;
            _pictureService = pictureService;
            _itemPictureService = itemPictureService;
            _orderService = orderService;            
            
            _customFieldService = customFieldService;
            _customFieldCategoryService = customFieldCategoryService;
            _customFieldItemService = customFieldItemService;
            _itemStatService = itemStatService;

            _dataCacheService = dataCacheService;
            _sqlDbService = sqlDbService;

            _unitOfWorkAsync = unitOfWorkAsync;
        }
예제 #11
0
 public HomeController(IFeedService feedService, IFolderService folderService, IItemService itemService, FeedsDbEntities context)
 {
     _feedService = feedService;
     _folderService = folderService;
     _itemService = itemService;
     _context = context;
 }
예제 #12
0
        private void ClientInitialize()
        {
            try
            {
                if (!_initialized)
                {
                    _serverUri = new Uri(ItemServiceUrl);

                    Logger.Log("Initializing Client Service connection to {0}", _serverUri.AbsoluteUri);

                    WebHttpBinding webHttpBinding = new WebHttpBinding
                    {
                        OpenTimeout = TimeSpan.FromMilliseconds(5000),
                        SendTimeout = TimeSpan.FromMilliseconds(5000),
                        CloseTimeout = TimeSpan.FromMilliseconds(5000),
                    };

                    _httpFactory = new WebChannelFactory<IItemService>(webHttpBinding, _serverUri);
                    _httpProxy = _httpFactory.CreateChannel();

                    _initialized = true;
                }
            }
            catch (Exception ex)
            {
                Logger.Log("Exception in ClientInitialize() {0}", ex);
            }
        }
예제 #13
0
        /// <summary>
        /// Initializes a new instance of the MainViewModel class.
        /// </summary>
        /// <param name="listViews">A list of views to display.</param>
        /// <param name="messageBoxService">A message box service.</param>
        /// <param name="itemService">An item service.</param>
        /// <param name="navigationService">A navigation service.</param>
        public MainViewModel(IEnumerable<object> listViews, IMessageBoxService messageBoxService,
			IItemService itemService, INavigationService navigationService)
        {
            if (messageBoxService == null)
                throw new ArgumentNullException("messageBoxService");
            if (itemService == null)
                throw new ArgumentNullException("itemService");
            if (navigationService == null)
                throw new ArgumentNullException("navigationService");

            _messageBoxService = messageBoxService;
            _itemService = itemService;
            _navigationService = navigationService;

            _listViews = new ObservableCollection<object>();

            if (listViews != null)
            {
                foreach (object obj in listViews)
                {
                    _listViews.Add(obj);
                }
            }

            RegisterForMessages();
        }
 public ReceivingController()
 {
     service = IoC.Resolve<IReceivingService>("ReceivingService");
     poService = IoC.Resolve<IPurchaseOrderService>("PurchaseOrderService");
     itemService = IoC.Resolve<IItemService>("ItemService");
     lotService = IoC.Resolve<ILotNumberService>("LotNumberService");
 }
예제 #15
0
 public ItemBrowsingService(IItemService itemService, ISearchProvider searchService, IBlobUrlResolver blobUrlResolver = null, ISearchConnection searchConnection = null)
 {
     _searchProvider = searchService;
     _searchConnection = searchConnection;
     _itemService = itemService;
     _blobUrlResolver = blobUrlResolver;
 }
		public CatalogModuleProductsController(IItemService itemsService, IPropertyService propertyService, IBlobUrlResolver blobUrlResolver, ICatalogService catalogService, ISkuGenerator skuGenerator)
        {
            _itemsService = itemsService;
            _propertyService = propertyService;
			_blobUrlResolver = blobUrlResolver;
			_catalogService = catalogService;
			_skuGenerator = skuGenerator;
        }
		public CustomerOrderServiceImpl(Func<IOrderRepository> orderRepositoryFactory, IOperationNumberGenerator operationNumberGenerator, IEventPublisher<OrderChangeEvent> eventPublisher, IShoppingCartService shoppingCartService, IItemService productService)
		{
			_repositoryFactory = orderRepositoryFactory;
			_shoppingCartService = shoppingCartService;
			_operationNumberGenerator = operationNumberGenerator;
			_eventPublisher = eventPublisher;
			_productService = productService;
		}
예제 #18
0
 public ItemController(IItemService svc,
                       IAuctionMapper<Item, ItemListViewModel, CreateItemViewModel, EditItemViewModel> mapper,
                       IEventService eventSvc)
 {
     _svc = svc;
     _mapper = mapper;
     _eventSvc = eventSvc;
 }
예제 #19
0
 public Customer VHasItem(Customer customer, IItemService _itemService)
 {
     IList<Item> list = _itemService.GetObjectsByCustomerId(customer.Id);
     if (list.Any())
     {
         customer.Errors.Add("Item", "Tidak boleh ada yang terasosiakan dengan customer");
     }
     return customer;
 }
		public CatalogExportImport(ICatalogSearchService catalogSearchService,
			ICatalogService catalogService, ICategoryService categoryService, IItemService itemService, IPropertyService propertyService)
		{
			_catalogSearchService = catalogSearchService;
			_catalogService = catalogService;
			_categoryService = categoryService;
			_itemService = itemService;
			_propertyService = propertyService;
		}
예제 #21
0
 public ItemType VHasItem(ItemType itemType, IItemService _itemService)
 {
     IList<Item> list = _itemService.GetObjectsByItemTypeId(itemType.Id);
     if (list.Any())
     {
         itemType.Errors.Add("Item", "Tidak boleh ada yang terasosiakan dengan itemType");
     }
     return itemType;
 }
 public CatalogModuleListEntryController(ICatalogSearchService searchService,
                            ICategoryService categoryService,
                            IItemService itemService, IBlobUrlResolver blobUrlResolver)
 {
     _searchService = searchService;
     _categoryService = categoryService;
     _itemService = itemService;
     _blobUrlResolver = blobUrlResolver;
 }
 public CatalogItemIndexBuilder(ISearchProvider searchProvider, ICatalogSearchService catalogSearchService,
                                IItemService itemService, IPricingService pricingService,
                                IChangeLogService changeLogService)
 {
     _searchProvider = searchProvider;
     _itemService = itemService;
     _catalogSearchService = catalogSearchService;
     _pricingService = pricingService;
     _changeLogService = changeLogService;
 }
 public CatalogModuleListEntryController(ICatalogSearchService searchService,
                            ICategoryService categoryService,
                            IItemService itemService, IBlobUrlResolver blobUrlResolver, ISecurityService securityService, IPermissionScopeService permissionScopeService)
     : base(securityService, permissionScopeService)
 {
     _searchService = searchService;
     _categoryService = categoryService;
     _itemService = itemService;
     _blobUrlResolver = blobUrlResolver;
 }
예제 #25
0
        public HomeController(
            ICategoryService categoryService,
            IItemService itemService,
            IContentPageService contentPageService)
        {
            _categoryService = categoryService;
            _itemService = itemService;
            _contentPageService = contentPageService;

        }
 public CatalogModuleProductsController(IItemService itemsService, IBlobUrlResolver blobUrlResolver,  ICatalogService catalogService, ICategoryService categoryService,
                                        ISkuGenerator skuGenerator, ISecurityService securityService, IPermissionScopeService permissionScopeService)
     :base(securityService, permissionScopeService)
 {
     _itemsService = itemsService;
     _categoryService = categoryService;
     _blobUrlResolver = blobUrlResolver;
     _catalogService = catalogService;
     _skuGenerator = skuGenerator;
 }
        public CatalogSearchServiceImpl(Func<ICatalogRepository> catalogRepositoryFactory, IItemService itemService, ICatalogService catalogService, ICategoryService categoryService)
        {
            _catalogRepositoryFactory = catalogRepositoryFactory;
            _itemService = itemService;
            _catalogService = catalogService;
            _categoryService = categoryService;

            _productSortingAliases["sku"] = ReflectionUtility.GetPropertyName<CatalogProduct>(x => x.Code);
            _categorySortingAliases["sku"] = ReflectionUtility.GetPropertyName<Category>(x => x.Code);

        }
예제 #28
0
		public CatalogExportImport(ICatalogSearchService catalogSearchService,
			ICatalogService catalogService, ICategoryService categoryService, IItemService itemService, 
			IPropertyService propertyService, IBlobStorageProvider blobStorageProvider)
		{
			_blobStorageProvider = blobStorageProvider;
			_catalogSearchService = catalogSearchService;
			_catalogService = catalogService;
			_categoryService = categoryService;
			_itemService = itemService;
			_propertyService = propertyService;
		}
예제 #29
0
		public CsvCatalogExporter(ICatalogSearchService catalogSearchService,
								  ICategoryService categoryService, IItemService productService,
								  IPricingService pricingService, IInventoryService inventoryService, IBlobUrlResolver blobUrlResolver)
		{
			_searchService = catalogSearchService;
			_categoryService = categoryService;
			_productService = productService;
			_pricingService = pricingService;
			_inventoryService = inventoryService;
			_blobUrlResolver = blobUrlResolver;
		}
 public CustomerOrderServiceImpl(Func<IOrderRepository> orderRepositoryFactory, IUniqueNumberGenerator uniqueNumberGenerator, IEventPublisher<OrderChangeEvent> eventPublisher, IShoppingCartService shoppingCartService, IItemService productService, 
                               IDynamicPropertyService dynamicPropertyService, ISettingsManager settingManager, IShippingMethodsService shippingMethodsService, IPaymentMethodsService paymentMethodsService)
 {
     _repositoryFactory = orderRepositoryFactory;
     _shoppingCartService = shoppingCartService;
     _uniqueNumberGenerator = uniqueNumberGenerator;
     _eventPublisher = eventPublisher;
     _productService = productService;
     _dynamicPropertyService = dynamicPropertyService;
     _settingManager = settingManager;
     _shippingMethodsService = shippingMethodsService;
     _paymentMethodsService = paymentMethodsService;
 }
예제 #31
0
 public Barring VUpdateObject(Barring barring, IBarringService _barringService, IUoMService _uomService, IItemService _itemService, IItemTypeService _itemTypeService,
                              IContactService _contactService, IMachineService _machineService)
 {
     return(VCreateObject(barring, _barringService, _uomService, _itemService, _itemTypeService, _contactService, _machineService));
 }
예제 #32
0
 public ItemController(IItemService _itemService, ICategoryService _categoryService, IUnitService _unitService)
 {
     itemService     = _itemService;
     categoryService = _categoryService;
     unitService     = _unitService;
 }
예제 #33
0
 public ExcelFileController(IItemService itemService)
 {
     _itemService = itemService;
 }
 public CustomerOrderServiceImpl(Func <IOrderRepository> orderRepositoryFactory, IOperationNumberGenerator operationNumberGenerator, IEventPublisher <OrderChangeEvent> eventPublisher, IShoppingCartService shoppingCartService, IItemService productService)
 {
     _repositoryFactory        = orderRepositoryFactory;
     _shoppingCartService      = shoppingCartService;
     _operationNumberGenerator = operationNumberGenerator;
     _eventPublisher           = eventPublisher;
     _productService           = productService;
 }
예제 #35
0
 public ItemsController(IItemService itemService)
 {
     this.itemService = itemService;
 }
예제 #36
0
 public ItemProductController(ISessionData sessionData, IItemProductService itemProductService, ICategoryService categoryService, IItemService itemService)
     : base(sessionData)
 {
     _itemProductService = itemProductService;
     _categoryService    = categoryService;
     _itemService        = itemService;
 }
 public ProductDocumentBuilder(ISettingsManager settingsManager, IItemService itemService, IProductSearchService productsSearchService)
     : base(settingsManager)
 {
     _itemService           = itemService;
     _productsSearchService = productsSearchService;
 }
예제 #38
0
 public ItemHttpTrigger(ILogger <ItemHttpTrigger> logger,
                        IItemService itemService)
 {
     _logger      = logger;
     _itemService = itemService;
 }
예제 #39
0
 public ItemController(IItemService itemService, IEndpointInstance messageEndpoint)
 {
     _itemService     = itemService;
     _messageEndpoint = messageEndpoint;
 }
예제 #40
0
 public OrderService(IItemService itemService)
 {
     this.itemService = itemService;
 }
예제 #41
0
 public CalculatorController(IPlayerService playerService, IItemService itemService)
 {
     _playerService = playerService;
     _itemService   = itemService;
 }
예제 #42
0
 public StockDistributionController(IUtilityService utilityservice, IGodownService godownservice, IGodownAddressService godownaddressservice, IShopService shopservice, IOpeningStockService openingstockservice, IEntryStockItemService entrystockitemservice, IItemCategoryService itemcategoryservice, IItemSubCategoryService itemsubcategoryservice, IItemService itemservice, IStockDistributionService stockdistributionservice,
                                    IStockItemDistributionService stockitemdistributionservice, IOutwardStockDistributionService outwardstkdisservice, IOutwardItemStockDistributionService outwarditemstkdisservice, IUserCredentialService usercredentialservice, IModuleService iIModuleService)
 {
     this._utilityservice               = utilityservice;
     this._godownservice                = godownservice;
     this._godownaddressservice         = godownaddressservice;
     this._shopservice                  = shopservice;
     this._openingstockservice          = openingstockservice;
     this._entrystockitemservice        = entrystockitemservice;
     this._itemcategoryservice          = itemcategoryservice;
     this._itemsubcategoryservice       = itemsubcategoryservice;
     this._itemservice                  = itemservice;
     this._stockdistributionservice     = stockdistributionservice;
     this._stockitemdistributionservice = stockitemdistributionservice;
     this._outwardstkdisservice         = outwardstkdisservice;
     this._outwarditemstkdisservice     = outwarditemstkdisservice;
     this._IUserCredentialService       = usercredentialservice;
     this._iIModuleService              = iIModuleService;
 }
예제 #43
0
 public ItemController(IUser appUser, INotificator notificador, IItemRepository itemRepository, IItemService itemService, IMapper mapper) : base(appUser, notificador)
 {
     _itemRepository = itemRepository;
     _itemService    = itemService;
     _mapper         = mapper;
 }
예제 #44
0
 public ItemController(IItemService itemService)
 {
     _itemService = itemService;
 }
예제 #45
0
        public Barring VCreateObject(Barring barring, IBarringService _barringService, IUoMService _uomService, IItemService _itemService, IItemTypeService _itemTypeService,
                                     IContactService _contactService, IMachineService _machineService)
        {
            // Item Validation

            VHasItemTypeAndIsLegacy(barring, _itemTypeService);
            if (!isValid(barring))
            {
                return(barring);
            }
            VHasUniqueSku(barring, _barringService);
            if (!isValid(barring))
            {
                return(barring);
            }
            VHasName(barring);
            if (!isValid(barring))
            {
                return(barring);
            }
            VHasCategory(barring);
            if (!isValid(barring))
            {
                return(barring);
            }
            VHasUoM(barring, _uomService);
            if (!isValid(barring))
            {
                return(barring);
            }
            VNonNegativeQuantity(barring);
            if (!isValid(barring))
            {
                return(barring);
            }

            // Bar Validation
            VHasBlanket(barring, _itemService);
            if (!isValid(barring))
            {
                return(barring);
            }
            VHasContact(barring, _contactService);
            if (!isValid(barring))
            {
                return(barring);
            }
            VHasMachine(barring, _machineService);
            if (!isValid(barring))
            {
                return(barring);
            }
            VHasMeasurement(barring);
            return(barring);
        }
예제 #46
0
 public CoreBuilder VUpdateObject(CoreBuilder coreBuilder, ICoreBuilderService _coreBuilderService, IUoMService _uomService, IItemService _itemService)
 {
     VCreateObject(coreBuilder, _coreBuilderService, _uomService, _itemService);
     if (!isValid(coreBuilder))
     {
         return(coreBuilder);
     }
     VHasUsedCoreItem(coreBuilder, _itemService);
     if (!isValid(coreBuilder))
     {
         return(coreBuilder);
     }
     VHasNewCoreItem(coreBuilder, _itemService);
     return(coreBuilder);
 }
예제 #47
0
 public OrderItemMapper(IItemService itemService)
 {
     _itemService = itemService;
 }
예제 #48
0
 public bool ValidUpdateObject(Barring barring, IBarringService _barringService, IUoMService _uomService, IItemService _itemService, IItemTypeService _itemTypeService,
                               IContactService _contactService, IMachineService _machineService)
 {
     barring.Errors.Clear();
     VUpdateObject(barring, _barringService, _uomService, _itemService, _itemTypeService, _contactService, _machineService);
     return(isValid(barring));
 }
예제 #49
0
 public StandardController(IStandardService standardService, IUserCategoryService userCategoryService, IItemService itemService)
 {
     _standardService     = standardService;
     _userCategoryService = userCategoryService;
     _itemService         = itemService;
 }
예제 #50
0
 public bool ValidRemoveRightBar(Barring barring, IItemService _itemService)
 {
     barring.Errors.Clear();
     VRemoveRightBar(barring, _itemService);
     return(isValid(barring));
 }
예제 #51
0
 public ItemCommands(IItemService itemService)
 {
     _itemService = itemService;
 }
예제 #52
0
 public bool ValidCreateObject(Barring barring, IBarringService _barringService, IUoMService _uomService, IItemService _itemService, IItemTypeService _itemTypeService,
                               IContactService _contactService, IMachineService _machineService)
 {
     VCreateObject(barring, _barringService, _uomService, _itemService, _itemTypeService, _contactService, _machineService);
     return(isValid(barring));
 }
예제 #53
0
        public CatalogSearchServiceImpl(Func <ICatalogRepository> catalogRepositoryFactory, IItemService itemService, ICatalogService catalogService, ICategoryService categoryService)
        {
            _catalogRepositoryFactory = catalogRepositoryFactory;
            _itemService     = itemService;
            _catalogService  = catalogService;
            _categoryService = categoryService;

            _productSortingAliases["sku"]  = ReflectionUtility.GetPropertyName <CatalogProduct>(x => x.Code);
            _categorySortingAliases["sku"] = ReflectionUtility.GetPropertyName <Category>(x => x.Code);
        }
예제 #54
0
 public Barring VAddLeftBar(Barring barring, IItemService _itemService)
 {
     VHasNoBar(barring, (int)barring.LeftBarItemId, _itemService);
     return(barring);
 }
예제 #55
0
 public bool ValidCreateObject(CoreBuilder coreBuilder, ICoreBuilderService _coreBuilderService, IUoMService _uomService, IItemService _itemService)
 {
     VCreateObject(coreBuilder, _coreBuilderService, _uomService, _itemService);
     return(isValid(coreBuilder));
 }
예제 #56
0
 public bool ValidAddLeftBar(Barring barring, IItemService _itemService)
 {
     barring.Errors.Clear();
     VAddLeftBar(barring, _itemService);
     return(isValid(barring));
 }
예제 #57
0
 public bool ValidUpdateObject(CoreBuilder coreBuilder, ICoreBuilderService _coreBuilderService, IUoMService _uomService, IItemService _itemService)
 {
     coreBuilder.Errors.Clear();
     VUpdateObject(coreBuilder, _coreBuilderService, _uomService, _itemService);
     return(isValid(coreBuilder));
 }
예제 #58
0
 public CoreBuilder VCreateObject(CoreBuilder coreBuilder, ICoreBuilderService _coreBuilderService, IUoMService _uomService, IItemService _itemService)
 {
     VHasUniqueBaseSku(coreBuilder, _coreBuilderService);
     if (!isValid(coreBuilder))
     {
         return(coreBuilder);
     }
     VNameNotEmpty(coreBuilder);
     if (!isValid(coreBuilder))
     {
         return(coreBuilder);
     }
     VHasUoM(coreBuilder, _uomService);
     return(coreBuilder);
 }
예제 #59
0
 public ValidationController(IItemService itemService)
 {
     _itemService = itemService;
 }
예제 #60
0
 public Barring VRemoveRightBar(Barring barring, IItemService _itemService)
 {
     VHasBar(barring, (int)barring.RightBarItemId, _itemService);
     return(barring);
 }