public static void AddColumns(GridView grid, SubTranBook book)
        {
            grid.Columns.Clear();

            AddTemplateFields(grid);

            GridViewHelper.AddDataBoundControl(grid, "Id", Titles.Id);
            GridViewHelper.AddDataBoundControl(grid, "ValueDate", Titles.ValueDate, "{0:d}");
            GridViewHelper.AddDataBoundControl(grid, "Office", Titles.Office);
            GridViewHelper.AddDataBoundControl(grid, "ReferenceNumber", Titles.ReferenceNumber);
            GridViewHelper.AddDataBoundControl(grid, "Party", Titles.Party);

            if (book != SubTranBook.Receipt)
            {
                GridViewHelper.AddDataBoundControl(grid, "PriceType", Titles.PriceType);
            }

            GridViewHelper.AddDataBoundControl(grid, "Amount", Titles.Amount);
            GridViewHelper.AddDataBoundControl(grid, "TransactionTs", Titles.TransactionTimestamp, "{0:d}");
            GridViewHelper.AddDataBoundControl(grid, "User", Titles.User);
            GridViewHelper.AddDataBoundControl(grid, "StatementReference", Titles.StatementReference);

            if (book != SubTranBook.Receipt)
            {
                GridViewHelper.AddDataBoundControl(grid, "book", Titles.Book);
            }

            GridViewHelper.AddDataBoundControl(grid, "FlagBackgroundColor", Titles.FlagBackgroundColor);
            GridViewHelper.AddDataBoundControl(grid, "FlagForegroundColor", Titles.FlagForegroundColor);
        }
Пример #2
0
 private void CreateBoundFields()
 {
     this.grid.AutoGenerateColumns = false;
     GridViewHelper.AddDataBoundControl(this.grid, "item", "");
     GridViewHelper.AddDataBoundControl(this.grid, "previous_period", Titles.PreviousPeriod, "{0:N}", true);
     GridViewHelper.AddDataBoundControl(this.grid, "current_period", Titles.CurrentPeriod, "{0:N}", true);
     GridViewHelper.AddDataBoundControl(this.grid, "account_id", Titles.AccountId);
     GridViewHelper.AddDataBoundControl(this.grid, "is_retained_earning", string.Empty);
 }
Пример #3
0
        private void CreateColumns()
        {
            this.trialBalanceGridView.AutoGenerateColumns = false;

            GridViewHelper.AddDataBoundControl(this.trialBalanceGridView, "account_number", Titles.AccountNumber);
            GridViewHelper.AddDataBoundControl(this.trialBalanceGridView, "account", Titles.Account);
            GridViewHelper.AddDataBoundControl(this.trialBalanceGridView, "previous_debit", Titles.Debit, "{0:N}", true);
            GridViewHelper.AddDataBoundControl(this.trialBalanceGridView, "previous_credit", Titles.Credit, "{0:N}", true);
            GridViewHelper.AddDataBoundControl(this.trialBalanceGridView, "debit", Titles.Debit, "{0:N}", true);
            GridViewHelper.AddDataBoundControl(this.trialBalanceGridView, "credit", Titles.Credit, "{0:N}", true);
            GridViewHelper.AddDataBoundControl(this.trialBalanceGridView, "closing_debit", Titles.Debit, "{0:N}", true);
            GridViewHelper.AddDataBoundControl(this.trialBalanceGridView, "closing_credit", Titles.Credit, "{0:N}", true);
        }
        private void CreateBoundFields()
        {
            this.grid.AutoGenerateColumns = false;

            GridViewHelper.AddDataBoundControl(this.grid, "value_date", Titles.ValueDate, "{0:d}");
            GridViewHelper.AddDataBoundControl(this.grid, "tran_code", Titles.TranCode);
            GridViewHelper.AddDataBoundControl(this.grid, "statement_reference", Titles.StatementReference);
            GridViewHelper.AddDataBoundControl(this.grid, "debit", Titles.Debit, "{0:N}", true);
            GridViewHelper.AddDataBoundControl(this.grid, "credit", Titles.Credit, "{0:N}", true);
            GridViewHelper.AddDataBoundControl(this.grid, "balance", Titles.Balance, "{0:N}", true);
            GridViewHelper.AddDataBoundControl(this.grid, "office", Titles.Office);
            GridViewHelper.AddDataBoundControl(this.grid, "account", Titles.Account);
        }
Пример #5
0
        private void CreateColumns()
        {
            this.AddTemplateFields();
            GridViewHelper.AddDataBoundControl(this.statementGridView, "TranCode", Titles.TranCode);
            GridViewHelper.AddDataBoundControl(this.statementGridView, "ValueDate", Titles.ValueDate, "{0:d}");
            GridViewHelper.AddDataBoundControl(this.statementGridView, "Debit", Titles.Debit, "{0:N}", true);
            GridViewHelper.AddDataBoundControl(this.statementGridView, "Credit", Titles.Credit, "{0:N}", true);
            GridViewHelper.AddDataBoundControl(this.statementGridView, "Balance", Titles.Balance, "{0:N}", true);
            GridViewHelper.AddDataBoundControl(this.statementGridView, "StatementReference", Titles.StatementReference);

            GridViewHelper.AddDataBoundControl(this.statementGridView, "Book", Titles.Book);
            GridViewHelper.AddDataBoundControl(this.statementGridView, "ItemCode", Titles.ItemCode);
            GridViewHelper.AddDataBoundControl(this.statementGridView, "ItemName", Titles.ItemName);
            GridViewHelper.AddDataBoundControl(this.statementGridView, "FlagBg", string.Empty);
            GridViewHelper.AddDataBoundControl(this.statementGridView, "FlagFg", string.Empty);
        }
Пример #6
0
 private void CreateColumns()
 {
     this.AddTemplateFields();
     GridViewHelper.AddDataBoundControl(this.statementGridView, "tran_code", Titles.TranCode);
     GridViewHelper.AddDataBoundControl(this.statementGridView, "value_date", Titles.ValueDate, "{0:d}");
     GridViewHelper.AddDataBoundControl(this.statementGridView, "debit", Titles.Debit, "{0:N}", true);
     GridViewHelper.AddDataBoundControl(this.statementGridView, "credit", Titles.Credit, "{0:N}", true);
     GridViewHelper.AddDataBoundControl(this.statementGridView, "balance", Titles.Balance, "{0:N}", true);
     GridViewHelper.AddDataBoundControl(this.statementGridView, "statement_reference", Titles.StatementReference);
     GridViewHelper.AddDataBoundControl(this.statementGridView, "office", Titles.Office);
     GridViewHelper.AddDataBoundControl(this.statementGridView, "book", Titles.Book);
     GridViewHelper.AddDataBoundControl(this.statementGridView, "account_number", Titles.AccountNumber);
     GridViewHelper.AddDataBoundControl(this.statementGridView, "account", Titles.Account);
     GridViewHelper.AddDataBoundControl(this.statementGridView, "flag_bg", string.Empty);
     GridViewHelper.AddDataBoundControl(this.statementGridView, "flag_fg", string.Empty);
 }
Пример #7
0
        internal static void AddColumns(GridView grid)
        {
            grid.Columns.Clear();

            AddTemplateFields(grid);

            GridViewHelper.AddDataBoundControl(grid, "TransactionMasterId", Titles.Id);
            GridViewHelper.AddDataBoundControl(grid, "TransactionCode", Titles.TranCode);
            GridViewHelper.AddDataBoundControl(grid, "Book", Titles.Book);
            GridViewHelper.AddDataBoundControl(grid, "ValueDate", Titles.ValueDate, "{0:d}");
            GridViewHelper.AddDataBoundControl(grid, "ReferenceNumber", Titles.ReferenceNumber);
            GridViewHelper.AddDataBoundControl(grid, "StatementReference", Titles.StatementReference);

            GridViewHelper.AddDataBoundControl(grid, "PostedBy", Titles.PostedBy);
            GridViewHelper.AddDataBoundControl(grid, "Office", Titles.Office);

            GridViewHelper.AddDataBoundControl(grid, "Status", Titles.Status);
            GridViewHelper.AddDataBoundControl(grid, "VerifiedBy", Titles.VerifiedBy);
            GridViewHelper.AddDataBoundControl(grid, "VerifiedOn", Titles.VerifiedOn, "{0:g}");
            GridViewHelper.AddDataBoundControl(grid, "Reason", Titles.Reason);
            GridViewHelper.AddDataBoundControl(grid, "TransactionTs", Titles.TransactionTimestamp, "{0:g}");
            GridViewHelper.AddDataBoundControl(grid, "FlagBg", "FlagBg");
            GridViewHelper.AddDataBoundControl(grid, "FlagFg", "FlagFg");
        }