From 551f7840cba19997bfb1cb055a9f01c40ef00ad9 Mon Sep 17 00:00:00 2001 From: alex Date: Wed, 3 Jan 2007 14:35:31 +0000 Subject: [PATCH] Patch level : 4.0 582 Files correlati : ve8.exe Ricompilazione Demo : [ ] Commento : Nella ricezione da galileo si devono esportare nel file di testo solo i record modificati git-svn-id: svn://10.65.10.50/trunk@14709 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- ve/ve7700.h | 2 ++ ve/ve7701.cpp | 13 +++++++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/ve/ve7700.h b/ve/ve7700.h index 18e5dfaec..0e87e1014 100755 --- a/ve/ve7700.h +++ b/ve/ve7700.h @@ -122,6 +122,7 @@ class TGalileo_clifo : public TGalileo_transfer TDate _data; TString _path; + TAssoc_array _keys; protected: int cancella_clifo(TLocalisamfile& clifo) const; @@ -143,6 +144,7 @@ class TGalileo_articoli : public TGalileo_transfer TDate _data; TString _path; + TAssoc_array _keys; protected: int cancella_articolo(TLocalisamfile& clifo) const; diff --git a/ve/ve7701.cpp b/ve/ve7701.cpp index 0a5356846..bbba0ef80 100755 --- a/ve/ve7701.cpp +++ b/ve/ve7701.cpp @@ -78,7 +78,7 @@ bool TGalileo_clifo::dump() TFilename path = _path; path << "clifo.txt"; TSystemisamfile clifo(LF_CLIFO); - return (clifo.dump(path, lista_dump) == NOERR); + return (clifo.dump(path, lista_dump, &_keys) == NOERR); } bool TGalileo_clifo::trasferisci() @@ -121,6 +121,9 @@ bool TGalileo_clifo::trasferisci() rec_clifo.zero(); rec_clifo.put(CLI_TIPOCF, tipocf); rec_clifo.put(CLI_CODCF, codcf); + const TString16 key(rec_clifo.build_key(1)); + + _keys.add(key, key); good = clifo.read() == NOERR; if (!good) needs_creation = true; @@ -234,7 +237,7 @@ bool TGalileo_articoli::dump() { path = _path; path << "anamag.txt"; - err = anamag.dump(path, lista_dump); + err = anamag.dump(path, lista_dump, &_keys); } return (err == NOERR); } @@ -270,7 +273,13 @@ bool TGalileo_articoli::trasferisci() const TString& codart = get_str("RICOD"); rec_anamag.zero(); rec_anamag.put(ANAMAG_CODART, codart); + + const TString16 key(rec_anamag.build_key(1)); + + _keys.add(key, key); + bool good = anamag.read() == NOERR; + if (!good) { rec_anamag.zero();