public void Dispose() { if (_dtPrestamos != null) _dtPrestamos.Dispose(); _dtPrestamos = null; if (_Movimientos != null) _Movimientos.Dispose(); _Movimientos = null; }
public Prestamo() { _dtPrestamos = new SicobDataSet.PrestamosDataTable(); _dtPrestamos.AddPrestamosRow(-1, DateTime.Today, 1, 1, 1, 1, DateTime.Today, DateTime.Today, (int)EstatusPrestamo.Creado,0,0,false,false,DateTime.Today,""); idPrestamo = (int)_dtPrestamos.Rows[0][0]; }
public Prestamo(int idprestamo) { _dtPrestamos = AppProvider.Prestamos.ObtenerPorId(idprestamo); this.idPrestamo = idprestamo; Movimientos = AppProvider.Movimientos.Obtener(idprestamo, null, null); }