Exemplo n.º 1
0
        //:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
        //Event: touchButtonPosToolbarNewFinanceDocument

        void touchButtonPosToolbarNewFinanceDocument_Clicked(object sender, EventArgs e)
        {
            //Call New DocumentFinance Dialog
            PosDocumentFinanceDialog dialogNewDocument   = new PosDocumentFinanceDialog(this, DialogFlags.DestroyWithParent);
            ResponseType             responseNewDocument = (ResponseType)dialogNewDocument.Run();

            if (responseNewDocument == ResponseType.Ok)
            {
            }
            dialogNewDocument.Destroy();
        }
Exemplo n.º 2
0
        public DocumentFinanceDialogPage3(Window pSourceWindow, String pPageName, String pPageIcon, Widget pWidget, bool pEnabled = true)
            : base(pSourceWindow, pPageName, pPageIcon, pWidget, pEnabled)
        {
            //Init private vars
            _pagePad = (_sourceWindow as PosDocumentFinanceDialog).PagePad;
            _session = (_pagePad as DocumentFinanceDialogPagePad).Session;
            _posDocumentFinanceDialog = (_sourceWindow as PosDocumentFinanceDialog);

            //Init Tree
            _treeViewArticles = new TreeViewDocumentFinanceArticle(
                pSourceWindow,
                null, //DefaultValue
                null, //DialogType
                GenericTreeViewMode.Default,
                GenericTreeViewNavigatorMode.Default
                );

            //Settings
            string fontGenericTreeViewFinanceDocumentArticleColumnTitle = GlobalFramework.Settings["fontGenericTreeViewFinanceDocumentArticleColumnTitle"];
            string fontGenericTreeViewFinanceDocumentArticleColumn      = GlobalFramework.Settings["fontGenericTreeViewFinanceDocumentArticleColumn"];

            //Format Columns FontSizes for Touch
            _treeViewArticles.FormatColumnPropertiesForTouch(fontGenericTreeViewFinanceDocumentArticleColumnTitle, fontGenericTreeViewFinanceDocumentArticleColumn);
            //Disable View Button
            _treeViewArticles.Navigator.ButtonView.Sensitive = false;

            PackStart(_treeViewArticles);

            //Events
            _treeViewArticles.RecordAfterInsert += delegate
            {
                //FORCE Assign FriendlyId to Designation
                FIN_Article article = (_treeViewArticles.DataSourceRow["Article.Code"] as FIN_Article);
                treeViewArticlesRecordAfterChange();
            };
            _treeViewArticles.RecordAfterDelete += delegate { treeViewArticlesRecordAfterChange(); };
            _treeViewArticles.RecordAfterUpdate += delegate { treeViewArticlesRecordAfterChange(); };
        }