Ejemplo n.º 1
0
        public Apunte(int id, int idComunidad, Asiento asiento, string FacturaId, int ordenEnAsiento, DebitCredit debeHaber, decimal importe,
                      string concepto, CuentaMayor cuenta, bool punteo)
        {
            this._Id = id;
            this._IdOwnerComunidad = idComunidad;
            this._Asiento          = asiento;
            this._Factura          = FacturaId;
            this._OrdenEnAsiento   = ordenEnAsiento;
            this._DebeHaber        = debeHaber;
            this._Importe          = importe;
            this.Concepto          = concepto;
            this.Cuenta            = cuenta;
            this.Punteo            = punteo;

            InitModifiedProperties();
        }
Ejemplo n.º 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;
            }
        }