Update Province and Status Quote defa
All checks were successful
CI/CD Pipeline / Build and Deploy with Docker Compose (push) Successful in 5m49s
All checks were successful
CI/CD Pipeline / Build and Deploy with Docker Compose (push) Successful in 5m49s
This commit is contained in:
parent
2f5e6f0f90
commit
474c90423c
@ -231,7 +231,7 @@ namespace Models.Repositories
|
||||
var series = await _formSeriesRepository.GetByIdAsync(formSeriesId)
|
||||
?? throw new InvalidOperationException("Serie no encontrada");
|
||||
int padding = 8; /* format "00000000" */
|
||||
|
||||
quote.Status = "Emitido";
|
||||
quote.Quotenumber = $"{series.Letter}-{nextNumber.ToString($"D{padding}")}";
|
||||
|
||||
var headerEntity = EntityMapper.MapEntity<EQuoteHeader, PhSQuoteHeader>(quote);
|
||||
|
||||
@ -29,9 +29,10 @@
|
||||
<label for="Type">Tipo de institución:</label>
|
||||
<InputSelect id="Type" @bind-Value="_model.Type" class="form-control">
|
||||
<option value="">--- Seleccionar ---</option>
|
||||
<option value="Sanatorio">Sanatorio</option>
|
||||
<option value="Clínica">Clínica</option>
|
||||
<option value="Hospital">Hospital</option>
|
||||
@foreach (var type in InstitutionTypes)
|
||||
{
|
||||
<option value="@type.Code">@type.Description</option>
|
||||
}
|
||||
</InputSelect>
|
||||
<ValidationMessage For="@(() => _model.Type)" />
|
||||
</div>
|
||||
@ -138,6 +139,21 @@
|
||||
"Neuquén", "Río Negro", "Salta", "San Juan", "San Luis", "Santa Cruz",
|
||||
"Santa Fe", "Santiago del Estero", "Tierra del Fuego", "Tucumán"
|
||||
};
|
||||
|
||||
private List<(string Code, string Description)> InstitutionTypes = new()
|
||||
{
|
||||
("ESCIG", "Establecimiento de salud con internación general"),
|
||||
("ESCIEP", "Internación especializada en pediatría"),
|
||||
("ESCIEM", "Internación especializada en maternidad/materno infantil"),
|
||||
("ESCIESM", "Internación especializada en salud mental"),
|
||||
("ESCIE", "Internación especializada en otras especialidades"),
|
||||
("ESCIRES", "Establecimientos Residenciales"),
|
||||
("ESSIDT", "Ambulatorio diagnóstico y tratamiento"),
|
||||
("ESSID", "Ambulatorio diagnóstico"),
|
||||
("ESSIT", "Ambulatorio tratamiento"),
|
||||
("ESCL", "Establecimiento complementario"),
|
||||
("ESIAIS", "Ambulatorios de inclusión social")
|
||||
};
|
||||
protected override async Task OnInitializedAsync()
|
||||
{
|
||||
if (InstitutionId.HasValue)
|
||||
|
||||
@ -30,7 +30,7 @@
|
||||
</button>
|
||||
</div>
|
||||
<hr />
|
||||
<div>
|
||||
<div style="zoom:0.8;">
|
||||
@if (TablaInstituciones != null && TablaInstituciones.Any())
|
||||
{
|
||||
<PhTable Columns="TableColumns"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user