Eliminato parametro data
git-svn-id: svn://10.65.10.50/trunk@4492 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
0a4be9355c
commit
113f9777f6
@ -6,6 +6,7 @@
|
||||
#include <defmask.h>
|
||||
|
||||
#include "mglib01.h"
|
||||
#include "..\cg\cglib.h"
|
||||
|
||||
// **************************************
|
||||
// **************************************
|
||||
@ -133,13 +134,13 @@ void THead_lines_record::set_fields(TAuto_variable_rectype & rec)
|
||||
}
|
||||
|
||||
|
||||
int THead_lines_record::read(TBaseisamfile& f, word op, word lockop, TDate& atdate)
|
||||
int THead_lines_record::read(TBaseisamfile& f, word op, word lockop)
|
||||
{
|
||||
TRectype line_key(_rfile);
|
||||
|
||||
copy_linekey(head(),line_key);
|
||||
|
||||
int err = TRectype::read(f,op,lockop,atdate);
|
||||
int err = TRectype::read(f,op,lockop);
|
||||
if (err == NOERR)
|
||||
{
|
||||
_nuovo = FALSE;
|
||||
@ -180,11 +181,11 @@ int THead_lines_record::read(TBaseisamfile& f, word op, word lockop, TDate& atda
|
||||
return err;
|
||||
}
|
||||
*/
|
||||
int THead_lines_record::write(TBaseisamfile& f, TDate& atdate ) const
|
||||
int THead_lines_record::write(TBaseisamfile& f) const
|
||||
{
|
||||
return write_rewrite(f,FALSE);
|
||||
}
|
||||
int THead_lines_record::rewrite(TBaseisamfile& f, TDate& atdate) const
|
||||
int THead_lines_record::rewrite(TBaseisamfile& f) const
|
||||
{
|
||||
return write_rewrite(f,TRUE);
|
||||
}
|
||||
@ -237,11 +238,11 @@ int THead_lines_record::write_rewrite(TBaseisamfile& f,bool re ) const
|
||||
}
|
||||
|
||||
|
||||
int THead_lines_record::remove(TBaseisamfile& f, TDate& atdate ) const
|
||||
int THead_lines_record::remove(TBaseisamfile& f) const
|
||||
{
|
||||
int err = _rows->remove();
|
||||
if (err == NOERR)
|
||||
err = TRectype::remove(f,atdate);
|
||||
err = TRectype::remove(f);
|
||||
return err;
|
||||
}
|
||||
|
||||
@ -1007,12 +1008,12 @@ void TMov_mag::copy_linekey(const TRectype & headrec, TRectype & linesrec)
|
||||
linesrec.put("NUMREG",headrec.get("NUMREG")) ;
|
||||
}
|
||||
|
||||
int TMov_mag::read(TBaseisamfile& f, word op , word lockop, TDate& atdate)
|
||||
int TMov_mag::read(TBaseisamfile& f, word op , word lockop)
|
||||
{
|
||||
TToken_string l_key;
|
||||
TLine_movmag l_data;
|
||||
|
||||
int res=THead_lines_record::read(f,op,lockop,atdate);
|
||||
int res=THead_lines_record::read(f,op,lockop);
|
||||
// reset delle strutture per il controlli delle variazioni dei saldi
|
||||
_codcaus=get("CODCAUS");
|
||||
_annoes=get("ANNOES");
|
||||
@ -1027,16 +1028,16 @@ int TMov_mag::read(TBaseisamfile& f, word op , word lockop, TDate& atdate)
|
||||
}
|
||||
|
||||
|
||||
int TMov_mag::remove(TBaseisamfile& f, TDate& atdate ) const
|
||||
int TMov_mag::remove(TBaseisamfile& f) const
|
||||
{
|
||||
int res;
|
||||
if ((res=THead_lines_record::remove(f,atdate))==NOERR )
|
||||
if ((res=THead_lines_record::remove(f))==NOERR )
|
||||
// effettua la variazione dei saldi
|
||||
res=update_balances();
|
||||
return res;
|
||||
}
|
||||
|
||||
int TMov_mag::write(TBaseisamfile& f, TDate& atdate ) const
|
||||
int TMov_mag::write(TBaseisamfile& f) const
|
||||
{
|
||||
int res;
|
||||
TToken_string l_key;
|
||||
@ -1047,13 +1048,13 @@ int TMov_mag::write(TBaseisamfile& f, TDate& atdate ) const
|
||||
l_data=line2data(i+1);
|
||||
((TMov_mag *)this)->insert_line(l_key,l_data);
|
||||
}
|
||||
if ((res=THead_lines_record::write(f,atdate))==NOERR )
|
||||
if ((res=THead_lines_record::write(f))==NOERR )
|
||||
// effettua la variazione dei saldi
|
||||
res=update_balances();
|
||||
return res;
|
||||
}
|
||||
|
||||
int TMov_mag::rewrite(TBaseisamfile& f, TDate& atdate ) const
|
||||
int TMov_mag::rewrite(TBaseisamfile& f) const
|
||||
{
|
||||
int res;
|
||||
TToken_string l_key;
|
||||
@ -1064,7 +1065,7 @@ int TMov_mag::rewrite(TBaseisamfile& f, TDate& atdate ) const
|
||||
l_data=line2data(i+1);
|
||||
((TMov_mag *)this)->insert_line(l_key,l_data);
|
||||
}
|
||||
if ((res=THead_lines_record::rewrite(f,atdate))==NOERR )
|
||||
if ((res=THead_lines_record::rewrite(f))==NOERR )
|
||||
// effettua la variazione dei saldi
|
||||
res=update_balances();
|
||||
return res;
|
||||
@ -1311,7 +1312,7 @@ void TMov_mag::update_balance(TRectype & magrec, const char * fieldname, real di
|
||||
magrec.put(fieldname,magrec.get_int(fieldname)+diff);
|
||||
}
|
||||
|
||||
|
||||
HIDDEN TEsercizi_contabili _esercizi;
|
||||
|
||||
int TMov_mag::codice_esercizio(TDate &d)
|
||||
{
|
||||
|
24
mg/mglib01.h
24
mg/mglib01.h
@ -77,11 +77,11 @@ public:
|
||||
void reset_fields(TAuto_variable_rectype & rec) { rec.remove_field(); }
|
||||
virtual void set_fields(TAuto_variable_rectype & rec);
|
||||
|
||||
virtual int read(TBaseisamfile& f, word op = _isequal, word lockop = _nolock, TDate& atdate = (TDate&)botime);
|
||||
virtual int read(TBaseisamfile& f, word op = _isequal, word lockop = _nolock);
|
||||
|
||||
virtual int write(TBaseisamfile& f, TDate& atdate = (TDate&)botime) const ;
|
||||
virtual int rewrite(TBaseisamfile& f, TDate& atdate = (TDate&)botime) const ;
|
||||
virtual int remove(TBaseisamfile& f, TDate& atdate = (TDate&)botime) const ;
|
||||
virtual int write(TBaseisamfile& f) const ;
|
||||
virtual int rewrite(TBaseisamfile& f) const ;
|
||||
virtual int remove(TBaseisamfile& f) const ;
|
||||
|
||||
//**************************
|
||||
// @ cmember costruttore dal numero del file
|
||||
@ -109,11 +109,6 @@ public:
|
||||
TTimed_box(const char * header,const char * message,int seconds,short button_id,int x,int y);
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// **************************************
|
||||
// **************************************
|
||||
// **************************************
|
||||
@ -122,11 +117,11 @@ public:
|
||||
// *******************************
|
||||
// LIBRERIA DI utility del magazzino
|
||||
// *******************************
|
||||
#include "..\cg\cglib.h"
|
||||
//#include "..\ve\velib03.h"
|
||||
|
||||
|
||||
#define MANY_MAG_LEV 10
|
||||
#define MAX_GIAC_LEVEL 4
|
||||
class TMag_livelli {
|
||||
bool _enabled[MANY_MAG_LEV];
|
||||
int _code_lenght[MANY_MAG_LEV];
|
||||
@ -287,7 +282,6 @@ public:
|
||||
// ( un movimento (testata+righe) == un oggetto TMov_mag )
|
||||
class TMov_mag : public THead_lines_record {
|
||||
|
||||
TEsercizi_contabili _esercizi;
|
||||
//
|
||||
TString16 _codcaus;
|
||||
TString16 _annoes;
|
||||
@ -327,10 +321,10 @@ protected:
|
||||
public:
|
||||
// IO ad alto livello
|
||||
virtual const char *get_next_key() ;
|
||||
virtual int read(TBaseisamfile& f, word op = _isequal, word lockop = _nolock, TDate& atdate = (TDate&)botime);
|
||||
virtual int remove(TBaseisamfile& f, TDate& atdate = (TDate&)botime) const ;
|
||||
virtual int write(TBaseisamfile& f, TDate& atdate = (TDate&)botime) const ;
|
||||
virtual int rewrite(TBaseisamfile& f, TDate& atdate = (TDate&)botime) const ;
|
||||
virtual int read(TBaseisamfile& f, word op = _isequal, word lockop = _nolock);
|
||||
virtual int remove(TBaseisamfile& f) const ;
|
||||
virtual int write(TBaseisamfile& f) const ;
|
||||
virtual int rewrite(TBaseisamfile& f) const ;
|
||||
|
||||
//
|
||||
int codice_esercizio(TDate &d);
|
||||
|
Loading…
x
Reference in New Issue
Block a user