46 lines
2.0 KiB
C#
46 lines
2.0 KiB
C#
using Entidades;
|
|
using Entidades.Dto;
|
|
using Microsoft.AspNetCore.Routing.Template;
|
|
|
|
namespace AlquilaFacil.Facade;
|
|
public class DocumentoGeneradorHtml {
|
|
public string GenerarHTML(ContratoDto cd, Recibo r) {
|
|
string tmpl =$"""
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
|
|
</head>
|
|
<body>
|
|
<div class="container mt-5">
|
|
<div class="card">
|
|
<div class="card-header text-white bg-primary">
|
|
AlquilaFácil
|
|
</div>
|
|
<div class="card-body">
|
|
<h5 class="card-title">Detalles</h5>
|
|
<p class="card-text">
|
|
<strong>ID:</strong> {cd.id}<br>
|
|
<strong>Ubicación:</strong> {cd.Ubicacion}<br>
|
|
<strong>Tipo de Propiedad:</strong> {cd.TipoPropiedad}<br>
|
|
<strong>Fecha de Inicio:</strong> {cd.Fechainicio}<br>
|
|
<strong>Inquilino:</strong> {cd.Inquilino}<br>
|
|
<strong>Propietario:</strong> {cd.Propietario}<br>
|
|
</p>
|
|
<hr>
|
|
<h5 class="card-title">Detalles del Recibo</h5>
|
|
<p class="card-text">
|
|
<strong>ID del Recibo:</strong> {r.Id}<br>
|
|
<strong>Fecha:</strong> {r.Fecha}<br>
|
|
<strong>Monto:</strong> {r.Monto}<br>
|
|
<h2><b>PAGO</b></h2>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|
|
"""; return tmpl;
|
|
}
|
|
}
|