protected virtual void UpdateGridForm(ReconciliationFilterTemplateGrid grid)
        {
            ReconciliationFilterTemplateEditorItem page = (ReconciliationFilterTemplateEditorItem)getEditor().getActivePage();

            page.getForm().EditedObject = page.EditedObject;
            grid.GrilleBrowserForm.displayObject();
            grid.Search(grid.EditedObject.GrilleFilter != null ? grid.EditedObject.GrilleFilter.page : 1);

            /*page.getForm().displayObjectInGridForm();
             * Search(page.EditedObject.GrilleFilter != null ? page.EditedObject.GrilleFilter.page : 1);*/
        }
Пример #2
0
        private void BuildBalance(ReconciliationFilterTemplateGrid grid)
        {
            Measure measure = grid.EditedObject == this.EditedObject.leftGrid ? this.EditedObject.leftMeasure : this.EditedObject.rightMeasure;

            Decimal[] balances = BuildBalance(grid.EditedObject, grid.GrilleBrowserForm.gridBrowser, measure);
            String    credit   = this.EditedObject.useDebitCredit == true ? "Credit: " : "Positive Amount: ";
            String    debit    = this.EditedObject.useDebitCredit == true ? "Debit: " : "Negative Amount: ";
            String    balance  = "Balance: ";

            grid.CreditLabel.Content  = credit + balances[0].ToString("N", CultureInfo.CreateSpecificCulture("de-DE"));
            grid.DebitLabel.Content   = debit + balances[1].ToString("N", CultureInfo.CreateSpecificCulture("de-DE"));
            grid.BalanceLabel.Content = balance + (balances[0] - balances[1]).ToString("N", CultureInfo.CreateSpecificCulture("de-DE"));
        }