From 3e90ff34998617cc4aa430af2823489741537d3b Mon Sep 17 00:00:00 2001 From: Alessandro Bonazzi Date: Mon, 13 Dec 2021 23:12:56 +0100 Subject: [PATCH] Patch level : 12.0 1100 Files correlati : f151.dir f151.trr ca1.exe ca2.exe ca3.exe ca3100.uml ca3100a.rep ca3100b.rep ca3200.uml ca3200a.rep ca3200b.rep ca3300.uml ca3300a.rep ca3300b.rep ca3300c.rep ca3300d.rep ca3600.uml ca3600a.rep ca3700.uml ca3700a.rep ca3700b.rep ca3800.uml ca3800a.rep ca3800as.rep ca3800b.rep ca3800bs.rep ca3800c.rep ca3800cs.rep ca3883.cpp ca3900.uml ca3900a.rep Commento : MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Aggiunta contabilità separata alle stampe di analitica. Aggiunto meccanismo per lanciare le stampe in batch. Sintassi: ca3 -7 -b rint|xport|Ecel|PD|esto|Base|isualizza> = 0; f--) - { - TMask_field& campo = m.fld(f); - const TFieldref* fref = campo.field(); - if (fref) - { - if (!query || campo.in_key(0)) - { - const TString& str = fref->read(ini, defpar); - if (str.not_empty()) - { - campo.set(str); - if (query) - { - tmp.format("%d=%s", campo.dlg(), (const char *) str); - } - } - } - } - } - ini.set_paragraph(defpar); -} -void TReport_application::mask2ini(const TMask& m, TConfig& ini) -{ - ini.set("Firm", get_firm(), "Transaction"); - ini.set("User", user()); - ini.set("HostName", get_hostname()); - - int year, release, tag, patch; - if (get_version_info(year, release, tag, patch)) - { - TString80 ver; - ver.format("%d %d.%d-%d", year, release, tag, patch); - ini.set("Version", ver); - } - - for (int f = 0; f < m.fields(); f++) - { - TMask_field& campo = m.fld(f); - if (campo.shown()) - { - const TFieldref* fr = campo.field(); - if (fr) - { - if (campo.empty()) - fr->write(ini, "Main", " "); - else - { - if (campo.class_id() == CLASS_DATE_FIELD && campo.right_justified()) - { - const TDate d(campo.get()); - fr->write(ini, "Main", d.string(ANSI)); - } - else - fr->write(ini, "Main", campo.get()); - } - } - } - } - ini.set_paragraph("Main"); // Reimposta paragrafo standard -} - // @cmember Esegue la stampa void TReport_application::execute_print(TReport_book & book, TAutomask & mask, TReport & rep, export_type type) { diff --git a/src/include/repapp.h b/src/include/repapp.h index 5f473ed65..4d17ea55f 100644 --- a/src/include/repapp.h +++ b/src/include/repapp.h @@ -49,8 +49,6 @@ protected: // TApplication // @cmember Ritorna il report virtual TReport & get_report(const TAutomask & m) pure; - void ini2mask(TConfig& ini, TMask& m, bool query); - void mask2ini(const TMask& m, TConfig& ini); virtual void execute_print(TReport_book & book, TAutomask & mask, TReport & rep, export_type type = _export_printer); public: