Показать сообщение отдельно
Старый 02.07.2019, 16:00   #387  
axm2017 is offline
axm2017
Участник
 
64 / 63 (3) ++++
Регистрация: 15.05.2017
Смотрю очередной SSRS отчет PSAManageInvoice

порадовало что на каждой строке отчета вызывается (в классе дата провайдера)

X++:
protected void initPSAManageInvoiceTmp(TableId _tableID)
    {
        Notes lineNotes;
        ProjTable projTable;
        ProjInvoiceEmplDetail projInvoiceEmplDetail;
        ProjInvoiceCostDetail projInvoiceCostDetail;
        ProjInvoiceItemDetail projInvoiceItemDetail;
        ProjInvoiceRevenueDetail projInvoiceRevenueDetail;
        ProjInvoiceOnAccDetail projInvoiceOnAccDetail;
        ProjInvoiceRevenue projInvoiceRev;

        ProjProposalJour projProposalJour = ProjProposalJour::find(projInvoiceJour.ProposalId);
        tmpPSAManageInvoice.clear();

        if (printDocuLine && docuRef != null)
        {
            lineNotes = Docu::concatDocuRefNotes(docuRef);
        }

        tmpPSAManageInvoice.CompanyPhone                = companyInfo.phone();
        tmpPSAManageInvoice.CompanyTelefax              = companyInfo.teleFax();
        tmpPSAManageInvoice.CompanyGiro                 = companyInfo.Giro;
        tmpPSAManageInvoice.CompanyCoRegNum             = companyInfo.CoRegNum;
        tmpPSAManageInvoice.CompanyDebitDirectId        = BankAccountTable::findByCompany(companyInfo.DataArea, companyInfo.Bank).DebitDirectId;
        tmpPSAManageInvoice.DeliveryName                = companyInfo.Name;
        tmpPSAManageInvoice.DeliveryAddress             = companyInfo.postalAddress().Address;
        tmpPSAManageInvoice.InvoiceNum                  = projInvoiceJour.ProjInvoiceId;
        tmpPSAManageInvoice.InvoiceDate                 = projInvoiceJour.InvoiceDate;
        tmpPSAManageInvoice.DueDate                     = projInvoiceJour.DueDate;
        tmpPSAManageInvoice.CustAccountExt              = projInvoiceJour.InvoiceAccount;
        tmpPSAManageInvoice.CustCompanyName             = projInvoiceJour.DeliveryName;
        tmpPSAManageInvoice.CustCompanyAddress          = custTable.address();
        tmpPSAManageInvoice.CustCompanyPhone            = custTable.phone();
        tmpPSAManageInvoice.CustCompanyTelefax          = custTable.telefax();
        tmpPSAManageInvoice.PaymTermId                  = custTable.PaymTermId;
        tmpPSAManageInvoice.ContractId                  = projInvoiceJour.ProjInvoiceProjId;
        tmpPSAManageInvoice.OurAccountNum               = projInvoiceJour.ourAccountNum();
        tmpPSAManageInvoice.CurrencyCode                = projInvoiceJour.CurrencyId;
        tmpPSAManageInvoice.CompanyLogo                 = FormLetter::companyLogo();
        tmpPSAManageInvoice.TotalDisc                   = projInvoiceJour.EndDisc;
        tmpPSAManageInvoice.LineTxt                     = projInvoiceDetailLine.Txt;
Нормализация, скорость работы? Не не слышал.