Patch level :10.0
Files correlati : Ricompilazione Demo : [ ] Commento :Primo rilascio archivi Lavanderie git-svn-id: svn://10.65.10.50/trunk@16978 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
5bc66323bd
commit
3d9edc1f4a
69
lv/lv0500.cpp
Executable file
69
lv/lv0500.cpp
Executable file
@ -0,0 +1,69 @@
|
||||
#include <automask.h>
|
||||
#include <defmask.h>
|
||||
#include <relapp.h>
|
||||
#include <tabutil.h>
|
||||
|
||||
#include "lv0.h"
|
||||
#include "lv0500a.h"
|
||||
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// MASCHERA
|
||||
//-------------------------------------------------------------------
|
||||
class TLavanderie_mask : public TAutomask
|
||||
{
|
||||
protected:
|
||||
virtual bool on_field_event(TOperable_field& o, TField_event e, long jolly);
|
||||
|
||||
public:
|
||||
TLavanderie_mask();
|
||||
};
|
||||
|
||||
bool TLavanderie_mask::on_field_event(TOperable_field& o, TField_event e, long jolly)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
TLavanderie_mask::TLavanderie_mask() : TAutomask("")
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------
|
||||
// APPLICAZIONE
|
||||
//--------------------------------------------------------------
|
||||
class TLavanderie : public TRelation_application
|
||||
{
|
||||
TLavanderie_mask* _mask;
|
||||
TRelation* _rel;
|
||||
|
||||
protected:
|
||||
bool user_create();
|
||||
bool user_destroy();
|
||||
virtual TMask* get_mask(int mode) { return _mask; }
|
||||
virtual bool changing_mask(int mode) { return false; }
|
||||
|
||||
public:
|
||||
virtual TRelation* get_relation() const {return (TRelation*)_rel;}
|
||||
};
|
||||
|
||||
|
||||
bool TLavanderie::user_create()
|
||||
{
|
||||
const TString8 name = get_relation()->file(0).name();
|
||||
_rel = new TRelation(LF_LETINT);
|
||||
_mask = new TLavanderie_mask;
|
||||
return true;
|
||||
}
|
||||
|
||||
bool TLavanderie::user_destroy()
|
||||
{
|
||||
delete _mask;
|
||||
return true;
|
||||
}
|
||||
|
||||
int lv0500(int argc, char* argv[])
|
||||
{
|
||||
TLavanderie a;
|
||||
a.run(argc, argv, TR("Archivi Lavanderie"));
|
||||
return 0;
|
||||
}
|
18
lv/lv0500a.h
Executable file
18
lv/lv0500a.h
Executable file
@ -0,0 +1,18 @@
|
||||
#define PROVV
|
||||
/*ANNO
|
||||
CODNUM
|
||||
NDOC
|
||||
GGCONS
|
||||
CODITI
|
||||
USERINS|1|16|0|Utente d'inserimento
|
||||
DATAINS|5|8|0|Data d'inserimento
|
||||
USERAGG|1|16|0|Utente ultimo aggiornamento
|
||||
DATAAGG|5|8|0|Data ultimo aggiornamento
|
||||
TIPOCF|1|1|0|Tipo <C>liente <F>ornitore (C)
|
||||
CODCF|3|6|0|Codice Cliente/Fornitore
|
||||
ORDFERM|2|3|0|Indica l'ordine di fermata dell'autista
|
||||
CODFRQCONS|1|2|0|Codice per il calcolo delle consegne
|
||||
MODPASS|1|1|0|Indica la modalità di passaggio
|
||||
FLAGSTAG|8|1|0|Flag di stagionalità
|
||||
ORAARR|1|4|0|Ora di arrivo
|
||||
NOTE|11|10|0|Note */
|
@ -25,3 +25,12 @@ Item_02 = "Mezzi di Trasporto", "lv0 -0 MEZ", "F"
|
||||
Item_03 = "Itinerari", "lv0 -0 ITI", "F"
|
||||
Item_04 = "Tipi di Sospensione", "lv0 -0 TSP", "F"
|
||||
Item_05 = "Frequenza Consegne", "lv0 -0 FRQ", "F"
|
||||
|
||||
[LVMENU_020]
|
||||
Caption = "Archivi di Base"
|
||||
Picture = <ba00>
|
||||
Module = 41
|
||||
Flags = ""
|
||||
Item_01 = "Passaggi Planning per Contratto", "lv0 -4", "F"
|
||||
Item_02 = "Periodi di Sospensione", "lv0 -5", "F"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user