git-svn-id: svn://10.65.10.50/branches/R_10_00@23115 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
		
							parent
							
								
									af7e6544ae
								
							
						
					
					
						commit
						691e28a3a2
					
				@ -19,6 +19,7 @@
 | 
				
			|||||||
#pragma region Includes
 | 
					#pragma region Includes
 | 
				
			||||||
#include "SSAservice.h"
 | 
					#include "SSAservice.h"
 | 
				
			||||||
#include "ServiceInstaller.h"
 | 
					#include "ServiceInstaller.h"
 | 
				
			||||||
 | 
					#include <string>
 | 
				
			||||||
#pragma endregion
 | 
					#pragma endregion
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// 
 | 
					// 
 | 
				
			||||||
@ -68,6 +69,7 @@ int wmain(int argc, wchar_t *argv[])
 | 
				
			|||||||
            InstallService(
 | 
					            InstallService(
 | 
				
			||||||
                SERVICE_NAME,               // Name of service
 | 
					                SERVICE_NAME,               // Name of service
 | 
				
			||||||
                SERVICE_DISPLAY_NAME,       // Name to display
 | 
					                SERVICE_DISPLAY_NAME,       // Name to display
 | 
				
			||||||
 | 
					                SERVICE_WIN32_OWN_PROCESS,
 | 
				
			||||||
                SERVICE_START_TYPE,         // Service start type
 | 
					                SERVICE_START_TYPE,         // Service start type
 | 
				
			||||||
                SERVICE_DEPENDENCIES,       // Dependencies
 | 
					                SERVICE_DEPENDENCIES,       // Dependencies
 | 
				
			||||||
                SERVICE_ACCOUNT,            // Service running account
 | 
					                SERVICE_ACCOUNT,            // Service running account
 | 
				
			||||||
 | 
				
			|||||||
@ -3,6 +3,7 @@
 | 
				
			|||||||
#include "ThreadPool.h"
 | 
					#include "ThreadPool.h"
 | 
				
			||||||
#include "PathName.h"
 | 
					#include "PathName.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include <string>
 | 
				
			||||||
#include <psapi.h>
 | 
					#include <psapi.h>
 | 
				
			||||||
#pragma comment(lib, "Psapi.lib")
 | 
					#pragma comment(lib, "Psapi.lib")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -100,10 +101,9 @@ BOOL CSSAservice::FindOrCreateAgent(HANDLE& hProcess, DWORD& pid) const
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
void CSSAservice::CheckDirectory() const
 | 
					void CSSAservice::CheckDirectory() const
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
  char full[_MAX_PATH];
 | 
					  char full[_MAX_PATH] = {0}; ::GetModuleFileNameA(NULL, full, sizeof(full));
 | 
				
			||||||
  ::GetModuleFileNameA(NULL, full, sizeof(full));
 | 
					 | 
				
			||||||
  CPathName pn = full;
 | 
					  CPathName pn = full;
 | 
				
			||||||
  ::SetCurrentDirectoryA(pn.Path().c_str());
 | 
					  ::SetCurrentDirectoryA(pn.Path());
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
CSSAservice::CSSAservice(LPCTSTR pszServiceName, 
 | 
					CSSAservice::CSSAservice(LPCTSTR pszServiceName, 
 | 
				
			||||||
 | 
				
			|||||||
@ -15,7 +15,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
bool THardy_iterator::cancelled() const
 | 
					bool THardy_iterator::cancelled() const
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
  return _pi != NULL && _pi->iscancelled();
 | 
					  return _pi != NULL && _pi->is_cancelled();
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
bool THardy_iterator::ok() const
 | 
					bool THardy_iterator::ok() const
 | 
				
			||||||
@ -28,7 +28,7 @@ bool THardy_iterator::ok() const
 | 
				
			|||||||
THardy_iterator& THardy_iterator::operator=(TRecnotype n) 
 | 
					THardy_iterator& THardy_iterator::operator=(TRecnotype n) 
 | 
				
			||||||
{ 
 | 
					{ 
 | 
				
			||||||
  if (_pi != NULL)
 | 
					  if (_pi != NULL)
 | 
				
			||||||
    _pi->setstatus(n+1);
 | 
					    _pi->set_status(n+1);
 | 
				
			||||||
  _ht->recordset().move_to(_rec = n); 
 | 
					  _ht->recordset().move_to(_rec = n); 
 | 
				
			||||||
  return *this;
 | 
					  return *this;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
@ -43,10 +43,7 @@ THardy_iterator::THardy_iterator(THardy_transfer* ht) : _ht(ht), _pi(NULL)
 | 
				
			|||||||
  const TRecnotype tot = _ht->recordset().items();
 | 
					  const TRecnotype tot = _ht->recordset().items();
 | 
				
			||||||
  TString title;
 | 
					  TString title;
 | 
				
			||||||
  title << _ht->title() << ": " << tot << ' ' << TR("righe");
 | 
					  title << _ht->title() << ": " << tot << ' ' << TR("righe");
 | 
				
			||||||
  if (tot > 1)
 | 
					  _pi = new TProgress_monitor(tot, title);
 | 
				
			||||||
    _pi = new TProgind(tot, title, true, true);
 | 
					 | 
				
			||||||
  else
 | 
					 | 
				
			||||||
    ::begin_wait();
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if (tot > 0)
 | 
					  if (tot > 0)
 | 
				
			||||||
    _ht->log(title);
 | 
					    _ht->log(title);
 | 
				
			||||||
@ -56,10 +53,7 @@ THardy_iterator::THardy_iterator(THardy_transfer* ht) : _ht(ht), _pi(NULL)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
THardy_iterator::~THardy_iterator()
 | 
					THardy_iterator::~THardy_iterator()
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
  if (_pi != NULL)
 | 
					 | 
				
			||||||
  delete _pi;
 | 
					  delete _pi;
 | 
				
			||||||
  else
 | 
					 | 
				
			||||||
    ::end_wait();
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
///////////////////////////////////////////////////////////
 | 
					///////////////////////////////////////////////////////////
 | 
				
			||||||
 | 
				
			|||||||
@ -18,7 +18,7 @@
 | 
				
			|||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifndef __PROGIND_H
 | 
					#ifndef __PROGIND_H
 | 
				
			||||||
class TProgind;
 | 
					#include <progind.h>
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifndef __MODAUT_H
 | 
					#ifndef __MODAUT_H
 | 
				
			||||||
@ -97,7 +97,7 @@ public:
 | 
				
			|||||||
class THardy_iterator
 | 
					class THardy_iterator
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
  THardy_transfer* _ht;
 | 
					  THardy_transfer* _ht;
 | 
				
			||||||
  TProgind* _pi;
 | 
					  TProgress_monitor* _pi;
 | 
				
			||||||
  TRecnotype _rec;
 | 
					  TRecnotype _rec;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
public:
 | 
					public:
 | 
				
			||||||
 | 
				
			|||||||
@ -4016,8 +4016,8 @@ void TPlanning_mask::create_browse1(TEdit_field& kfld, int level, short key_id,
 | 
				
			|||||||
  TScanner scan(tmp);
 | 
					  TScanner scan(tmp);
 | 
				
			||||||
  while (scan.pop() != "EN")
 | 
					  while (scan.pop() != "EN")
 | 
				
			||||||
    kfld.parse_item(scan);
 | 
					    kfld.parse_item(scan);
 | 
				
			||||||
 | 
					  scan.close();
 | 
				
			||||||
  xvt_fsys_removefile(tmp);
 | 
					  xvt_fsys_remove_file(tmp);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void TPlanning_mask::create_browse2(TEdit_field& kfld, int level, short key_id, short des_id, const TCodart_livelli &cal)
 | 
					void TPlanning_mask::create_browse2(TEdit_field& kfld, int level, short key_id, short des_id, const TCodart_livelli &cal)
 | 
				
			||||||
@ -4045,8 +4045,8 @@ void TPlanning_mask::create_browse2(TEdit_field& kfld, int level, short key_id,
 | 
				
			|||||||
  TScanner scan(tmp);
 | 
					  TScanner scan(tmp);
 | 
				
			||||||
  while (scan.pop() != "EN")
 | 
					  while (scan.pop() != "EN")
 | 
				
			||||||
    kfld.parse_item(scan);
 | 
					    kfld.parse_item(scan);
 | 
				
			||||||
 | 
					  scan.close();
 | 
				
			||||||
  xvt_fsys_removefile(tmp);
 | 
					  xvt_fsys_remove_file(tmp);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
int TPlanning_mask::create_codart_fields(int x, int y, short key_id, short des_id)
 | 
					int TPlanning_mask::create_codart_fields(int x, int y, short key_id, short des_id)
 | 
				
			||||||
 | 
				
			|||||||
@ -222,15 +222,10 @@ long TMRP_array::sort()
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
  const long last = items()-1;
 | 
					  const long last = items()-1;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  TProgind* pi = NULL;
 | 
					  TProgress_monitor pi(last, TR("Ordinamento"), false);
 | 
				
			||||||
  if (last >= 16)
 | 
					 | 
				
			||||||
    pi = new TProgind(last, TR("Ordinamento"), false, true);
 | 
					 | 
				
			||||||
  else
 | 
					 | 
				
			||||||
    begin_wait();
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  for (long i = 0; i < last; i++)
 | 
					  for (long i = 0; i < last; i++)
 | 
				
			||||||
  {
 | 
					  {
 | 
				
			||||||
    if (pi) pi->addstatus(1);
 | 
					    pi.add_status();
 | 
				
			||||||
    TSortable* best = &find_obj(i);
 | 
					    TSortable* best = &find_obj(i);
 | 
				
			||||||
    bool swapped = true;
 | 
					    bool swapped = true;
 | 
				
			||||||
    while (swapped)
 | 
					    while (swapped)
 | 
				
			||||||
@ -248,12 +243,6 @@ long TMRP_array::sort()
 | 
				
			|||||||
      }
 | 
					      }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					 | 
				
			||||||
  if (pi)
 | 
					 | 
				
			||||||
    delete pi;
 | 
					 | 
				
			||||||
  else
 | 
					 | 
				
			||||||
    end_wait();
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  return last+1;
 | 
					  return last+1;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -1102,7 +1102,8 @@ TMask* TGestione_preventivo_app::get_mask( int mode )
 | 
				
			|||||||
			const int y = m->sh_y() - 1;
 | 
								const int y = m->sh_y() - 1;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			if (m->var_cost())
 | 
								if (m->var_cost())
 | 
				
			||||||
				m->add_list(F_TIPO_COSTO, sh.page(), "Tipo costo", 2, y - 1, 20, "", "1|2|4|5|6", "Ultimo costo|Media ultimi costi|Costo standard|Costo medio|Costo medio ponder.");
 | 
									m->add_list(F_TIPO_COSTO, sh.page(), "Tipo costo", 2, y - 1, 20, "", "1|2|4|5|6", 
 | 
				
			||||||
 | 
					                    HR("Ultimo costo|Media ultimi costi|Costo standard|Costo medio|Costo medio ponder."));
 | 
				
			||||||
			m->add_button(F_LOAD_COSTS, sh.page(), "Costi", 66, y - 2, 4, 1, "");
 | 
								m->add_button(F_LOAD_COSTS, sh.page(), "Costi", 66, y - 2, 4, 1, "");
 | 
				
			||||||
			m->set_handler(F_LOAD_COSTS, TGestione_preventivo_msk::pe_update_costi_handler);
 | 
								m->set_handler(F_LOAD_COSTS, TGestione_preventivo_msk::pe_update_costi_handler);
 | 
				
			||||||
			m->add_button(F_REVISION, sh.page(), "Rev.", 73, y - 2, 4, 1, "");
 | 
								m->add_button(F_REVISION, sh.page(), "Rev.", 73, y - 2, 4, 1, "");
 | 
				
			||||||
 | 
				
			|||||||
@ -99,18 +99,12 @@ TConti_mask::~TConti_mask()
 | 
				
			|||||||
// applicazione per la gestione delle tabelle di magazzino
 | 
					// applicazione per la gestione delle tabelle di magazzino
 | 
				
			||||||
class Tab_app_IPSOA : public TTable_module_application
 | 
					class Tab_app_IPSOA : public TTable_module_application
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
  
 | 
					 | 
				
			||||||
protected:  // TRelation_application
 | 
					protected:  // TRelation_application
 | 
				
			||||||
  virtual bool user_create() ;
 | 
					  virtual bool user_create() ;
 | 
				
			||||||
  
 | 
					 | 
				
			||||||
public:
 | 
					 | 
				
			||||||
	Tab_app_IPSOA() {}
 | 
					 | 
				
			||||||
  virtual ~Tab_app_IPSOA() {}
 | 
					 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
HIDDEN inline Tab_app_IPSOA& app() { return (Tab_app_IPSOA&)main_app(); }
 | 
					HIDDEN inline Tab_app_IPSOA& app() { return (Tab_app_IPSOA&)main_app(); }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
bool Tab_app_IPSOA::user_create()
 | 
					bool Tab_app_IPSOA::user_create()
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
  /*
 | 
					  /*
 | 
				
			||||||
 | 
				
			|||||||
@ -55,10 +55,7 @@ TPack_iterator::TPack_iterator(TPack_transfer* pt) : _pt(pt), _pi(NULL)
 | 
				
			|||||||
  const TRecnotype tot = _pt->recordset().items();
 | 
					  const TRecnotype tot = _pt->recordset().items();
 | 
				
			||||||
  
 | 
					  
 | 
				
			||||||
  TString title; title << _pt->title() << ": " << tot << ' ' << TR("righe");
 | 
					  TString title; title << _pt->title() << ": " << tot << ' ' << TR("righe");
 | 
				
			||||||
  if (tot > 1)
 | 
					 | 
				
			||||||
  _pi = new TProgind(tot, title, true, true);
 | 
					  _pi = new TProgind(tot, title, true, true);
 | 
				
			||||||
  else
 | 
					 | 
				
			||||||
    ::begin_wait();
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if (tot > 0)
 | 
					  if (tot > 0)
 | 
				
			||||||
    _pt->log(title);
 | 
					    _pt->log(title);
 | 
				
			||||||
@ -70,8 +67,6 @@ TPack_iterator::~TPack_iterator()
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
  if (_pi != NULL)
 | 
					  if (_pi != NULL)
 | 
				
			||||||
    delete _pi;
 | 
					    delete _pi;
 | 
				
			||||||
  else
 | 
					 | 
				
			||||||
    ::end_wait();
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
///////////////////////////////////////////////////////////
 | 
					///////////////////////////////////////////////////////////
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user