public ConnectionPresenter(IUnityContainer container, IConnectionView view,
                                   IShellPresenter regionManager)
        {
            View               = view;
            this.container     = container;
            this.service       = new WMSServiceClient();
            View.Model         = this.container.Resolve <ConnectionModel>();
            this.regionManager = regionManager;

            //Event Delegate
            View.New            += new EventHandler <EventArgs>(this.OnNew);
            View.LoadData       += new EventHandler <DataEventArgs <Connection> >(this.OnLoadData);
            View.LoadChilds     += new EventHandler <DataEventArgs <ConnectionType> >(this.OnLoadChilds);
            View.Save           += new EventHandler <EventArgs>(this.OnSave);
            View.Delete         += new EventHandler <EventArgs>(this.OnDelete);
            View.TestConnection += new EventHandler <EventArgs>(this.OnTestConnection);

            View.Model.ListCnnType = service.GetConnectionType(new ConnectionType());

            if (View.Model.ListCnnType != null && View.Model.ListCnnType.Count == 1)
            {
                LoadChilds(View.Model.ListCnnType[0]);
            }

            View.Model.Record        = null;
            View.DpChilds.Visibility = Visibility.Collapsed;
        }
 public ApplicationStarter Start()
 {
     _bootstrapper = CreateBootstrapper();
     _bootstrapper.Run();
     ShellPresenter = _bootstrapper.Container.Resolve<IShellPresenter>();
     return this;
 }
        public ConnectionPresenter(IUnityContainer container, IConnectionView view,
             IShellPresenter regionManager)
        {
            View = view;
            this.container = container;
            this.service = new WMSServiceClient();
            View.Model = this.container.Resolve<ConnectionModel>();
            this.regionManager = regionManager;

            //Event Delegate
            View.New += new EventHandler<EventArgs>(this.OnNew);
            View.LoadData += new EventHandler<DataEventArgs<Connection>>(this.OnLoadData);
            View.LoadChilds += new EventHandler<DataEventArgs<ConnectionType>>(this.OnLoadChilds);
            View.Save += new EventHandler<EventArgs>(this.OnSave);
            View.Delete += new EventHandler<EventArgs>(this.OnDelete);
            View.TestConnection += new EventHandler<EventArgs>(this.OnTestConnection);

            View.Model.ListCnnType = service.GetConnectionType(new ConnectionType());

            if (View.Model.ListCnnType != null && View.Model.ListCnnType.Count == 1)
                LoadChilds(View.Model.ListCnnType[0]);

            View.Model.Record = null;
            View.DpChilds.Visibility = Visibility.Collapsed;

        }
        public ScheduleInfomationPresenter(IShellPresenter shell, IMaintenanceScheduleModel maintenanceModel)
        {
            _shell = shell;
            _maintenanceModel = maintenanceModel;

            _shell.PropertyChanged += ShellPropertyChanged;
        }
Beispiel #5
0
        public ScheduleInfomationPresenter(IShellPresenter shell, IMaintenanceScheduleModel maintenanceModel)
        {
            _shell            = shell;
            _maintenanceModel = maintenanceModel;

            _shell.PropertyChanged += ShellPropertyChanged;
        }
Beispiel #6
0
        private PopupModalWindow(IShellPresenter presenter)
        {
            ShellPresenter = presenter;

            ClickedDialogButton = DialogButton.ESC;

            m_PropertyChangeHandler = new PropertyChangedNotifyBase();
            m_PropertyChangeHandler.InitializeDependentProperties(this);

            InitializeComponent();

            CommandDetailsExpand = new RichDelegateCommand <object>(UserInterfaceStrings.DetailsExpand,
                                                                    UserInterfaceStrings.DetailsExpand_,
                                                                    UserInterfaceStrings.DetailsExpand_KEYS,
                                                                    ShellPresenter.LoadTangoIcon("go-down"),
                                                                    obj => IsDetailsExpanded = true,
                                                                    obj => CanDetailsExpand);

            AddInputBinding(CommandDetailsExpand.KeyBinding);

            CommandDetailsCollapse = new RichDelegateCommand <object>(UserInterfaceStrings.DetailsCollapse,
                                                                      UserInterfaceStrings.DetailsCollapse_,
                                                                      UserInterfaceStrings.DetailsCollapse_KEYS,
                                                                      ShellPresenter.LoadTangoIcon("go-up"),
                                                                      obj => IsDetailsExpanded = false,
                                                                      obj => CanDetailsCollapse);

            AddInputBinding(CommandDetailsCollapse.KeyBinding);

            m_IsDetailsExpanded = false;
        }
        public CrossDockPresenter(IUnityContainer container, ICrossDockView view, IShellPresenter region)
        {
            View = view;
            this.container = container;
            this.service = new WMSServiceClient();
            this.region = region;
            View.Model = this.container.Resolve<CrossDockModel>();

            //Event Delegate
            View.ProcessPending += new EventHandler<DataEventArgs<int>>(OnProcessPending);
            View.RemoveFromList += new EventHandler<EventArgs>(this.OnRemoveFromList);
            View.AddDocumentToAssigned += new EventHandler<EventArgs>(OnAddDocumentToAssigned);
            View.SearchDocument += new EventHandler<DataEventArgs<string>>(this.OnSearchDocument);
            View.CrossDockPreview += new EventHandler<EventArgs>(OnCrossDockPreview);
            View.ConfirmCrossDock += new EventHandler<EventArgs>(OnConfirmCrossDock);
            View.SearchHistDocument += new EventHandler<DataEventArgs<string>>(this.OnSearchHistDocument);
            View.LoadDetails += new EventHandler<DataEventArgs<Document>>(OnLoadDetails);
            View.ShowTicket += new EventHandler<EventArgs>(OnShowTicket);
            View.ShowCrossDockDocuments += new EventHandler<EventArgs>(OnShowCrossDockDocuments);

            View.Model.AnyReceived = false;

            PutAway = service.GetBinLocation("", true);


            //Si  hay conexion a ERP se habilita el panel de posting
            //if (App.IsConnectedToErpReceving)
                View.Model.Node = service.GetNode(new Node { NodeID = Common.NodeType.Received }).First();
            //else
                //View.Model.Node = service.GetNode(new Node { NodeID = Common.NodeType.Stored }).First();


            //ShowProcessPanel();
         }
Beispiel #8
0
        protected override void CreateShell()
        {
            IShellPresenter presenter = Container.Resolve <ShellPresenter>();

            Container.RegisterInstance <IShellPresenter>(presenter);

            if (!IsPage)
            {
                presenter.Shell.ShowView();
            }
        }
        //private IList<ProductStock> curBinStock { get; set; }



        public KitAssemblyV2Presenter(IUnityContainer container, IKitAssemblyV2View view, IShellPresenter region)
        {
            try
            {
                View = view;
                this.container = container;
                this.service = new WMSServiceClient();
                this.region = region;
                View.Model = this.container.Resolve<KitAssemblyV2Model>();

                //Event Delegate
                View.SearchDocument += new EventHandler<DataEventArgs<string>>(this.OnSearchDocument);
                View.LoadDetails += new EventHandler<DataEventArgs<Document>>(this.OnLoadDetails);
                View.LoadUnits += new EventHandler<DataEventArgs<Product>>(this.OnLoadUnits);
                View.PickComponent += new EventHandler<EventArgs>(this.OnPickComponent);
                View.ReceiveLabel += new EventHandler<DataEventArgs<string>>(this.OnReceivingLabel);
                View.ReceiveLabelList += new EventHandler<EventArgs>(this.OnReceivingLabelList);
                View.PickAtOnce += new EventHandler<EventArgs>(this.OnPickAtOnce);
                //View.LoadProducts += new EventHandler<DataEventArgs<string>>(this.OnLoadProducts);
                View.ChangeStatus += new EventHandler<EventArgs>(this.OnChangeStatus);
                //View.ReceiveLabelTrackOption += new EventHandler<EventArgs>(this.OnReceivingLabelTrackOption);
                //View.LoadProductManualTrackOption += new EventHandler<EventArgs>(this.OnLoadProductManualTrackOption);
                //View.AddManualTrackToList += new EventHandler<EventArgs>(this.OnAddManualTrackToList);
                //View.ReceiveManualTrack += new EventHandler<EventArgs>(this.OnReceiveManualTrack);
                View.SelectedUnit += new EventHandler<EventArgs>(this.OnSelectUnit);
                //View.RemoveManualTrack += new EventHandler<EventArgs>(this.OnRemoveManualTrack);
                View.ShowReceivingTicket += new EventHandler<EventArgs>(this.OnShowReceivingTicket);
                View.PrintLabels += new EventHandler<EventArgs>(this.OnPrintLabels);
                //View.LoadBins += new EventHandler<DataEventArgs<string>>(OnLoadBins);
                View.RemoveFromNode += new EventHandler<DataEventArgs<DocumentBalance>>(OnRemoveFromNode);
                View.RefreshBin +=new EventHandler<EventArgs>(OnRefreshBin);
                View.LateDocuments += new EventHandler<DataEventArgs<bool?>>(this.OnLateDocuments);
                View.NewDocument += new EventHandler<EventArgs>(this.OnNewDocument);

                View.ConfirmOrder += new EventHandler<EventArgs>(this.OnConfirmOrder);

                View.Model.Document = new Document();
                View.Model.AllPicked = true;
                View.Model.PrinterList = App.printerList;
                View.Model.PrinterList.Add(new Printer { PrinterName = WmsSetupValues.DEFAULT });

                //Set Node to Stored Node. (el producto pasa directo por no estar conectado a un ERP)
                View.Model.Node = service.GetNode(new Node { NodeID = NodeType.Process }).First();

                //Cargue de Documentos
                LoadDocuments();

            }
            catch (Exception ex)
            {
                Util.ShowError("Error cargando vista.\n" + ex.Message);
            }

        }
Beispiel #10
0
 public TestPresenter(ITestView view, IGridTestStarter girdTestStarter,
                      IShellPresenter shellPresenter, IOptimizationStarter optimizationStarter, ISensitivityAnalysisStarter sensitivityAnalysisStarter,
                      ICommandBrowserStarter commandBrowserStarter, ISimpleUIStarter simpleUIStarter) : base(view)
 {
     _girdTestStarter            = girdTestStarter;
     _shellPresenter             = shellPresenter;
     _optimizationStarter        = optimizationStarter;
     _sensitivityAnalysisStarter = sensitivityAnalysisStarter;
     _commandBrowserStarter      = commandBrowserStarter;
     _simpleUIStarter            = simpleUIStarter;
 }
        public FileProcessPresenter(IUnityContainer container, IFileProcessView view, IShellPresenter region)
        {
            View = view;
            this.container = container;
            this.region = region;
            this.service = new WMSServiceClient();
            View.Model = this.container.Resolve<FileProcessModel>();

            //Event Delegate
            View.ProcessFile += new EventHandler<DataEventArgs<Stream>>(View_ProcessFile);

            //Load Process
            View.Model.EntityList = service.GetCustomProcess(new CustomProcess { ProcessType = new DocumentType { DocTypeID = SDocType.FileProcess } });

        }
Beispiel #12
0
 public TestPresenter(ITestView view, IGridTestStarter girdTestStarter,
                      IShellPresenter shellPresenter, IOptimizationStarter optimizationStarter, ISensitivityAnalysisStarter sensitivityAnalysisStarter,
                      ICommandBrowserStarter commandBrowserStarter, ISimpleUIStarter simpleUIStarter, IImporterConfigurationDataGenerator dataGenerator,
                      IOSPSuiteLogger logger, IDialogCreator dialogCreator, IDynamicTestPresenter dynamicTestPresenter) : base(view)
 {
     _girdTestStarter            = girdTestStarter;
     _shellPresenter             = shellPresenter;
     _optimizationStarter        = optimizationStarter;
     _sensitivityAnalysisStarter = sensitivityAnalysisStarter;
     _commandBrowserStarter      = commandBrowserStarter;
     _simpleUIStarter            = simpleUIStarter;
     _logger               = logger;
     _dialogCreator        = dialogCreator;
     _dynamicTestPresenter = dynamicTestPresenter;
 }
Beispiel #13
0
        public FileProcessPresenter(IUnityContainer container, IFileProcessView view, IShellPresenter region)
        {
            View           = view;
            this.container = container;
            this.region    = region;
            this.service   = new WMSServiceClient();
            View.Model     = this.container.Resolve <FileProcessModel>();

            //Event Delegate
            View.ProcessFile += new EventHandler <DataEventArgs <Stream> >(View_ProcessFile);

            //Load Process
            View.Model.EntityList = service.GetCustomProcess(new CustomProcess {
                ProcessType = new DocumentType {
                    DocTypeID = SDocType.FileProcess
                }
            });
        }
Beispiel #14
0
        public OrderMngrV2Presenter(IUnityContainer container, IOrderMngrV2View view, IShellPresenter region)
        {
            try
            {
                View           = view;
                this.container = container;
                this.region    = region;
                this.service   = new WMSServiceClient();
                View.Model     = this.container.Resolve <OrderMngrV2Model>();


                //Delegates

                View.LoadDetails += new EventHandler <EventArgs>(View_LoadDetails);

                View.LineChecked += new EventHandler <DataEventArgs <long> >(View_LineChecked);

                View.LineUnChecked += new EventHandler <DataEventArgs <long> >(View_LineUnChecked);

                View.CreateMergedDocument += new EventHandler <EventArgs>(View_CreateMergedDocument);

                View.EnlistDetails += new EventHandler <EventArgs>(View_EnlistDetails);

                View.RefineSearch += new EventHandler <EventArgs>(View_RefineSearch);

                View.BOLineSelected += new EventHandler <DataEventArgs <Product> >(View_BOLineSelected);



                View.DgDetails.MaxHeight = SystemParameters.FullPrimaryScreenHeight - 300;
                View.DgDetails.MinHeight = SystemParameters.FullPrimaryScreenHeight - 300;

                availabilityMark = 1;

                LoadDocuments(true);

                LoadLastestDocuments();
            }
            catch (Exception ex)
            {
                Util.ShowError("Error loading view.\n" + ex.Message);
            }
        }
Beispiel #15
0
        public CompanyPresenter(IUnityContainer container, ICompanyView view, IShellPresenter region)
        {
            View           = view;
            this.container = container;
            this.region    = region;
            this.service   = new WMSServiceClient();
            View.Model     = this.container.Resolve <CompanyModel>();

            //Event Delegate
            View.New             += new EventHandler <EventArgs>(this.OnNew);
            View.LoadData        += new EventHandler <DataEventArgs <Company> >(this.OnLoadData);
            View.Save            += new EventHandler <EventArgs>(this.OnSave);
            View.Delete          += new EventHandler <EventArgs>(this.OnDelete);
            View.SetLogo         += new EventHandler <DataEventArgs <Stream> >(this.OnSetLogo);
            View.ViewConnections += new EventHandler <EventArgs>(this.OnViewConnections);


            ProcessWindow pw = new ProcessWindow("Loading ...");

            View.Model.EntityList = service.GetCompany(new Company());

            //load status
            View.Model.Status = service.GetStatus(new Status {
                StatusType = new StatusType {
                    StatusTypeID = SStatusType.Active
                }
            });

            //los connections
            View.Model.ErpConn = service.GetConnection(new Connection());

            if (View.Model.EntityList != null && View.Model.EntityList.Count > 0)
            {
                LoadData(View.Model.EntityList[0]);
                View.ListRecords.SelectedIndex = 0;
            }

            pw.Close();
        }
Beispiel #16
0
        public CompanyPresenter(IUnityContainer container, ICompanyView view, IShellPresenter region)
        {
            View = view;
            this.container = container;
            this.region = region;
            this.service = new WMSServiceClient();
            View.Model = this.container.Resolve<CompanyModel>();

            //Event Delegate
            View.New += new EventHandler<EventArgs>(this.OnNew);
            View.LoadData += new EventHandler<DataEventArgs<Company>>(this.OnLoadData);
            View.Save += new EventHandler<EventArgs>(this.OnSave);
            View.Delete += new EventHandler<EventArgs>(this.OnDelete);
            View.SetLogo += new EventHandler<DataEventArgs<Stream>>(this.OnSetLogo);
            View.ViewConnections += new EventHandler<EventArgs>(this.OnViewConnections);


            ProcessWindow pw = new ProcessWindow("Loading ...");

            View.Model.EntityList = service.GetCompany(new Company());

            //load status
            View.Model.Status = service.GetStatus(new Status { StatusType = new StatusType {  StatusTypeID = SStatusType.Active } });
            
            //los connections
            View.Model.ErpConn = service.GetConnection(new Connection());

            if (View.Model.EntityList != null && View.Model.EntityList.Count > 0)
            {
                LoadData(View.Model.EntityList[0]);
                View.ListRecords.SelectedIndex = 0;
            }

            pw.Close();

        }
Beispiel #17
0
        public PopupModalWindow(IShellPresenter presenter, string title,
                                object content,
                                DialogButtonsSet buttons, DialogButton button, bool allowEscapeAndCloseButton,
                                double width, double height,
                                object details, double detailsHeight)
            : this(presenter)
        {
            if (presenter == null)
            {
                Owner = Application.Current.MainWindow;
            }
            else
            {
                Owner = presenter.View.Window;
            }

            //DataContext = Owner;

            var zoom = (Double)Application.Current.Resources["MagnificationLevel"];

            Width  = zoom * width;
            Height = zoom * height;

            DetailsHeight = zoom * detailsHeight;

            CommandDetailsCollapse.IconProvider.IconDrawScale = zoom;
            CommandDetailsExpand.IconProvider.IconDrawScale   = zoom;

            Title = title;
            Icon  = null;
            ContentPlaceHolder.Content = content;
            DetailsPlaceHolder.Content = details;
            DialogButtons             = buttons;
            DefaultDialogButton       = button;
            AllowEscapeAndCloseButton = allowEscapeAndCloseButton;
        }
Beispiel #18
0
        public CrossDockPresenter(IUnityContainer container, ICrossDockView view, IShellPresenter region)
        {
            View           = view;
            this.container = container;
            this.service   = new WMSServiceClient();
            this.region    = region;
            View.Model     = this.container.Resolve <CrossDockModel>();

            //Event Delegate
            View.ProcessPending         += new EventHandler <DataEventArgs <int> >(OnProcessPending);
            View.RemoveFromList         += new EventHandler <EventArgs>(this.OnRemoveFromList);
            View.AddDocumentToAssigned  += new EventHandler <EventArgs>(OnAddDocumentToAssigned);
            View.SearchDocument         += new EventHandler <DataEventArgs <string> >(this.OnSearchDocument);
            View.CrossDockPreview       += new EventHandler <EventArgs>(OnCrossDockPreview);
            View.ConfirmCrossDock       += new EventHandler <EventArgs>(OnConfirmCrossDock);
            View.SearchHistDocument     += new EventHandler <DataEventArgs <string> >(this.OnSearchHistDocument);
            View.LoadDetails            += new EventHandler <DataEventArgs <Document> >(OnLoadDetails);
            View.ShowTicket             += new EventHandler <EventArgs>(OnShowTicket);
            View.ShowCrossDockDocuments += new EventHandler <EventArgs>(OnShowCrossDockDocuments);

            View.Model.AnyReceived = false;

            PutAway = service.GetBinLocation("", true);


            //Si  hay conexion a ERP se habilita el panel de posting
            //if (App.IsConnectedToErpReceving)
            View.Model.Node = service.GetNode(new Node {
                NodeID = Common.NodeType.Received
            }).First();
            //else
            //View.Model.Node = service.GetNode(new Node { NodeID = Common.NodeType.Stored }).First();


            //ShowProcessPanel();
        }
Beispiel #19
0
 public HomePresenter(IShellPresenter shellPresenter)
 {
     _shellPresenter = shellPresenter;
 }
 public ContactListPresenter(IServiceLocator serviceLocator, IShellPresenter shellPresenter)
 {
     _shellPresenter = shellPresenter;
     _serviceLocator = serviceLocator;
 }
 public SettingsPresenter(IShellPresenter shellPresenter, ISettings settings)
 {
     _shellPresenter = shellPresenter;
     _settings = settings;
 }
Beispiel #22
0
 public void AttachPresenter(IShellPresenter presenter)
 {
     _presenter = presenter;
     base.AttachPresenter(presenter);
 }
Beispiel #23
0
 public HomePresenter(IShellPresenter shellPresenter)
 {
     _shellPresenter = shellPresenter;
 }
        public ShipperMngrPresenter(IUnityContainer container, IShipperMngrView view, IShellPresenter region)
        {
            try
            {
                View = view;
                this.container = container;
                this.region = region;
                this.service = new WMSServiceClient();
                View.Model = this.container.Resolve<ShipperMngrModel>();


                //Delegates 
                View.AccountSelected += new EventHandler<DataEventArgs<ShowData>>(View_AccountSelected);

                View.LoadDetails += new EventHandler<DataEventArgs<System.Data.DataRow>>(View_LoadDetails);

                View.CreateMergedDocument += new EventHandler<EventArgs>(View_CreateMergedDocument);

                View.EnlistDetails += new EventHandler<EventArgs>(View_EnlistDetails);

                View.CheckLineBalanceBO += new EventHandler<DataEventArgs<object[]>>(View_CheckLineBalanceBO);
                View.CheckLineBalanceCancel += new EventHandler<DataEventArgs<object[]>>(View_CheckLineBalanceCancel);

                View.LineChecked += new EventHandler<DataEventArgs<long>>(View_LineChecked);
                View.LineUnChecked += new EventHandler<DataEventArgs<long>>(View_LineUnChecked);

                View.DocumentChecked += new EventHandler<DataEventArgs<int>>(View_DocumentChecked);
                View.DocumentUnChecked += new EventHandler<DataEventArgs<int>>(View_DocumentUnChecked);

                View.AccountSelectedAllLines += new EventHandler<DataEventArgs<ShowData>>(View_AccountSelectedAllLines);

                View.DateDOBChanged += new EventHandler<DataEventArgs<DateTime?>>(View_DateDOBChanged);
                View.LoadPopupLine += new EventHandler<DataEventArgs<DocumentLine>>(View_LoadPopupLine);

                View.CancelLine += new EventHandler<DataEventArgs<DocumentLine>>(View_CancelLine);
                View.RefreshAddress += new EventHandler<EventArgs>(View_RefreshAddress);





                View.DgDocument.MinHeight = SystemParameters.FullPrimaryScreenHeight - 290;
                View.DgDocument.MaxHeight = SystemParameters.FullPrimaryScreenHeight - 290;
                View.DgDetails.MaxHeight = SystemParameters.FullPrimaryScreenHeight - 300;
                View.DgDetails.MinHeight = SystemParameters.FullPrimaryScreenHeight - 300;

                try {  availabilityMark = double.Parse(Util.GetConfigOption("AVAILMARK")); }
                catch { availabilityMark = 1; }


                //Add Remove Lines
                
                if (Util.AllowOption("REMSOLINE"))
                    View.StkUpdLines.Visibility = Visibility.Visible;
                


                LoadAccounts();
                
                //Cargando los UcPorts
                LoadPorts();

                LoadLastestDocuments();

            }
            catch (Exception ex)
            {
                Util.ShowError("Error loading view.\n" + ex.Message);
            }
        }
 public LoadScreenPresenter(IShellPresenter shellPresenter)
 {
     _shellPresenter = shellPresenter;
 }
 public SensitivityAnalysisStarter(IShellPresenter shellPresenter, ISensitivityAnalysisTask sensitivityAnalysisTask, ISimulationRepository simulationRepository)
 {
     _shellPresenter          = shellPresenter;
     _sensitivityAnalysisTask = sensitivityAnalysisTask;
     _simulationRepository    = simulationRepository;
 }
Beispiel #27
0
 public StartModules(IUnityContainer container, IShellPresenter regionManager)
 {
     this.container = container;
     this.regionManager = regionManager;
     moduleRegions = new ObservableCollection<ModuleRegion>();
 }
        public ReceivingPresenter(IUnityContainer container, IReceivingView view, IShellPresenter region)
        {
            try
            {
                View = view;
                this.container = container;
                this.service = new WMSServiceClient();
                this.region = region;
                View.Model = this.container.Resolve<ReceivingModel>();

                //Event Delegate
                View.SearchDocument += new EventHandler<DataEventArgs<string>>(this.OnSearchDocument);
                View.LoadDetails += new EventHandler<DataEventArgs<Document>>(this.OnLoadDetails);
                View.LoadUnits += new EventHandler<DataEventArgs<Product>>(this.OnLoadUnits);
                View.ReceiveProduct += new EventHandler<EventArgs>(this.OnReceivingProduct);
                View.ReceiveLabel += new EventHandler<DataEventArgs<string>>(this.OnReceivingLabel);
                View.ReceiveLabelList += new EventHandler<EventArgs>(this.OnReceivingLabelList);
                View.PostReceipt += new EventHandler<EventArgs>(this.OnPostReceipt);
                View.ReceiptAtOnce += new EventHandler<EventArgs>(this.OnReceiptAtOnce);
                View.CreateEmptyReceipt += new EventHandler<EventArgs>(this.OnCreateEmptyReceipt);
                //View.LoadProducts += new EventHandler<DataEventArgs<string>>(this.OnLoadProducts);
                //View.LoadVendors += new EventHandler<DataEventArgs<string>>(this.OnLoadVendors);
                View.ChangeStatus += new EventHandler<EventArgs>(this.OnChangeStatus);

                View.ReceiveLabelTrackOption += new EventHandler<EventArgs>(this.OnReceivingLabelTrackOption);

                //View.LoadProductManualTrackOption += new EventHandler<EventArgs>(this.OnLoadProductManualTrackOption);
                //View.ReceiveManualTrack += new EventHandler<EventArgs>(this.OnReceiveManualTrack);

                //View.AddManualTrackToList += new EventHandler<EventArgs>(this.OnAddManualTrackToList);
                //View.RemoveManualTrack += new EventHandler<EventArgs>(this.OnRemoveManualTrack);

                View.SelectedUnit += new EventHandler<EventArgs>(this.OnSelectUnit);
                View.LoadPostedReceipt += new EventHandler<DataEventArgs<Document>>(this.OnLoadPostedReceipt);
                View.ReversePosted += new EventHandler<DataEventArgs<string>>(this.OnReversePosted);
                View.ShowReceivingTicket += new EventHandler<EventArgs>(this.OnShowReceivingTicket);
                View.GoToPrintLabels += new EventHandler<EventArgs>(this.OnGoToPrintLabels);
                View.LateDocuments += new EventHandler<DataEventArgs<bool?>>(this.OnLateDocuments);
                View.RemoveFromNode += new EventHandler<DataEventArgs<DocumentBalance>>(this.OnRemoveFromNode);
                View.AssignBinToProduct += new EventHandler<DataEventArgs<string>>(OnAssignBinToProduct);
                View.SelectPack += new EventHandler<DataEventArgs<Unit>>(OnSelectPack);
                //View.LoadBins += new EventHandler<DataEventArgs<string>>(OnLoadBins);
                View.GoToCrossDock += new EventHandler<EventArgs>(OnGoToCrossDock);
                View.ReceiveReturn += new EventHandler<DataEventArgs<double>>(View_ReceiveReturn);


                //Version Adicionada para IMAGE Services
                View.ReceiptAcknowledge += new EventHandler<DataEventArgs<double>>(View_ReceiptAcknowledge);
                // CAA [2010/05/03]
                View.ShowPurchaseReceive += new EventHandler<EventArgs>(this.OnShowPurchaseReceive);

                //Set Node to Receiving Node. Cuando se crea el PR se pasa el producto a Stored
                View.Model.Node = service.GetNode(new Node { NodeID = Common.NodeType.Received }).First();

                //Mostrar la columna de Arrived                
                if (Util.GetConfigOption("RECACKN").Equals("T"))
                {
                    View.DgDocument.Columns["Date5"].Visible = true; //Arrived
                    View.GBArrive.Visibility = Visibility.Visible;
                }
                

                //Cargue de Documentos
                LoadDocuments();
            }
            catch (Exception ex)
            {
                Util.ShowError("Error loading view.\n" + ex.Message);
            }

        }
Beispiel #29
0
 public DockSitePresenter(IViewStrategy viewStrategy, IBinder binder, IShellPresenter shell)
 {
     _viewStrategy = viewStrategy;
     _binder       = binder;
     _shell        = shell;
 }
Beispiel #30
0
 public PopupModalWindow(IShellPresenter window, string title, object content,
                         DialogButtonsSet buttons, DialogButton button, bool allowEscapeAndCloseButton, double width, double height)
     : this(window, title, content, buttons, button, allowEscapeAndCloseButton, width, height, null, 0)
 {
 }
 public ApplicationController(IShellPresenter presenter, IEventAggregator aggregator)
 {
     _presenter = presenter;
     _event = aggregator.GetEvent<ExitApplicationEvent>();
 }
 public OptimizationStarter(IShellPresenter shellPresenter, IParameterIdentificationTask parameterIdentificationTask, ISimulationRepository simulationRepository)
 {
     _shellPresenter = shellPresenter;
     _parameterIdentificationTask = parameterIdentificationTask;
     _simulationRepository        = simulationRepository;
 }