Exemple #1
0
        public AsientoProgramado(int idComunidad, TareaInfo infoTarea)
        {
            this._Id        = 0;
            this.Apuntes    = new ObservableApuntesList(this);
            this.FechaValor = DateTime.Today;
            this.Saldo      = 0;
            this.InfoTarea  = infoTarea;

            if (this.InfoTarea.EstaEsMachineQueEjecuta)
            {
                var tsw = new TaskSchedulerWrapper(GlobalSettings.Properties.Settings.Default.NOMBREAPPINTERNO);
                this.Tarea = tsw.GetTarea(this.InfoTarea.NombreTarea);
            }
            else
            {
                this.Tarea = null;
            }
        }
Exemple #2
0
        public AsientoProgramado(Asiento asiento, TareaInfo infoTarea)
        {
            this._Id = asiento.Id;
            this._IdOwnerComunidad = asiento.IdOwnerComunidad;
            this.Apuntes           = asiento.Apuntes;
            this.FechaValor        = asiento.FechaValor;
            this.Saldo             = asiento.Saldo;
            this.InfoTarea         = infoTarea;

            if (this.InfoTarea.EstaEsMachineQueEjecuta)
            {
                var tsw = new TaskSchedulerWrapper(GlobalSettings.Properties.Settings.Default.NOMBREAPPINTERNO);
                this.Tarea = tsw.GetTarea(this.InfoTarea.NombreTarea);
            }
            else
            {
                this.Tarea = null;
            }
        }