switch (_docType) { case PrintMgmtDocumentType::CustCollectionLetter: _result.result(ssrsReportStr(custCollectionJourXXX, Report)); break; }
[ExtensionOf(classStr(CustCollectionJourDP))]
final class CustCollectionJourDP_Extension
{
protected void populateCustCollectionJourTmp(
CustCollectionLetterJour _custCollectionLetterJour,
CustTable _custTable,
CustCollectionLetterTrans _custCollectionLetterTrans,
FormLetterRemarks _formLetterRemarks,
TaxSpec _taxSpec,
TransDate _postingsUntil)
{
next populateCustCollectionJourTmp(_custCollectionLetterJour, _custTable, _custCollectionLetterTrans,
_formLetterRemarks, _taxSpec, _postingsUntil);
custCollectionJourTmp.CompanyEmail = companyInfo.email();
custCollectionJourTmp.CompanyPhone1 = companyInfo.phone();
}
}
class PrintMgmtDocTypeCollectionLetter
{
[SubscribesTo(classstr(PrintMgmtDocType),delegateStr(PrintMgmtDocType,getDefaultReportFormatDelegate))]
public static void PrintMgmtDocType_getDefaultReportFormatDelegate(PrintMgmtDocumentType _docType, EventHandlerResult _result)
{
switch (_doctype)
{
case PrintMgmtDocumentType::CustCollectionLetter:
_result.result(ssrsReportStr(CustCollectionJourXXX,Report));
break;
}
}
}
/// <summary>
/// Extension of the <c>PrintMgmtDelegatesHandler</c> class, add mail body to Print management setting
/// </summary>
[ExtensionOf(classStr(PrintMgmtDelegatesHandler))]
internal final class PrintMgmtDelegatesHandler_Extension
{
protected static PrintMgmtReportFormatName getDefaultReportFormat(PrintMgmtDocumentType _docType)
{
///another of my code here
}
}
André Arnaud de Cal...
292,160
Super User 2025 Season 1
Martin Dráb
230,962
Most Valuable Professional
nmaenpaa
101,156