private void btnAccept_Click(object sender, EventArgs e) { if (!ValidateAllData(true, TErrorProcessingMode.Epm_All)) { return; } if (!FPetraUtilsObject.IsDataSaved()) { return; } if (FPreviouslySelectedDetailRow != null) { FModalResult = FPreviouslySelectedDetailRow.MailingCode; } Close(); }
/// <summary> /// Print the screen data using Word or Excel /// </summary> /// <param name="APrintUsing">The print application</param> /// <param name="APreviewOnly"></param> public void PrintFormData(TStandardFormPrint.TPrintUsing APrintUsing, bool APreviewOnly) { if (ValidateAllData(true, TErrorProcessingMode.Epm_All) && FPetraUtilsObject.IsDataSaved()) { TStandardFormPrint.PrintGrid(APrintUsing, APreviewOnly, FPetraUtilsObject.GetForm().Text, grdDetails, new int[] { 0, 2, 1, 3 }, new int[] { ExtractTDSMExtractTable.ColumnPartnerKeyId, ExtractTDSMExtractTable.ColumnPartnerShortNameId, ExtractTDSMExtractTable.ColumnPartnerClassId, ExtractTDSMExtractTable.ColumnLocationKeyId }); } }