示例#1
0
    private void SaveItem()
    {
        IPickListService pls = new PickListService();
        PickList         npl = pls.AddNewPickList(txtPicklistName.Text);

        if (npl != null)
        {
            Response.Redirect(string.Format("~/{0}.aspx?entityId={1}", "PickListView", npl.ItemId), false);
        }
    }
        public PlaceOrderHandler(
            SubscriberRegistry <OrderShipped> subscriptionRegistry)
        {
            _context = new FulfillmentDB();

            _customerService = new CustomerService(
                _context.GetCustomerRepository());
            _productService = new ProductService(
                _context.GetProductRepository());
            _inventoryAllocationService = new InventoryAllocationService(
                _context.GetWarehouseRepository());
            _pickListService = new PickListService(
                _context.GetPickListRepository());

            _subscriptionRegistry = subscriptionRegistry;
        }
示例#3
0
    private void SaveItem()
    {
        IPickListService pls = new PickListService();

        if (PickList.NameAlreadyExists(txtPicklistName.Text))
        {
            throw new ValidationException(GetLocalResourceObject("error_InvalidPickListName").ToString());
        }
        else
        {
            PickList npl = pls.AddNewPickList(txtPicklistName.Text, cboDefaultLanguage.SelectedValue);
            if (npl != null)
            {
                Response.Redirect(string.Format("~/{0}.aspx?entityId={1}", "PickListView", npl.ItemId), false);
            }
        }
    }
        public FulfillmentService()
        {
            FulfillmentDB.Initialize();

            FulfillmentDB context = new FulfillmentDB();

            _customerService = new CustomerService(
                context.GetCustomerRepository());
            _productService = new ProductService(
                context.GetProductRepository());
            _inventoryAllocationService = new InventoryAllocationService(
                context.GetWarehouseRepository());
            _pickListService = new PickListService(
                context.GetPickListRepository());

            _messageQueue = new MsmqMessageQueueOutbound <
                Messages.PlaceOrder>(
                ".",
                typeof(Messages.PlaceOrder).FullName);
        }
示例#5
0
    private void SaveItem()
    {
        IPickListService pls = new PickListService();
        PickList npl = pls.AddNewPickList(txtPicklistName.Text);
        if (npl != null)
        {
            Response.Redirect(string.Format("~/{0}.aspx?entityId={1}", "PickListView", npl.ItemId), false);

        }
    }