Esempio n. 1
0
        private void cartLookup_ButtonClick(object sender, ButtonPressedEventArgs e)
        {
            if (e.Button.Kind == ButtonPredefines.Plus)
            {
                // TODO: Move to service layer
                ToteCreateCommandArguments args =
                    new ToteCreateCommandArguments(m_purchaseOrder.Session, ToteType.Cart);

                IOutputCommand <Tote> command =
                    m_frontController
                    .RunCommand(ToteCommands.ToteCreate, args) as IOutputCommand <Tote>;
                //--->

                if (command != null && command.Output != null)
                {
                    LoadCartList();
                    cartLookup.EditValue = command.Output;
                }

                return;
            }

            if (e.Button.Kind == ButtonPredefines.Redo)
            {
                LoadCartList();
                return;
            }
        }
Esempio n. 2
0
        void cartLookup_EditValueChanged(object sender, EventArgs e)
        {
            Tote tote = cartLookup.EditValue as Tote;

            if (tote != null)
            {
                IOutputCommand <List <InventoryItem> > command =
                    m_frontController.RunCommand(
                        ToteCommands.ToteContentsSelector,
                        tote
                        ) as IOutputCommand <List <InventoryItem> >;

                if (command != null)
                {
                    Scout.Core.Modules.Warehouse.Shipping.ProcessBulkShipments
                        (m_salesOrder, command.Output);

                    RefreshData();
                }
            }
        }
Esempio n. 3
0
 void putAwayItemsLink_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
 {
     m_frontController.RunCommand(ToteCommands.TotePutAway, m_tote);
 }
Esempio n. 4
0
 private void PrintLabel()
 {
     m_frontColler.RunCommand(ToteCommands.TotePrintLabel, m_tote);
 }