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);
|
||||
|
||||
TImage* image = new TImage(n);
|
||||
if (MASK_BACK_COLOR != COLOR_DKCYAN)
|
||||
image->set_clut(6, MASK_BACK_COLOR);
|
||||
image->convert_transparent_color();
|
||||
_images.add(image, id);
|
||||
}
|
||||
|
||||
|
@ -434,8 +434,9 @@ void TManutenzione_app::edit_riga (long riga_sel, TToken_string& riga)
|
||||
if (logicnum > 1)
|
||||
{
|
||||
const TFilename filename(_mask->get(FLD_NOME));
|
||||
const TString tabella(_mask->get(F_TAB));
|
||||
TEdit_file ef;
|
||||
ef.browse(logicnum, filename);
|
||||
ef.browse(logicnum, filename, tabella);
|
||||
}
|
||||
break;
|
||||
case K_F5:
|
||||
|
@ -80,7 +80,7 @@ protected:
|
||||
KEY edit_record(TRectype& rec, bool readonly = FALSE);
|
||||
|
||||
public:
|
||||
bool browse(int num, const char* name);
|
||||
bool browse(int logicnum, const TFilename& name, const TString& tab);
|
||||
TEdit_file() {}
|
||||
virtual ~TEdit_file() {}
|
||||
};
|
||||
|
@ -6,13 +6,7 @@
|
||||
|
||||
#include "ba1100.h"
|
||||
|
||||
// ORRIBILERRIMO
|
||||
// ma chemmefotte?
|
||||
HIDDEN TRectype* __rec;
|
||||
HIDDEN TRelation* __rel;
|
||||
HIDDEN TMask* __msk;
|
||||
|
||||
bool TEdit_file::browse(int logicnum, const char* name)
|
||||
bool TEdit_file::browse(int logicnum, const TFilename& name, const TString& tab)
|
||||
{
|
||||
TRelation relation(logicnum);
|
||||
TCursor cursor(&relation);
|
||||
@ -22,9 +16,15 @@ bool TEdit_file::browse(int logicnum, const char* name)
|
||||
TToken_string head(256);
|
||||
TToken_string trac(256);
|
||||
|
||||
// DIO CHE ORRORE! MA CHECCEPOSSOFA'?
|
||||
__rel = &relation;
|
||||
// E POI, DICIAMOLO, CHEMMEFOTTAMME'?
|
||||
if (logicnum == LF_TAB || logicnum == LF_TABCOM || logicnum == LF_TABGEN)
|
||||
{
|
||||
if (tab.len() == 3) // Filtra la tabella interessata
|
||||
{
|
||||
TRectype filter(logicnum);
|
||||
filter.put("COD", tab);
|
||||
cursor.setregion(filter, filter);
|
||||
}
|
||||
}
|
||||
|
||||
const char* n;
|
||||
trac.add("");
|
||||
|
Loading…
x
Reference in New Issue
Block a user