/// <summary>
        /// Initialises a new instance of the <see cref="GetPositionReportDataCommand"/> class.
        /// </summary>
        /// <param name="logger">The logger.</param>
        /// <param name="userIdentity">The user identity.</param>
        /// <param name="dateTimeService">The date-time service.</param>
        /// <param name="fundRepository">The fund repository.</param>
        /// <param name="valuationRepository">The valuation repository</param>
        /// <param name="orderManagementService">The order management service</param>
        /// <param name="forwardContractRepository">The forward Contract Repository</param>
        /// <param name="mfgiRepository">The MFGI Repository.</param>
        /// <param name="structureRepository">The fund structure repository</param>
        public GetPositionReportDataCommand(
            ILogger logger,
            IUserIdentity userIdentity,
            IDateTimeService dateTimeService,
            IFundRepository fundRepository,
            IValuationRepository valuationRepository,
            IOrderManagementService orderManagementService,
            IForwardContractRepository forwardContractRepository,
            IMfgiRepository mfgiRepository,
            IStructureRepository structureRepository)

        {
            Guard.IsNotNull(logger, "logger");
            Guard.IsNotNull(userIdentity, "uderIdentity");
            Guard.IsNotNull(dateTimeService, "dateTimeService");
            Guard.IsNotNull(fundRepository, "fundRepository");
            Guard.IsNotNull(valuationRepository, "valuationRepository");
            Guard.IsNotNull(orderManagementService, "orderManagementService");
            Guard.IsNotNull(forwardContractRepository, "forwardContractRepository");
            Guard.IsNotNull(mfgiRepository, "mfgiRepository");
            Guard.IsNotNull(structureRepository, "structureRepository");

            this.logger                    = logger;
            this.userIdentity              = userIdentity;
            this.dateTimeService           = dateTimeService;
            this.fundRepository            = fundRepository;
            this.valuationRepository       = valuationRepository;
            this.orderManagementService    = orderManagementService;
            this.forwardContractRepository = forwardContractRepository;
            this.mfgiRepository            = mfgiRepository;
            this.structureRepository       = structureRepository;
        }
 public OrderManagementController(ILogger logger,
                                  OrderManagementSettings orderManagementSettings,
                                  ILocalizationService localizationService,
                                  ISettingService settingService,
                                  IOrderManagementService orderManagementService,
                                  IFTPService ftpService,
                                  IGLSService glsService,
                                  IQuickPayApiServices quickPayService,
                                  IReOrderService reOrderService,
                                  IEventPublisher eventPublisher)
 {
     this._logger                 = logger;
     this._settings               = orderManagementSettings;
     this._settingService         = settingService;
     this._orderManagementService = orderManagementService;
     this._localizationService    = localizationService;
     this._ftpService             = ftpService;
     this._glsService             = glsService;
     this._quickPayService        = quickPayService;
     this._reOrderService         = reOrderService;
     this._eventPublisher         = eventPublisher;
 }
Exemplo n.º 3
0
        public OrdersController(
            IOrderRetrievalService orderRetrievalService,
            IOrderManagementService orderManagementService,
            IRegistrationRetrievalService registrationRetrievalService,
            IRegistrationAccessControlService registrationAccessControlService,
            IRegistrationService registrationService)
        {
            _orderRetrievalService = orderRetrievalService ?? throw
                                         new ArgumentNullException(nameof(orderRetrievalService));

            _orderManagementService = orderManagementService ?? throw
                                          new ArgumentNullException(nameof(orderManagementService));

            _registrationAccessControlService = registrationAccessControlService ?? throw
                                                    new ArgumentNullException(nameof(registrationAccessControlService));

            _registrationService = registrationService ?? throw
                                       new ArgumentNullException(nameof(registrationService));

            _registrationRetrievalService = registrationRetrievalService ?? throw
                                                new ArgumentNullException(nameof(registrationRetrievalService));
        }
 public StatisticController()
 {
     orderService = new OrderManagementService();
 }
Exemplo n.º 5
0
 public OrderController()
 {
     orderService = new OrderManagementService();
 }
 public ManagementReservationsController(IOrderManagementService service, ILogger <ApiController> logger) : base(logger)
 {
     _service = service;
 }
 public ManagementDeliveriesController(IOrderManagementService service, ILogger <ApiController> logger) : base(logger)
 {
     _service = service;
 }
Exemplo n.º 8
0
        public void GetShippingOrderByCustomerId(int cust_id)
        {
            //Create the authentication header, initialize with credentials, and
            //create the service proxy. For details, see the API Developer's
            //Guide and the Reference Library CHM.
            Authentication_class var_auth   = new Authentication_class();
            AuthenticationHeader authHeader = var_auth.getAuthentication_header();

            AsmRepository.SetServiceLocationUrl("http://mncsvasm.mskydev1.local/asm/all/servicelocation.svc");
            IOrderManagementService orderManagementService = AsmRepository.GetServiceProxyCachedOrDefault <IOrderManagementService>(authHeader);

            BaseQueryRequest request = new BaseQueryRequest();

            //Page = 0 returns a maximum of 20 records. If you want all reecords, you must
            //iterate through the pages.
            request.PageCriteria = new PageCriteria {
                Page = 0
            };
            CriteriaCollection criteria = new CriteriaCollection();

            //Here is a list of properties you can search on. This list is valid as of MR22.
            //For property descriptions, see the API Reference Library (CHM file).
            //Use Intellisense for the current list of properties.
            //ShippingOrder so = new ShippingOrder();
            //so.AgreementId;
            //so.Comment;
            //so.CreateDateTime;
            //so.CustomerId;
            //so.CustomFields.Add;
            //so.Destination;
            //so.FinancialAccountId;
            //so.FullyReceiveReturnedOrder;
            //so.Id;
            //so.IgnoreAgreementId;
            //so.OldStatusId;
            //so.ParentOrderId;
            //so.ReceivedQuantity;
            //so.Reference;
            //so.ReturnedQuantity;
            //so.SandboxId;
            //so.SandboxSkipValidation;
            //so.ShipByDate;
            //so.ShipFromStockHandlerId;
            //so.ShippedDate;
            //so.ShippedQuantity;
            //so.ShippingMethodId;
            //so.ShippingOrderLines.Add;
            //so.ShipToAddressId;
            //so.ShipToPartyId;
            //so.ShipToPostalCode;
            //so.StatusId;
            //so.TotalQuantity;
            //so.TrackingNumbers;
            //so.TypeId;
            //By default, the search uses a logical AND between search criteria.
            //Use || to perform a logical OR.
            criteria.Add("CustomerId", cust_id);
            request.FilterCriteria = criteria;


            ShippingOrderCollection soc = orderManagementService.GetShippingOrders(request);

            if (soc != null && soc.Items.Count > 0)
            {
                foreach (ShippingOrder shippingOrder in soc.Items)
                {
                    Console.WriteLine("Found Shipping Order ID: {0}", shippingOrder.Id);
                }
            }
            else
            {
                Console.WriteLine("No records found.");
            }
            Console.ReadLine();
        }
Exemplo n.º 9
0
 public OrderServiceContract(IOrderManagementService orderManagementService)
 {
     _orderManagementService = orderManagementService;
 }