Patch level : 10.0 296
Files correlati : ve0.exe Ricompilazione Demo : [ ] Commento : Preventivazione (Dinamica) git-svn-id: svn://10.65.10.50/trunk@18847 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
5c9a74f400
commit
172f3fe9b8
@ -87,7 +87,9 @@
|
||||
|
||||
// Virtuali
|
||||
|
||||
// modulo pe
|
||||
#define DOC_SPESEUPD "SPESEUPD"
|
||||
#define DOC_USEK "USEK"
|
||||
#define DOC_K "K"
|
||||
|
||||
#endif
|
||||
|
@ -71,7 +71,7 @@
|
||||
#define RDOC_LEVEL "LEVEL"
|
||||
#define RDOC_K "K"
|
||||
#define RDOC_TREE "TREE"
|
||||
#define RDOC_PREZZOV "PREZZOV"
|
||||
#define RDOC_COSTO "COSTO"
|
||||
#define RDOC_VALC "VALC"
|
||||
#define RDOC_VALV "VALV"
|
||||
|
||||
|
@ -2756,50 +2756,53 @@ bool gen_livelli_handler(TMask_field& f, KEY key )
|
||||
const TRectype & anamag = cache().get(LF_ANAMAG, codart);
|
||||
const int items = str->items();
|
||||
|
||||
for (int i = 0; i < items; i++)
|
||||
if (anamag.get_bool(ANAMAG_ARTPROD))
|
||||
{
|
||||
const TString & name = str->get(i);
|
||||
if (name.starts_with("PROG"))
|
||||
for (int i = 0; i < items; i++)
|
||||
{
|
||||
TTable mat(format("VE%1d", livello + 1));
|
||||
const int chars = atoi(name.after("PROG"));
|
||||
|
||||
mat.put("CODTAB", code);
|
||||
if (mat.read(_isequal) != NOERR)
|
||||
const TString & name = str->get(i);
|
||||
if (name.starts_with("PROG"))
|
||||
{
|
||||
mat.zero();
|
||||
TTable mat(format("VE%1d", livello + 1));
|
||||
const int chars = atoi(name.after("PROG"));
|
||||
|
||||
mat.put("CODTAB", code);
|
||||
mat.write();
|
||||
}
|
||||
const int prog = mat.get_int("I0") + 1;
|
||||
mat.put("I0", prog);
|
||||
mat.rewrite();
|
||||
TString s; s << prog; s.lpad(chars, '0');
|
||||
code << s;
|
||||
}
|
||||
else
|
||||
if (name.starts_with("33."))
|
||||
{
|
||||
TFieldref fld(name.after("33."), LF_DOC);
|
||||
|
||||
code << fld.read(d);
|
||||
if (mat.read(_isequal) != NOERR)
|
||||
{
|
||||
mat.zero();
|
||||
mat.put("CODTAB", code);
|
||||
mat.write();
|
||||
}
|
||||
const int prog = mat.get_int("I0") + 1;
|
||||
mat.put("I0", prog);
|
||||
mat.rewrite();
|
||||
TString s; s << prog; s.lpad(chars, '0');
|
||||
code << s;
|
||||
}
|
||||
else
|
||||
if (name.starts_with("34."))
|
||||
if (name.starts_with("33."))
|
||||
{
|
||||
TFieldref fld(name.after("34."), LF_RIGHEDOC);
|
||||
|
||||
code << fld.read(r);
|
||||
TFieldref fld(name.after("33."), LF_DOC);
|
||||
|
||||
code << fld.read(d);
|
||||
}
|
||||
else
|
||||
if (name.starts_with("47."))
|
||||
if (name.starts_with("34."))
|
||||
{
|
||||
TFieldref fld(name.after("47."), LF_ANAMAG);
|
||||
TFieldref fld(name.after("34."), LF_RIGHEDOC);
|
||||
|
||||
code << fld.read(anamag);
|
||||
code << fld.read(r);
|
||||
}
|
||||
else
|
||||
if (name.starts_with("47."))
|
||||
{
|
||||
TFieldref fld(name.after("47."), LF_ANAMAG);
|
||||
|
||||
code << fld.read(anamag);
|
||||
}
|
||||
}
|
||||
row_mask.set(f.dlg(), code, 0x3);
|
||||
}
|
||||
row_mask.set(f.dlg(), code, 0x3);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user