Patch level : 4.0
Files correlati : ve0, ve6 Ricompilazione Demo : [ ] Commento : Adeguato utilizzo nuovi alberi in evasione ordini. Migliorate alcune indentazioni fuori standard git-svn-id: svn://10.65.10.50/trunk@16000 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
baa150a7a6
commit
a916cf8b8d
@ -46,7 +46,7 @@ protected:
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
bool restart() const { return _restart.full(); }
|
bool restart() const { return _restart.full(); }
|
||||||
static void restart_with(const char* cod) { _restart = cod; }
|
static void restart_with(const TString& cod) { _restart = cod; }
|
||||||
|
|
||||||
TCodart_mask();
|
TCodart_mask();
|
||||||
};
|
};
|
||||||
@ -151,17 +151,17 @@ bool TCodart_mask::build_children()
|
|||||||
|
|
||||||
// Non usare qui un TString& children, altrimenti cambia sul piu' bello!
|
// Non usare qui un TString& children, altrimenti cambia sul piu' bello!
|
||||||
const TString80 children = cache().get("GSA", code, "S1");
|
const TString80 children = cache().get("GSA", code, "S1");
|
||||||
|
|
||||||
|
// Affetto la stringona S1 in sottocodici da 3 caratteri l'uno
|
||||||
for (int i = 0; i < 9; i++)
|
for (int i = 0; i < 9; i++)
|
||||||
{
|
{
|
||||||
const TString& subcode = children.mid(i*3, 3);
|
const TString4 subcode = children.mid(i*3, 3);
|
||||||
if (subcode.full())
|
if (subcode.full())
|
||||||
create_level(i+2, subcode);
|
create_level(i+2, subcode);
|
||||||
else
|
else
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
force_update();
|
force_update();
|
||||||
|
|
||||||
return id2pos(102) > 0;
|
return id2pos(102) > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -878,16 +878,14 @@ int TDocumento::write_rewrite(TBaseisamfile & f, bool re) const
|
|||||||
|
|
||||||
if (!doc_bloccato)
|
if (!doc_bloccato)
|
||||||
{
|
{
|
||||||
if (tipo().spese_aut() && !get_bool("SPESEUPD"))
|
if (tipo().spese_aut() && !get_bool(DOC_SPESEUPD))
|
||||||
{
|
{
|
||||||
char name[8] = "CODSP0";
|
|
||||||
TString_array spese;
|
TString_array spese;
|
||||||
const TRectype & ven_rec = clifor().vendite();
|
const TRectype & ven_rec = clifor().vendite();
|
||||||
for (int i = 1; i <= 4; i++)
|
for (int i = 1; i <= 4; i++)
|
||||||
{
|
{
|
||||||
name[5] = '0' + i;
|
TString8 name; name.format("CODSP%d", i);
|
||||||
const TString& s = ven_rec.get(name);
|
const TString& s = ven_rec.get(name);
|
||||||
|
|
||||||
if (s.full())
|
if (s.full())
|
||||||
spese.add(s);
|
spese.add(s);
|
||||||
}
|
}
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
|
#include "velib04.h"
|
||||||
|
|
||||||
#include <dongle.h>
|
#include <dongle.h>
|
||||||
#include <modaut.h>
|
#include <modaut.h>
|
||||||
|
|
||||||
#include "velib04.h"
|
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////
|
||||||
// TFatturazione bolle
|
// TFatturazione bolle
|
||||||
///////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////
|
||||||
|
@ -2,8 +2,6 @@
|
|||||||
#include "velib04d.h"
|
#include "velib04d.h"
|
||||||
|
|
||||||
#include <automask.h>
|
#include <automask.h>
|
||||||
#include <doc.h>
|
|
||||||
#include <rdoc.h>
|
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////
|
||||||
// TConsegna ordini mask
|
// TConsegna ordini mask
|
||||||
@ -518,7 +516,7 @@ bool TConsegna_ordini::elabora(TLista_documenti& doc_in, TLista_documenti& doc_o
|
|||||||
// Crea una nuova riga merce senza articolo e con sola descrizione, qta ed um
|
// Crea una nuova riga merce senza articolo e con sola descrizione, qta ed um
|
||||||
TRiga_documento& outrec = outdoc.insert_row(i+1, tiporiga);
|
TRiga_documento& outrec = outdoc.insert_row(i+1, tiporiga);
|
||||||
TString descr;
|
TString descr;
|
||||||
descr << "Scarto " << codart;
|
descr << TR("Scarto") << ' ' << codart;
|
||||||
outrec.put(RDOC_DESCR, descr);
|
outrec.put(RDOC_DESCR, descr);
|
||||||
TToken_string& ska = *(TToken_string*)obj;
|
TToken_string& ska = *(TToken_string*)obj;
|
||||||
outrec.put(RDOC_UMQTA, ska.get(0));
|
outrec.put(RDOC_UMQTA, ska.get(0));
|
||||||
|
@ -2010,10 +2010,10 @@ TImage* TDocument_tree::image(bool selected) const
|
|||||||
return get_res_image(BMP_STOP);
|
return get_res_image(BMP_STOP);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
if (multiple_selection())
|
if (multiple_selection())
|
||||||
{
|
{
|
||||||
const bool sel = node_selected();
|
const bool sel = node_selected();
|
||||||
|
|
||||||
if (sel)
|
if (sel)
|
||||||
{
|
{
|
||||||
if (selected)
|
if (selected)
|
||||||
@ -2022,6 +2022,7 @@ TImage* TDocument_tree::image(bool selected) const
|
|||||||
return get_res_image(BMP_DIRSEL);
|
return get_res_image(BMP_DIRSEL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return TTree::image(selected);
|
return TTree::image(selected);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2728,7 +2729,7 @@ void TElabora_mask::update_ndoc_filter(bool is_tipo_elaborazione)
|
|||||||
|
|
||||||
if (is_tipo_elaborazione)
|
if (is_tipo_elaborazione)
|
||||||
{
|
{
|
||||||
const TString16 num_fin(e->codice_numerazione_finale());
|
const TString4 num_fin(e->codice_numerazione_finale());
|
||||||
set(F_CODNUM_ELAB, num_fin);
|
set(F_CODNUM_ELAB, num_fin);
|
||||||
field(F_CODNUM_ELAB).check();
|
field(F_CODNUM_ELAB).check();
|
||||||
set(F_TIPODOC_ELAB, tipo_fin);
|
set(F_TIPODOC_ELAB, tipo_fin);
|
||||||
@ -2759,8 +2760,13 @@ void TElabora_mask::update_ndoc_filter(bool is_tipo_elaborazione)
|
|||||||
TTree_field& tf = tfield(F_ROWS);
|
TTree_field& tf = tfield(F_ROWS);
|
||||||
if (!field(F_TIPODOC_ELAB).empty() && e != NULL)
|
if (!field(F_TIPODOC_ELAB).empty() && e != NULL)
|
||||||
{
|
{
|
||||||
|
if (aggiungi_doc_att && _art_filter.not_empty())
|
||||||
|
_tree.set_cursor(get(F_TIPOCF_ELAB)[0], get_long(F_CODCF_ELAB), get_int(F_ANNO_ELAB), filter, article_filter);
|
||||||
|
else
|
||||||
|
_tree.set_cursor(get(F_TIPOCF_ELAB)[0], get_long(F_CODCF_ELAB), get_int(F_ANNO_ELAB), filter);
|
||||||
tf.set_tree(&_tree);
|
tf.set_tree(&_tree);
|
||||||
TToken_string header(256, '\n');
|
|
||||||
|
TToken_string header(256, '\n');
|
||||||
header.add("Anno Num. N. Data Cli/For Ragione Sociale");
|
header.add("Anno Num. N. Data Cli/For Ragione Sociale");
|
||||||
header.add(" Codice Articolo Descrizione Riga ");
|
header.add(" Codice Articolo Descrizione Riga ");
|
||||||
if (aggiungi_doc_att && e->tipo() == _consegna_ordini)
|
if (aggiungi_doc_att && e->tipo() == _consegna_ordini)
|
||||||
@ -2768,11 +2774,6 @@ void TElabora_mask::update_ndoc_filter(bool is_tipo_elaborazione)
|
|||||||
else
|
else
|
||||||
header << " Quantità";
|
header << " Quantità";
|
||||||
tf.set_header(header);
|
tf.set_header(header);
|
||||||
|
|
||||||
if (aggiungi_doc_att && _art_filter.not_empty())
|
|
||||||
_tree.set_cursor(get(F_TIPOCF_ELAB)[0], get_long(F_CODCF_ELAB), get_int(F_ANNO_ELAB), filter, article_filter);
|
|
||||||
else
|
|
||||||
_tree.set_cursor(get(F_TIPOCF_ELAB)[0], get_long(F_CODCF_ELAB), get_int(F_ANNO_ELAB), filter);
|
|
||||||
|
|
||||||
if (aggiungi_doc_att) // GF20059
|
if (aggiungi_doc_att) // GF20059
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user