rre al 2000 (abans que hi havien incidències). igual amb la data de "carrega". i q
uan ja estiguem
//tornar a dexiar la data com estava
namespace Projecte.Standard.SystemConfigurations.Policies.Inspectors.InspectorsE
mployeesBucle
{
using System;
using System.Collections.Generic;
using System.Text;
using GttDataTypes;
public class EffectsFullDay : ServerObjects.SystemConfigurations.Policies.In
spectors.SpecificTypes.InspectorsEmployeesBucle.IInspectorsEmployeesBucle
{
bool ENABLETRANSACTIONS = true;
public string seffectsrecalculate = "EffectsRecalculate";
public GttDataTypes.GttDate firstdate = new GttDataTypes.GttDate(2000, 1
, 1);
int TEMPSDEPROCESS = 3;
public bool Process()
{
try
{
if (GttObjects == null)
{
InfoMessage("Impossible calcular. GttObjects is null");
return false;
}
if (DateFrom == null || DateTo == null)
{
InfoMessage("Impossible calcular. DateFrom/DateTo is null");
return false;
}
if (DateFrom.IsNullDate() || DateTo.IsNullDate())
{
InfoMessage("Impossible calcular. DateFrom/DateTo is null da
te");
return false;
}
ServerObjects.SystemConfigurations.ParameterTypes.clsParameterTy
pe effectsrecalculate = GttObjects.ParameterTypes[seffectsrecalculate];
if (effectsrecalculate == null)
{
InfoMessage("Imposible calcular el parametro tipo " + effect
srecalculate + " no existe");
return false;
}
int Origen = DateFrom.Year;
int Desti = DateTo.Year;
InfoMessage("Inspector iniciado");
DateTime Now = DateTime.Now;
DateTime IniciProcess = DateTime.Now;