Patch level : 12.0 nopatch
Files correlati :
This commit is contained in:
parent
a5bdff3b43
commit
937e4f1f0c
@ -19,6 +19,58 @@ bool TRiepilogoIVA_report::set_recordset(TRecordset * set)
|
|||||||
return ok;
|
return ok;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool TRiepilogoIVA_report::get_usr_val(const TString& name, TVariant& var) const
|
||||||
|
{
|
||||||
|
TRiepilogoIVA_recordset * rs = (TRiepilogoIVA_recordset *)recordset();
|
||||||
|
|
||||||
|
if (name == "#FROMDATE")
|
||||||
|
{
|
||||||
|
var = rs->from();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (name == "#TODATE")
|
||||||
|
{
|
||||||
|
var = rs->to();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (name == "#ANNO")
|
||||||
|
{
|
||||||
|
var = rs->anno();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (name == "#CODATT")
|
||||||
|
{
|
||||||
|
var = rs->codatt();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (name == "#DAMESE")
|
||||||
|
{
|
||||||
|
var = (long)rs->da_mese();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (name == "#AMESE")
|
||||||
|
{
|
||||||
|
var = (long)rs->a_mese();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return TReport::get_usr_val(name, var);
|
||||||
|
}
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////
|
||||||
// TRiepilogoIVA_recordset
|
// TRiepilogoIVA_recordset
|
||||||
///////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////
|
||||||
@ -77,6 +129,8 @@ void TRiepilogoIVA_recordset::requery()
|
|||||||
recset.set_var("#ANNO", (long)anno(), true);
|
recset.set_var("#ANNO", (long)anno(), true);
|
||||||
if (codatt().full())
|
if (codatt().full())
|
||||||
recset.set_var("#CODATT", codatt(), true);
|
recset.set_var("#CODATT", codatt(), true);
|
||||||
|
else
|
||||||
|
recset.set_var("#CODATT", "", true);
|
||||||
recset.set_var("#DAMESE", (long)da_mese(), true);
|
recset.set_var("#DAMESE", (long)da_mese(), true);
|
||||||
recset.set_var("#AMESE", (long)a_mese(), true);
|
recset.set_var("#AMESE", (long)a_mese(), true);
|
||||||
for (bool ok = recset.move_first(); ok; ok = recset.move_next())
|
for (bool ok = recset.move_first(); ok; ok = recset.move_next())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user