Trasformato saldacon.h in cgsaldac.h

git-svn-id: svn://10.65.10.50/trunk@4726 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 1997-06-20 08:53:29 +00:00
parent 616dafeedf
commit b25e8268a4
13 changed files with 68 additions and 133 deletions

View File

@ -5,12 +5,13 @@
#include <applicat.h>
#endif
#ifndef __SALDACON_H
#include "../cg/saldacon.h"
#ifndef __CGSALDAC_H
#include "../cg/cgsaldac.h"
#endif
#ifndef __MASK_H
class TMask;
class TMask_field;
#endif
class TSaldaconto_app : public TApplication

View File

@ -3,8 +3,7 @@
#include <real.h>
#include "../cg/cglib01.h"
#include "../cg/pagament.h"
#include "../cg/saldacon.h"
#include "../cg/cgpagame.h"
#include "../cg/cg21sld.h"
#include "sc0100.h"

View File

@ -2,20 +2,15 @@
#include <applicat.h>
#include <archives.h>
#include <assoc.h>
#include <mask.h>
#include <progind.h>
#include <relation.h>
#include <isam.h>
#include <urldefid.h>
#include <utility.h>
#include "../cg/saldacon.h"
#include "../cg/cgsaldac.h"
#include "sc1100.h"
#include <scadenze.h>
#include <partite.h>
#include <pagsca.h>
class TDeletepart_app : public TApplication
{
TArchive _arc;

View File

@ -6,17 +6,15 @@
#include <urldefid.h>
#include <utility.h>
#include <saldi.h>
#include <pconti.h>
#include <partite.h>
#include <scadenze.h>
#include <pagsca.h>
#include "../cg/cglib02.h"
#include "../cg/saldacon.h"
#include "../cg/cgsaldac.h"
#include "sc1200.h"
#include <saldi.h>
#include <pconti.h>
class TCreatepart_app : public TApplication
{
TEsercizi_contabili _esc;

View File

@ -1,4 +1,3 @@
#include <mask.h>
#include <relapp.h>
#include "sc1.h"
@ -65,7 +64,6 @@ bool SollecitiStorici_app::zap_handler(TMask_field& f, KEY k)
return TRUE;
}
void SollecitiStorici_app::zap_cliente(const char* cod)
{
TLocalisamfile& sr = _rel->lfile();
@ -78,7 +76,6 @@ void SollecitiStorici_app::zap_cliente(const char* cod)
sr.remove();
}
int SollecitiStorici_app::write(const TMask& m)
{
TLocalisamfile& sr = _rel->lfile();

View File

@ -5,7 +5,7 @@
#include <tabutil.h>
#include <urldefid.h>
#include "../cg/saldacon.h"
#include "../cg/cgsaldac.h"
#include "sc2.h"
#include "sc2101.h"
#include "sc2102.h"
@ -16,8 +16,6 @@
#include <clifo.h>
#include <causali.h>
#include <mov.h>
#include <pagsca.h>
#include <scadenze.h>
///////////////////////////////////////////////////////////
// TEC_form

View File

@ -1,15 +1,13 @@
#ifndef __SC2102_H
#define __SC2102_H
#include <stdarg.h>
#include <utility.h>
#include <array.h>
#include <strings.h>
#include <real.h>
#include <isam.h>
#ifndef __ASSOC_H
#include <assoc.h>
#endif
#ifndef __ISAM_H
#include <isam.h>
#endif
///////////////////////////////////////////////////////////
// Totalizzatore

View File

@ -1,53 +1,18 @@
#ifndef __PRINTAPP_H
#include <printapp.h>
#endif
#ifndef __CONFIG_H
#include <config.h>
#endif
#ifndef __ASSOC_H
#include <assoc.h>
#endif
#ifndef __UTILITY_H
#include <utility.h>
#endif
#ifndef __SALDACON_H
#include "../cg/saldacon.h"
#endif
#ifndef __DITTE_H
#include <nditte.h>
#endif
#ifndef __CLIFO_H
#include <clifo.h>
#endif
#ifndef __PCONTI_H
#include <pconti.h>
#endif
#ifndef __PARTITE_H
#include <partite.h>
#endif
#ifndef __SCADENZE_H
#include <scadenze.h>
#endif
#ifndef _FLD_CAUS_H
#include <causali.h>
#endif
#include <pagsca.h>
#include <config.h>
#include <printapp.h>
//#include <utility.h>
#include "../cg/cgsaldac.h"
#include "sc2.h"
#include "sc2200.h"
#include "sc2201.h"
#include <nditte.h>
#include <clifo.h>
#include <pconti.h>
#include <causali.h>
#define SCADCLIFO_ALIAS 51
#define CLIFOSCAD_ALIAS 52
#define SCADPCON_ALIAS 53
@ -458,7 +423,7 @@ bool TStampaScadenzario::preprocess_page(int file, int counter)
_datareg = row.get_date(PART_DATAREG).string(brief);
_datadoc = row.get_date(PART_DATADOC).string(brief);
_numdoc = row.get(PART_NUMDOC);
_protiva = format("%5ld",row.get_long(PART_PROTIVA));
_protiva.format("%5ld",row.get_long(PART_PROTIVA));
*_descrizione = row.get(PART_DESCR);
_codval = row.get(PART_CODVAL);
//Per indicare che non e' indicata la valuta o e' LIRA (se la stampa in valuta is disabled)
@ -574,7 +539,7 @@ bool TStampaScadenzario::preprocess_page(int file, int counter)
// Tiene aggiornati tutti i totali mese/periodo (Totali dei prospetti
check_add_key_to_tp(tipo_pag, ult_cla);
_cur_data = datascad;
_cur_codcf_s = format("%6ld",codcf);
_cur_codcf_s.format("%6ld",codcf);
}
// Qui stampa il totale generale e lo specchietto colonnello.
// Vale con l'ordinamento principale per data di scadenza.
@ -620,9 +585,9 @@ bool TStampaScadenzario::preprocess_page(int file, int counter)
}
if (changed)
{
_cur_gr_s = format("%3d",gruppo);
_cur_co_s = format("%3d",conto);
_cur_codcf_s = format("%6ld",codcf);
_cur_gr_s.format("%3d",gruppo);
_cur_co_s.format("%3d",conto);
_cur_codcf_s.format("%6ld",codcf);
}
_cur_gr=gruppo;
_cur_co=conto;

View File

@ -1,18 +1,15 @@
#include <config.h>
#include <printapp.h>
#include "../cg/saldacon.h"
#include <clifo.h>
#include <nditte.h>
#include <pagsca.h>
#include <pconti.h>
#include <scadenze.h>
#include "../cg/cgsaldac.h"
#include "sc2.h"
#include "sc2201.h"
#include "sc2300.h"
#include <clifo.h>
#include <nditte.h>
#include <pconti.h>
///////////////////////////////////////////////////////////
// Stampa scaduto
///////////////////////////////////////////////////////////

View File

@ -1,14 +1,13 @@
#include "../cg/saldacon.h"
#include <mov.h>
#include <pagsca.h>
#include <scadenze.h>
#include <partite.h>
#include <prefix.h>
#include <printer.h>
#include "../cg/cgsaldac.h"
#include "sc21pec.h"
#include "sc2401.h"
#include <causali.h>
#include <mov.h>
bool TESSL_mask::codprof_handler(TMask_field& f, KEY k)
{

View File

@ -2,25 +2,39 @@
#ifndef __SC2401_H
#define __SC2401_H
#include <printer.h>
#ifndef __FORM_H
#include <form.h>
#endif
#include "../cg/saldacon.h"
#ifndef __CGSALDAC_H
#include "../cg/cgsaldac.h"
#endif
#ifndef __SC2102_H
#include "sc2102.h"
#include "sc2400a.h"
#include "sc21pec.h"
#endif
#include <clifo.h>
#include <causali.h>
#include <pagsca.h>
#include <scadenze.h>
#ifndef __SC2400A_H
#include "sc2400a.h"
#endif
#ifndef __SC21PEC_H
#include "sc21pec.h"
#endif
#ifndef __SCSELECT_H
#include "scselect.h"
#endif
class TESSL_mask: public TSelection_mask
#ifndef __CLIFO_H
#include <clifo.h>
#endif
#ifndef __CAUSALI_H
#include <causali.h>
#endif
class TESSL_mask: public TSelection_mask
{
TRelation _ditta;
TString _tmp;

View File

@ -1,30 +1,24 @@
#include "../cg/saldacon.h"
#include <pagsca.h>
#include <scadenze.h>
#include <partite.h>
#include "sc21pec.h"
#include "sc2102.h"
#include "sc2402.h"
#include "../cg/cgsaldac.h"
#include <causali.h>
TSol_mask::TSol_mask(const char *name)
:TESSL_mask(name)
{
}
TSol_mask::~TSol_mask() {}
bool TSol_mask::get_sel_tot_saldo() const
{
return get(F_RIFIMPMIN) == "C";
}
real TSol_mask::get_sel_importo() const
{
return real(get(F_IMPORMIN));
}
@ -35,13 +29,11 @@ real TSol_mask::get_sel_importo() const
TSol_row::TSol_row(const TRiga_partite& row, const TDate& data, const TImporto& imp, int rata)
:TESSL_row(row, data, imp, rata)
{
}
TSol_row::TSol_row(const char* desc, const TImporto& imp, const TValuta& val)
:TESSL_row(desc, imp, val)
{}
///////////////////////////////////////////////////////////
@ -50,7 +42,6 @@ TSol_row::TSol_row(const char* desc, const TImporto& imp, const TValuta& val)
TSol_form::TSol_form(const TSol_mask& m, bool gesval, short id_datalim, short id_datascad)
:TESSL_form(m, gesval, id_datalim, id_datascad)
{
_sel_tot_saldo = m.get_sel_tot_saldo();
_sel_importo = m.get_sel_importo();
@ -62,7 +53,6 @@ TSol_form::TSol_form(const TSol_mask& m, bool gesval, short id_datalim, short id
TSol_array::TSol_array(const TPartita& game, const TSol_form* f)
:TESSL_array(game, f)
{
}

View File

@ -1,28 +1,12 @@
#ifndef __SC2402_H
#define __SC2402_H
#include <printer.h>
#include <form.h>
#include "../cg/saldacon.h"
#include "sc2102.h"
#include "sc2400a.h"
#include "sc21pec.h"
#ifndef __SC2401_H
#include "sc2401.h"
#include <clifo.h>
#include <causali.h>
#include <pagsca.h>
#include <scadenze.h>
#endif
class TSol_mask: public TESSL_mask
{
protected:
public:
bool get_sel_tot_saldo() const ;
real get_sel_importo() const ;