Aggiunta l'apertura di LF_TABCOM e cambiata la condizione di filtro:
da B0=="" e' divenuta B0!="X" che sostanzialmente significa la stessa cosa, ma in realta' ha due effetti ben diversi, dati che la get_str() di campi booleani ritorna " " al posto di "". git-svn-id: svn://10.65.10.50/trunk@1792 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
df862da7f5
commit
7d9a470e15
@ -31,7 +31,7 @@ TTab_form::TTab_form(const char* name) : TForm(name)
|
|||||||
TIsamtempfile* tmp = new TIsamtempfile(LF_TABCOM, t, FALSE);
|
TIsamtempfile* tmp = new TIsamtempfile(LF_TABCOM, t, FALSE);
|
||||||
relation()->replace(tmp);
|
relation()->replace(tmp);
|
||||||
|
|
||||||
c->setfilter("B0==\"\""); // Esclude le deleghe gia' stampate
|
c->setfilter("B0!=\"X\""); // Esclude le deleghe gia' stampate
|
||||||
}
|
}
|
||||||
|
|
||||||
word TTab_form::set_body(word p, bool u)
|
word TTab_form::set_body(word p, bool u)
|
||||||
@ -115,10 +115,12 @@ bool TTab_form::validate(TForm_item& fld, TToken_string& s)
|
|||||||
///////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////
|
||||||
|
|
||||||
class TForm_printer : public TApplication
|
class TForm_printer : public TApplication
|
||||||
{
|
{
|
||||||
|
TLocalisamfile* _tabcom;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual bool create();
|
virtual bool create();
|
||||||
|
virtual bool destroy();
|
||||||
public:
|
public:
|
||||||
TForm_printer() {}
|
TForm_printer() {}
|
||||||
virtual ~TForm_printer() {}
|
virtual ~TForm_printer() {}
|
||||||
@ -134,13 +136,18 @@ bool TForm_printer::create()
|
|||||||
TFilename form(argv(2)); form.ext("frm");
|
TFilename form(argv(2)); form.ext("frm");
|
||||||
if (!fexist(form))
|
if (!fexist(form))
|
||||||
return error_box("Il profilo %s non esiste", (const char*)form);
|
return error_box("Il profilo %s non esiste", (const char*)form);
|
||||||
|
_tabcom = new TLocalisamfile(LF_TABCOM);
|
||||||
TTab_form f(form);
|
TTab_form f(form);
|
||||||
f.print();
|
f.print();
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool TForm_printer::destroy()
|
||||||
|
{
|
||||||
|
delete _tabcom;
|
||||||
|
return TApplication::destroy();
|
||||||
|
}
|
||||||
|
|
||||||
int ba2400(int argc, char* argv[])
|
int ba2400(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user