C# Class RockWeb.Blocks.Finance.TransactionDetail

Inheritance: Rock.Web.UI.RockBlock, IDetailBlock
Show file Open project: SparkDevNetwork/Rock

Private Properties

Property Type Description
BindAccounts void
BindDropdowns void
BindImages void
GetTransaction FinancialTransaction
HideDialog void
SetCreditCardVisibility void
SetEditMode void
SetHeadingInfo void
ShowAccountDialog void
ShowDialog void
ShowDialog void
ShowEditDetails void
ShowNextButton void
ShowReadOnlyDetails void
ShowRefundDialog void
gAccountsEdit_AddClick void
gAccountsEdit_GridRebind void
gAccountsEdit_RowDataBound void

Public Methods

Method Description
ShowDetail ( int transactionId ) : void

Shows the detail.

ShowDetail ( int transactionId, int batchId ) : void

Shows the detail.

Protected Methods

Method Description
AccountName ( int accountId ) : string

Accounts the name.

Block_BlockUpdated ( object sender, EventArgs e ) : void

Handles the BlockUpdated event of the Block control.

GetDefinedValue ( int definedValueId ) : string

Gets the defined value.

GetFinancialGatewayName ( int gatewayId, RockContext rockContext ) : string

Gets the name of the financial gateway.

ImageUrl ( int binaryFileId, int maxWidth = null, int maxHeight = null ) : string

Images the URL.

LoadViewState ( object savedState ) : void

Restores the view-state information from a previous user control request that was saved by the M:System.Web.UI.UserControl.SaveViewState method.

OnInit ( EventArgs e ) : void

Raises the E:System.Web.UI.Control.Init event.

OnLoad ( EventArgs e ) : void

Raises the E:System.Web.UI.Control.Load event.

OnPreRender ( EventArgs e ) : void

Raises the E:System.Web.UI.Control.PreRender event.

SaveViewState ( ) : object

Saves any user control view-state changes that have occurred since the last page postback.

cbIsRefund_CheckedChanged ( object sender, EventArgs e ) : void

Handles the CheckedChanged event of the cbIsRefund control.

ddlCurrencyType_SelectedIndexChanged ( object sender, EventArgs e ) : void

Handles the SelectedIndexChanged event of the ddlCurrencyType control.

dlImages_ItemDataBound ( object sender, System.Web.UI.WebControls.DataListItemEventArgs e ) : void

Handles the ItemDataBound event of the dlImages control.

gAccountsEdit_DeleteClick ( object sender, RowEventArgs e ) : void

Handles the DeleteClick event of the gAccountsEdit control.

gAccountsEdit_EditClick ( object sender, RowEventArgs e ) : void

Handles the EditClick event of the gAccountsEdit control.

imgupImage_ImageRemoved ( object sender, ImageUploaderEventArgs e ) : void

Handles the ImageRemoved event of the imgupImage control.

imgupImage_ImageUploaded ( object sender, ImageUploaderEventArgs e ) : void

Handles the ImageUploaded event of the imgupImage control.

lbAddTransaction_Click ( object sender, EventArgs e ) : void
lbCancel_Click ( object sender, EventArgs e ) : void

Handles the Click event of the lbCancel control.

lbEdit_Click ( object sender, EventArgs e ) : void

Handles the Click event of the lbEdit control.

lbRefundTransaction_Click ( object sender, EventArgs e ) : void
lbSave_Click ( object sender, EventArgs e ) : void

Handles the Click event of the lbSave control.

lbShowMore_Click ( object sender, EventArgs e ) : void

Handles the Click event of the lbShowMore control.

mdAccount_SaveClick ( object sender, EventArgs e ) : void

Handles the SaveClick event of the mdAccount control.

mdRefund_SaveClick ( object sender, EventArgs e ) : void

Handles the SaveClick event of the mdRefund control.

ppAuthorizedPerson_SelectPerson ( object sender, EventArgs e ) : void

Handles the SelectPerson event of the ppAuthorizedPerson control.

Private Methods

Method Description
BindAccounts ( ) : void

Binds the transaction details.

BindDropdowns ( RockContext rockContext ) : void

Binds the dropdowns.

BindImages ( ) : void
GetTransaction ( int transactionId, RockContext rockContext = null ) : FinancialTransaction

Gets the transaction.

HideDialog ( ) : void

Hides the dialog.

SetCreditCardVisibility ( ) : void

Sets the credit card visibility.

SetEditMode ( bool editable ) : void

Sets the edit mode.

SetHeadingInfo ( FinancialTransaction txn ) : void

Sets the heading information.

ShowAccountDialog ( System.Guid guid ) : void

Shows the account dialog.

ShowDialog ( ) : void

Shows the dialog.

ShowDialog ( string dialog ) : void

Shows the dialog.

ShowEditDetails ( FinancialTransaction txn, RockContext rockContext ) : void

Shows the edit details.

ShowNextButton ( int transactionId, int batchId ) : void

Navigates to the next transaction in the list.

ShowReadOnlyDetails ( FinancialTransaction txn ) : void

Shows the read only details.

ShowRefundDialog ( ) : void

Shows the refund dialog.

gAccountsEdit_AddClick ( object sender, EventArgs e ) : void

Handles the AddClick event of the gAccountsEdit control.

gAccountsEdit_GridRebind ( object sender, EventArgs e ) : void

Handles the GridRebind event of the gAccountsEdit control.

gAccountsEdit_RowDataBound ( object sender, System.Web.UI.WebControls.GridViewRowEventArgs e ) : void

Handles the RowDataBound event of the gAccountsEdit control.

Method Details

AccountName() protected method

Accounts the name.
protected AccountName ( int accountId ) : string
accountId int The account identifier.
return string

Block_BlockUpdated() protected method

Handles the BlockUpdated event of the Block control.
protected Block_BlockUpdated ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
return void

GetDefinedValue() protected method

Gets the defined value.
protected GetDefinedValue ( int definedValueId ) : string
definedValueId int The defined value identifier.
return string

GetFinancialGatewayName() protected method

Gets the name of the financial gateway.
protected GetFinancialGatewayName ( int gatewayId, RockContext rockContext ) : string
gatewayId int The gateway identifier.
rockContext Rock.Data.RockContext The rock context.
return string

ImageUrl() protected method

Images the URL.
protected ImageUrl ( int binaryFileId, int maxWidth = null, int maxHeight = null ) : string
binaryFileId int The binary file identifier.
maxWidth int The maximum width.
maxHeight int The maximum height.
return string

LoadViewState() protected method

Restores the view-state information from a previous user control request that was saved by the M:System.Web.UI.UserControl.SaveViewState method.
protected LoadViewState ( object savedState ) : void
savedState object An that represents the user control state to be restored.
return void

OnInit() protected method

Raises the E:System.Web.UI.Control.Init event.
protected OnInit ( EventArgs e ) : void
e System.EventArgs An object that contains the event data.
return void

OnLoad() protected method

Raises the E:System.Web.UI.Control.Load event.
protected OnLoad ( EventArgs e ) : void
e System.EventArgs The object that contains the event data.
return void

OnPreRender() protected method

Raises the E:System.Web.UI.Control.PreRender event.
protected OnPreRender ( EventArgs e ) : void
e System.EventArgs An object that contains the event data.
return void

SaveViewState() protected method

Saves any user control view-state changes that have occurred since the last page postback.
protected SaveViewState ( ) : object
return object

ShowDetail() public method

Shows the detail.
public ShowDetail ( int transactionId ) : void
transactionId int The transaction identifier.
return void

ShowDetail() public method

Shows the detail.
public ShowDetail ( int transactionId, int batchId ) : void
transactionId int The transaction identifier.
batchId int
return void

cbIsRefund_CheckedChanged() protected method

Handles the CheckedChanged event of the cbIsRefund control.
protected cbIsRefund_CheckedChanged ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
return void

ddlCurrencyType_SelectedIndexChanged() protected method

Handles the SelectedIndexChanged event of the ddlCurrencyType control.
protected ddlCurrencyType_SelectedIndexChanged ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
return void

dlImages_ItemDataBound() protected method

Handles the ItemDataBound event of the dlImages control.
protected dlImages_ItemDataBound ( object sender, System.Web.UI.WebControls.DataListItemEventArgs e ) : void
sender object The source of the event.
e System.Web.UI.WebControls.DataListItemEventArgs The instance containing the event data.
return void

gAccountsEdit_DeleteClick() protected method

Handles the DeleteClick event of the gAccountsEdit control.
protected gAccountsEdit_DeleteClick ( object sender, RowEventArgs e ) : void
sender object The source of the event.
e RowEventArgs The instance containing the event data.
return void

gAccountsEdit_EditClick() protected method

Handles the EditClick event of the gAccountsEdit control.
protected gAccountsEdit_EditClick ( object sender, RowEventArgs e ) : void
sender object The source of the event.
e RowEventArgs The instance containing the event data.
return void

imgupImage_ImageRemoved() protected method

Handles the ImageRemoved event of the imgupImage control.
protected imgupImage_ImageRemoved ( object sender, ImageUploaderEventArgs e ) : void
sender object The source of the event.
e ImageUploaderEventArgs The instance containing the event data.
return void

imgupImage_ImageUploaded() protected method

Handles the ImageUploaded event of the imgupImage control.
protected imgupImage_ImageUploaded ( object sender, ImageUploaderEventArgs e ) : void
sender object The source of the event.
e ImageUploaderEventArgs The instance containing the event data.
return void

lbAddTransaction_Click() protected method

protected lbAddTransaction_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

lbCancel_Click() protected method

Handles the Click event of the lbCancel control.
protected lbCancel_Click ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
return void

lbEdit_Click() protected method

Handles the Click event of the lbEdit control.
protected lbEdit_Click ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
return void

lbRefundTransaction_Click() protected method

protected lbRefundTransaction_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

lbSave_Click() protected method

Handles the Click event of the lbSave control.
protected lbSave_Click ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
return void

lbShowMore_Click() protected method

Handles the Click event of the lbShowMore control.
protected lbShowMore_Click ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
return void

mdAccount_SaveClick() protected method

Handles the SaveClick event of the mdAccount control.
protected mdAccount_SaveClick ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
return void

mdRefund_SaveClick() protected method

Handles the SaveClick event of the mdRefund control.
protected mdRefund_SaveClick ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
return void

ppAuthorizedPerson_SelectPerson() protected method

Handles the SelectPerson event of the ppAuthorizedPerson control.
protected ppAuthorizedPerson_SelectPerson ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
return void