Patch level : 2.0 472
Files correlati : Ricompilazione Demo : [ ] Commento : Aggiunta traduzione alle commesse git-svn-id: svn://10.65.10.50/trunk@11124 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
ffccf3bbea
commit
6b55a43ff9
@ -56,22 +56,13 @@ bool TForm_contixcdc::validate(TForm_item &cf, TToken_string &s)
|
||||
// !FAX numero di fax (con prefisso)
|
||||
// !REGSOC numero di registrazione presso il Tribunale
|
||||
// !CCIAA numero di registrazione presso la camera di commercio
|
||||
// nota: la relazione della ditta è così strutturata:
|
||||
// %NDITTE (9) Dati ditte
|
||||
// + %ANAGR (6) Anagrafica generale (indirizzo, ecc.)
|
||||
// + %COMUNI (113@) Comune di residenza
|
||||
// + %COMUNI (213@) Comune di residenza fiscale
|
||||
TLocalisamfile firm(LF_NDITTE);
|
||||
TLocalisamfile anag(LF_ANAG);
|
||||
firm.put("CODDITTA",main_app().get_firm());
|
||||
firm.read();
|
||||
anag.put("TIPOA",firm.get("TIPOA"));
|
||||
anag.put("CODANAGR",firm.get("CODANAGR"));
|
||||
anag.read();
|
||||
|
||||
TString in(s.get());
|
||||
if (in[0]!='!')
|
||||
{
|
||||
cf.set(firm.curr().get(in));
|
||||
const TRectype & firm = cache().get(LF_NDITTE, main_app().get_firm());
|
||||
|
||||
cf.set(firm.get(in));
|
||||
return TRUE;
|
||||
}
|
||||
else
|
||||
@ -124,7 +115,7 @@ bool TContixcdc_mask::on_field_event(TOperable_field& o, TField_event e, long jo
|
||||
{
|
||||
TDate datainies = cache().get("ESC", field(F_ANNO).get(), "D0");
|
||||
if (dataini < datainies && datainies.ok())
|
||||
return error_box("La data iniziale non può essere precedente alla data inizio esercizio %s", (const char*) datainies.string());
|
||||
return error_box(TR("La data iniziale non può essere precedente alla data inizio esercizio %s"), (const char*) datainies.string());
|
||||
}
|
||||
}
|
||||
break;
|
||||
@ -136,10 +127,10 @@ bool TContixcdc_mask::on_field_event(TOperable_field& o, TField_event e, long jo
|
||||
{
|
||||
TDate datafines = cache().get("ESC", field(F_ANNO).get(), "D1");
|
||||
if (datafin > datafines && datafines.ok())
|
||||
return error_box("La data finale non può essere successiva alla data fine esercizio %s", (const char*) datafines.string());
|
||||
return error_box(FR("La data finale non può essere successiva alla data fine esercizio %s"), (const char*) datafines.string());
|
||||
TDate dataini(field(F_DATAINI).get());
|
||||
if (dataini > datafin)
|
||||
return error_box("La data iniziale non può essere successiva alla data finale");
|
||||
return error_box(TR("La data iniziale non può essere successiva alla data finale"));
|
||||
}
|
||||
}
|
||||
break;
|
||||
@ -279,7 +270,7 @@ void TContixCdc::print_footer_cms()
|
||||
if (!_t_cms._tot_periodo.is_zero())
|
||||
{
|
||||
TString tmp;
|
||||
tmp.format("TOTALE COMMESSA %s", (const char*) _oldcms);
|
||||
tmp.format(FR("TOTALE COMMESSA %s"), (const char*) _oldcms);
|
||||
set_field(FR_D_SOTTOC, tmp);
|
||||
fill_body(_t_cms);
|
||||
print_body();
|
||||
@ -296,7 +287,7 @@ void TContixCdc::print_footer_fsc()
|
||||
if (!_t_fsc._tot_periodo.is_zero())
|
||||
{
|
||||
TString tmp;
|
||||
tmp.format("TOTALE FASE %s", (const char*) _oldfsc);
|
||||
tmp.format(FR("TOTALE FASE %s"), (const char*) _oldfsc);
|
||||
set_field(FR_D_SOTTOC, tmp);
|
||||
fill_body(_t_fsc);
|
||||
print_body();
|
||||
@ -512,6 +503,6 @@ void TContixCdc::main_loop()
|
||||
int cm0100(int argc, char* argv[])
|
||||
{
|
||||
TContixCdc a;
|
||||
a.run(argc,argv,"Stampa conti per CDC/Commessa");
|
||||
a.run(argc,argv,TR("Stampa conti per CDC/Commessa"));
|
||||
return 0;
|
||||
}
|
@ -57,22 +57,13 @@ bool TForm_schedacdc::validate(TForm_item &cf, TToken_string &s)
|
||||
// !FAX numero di fax (con prefisso)
|
||||
// !REGSOC numero di registrazione presso il Tribunale
|
||||
// !CCIAA numero di registrazione presso la camera di commercio
|
||||
// nota: la relazione della ditta è così strutturata:
|
||||
// %NDITTE (9) Dati ditte
|
||||
// + %ANAGR (6) Anagrafica generale (indirizzo, ecc.)
|
||||
// + %COMUNI (113@) Comune di residenza
|
||||
// + %COMUNI (213@) Comune di residenza fiscale
|
||||
TLocalisamfile firm(LF_NDITTE);
|
||||
TLocalisamfile anag(LF_ANAG);
|
||||
firm.put("CODDITTA",main_app().get_firm());
|
||||
firm.read();
|
||||
anag.put("TIPOA",firm.get("TIPOA"));
|
||||
anag.put("CODANAGR",firm.get("CODANAGR"));
|
||||
anag.read();
|
||||
|
||||
TString in(s.get());
|
||||
if (in[0]!='!')
|
||||
{
|
||||
cf.set(firm.curr().get(in));
|
||||
const TRectype & firm = cache().get(LF_NDITTE, main_app().get_firm());
|
||||
|
||||
cf.set(firm.get(in));
|
||||
return TRUE;
|
||||
}
|
||||
else
|
||||
@ -125,7 +116,7 @@ bool TSchedacdc_mask::on_field_event(TOperable_field& o, TField_event e, long jo
|
||||
{
|
||||
TDate datainies = cache().get("ESC", field(F_ANNO).get(), "D0");
|
||||
if (dataini < datainies && datainies.ok())
|
||||
return error_box("La data iniziale non può essere precedente alla data inizio esercizio %s", (const char*) datainies.string());
|
||||
return error_box(FR("La data iniziale non può essere precedente alla data inizio esercizio %s"), (const char*) datainies.string());
|
||||
}
|
||||
}
|
||||
break;
|
||||
@ -137,10 +128,10 @@ bool TSchedacdc_mask::on_field_event(TOperable_field& o, TField_event e, long jo
|
||||
{
|
||||
TDate datafines = cache().get("ESC", field(F_ANNO).get(), "D1");
|
||||
if (datafin > datafines && datafines.ok())
|
||||
return error_box("La data finale non può essere successiva alla data fine esercizio %s", (const char*) datafines.string());
|
||||
return error_box(FR("La data finale non può essere successiva alla data fine esercizio %s"), (const char*) datafines.string());
|
||||
TDate dataini(field(F_DATAINI).get());
|
||||
if (dataini > datafin)
|
||||
return error_box("La data iniziale non può essere successiva alla data finale");
|
||||
return error_box(TR("La data iniziale non può essere successiva alla data finale"));
|
||||
}
|
||||
}
|
||||
break;
|
||||
@ -289,7 +280,7 @@ void TSchedacdc::print_footer_cms()
|
||||
if (!_t_cms._tot_periodo.is_zero())
|
||||
{
|
||||
TString tmp;
|
||||
tmp.format("PERIODO COMMESSA %s", (const char*) _oldcms);
|
||||
tmp.format(FR("PERIODO COMMESSA %s"), (const char*) _oldcms);
|
||||
_form->find_field('F', first_page, FR_CODICE).set(tmp);
|
||||
_form->find_field('F', first_page, FR_TOTALE_DARE).set("");
|
||||
_form->find_field('F', first_page, FR_TOTALE_AVERE).set("");
|
||||
@ -307,7 +298,7 @@ void TSchedacdc::print_footer_cms()
|
||||
_form->find_field('F', first_page, FR_TOTALE_SEGNO).set("A");
|
||||
}
|
||||
print_specialsection('F', first_page);
|
||||
tmp.format("GENERALE COMMESSA %s", (const char*) _oldcms);
|
||||
tmp.format(FR("GENERALE COMMESSA %s"), (const char*) _oldcms);
|
||||
_form->find_field('F', first_page, FR_CODICE).set(tmp);
|
||||
_form->find_field('F', first_page, FR_TOTALE_DARE).set("");
|
||||
_form->find_field('F', first_page, FR_TOTALE_AVERE).set("");
|
||||
@ -338,7 +329,7 @@ void TSchedacdc::print_footer_fsc()
|
||||
if (!_t_fsc._tot_periodo.is_zero())
|
||||
{
|
||||
TString tmp;
|
||||
tmp.format("PERIODO FASE %s", (const char*) _oldfsc);
|
||||
tmp.format(FR("PERIODO FASE %s"), (const char*) _oldfsc);
|
||||
_form->find_field('F', first_page, FR_CODICE).set(tmp);
|
||||
_form->find_field('F', first_page, FR_TOTALE_DARE).set("");
|
||||
_form->find_field('F', first_page, FR_TOTALE_AVERE).set("");
|
||||
@ -356,7 +347,7 @@ void TSchedacdc::print_footer_fsc()
|
||||
_form->find_field('F', first_page, FR_TOTALE_SEGNO).set("A");
|
||||
}
|
||||
print_specialsection('F', first_page);
|
||||
tmp.format("GENERALE FASE %s", (const char*) _oldfsc);
|
||||
tmp.format(FR("GENERALE FASE %s"), (const char*) _oldfsc);
|
||||
_form->find_field('F', first_page, FR_CODICE).set(tmp);
|
||||
_form->find_field('F', first_page, FR_TOTALE_DARE).set("");
|
||||
_form->find_field('F', first_page, FR_TOTALE_AVERE).set("");
|
||||
@ -598,6 +589,6 @@ void TSchedacdc::main_loop()
|
||||
int cm0200(int argc, char* argv[])
|
||||
{
|
||||
TSchedacdc a;
|
||||
a.run(argc,argv,"Stampa scheda per CDC/Commessa");
|
||||
a.run(argc,argv,TR("Stampa scheda per CDC/Commessa"));
|
||||
return 0;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user