Patch level : 12.0 876
Files correlati : f9.exe, f90100b.msk, f90100c.msk Commento : - Tolto vecchio disabilita del bottone controllo estrazione - dati nomi piu' decenti alle colonne e cambiate icone ai bottoni
This commit is contained in:
		
							parent
							
								
									a21d4897dd
								
							
						
					
					
						commit
						ee3a7bc29b
					
				| @ -332,11 +332,6 @@ void TMonitor_mask::sel() const | |||||||
|   sf.show(); |   sf.show(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void TMonitor_mask::disable_controllo_err() |  | ||||||
| { |  | ||||||
| 	disable(DLG_FINDREC); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| bool TMonitor_mask::on_field_event(TOperable_field& o, TField_event e, long jolly) | bool TMonitor_mask::on_field_event(TOperable_field& o, TField_event e, long jolly) | ||||||
| { | { | ||||||
| 	switch (o.dlg()) | 	switch (o.dlg()) | ||||||
| @ -527,14 +522,10 @@ int TF9_app::estrai_single(TToken_string& row, char flagprov, char tipodoc) | |||||||
|     if (_head.stato_estr == D_GEST_ERR) |     if (_head.stato_estr == D_GEST_ERR) | ||||||
|     { |     { | ||||||
|       warning_box("Attenzione l'estrazione ha prodotto degli errori. \nControllare e correggere eventuali problemi \npremendo il pulsante 'Controllo Estr.'"); |       warning_box("Attenzione l'estrazione ha prodotto degli errori. \nControllare e correggere eventuali problemi \npremendo il pulsante 'Controllo Estr.'"); | ||||||
|       _msk->enable(DLG_FINDREC); |  | ||||||
|       return -2; |       return -2; | ||||||
|     } |     } | ||||||
|     if (_head.stato_estr == D_GEST_OK) |     if (_head.stato_estr == D_GEST_OK) | ||||||
|     { |       return estrazione_iva(true) ? 1 : 0; | ||||||
|       _msk->disable_controllo_err(); |  | ||||||
|       return estrazione_iva(true) ? 1 : false; |  | ||||||
|     } |  | ||||||
|     return -3; |     return -3; | ||||||
|   } |   } | ||||||
| } | } | ||||||
| @ -644,7 +635,6 @@ bool TF9_app::estrai_escl_handler(TMask_field&, KEY key) | |||||||
|   TMask* msk = *esclusi_mask(); |   TMask* msk = *esclusi_mask(); | ||||||
|   vector<TToken_string>& _esclusi = app()._esclusi_vect; |   vector<TToken_string>& _esclusi = app()._esclusi_vect; | ||||||
|   TSheet_field& sf = msk->sfield(S_ESCL); |   TSheet_field& sf = msk->sfield(S_ESCL); | ||||||
|   msk->field(DLG_FINDREC).disable(); |  | ||||||
|   // Prendo la riga selezionata (e controllo che sia selezionato qualcosa)
 |   // Prendo la riga selezionata (e controllo che sia selezionato qualcosa)
 | ||||||
|   bool flag = false; |   bool flag = false; | ||||||
|   FOR_EACH_SHEET_ROW(sf, nr, row) |   FOR_EACH_SHEET_ROW(sf, nr, row) | ||||||
| @ -652,9 +642,7 @@ bool TF9_app::estrai_escl_handler(TMask_field&, KEY key) | |||||||
|     if ((*row)[0] == 'X') |     if ((*row)[0] == 'X') | ||||||
|     { |     { | ||||||
|       const int stato = app().estrai_single(*row, app()._flagprov_escl, app()._tipodoc_escl); |       const int stato = app().estrai_single(*row, app()._flagprov_escl, app()._tipodoc_escl); | ||||||
|       if (stato == -2) // Attivo pulsante controllo estr
 |       if (stato == 1) | ||||||
|         msk->field(DLG_FINDREC).enable(); |  | ||||||
|       else if (stato == 1) |  | ||||||
|       { |       { | ||||||
|         _esclusi.erase(_esclusi.begin() + nr);    // Tolto il movimento estratto dal vettore e setto come estratto su elabf9 di mov
 |         _esclusi.erase(_esclusi.begin() + nr);    // Tolto il movimento estratto dal vettore e setto come estratto su elabf9 di mov
 | ||||||
|         app().segna_estratti(true, row->get_int(cid2index(F_NUMREG))); |         app().segna_estratti(true, row->get_int(cid2index(F_NUMREG))); | ||||||
| @ -1079,20 +1067,16 @@ int TF9_app::estrai() | |||||||
| 	const bool ok = esporta(); | 	const bool ok = esporta(); | ||||||
| 
 | 
 | ||||||
| 	if (!ok) | 	if (!ok) | ||||||
| 		error_box(db().sq_get_text_error(false)); | 		error_box("Errore database: impossibile scrivere nuova estrazione."); | ||||||
| 	else | 	else | ||||||
| 	{ | 	{ | ||||||
| 		if (_head.stato_estr == D_GEST_ERR) | 		if (_head.stato_estr == D_GEST_ERR) | ||||||
| 		{ | 		{ | ||||||
|       _msk->enable(DLG_FINDREC); |  | ||||||
|       export_error_list(); |       export_error_list(); | ||||||
| 			warning_box("Attenzione l'estrazione ha prodotto degli errori. \nControllare e correggere eventuali problemi \ndal Controllo Estrazione."); | 			warning_box("Attenzione l'estrazione ha prodotto degli errori. \nControllare e correggere eventuali problemi \ndal Controllo Estrazione."); | ||||||
| 		} | 		} | ||||||
| 		else if (_head.stato_estr == D_GEST_OK) | 		else if (_head.stato_estr == D_GEST_OK) | ||||||
| 		{ |  | ||||||
| 			_msk->disable_controllo_err(); |  | ||||||
| 			return estrazione_iva() ? 1 : 0; | 			return estrazione_iva() ? 1 : 0; | ||||||
| 		} |  | ||||||
| 	} | 	} | ||||||
| 	return -2; | 	return -2; | ||||||
| } | } | ||||||
|  | |||||||
| @ -168,7 +168,6 @@ class TMonitor_mask : public TAutomask | |||||||
| 	bool on_field_event(TOperable_field& o, TField_event e, long jolly) override; | 	bool on_field_event(TOperable_field& o, TField_event e, long jolly) override; | ||||||
| 
 | 
 | ||||||
| public: | public: | ||||||
| 	void		disable_controllo_err(); |  | ||||||
| 	TMonitor_mask() : TAutomask("f90100a") | 	TMonitor_mask() : TAutomask("f90100a") | ||||||
| 	{ | 	{ | ||||||
| 		//disable(DLG_FINDREC);
 | 		//disable(DLG_FINDREC);
 | ||||||
|  | |||||||
| @ -5,28 +5,28 @@ TOOLBAR "topbar" 0 0 0 2 | |||||||
| BUTTON B_ORDER 2 2 | BUTTON B_ORDER 2 2 | ||||||
| BEGIN | BEGIN | ||||||
|   PROMPT 1 5 "Ordinamento" |   PROMPT 1 5 "Ordinamento" | ||||||
|   PICTURE TOOL_PERMISSIONS |   PICTURE TOOL_EDIT | ||||||
| 	FLAGS "" | 	FLAGS "" | ||||||
| END | END | ||||||
| 
 | 
 | ||||||
| BUTTON B_ASSOC 2 2 | BUTTON B_ASSOC 2 2 | ||||||
| BEGIN | BEGIN | ||||||
|   PROMPT 1 6 "Associa mov." |   PROMPT 1 6 "Associa mov." | ||||||
|   PICTURE TOOL_PERMISSIONS |   PICTURE TOOL_SAVEREC | ||||||
| 	FLAGS "" | 	FLAGS "" | ||||||
| END | END | ||||||
| 
 | 
 | ||||||
| BUTTON B_SELESCL 2 2 | BUTTON B_SELESCL 2 2 | ||||||
| BEGIN | BEGIN | ||||||
|   PROMPT 1 8 "Sel. esclusi" |   PROMPT 1 8 "Sel. esclusi" | ||||||
|   PICTURE TOOL_PERMISSIONS |   PICTURE TOOL_MULTISEL | ||||||
| 	FLAGS "" | 	FLAGS "" | ||||||
| END | END | ||||||
| 
 | 
 | ||||||
| BUTTON B_ESCL 2 2 | BUTTON B_ESCL 2 2 | ||||||
| BEGIN | BEGIN | ||||||
|   PROMPT 1 7 "Conf. esclusi" |   PROMPT 1 7 "Conf. esclusi" | ||||||
|   PICTURE TOOL_PERMISSIONS |   PICTURE TOOL_WARNING | ||||||
| 	FLAGS "" | 	FLAGS "" | ||||||
| END | END | ||||||
| 
 | 
 | ||||||
| @ -35,38 +35,48 @@ ENDPAGE | |||||||
| 
 | 
 | ||||||
| PAGE "Elenco di controllo" -1 -1 78 13 | PAGE "Elenco di controllo" -1 -1 78 13 | ||||||
| 
 | 
 | ||||||
|  | TEXT DLG_NULL | ||||||
|  | BEGIN | ||||||
|  |   PROMPT 0 0 "Movimenti da controllare" | ||||||
|  | END | ||||||
|  | 
 | ||||||
| SPREADSHEET S_CONTROLLO -1 10 | SPREADSHEET S_CONTROLLO -1 10 | ||||||
| BEGIN | BEGIN | ||||||
| 	PROMPT 0 0 "Movimenti da controllare" | 	PROMPT 0 1 "Movimenti da controllare" | ||||||
| 	ITEM " " | 	ITEM " " | ||||||
| 	ITEM "NUMREG@8" | 	ITEM "Numero\nReg.@8" | ||||||
| 	ITEM "DATAREG@8" | 	ITEM "Data\nReg.@8" | ||||||
| 	ITEM "DATADOC@8" | 	ITEM "Data\nDoc.@8" | ||||||
| 	ITEM "CODCAUS@8" | 	ITEM "Codice\nCaus.@8" | ||||||
| 	ITEM "MESELIQ@8" | 	ITEM "Mese\nliquidazione@8" | ||||||
| 	ITEM "NUMDOC@8" | 	ITEM "Numero\nDocumento@8" | ||||||
| 	ITEM "IMPTOTDOC@8" | 	ITEM "Totale\nDocumento@8" | ||||||
| 	ITEM "FORNITORE@8" | 	ITEM "Fornitore@8" | ||||||
| 	ITEM "RAGSOC@8" | 	ITEM "Ragione\nSociale@8" | ||||||
| 	ITEM "PROTIVA@8"	 | 	ITEM "Cod. regis./\nprot.IVA@8"	 | ||||||
| 	ITEM "DESCR@8" | 	ITEM "Descrizione@8" | ||||||
| 	ITEM "ESCLUDI@5" | 	ITEM "ESCLUDI@5" | ||||||
| 	ITEM "ESCLUSO@6" | 	ITEM "ESCLUSO@6" | ||||||
| 	ITEM "DESCR ERR" | 	ITEM "Descrizione\nErrore" | ||||||
|  | END | ||||||
|  | 
 | ||||||
|  | TEXT DLG_NULL | ||||||
|  | BEGIN | ||||||
|  |   PROMPT 0 12 "Fatture el. in ingresso" | ||||||
| END | END | ||||||
| 
 | 
 | ||||||
| SPREADSHEET S_FPPRO -1 -1 | SPREADSHEET S_FPPRO -1 -1 | ||||||
| BEGIN | BEGIN | ||||||
| 	PROMPT 0 11 "Movimenti da controllare" | 	PROMPT 0 13 "Movimenti da controllare" | ||||||
| 	ITEM " " | 	ITEM " " | ||||||
| 	ITEM "TIPODOC" | 	ITEM "Tipo Doc." | ||||||
| 	ITEM "DATA@8" | 	ITEM "Data@8" | ||||||
| 	ITEM "NUMDOC@12" | 	ITEM "Num. Doc.@12" | ||||||
| 	ITEM "IMPTOTDOC@9" | 	ITEM "Tot. Doc.@9" | ||||||
| 	ITEM "FORNITORE@6" | 	ITEM "Fornitore@6" | ||||||
| 	ITEM "RAGSOC@20" | 	ITEM "Rag. Soc.@20" | ||||||
| 	ITEM "STATOPIVA" | 	ITEM "Stato P.IVA" | ||||||
| 	ITEM "PIVA@8" | 	ITEM "P.IVA@8" | ||||||
| 	ITEM "@1" | 	ITEM "@1" | ||||||
| END | END | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -35,17 +35,17 @@ SPREADSHEET S_ESCL -1 10 | |||||||
| BEGIN | BEGIN | ||||||
| 	PROMPT 0 1 "Movimenti da controllare" | 	PROMPT 0 1 "Movimenti da controllare" | ||||||
| 	ITEM " " | 	ITEM " " | ||||||
| 	ITEM "NUMREG@8" | 	ITEM "Numero\nReg.@8" | ||||||
| 	ITEM "DATAREG@8" | 	ITEM "Data\nReg.@8" | ||||||
| 	ITEM "DATADOC@8" | 	ITEM "Data\nDoc.@8" | ||||||
| 	ITEM "CODCAUS@8" | 	ITEM "Codice\nCaus.@8" | ||||||
| 	ITEM "MESELIQ@8" | 	ITEM "Mese\nliquidazione@8" | ||||||
| 	ITEM "NUMDOC@8" | 	ITEM "Numero\nDocumento@8" | ||||||
| 	ITEM "IMPTOTDOC@8" | 	ITEM "Totale\nDocumento@8" | ||||||
| 	ITEM "FORNITORE@8" | 	ITEM "Fornitore@8" | ||||||
| 	ITEM "RAGSOC@8" | 	ITEM "Ragione\nSociale@8" | ||||||
| 	ITEM "PROTIVA@8"	 | 	ITEM "Cod. regis./\nprot.IVA@8" | ||||||
| 	ITEM "DESCR@8" |   ITEM "Descrizione@8" | ||||||
| END | END | ||||||
| ENDPAGE | ENDPAGE | ||||||
| ENDMASK | ENDMASK | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user