Patch level :2.2 274
Files correlati :traferimento proforma Ricompilazione Demo : [ ] Commento :aggiunto un costruttore ai movimenti analitici.Necessario per il trasferimento proforma git-svn-id: svn://10.65.10.50/trunk@13633 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
8e1a7012be
commit
49f3651ba7
@ -1,8 +1,8 @@
|
|||||||
#include <currency.h>
|
|
||||||
#include <dongle.h>
|
#include <dongle.h>
|
||||||
#include <modaut.h>
|
#include <modaut.h>
|
||||||
#include <tree.h>
|
#include <tree.h>
|
||||||
|
|
||||||
|
#include <mov.h>
|
||||||
#include <pconti.h>
|
#include <pconti.h>
|
||||||
|
|
||||||
#include "calib01.h"
|
#include "calib01.h"
|
||||||
@ -1378,6 +1378,34 @@ TAnal_mov::TAnal_mov(long numreg) : TMultiple_rectype(LF_MOVANA)
|
|||||||
read(numreg);
|
read(numreg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
TAnal_mov::TAnal_mov(const TRectype& rec) : TMultiple_rectype(LF_MOVANA)
|
||||||
|
{
|
||||||
|
add_file(LF_RMOVANA, RMOVANA_NUMRIG);
|
||||||
|
|
||||||
|
long numreg = 0;
|
||||||
|
switch(rec.num())
|
||||||
|
{
|
||||||
|
case LF_MOV:
|
||||||
|
case LF_RMOV:
|
||||||
|
case LF_RMOVIVA:
|
||||||
|
{
|
||||||
|
TLocalisamfile movana(LF_MOVANA);
|
||||||
|
movana.setkey(3);
|
||||||
|
movana.put(MOVANA_NUMREGCG, rec.get(MOV_NUMREG));
|
||||||
|
if (movana.read() == NOERR)
|
||||||
|
numreg = movana.get_long(MOVANA_NUMREG);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
numreg = rec.get_long(MOVANA_NUMREG);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (numreg > 0)
|
||||||
|
read(numreg);
|
||||||
|
}
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////
|
||||||
// TAnal_rip
|
// TAnal_rip
|
||||||
///////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////
|
||||||
|
@ -158,6 +158,7 @@ public:
|
|||||||
public:
|
public:
|
||||||
int read(long numreg, word lockop = _nolock); // Funzione read di comodo
|
int read(long numreg, word lockop = _nolock); // Funzione read di comodo
|
||||||
TAnal_mov(long numreg = 0);
|
TAnal_mov(long numreg = 0);
|
||||||
|
TAnal_mov(const TRectype& rec); //accetta LF_MOVANA,LF_RMOVANA,LF_MOV
|
||||||
};
|
};
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////
|
||||||
|
Loading…
x
Reference in New Issue
Block a user