Potenziata gestione tabelle
git-svn-id: svn://10.65.10.50/trunk@2992 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
3f1aa16a5c
commit
7db3ee31d7
@ -369,8 +369,7 @@ int TMenu_application::do_level()
|
|||||||
n = format("ba%02d.bmp", id = 0);
|
n = format("ba%02d.bmp", id = 0);
|
||||||
|
|
||||||
TImage* image = new TImage(n);
|
TImage* image = new TImage(n);
|
||||||
if (MASK_BACK_COLOR != COLOR_DKCYAN)
|
image->convert_transparent_color();
|
||||||
image->set_clut(6, MASK_BACK_COLOR);
|
|
||||||
_images.add(image, id);
|
_images.add(image, id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -434,8 +434,9 @@ void TManutenzione_app::edit_riga (long riga_sel, TToken_string& riga)
|
|||||||
if (logicnum > 1)
|
if (logicnum > 1)
|
||||||
{
|
{
|
||||||
const TFilename filename(_mask->get(FLD_NOME));
|
const TFilename filename(_mask->get(FLD_NOME));
|
||||||
|
const TString tabella(_mask->get(F_TAB));
|
||||||
TEdit_file ef;
|
TEdit_file ef;
|
||||||
ef.browse(logicnum, filename);
|
ef.browse(logicnum, filename, tabella);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case K_F5:
|
case K_F5:
|
||||||
|
@ -80,7 +80,7 @@ protected:
|
|||||||
KEY edit_record(TRectype& rec, bool readonly = FALSE);
|
KEY edit_record(TRectype& rec, bool readonly = FALSE);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
bool browse(int num, const char* name);
|
bool browse(int logicnum, const TFilename& name, const TString& tab);
|
||||||
TEdit_file() {}
|
TEdit_file() {}
|
||||||
virtual ~TEdit_file() {}
|
virtual ~TEdit_file() {}
|
||||||
};
|
};
|
||||||
|
@ -6,13 +6,7 @@
|
|||||||
|
|
||||||
#include "ba1100.h"
|
#include "ba1100.h"
|
||||||
|
|
||||||
// ORRIBILERRIMO
|
bool TEdit_file::browse(int logicnum, const TFilename& name, const TString& tab)
|
||||||
// ma chemmefotte?
|
|
||||||
HIDDEN TRectype* __rec;
|
|
||||||
HIDDEN TRelation* __rel;
|
|
||||||
HIDDEN TMask* __msk;
|
|
||||||
|
|
||||||
bool TEdit_file::browse(int logicnum, const char* name)
|
|
||||||
{
|
{
|
||||||
TRelation relation(logicnum);
|
TRelation relation(logicnum);
|
||||||
TCursor cursor(&relation);
|
TCursor cursor(&relation);
|
||||||
@ -22,9 +16,15 @@ bool TEdit_file::browse(int logicnum, const char* name)
|
|||||||
TToken_string head(256);
|
TToken_string head(256);
|
||||||
TToken_string trac(256);
|
TToken_string trac(256);
|
||||||
|
|
||||||
// DIO CHE ORRORE! MA CHECCEPOSSOFA'?
|
if (logicnum == LF_TAB || logicnum == LF_TABCOM || logicnum == LF_TABGEN)
|
||||||
__rel = &relation;
|
{
|
||||||
// E POI, DICIAMOLO, CHEMMEFOTTAMME'?
|
if (tab.len() == 3) // Filtra la tabella interessata
|
||||||
|
{
|
||||||
|
TRectype filter(logicnum);
|
||||||
|
filter.put("COD", tab);
|
||||||
|
cursor.setregion(filter, filter);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
const char* n;
|
const char* n;
|
||||||
trac.add("");
|
trac.add("");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user