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
|
// Virtuali
|
||||||
|
|
||||||
|
// modulo pe
|
||||||
#define DOC_SPESEUPD "SPESEUPD"
|
#define DOC_SPESEUPD "SPESEUPD"
|
||||||
|
#define DOC_USEK "USEK"
|
||||||
#define DOC_K "K"
|
#define DOC_K "K"
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -71,7 +71,7 @@
|
|||||||
#define RDOC_LEVEL "LEVEL"
|
#define RDOC_LEVEL "LEVEL"
|
||||||
#define RDOC_K "K"
|
#define RDOC_K "K"
|
||||||
#define RDOC_TREE "TREE"
|
#define RDOC_TREE "TREE"
|
||||||
#define RDOC_PREZZOV "PREZZOV"
|
#define RDOC_COSTO "COSTO"
|
||||||
#define RDOC_VALC "VALC"
|
#define RDOC_VALC "VALC"
|
||||||
#define RDOC_VALV "VALV"
|
#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 TRectype & anamag = cache().get(LF_ANAMAG, codart);
|
||||||
const int items = str->items();
|
const int items = str->items();
|
||||||
|
|
||||||
for (int i = 0; i < items; i++)
|
if (anamag.get_bool(ANAMAG_ARTPROD))
|
||||||
{
|
{
|
||||||
const TString & name = str->get(i);
|
for (int i = 0; i < items; i++)
|
||||||
if (name.starts_with("PROG"))
|
|
||||||
{
|
{
|
||||||
TTable mat(format("VE%1d", livello + 1));
|
const TString & name = str->get(i);
|
||||||
const int chars = atoi(name.after("PROG"));
|
if (name.starts_with("PROG"))
|
||||||
|
|
||||||
mat.put("CODTAB", code);
|
|
||||||
if (mat.read(_isequal) != NOERR)
|
|
||||||
{
|
{
|
||||||
mat.zero();
|
TTable mat(format("VE%1d", livello + 1));
|
||||||
|
const int chars = atoi(name.after("PROG"));
|
||||||
|
|
||||||
mat.put("CODTAB", code);
|
mat.put("CODTAB", code);
|
||||||
mat.write();
|
if (mat.read(_isequal) != NOERR)
|
||||||
}
|
{
|
||||||
const int prog = mat.get_int("I0") + 1;
|
mat.zero();
|
||||||
mat.put("I0", prog);
|
mat.put("CODTAB", code);
|
||||||
mat.rewrite();
|
mat.write();
|
||||||
TString s; s << prog; s.lpad(chars, '0');
|
}
|
||||||
code << s;
|
const int prog = mat.get_int("I0") + 1;
|
||||||
}
|
mat.put("I0", prog);
|
||||||
else
|
mat.rewrite();
|
||||||
if (name.starts_with("33."))
|
TString s; s << prog; s.lpad(chars, '0');
|
||||||
{
|
code << s;
|
||||||
TFieldref fld(name.after("33."), LF_DOC);
|
|
||||||
|
|
||||||
code << fld.read(d);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
if (name.starts_with("34."))
|
if (name.starts_with("33."))
|
||||||
{
|
{
|
||||||
TFieldref fld(name.after("34."), LF_RIGHEDOC);
|
TFieldref fld(name.after("33."), LF_DOC);
|
||||||
|
|
||||||
code << fld.read(r);
|
code << fld.read(d);
|
||||||
}
|
}
|
||||||
else
|
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