예제 #1
0
 public IQuotationService GetQuotationService(IQuotationService inject)
 {
     if (inject != null){
         _quotationService = inject;
     }
     return _quotationService;
 }
예제 #2
0
 public QuotationsController(IQuotationService quotationService, ICustomerService customerService, IProductService productService, ITaxService taxService)
 {
     this.quotationService = quotationService;
     this.customerService  = customerService;
     this.productService   = productService;
     this.taxService       = taxService;
 }
예제 #3
0
 public QuotationController(IBookService bookService, IBookAppUserService bookAppUserService, UserManager <AppUser> userManager, IQuotationService quotationService)
 {
     _bookService        = bookService;
     _bookAppUserService = bookAppUserService;
     _userManager        = userManager;
     _quotationService   = quotationService;
 }
예제 #4
0
 public HomeController(IQuotationService quotationService, IInformationService informationService, IBookCategoryService bookCategoryService, IBookService bookService)
 {
     this._quotationService    = quotationService;
     this._informationService  = informationService;
     this._bookCategoryService = bookCategoryService;
     this._bookService         = bookService;
 }
예제 #5
0
 //auto-wired by asp startup
 public QuotationsController(IQuotationService service, IMapper mapper, ILogger <QuotationsController> logger) :
     base(service, mapper, logger)
 {
     _service = service;
     _mapper  = mapper;
     _logger  = logger;
 }
예제 #6
0
 public Right(ICommentService commentService, IQuotationService quotationService, IAppUserService appUserService, IBookService bookService)
 {
     _commentService   = commentService;
     _quotationService = quotationService;
     _appUserService   = appUserService;
     _bookService      = bookService;
 }
예제 #7
0
 public QuotationItemAppService(IQuotationService QuotationService, IQuotationItemService QuotationItemService, IMediatorHandler bus
                                , INotificationHandler <DomainNotification> notifications)
 {
     _service = QuotationService;
     _quotationItemService = QuotationItemService;
     Bus            = bus;
     _notifications = (DomainNotificationHandler)notifications;
 }
예제 #8
0
 public QuotationController(IQuotationService quotationService, IUserService userService, IRoleService roleService, IAttachmentService attachmentService, IOptions <AppSettings> appSettings)
 {
     this.quotationService  = quotationService;
     this.userService       = userService;
     this.roleService       = roleService;
     this.attachmentService = attachmentService;
     this._appSettings      = appSettings.Value;
 }
예제 #9
0
 public QuotationController(IQuotationService quotationService, ITypeEbookService typeEbookService, IUserService userService, IAuthorService authorService, IBookCategoryService bookCategoryService, IBookService bookService, IEbookService ebookService)
 {
     this._authorService       = authorService;
     this._quotationService    = quotationService;
     this._bookCategoryService = bookCategoryService;
     this._bookService         = bookService;
     this._ebookService        = ebookService;
     this._userService         = userService;
     this._typeEbookService    = typeEbookService;
 }
예제 #10
0
 public QuotationController(ILogger <ExchangeRatesController> logger,
                            IQuotationService quotationService,
                            IExchangeRateService exchangeRateService,
                            ISegmentTaxService segmentTaxService)
 {
     _logger         = logger;
     QuotationSvc    = quotationService;
     ExchangeRateSvc = exchangeRateService;
     SegmentTaxSvc   = segmentTaxService;
 }
예제 #11
0
        public CurrencyQuotationServiceFactory(IQuotationService quotationService)
        {
            _quotationService = quotationService;

            _currencyQuotationServiceDict = new Dictionary <string, ICurrencyQuotation>()
            {
                { "dolar", new DolarQuotationService(_quotationService) },
                { "euro", new EuroQuotationService(_quotationService) },
                { "real", new RealQuotationService(_quotationService) }
            };
        }
예제 #12
0
        private static void DisplayQuotationsByExchange()
        {
            Console.WriteLine("Displaying Quotations by Exchange code.");
            string exchange = ConsoleEx.AskInput <string>("Enter the exchange code: "); //NYSE

            IQuotationService srv = ServiceLocator.Current.GetInstance <IQuotationService>();
            var quotations        = srv.GetQuotations(exchange, string.Empty, DateTime.Now, DateTime.Now);

            quotations.ForEach(ConsoleEx.WriteEntity);

            ConsoleWriteSeparator();
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            _currentContext   = EngineContext.Current.Resolve <IWorkContext>();
            _quotationService = EngineContext.Current.Resolve <IQuotationService>();
            _hmContext        = EngineContext.Current.Resolve <HotelManagementEntities>();

            var que = _hmContext.trn_QuotationDetails.AsQueryable().AsNoTracking();

            if (!Page.IsPostBack)
            {
                PopulateGrid(que);
            }
        }
예제 #14
0
 public DashboardController(IUtilityService utilityservice, IUserCredentialService usercredentialservice, IModuleService iIModuleService, IPurchaseOrderDetailService IPurchaseOrderDetailService, IOutwardToShopService OutwardToShopService, IOutwardToClientService IOutwardToClientService, IShopStockService IShopStockService,
                            IGodownStockService GodownStockService, IStockItemDistributionService IStockItemDistributionService, IRetailBillService IRetailInvoiceMasterService, ISalesBillService ISalesBillService, IEmployeeMasterService EmployeeMasterService, IEntryStockItemService EntryStockItemService,
                            IQuotationService QuotationService, ISalesOrderService SalesOrderService, IDeliveryChallanService DeliveryChallanService, IInwardFromGodownService InwardFromGodownService, IInwardFromShopToGodownService InwardFromShopToGodownService, IInwardInterGodownService InwardInterGodownService, IInwardInterShopService InwardInterShopService,
                            IRequisitionForShopService RequisitionForShopService, IRequisitionForGodownService RequisitionForGodownService, IOutwardShopToGodownService OutwardShopToGodownService, IOutwardInterGodownService OutwardInterGodownService, IOutwardInterShopService OutwardInterShopService, ISalesReturnService SalesReturnService,
                            IPurchaseReturnService PurchaseReturnService, IInwardFromSupplierService InwardFromSupplierService, ICashierSalesOrderService CashierSalesOrderService, ICashierRetailBillService CashierRetailBillService, ICashierTemporaryCashMemoService CashierTemporaryCashMemoService, ICashierSalesBillService CashierSalesBillService,
                            ICashierRefundOrderService CashierRefundOrderService, ICashHandoverService CashHandoverService, ICardChequeHandoverService CardChequeHandoverService, IIncomeExpenseVoucherService IncomeExchangeVoucherService)
 {
     this._IUserCredentialService          = usercredentialservice;
     this._iIModuleService                 = iIModuleService;
     this._IPurchaseOrderDetailService     = IPurchaseOrderDetailService;
     this._IOutwardToClientService         = IOutwardToClientService;
     this._EntryStockItemService           = EntryStockItemService;
     this._IShopStockService               = IShopStockService;
     this._GodownStockService              = GodownStockService;
     this._IStockItemDistributionService   = IStockItemDistributionService;
     this._IRetailInvoiceMasterService     = IRetailInvoiceMasterService;
     this._ISalesBillService               = ISalesBillService;
     this._EmployeeMasterService           = EmployeeMasterService;
     this._QuotationService                = QuotationService;
     this._SalesOrderService               = SalesOrderService;
     this._DeliveryChallanService          = DeliveryChallanService;
     this._RequisitionForShopService       = RequisitionForShopService;
     this._RequisitionForGodownService     = RequisitionForGodownService;
     this._OutwardToShopService            = OutwardToShopService;
     this._OutwardShopToGodownService      = OutwardShopToGodownService;
     this._OutwardInterGodownService       = OutwardInterGodownService;
     this._OutwardInterShopService         = OutwardInterShopService;
     this._InwardFromGodownService         = InwardFromGodownService;
     this._InwardFromShopToGodownService   = InwardFromShopToGodownService;
     this._InwardInterGodownService        = InwardInterGodownService;
     this._InwardInterShopService          = InwardInterShopService;
     this._SalesReturnService              = SalesReturnService;
     this._PurchaseReturnService           = PurchaseReturnService;
     this._InwardFromSupplierService       = InwardFromSupplierService;
     this._CashierSalesOrderService        = CashierSalesOrderService;
     this._CashierRetailBillService        = CashierRetailBillService;
     this._CashierTemporaryCashMemoService = CashierTemporaryCashMemoService;
     this._CashierSalesBillService         = CashierSalesBillService;
     this._CashierRefundOrderService       = CashierRefundOrderService;
     this._CashHandoverService             = CashHandoverService;
     this._CardChequeHandoverService       = CardChequeHandoverService;
     this._IncomeExchangeVoucherService    = IncomeExchangeVoucherService;
 }
예제 #15
0
        public async Task <IActionResult> Quotation(string currency)
        {
            if (currency != null)
            {
                QuotationService  quotation  = null;
                IQuotationService iquotation = QuotationBuilderFactor.GetQuote(currency);
                quotation = new QuotationService(iquotation);
                var json = await quotation.Quote();

                JObject rss = JObject.Parse(json);

                JObject result = (JObject)rss["result"];

                result.Property("updated").Remove();
                result.Property("target").Remove();
                result.Property("value").Remove();
                result.Property("quantity").Remove();

                return(Ok(result));
            }

            throw new NotImplementedException("This currency is not supported");
        }
예제 #16
0
 public SimulationService(IDataService dataService)
 {
     _dataService = dataService ?? DataServiceFactory.Instance().GetService();
     quotationService = new SimulationQuotationService(this);
     //_macdAnalyzer = new MacdAnalyzer(this);
 }
예제 #17
0
 public IndexModel(IQuotationService quotationService)
 {
     _quotationService = quotationService;
     Quotation         = _quotationService.GetTodayQuotation().Result;
 }
예제 #18
0
 public void injectQuotationService(IQuotationService instance)
 {
     quotationService = instance;
 }
예제 #19
0
 public QuotationController(IQuotationService quotationService, ILog logger, IVendorService vendorService)
 {
     _quotationService = quotationService;
     _logger           = logger;
     _vendorService    = vendorService;
 }
예제 #20
0
 public QuotationTests()
 {
     _quotationRepository = new Mock <IQuotationRepository>(MockBehavior.Loose);
     _mapper           = new Mock <IMapper>(MockBehavior.Loose);
     _quotationService = new QuotationService(_quotationRepository.Object, _mapper.Object);
 }
 public QuotationController(ILogger <Quotation> logger, IQuotationService service)
     : base(logger, service)
 {
 }
예제 #22
0
 public QuotationsController(IQuotationService quotationService, IQuotationViewModelSelectListBuilder quotationViewModelSelectListBuilder)
     : base(quotationService, quotationViewModelSelectListBuilder, true)
 {
 }
예제 #23
0
파일: Analyzer.cs 프로젝트: mielk/waluty
 public Analyzer(AssetTimeframe atf, IQuotationService quotationService)
 {
     this.quotationService = quotationService;
     initialize(atf);
 }
예제 #24
0
파일: Analyzer.cs 프로젝트: mielk/waluty
 private IQuotationService getQuotationService()
 {
     if (quotationService == null)
     {
         quotationService = ProcessServiceFactory.Instance().GetQuotationService();
     }
     return quotationService;
 }
예제 #25
0
파일: Analyzer.cs 프로젝트: mielk/waluty
 public void injectQuotationService(IQuotationService quotationService)
 {
     this.quotationService = quotationService;
 }
예제 #26
0
 public PortfolioService(IQuotationService quotationService)
 {
     this.quotationService = quotationService;
 }
예제 #27
0
 public QuotationController(IQuotationService quotationService)
 {
     this._quotationService = quotationService;
 }
 public QuotationsControllerTest()
 {
     _service    = new QuotationServiceFake();
     _controller = new QuotationsController(_service);
 }
 public QuotationsController(IQuotationService quotationService)
 {
     _quotationService = quotationService;
 }
예제 #30
0
 public DolarQuotationService(IQuotationService quotationService)
 {
     _quotationService = quotationService;
 }
 public QuotationController(IQuotationService quotationService, IMapper mapper, IQuotationRepository quotationRepository)
 {
     QuotationService    = quotationService;
     QuotationRepository = quotationRepository;
     Mapper = mapper;
 }
예제 #32
0
 public IQuotationService GetQuotationService()
 {
     if (_quotationService == null) _quotationService = new QuotationService();
     return _quotationService;
 }
 public OrderingService(IQuotationService quotationService, IRepository repository)
 {
     this.quotationService = quotationService;
     this.repository       = repository;
 }
 public RealQuotationService(IQuotationService quotationService)
 {
     _quotationService = quotationService;
 }
예제 #35
0
 public QuotationsApiController(IQuotationRepository quotationRepository, IQuotationService quotationService)
 {
     this.quotationRepository = quotationRepository;
     this.quotationService = quotationService;
 }
예제 #36
0
 public QuotationsApiController(IQuotationRepository quotationRepository, IQuotationService quotationService)
 {
     this.quotationRepository = quotationRepository;
     this.quotationService    = quotationService;
 }
 public EuroQuotationService(IQuotationService quotationService)
 {
     _quotationService = quotationService;
 }
예제 #38
0
 public QuotationService(IQuotationService quote)
 {
     this._quote = quote;
 }