Example #1
0
 public override void Execute()
 {
     ViewLoader.Instance().CreateFormWithArgs <mainOrderForm>(
         true,
         OrderService.CreateOrderAsArg(OrderType.PurchaseOrder)
         );
 }
        public override void Execute()
        {
            ToteContentsTransferCommandArguments contentsTransferArguments =
                Args[0] as ToteContentsTransferCommandArguments;

            if (contentsTransferArguments == null)
            {
                throw new NotSupportedException();
            }

            // Load the tote contents selection form
            ViewLoader.Instance()
            .CreateFormWithArgs <ToteContentsSelectorForm>(
                false, contentsTransferArguments);

            // If inventory items have been selected to transfer
            // then load the transfer form
            if (contentsTransferArguments.ItemsToMove.Count > 0)
            {
                ViewLoader.Instance()
                .CreateFormWithArgs <ToteContentsTransferForm>(
                    false,
                    contentsTransferArguments);
            }
        }
Example #3
0
        public override void Execute()
        {
            m_capture = Scout.Core.Data.CreateEntity <InventoryCapture>(m_session);

            ViewLoader.Instance()
            .CreateFormWithArgs <InventoryCaptureManager>(true, m_capture);
        }
Example #4
0
 public override void Execute()
 {
     ViewLoader.Instance()
     .CreateFormWithArgs <MaterialsPurchaseOrderForm>(
         false,
         Scout.Core.Data.CreateEntity <MaterialPurchaseOrder>(Scout.Core.Data.GetUnitOfWork()));
 }
Example #5
0
 public static ViewLoader Instance()
 {
     if (m_singleton == null)
     {
         m_singleton = new ViewLoader();
     }
     return(m_singleton);
 }
        public override void Execute()
        {
            BomMasterModel      model      = new BomMasterModel(m_partModelId);
            BomMasterView       view       = new BomMasterView();
            BomMasterController controller = new BomMasterController(model, view);

            ViewLoader.Instance().ShowForm(view, false);
        }
        public override void Execute()
        {
            m_tote          = Scout.Core.Data.CreateEntity <Tote>(m_arguments.UnitOfWork);
            m_tote.Label    = "<new>";
            m_tote.ToteType = m_arguments.ToteType;

            ViewLoader.Instance()
            .CreateFormWithArgs <ToteDetailView>(false, m_tote);
        }
        public override void Execute()
        {
            var orderType = OrderTypeHelpers.GetOrderTypeFromString(m_orderType);
            var order     = OrderService.CreateOrderAsArg(orderType);

            ((Order)order[0]).IsTemplate = true;

            ViewLoader.Instance().CreateFormWithArgs <mainOrderForm>(true, order);
        }
Example #9
0
        public override void Execute()
        {
            if (m_tote == null)
            {
                Scout.Core.UserInteraction.Dialog.ShowMessage("Invalid tote", UserMessageType.Error);
            }

            ViewLoader.Instance()
            .CreateFormWithArgs <ToteAddContentsForm>(
                false, m_tote);
        }
        public override void Execute()
        {
            // Get the service properties which contains the F9 Comments
            InventoryServiceProperties serviceProperties =
                Scout.Core.Service <IInventoryService>().GetServicePropertiesForItem(m_item.Session,
                                                                                     m_item);

            // Load the form.
            ViewLoader.Instance().CreateFormWithArgs <F9CommentsView>(false,
                                                                      serviceProperties);
        }
        public override void Execute()
        {
            BomConfigurationModel model =
                new BomConfigurationModel(m_configuration);

            BomConfigurationView view = new BomConfigurationView();

            BomConfigurationController controller =
                new BomConfigurationController(model, view);

            ViewLoader.Instance().ShowForm(view, false);
        }
        public override void Execute()
        {
            ToteContentsTransferCommandArguments contentsTransferArguments =
                Args[0] as ToteContentsTransferCommandArguments;

            if (contentsTransferArguments == null)
            {
                throw new NotSupportedException();
            }

            // Load the tote contents selection form
            ViewLoader.Instance()
            .CreateFormWithArgs <ToteContentsSelectorForm>(
                false, contentsTransferArguments);
        }
        public override void Execute()
        {
            MaterialsConsumptionModel m_model =
                new MaterialsConsumptionModel(m_configuration);

            PartsConsumptionView m_view =
                new PartsConsumptionView();

            MaterialsConsumptionController controller =
                new MaterialsConsumptionController(m_model, m_view);

            m_controller.PersistenceSave += Controller_OnPersistenceSaved;

            ViewLoader.Instance().ShowForm(m_view, false);
        }
Example #14
0
        public override void Execute()
        {
            // Choose Order Template
            var   view  = new OrderTemplateSelectionView();
            Order order = null;

            view.OnItemSelected         += (ot) => order = OrderService.CreateFromTemplate(ot);
            view.OnEditTemplateSelected += (ot) => order = ot;
            ViewLoader.Instance().ShowForm(view, false);

            // Copy Template Items to New Order
            if (order == null)
            {
                return;
            }

            // Show new order in form
            ViewLoader.Instance().CreateFormWithArgs <mainOrderForm>(true, order);
        }
        public override void Execute()
        {
            ToteContentsTransferCommandArguments arguments
                = Args[0] as ToteContentsTransferCommandArguments;

            if (arguments == null)
            {
                throw new NotSupportedException();
            }

            //Load the tote contents selection form
            ViewLoader.Instance()
            .CreateFormWithArgs <ToteContentsSelectorForm>(
                false, arguments);


            if (arguments.ItemsToMove.Count > 0)
            {
                foreach (InventoryItem item in arguments.ItemsToMove)
                {
                    Scout.Core.Service <IInventoryService>()
                    .RemoveItemFromTote(item);
                }

                try
                {
                    Scout.Core.Data.Save(m_session);
                    Scout.Core.UserInteraction.Dialog.ShowMessage
                        ("Items removed", UserMessageType.Information);
                }
                catch (Exception ex)
                {
                    Scout.Core.UserInteraction.Dialog.ShowMessage
                        (ex.Message, UserMessageType.Error);
                }
            }
        }
Example #16
0
 public override void Execute()
 {
     ViewLoader.Instance()
     .CreateFormWithArgs <MaterialsIssueOutForm>(false, null);
 }
 /// <summary>
 /// Creates an instance of the <cref>CommandInputForm</cref>
 /// </summary>
 public override void Execute()
 {
     ViewLoader.Instance()
     .CreateFormWithArgs <CommandInputForm>(false, Args);
 }
 public override void Execute()
 {
     ViewLoader.Instance()
     .CreateFormWithArgs <ToteTransferForm>(false, Args);
 }
Example #19
0
 public virtual void Show(bool mdiChild, params object[] args)
 {
     ViewLoader.Instance().ShowForm(this, mdiChild);
 }
Example #20
0
 private void LoadReceivingForm(MaterialPurchaseOrder po)
 {
     ViewLoader.Instance()
     .CreateFormWithArgs <MaterialsReceivingForm>(false, new object[] { po });
 }
 public override void Execute()
 {
     ViewLoader.Instance()
     .CreateFormWithArgs <ToteManagerForm>(true, Args);
 }
Example #22
0
 public override void Execute()
 {
     ViewLoader.Instance()
     .CreateFormWithArgs <MaterialsQtyAdjustmentForm2>(false, null);
 }
 public void Execute()
 {
     ViewLoader.Instance()
     .CreateFormWithArgs <InventoryTransactionForm>(true, null);
 }
 public override void Execute()
 {
     ViewLoader.Instance()
     .CreateFormWithArgs <MaterialsLocationTransferForm>(false, null);
 }
Example #25
0
 public override void Execute()
 {
     ViewLoader.Instance()
     .CreateFormWithArgs <MaterialsWarehouseReturnForm>(false, null);
 }