Exemple #1
0
        public void Show()
        {
            ParentScreen.ModuleParentScreen_Init();
            ParentScreen.ShowInTaskbar = false;

            if (VinaApp.OpenModules.ContainsKey(VinaApp.CurrentModuleName))
            {
                ((BaseModuleERP)VinaApp.OpenModules[VinaApp.CurrentModuleName]).ParentScreen.WindowState = FormWindowState.Minimized;
            }
            ParentScreen.Show();
            ParentScreen.Focus();
            //ActionInvalidate();

            //ParentScreen.ShowSearchResultsPanel();
            if (ParentScreen.IsExistsGridSearchResult() && Toolbar.CurrentObjectID <= 0)
            {
                //ResetSearch();
                Search();
            }
        }
Exemple #2
0
        public virtual void ModuleAfterSaved(int iObjectID)
        {
            ParentScreen.Focus();

            //Invalidate Toolbar button after save
            ParentScreen.InvalidateToolbarAfterActionSave();

            //Invalidate toolbar in the module's context
            InvalidateToolbar();

            //Invalidate controls
            //InvalidateFieldGroupControls(BaseToolbar.ModuleNone);

            //Invalidate search result control
            InvalidateSearchResultsControl(null, string.Empty);

            //Save User Audit is Nothing

            //Set modus action of toolbar to none
            Toolbar.ModuleAction = BaseToolbar.ModuleNone;
        }