Beispiel #1
0
        ///<summary>Reads the X12 835 text in the MessageText variable and displays the information from Table 1 (Header).</summary>
        private void FillHeader()
        {
            //Payer information
            textPayerName.Text        = x835.GetPayerName();
            textPayerID.Text          = x835.GetPayerID();
            textPayerAddress1.Text    = x835.GetPayerAddress1();
            textPayerCity.Text        = x835.GetPayerCityName();
            textPayerState.Text       = x835.GetPayerState();
            textPayerZip.Text         = x835.GetPayerZip();
            textPayerContactInfo.Text = x835.GetPayerContactInfo();
            //Payee information
            textPayeeName.Text   = x835.GetPayeeName();
            textPayeeIdType.Text = x835.GetPayeeIdType();
            textPayeeID.Text     = x835.GetPayeeId();
            //Payment information
            textTransHandlingDesc.Text = x835.GetTransactionHandlingCodeDescription();
            textPaymentMethod.Text     = x835.GetPaymentMethodDescription();
            textPaymentAmount.Text     = x835.GetPaymentAmount();
            textCreditOrDebit.Text     = x835.GetCreditDebit();
            textAcctNumEndingIn.Text   = x835.GetAccountNumReceivingShort();
            DateTime dateEffective = x835.GetDateEffective();

            if (dateEffective.Year > 1880)
            {
                textDateEffective.Text = dateEffective.ToShortDateString();
            }
            textCheckNumOrRefNum.Text = x835.GetTransactionReferenceNumber();
        }