Patch level : 10.0
Files correlati : pe0.exe Ricompilazione Demo : [ ] Commento : Piccola cosmesi git-svn-id: svn://10.65.10.50/trunk@19476 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
53a9f29927
commit
7719849aca
@ -142,14 +142,14 @@ void TGestione_preventivo_msk:: on_idle()
|
||||
|
||||
void TGestione_preventivo_msk::update_costi_ricavi(int nrow, bool update_sheet)
|
||||
{
|
||||
TDocumento & d = doc();
|
||||
TDocumento& d = doc();
|
||||
const int rows = d.physical_rows();
|
||||
TArray valori;
|
||||
TArray costi;
|
||||
TSheet_field & sh = sfield(F_SHEET);
|
||||
bool all = nrow < 0;
|
||||
|
||||
if (all)
|
||||
|
||||
const bool all = nrow < 0;
|
||||
if (all)
|
||||
nrow = rows;
|
||||
else
|
||||
d[nrow].autosave(sh);
|
||||
@ -160,7 +160,7 @@ void TGestione_preventivo_msk::update_costi_ricavi(int nrow, bool update_sheet)
|
||||
nrow++;
|
||||
for (int i = nrow; i > 0; i--)
|
||||
{
|
||||
TRiga_documento & row = (TRiga_documento &)d[i];
|
||||
TRiga_documento& row = d[i];
|
||||
const int level = row.get_int(RDOC_LEVEL);
|
||||
|
||||
if (i == rows || level >= doc()[i + 1].get_int(RDOC_LEVEL))
|
||||
@ -602,7 +602,7 @@ bool TGestione_preventivo_msk::pe_new_revision_handler(TMask_field& f, KEY k)
|
||||
const int err = app().get_relation()->lfile().read(mask.doc());
|
||||
app().get_relation()->save_status();
|
||||
*/
|
||||
mask.enable(DLG_NEXTREC); // Mi assicuro che sia cceso il bottone Avanti
|
||||
mask.enable(DLG_NEXTREC); // Mi assicuro che sia acceso il bottone Avanti
|
||||
mask.stop_run(K_NEXT); // Passo al documento successivo appena creato
|
||||
}
|
||||
}
|
||||
@ -1046,7 +1046,7 @@ bool TGestione_preventivo_msk::new_revision(const char* codnum, long& ndoc) cons
|
||||
|
||||
TGestione_preventivo_msk::TGestione_preventivo_msk(const char* tipodoc) : TDocumento_mask(tipodoc), _clipboard_row(-1)
|
||||
{
|
||||
TConfig* configpe = new TConfig(CONFIG_DITTA, "pe");
|
||||
//TConfig* configpe = new TConfig(CONFIG_DITTA, "pe"); // A cosa serve?
|
||||
sfield(F_SHEET).set_notify( ss_notify );
|
||||
_rule = color_rules().add(new TColor_rule("Livello", "", _numexpr, COLOR_BLUE, FOCUS_COLOR));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user