Patch level : 12.0 718
Files correlati : fp Commento : - Disabilitato pulsante invio nella prima pagina (Mancata consegna) - Aggiustato fpmenu
This commit is contained in:
parent
1a76da72e1
commit
d98e500c0c
src/fp
@ -32,7 +32,7 @@ protected:
|
||||
|
||||
void set_filter_changed();
|
||||
virtual bool on_field_event(TOperable_field& o, TField_event e, long jolly);
|
||||
void next_page(int p);
|
||||
void next_page(int p);
|
||||
bool check_not_empty();
|
||||
bool check_full_fields() const;
|
||||
bool check_doc_filter(const TDocumentoEsteso& td) const;
|
||||
@ -123,11 +123,6 @@ void TMancati_mask::fill()
|
||||
const TDate al = get(F_DATAEND);
|
||||
TString filter_selected = get(F_FATTSEL);
|
||||
|
||||
#ifdef DBG
|
||||
enable(DLG_OK);
|
||||
#else
|
||||
enable(DLG_OK, false);
|
||||
#endif
|
||||
|
||||
// Record di controllo per eventuali elaborazioni precedenti
|
||||
TString hfatt(LEN_HFATT), bfatt(LEN_BFATT);
|
||||
@ -262,8 +257,16 @@ void TMancati_mask::next_page(int p)
|
||||
_filter_changed = false;
|
||||
}
|
||||
}
|
||||
if(ok)
|
||||
if (ok)
|
||||
{
|
||||
TAutomask::next_page(p);
|
||||
if (curr_page() == 1)
|
||||
{
|
||||
enable(DLG_OK);
|
||||
}
|
||||
else enable(DLG_OK, false);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
bool TMancati_mask::check_not_empty()
|
||||
@ -392,72 +395,6 @@ bool TMancati_app::create()
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
void TMancati_app::set_next_pdf(const int anno, const TFixed_string& codnum, const TFixed_string& tipodoc, const long ndoc, const long codcf)
|
||||
{
|
||||
_anno = anno;
|
||||
_codnum = codnum;
|
||||
_ndoc = ndoc;
|
||||
_tipodoc = tipodoc;
|
||||
_tipocf = 'C';
|
||||
_codcf = codcf;
|
||||
}
|
||||
|
||||
bool TMancati_app::get_next_pdf(int anno, long ditta, const char* codnum, long ndoc, long codcf, TFilename& pdf) const
|
||||
{
|
||||
bool ok = false;
|
||||
if (_anno > 0 && _codnum.full() && _ndoc > 0 && _codcf > 0)
|
||||
ok = TSkeleton_application::get_next_pdf(_anno, ditta, _codnum, _ndoc, _codcf, pdf);
|
||||
return ok;
|
||||
}
|
||||
|
||||
|
||||
bool TMancati_app::get_mail_address(TToken_string& to, TToken_string& cc) const
|
||||
{
|
||||
if (_tipodoc.full())
|
||||
{
|
||||
const TTipo_documento& tipo = cached_tipodoc(_tipodoc);
|
||||
TFilename report; tipo.mail_print_profile(report);
|
||||
report = report.name_only();
|
||||
|
||||
TString8 clifo; clifo.format("%c%06ld", _tipocf, _codcf);
|
||||
TISAM_recordset contacts("USE MULTIREL\nFROM COD=BACON FIRST=#CLIFO\nTO COD=BACON FIRST=#CLIFO");
|
||||
contacts.set_var("#CLIFO", clifo);
|
||||
|
||||
TToken_string data;
|
||||
for (bool ok = contacts.move_first(); ok; ok = contacts.move_next())
|
||||
{
|
||||
data = contacts.get("DATA").as_string();
|
||||
FOR_EACH_TOKEN(data, tok)
|
||||
{
|
||||
if (_tipodoc.match(tok, true) || report.match(tok, true))
|
||||
{
|
||||
const TRectype& rub = cache().get(LF_CONTACT, contacts.get("SECOND").as_int());
|
||||
TString80 mail = rub.get("MAIL");
|
||||
if (mail.blank())
|
||||
mail = rub.get("MAIL2");
|
||||
if (mail.full())
|
||||
{
|
||||
if (to.blank())
|
||||
to = mail;
|
||||
else
|
||||
cc.add(mail);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (to.blank())
|
||||
{
|
||||
TString8 key; key << _tipocf << '|' << _codcf;
|
||||
to = cache().get(LF_CLIFO, key, CLI_DOCMAIL);
|
||||
}
|
||||
return to.full();
|
||||
}
|
||||
*/
|
||||
|
||||
bool TMancati_app::destroy()
|
||||
{
|
||||
fp_db().sq_disconnect();
|
||||
|
@ -5,5 +5,6 @@ Module = fp
|
||||
Flags = ""
|
||||
Item_01 = "Configurazione", "fp0 -0", ""+
|
||||
Item_02 = "Invio fatture", "fp0 -2", ""
|
||||
Item_03 = "Inserimento riferimenti C/F", "fp0 -1", ""
|
||||
Item_04 = "Monitor Fatture Passive", "fp0 -3", ""
|
||||
Item_03 = "Monitor Mancata Consegna", "fp0 -4", ""
|
||||
Item_04 = "Monitor Fatture Passive", "fp0 -3", ""
|
||||
Item_05 = "Inserimento riferimenti C/F", "fp0 -1", ""
|
Loading…
x
Reference in New Issue
Block a user