Patch level : 10.0 280
Files correlati : ce3.exe ce3900.msk ce3900a.rep Ricompilazione Demo : [ ] Commento : 0001262: barre di scorrimento sulla visualizzazione stampe Nella visualizzazione delle stampe non ci sono le barre di scorrimento all'interno della pagina. git-svn-id: svn://10.65.10.50/trunk@18685 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
0a6ce9400c
commit
4a565f85ea
@ -1,5 +1,6 @@
|
||||
#include <applicat.h>
|
||||
#include <automask.h>
|
||||
#include <defmask.h>
|
||||
#include <progind.h>
|
||||
#include <recarray.h>
|
||||
#include <reprint.h>
|
||||
@ -24,12 +25,13 @@
|
||||
////////////////////////////////////////////////////////
|
||||
class TStampa_sintetica_mask : public TAutomask
|
||||
{
|
||||
bool _preview;
|
||||
|
||||
protected:
|
||||
bool on_field_event(TOperable_field& o, TField_event e, long jolly);
|
||||
|
||||
public:
|
||||
bool preview() const { return _preview; }
|
||||
TStampa_sintetica_mask();
|
||||
virtual ~TStampa_sintetica_mask() {}
|
||||
};
|
||||
|
||||
|
||||
@ -72,17 +74,25 @@ bool TStampa_sintetica_mask::on_field_event(TOperable_field& o, TField_event e,
|
||||
}
|
||||
}
|
||||
break;
|
||||
case DLG_PRINT:
|
||||
if (e == fe_button)
|
||||
_preview = false;
|
||||
break;
|
||||
case DLG_PREVIEW:
|
||||
if (e == fe_button)
|
||||
{
|
||||
_preview = true;
|
||||
stop_run(K_ENTER);
|
||||
}
|
||||
break;
|
||||
default: break;
|
||||
}
|
||||
return ok;
|
||||
}
|
||||
|
||||
|
||||
TStampa_sintetica_mask::TStampa_sintetica_mask()
|
||||
:TAutomask("ce3900")
|
||||
TStampa_sintetica_mask::TStampa_sintetica_mask() : TAutomask("ce3900"), _preview(false)
|
||||
{}
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////
|
||||
// RECORDSET
|
||||
///////////////////////////////////////////////////////////////
|
||||
@ -110,16 +120,9 @@ void TStampa_sintetica_recordset::set_filter(const TStampa_sintetica_mask& msk)
|
||||
if (dacat.full() || acat.full())
|
||||
{
|
||||
if (dacat == acat)
|
||||
{
|
||||
query << "&&(CODCAT==" << dacat << ")";
|
||||
}
|
||||
else
|
||||
{
|
||||
if (dacat.full())
|
||||
query << "&&(CODCAT>=" << dacat << ")";
|
||||
if (acat.full())
|
||||
query << "&&(CODCAT<=" << acat << ")";
|
||||
}
|
||||
query << "&&(BETWEEN(CODCAT," << dacat << ',' << acat << "))";
|
||||
}
|
||||
|
||||
query << "\nBY CODCAT|CODIMP|CODLOC|IDCESPITE"; //query standard senza raggruppamenti
|
||||
@ -351,7 +354,11 @@ void TStampa_sintetica::main_loop()
|
||||
rep.set_filter(mask);
|
||||
book.add(rep);
|
||||
|
||||
book.print_or_preview(); //stampa il book dei report
|
||||
//stampa il book dei report
|
||||
if (mask.preview())
|
||||
book.preview();
|
||||
else
|
||||
book.print();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#include "ce3900.h"
|
||||
|
||||
TOOLBAR "topbar" 0 0 0 2
|
||||
#include <printbar.h>
|
||||
#include <aprintbar.h>
|
||||
ENDPAGE
|
||||
|
||||
PAGE "Lista sintetica cespiti" 0 2 0 0
|
||||
|
@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<report name="ce3900a" lpi="6">
|
||||
<report name="ce3900a" orientation="2" lpi="6">
|
||||
<description>Lista sintetica cespiti</description>
|
||||
<font face="Courier New" size="7" />
|
||||
<section type="Head">
|
||||
@ -32,7 +32,7 @@ MESSAGE RESET,F1.104
|
||||
MESSAGE RESET,F1.105
|
||||
MESSAGE RESET,F1.106
|
||||
MESSAGE RESET,F1.107</prescript>
|
||||
<field border="1" radius="100" x="0" y="0.5" type="Testo" valign="center" align="center" shade_offset="25" width="182" height="2.5" text="LISTA SINTETICA CESPITI">
|
||||
<field border="1" radius="100" y="0.5" type="Testo" valign="center" align="center" shade_offset="25" width="182" height="2.5" text="LISTA SINTETICA CESPITI">
|
||||
<font face="Courier New" bold="1" size="16" />
|
||||
</field>
|
||||
<field border="2" y="4" type="Linea" width="182" height="0" pattern="1" />
|
||||
|
Loading…
x
Reference in New Issue
Block a user