Patch level : 12.0
Files correlati : fplib01.cpp Commento: Malfunzionamento della funzione che va a prendersi la data di iscrizione all'albo per metterla nel paf0200. in debug non riscontro anomalie ma in release riporta una data impossibile (tipo 4565-22-11). da controllare e fare approfondimenti sulle librerie TDate Per ora è stata rimossa la compilazione di quel campo
This commit is contained in:
		
							parent
							
								
									e7c8fbcb6d
								
							
						
					
					
						commit
						901277eb08
					
				@ -284,6 +284,9 @@
 | 
				
			|||||||
      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
 | 
					      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
 | 
				
			||||||
      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
 | 
					      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
 | 
				
			||||||
    </SqlCompiler>
 | 
					    </SqlCompiler>
 | 
				
			||||||
 | 
					    <SqlCompiler Include="..\src\fp\sql\fp0122.sql">
 | 
				
			||||||
 | 
					      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
 | 
				
			||||||
 | 
					    </SqlCompiler>
 | 
				
			||||||
  </ItemGroup>
 | 
					  </ItemGroup>
 | 
				
			||||||
  <ItemGroup>
 | 
					  <ItemGroup>
 | 
				
			||||||
    <SqlCompiler Include="..\src\fp\sql\fp0102.sql">
 | 
					    <SqlCompiler Include="..\src\fp\sql\fp0102.sql">
 | 
				
			||||||
 | 
				
			|||||||
@ -150,6 +150,9 @@
 | 
				
			|||||||
    <SqlCompiler Include="..\src\fp\sql\fp0120.sql">
 | 
					    <SqlCompiler Include="..\src\fp\sql\fp0120.sql">
 | 
				
			||||||
      <Filter>Sqls</Filter>
 | 
					      <Filter>Sqls</Filter>
 | 
				
			||||||
    </SqlCompiler>
 | 
					    </SqlCompiler>
 | 
				
			||||||
 | 
					    <SqlCompiler Include="..\src\fp\sql\fp0122.sql">
 | 
				
			||||||
 | 
					      <Filter>Sqls</Filter>
 | 
				
			||||||
 | 
					    </SqlCompiler>
 | 
				
			||||||
  </ItemGroup>
 | 
					  </ItemGroup>
 | 
				
			||||||
  <ItemGroup>
 | 
					  <ItemGroup>
 | 
				
			||||||
    <Library Include="..\lib\fplib.lib">
 | 
					    <Library Include="..\lib\fplib.lib">
 | 
				
			||||||
 | 
				
			|||||||
@ -26,10 +26,6 @@
 | 
				
			|||||||
#include <scadenze.h>
 | 
					#include <scadenze.h>
 | 
				
			||||||
#include <utility.h>
 | 
					#include <utility.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
#include <iostream>
 | 
					 | 
				
			||||||
#include <fstream>
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
bool set_connection(SSimple_query& s)
 | 
					bool set_connection(SSimple_query& s)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	bool ok = true;
 | 
						bool ok = true;
 | 
				
			||||||
@ -1171,12 +1167,6 @@ bool TDoc_fp::insert(TPaf_record& p, bool force)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
		if (!ok)
 | 
							if (!ok)
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			//LOG PROVVISORIO PER RISOLVERE PROBLEMA TOSTO
 | 
					 | 
				
			||||||
			ofstream myfile;
 | 
					 | 
				
			||||||
			myfile.open("logFP_simo.txt");
 | 
					 | 
				
			||||||
			myfile << p.insert_string();
 | 
					 | 
				
			||||||
			myfile.close();
 | 
					 | 
				
			||||||
			//
 | 
					 | 
				
			||||||
			_log.log(2, fp_db().sq_get_token_text_error(1));
 | 
								_log.log(2, fp_db().sq_get_token_text_error(1));
 | 
				
			||||||
			_log.log(2, p.insert_string());
 | 
								_log.log(2, p.insert_string());
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
@ -1860,6 +1850,8 @@ bool TDoc_fp::doc_to_paf(TDocumentoEsteso& doc)
 | 
				
			|||||||
		if (mail.full())
 | 
							if (mail.full())
 | 
				
			||||||
			paf0200f.set("P2_CONTATTIMAIL", mail);
 | 
								paf0200f.set("P2_CONTATTIMAIL", mail);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							//QUESTA COSA IN RELEASE NON FUNZIONA
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		//TDate data_iscriz_albo = get_firm().get_date(NDT_DATAISCRAA);
 | 
							//TDate data_iscriz_albo = get_firm().get_date(NDT_DATAISCRAA);
 | 
				
			||||||
		//if(data_iscriz_albo.ok())
 | 
							//if(data_iscriz_albo.ok())
 | 
				
			||||||
			//paf0200f.set("P2_DTISCRIZEALBO", data_iscriz_albo);
 | 
								//paf0200f.set("P2_DTISCRIZEALBO", data_iscriz_albo);
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										6
									
								
								src/fp/sql/fp0122.sql
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								src/fp/sql/fp0122.sql
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,6 @@
 | 
				
			|||||||
 | 
					ALTER TABLE PAF0200F ALTER COLUMN P2_DTISCRIZEALBO DATE NULL
 | 
				
			||||||
 | 
					IF EXISTS (SELECT* FROM INFORMATION_SCHEMA.REFERENTIAL_CONSTRAINTS WHERE CONSTRAINT_NAME ='PAF0200_NEWDF_DTISCR')
 | 
				
			||||||
 | 
					BEGIN
 | 
				
			||||||
 | 
						ALTER TABLE PAF0200F DROP CONSTRAINT PAF0200_NEWDF_DTISCR 
 | 
				
			||||||
 | 
					END
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user