zoukankan      html  css  js  c++  java
  • D365 增加新的报表格式代替标准报表

    D365 增加新的报表格式代替标准报表

    1: 增加客制化报表格式到打印管理

    [ExtensionOf(classStr(PrintMgmtReportFormatPopulator))]
    public final class PrintMgmtReportFormatPopulatorAppSuite_myClass_Extension
    {
        #ISOCountryRegionCodes
        #PrintMgmtSetup
    
        protected void addDocuments()
        {
            // Purchasing documents
            this.myAddPurchaseDocuments();
    
            next addDocuments();
        }
    
        ///
        /// Adds purchase records to the PrintMgmtReportFormat table.
        ///
        public void myAddPurchaseDocuments()
        {
            this.addOther(PrintMgmtDocumentType::PurchAgreementConfirmation, ssrsReportStr(myPurchPromptLetterReport, Report), ssrsReportStr(myPurchPromptLetterReport, Report), #NoCountryRegionId);
            this.addOther(PrintMgmtDocumentType::PurchAgreementConfirmation, ssrsReportStr(mySecondPurchPromptLetterReport, Report), ssrsReportStr(mySecondPurchPromptLetterReport, Report), #NoCountryRegionId);
        }
    
    }

    2:扩展PrintMgmtDelegatesHandler的getDefaultReportFormatDelegateHandler方法

    final class PrintMgmtDelegatesHandlerKKC_Extension
    {
        public static void getDefaultReportFormatDelegateHandler(PrintMgmtDocumentType _docType, EventHandlerResult _result)
        {
            next getDefaultReportFormatDelegateHandler(_docType, _result);
            
            if (_docType == PrintMgmtDocumentType::PurchaseOrderConfirmationRequest
            ||  _docType == PrintMgmtDocumentType::PurchaseOrderRequisition)
            {
                PrintMgmtDocInstance    printMgmtDocInstance    = PrintMgmtDocInstance::findByPrintType(0,0,PrintMgmtNodeType::Purch,PrintMgmtDocumentType::PurchaseOrderRequisition,PrintMgmtDocInstanceType::Original);
                PrintMgmtSettings       printMgmtSettings       = PrintMgmtSettings::find(printMgmtDocInstance.RecId,printMgmtDocInstance.PriorityId,true);
                PrintMgmtReportFormat   poPrintMgmtReportFormat = PrintMgmtReportFormat::find(printMgmtSettings.ReportFormat);
                switch (poPrintMgmtReportFormat.Name)
                {
                    case ssrsReportStr(PurchPurchaseOrder, MyReport):
                        _result.result(ssrsReportStr(PurchPurchaseOrder, MyReport));
                        break;
                }
            }
        }
    }


  • 相关阅读:
    python 多进程下的日志打印
    卷积神经网络思考点,卷积网络就是很多个小分类器构建的网络
    ShuffleNetV1 paper reading
    find,grep,mv 组合使用,对大量数据切割方便
    常用的开源协议
    python3 日志重复打印logger
    pytorch clamp 与clamp_区别
    version GLIBCXX_3.4.21 not defined in file libstdc++.so.6 with link time reference
    pytorch,cuda8,torch.cuda.is_available return flase (ubuntu14)
    opencv remap 函数
  • 原文地址:https://www.cnblogs.com/dingkui/p/14716029.html
Copyright © 2011-2022 走看看