Patch level : 12.0 1134
Files correlati : fp Commento: - Corretto bug nell'invio regolarizzazioni che salvava un valore errato nel campo tipo documento sdi - Corretti alcuni bug in fplib02
This commit is contained in:
		
							parent
							
								
									512c2a7daf
								
							
						
					
					
						commit
						f887c7e7c1
					
				@ -180,9 +180,21 @@
 | 
			
		||||
    <ProjectReference Include="AgaLib.vcxproj">
 | 
			
		||||
      <Project>{2d38a763-3d74-4338-9362-b891784ec90e}</Project>
 | 
			
		||||
    </ProjectReference>
 | 
			
		||||
    <ProjectReference Include="cglib.vcxproj">
 | 
			
		||||
      <Project>{7b80f974-ce2e-4bd9-855a-44ff139ff288}</Project>
 | 
			
		||||
    </ProjectReference>
 | 
			
		||||
    <ProjectReference Include="f1lib.vcxproj">
 | 
			
		||||
      <Project>{41f4c25f-6bd2-4fc9-a0d3-a68cd1c9e4fc}</Project>
 | 
			
		||||
    </ProjectReference>
 | 
			
		||||
    <ProjectReference Include="fplib.vcxproj">
 | 
			
		||||
      <Project>{c575788b-0be4-4f68-b9c9-3c204ec04e07}</Project>
 | 
			
		||||
    </ProjectReference>
 | 
			
		||||
    <ProjectReference Include="lilib.vcxproj">
 | 
			
		||||
      <Project>{b61f0ad4-0cce-4371-8e92-85a26caf1a7c}</Project>
 | 
			
		||||
    </ProjectReference>
 | 
			
		||||
    <ProjectReference Include="tflib.vcxproj">
 | 
			
		||||
      <Project>{7bf6939e-dfcd-49ed-b0a8-edb68ddce6d5}</Project>
 | 
			
		||||
    </ProjectReference>
 | 
			
		||||
    <ProjectReference Include="vedoc.vcxproj">
 | 
			
		||||
      <Project>{a1ce9743-a597-4f92-b55a-345a366c9e55}</Project>
 | 
			
		||||
    </ProjectReference>
 | 
			
		||||
 | 
			
		||||
@ -179,9 +179,18 @@
 | 
			
		||||
    <ProjectReference Include="AgaLib.vcxproj">
 | 
			
		||||
      <Project>{2d38a763-3d74-4338-9362-b891784ec90e}</Project>
 | 
			
		||||
    </ProjectReference>
 | 
			
		||||
    <ProjectReference Include="cglib.vcxproj">
 | 
			
		||||
      <Project>{7b80f974-ce2e-4bd9-855a-44ff139ff288}</Project>
 | 
			
		||||
    </ProjectReference>
 | 
			
		||||
    <ProjectReference Include="fplib.vcxproj">
 | 
			
		||||
      <Project>{c575788b-0be4-4f68-b9c9-3c204ec04e07}</Project>
 | 
			
		||||
    </ProjectReference>
 | 
			
		||||
    <ProjectReference Include="lilib.vcxproj">
 | 
			
		||||
      <Project>{b61f0ad4-0cce-4371-8e92-85a26caf1a7c}</Project>
 | 
			
		||||
    </ProjectReference>
 | 
			
		||||
    <ProjectReference Include="tflib.vcxproj">
 | 
			
		||||
      <Project>{7bf6939e-dfcd-49ed-b0a8-edb68ddce6d5}</Project>
 | 
			
		||||
    </ProjectReference>
 | 
			
		||||
    <ProjectReference Include="vedoc.vcxproj">
 | 
			
		||||
      <Project>{a1ce9743-a597-4f92-b55a-345a366c9e55}</Project>
 | 
			
		||||
    </ProjectReference>
 | 
			
		||||
 | 
			
		||||
@ -157,20 +157,6 @@
 | 
			
		||||
      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
 | 
			
		||||
    </CustomBuildStep>
 | 
			
		||||
  </ItemGroup>
 | 
			
		||||
  <ItemGroup>
 | 
			
		||||
    <ProjectReference Include="AgaLib.vcxproj">
 | 
			
		||||
      <Project>{2d38a763-3d74-4338-9362-b891784ec90e}</Project>
 | 
			
		||||
    </ProjectReference>
 | 
			
		||||
    <ProjectReference Include="cglib.vcxproj">
 | 
			
		||||
      <Project>{7b80f974-ce2e-4bd9-855a-44ff139ff288}</Project>
 | 
			
		||||
    </ProjectReference>
 | 
			
		||||
    <ProjectReference Include="vedoc.vcxproj">
 | 
			
		||||
      <Project>{a1ce9743-a597-4f92-b55a-345a366c9e55}</Project>
 | 
			
		||||
    </ProjectReference>
 | 
			
		||||
    <ProjectReference Include="vedocext.vcxproj">
 | 
			
		||||
      <Project>{0042619a-6b7c-4d3d-9cd9-9bdd8d200c15}</Project>
 | 
			
		||||
    </ProjectReference>
 | 
			
		||||
  </ItemGroup>
 | 
			
		||||
  <ItemGroup>
 | 
			
		||||
    <ClInclude Include="..\src\fp\fplib.h" />
 | 
			
		||||
  </ItemGroup>
 | 
			
		||||
 | 
			
		||||
@ -147,8 +147,6 @@ void TPAR_mask::fill()
 | 
			
		||||
	enable(DLG_OK, filter_selected.empty() || filter_selected == "E" || filter_selected == "X" || filter_selected == "D");
 | 
			
		||||
	enable(DLG_PRINT, true);
 | 
			
		||||
	enable(DLG_SAVEREC, (is_f8() && (filter_selected == "X") || filter_selected == "D"));
 | 
			
		||||
	enable(DLG_FINDREC, filter_selected == "D");
 | 
			
		||||
	enable(DLG_KEY, _enable_chiave_fixer && filter_selected.empty());
 | 
			
		||||
 | 
			
		||||
		/*
 | 
			
		||||
			VECCHIA QUERY
 | 
			
		||||
@ -421,9 +419,9 @@ void TPAR_mask::export_paf()
 | 
			
		||||
{
 | 
			
		||||
	int      ndocs = 0;
 | 
			
		||||
	TSheet_field& sht = sfield(F_REGS);
 | 
			
		||||
	const TString &tipo_doc_sdi = get(F_TIPO_SDI);
 | 
			
		||||
	
 | 
			
		||||
	const bool diagn = get_bool(F_DIAGN);
 | 
			
		||||
	TReg_fp elab(tipo_doc_sdi, !diagn);
 | 
			
		||||
	TReg_fp elab(EMPTY_STRING, !diagn);
 | 
			
		||||
	TReport_book book;
 | 
			
		||||
 | 
			
		||||
	//elab.set_cache_insert(true);
 | 
			
		||||
@ -432,13 +430,17 @@ void TPAR_mask::export_paf()
 | 
			
		||||
		{
 | 
			
		||||
			TProgress_monitor pi(sht.items(), "Esportazione Regolarizzazioni");
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
			FOR_EACH_SHEET_ROW_LOOP(sht, r)
 | 
			
		||||
			{
 | 
			
		||||
			 
 | 
			
		||||
				if (!pi.add_status())
 | 
			
		||||
					break;
 | 
			
		||||
 | 
			
		||||
				if (sht.get_bool_row_cell(r, S_SELECTED))
 | 
			
		||||
				{
 | 
			
		||||
					const TString& tipo_doc_sdi = sht.get_str_row_cell(r, S_TIPODOC);
 | 
			
		||||
					elab.set_tipodocsdi(tipo_doc_sdi);
 | 
			
		||||
					const long          nreg = sht.get_long_row_cell(r, S_NUMREG);
 | 
			
		||||
 | 
			
		||||
					// Verifico che il codice sdi nello sheet sia lo stesso sulla testata del documento in caso contrario lo aggiorno
 | 
			
		||||
@ -582,18 +584,6 @@ bool TPAR_mask::on_field_event(TOperable_field& o, TField_event e, long jolly)
 | 
			
		||||
			delete_paf();
 | 
			
		||||
	}
 | 
			
		||||
	break;
 | 
			
		||||
	case DLG_FINDREC:
 | 
			
		||||
	{
 | 
			
		||||
		if (e == fe_button)
 | 
			
		||||
			set_pronto();
 | 
			
		||||
	}
 | 
			
		||||
	break;
 | 
			
		||||
	case DLG_KEY:
 | 
			
		||||
	{
 | 
			
		||||
		if (e == fe_button)
 | 
			
		||||
			connect_keys();
 | 
			
		||||
	}
 | 
			
		||||
	break;
 | 
			
		||||
	default: break;
 | 
			
		||||
	}
 | 
			
		||||
	if ((e == fe_modify || e >= se_enter) && jolly == 0)
 | 
			
		||||
@ -763,7 +753,6 @@ TPAR_mask::TPAR_mask() : TAutomask("fp0700a"), _filter_changed(true), _enable_ch
 | 
			
		||||
	disable(DLG_OK);
 | 
			
		||||
	disable(DLG_PRINT);
 | 
			
		||||
	disable(DLG_SAVEREC);
 | 
			
		||||
	disable(DLG_FINDREC);
 | 
			
		||||
	load_all_fields();
 | 
			
		||||
	const TDate data_inizio = get_date_start_new_fatt();
 | 
			
		||||
	__mask = this;
 | 
			
		||||
 | 
			
		||||
@ -8,7 +8,7 @@
 | 
			
		||||
#define START_MASK				F_DATAINI
 | 
			
		||||
#define END_MASK				F_DIAGN
 | 
			
		||||
 | 
			
		||||
#define DLG_KEY				501
 | 
			
		||||
//#define DLG_KEY				501
 | 
			
		||||
 | 
			
		||||
#define S_TIPO_SDI	 101
 | 
			
		||||
#define S_COD_CAUS   102
 | 
			
		||||
 | 
			
		||||
@ -35,20 +35,6 @@ BEGIN
 | 
			
		||||
  FLAGS "D"
 | 
			
		||||
END
 | 
			
		||||
 | 
			
		||||
BUTTON DLG_FINDREC 2 2
 | 
			
		||||
BEGIN
 | 
			
		||||
  PROMPT 1 1 "Segna pronto"
 | 
			
		||||
  PICTURE TOOL_PERMISSIONS
 | 
			
		||||
  FLAGS "D"
 | 
			
		||||
END
 | 
			
		||||
 | 
			
		||||
BUTTON DLG_KEY 2 2
 | 
			
		||||
BEGIN
 | 
			
		||||
  PROMPT 1 1 "Correggi chiavi"
 | 
			
		||||
  PICTURE TOOL_SMILE
 | 
			
		||||
  FLAGS "D"
 | 
			
		||||
END
 | 
			
		||||
 | 
			
		||||
#include <helpbar.h>
 | 
			
		||||
 | 
			
		||||
ENDPAGE
 | 
			
		||||
 | 
			
		||||
@ -712,7 +712,7 @@ public:
 | 
			
		||||
	int commit();
 | 
			
		||||
	int force_commit();
 | 
			
		||||
	void set_cache_insert(const bool v) { _cache_insert = v; }
 | 
			
		||||
 | 
			
		||||
	void set_tipodocsdi(const char* t) { _tipo_doc_sdi = t; }
 | 
			
		||||
 | 
			
		||||
	TReg_fp(const char* tipo_doc_sdi, bool definitivo);
 | 
			
		||||
	~TReg_fp();
 | 
			
		||||
 | 
			
		||||
@ -1,4 +1,5 @@
 | 
			
		||||
#include "fplib.h"
 | 
			
		||||
#include "fp0300a.h"
 | 
			
		||||
 | 
			
		||||
#define FILE_CONFIG					CONFIG_DITTA
 | 
			
		||||
#define FILE_SECTION				"fp"
 | 
			
		||||
@ -314,13 +315,14 @@ void TFP_selected_docs::fill_sheet(TSheet_field& sheet) const
 | 
			
		||||
{
 | 
			
		||||
	for(*_cur = 0; _cur->pos() < _cur->items(); ++*_cur)
 | 
			
		||||
	{
 | 
			
		||||
		TRectype rec = _cur->curr();
 | 
			
		||||
		TToken_string& row = sheet.row(-1);
 | 
			
		||||
		row.add(rec.get(FP_SLD_CODNUM));
 | 
			
		||||
		row.add(rec.get(FP_SLD_TIPODOC));
 | 
			
		||||
		row.add(rec.get(FP_SLD_DASTATO));
 | 
			
		||||
		row.add(rec.get(FP_SLD_ASTATO));
 | 
			
		||||
		row.add(TTipo_documento(rec.get(FP_SLD_TIPODOC)).tipo_doc_sdi());
 | 
			
		||||
		TRectype & rec = _cur->curr();
 | 
			
		||||
 | 
			
		||||
		const int nrow = sheet.set_row_cell(S_SELCODNUM, rec.get(FP_SLD_CODNUM));
 | 
			
		||||
		sheet.set_row_cell(S_TIPODOCSEL, rec.get(FP_SLD_TIPODOC), nrow);
 | 
			
		||||
		sheet.set_row_cell(S_DASTATO, rec.get(FP_SLD_DASTATO), nrow);
 | 
			
		||||
		sheet.set_row_cell(S_ASTATO, rec.get(FP_SLD_ASTATO), nrow);
 | 
			
		||||
		sheet.set_row_cell(S_TIPODOCSDI, TTipo_documento(rec.get(FP_SLD_TIPODOC)).tipo_doc_sdi(), nrow);
 | 
			
		||||
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user