Aggiustate scritture su tabella PIM
Sistemata maschera di immissione per introduzione manuale codici ditta git-svn-id: svn://10.65.10.50/trunk@137 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
e2a305b398
commit
6ca826673d
@ -29,10 +29,10 @@ void CG4300_App::user_create()
|
|||||||
TString vers = _nditte_r->get("FREQVIVA");
|
TString vers = _nditte_r->get("FREQVIVA");
|
||||||
_n_ditte++;
|
_n_ditte++;
|
||||||
|
|
||||||
TToken_string* d = new TToken_string(" ");
|
TToken_string* d = new TToken_string(64);
|
||||||
|
|
||||||
// add record
|
// add record
|
||||||
d->add(cod);
|
(*d) = cod;
|
||||||
d->add(_nditte_r->get("RAGSOC"));
|
d->add(_nditte_r->get("RAGSOC"));
|
||||||
d->add(vers);
|
d->add(vers);
|
||||||
_nomiditte.add(d);
|
_nomiditte.add(d);
|
||||||
@ -220,6 +220,7 @@ bool CG4300_App::set_liquidazione()
|
|||||||
k = m.run();
|
k = m.run();
|
||||||
|
|
||||||
if (k == K_ESC) break;
|
if (k == K_ESC) break;
|
||||||
|
|
||||||
|
|
||||||
_what = (wht)atoi(m.get(CG43_RDB_VERS));
|
_what = (wht)atoi(m.get(CG43_RDB_VERS));
|
||||||
_month = atoi(m.get(CG43_LST_MESE));
|
_month = atoi(m.get(CG43_LST_MESE));
|
||||||
@ -243,6 +244,7 @@ bool CG4300_App::set_liquidazione()
|
|||||||
|
|
||||||
TString from = m.get(CG43_FLD_DFR);
|
TString from = m.get(CG43_FLD_DFR);
|
||||||
TString to = m.get(CG43_FLD_DTO);
|
TString to = m.get(CG43_FLD_DTO);
|
||||||
|
|
||||||
|
|
||||||
m.field(CG43_FLD_DFR).set("");
|
m.field(CG43_FLD_DFR).set("");
|
||||||
m.field(CG43_FLD_DTO).set("");
|
m.field(CG43_FLD_DTO).set("");
|
||||||
@ -251,9 +253,30 @@ bool CG4300_App::set_liquidazione()
|
|||||||
m.first_focus(k);
|
m.first_focus(k);
|
||||||
|
|
||||||
long j, cnt, chk; int i;
|
long j, cnt, chk; int i;
|
||||||
|
|
||||||
|
if (!from.empty() || !to.empty())
|
||||||
|
{
|
||||||
|
chk = 0l;
|
||||||
|
if (from.empty()) from = "0";
|
||||||
|
if (to.empty()) to = "999999";
|
||||||
|
for (i = 0; i < _nomiditte.items(); i++)
|
||||||
|
{
|
||||||
|
TToken_string d = (const char*)((TToken_string&)_nomiditte[i]);
|
||||||
|
TString cod = d.get(0);
|
||||||
|
TString vers = d.get(2);
|
||||||
|
if ((_what == mnt && vers == "T") ||
|
||||||
|
(_what == quarter && vers == "M"))
|
||||||
|
continue;
|
||||||
|
|
||||||
|
if (atol(cod) >= atol(from) && atol(cod) <= atol(to))
|
||||||
|
_selected.set(chk++);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
switch(k)
|
switch(k)
|
||||||
{
|
{
|
||||||
case DLG_SELECT:
|
case DLG_SELECT:
|
||||||
// build sheet
|
// build sheet
|
||||||
_ditte->destroy(); chk = 0l;
|
_ditte->destroy(); chk = 0l;
|
||||||
@ -273,9 +296,12 @@ bool CG4300_App::set_liquidazione()
|
|||||||
if (!from.empty() || !to.empty())
|
if (!from.empty() || !to.empty())
|
||||||
{
|
{
|
||||||
if (from.empty()) from = "0";
|
if (from.empty()) from = "0";
|
||||||
if (to.empty()) to = "999999999";
|
if (to.empty()) to = "999999";
|
||||||
if (atol(cod) >= atol(from) && atol(cod) <= atol(to))
|
if (atol(cod) >= atol(from) && atol(cod) <= atol(to))
|
||||||
_ditte->check(chk++);
|
{
|
||||||
|
_ditte->check(chk);
|
||||||
|
_selected.set(chk++);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -314,8 +340,10 @@ bool CG4300_App::set_liquidazione()
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
while (k != K_ENTER && k != K_ESC);
|
while (k != K_ENTER && k != K_ESC);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return k == K_ENTER;
|
return k == K_ENTER;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -325,3 +353,7 @@ int cg4300(int argc, char* argv[])
|
|||||||
main_app.run(argc, argv, "Liquidazione IVA");
|
main_app.run(argc, argv, "Liquidazione IVA");
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user