Patch level : 2.2

Files correlati     : ve0 ve6
Ricompilazione Demo : [ ]
Commento            :

Corretto trasferimento valori da sheet a righe documento e viceversa


git-svn-id: svn://10.65.10.50/trunk@13361 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 2005-09-21 09:18:04 +00:00
parent 2eba28d858
commit 3e894a6070

View File

@ -916,7 +916,7 @@ void TRiga_documento::autosave(TSheet_field & f)
put( RDOC_ADDIVA, row.get( f.cid2index(FR_ADDIVA )) ); put( RDOC_ADDIVA, row.get( f.cid2index(FR_ADDIVA )) );
put( RDOC_ASPBENI, row.get( f.cid2index(FR_ASPBENI )) ); put( RDOC_ASPBENI, row.get( f.cid2index(FR_ASPBENI )) );
put( RDOC_CAUSMAG, row.get( f.cid2index(FR_CAUS )) ); put( RDOC_CAUSMAG, row.get( f.cid2index(FR_CAUS )) );
TString16 codmagc(row.get(f.cid2index(FR_CODMAGC))); TString8 codmagc(row.get(f.cid2index(FR_CODMAGC)));
codmagc.left_just(3); codmagc.left_just(3);
codmagc << row.get( f.cid2index(FR_CODDEPC )); codmagc << row.get( f.cid2index(FR_CODDEPC ));
@ -932,12 +932,13 @@ void TRiga_documento::autosave(TSheet_field & f)
put( RDOC_IMPIANTO, row.get( f.cid2index(FR_IMPIANTO )) ); put( RDOC_IMPIANTO, row.get( f.cid2index(FR_IMPIANTO )) );
put( RDOC_LINEA, row.get( f.cid2index(FR_LINEA )) ); put( RDOC_LINEA, row.get( f.cid2index(FR_LINEA )) );
f.select(num); // Seleziona la riga in modo da selezionare la maschera di riga giusta
for (short cdcid = FR_CDC1; cdcid <= FR_CDC12; cdcid++) for (short cdcid = FR_CDC1; cdcid <= FR_CDC12; cdcid++)
{ {
const int pos = m.id2pos(cdcid); const int pos = m.id2pos(cdcid);
if (pos < 0) if (pos < 0)
break; break;
TMask_field& fld = m.fld(pos); const TMask_field& fld = m.fld(pos);
const TFieldref* fldref = fld.field(); const TFieldref* fldref = fld.field();
if (fldref == NULL) if (fldref == NULL)
break; break;
@ -1013,12 +1014,12 @@ void TRiga_documento::autoload(TSheet_field & f)
} }
} }
TArticolo_giacenza * TRiga_documento::articolo() const TArticolo_giacenza* TRiga_documento::articolo() const
{ {
if (_articoli == NULL) if (_articoli == NULL)
_articoli = new TCache_articoli(); _articoli = new TCache_articoli();
const TString & codart = get(RDOC_CODARTMAG); const TString& codart = get(RDOC_CODARTMAG);
if (codart.empty()) if (codart.empty())
return NULL; return NULL;
return &(_articoli->art(codart)); return &(_articoli->art(codart));