Пример #1
0
        private void LoadTrx(BaseTrx trx)
        {
            int     period    = GetPeriod(trx.TrxDate);
            BankTrx normalTrx = trx as BankTrx;

            if (normalTrx != null)
            {
                if (Handler.IncludeNormalTrx(normalTrx))
                {
                    foreach (TrxSplit split in normalTrx.Splits)
                    {
                        if (Handler.IncludeSplit(split))
                        {
                            if (split.Budget == null)
                            {
                                SplitDetailRow row = GetSplitDetailRow(split);
                                row.Cells[period].Splits.Add(split);
                            }
                            else
                            {
                                BudgetDetailRow budgetRow = GetBudgetDetailRow(split.Budget);
                                budgetRow.Cells[period].Splits.Add(split);
                            }
                        }
                    }
                }
            }
            else
            {
                BudgetTrx budgetTrx = trx as BudgetTrx;
                if (budgetTrx != null)
                {
                    if (Handler.IncludeBudgetTrx(budgetTrx))
                    {
                        BudgetDetailRow row = GetBudgetDetailRow(budgetTrx);
                        row.Cells[period].Budgets.Add(budgetTrx);
                    }
                }
            }
        }
Пример #2
0
 private void Register_ValidationError(BaseTrx objTrx, string strMsg)
 {
     TrxValidationError = strMsg;
 }