Quote ID : QO-@model.QuotId

main_logo

80 Orville Dr

Bohemia, NY 11716

516-699-2092/631-334-2594

Info@seahavenindustries.com

Date: @if (model.Date != null) { @model.Date.Value.ToString("MMM dd yyyy") }

Proposal For : @if (model.WorkOrder != null) { @model.WorkOrder.WorkerOrderTitle }

POC : @if (model.Contacts != null) { @(model.Contacts.FirstName + " " + model.Contacts.LastName) }

PO # :@model.PO

TT # : @model.TT


Project Name : @model.ProjectName

Site Name: @model.SiteName

Site ID: @model.SiteId


Billed To : @model.BillingAddress

@*

Shipping Address :

@model.ShippingAddress

*@

LINE ITEMS:
@*

Line Item 1 :

Completed site assessment for concrete crack repairs as needed that are causing trip hazards.


*@
@if (model.LineItems != null) { foreach (var itm in model.LineItems) {

@itm.Descriptions

$@itm.Lineitem

}

Total

$@model.LineItems.Sum(s => s.Lineitem)

}
@if (isloading) {
Loading…
} @using SeaHavenIndustries.Data.IRepository; @inject IQuotesRepository _service; @using Microsoft.JSInterop @using System.Text.Json @using global::Data.SeaHavenIndustries @inject IJSRuntime JSRuntime @inject ChangeStepService StepService @implements IDisposable @inject NavigationManager Navigation @inject Microsoft.AspNetCore.Hosting.IWebHostEnvironment _env @code { [Parameter] public int? id { get; set; } private Quotes model = new(); private string selectedStatus = "Open"; private bool isloading = true; private IEnumerable? list { get; set; } protected override async Task OnParametersSetAsync() { isloading = true; StepService.OnStateChange += StateHasChanged; if (id != null) { var result = await _service.GetQuotesById(id.Value); if (result != null) { model = result; //StepService.SetCurrentstatus(selectedStatus); // StepService.chnageactivemodel(order); } //isloading = false; } imagePath = _env.WebRootPath + "/assets/img/Logo.png"; ConvertToBase64(); isloading = false; StateHasChanged(); } private string base64Image; private string imagePath; private void ConvertToBase64() { if (!string.IsNullOrEmpty(imagePath)) { var imageBytes = System.IO.File.ReadAllBytes(imagePath); base64Image = Convert.ToBase64String(imageBytes); } else { base64Image = null; } } public EventCallback OnStepChange { get; set; } public void Dispose() { StepService.OnStateChange -= StateHasChanged; } }