private void GetDetailDataFromControlsManual(GiftBatchTDSARecurringGiftDetailRow ARow) { if (ARow == null) { return; } //Handle gift table fields for first detail only if (ARow.DetailNumber == 1) { ARecurringGiftRow giftRow = GetRecurringGiftRow(ARow.GiftTransactionNumber); giftRow.DonorKey = Convert.ToInt64(txtDetailDonorKey.Text); if (cmbDetailMethodOfGivingCode.SelectedIndex == -1) { giftRow.SetMethodOfGivingCodeNull(); } else { giftRow.MethodOfGivingCode = cmbDetailMethodOfGivingCode.GetSelectedString(); } if (cmbDetailMethodOfPaymentCode.SelectedIndex == -1) { giftRow.SetMethodOfPaymentCodeNull(); } else { giftRow.MethodOfPaymentCode = cmbDetailMethodOfPaymentCode.GetSelectedString(); } if (txtDetailReference.Text.Length == 0) { giftRow.SetReferenceNull(); } else { giftRow.Reference = txtDetailReference.Text; } if (cmbDetailReceiptLetterCode.SelectedIndex == -1) { giftRow.SetReceiptLetterCodeNull(); } else { giftRow.ReceiptLetterCode = cmbDetailReceiptLetterCode.GetSelectedString(); } } if (txtDetailCostCentreCode.Text.Length == 0) { ARow.SetCostCentreCodeNull(); } else { ARow.CostCentreCode = txtDetailCostCentreCode.Text; } if (txtDetailAccountCode.Text.Length == 0) { ARow.SetAccountCodeNull(); } else { ARow.AccountCode = txtDetailAccountCode.Text; } if (ARow.IsRecipientKeyNull()) { ARow.SetRecipientDescriptionNull(); } else { UpdateRecipientKeyText(ARow.RecipientKey); } if (txtDetailRecipientLedgerNumber.Text.Length == 0) { ARow.SetRecipientFieldNull(); ARow.SetRecipientLedgerNumberNull(); } else { ARow.RecipientField = Convert.ToInt64(txtDetailRecipientLedgerNumber.Text); ARow.RecipientLedgerNumber = ARow.RecipientField; } }