Patch level : 2.0 nopatch
Files correlati : ve1100a.msk ve1100b.msk ve3.exe Ricompilazione Demo : [ ] Commento : Usata nuova funzione process_link git-svn-id: svn://10.65.10.50/trunk@11557 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
		
							parent
							
								
									ec2ec2192d
								
							
						
					
					
						commit
						42a8d1e1ff
					
				@ -143,7 +143,7 @@ BEGIN
 | 
			
		||||
        MESSAGE EXIT,K_ENTER
 | 
			
		||||
END
 | 
			
		||||
 | 
			
		||||
BUTTON DLG_CANCEL 10 2
 | 
			
		||||
BUTTON DLG_QUIT 10 2
 | 
			
		||||
BEGIN
 | 
			
		||||
        PROMPT -22 -1 ""
 | 
			
		||||
END
 | 
			
		||||
 | 
			
		||||
@ -218,12 +218,12 @@ BEGIN
 | 
			
		||||
  CHECKTYPE NORMAL
 | 
			
		||||
END
 | 
			
		||||
 | 
			
		||||
BUTTON DLG_OK 9 2
 | 
			
		||||
BUTTON DLG_OK 10 2
 | 
			
		||||
BEGIN
 | 
			
		||||
 PROMPT -12 -1 ""
 | 
			
		||||
END
 | 
			
		||||
 | 
			
		||||
BUTTON DLG_CANCEL 9 2
 | 
			
		||||
BUTTON DLG_QUIT 10 2
 | 
			
		||||
BEGIN 
 | 
			
		||||
 PROMPT -22 -1 ""
 | 
			
		||||
END
 | 
			
		||||
 | 
			
		||||
@ -2,14 +2,10 @@
 | 
			
		||||
#include <printapp.h>
 | 
			
		||||
#include <mask.h>
 | 
			
		||||
#include <config.h>
 | 
			
		||||
#include <execp.h>
 | 
			
		||||
#include <mailbox.h>
 | 
			
		||||
 | 
			
		||||
#include "veconf.h"
 | 
			
		||||
#include "ve3200.h"
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
#define RCONDV_APP "ve2 -2"
 | 
			
		||||
 | 
			
		||||
#define DESTROY(x) { ((TEditable_field &)mask.field(x)).reset_key(1); mask.hide(x); }
 | 
			
		||||
@ -51,7 +47,6 @@ protected:
 | 
			
		||||
  virtual void preprocess_header(void);
 | 
			
		||||
  virtual void preprocess_footer(void);
 | 
			
		||||
  TString& curr2str(const char * fname, TString& str);
 | 
			
		||||
//virtual void process_link(int, const char *);
 | 
			
		||||
public:
 | 
			
		||||
  // @cmember Disabilita la verifica del modulo in chiave
 | 
			
		||||
  virtual bool check_autorization() const 
 | 
			
		||||
@ -578,20 +573,6 @@ void TStampa_condizioni_vendita::set_page(int file, int) {
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
void TStampa_condizioni_vendita::process_link(int id, const char *text) {
 | 
			
		||||
  if (id== _rcondv_link_id) {
 | 
			
		||||
    TString body= "1|"; // istanzia la stringa per il corpo del messaggio e gli aggiunge il numero della chiave e il separatore
 | 
			
		||||
    body << text; // aggiunge al corpo del messaggio il codice dell'articolo per riempire la chiave
 | 
			
		||||
    TMessage msg(RCONDV_APP, MSG_LN, (const char *)body); // crea il messaggio per l'applicazione
 | 
			
		||||
    msg.send(); // invia il messaggio 
 | 
			
		||||
    TExternal_app ve2_2(RCONDV_APP); // crea l'applicazione esterna
 | 
			
		||||
    ve2_2.run(); // lancia l'applicazione esterna
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
*/
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
int ve3200(int argc, char **argv) {
 | 
			
		||||
  TStampa_condizioni_vendita a;
 | 
			
		||||
  
 | 
			
		||||
 | 
			
		||||
@ -1,8 +1,6 @@
 | 
			
		||||
#include <printapp.h>
 | 
			
		||||
#include <mailbox.h>
 | 
			
		||||
#include <mask.h>
 | 
			
		||||
#include <recarray.h>
 | 
			
		||||
#include <execp.h>
 | 
			
		||||
 | 
			
		||||
#include "ve3400.h"
 | 
			
		||||
 | 
			
		||||
@ -13,8 +11,6 @@
 | 
			
		||||
 | 
			
		||||
#define ANAMAG_APP "ve2 -3"
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
int max3(int a, int b, int c) { // funzione che ritorna il massimo di tre valori
 | 
			
		||||
  if (a>b) {
 | 
			
		||||
    if (a>c) return a; // a>b & a>c -> abc | acb
 | 
			
		||||
@ -39,7 +35,7 @@ protected:
 | 
			
		||||
  virtual bool set_print(int);
 | 
			
		||||
  virtual void set_page(int, int);
 | 
			
		||||
  virtual void preprocess_header(void);
 | 
			
		||||
  virtual void process_link(int, const char *);
 | 
			
		||||
  virtual bool process_link(int, const char *);
 | 
			
		||||
  virtual print_action postprocess_print(int, int);
 | 
			
		||||
public:
 | 
			
		||||
  // @cmember Disabilita la verifica del modulo : essendo una anagrafica, va sempre abilitata
 | 
			
		||||
@ -246,16 +242,15 @@ print_action TStampa_anagrafica_magazzino::postprocess_print(int file, int count
 | 
			
		||||
  return NEXT_PAGE; 
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void TStampa_anagrafica_magazzino::process_link(int id, const char *text) 
 | 
			
		||||
bool TStampa_anagrafica_magazzino::process_link(int id, const char *text) 
 | 
			
		||||
{
 | 
			
		||||
  if (id== _anagr_link_id) {
 | 
			
		||||
    TString body= "1|"; // istanzia la stringa per il corpo del messaggio e gli aggiunge il numero della chiave e il separatore
 | 
			
		||||
    body << text; // aggiunge al corpo del messaggio il codice dell'articolo per riempire la chiave
 | 
			
		||||
    TMessage msg(ANAMAG_APP, MSG_LN, (const char *)body); // crea il messaggio per l'applicazione di anagrafica di magazzino
 | 
			
		||||
    msg.send(); // invia il messaggio 
 | 
			
		||||
    TExternal_app ve2_3(ANAMAG_APP); // crea l'applicazione esterna dell'anagrafica di magazzino
 | 
			
		||||
    ve2_3.run(); // lancia l'applicazione esterna
 | 
			
		||||
  if (id == _anagr_link_id) 
 | 
			
		||||
  {
 | 
			
		||||
    TRectype anamag(LF_ANAMAG);
 | 
			
		||||
    anamag.put("CODART", text);
 | 
			
		||||
    return anamag.edit(LF_ANAMAG, NULL, ANAMAG_APP);
 | 
			
		||||
  }
 | 
			
		||||
  return false;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -3731,23 +3731,15 @@ bool TContabilizzazione::prev_contabilized(const TDocumento& doc) const
 | 
			
		||||
  return stato_doc == stato_ok;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static void link_handler(int n, const char* nreg)
 | 
			
		||||
static bool link_handler(int n, const char* nreg)
 | 
			
		||||
{         
 | 
			
		||||
  if (n == 0)
 | 
			
		||||
  {
 | 
			
		||||
    TRectype mov(LF_MOV);
 | 
			
		||||
    mov.put(MOV_NUMREG, nreg);
 | 
			
		||||
    if (!mov.edit())
 | 
			
		||||
    {
 | 
			
		||||
      // Vecchio modo obsoleto
 | 
			
		||||
      const char* app = "cg2 -0";     
 | 
			
		||||
      TString body; body << "1|" << nreg;
 | 
			
		||||
      TMessage msg(app, MSG_LN, body);
 | 
			
		||||
      msg.send();
 | 
			
		||||
      TExternal_app a(app);
 | 
			
		||||
      a.run();
 | 
			
		||||
    }
 | 
			
		||||
    return mov.edit();
 | 
			
		||||
  }
 | 
			
		||||
  return false;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
bool TContabilizzazione::elabora(TLista_documenti& doc_in, TLista_documenti& doc_out,
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user