/* #region Miembros de ITask * * public event System.EventHandler ObjectHasChanged; * * public event System.EventHandler OnTaskBeforeExecute; * * public event System.EventHandler OnTaskAfterExecute; * * public event System.EventHandler OnTaskBeforePrevious; * public event System.EventHandler OnTaskAfterPrevious; * * public void Previous() * { * if(OnTaskBeforePrevious != null) * OnTaskBeforePrevious(this, new EventArgs()); * if(OnTaskAfterPrevious != null) * OnTaskAfterPrevious(this, new EventArgs()); * } * * public bool AllowPrevious() * { * return true; * } * public void ListenerAfterPreviousDependentTask( object sender ) * { * } * public void ListenerBeforePreviousDependentTask( object sender ) * { * } * * * public void ListenerTaskDependentChanged(object sender) * { * // TODO: agregar la implementación PrepararDatosImpresionComprobantes.ListenerTaskDependentChanged * } * * public void ListenerAfterExecuteDependentTask(object sender) * { * } * * public void ListenerBeforeExecuteDependentTask(object sender) * { * // TODO: agregar la implementación PrepararDatosImpresionComprobantes.ListenerBeforeExecuteDependentTask * } */ public void Init() { _taskName = "CuentaCorriente"; //decimal cantDiasDesde = Convert.ToDecimal(Variables.GetValueString(_processName, _taskName, "DiasAnteriores")); decimal cantDiasDesde = (!Variables.GetValueDecimal(_processName, _taskName, "DiasAnteriores").Equals(Decimal.MinValue)) ? (Variables.GetValueDecimal(_processName, _taskName, "DiasAnteriores")) : 0; //decimal cantDiasHasta = Convert.ToDecimal(Variables.GetValueString(_processName, _taskName, "DiasPosteriores")); decimal cantDiasHasta = (!Variables.GetValueDecimal(_processName, _taskName, "DiasPosteriores").Equals(Decimal.MinValue)) ? (Variables.GetValueDecimal(_processName, _taskName, "DiasPosteriores")) : 0; _soloPendientes = Variables.GetValueBool(_processName, _taskName, "SoloPendientes"); _fechaDesde = mz.erp.businessrules.Sistema.DateTime.Now.AddDays((-1) * Convert.ToDouble(cantDiasDesde)); _fechaHasta = mz.erp.businessrules.Sistema.DateTime.Now.AddDays(Convert.ToDouble(cantDiasHasta)); _ordenDebeHaber = Variables.GetValueBool(_processName, _taskName, "OrdenDebeHaber"); _filtroFechaDefault = Variables.GetValueString(_processName, _taskName, "FiltroFechaDefault"); _filtroComprobantesDefault = Variables.GetValueString(_processName, _taskName, "FiltroComprobantesDefault"); _ordenacionDefault = Variables.GetValueString(_processName, _taskName, "OrdenacionDefault"); _colorPositivo = Variables.GetValueString(_processName, _taskName, "Color.Positivo"); _colorNegativo = Variables.GetValueString(_processName, _taskName, "Color.Negativo"); _listaComprobantesFacturas = Variables.GetValueString(_processName, _taskName, "ListaTiposDeComprobantes.Facturas"); _listaComprobantesNotasDeCredito = Variables.GetValueString(_processName, _taskName, "ListaTiposDeComprobantes.NotasDeCredito"); _listaComprobantesRecibos = Variables.GetValueString(_processName, _taskName, "ListaTiposDeComprobantes.Recibos"); _tipoCtaCte = Variables.GetValueLong(_processName, _taskName, "TipoCtaCte"); //German 20120228 - Tarea 0000247 _actualizaPrecios = Variables.GetValueBool("CuentaCorriente.SaldoRemitosSinFacturar.ActualizaPrecios");; _visualizaSaldoRemitos = Variables.GetValueBool("CuentaCorriente.MuestraSaldoRemitos"); _visualizaSaldoAcopios = Variables.GetValueBool("CuentaCorriente.MuestraSaldoAcopios"); _listaComprobantesAcopios = Variables.GetValueString(_processName, _taskName, "ListaTiposDeComprobantes.Acopios"); //Fin German 20120228 - Tarea 0000247 }