Patch level : 10.0 no patch
Files correlati : Ricompilazione Demo : [ ] Commento : prima stesura gestione tabelle c.i. git-svn-id: svn://10.65.10.50/trunk@20540 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
038ca2cab5
commit
8e835b54c8
@ -16,7 +16,7 @@ int main(int argc, char** argv)
|
|||||||
ci0400(argc,argv); // Immssione documenti
|
ci0400(argc,argv); // Immssione documenti
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
// ci0100(argc,argv); // gestione tabelle
|
ci0100(argc,argv); // gestione tabelle cont. ind.
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
1
ci/ci0.h
1
ci/ci0.h
@ -1,6 +1,7 @@
|
|||||||
#ifndef __CI0_H
|
#ifndef __CI0_H
|
||||||
#define __CI0_H
|
#define __CI0_H
|
||||||
|
|
||||||
|
int ci0100(int argc, char* argv[]); // gestione tabelle cont. industriale
|
||||||
int ci0300(int argc, char* argv[]); // parametri configurazione Contabilita' Industriale
|
int ci0300(int argc, char* argv[]); // parametri configurazione Contabilita' Industriale
|
||||||
int ci0400(int argc, char* argv[]); // immssione documenti
|
int ci0400(int argc, char* argv[]); // immssione documenti
|
||||||
|
|
||||||
|
77
ci/ci0100.cpp
Executable file
77
ci/ci0100.cpp
Executable file
@ -0,0 +1,77 @@
|
|||||||
|
// gestione tabelle contabilita' ind.
|
||||||
|
#include <automask.h>
|
||||||
|
#include <modtbapp.h>
|
||||||
|
#include <tabapp.h>
|
||||||
|
|
||||||
|
#include "citbore.h"
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////
|
||||||
|
// Maschera generica di gestione tabelle cont/ industriale
|
||||||
|
///////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
class TCI_table_mask : public TAutomask
|
||||||
|
{
|
||||||
|
protected:
|
||||||
|
virtual bool on_field_event(TOperable_field &o, TField_event e, long jolly);
|
||||||
|
|
||||||
|
public:
|
||||||
|
TCI_table_mask(const char* name) : TAutomask(name) {}
|
||||||
|
};
|
||||||
|
|
||||||
|
bool TCI_table_mask::on_field_event(TOperable_field &o, TField_event e, long jolly)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////
|
||||||
|
// Applicazione generica di gestione tabelle cont. ind.
|
||||||
|
///////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
// applicazione per la gestione delle tabelle di cont. ind.
|
||||||
|
class TCI_table_app : public TTable_module_application
|
||||||
|
{
|
||||||
|
protected: // TRelation_application
|
||||||
|
virtual TMask* user_create_mask();
|
||||||
|
virtual int write(const TMask& m);
|
||||||
|
virtual int rewrite(const TMask& m);
|
||||||
|
|
||||||
|
public:
|
||||||
|
};
|
||||||
|
|
||||||
|
// Ridefinire questo metodo per le eventuali maschere speciali
|
||||||
|
// che abbiano controlli speciali da effettuare nella on_field_evebt
|
||||||
|
TMask* TCI_table_app::user_create_mask()
|
||||||
|
{
|
||||||
|
const TString4 name = get_relation()->file(0).name();
|
||||||
|
if (name == "???")
|
||||||
|
return new TCI_table_mask("???");
|
||||||
|
// Le maschere normali sono gia' gestite dalla TTable_module_application
|
||||||
|
return TTable_module_application::user_create_mask();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Ridefinizione del metodo write
|
||||||
|
int TCI_table_app::write(const TMask& m)
|
||||||
|
{
|
||||||
|
const TString4 name = get_relation()->file(0).name();
|
||||||
|
if (name == "???")
|
||||||
|
{
|
||||||
|
}
|
||||||
|
return TTable_module_application::write(m);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Ridefinizione del metodo rewrite
|
||||||
|
int TCI_table_app::rewrite(const TMask& m)
|
||||||
|
{
|
||||||
|
const TString4 name = get_relation()->file(0).name();
|
||||||
|
if (name == "???")
|
||||||
|
{
|
||||||
|
}
|
||||||
|
return TTable_module_application::rewrite(m);
|
||||||
|
}
|
||||||
|
|
||||||
|
int ci0100(int argc, char* argv[])
|
||||||
|
{
|
||||||
|
TCI_table_app a;
|
||||||
|
a.run(argc, argv, TR("Tabella Cont. Ind. "));
|
||||||
|
return 0;
|
||||||
|
}
|
3
ci/citbore.h
Executable file
3
ci/citbore.h
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
//campi maschera citbore (Tabella Tipologia Ore)
|
||||||
|
#define F_COD_ORA 101
|
||||||
|
#define F_DES_ORA 102
|
44
ci/citbore.uml
Executable file
44
ci/citbore.uml
Executable file
@ -0,0 +1,44 @@
|
|||||||
|
#include "citbore.h"
|
||||||
|
|
||||||
|
TOOLBAR "" 0 0 0 2
|
||||||
|
#include "relapbar.h"
|
||||||
|
ENDPAGE
|
||||||
|
|
||||||
|
PAGE "Tabella Tipologia Ore" 0 2 0 0
|
||||||
|
|
||||||
|
GROUPBOX DLG_NULL 76 4
|
||||||
|
BEGIN
|
||||||
|
PROMPT 1 1 "@bDati Tipologia Ora"
|
||||||
|
END
|
||||||
|
|
||||||
|
STRING F_COD_ORA 2
|
||||||
|
BEGIN
|
||||||
|
PROMPT 2 2 "Codice "
|
||||||
|
FLAGS "U"
|
||||||
|
USE &ORE
|
||||||
|
INPUT CODTAB F_COD_ORA
|
||||||
|
DISPLAY "Codice" CODTAB
|
||||||
|
DISPLAY "Descrizione@50" S0
|
||||||
|
OUTPUT F_COD_ORA CODTAB
|
||||||
|
OUTPUT F_DES_ORA S0
|
||||||
|
CHECKTYPE REQUIRED
|
||||||
|
FIELD CODTAB
|
||||||
|
KEY 1
|
||||||
|
END
|
||||||
|
|
||||||
|
STRING F_DES_ORA 50
|
||||||
|
BEGIN
|
||||||
|
PROMPT 2 3 "Descrizione "
|
||||||
|
USE &ORE KEY 2
|
||||||
|
INPUT CODTAB F_COD_ORA
|
||||||
|
DISPLAY "Descrizione@50" S0
|
||||||
|
DISPLAY "Codice" CODTAB
|
||||||
|
COPY OUTPUT F_COD_ORA
|
||||||
|
FIELD S0
|
||||||
|
KEY 2
|
||||||
|
CHECKTYPE REQUIRED
|
||||||
|
END
|
||||||
|
|
||||||
|
ENDPAGE
|
||||||
|
|
||||||
|
ENDMASK
|
Loading…
x
Reference in New Issue
Block a user