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 )
|
||||
{
|
||||
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);
|
||||
|
||||
@ -82,7 +82,7 @@ void TMotore_application::init_insert_mode( TMask& m )
|
||||
TDocumento_mask& dm = (TDocumento_mask&)m;
|
||||
TString4 codnum(m.get(F_CODNUM));
|
||||
|
||||
enable_menu_item(MENU_ITEM(1));
|
||||
enable_menu_item(MENU_ITEM_ID(1));
|
||||
dm.reset_father_rows();
|
||||
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 TString4 provv = m.get(F_PROVV);
|
||||
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')
|
||||
{
|
||||
m.disable(DLG_PRINT);
|
||||
@ -345,7 +345,7 @@ int TMotore_application::read( TMask& m )
|
||||
bool TMotore_application::menu(MENU_TAG mt)
|
||||
{
|
||||
bool ok = true;
|
||||
if (mt == MENU_ITEM(1))
|
||||
if (mt == MENU_ITEM_ID(1))
|
||||
{
|
||||
if (_docmsk != NULL)
|
||||
_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 )
|
||||
{
|
||||
|
@ -251,7 +251,7 @@ bool TContabilizzazione_app::create()
|
||||
_msk->set_handler(DLG_USER,handle_select);
|
||||
_num_sheet = new TArray_sheet(-1,-1,-4,-4,"Codici numerazione",
|
||||
"@1|Cod. numerazione|Descrizione@50");
|
||||
dispatch_e_menu(BAR_ITEM(1));
|
||||
dispatch_e_menu(BAR_ITEM_ID(1));
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
@ -570,14 +570,14 @@ bool TContabil_tsys_app::doc_tipo_stato_ok(const TRectype& doc)
|
||||
// differita selezionata
|
||||
{
|
||||
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 int items = _tipi_doc.items();
|
||||
for (int i=0;i<items && !found;i++)
|
||||
{
|
||||
TToken_string& t = _tipi_doc.row(i);
|
||||
const TString16 tipox(t.get(0));
|
||||
const char statox = t.get(1)[0];
|
||||
const TString4 tipox(t.get(0));
|
||||
const char statox = t.get_char(1);
|
||||
if (tipo == tipox && stato == statox)
|
||||
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_REG,handle_data_reg);
|
||||
_msk->set_handler(DLG_USER,handle_select);
|
||||
_num_sheet = new TArray_sheet(-1,-1,-4,-4,"Codici numerazione",
|
||||
"@1|Cod. numerazione|Descrizione@50");
|
||||
dispatch_e_menu(BAR_ITEM(1));
|
||||
_num_sheet = new TArray_sheet(-1,-1,-4,-4,TR("Codici numerazione"),
|
||||
HR("@1|Cod. numerazione|Descrizione@50"));
|
||||
dispatch_e_menu(BAR_ITEM_ID(1));
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
@ -2782,19 +2782,17 @@ bool TDocumento::is_evaso() const
|
||||
|
||||
bool TDocumento::is_nota_credito() const
|
||||
{
|
||||
bool swap = FALSE;
|
||||
bool swap = false;
|
||||
|
||||
// Controlla prima l'esistenza del flag nota-credito sul tipo documento;
|
||||
// se non e' settato controlla la causale
|
||||
if (tipo().nota_credito())
|
||||
swap = TRUE;
|
||||
swap = true;
|
||||
else
|
||||
{
|
||||
const TString16 codcaus(tipo().causale());
|
||||
if (codcaus.not_empty())
|
||||
const TString4 codcaus(tipo().causale());
|
||||
if (codcaus.full())
|
||||
{
|
||||
TLocalisamfile caus(LF_CAUSALI);
|
||||
TLocalisamfile rcaus(LF_RCAUSALI);
|
||||
TCausale c(codcaus, data().year());
|
||||
const char sez = c.sezione_clifo();
|
||||
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(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);
|
||||
force_value(val, doc.get_real(DOC_CAMBIO), controeuro ? _exchange_contro : _exchange_base);
|
||||
set_num(num);
|
||||
@ -2867,10 +2865,9 @@ int TDocumento::tipo_riclassificato() const
|
||||
return tipo_riclassificato;
|
||||
}
|
||||
|
||||
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)))
|
||||
return c.vendite().get(CFV_ASSFIS);
|
||||
return EMPTY_STRING;
|
||||
@ -2879,14 +2876,12 @@ const TString & TDocumento::codesiva() const
|
||||
void TDocumento::get_protocolli_esenzione(TString & esenzione, TString & data_esenzione,
|
||||
TString & registrazione, TString & data_registrazione) const
|
||||
{
|
||||
TCli_for & c = clifor();
|
||||
|
||||
TCli_for& c = clifor();
|
||||
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);
|
||||
data_esenzione = rec.get(LETINT_VSDATA);
|
||||
registrazione = rec.get(LETINT_NUMPROT);
|
||||
|
Loading…
x
Reference in New Issue
Block a user