Patch level : 10.0 368
Files correlati : ve0.exe ve1.exe ve1100b.msk Ricompilazione Demo : [ ] Commento : 0001404: Selezionando la commessa scompare il centro di costo nei documenti Nella gestione documenti interattivi, quando ho la seguente configurazione di analitica: 1) centro di costo 2) commessa 3) fase collegata alla commessa Nel momento in cui vario la commessa, scompare il centro di costo 0001403: Non funziona l'anteprima della lista documenti La lista documenti stampa sempre su carta anche selezionando anteprima git-svn-id: svn://10.65.10.50/trunk@19097 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
c9c393bbed
commit
b367d19a57
@ -11,6 +11,7 @@
|
|||||||
#include <printer.h>
|
#include <printer.h>
|
||||||
#include <progind.h>
|
#include <progind.h>
|
||||||
#include <sheet.h>
|
#include <sheet.h>
|
||||||
|
#include <toolfld.h>
|
||||||
|
|
||||||
#include "velib05.h"
|
#include "velib05.h"
|
||||||
#include "sconti.h"
|
#include "sconti.h"
|
||||||
@ -2002,6 +2003,9 @@ bool TStampaDoc_application::create()
|
|||||||
_selection_mask->set_handler(BUT_SEL, select_button);
|
_selection_mask->set_handler(BUT_SEL, select_button);
|
||||||
_selection_mask->set_handler(BUT_ANN, reset_button);
|
_selection_mask->set_handler(BUT_ANN, reset_button);
|
||||||
_selection_mask->sfield(F_SHEETNUMS).sheet_mask().set_handler(102, tipodoc_handler);
|
_selection_mask->sfield(F_SHEETNUMS).sheet_mask().set_handler(102, tipodoc_handler);
|
||||||
|
|
||||||
|
TButton_tool& ap = (TButton_tool&)_selection_mask->field(DLG_PREVIEW);
|
||||||
|
ap.set_exit_key('A');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (argc>3)
|
if (argc>3)
|
||||||
@ -2115,7 +2119,7 @@ void TStampaDoc_application::main_loop()
|
|||||||
int ve1100(int argc, char* argv[])
|
int ve1100(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
TStampaDoc_application a;
|
TStampaDoc_application a;
|
||||||
const bool riep = argc == 4 && argv[2][0] == 'L'; // Lista documenti
|
const bool riep = argc >= 4 && argv[2][0] == 'L'; // Lista documenti
|
||||||
a.run(argc, argv, riep ? TR("Lista documenti") : TR("Stampa documenti"));
|
a.run(argc, argv, riep ? TR("Lista documenti") : TR("Stampa documenti"));
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
@ -1,7 +1,7 @@
|
|||||||
#include "ve1100.h"
|
#include "ve1100.h"
|
||||||
|
|
||||||
TOOLBAR "topbar" 0 0 0 2
|
TOOLBAR "topbar" 0 0 0 2
|
||||||
#include <printbar.h>
|
#include <aprintbar.h>
|
||||||
ENDPAGE
|
ENDPAGE
|
||||||
|
|
||||||
PAGE "Lista documenti" -1 -1 60 21
|
PAGE "Lista documenti" -1 -1 60 21
|
||||||
|
@ -3211,13 +3211,10 @@ void TDocumento_mask::user_set_handler(short fieldid, int index)
|
|||||||
bool TDocumento_mask::call_handler( TMask_field& f, KEY key)
|
bool TDocumento_mask::call_handler( TMask_field& f, KEY key)
|
||||||
{
|
{
|
||||||
const short id = f.dlg();
|
const short id = f.dlg();
|
||||||
|
|
||||||
CONTROL_HANDLER h = (CONTROL_HANDLER) _handlers.objptr(id);
|
CONTROL_HANDLER h = (CONTROL_HANDLER) _handlers.objptr(id);
|
||||||
|
|
||||||
if (h != NULL)
|
if (h != NULL)
|
||||||
return h(f, key);
|
return h(f, key);
|
||||||
|
return true;
|
||||||
return TRUE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool TDocumento_mask::universal_handler( TMask_field& f, KEY key)
|
bool TDocumento_mask::universal_handler( TMask_field& f, KEY key)
|
||||||
|
@ -2595,24 +2595,25 @@ bool codcms_handler(TMask_field& f, KEY key)
|
|||||||
{
|
{
|
||||||
const TRectype& curr = mask.efield(mask.cms_start()).browse()->cursor()->curr();
|
const TRectype& curr = mask.efield(mask.cms_start()).browse()->cursor()->curr();
|
||||||
const TString& codcms = curr.get(COMMESSE_CODCMS);
|
const TString& codcms = curr.get(COMMESSE_CODCMS);
|
||||||
|
mask.codcms() = codcms;
|
||||||
if (mask.cdc_start() >= 0 && mask.codcms() != codcms)
|
// Controlla se c'e' la gestione dei centri di costo al secondo livello
|
||||||
|
if (mask.cdc_start() > mask.cms_start() && mask.codcms() != codcms)
|
||||||
{
|
{
|
||||||
const TString codcosto = curr.get(COMMESSE_CODCOSTO);
|
const TString codcosto = curr.get(COMMESSE_CODCOSTO);
|
||||||
|
if (codcosto.full()) // Propone centro di costo solo se specificato
|
||||||
|
{
|
||||||
for (short i = mask.cdc_start(); i <= mask.cdc_end(); i++)
|
for (short i = mask.cdc_start(); i <= mask.cdc_end(); i++)
|
||||||
{
|
{
|
||||||
TEdit_field & e = mask.efield(i);
|
TEdit_field & e = mask.efield(i);
|
||||||
const TFieldref * f = e.field();
|
const TFieldref * f = e.field();
|
||||||
|
|
||||||
if (f != NULL)
|
if (f != NULL)
|
||||||
{
|
{
|
||||||
const int from = f->from();
|
const int from = f->from();
|
||||||
const int to = f->to();
|
const int to = f->to();
|
||||||
|
|
||||||
mask.set(i, codcosto.sub(from, to), 0x2);
|
mask.set(i, codcosto.sub(from, to), 0x2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
mask.codcms() = codcms;
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user