Patch level :2.2 nopatch
Files correlati : Ricompilazione Demo : [ ] Commento :modifiche Bonazzesche git-svn-id: svn://10.65.10.50/trunk@12683 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
e1921e2bf7
commit
e95a830f86
@ -43,18 +43,18 @@ bool TRib_movanal_msk::on_field_event(TOperable_field& o, TField_event e, long j
|
|||||||
//--------------------------------------------------------------------
|
//--------------------------------------------------------------------
|
||||||
// CLASSE PER RIPARTIZIONI RIGHE E TESTATE
|
// CLASSE PER RIPARTIZIONI RIGHE E TESTATE
|
||||||
//--------------------------------------------------------------------
|
//--------------------------------------------------------------------
|
||||||
/*class TRipartizione : public TMultiple_rectype
|
class TRipartizione : public TMultiple_rectype
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
TRipartizione(long numreg = 0);
|
TRipartizione(TString16 codice);
|
||||||
}
|
};
|
||||||
|
|
||||||
|
|
||||||
TRipartizione::TRipartizione(long numreg) : TMultiple_rectype(LF_RIP)
|
TRipartizione::TRipartizione(TString16 codice) : TMultiple_rectype(LF_RIP)
|
||||||
{
|
{
|
||||||
add_file(LF_RMOVANA, "NUMRIG");
|
add_file(LF_RRIP, RRIP_CODICE);
|
||||||
if (numreg > 0)
|
if (codice.not_empty())
|
||||||
read(numreg);
|
read();
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------
|
//--------------------------------------------------------------------
|
||||||
@ -78,14 +78,14 @@ TObject* TCache_ripartizioni::key2obj(const char* key)
|
|||||||
|
|
||||||
TRecord_array* rows = new TRecord_array(LF_RRIP, RRIP_NRIGA);
|
TRecord_array* rows = new TRecord_array(LF_RRIP, RRIP_NRIGA);
|
||||||
TRectype* chiave = new TRectype(LF_RRIP);
|
TRectype* chiave = new TRectype(LF_RRIP);
|
||||||
chiave.put(RRIP_TIPO, "B");
|
// chiave.put(RRIP_TIPO, "B");
|
||||||
chiave.put(RRIP_CODICE, codice);
|
// chiave.put(RRIP_CODICE, codice);
|
||||||
|
return (TObject*);
|
||||||
}
|
}
|
||||||
|
|
||||||
TRecord_array& TCache_ripartizioni::righe(const char* costo)
|
TRecord_array& TCache_ripartizioni::righe(const char* costo)
|
||||||
{
|
{
|
||||||
}*/
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------
|
//--------------------------------------------------------------------
|
||||||
// APPLICAZIONE
|
// APPLICAZIONE
|
||||||
@ -124,6 +124,8 @@ bool TRib_movanal_app::cappotta_movimento(const TRelation& rel, void* pJolly)
|
|||||||
TAnal_mov& anal_mov = (TAnal_mov&)rel.curr(); //movimento analitica
|
TAnal_mov& anal_mov = (TAnal_mov&)rel.curr(); //movimento analitica
|
||||||
TRecord_array& input_rows = anal_mov.body(); //record_array con le righe del mov_anal (INPUT)
|
TRecord_array& input_rows = anal_mov.body(); //record_array con le righe del mov_anal (INPUT)
|
||||||
|
|
||||||
|
//controllare
|
||||||
|
|
||||||
TRecord_array output_rows = input_rows; //crea il record_array di output come copia dell'INPUT..
|
TRecord_array output_rows = input_rows; //crea il record_array di output come copia dell'INPUT..
|
||||||
output_rows.destroy_rows(); //..e poi lo pulisce
|
output_rows.destroy_rows(); //..e poi lo pulisce
|
||||||
|
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
#include <mov.h>
|
#include <mov.h>
|
||||||
#include <rmov.h>
|
#include <rmov.h>
|
||||||
#include <rmoviva.h>
|
#include <rmoviva.h>
|
||||||
|
#include <pconti.h>
|
||||||
|
|
||||||
#include "../cg/cg2101.h"
|
#include "../cg/cg2101.h"
|
||||||
#include "calib01.h"
|
#include "calib01.h"
|
||||||
@ -195,7 +196,7 @@ bool TConversione_cm2ca::set_anal()
|
|||||||
TCursor curpcon(&relpcon);
|
TCursor curpcon(&relpcon);
|
||||||
TRectype& recpcon = relpcon.curr();
|
TRectype& recpcon = relpcon.curr();
|
||||||
|
|
||||||
if (!recpcon.exist("ANAL")) //check se gia' avvenuta la conversione con aggiunta del campo ANAL
|
if (!recpcon.exist("ANALITICA")) //check se gia' avvenuta la conversione con aggiunta del campo ANAL
|
||||||
return error_box(TR("Prima del controllo e' necessario eseguire una conversione archivi"));
|
return error_box(TR("Prima del controllo e' necessario eseguire una conversione archivi"));
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -207,7 +208,7 @@ bool TConversione_cm2ca::set_anal()
|
|||||||
pi.addstatus(1);
|
pi.addstatus(1);
|
||||||
if (recpcon.get("CODCMS").not_empty() || recpcon.get("FASCMS").not_empty())
|
if (recpcon.get("CODCMS").not_empty() || recpcon.get("FASCMS").not_empty())
|
||||||
{
|
{
|
||||||
recpcon.put("ANAL", "X");
|
recpcon.put("ANALITICA", "X");
|
||||||
relpcon.rewrite();
|
relpcon.rewrite();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -125,6 +125,7 @@ public:
|
|||||||
virtual int readat(TBaseisamfile& f, TRecnotype nrec, word lockop);
|
virtual int readat(TBaseisamfile& f, TRecnotype nrec, word lockop);
|
||||||
virtual int read(TBaseisamfile& f, word op, word lockop);
|
virtual int read(TBaseisamfile& f, word op, word lockop);
|
||||||
virtual int write(TBaseisamfile& f) const;
|
virtual int write(TBaseisamfile& f) const;
|
||||||
|
virtual int write() const { return TMultiple_rectype::write();}
|
||||||
virtual int rewrite(TBaseisamfile& f) const;
|
virtual int rewrite(TBaseisamfile& f) const;
|
||||||
virtual int remove(TBaseisamfile& f) const;
|
virtual int remove(TBaseisamfile& f) const;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user