Exemple #1
0
        private void OnProcessPending(object sender, DataEventArgs <int> e)
        {
            if (e.Value == 0)
            {
                //Ejecuta el Proceso de Put Away de la mercancia Pendiente
                PutAwayPendingQuantities();
            }
            else if (e.Value == 1)
            {
                //Lama al view que maneja el Receiving

                /*
                 * IReceivingPresenter presenter = container.Resolve<IReceivingPresenter>();
                 * region.Shell.ShowViewInShell(presenter.View);
                 * App.curPresenter = typeof(ICrossDockPresenter);
                 * presenter.SetDocument(View.Model.Document);
                 */


                //Lama al view que maneja el Cross Dock
                IReceivingPresenter presenter = container.Resolve <IReceivingPresenter>();
                presenter.SetDocument(View.Model.Document);

                InternalWindow window = Util.GetInternalWindow(this.Window.Parent, "Receiving Process");
                presenter.Window = window;
                window.GridContent.Children.Add((ReceivingView)presenter.View);
                window.Show();
            }
        }
Exemple #2
0
        void Shell_LoadInquiry(object sender, DataEventArgs<string> e)
        {
            if (string.IsNullOrEmpty(e.Value))
                return;

            if (e.Value == curLook && window != null && window.IsVisible)
                return;


            ClassEntity clsEntity = Shell.CboEntity.SelectedItem as ClassEntity;

            IQueriesPresenter presenter = container.Resolve<IQueriesPresenter>();
            bool result = presenter.LoadShortCut(e.Value, clsEntity.ShortcutColumnID);

            if (result)
            {
                window = Util.GetInternalWindow(Shell.ParentContent.WindowsContainer, "Inquiry Shortcut");
                presenter.Window = window;
                window.GridContent.Children.Add((QueriesView)presenter.View);
                window.Show();
                curLook = e.Value;
                return;
            }

            if (e.Value == curLook)
                return;

            curLook = e.Value;
            Util.ShowMessage("No record found.");
            
        }
Exemple #3
0
        public ToolWindow ShowViewInWindow(UserControlBase view)
        {
            //throw new NotImplementedException();
            InternalWindow dialog = new InternalWindow();

            dialog.Parent        = ShellPanel();
            dialog.CanResize     = true;
            dialog.ShowStatusBar = false;
            dialog.StartPosition = ToolWindowStartPosition.CenterParent;
            dialog.GridContent.Children.Add(view);
            dialog.Show();
            return(dialog);
        }
Exemple #4
0
        public void SetWindow(ModuleSubmenu ms)
        {
            InternalWindow window = new InternalWindow();

            window.Parent        = this.content.WindowsContainer as Panel;
            window.CanResize     = true;
            window.ShowStatusBar = false;
            window.Header        = ms.Name;
            window.StartPosition = ToolWindowStartPosition.CenterParent;
            window.Height        = SystemParameters.FullPrimaryScreenHeight - 150;
            window.Width         = SystemParameters.FullPrimaryScreenWidth - 10;
            window.Icon          = new BitmapImage(new Uri(ms.IconPath, UriKind.Relative));
            //window.Width = 800;

            //window.Icon = Util.GetImageSource(ms.Image);
            window.GridContent.Children.Add((UserControlBase)ms.Module.Execute(ms.PresenterType, window));
            window.Show();
        }
Exemple #5
0
        private void OnViewConnections(object sender, EventArgs e)
        {
            ProcessWindow pw = new  ProcessWindow("Loading Connections ... ");

            try
            {
                IConnectionPresenter presenter = container.Resolve <ConnectionPresenter>();

                InternalWindow window = Util.GetInternalWindow(this.Window.Parent, "Connections");
                presenter.Window = window;
                window.GridContent.Children.Add((ConnectionView)presenter.View);
                window.Show();
            }
            catch { }
            finally
            {
                pw.Close();
            }
        }
Exemple #6
0
        void Shell_LoadInquiry(object sender, DataEventArgs <string> e)
        {
            if (string.IsNullOrEmpty(e.Value))
            {
                return;
            }

            if (e.Value == curLook && window != null && window.IsVisible)
            {
                return;
            }


            ClassEntity clsEntity = Shell.CboEntity.SelectedItem as ClassEntity;

            IQueriesPresenter presenter = container.Resolve <IQueriesPresenter>();
            bool result = presenter.LoadShortCut(e.Value, clsEntity.ShortcutColumnID);

            if (result)
            {
                window           = Util.GetInternalWindow(Shell.ParentContent.WindowsContainer, "Inquiry Shortcut");
                presenter.Window = window;
                window.GridContent.Children.Add((QueriesView)presenter.View);
                window.Show();
                curLook = e.Value;
                return;
            }

            if (e.Value == curLook)
            {
                return;
            }

            curLook = e.Value;
            Util.ShowMessage("No record found.");
        }
Exemple #7
0
 public ToolWindow ShowViewInWindow(UserControlBase view)
 {
     //throw new NotImplementedException();
     InternalWindow dialog = new InternalWindow();
     dialog.Parent = ShellPanel();
     dialog.CanResize = true;
     dialog.ShowStatusBar = false;
     dialog.StartPosition = ToolWindowStartPosition.CenterParent;
     dialog.GridContent.Children.Add(view);
     dialog.Show();
     return dialog;
 }
Exemple #8
0
        public void SetWindow(ModuleSubmenu ms)
        {
            InternalWindow window = new InternalWindow();            
            window.Parent = this.content.WindowsContainer as Panel;
            window.CanResize = true;
            window.ShowStatusBar = false;
            window.Header = ms.Name;
            window.StartPosition = ToolWindowStartPosition.CenterParent;
            window.Height = SystemParameters.FullPrimaryScreenHeight - 150;
            window.Width = SystemParameters.FullPrimaryScreenWidth - 10;
            window.Icon =  new BitmapImage(new Uri(ms.IconPath, UriKind.Relative));
            //window.Width = 800;

            //window.Icon = Util.GetImageSource(ms.Image);            
            window.GridContent.Children.Add((UserControlBase)ms.Module.Execute(ms.PresenterType, window));
            window.Show();
        }
Exemple #9
0
 public void ShowMainWindow()
 {
     InternalWindow.Show();
 }