FrmEftPosting.vb

Purpose
The purpose of this form is to allow the User to post Electronic Funds to the Cash Receipt Posted Table and generate any Bank files and reports deemed necessary.

Form Layout

 * 1) The List of Banks
 * 2) The Country of the Bank.  This turns into a dropdown if the Bank chosen is ``International Bank``
 * 3) The Balance Type(s) applicable
 * 4) Previous Posting Message.  This message will only show if the B ank / Balance Type / Week Ending Date combination has already been posted sucessfully
 * 5) The Eft Details grid.  Every record in this grid will be posted
 * 6) Button to generate Eft Edit List Report.  A separate window will open for SSRS
 * 7) Button to post the selected B ank / Balance Type / Week Ending Date combination

Constructor
This is a standard constructor. Contained within it is a call to populate the combo boxes

SetComboBoxItems
This method populates the Bank Type combobox.

cboBankType_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs)
This method fires when the Bank Type combobox is changed. It populates the Country combobox, and the Balance Type combobox if the Bank selected is not International Bank

cboCountry_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs)
This method fires only when the Country combobox changes and is not read-only. This only occurs when  the Bank selected is not International Bank. It populates the Balance Type combobox

cboBalanceType_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs)
This method fires when the Balance Type combobox is changed. It populates the rest of the form which includes checking for previous posting, and displaying a message if necessary, and populating the EFT Grid.

PostEFT
This method is called when the user clicks the button btnPost. First it gets the Eft Records based upon the user's previous selection. It then checks those records for errors and displays them on the grid if necessary. An email is send out confirming that the posting process has begun. The posting procedure, Proc Subway EFTPosting Batch, is then called from inside the ElectronicFundsTransferPosting object. With these results a Cash Receipt Register Report is created and stored on the file share. A number of EFT Session Register reports are also created, if applicable. These are both stored on the file shared and emailed out to the current application user. If the IsTotals field is set a separate HTML email is generated that shows the total by BalanceType. This is emailed to the current application user.