Aggiunto parametro per cambiare stato in caso di numerazione
definitiva git-svn-id: svn://10.65.10.50/trunk@4581 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
f9f7ef9bcc
commit
3b73abde84
@ -4,7 +4,7 @@
|
||||
#include <recarray.h>
|
||||
#include <tabutil.h>
|
||||
|
||||
int numerazione_definitiva(TLocalisamfile& doc)
|
||||
int numerazione_definitiva(TLocalisamfile& doc, const int final_status)
|
||||
{
|
||||
if (doc.curr().get("PROVV") == "D")
|
||||
return NOERR;
|
||||
@ -38,6 +38,7 @@ int numerazione_definitiva(TLocalisamfile& doc)
|
||||
|
||||
newrec_doc.put("NDOC", numdoc); // scrive il nuovo numero di documento nel nuovo record
|
||||
newrec_doc.put("PROVV", "D"); // aggiorna il flag di tipo di numerazione
|
||||
newrec_doc.put("STATO",final_status); // Stato finale del documento
|
||||
while ((err = doc.write(newrec_doc)) == _isreinsert)
|
||||
{
|
||||
numdoc++;
|
||||
|
@ -2,6 +2,6 @@
|
||||
#ifndef __VE0100B_H
|
||||
#define __VE0100B_H
|
||||
|
||||
int numerazione_definitiva(TLocalisamfile &); // prototipo della funzione di rinumerazione definitiva dei documenti
|
||||
int numerazione_definitiva(TLocalisamfile &, const int); // prototipo della funzione di rinumerazione definitiva dei documenti
|
||||
|
||||
#endif // __VE0100B_H
|
||||
|
Loading…
x
Reference in New Issue
Block a user