Patch level : 10.0
Files correlati : pd0610 Ricompilazione Demo : [ ] Commento : Il totale documento è un campo virtuale (G1:TOTDOC) Aggiunta la progind git-svn-id: svn://10.65.10.50/branches/R_10_00@21561 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
b5c833d899
commit
c99302a8de
@ -1,7 +1,7 @@
|
||||
#include <applicat.h>
|
||||
#include <automask.h>
|
||||
#include <progind.h>
|
||||
#include <recarray.h>
|
||||
#include <recset.h>
|
||||
#include <relation.h>
|
||||
#include <reprint.h>
|
||||
#include <reputils.h>
|
||||
@ -45,7 +45,7 @@ bool TSost_condpag_msk::elabora_documenti()
|
||||
TString query;
|
||||
query << "USE DOC SELECT (CODNUM=\"" << codnum << "\")&&(TIPODOC=\"" << tipodoc << "\")&&(STATO=\"" << stato << "\")&&(TIPOCF=\"C\")&&(BETWEEN(CODCF," << dacodcf << "," << acodcf << "))&&(BETWEEN(DATADOC,#DADATA,#ADATA))";
|
||||
if(totdoc > ZERO)
|
||||
query << "&&(TOTDOC<=" << totdoc << ')';
|
||||
query << "&&(G1:TOTDOC<=" << totdoc << ')';
|
||||
query << "\n"
|
||||
<< "FROM PROVV=\"D\" ANNO=" << daanno << "\n"
|
||||
<< "TO PROVV=\"D\" ANNO=" << aanno;
|
||||
@ -59,9 +59,14 @@ bool TSost_condpag_msk::elabora_documenti()
|
||||
|
||||
const TString4 codpag = get(F_CODPAG);
|
||||
|
||||
TProgind pi(doc.items(), TR("Elaborazione documenti in corso..."), true, true);
|
||||
|
||||
//scorro il recordset e aggiorno i documenti che è necessario aggiornare
|
||||
for(bool ok = doc.move_first(); ok; ok = doc.move_next())
|
||||
{
|
||||
if (!pi.addstatus(1))
|
||||
break;
|
||||
|
||||
TRectype& rec = doc.cursor()->curr();
|
||||
|
||||
const TString4 codpagdoc = rec.get(DOC_CODPAG);
|
||||
|
Loading…
x
Reference in New Issue
Block a user