Rock.Model.FinancialBatchService.Get C# (CSharp) Method

Get() public method

Gets the specified name prefix.
public Get ( string namePrefix, DefinedValueCache currencyType, DefinedValueCache creditCardType, System.DateTime transactionDate, System.TimeSpan batchTimeOffset, List batches = null ) : FinancialBatch
namePrefix string The name prefix.
currencyType DefinedValueCache Type of the currency.
creditCardType DefinedValueCache Type of the credit card.
transactionDate System.DateTime The transaction date.
batchTimeOffset System.TimeSpan The batch time offset.
batches List The batches.
return FinancialBatch
        public FinancialBatch Get( string namePrefix, DefinedValueCache currencyType, DefinedValueCache creditCardType,
            DateTime transactionDate, TimeSpan batchTimeOffset, List<FinancialBatch> batches = null )
        {
            return Get( namePrefix, string.Empty, currencyType, creditCardType, transactionDate, batchTimeOffset, batches );
        }

Same methods

FinancialBatchService::Get ( string namePrefix, string nameSuffix, DefinedValueCache currencyType, DefinedValueCache creditCardType, System.DateTime transactionDate, System.TimeSpan batchTimeOffset, List batches = null ) : FinancialBatch

Usage Example

Example #1
0
        /// <summary>
        /// Handles the Delete event of the grdFinancialBatch control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="RowEventArgs"/> instance containing the event data.</param>
        protected void rGridBatch_Delete(object sender, RowEventArgs e)
        {
            var FinancialBatchService = new Rock.Model.FinancialBatchService();

            Rock.Model.FinancialBatch FinancialBatch = FinancialBatchService.Get((int)rGridBatch.DataKeys[e.RowIndex]["id"]);
            if (FinancialBatch != null)
            {
                FinancialBatchService.Delete(FinancialBatch, CurrentPersonId);
                FinancialBatchService.Save(FinancialBatch, CurrentPersonId);
            }

            BindGrid();
        }
All Usage Examples Of Rock.Model.FinancialBatchService::Get
FinancialBatchService