Patch level :

Files correlati     :
Ricompilazione Demo : [ ]
Commento            :
Correzioni Roberto 23/03/2011


git-svn-id: svn://10.65.10.50/branches/R_10_00@21819 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
luca83 2011-03-23 11:52:14 +00:00
parent d7da1c730c
commit 8bc2cbe968

View File

@ -155,7 +155,7 @@ void TGestione_giri_msk::riempi_sheet()
//ATTENZIONE: le query su tabmod non funzionano con il semplice USE &TAB, ma vogliono SEMPRE FROM e TO
TString query;
query << "USE &HGI\n"
<< "SELECT STR((BETWEEN(CODTAB[6,6];" << giorno << ';' << giorno << "))&&(BETWEEN(CODTAB[7,12];" << cliente << ';' << cliente << ")))";
<< "SELECT (BETWEEN(CODTAB[6,6];" << giorno << ';' << giorno << "))&&(BETWEEN(CODTAB[7,12];" << cliente << ';' << cliente << "))";
if(!field(F_AGENTE).empty())
{
@ -206,6 +206,7 @@ void TGestione_giri_msk::riempi_sheet()
sheet.disable_cell(r, sheet.cid2index(S_CLIENTE));
sheet.disable_cell(r, sheet.cid2index(S_CLIRAGSOC));
}
sheet.sort(sort_by_stop);
sheet.force_update();
}
@ -283,9 +284,7 @@ void TGestione_giri_msk::registra()
const TGiri_key gkey(agente, giorno, cliente);
const TString80 codtab = gkey.key();
chiavi.add(codtab, codtab);
//se esiste un'altra riga sullo sheet con la stessa chiave, lo segnala e chiede se sovrascrivere quella già registrata
if(chiavi.is_key(codtab))
{
@ -296,6 +295,8 @@ void TGestione_giri_msk::registra()
continue;
}
chiavi.add(codtab, codtab);
//cancella le righe contrassegnate e aggiorna le altre
giri.put("CODTAB", codtab);
if (!cancella)
@ -348,6 +349,7 @@ TGestione_giri_msk::TGestione_giri_msk()
class TGestione_giri_app : public TSkeleton_application
{
protected:
virtual const char * extra_modules() const {return "ba";}
void elabora(const TMask& msk);
public: