Patch level : 10.0
Files correlati : ve?.exe Ricompilazione Demo : [ ] Commento : Tolti riferimenti al vecchio MENU_ITEM e sostituiti con MENU_ITEM_ID git-svn-id: svn://10.65.10.50/trunk@18321 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
cbe639d56c
commit
82dc31cfa4
@ -53,7 +53,7 @@ bool TMotore_application::save_and_new() const
|
|||||||
void TMotore_application::init_query_mode( TMask& m )
|
void TMotore_application::init_query_mode( TMask& m )
|
||||||
{
|
{
|
||||||
disable_menu_item(M_FILE_PRINT);
|
disable_menu_item(M_FILE_PRINT);
|
||||||
disable_menu_item(MENU_ITEM(1));
|
disable_menu_item(MENU_ITEM_ID(1));
|
||||||
|
|
||||||
TEdit_field& cn = _msk->efield(F_CODNUM);
|
TEdit_field& cn = _msk->efield(F_CODNUM);
|
||||||
|
|
||||||
@ -82,7 +82,7 @@ void TMotore_application::init_insert_mode( TMask& m )
|
|||||||
TDocumento_mask& dm = (TDocumento_mask&)m;
|
TDocumento_mask& dm = (TDocumento_mask&)m;
|
||||||
TString4 codnum(m.get(F_CODNUM));
|
TString4 codnum(m.get(F_CODNUM));
|
||||||
|
|
||||||
enable_menu_item(MENU_ITEM(1));
|
enable_menu_item(MENU_ITEM_ID(1));
|
||||||
dm.reset_father_rows();
|
dm.reset_father_rows();
|
||||||
if (codnum.empty())
|
if (codnum.empty())
|
||||||
{
|
{
|
||||||
@ -173,7 +173,7 @@ void TMotore_application::init_modify_mode( TMask& m )
|
|||||||
const bool enable_print = edit_mask().doc().tipo().printable();
|
const bool enable_print = edit_mask().doc().tipo().printable();
|
||||||
const TString4 provv = m.get(F_PROVV);
|
const TString4 provv = m.get(F_PROVV);
|
||||||
enable_menu_item(M_FILE_PRINT, provv == "D" && enable_print);
|
enable_menu_item(M_FILE_PRINT, provv == "D" && enable_print);
|
||||||
enable_menu_item(MENU_ITEM(1));
|
enable_menu_item(MENU_ITEM_ID(1));
|
||||||
if (provv[0] == 'P')
|
if (provv[0] == 'P')
|
||||||
{
|
{
|
||||||
m.disable(DLG_PRINT);
|
m.disable(DLG_PRINT);
|
||||||
@ -345,7 +345,7 @@ int TMotore_application::read( TMask& m )
|
|||||||
bool TMotore_application::menu(MENU_TAG mt)
|
bool TMotore_application::menu(MENU_TAG mt)
|
||||||
{
|
{
|
||||||
bool ok = true;
|
bool ok = true;
|
||||||
if (mt == MENU_ITEM(1))
|
if (mt == MENU_ITEM_ID(1))
|
||||||
{
|
{
|
||||||
if (_docmsk != NULL)
|
if (_docmsk != NULL)
|
||||||
_docmsk->sel_color();
|
_docmsk->sel_color();
|
||||||
|
@ -562,7 +562,7 @@ static void verifica_campo( const TObject& campo )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
HIDDEN TProgind * _bar;
|
HIDDEN TProgind* _bar = NULL;
|
||||||
|
|
||||||
static void genera_gruppo( const TObject& gruppo )
|
static void genera_gruppo( const TObject& gruppo )
|
||||||
{
|
{
|
||||||
|
@ -251,7 +251,7 @@ bool TContabilizzazione_app::create()
|
|||||||
_msk->set_handler(DLG_USER,handle_select);
|
_msk->set_handler(DLG_USER,handle_select);
|
||||||
_num_sheet = new TArray_sheet(-1,-1,-4,-4,"Codici numerazione",
|
_num_sheet = new TArray_sheet(-1,-1,-4,-4,"Codici numerazione",
|
||||||
"@1|Cod. numerazione|Descrizione@50");
|
"@1|Cod. numerazione|Descrizione@50");
|
||||||
dispatch_e_menu(BAR_ITEM(1));
|
dispatch_e_menu(BAR_ITEM_ID(1));
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -570,14 +570,14 @@ bool TContabil_tsys_app::doc_tipo_stato_ok(const TRectype& doc)
|
|||||||
// differita selezionata
|
// differita selezionata
|
||||||
{
|
{
|
||||||
bool found = FALSE;
|
bool found = FALSE;
|
||||||
const TString16 tipo = doc.get(DOC_TIPODOC);
|
const TString4 tipo = doc.get(DOC_TIPODOC);
|
||||||
const char stato = doc.get_char(DOC_STATO);
|
const char stato = doc.get_char(DOC_STATO);
|
||||||
const int items = _tipi_doc.items();
|
const int items = _tipi_doc.items();
|
||||||
for (int i=0;i<items && !found;i++)
|
for (int i=0;i<items && !found;i++)
|
||||||
{
|
{
|
||||||
TToken_string& t = _tipi_doc.row(i);
|
TToken_string& t = _tipi_doc.row(i);
|
||||||
const TString16 tipox(t.get(0));
|
const TString4 tipox(t.get(0));
|
||||||
const char statox = t.get(1)[0];
|
const char statox = t.get_char(1);
|
||||||
if (tipo == tipox && stato == statox)
|
if (tipo == tipox && stato == statox)
|
||||||
found = TRUE;
|
found = TRUE;
|
||||||
}
|
}
|
||||||
@ -601,9 +601,9 @@ bool TContabil_tsys_app::create()
|
|||||||
_msk->set_handler(F_DATA_FIN,handle_data_range);
|
_msk->set_handler(F_DATA_FIN,handle_data_range);
|
||||||
//_msk->set_handler(F_DATA_REG,handle_data_reg);
|
//_msk->set_handler(F_DATA_REG,handle_data_reg);
|
||||||
_msk->set_handler(DLG_USER,handle_select);
|
_msk->set_handler(DLG_USER,handle_select);
|
||||||
_num_sheet = new TArray_sheet(-1,-1,-4,-4,"Codici numerazione",
|
_num_sheet = new TArray_sheet(-1,-1,-4,-4,TR("Codici numerazione"),
|
||||||
"@1|Cod. numerazione|Descrizione@50");
|
HR("@1|Cod. numerazione|Descrizione@50"));
|
||||||
dispatch_e_menu(BAR_ITEM(1));
|
dispatch_e_menu(BAR_ITEM_ID(1));
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2782,19 +2782,17 @@ bool TDocumento::is_evaso() const
|
|||||||
|
|
||||||
bool TDocumento::is_nota_credito() const
|
bool TDocumento::is_nota_credito() const
|
||||||
{
|
{
|
||||||
bool swap = FALSE;
|
bool swap = false;
|
||||||
|
|
||||||
// Controlla prima l'esistenza del flag nota-credito sul tipo documento;
|
// Controlla prima l'esistenza del flag nota-credito sul tipo documento;
|
||||||
// se non e' settato controlla la causale
|
// se non e' settato controlla la causale
|
||||||
if (tipo().nota_credito())
|
if (tipo().nota_credito())
|
||||||
swap = TRUE;
|
swap = true;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
const TString16 codcaus(tipo().causale());
|
const TString4 codcaus(tipo().causale());
|
||||||
if (codcaus.not_empty())
|
if (codcaus.full())
|
||||||
{
|
{
|
||||||
TLocalisamfile caus(LF_CAUSALI);
|
|
||||||
TLocalisamfile rcaus(LF_RCAUSALI);
|
|
||||||
TCausale c(codcaus, data().year());
|
TCausale c(codcaus, data().year());
|
||||||
const char sez = c.sezione_clifo();
|
const char sez = c.sezione_clifo();
|
||||||
swap = ((c.reg().iva() == iva_vendite) ^ (sez == 'D'));
|
swap = ((c.reg().iva() == iva_vendite) ^ (sez == 'D'));
|
||||||
@ -2806,7 +2804,7 @@ bool TDocumento::is_nota_credito() const
|
|||||||
TCurrency_documento::TCurrency_documento(const real& num, const TDocumento & doc, bool price)
|
TCurrency_documento::TCurrency_documento(const real& num, const TDocumento & doc, bool price)
|
||||||
: TCurrency(ZERO, "", ZERO, _exchange_base, price)
|
: TCurrency(ZERO, "", ZERO, _exchange_base, price)
|
||||||
{
|
{
|
||||||
const TString16 val(doc.get(DOC_CODVAL));
|
const TString4 val = doc.get(DOC_CODVAL);
|
||||||
const bool controeuro = doc.get_bool(DOC_CONTROEURO);
|
const bool controeuro = doc.get_bool(DOC_CONTROEURO);
|
||||||
force_value(val, doc.get_real(DOC_CAMBIO), controeuro ? _exchange_contro : _exchange_base);
|
force_value(val, doc.get_real(DOC_CAMBIO), controeuro ? _exchange_contro : _exchange_base);
|
||||||
set_num(num);
|
set_num(num);
|
||||||
@ -2870,7 +2868,6 @@ int TDocumento::tipo_riclassificato() const
|
|||||||
const TString& TDocumento::codesiva() const
|
const TString& TDocumento::codesiva() const
|
||||||
{
|
{
|
||||||
TCli_for& c = clifor();
|
TCli_for& c = clifor();
|
||||||
|
|
||||||
if (!c.use_lettere() || c.read_lettera(get_date(DOC_DATADOC)))
|
if (!c.use_lettere() || c.read_lettera(get_date(DOC_DATADOC)))
|
||||||
return c.vendite().get(CFV_ASSFIS);
|
return c.vendite().get(CFV_ASSFIS);
|
||||||
return EMPTY_STRING;
|
return EMPTY_STRING;
|
||||||
@ -2880,13 +2877,11 @@ void TDocumento::get_protocolli_esenzione(TString & esenzione, TString & data_es
|
|||||||
TString & registrazione, TString & data_registrazione) const
|
TString & registrazione, TString & data_registrazione) const
|
||||||
{
|
{
|
||||||
TCli_for& c = clifor();
|
TCli_for& c = clifor();
|
||||||
|
|
||||||
if (c.use_lettere())
|
if (c.use_lettere())
|
||||||
{
|
{
|
||||||
if (c.read_lettera(get_date(DOC_DATADOC), true))
|
if (c.read_lettera(get_date(DOC_DATADOC), true))
|
||||||
{
|
{
|
||||||
const TRectype& rec = c.lettera();
|
const TRectype& rec = c.lettera();
|
||||||
|
|
||||||
esenzione = rec.get(LETINT_VSPROT);
|
esenzione = rec.get(LETINT_VSPROT);
|
||||||
data_esenzione = rec.get(LETINT_VSDATA);
|
data_esenzione = rec.get(LETINT_VSDATA);
|
||||||
registrazione = rec.get(LETINT_NUMPROT);
|
registrazione = rec.get(LETINT_NUMPROT);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user