Patch level : 12.0
Files correlati : fp Commento : - Migliorata segnalazione errori - Tolto doppia riga nello sheet a causa di passaggio a TSheet.row(-1)
This commit is contained in:
parent
92ecf0ee56
commit
7c561b2869
@ -488,13 +488,10 @@ void TPA_mask::fill()
|
|||||||
|
|
||||||
TProgress_monitor pi(rec.items(), NULL);
|
TProgress_monitor pi(rec.items(), NULL);
|
||||||
|
|
||||||
// Setto variabili di errore
|
bool first, show, ask = !((show = (first = true)));
|
||||||
static bool first;
|
|
||||||
static bool show;
|
|
||||||
static bool ask;
|
|
||||||
|
|
||||||
first = show = true;
|
// Disabilito la colonna del codice ufficio
|
||||||
ask = false;
|
docs.enable_column(docs.cid2index(S_UFFICIO), false);
|
||||||
|
|
||||||
for (bool okc = rec.move_first(); okc; okc = rec.move_next())
|
for (bool okc = rec.move_first(); okc; okc = rec.move_next())
|
||||||
{
|
{
|
||||||
@ -544,10 +541,16 @@ void TPA_mask::fill()
|
|||||||
{
|
{
|
||||||
disable(DLG_OK);
|
disable(DLG_OK);
|
||||||
|
|
||||||
|
// Segno la riga errata
|
||||||
|
if (first)
|
||||||
|
{
|
||||||
|
// Abilito la colonna del codice ufficio per segnalare l'errore
|
||||||
|
docs.enable_column(docs.cid2index(S_UFFICIO));
|
||||||
|
}
|
||||||
|
docs.set_back_and_fore_color(COLOR_RED, COLOR_WHITE, rec.current_row(), docs.cid2index(S_UFFICIO));
|
||||||
|
|
||||||
if (show)
|
if (show)
|
||||||
{
|
{
|
||||||
// Segno la riga errata
|
|
||||||
docs.set_back_and_fore_color(COLOR_RED, COLOR_WHITE, rec.cursor()->pos());
|
|
||||||
TString msg; msg << "Trovata fattura " << rec.get(DOC_CODNUM).as_string() << "/" << rec.get(DOC_TIPODOC).as_string() << "/" << rec.get(DOC_NDOC).as_int() << " senza nessun codice destinatario/pec, Continuare?";
|
TString msg; msg << "Trovata fattura " << rec.get(DOC_CODNUM).as_string() << "/" << rec.get(DOC_TIPODOC).as_string() << "/" << rec.get(DOC_NDOC).as_int() << " senza nessun codice destinatario/pec, Continuare?";
|
||||||
const bool force_stop = !yesno_box(msg);
|
const bool force_stop = !yesno_box(msg);
|
||||||
if (!first && !ask && !force_stop)
|
if (!first && !ask && !force_stop)
|
||||||
@ -566,6 +569,8 @@ void TPA_mask::fill()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if(rif.full())
|
||||||
|
docs.set_back_and_fore_color(COLOR_WHITE, COLOR_BLACK, rec.cursor()->pos(), docs.cid2index(S_UFFICIO));
|
||||||
row.add(rif);
|
row.add(rif);
|
||||||
row.add(rec.get("17." CFV_PARIFAMM).as_string());
|
row.add(rec.get("17." CFV_PARIFAMM).as_string());
|
||||||
row.add(rec.get("20." CLI_COFI).as_string());
|
row.add(rec.get("20." CLI_COFI).as_string());
|
||||||
@ -586,7 +591,6 @@ void TPA_mask::fill()
|
|||||||
row.add(attach ? "X" : " ");
|
row.add(attach ? "X" : " ");
|
||||||
|
|
||||||
row.add(!td.invio_xml() ? "X" : "");
|
row.add(!td.invio_xml() ? "X" : "");
|
||||||
sht.add(row);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
docs.force_update();
|
docs.force_update();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user