demo20230512/Areas/Certification/Views/LCA/ProductLcaDetail.cshtml

1728 lines
107 KiB
Plaintext
Raw Normal View History

2023-05-12 10:20:28 +08:00
@*
the Comment.Category is defined here,
used by Normal company and Certificate company
possible value of Category:
LCI_Direct_Material,
LCI_Indirect_Material,
LCI_Wrap_Material,
WorkHour,
PowerUsage,
WaterUsage,
Waste_Water,
Waste_Other,
Transport,
WasteTransport,
Vehicle,
GasolineEquipment,
Kitchen_Company,
Kitchen_Outsourcing,
Kitchen_Other,
Refrigerant,
FireEquipment,
SteamUsage,
OtherCompound
*@
@using Weee.Models.Paramemter
@using Weee.Models.ExtensionMethods
@using Weee.Areas.Certification.Supports
@using Resources
@model Weee.Areas.Certification.ViewModels.ProductLcaViewModel
@{
ViewBag.Title = Resource.StaticLabelProductLCA;
Layout = "~/Areas/Certification/Views/Shared/_CertificationLayout.cshtml";
}
@section PageStyles {
@Styles.Render("~/fancybox/css")
}
@section PageScripts {
@Scripts.Render("~/fancybox")
@Scripts.Render("~/sticky")
@Scripts.Render("~/certification/lca/detail")
}
@*<div class="side-bar-top-empty"></div>
<div class="side-bar col-xs-2 js-scrollspy">*@
<html style="scroll-behavior: smooth;">
<div class="container-fluid">
<div class="panel row">
<div class="col-md-2 org-split-left side-bar js-scrollspy">
<ul id="docs-scroll-hash-nav" class="navbar-nav nav-pills">
@*<ul id="docs-scroll-hash-nav" class="nav nav-pills nav-stacked nav-float docs-ul">*@
<li class="nav-item"><a class="active nav-link" style="padding:0" href="#lca-detail">@Resource.BasicInfo</a></li>
<li class="nav-item"><a class="nav-link" style="padding:0" href="#direct-material">@Resource.MaterialDirectMaterial</a></li>
<li class="nav-item"><a class="nav-link" style="padding:0" href="#indirect-material">@Resource.MaterialIndirectMaterial</a></li>
<li class="nav-item"><a class="nav-link" style="padding:0" href="#wrap-material">@Resource.MaterialWrapMaterial</a></li>
<li class="nav-item"><a class="nav-link" style="padding:0" href="#total-workhour">@Resource.TotalWorkHours</a></li>
<li class="nav-item"><a class="nav-link" style="padding:0" href="#power-usage">@Resource.PowerUsage</a></li>
<li class="nav-item"><a class="nav-link" style="padding:0" href="#water-usage">@Resource.WaterUsage</a></li>
<li class="nav-item"><a class="nav-link" style="padding:0" href="#waste-water">@Resource.WasteWaterCategory</a></li>
<li class="nav-item"><a class="nav-link" style="padding:0" href="#waste-other">@Resource.WasteCategory</a></li>
<li class="nav-item"><a class="nav-link" style="padding:0" href="#transport">@Resource.Transport</a></li>
<li class="nav-item"><a class="nav-link" style="padding:0" href="#waste-transport">@Resource.WasteTransportation</a></li>
<li class="nav-item"><a class="nav-link" style="padding:0" href="#vehicle">@Resource.ParamemterCategoriesVehicle</a></li>
<li class="nav-item"><a class="nav-link" style="padding:0" href="#gasoline">@Resource.DieselEquipment</a></li>
<li class="nav-item"><a class="nav-link" style="padding:0" href="#kitchen-owned">@Resource.Kitchen (@Resource.CompanyHas)</a></li>
<li class="nav-item"><a class="nav-link" style="padding:0" href="#kitchen-outsourcing">@Resource.Kitchen (@Resource.Outsourcing)</a></li>
<li class="nav-item"><a class="nav-link" style="padding:0" href="#kitchen-other">@Resource.Kitchen (@Resource.Other)</a></li>
<li class="nav-item"><a class="nav-link" style="padding:0" href="#refrigerant">@Resource.ContainsRefrigerant</a></li>
<li class="nav-item"><a class="nav-link" style="padding:0" href="#fire-equipment">@Resource.FireEquipment</a></li>
<li class="nav-item"><a class="nav-link" style="padding:0" href="#steam-usage">@Resource.SteamUsage</a></li>
<li class="nav-item"><a class="nav-link" style="padding:0" href="#other">@Resource.OtherCompound</a></li>
<li class="nav-item"><a class="nav-link" style="padding:0" href="#usage-stage">@Resource.ProductUsageStage</a></li>
<li class="nav-item"><a class="nav-link" style="padding:0" href="#abandoned-stage">@Resource.AbandonedStage</a></li>
</ul>
@*</div>*@
</div>
<div id="docs-scroll-hash-content" class="col-md-10 org-split-right" style="margin-left: auto">
<div id="lca-detail" class="docs-lca-detail">
@if (Model.ProductLca.Status == Weee.Models.LCAStatus.Confirmed)
{
<div class="row">
<div class="pull-right docs-btn-group">
<input id="complete-button" type="button" value="@Resource.Complete" class="btn docs-btn-blue" />
@using (Html.BeginForm("ProductLcaComplete", "LCA", new { lcaId = Model.ProductLca.ID }, FormMethod.Post, new { @id = "lca-complete", @class = "docs-inline" })) { }
</div>
</div>
}
<div class="row">
<div class="col-md-4">
<label>@(Resource.Starter): </label>
<span>@Model.ProductLca.LCAStarter</span>
</div>
<div class="col-md-4">
<label>@(Resource.PhoneNumber): </label>
<span>@Model.ProductLca.LCAStarterPhone</span>
</div>
<div class="col-md-4">
<label>@(Resource.LCAStartDate): </label>
<span>@Model.ProductLca.StartDate.ToShortDateString()</span>
</div>
</div>
<div class="row">
<div class="col-md-4">
<label>@(Resource.Job): </label>
<span>@Model.ProductLca.LCAStarterJob</span>
</div>
<div class="col-md-4">
<label>@(Resource.Department): </label>
<span>@Model.ProductLca.LCAStarterDepartment</span>
</div>
<div class="col-md-4">
<label>@(Resource.LCAEndDate): </label>
<span>@Model.ProductLca.EndDate.ToShortDateString()</span>
</div>
</div>
<div class="row">
<div class="col-md-4">
<label>@(Resource.UserEmail): </label>
<span>@Model.ProductLca.LCAStarterEmail</span>
</div>
<div class="col-md-4">
<label>@(Resource.InterrogationResultReport): </label>
@if (Model.ProductLca.InterrogationResultUrl != null && Model.ProductLca.InterrogationResultUrl != "")
{
/*Start CFT-6*/
if (Model.ProductLca.InterrogationResultUrl.Contains("Browser_Local"))
{
<span><a href="@Model.ProductLca.InterrogationResultUrl.Substring(Model.ProductLca.InterrogationResultUrl.IndexOf("Browser_Local")-1)">@Resource.DownloadLink</a></span>
}
else
{
<span><a href="@Model.ProductLca.InterrogationResultUrl">@Resource.DownloadLink</a></span>
}
@*<span><a href="@Model.ProductLca.InterrogationResultUrl">@Resource.DownloadLink</a></span>*@
//End CFT-6
}
</div>
<div class="col-md-4">
<label>@(Resource.ProductInventoryResultReport): </label>
@if (Model.ProductLca.ProductInventoryResultUrl != null && Model.ProductLca.ProductInventoryResultUrl != "")
{
/*Start CFT-6*/
if (Model.ProductLca.ProductInventoryResultUrl.Contains("Browser_Local"))
{
<span><a href="@Model.ProductLca.ProductInventoryResultUrl.Substring(Model.ProductLca.ProductInventoryResultUrl.IndexOf("Browser_Local")-1)">@Resource.DownloadLink</a></span>
}
else
{
<span><a href="@Model.ProductLca.ProductInventoryResultUrl">@Resource.DownloadLink</a></span>
}
@*<span><a href="@Model.ProductLca.ProductInventoryResultUrl">@Resource.DownloadLink</a></span>*@
//End CFT-6
}
</div>
</div>
<div class="row">
<div class="col-md-4">
<span><a href="@ViewData["DownloadZipReport"]">@Resource.ZipReport</a></span>
</div>
<div class="col-md-4">
<label>@(Resource.ProductPicture): </label>
@if (Model.ProductLca.TargetProduct.PhotoUrl != null)
{
/*Start CFT-6*/
if (Model.ProductLca.TargetProduct.PhotoUrl.Contains("Browser_Local"))
{
<span><a id="product-pictue" href="@Model.ProductLca.TargetProduct.PhotoUrl.Substring(Model.ProductLca.TargetProduct.PhotoUrl.IndexOf("Browser_Local")-1)">@Resource.Browse</a></span>
}
else
{
<span><a id="product-pictue" href="@Model.ProductLca.TargetProduct.PhotoUrl">@Resource.Browse</a></span>
}
@*<span><a id="product-pictue" href="@Model.ProductLca.TargetProduct.PhotoUrl">@Resource.Browse</a></span>*@
//End CFT-6
}
</div>
<div class="col-md-4">
<label>@Resource.ScheduledVerificationDate: </label>
@if (Model.ProductLca.Status == Weee.Models.LCAStatus.Waiting)
{
using (Html.BeginForm("ProductLcaChangeScheduledVerificationDate", "LCA", new { lcaId = Model.ProductLca.ID }, FormMethod.Post, new { @id = "lca-ChangeScheduledVerificationDate", @class = "docs-inline" }))
{
@Html.TextBoxFor(model => model.ProductLca.ScheduledVerificationDate, new { @type = "date", @Value = Model.ProductLca.ScheduledVerificationDate.HasValue ? Model.ProductLca.ScheduledVerificationDate.Value.ToString("yyyy-MM-dd") : "" })
}
}
else
{
<span>@(Model.ProductLca.ScheduledVerificationDate.HasValue ? (Model.ProductLca.ScheduledVerificationDate.Value).ToString("YYYY/MM/DD") : "")</span>
}
</div>
</div>
</div>
<div class="message">
@TempData["successMsg"]
@TempData["errorMsg"]
</div>
@if (Model.ProductLca.Status == Weee.Models.LCAStatus.Waiting)
{
<div class="pull-right docs-btn-group">
<input id="confirm-button" type="button" value="@Resource.Approve" class="header-button" />
@using (Html.BeginForm("ProductLcaConfirm", "LCA", new { lcaId = Model.ProductLca.ID }, FormMethod.Post, new { @id = "lca-confirm", @class = "docs-inline" })) { }
<input id="reject-button" type="button" value="@Resource.Reject" class="header-button" />
@using (Html.BeginForm("ProductLcaReject", "LCA", new { lcaId = Model.ProductLca.ID }, FormMethod.Post, new { @id = "lca-reject", @class = "docs-inline" })) { }
<button class="header-button" id="upload-button" onclick="showModel()">@Resource.StaticLabelGlobal_Upload</button>
</div>
}
@if (Model.ProductLca.Status == Weee.Models.LCAStatus.Processing)
{
<div class="pull-right docs-btn-group">
<input id="refuse-button" type="button" value="@Resource.Refuse" class="header-button" />
@using (Html.BeginForm("ProductLcaRefuse", "LCA", new { lcaId = Model.ProductLca.ID }, FormMethod.Post, new { @id = "lca-refuse", @class = "docs-inline" })) { }
</div>
}
<div>
<div>
<h4 id="direct-material" class="docs-inline">LCI-@Resource.MaterialDirectMaterial</h4>
@if (@Model.DirectMaterial.SheetFillerName != null)
{
var sheetheader = Model.DirectMaterial;
<div class="sheetheader">
<label class="sheetheader-label">@Resource.StaticLabelFillerName/@Resource.StaticLabelSencondContact: </label>
<span class="sheetheader-text">@sheetheader.SheetFillerName</span>
<label class="sheetheader-label">@(Resource.PhoneNumber): </label>
<span class="sheetheader-text">@sheetheader.Phone</span>
<label class="sheetheader-label">@(Resource.Department): </label>
<span class="sheetheader-text">@sheetheader.Department</span>
</div>
}
<a class="iframe pull-right" href="~/Certification/Comment?lcaId=@(Model.ProductLca.ID)&category=LCI_Direct_Material" data-fancybox-type="iframe">@Resource.Comment</a>
<table class="table docs-table" style="display:block ;width: 100%; overflow-x: auto; white-space: nowrap;">
<tr class="docs-word-break certification_table_header">
<th>@Resource.Level</th>
<th>@Resource.PartNumber</th>
<th>@Resource.MaterialName</th>
<th>@Resource.Components</th>
<th>@Resource.MaterialComposition1</th>
<th>@Resource.Length (m)</th>
<th>@Resource.StaticLabelGlobal_MeasureOfArea (m2)</th>
<th>@Resource.Weight</th>
<th>@Resource.StaticLabelGlobal_Unit</th>
<th>@Resource.StaticLabelGlobal_MeasureOfVolume</th>
<th>@Resource.StaticLabelGlobal_Unit</th>
<th>@Resource.StaticLabelGlobal_MeasureOfDensity (kg/m3)</th>
<th>@Resource.UsedQuantity_BOM</th>
<th>@Resource.ActivityIntensity_BOM</th>
<th>@Resource.UsedQuantity</th>
<th>@Resource.ActivityIntensity</th>
<th>@Resource.MaterialSendTarget</th>
<th>@Resource.StaticLabelGlobal_CoefficientValues</th>
<th>@Resource.ParameterSource</th>
<th>@Resource.ParameterUnit</th>
<th>@Resource.ParaDesc</th>
<th>@Resource.MataDataDQI</th>
<th>@Resource.KgCO2ePerUnit</th>
<th>@Resource.ActualKgCO2e</th>
<th>@Resource.Remark</th>
<th>@Resource.MaterialSupplierCompany</th>
<th>@Resource.MaterialSupplierCompanyType</th>
<th>@Resource.SupplierLca</th>
</tr>
@if (Model.ProductLca.Materials.Count(x => x.MaterialType.ToString() == "DirectMaterial") == 0)
{
<tr>
<td class="text-center" colspan="18">@Resource.NoData</td>
</tr>
}
@foreach (var Material in Model.ProductLca.Materials)
{
if (Material.MaterialType.ToString() == "DirectMaterial")
{
<tr>
<td>@Material.Level</td>
<td>@Material.PartNumber</td>
<td>@Material.Name</td>
<td>@Material.Components</td>
<td>@Material.Composite</td>
<td align="right">@Material.Length.ToString("F4")</td>
<td align="right">@Material.Area.ToString("F4")</td>
<td align="right">@Material.Scalar.ToString("F4")</td>
<td>
@if (Material.WeightUnit == "mg")
{@Resource.Weight_mg}
@if (Material.WeightUnit == "g")
{@Resource.Weight_g}
@if (Material.WeightUnit == "kg")
{@Resource.Weight_kg}
@if (Material.WeightUnit == "t")
{@Resource.Weight_t}
</td>
<td align="right">@Material.Volume.ToString("F4")</td>
<td>@Material.VolumeUnit</td>
<td align="right">@(Material.Density != null ? ((decimal)Material.Density).ToString("F4") : "")</td>
<td align="right">@Material.Quantity_BOM.ToString("F4")</td>
<td align="right">@Material.ActivityIntensity_BOM.ToString("F4")</td>
<td align="right">@Material.Quantity.ToString("F4")</td>
<td align="right">@Material.ActivityIntensity.ToString("F4")</td>
<td>
@if (Material.RequestSent != null && Material.RequestSent.ReceiveBy != null)
{<span>@Material.RequestSent.ReceiveBy.Name</span>}
</td>
<td align="right">@Material.ParameterValue.ToString("F10")</td>
<td>
@if (Material.ParameterSource == 1)
{@Resource.PrimaryData}
@if (Material.ParameterSource == 2)
{@Resource.SecondaryData}
@if (Material.ParameterSource == 3)
{@Resource.SpecificFactoryData}
</td>
<td>@Material.Unit</td>
<td>
@if (Material.ParameterID.HasValue && !string.IsNullOrWhiteSpace(Material.ParameterDescription))
{
<a class="iframe" href="~/Certification/Parameter/remark/@Material.ParameterID.Value" data-fancybox-type="iframe">@Resource.StaticLabelGlobal_CheckOut</a>
}
</td>
<td>
<span ng-if="row.DQI == 0">@Resource.MetaDataDQI1</span>
<span ng-if="row.DQI == 1">@Resource.MetaDataDQI2</span>
<span ng-if="row.DQI == 2">@Resource.MetaDataDQI3</span>
</td>
<td align="right">@Material.KgCO2e_BOM.ToString("F3")</td>
<td align="right">@Material.KgCO2e.ToString("F3")</td>
<td>@Material.Description</td>
<td>@Material.SupplierCompanyName</td>
<td>@Material.SupplierCompanyType</td>
<td>
@if (Material.SupplierCompanyName != null && Material.RequestSent != null && Material.RequestSent.RepliedByWhichLCA != null)
{
@Html.ActionLink(Material.SupplierCompanyName, "SupplierLcaDetail", new { supplierLcaId = Material.RequestSent.RepliedByWhichLCA.ID, productLcaId = Model.ProductLca.ID })
}
</td>
</tr>
}
}
</table>
</div>
<div>
<h4 id="indirect-material" class="docs-inline">LCI-@Resource.MaterialIndirectMaterial</h4>
@if (@Model.IndirectMaterial.SheetFillerName != null)
{
var sheetheader = Model.IndirectMaterial;
<div class="sheetheader">
<label class="sheetheader-label">@Resource.StaticLabelFillerName/@Resource.StaticLabelSencondContact: </label>
<span class="sheetheader-text">@sheetheader.SheetFillerName</span>
<label class="sheetheader-label">@(Resource.PhoneNumber): </label>
<span class="sheetheader-text">@sheetheader.Phone</span>
<label class="sheetheader-label">@(Resource.Department): </label>
<span class="sheetheader-text">@sheetheader.Department</span>
</div>
}
<a class="iframe pull-right" href="~/Certification/Comment?lcaId=@(Model.ProductLca.ID)&category=LCI_Indirect_Material" data-fancybox-type="iframe">@Resource.Comment</a>
<table class="table docs-table" style="display:block ;width: 100%; overflow-x: auto; white-space: nowrap;">
<tr class="docs-word-break certification_table_header">
<th>@Resource.Level</th>
<th>@Resource.PartNumber</th>
<th>@Resource.MaterialName</th>
<th>@Resource.Components</th>
<th>@Resource.MaterialComposition1</th>
<th>@Resource.Length (m)</th>
<th>@Resource.StaticLabelGlobal_MeasureOfArea (m2)</th>
<th>@Resource.Weight</th>
<th>@Resource.StaticLabelGlobal_Unit</th>
<th>@Resource.StaticLabelGlobal_MeasureOfVolume</th>
<th>@Resource.StaticLabelGlobal_Unit</th>
<th>@Resource.StaticLabelGlobal_MeasureOfDensity (kg/m3)</th>
<th>@Resource.UsedQuantity_BOM</th>
<th>@Resource.ActivityIntensity_BOM</th>
<th>@Resource.StaticLabelGlobal_CoefficientValues</th>
<th>@Resource.ParameterUnit</th>
<th>@Resource.ParaDesc</th>
<th>@Resource.MataDataDQI</th>
<th>@Resource.KgCO2ePerUnit</th>
<th>@Resource.Remark</th>
<th>@Resource.MaterialSupplierCompany</th>
<th>@Resource.MaterialSupplierCompanyType</th>
</tr>
@if (Model.ProductLca.Materials.Count(x => x.MaterialType.ToString() == "IndirectMaterial") == 0)
{
<tr>
<td class="text-center" colspan="15">@Resource.NoData</td>
</tr>
}
@foreach (var Material in Model.ProductLca.Materials)
{
if (Material.MaterialType.ToString() == "IndirectMaterial")
{
<tr>
<td>@Material.Level</td>
<td>@Material.PartNumber</td>
<td>@Material.Name</td>
<td>@Material.Components</td>
<td>@Material.Composite</td>
<td align="right">@Material.Length.ToString("F4")</td>
<td align="right">@Material.Area.ToString("F4")</td>
<td align="right">@Material.Scalar.ToString("F4")</td>
<td>
@if (Material.WeightUnit == "mg")
{@Resource.Weight_mg}
@if (Material.WeightUnit == "g")
{@Resource.Weight_g}
@if (Material.WeightUnit == "kg")
{@Resource.Weight_kg}
@if (Material.WeightUnit == "t")
{@Resource.Weight_t}
</td>
<td align="right">@Material.Volume.ToString("F4")</td>
<td align="right">@Material.VolumeUnit</td>
<td align="right">@(Material.Density==null ? "" : ((decimal)Material.Density).ToString("F4"))</td>
<td align="right">@Material.Quantity.ToString("F4")</td>
<td align="right">@Material.ActivityIntensity.ToString("F4")</td>
<td align="right">@Material.ParameterValue.ToString("F10")</td>
<td>@Material.Unit</td>
<td>
@if (Material.ParameterID.HasValue && !string.IsNullOrWhiteSpace(Material.ParameterDescription))
{
<a class="iframe" href="~/Certification/Parameter/remark/@Material.ParameterID.Value" data-fancybox-type="iframe">@Resource.StaticLabelGlobal_CheckOut</a>
}
</td>
<td>
<span ng-if="row.DQI == 0">@Resource.MetaDataDQI1</span>
<span ng-if="row.DQI == 1">@Resource.MetaDataDQI2</span>
<span ng-if="row.DQI == 2">@Resource.MetaDataDQI3</span>
</td>
<td align="right">@Material.KgCO2e.ToString("F3")</td>
<td>@Material.Description</td>
<td>@Material.SupplierCompanyName</td>
<td>@Material.SupplierCompanyType</td>
</tr>
}
}
</table>
</div>
<div>
<h4 id="wrap-material" class="docs-inline">LCI-@Resource.MaterialWrapMaterial</h4>
@if (@Model.WrapMaterial.SheetFillerName != null)
{
var sheetheader = Model.WrapMaterial;
<div class="sheetheader">
<label class="sheetheader-label">@Resource.StaticLabelFillerName/@Resource.StaticLabelSencondContact: </label>
<span class="sheetheader-text">@sheetheader.SheetFillerName</span>
<label class="sheetheader-label">@(Resource.PhoneNumber): </label>
<span class="sheetheader-text">@sheetheader.Phone</span>
<label class="sheetheader-label">@(Resource.Department): </label>
<span class="sheetheader-text">@sheetheader.Department</span>
</div>
}
<a class="iframe pull-right" href="~/Certification/Comment?lcaId=@(Model.ProductLca.ID)&category=LCI_Wrap_Material" data-fancybox-type="iframe">@Resource.Comment</a>
<table class="table docs-table" style="display:block ;width: 100%; overflow-x: auto; white-space: nowrap;">
<tr class="docs-word-break certification_table_header">
<th>@Resource.Level</th>
<th>@Resource.PartNumber</th>
<th>@Resource.MaterialName</th>
<th>@Resource.Components</th>
<th>@Resource.MaterialComposition1</th>
<th>@Resource.Length (m)</th>
<th>@Resource.StaticLabelGlobal_MeasureOfArea (m2)</th>
<th>@Resource.Weight</th>
<th>@Resource.StaticLabelGlobal_Unit</th>
<th>@Resource.StaticLabelGlobal_MeasureOfVolume</th>
<th>@Resource.StaticLabelGlobal_Unit</th>
<th>@Resource.StaticLabelGlobal_MeasureOfDensity (kg/m3)</th>
<th>@Resource.UsedQuantity_BOM</th>
<th>@Resource.ActivityIntensity_BOM</th>
<th>@Resource.StaticLabelGlobal_CoefficientValues</th>
<th>@Resource.ParameterUnit</th>
<th>@Resource.ParaDesc</th>
<th>@Resource.MataDataDQI</th>
<th>@Resource.KgCO2ePerUnit</th>
<th>@Resource.Remark</th>
<th>@Resource.MaterialSupplierCompany</th>
<th>@Resource.MaterialSupplierCompanyType</th>
</tr>
@if (Model.ProductLca.Materials.Count(x => x.MaterialType.ToString() == "WrapMaterial") == 0)
{
<tr>
<td class="text-center" colspan="17">@Resource.NoData</td>
</tr>
}
@foreach (var Material in Model.ProductLca.Materials)
{
if (Material.MaterialType.ToString() == "WrapMaterial")
{
<tr>
<td>@Material.Level</td>
<td>@Material.PartNumber</td>
<td>@Material.Name</td>
<td>@Material.Components</td>
<td>@Material.Composite</td>
<td align="right">@Material.Length.ToString("F4")</td>
<td align="right">@Material.Area.ToString("F4")</td>
<td align="right">@Material.Scalar.ToString("F4")</td>
<td>
@if (Material.WeightUnit == "mg")
{@Resource.Weight_mg}
@if (Material.WeightUnit == "g")
{@Resource.Weight_g}
@if (Material.WeightUnit == "kg")
{@Resource.Weight_kg}
@if (Material.WeightUnit == "t")
{@Resource.Weight_t}
</td>
<td align="right">@Material.Volume.ToString("F4")</td>
<td align="right">@Material.VolumeUnit</td>
<td align="right">@(Material.Density==null ? "" : ((decimal)Material.Density).ToString("F4"))</td>
<td align="right">@Material.Quantity.ToString("F4")</td>
<td align="right">@Material.ActivityIntensity.ToString("F4")</td>
<td align="right">@Material.ParameterValue.ToString("F10")</td>
<td>@Material.Unit</td>
<td>
@if (Material.ParameterID.HasValue && !string.IsNullOrWhiteSpace(Material.ParameterDescription))
{
<a class="iframe" href="~/Certification/Parameter/remark/@Material.ParameterID.Value" data-fancybox-type="iframe">@Resource.StaticLabelGlobal_CheckOut</a>
}
</td>
<td>
<span ng-if="row.DQI == 0">@Resource.MetaDataDQI1</span>
<span ng-if="row.DQI == 1">@Resource.MetaDataDQI2</span>
<span ng-if="row.DQI == 2">@Resource.MetaDataDQI3</span>
</td>
<td align="right">@Material.KgCO2e.ToString("F3")</td>
<td>@Material.Description</td>
<td>@Material.SupplierCompanyName</td>
<td>@Material.SupplierCompanyType</td>
</tr>
}
}
</table>
</div>
<div>
<h4 id="total-workhour" class="docs-inline">@Resource.TotalWorkHours - @Resource.DirectStaff</h4>
@if (@Model.WorkHourHeader.SheetFillerName != null)
{
var sheetheader = Model.WorkHourHeader;
<div class="sheetheader">
<label class="sheetheader-label">@Resource.StaticLabelFillerName/@Resource.StaticLabelSencondContact: </label>
<span class="sheetheader-text">@sheetheader.SheetFillerName</span>
<label class="sheetheader-label">@(Resource.PhoneNumber): </label>
<span class="sheetheader-text">@sheetheader.Phone</span>
<label class="sheetheader-label">@(Resource.Department): </label>
<span class="sheetheader-text">@sheetheader.Department</span>
</div>
}
<a class="iframe pull-right" href="~/Certification/Comment?lcaId=@(Model.ProductLca.ID)&category=WorkHour" data-fancybox-type="iframe">@Resource.Comment</a>
<table class="table docs-table">
<tr class="certification_table_header">
<th>@Resource.StaticLabelGlobal_Month</th>
<th>@Resource.WorkerNumber</th>
<th>@Resource.WorkDays</th>
<th>@Resource.AverageHourPerDay</th>
<th>@(Resource.ProportionOfWorkingHours)(%)</th>
<th>@(Resource.TotalWorkHours)(Hours)</th>
</tr>
@foreach (var workHour in Model.ProductLca.WorkHourSheet)
{
if (workHour.Type.ToString() == "Direct")
{
<tr align="right">
<td>@workHour.MonthLabel()</td>
<td>@workHour.WorkerNumber.ToString("F0")</td>
<td>@workHour.WorkDay.ToString("F4")</td>
<td>@workHour.AverageHourPerDay.ToString("F4")</td>
<td>@((workHour.AverageHourPerDay / 8).ToString("F4"))</td>
<td>@((workHour.WorkerNumber * workHour.WorkDay * workHour.AverageHourPerDay).ToString("F4"))</td>
</tr>
}
}
<tr align="right">
<td>@Resource.Total</td>
<td>@Model.ProductLca.WorkHourSheet.ToList().GetTotalDirectWorkerNumber().ToString("F0")</td>
<td>@Model.ProductLca.WorkHourSheet.ToList().GetTotalDirectWorkDay().ToString("F4")</td>
<td>@Model.ProductLca.WorkHourSheet.ToList().GetTotalDirectAverageHourPerDay().ToString("F4")</td>
<td>@Model.ProductLca.WorkHourSheet.ToList().GetTotalDirectProportionWorkHour().ToString("F4")</td>
<td>@Model.ProductLca.WorkHourSheet.ToList().GetTotalDirectWorkHours().ToString("F4")</td>
</tr>
</table>
<h4 class="docs-inline">@Resource.TotalWorkHours - @Resource.IndirectStaff</h4>
<table class="table docs-table">
<tr class="certification_table_header">
<th>@Resource.StaticLabelGlobal_Month</th>
<th>@Resource.WorkerNumber</th>
<th>@Resource.WorkDays</th>
<th>@Resource.AverageHourPerDay</th>
<th>@(Resource.ProportionOfWorkingHours)(%)</th>
<th>@(Resource.TotalWorkHours)(Hours)</th>
</tr>
@foreach (var workHour in Model.ProductLca.WorkHourSheet)
{
if (workHour.Type.ToString() == "Indirect")
{
<tr align="right">
<td>@workHour.MonthLabel()</td>
<td>@workHour.WorkerNumber.ToString("F0")</td>
<td>@workHour.WorkDay.ToString("F4")</td>
<td>@workHour.AverageHourPerDay.ToString("F4")</td>
<td>@((workHour.AverageHourPerDay / 8).ToString("F4"))</td>
<td>@((workHour.WorkerNumber * workHour.WorkDay * workHour.AverageHourPerDay).ToString("F4"))</td>
</tr>
}
}
<tr>
<td align="right">@Resource.Total</td>
<td>@Model.ProductLca.WorkHourSheet.ToList().GetTotalIndirectWorkerNumber().ToString("F0")</td>
<td>@Model.ProductLca.WorkHourSheet.ToList().GetTotalIndirectWorkDay().ToString("F4")</td>
<td>@Model.ProductLca.WorkHourSheet.ToList().GetTotalIndirectAverageHourPerDay().ToString("F4")</td>
<td>@Model.ProductLca.WorkHourSheet.ToList().GetTotalIndirectProportionWorkHour().ToString("F4")</td>
<td>@Model.ProductLca.WorkHourSheet.ToList().GetTotalIndirectWorkHours().ToString("F4")</td>
</tr>
</table>
</div>
<div>
<h4 id="power-usage" class="docs-inline">@Resource.PowerUsage</h4>
@if (@Model.PowerHeader.SheetFillerName != null)
{
var sheetheader = Model.PowerHeader;
<div class="sheetheader">
<label class="sheetheader-label">@Resource.StaticLabelFillerName/@Resource.StaticLabelSencondContact: </label>
<span class="sheetheader-text">@sheetheader.SheetFillerName</span>
<label class="sheetheader-label">@(Resource.PhoneNumber): </label>
<span class="sheetheader-text">@sheetheader.Phone</span>
<label class="sheetheader-label">@(Resource.Department): </label>
<span class="sheetheader-text">@sheetheader.Department</span>
</div>
}
<a class="iframe pull-right" href="~/Certification/Comment?lcaId=@(Model.ProductLca.ID)&category=PowerUsage" data-fancybox-type="iframe">@Resource.Comment</a>
<table class="table docs-table">
<tr class="certification_table_header">
<th>@Resource.StaticLabelGlobal_Month</th>
<th>@Resource.Peak</th>
<th>@Resource.HalfPeak</th>
<th>@Resource.SaturdayHalfPeak</th>
<th>@Resource.OffPeak</th>
<th>@Resource.TotalPowerUsage</th>
<th>@Resource.StaticLabelGlobal_Years</th>
<th>@Resource.StaticLabelEvidenceOfElectronicFile</th>
</tr>
@foreach (var powerUsage in Model.ProductLca.PowerUsageSheet)
{
<tr>
<td align="right">@powerUsage.MonthLabel()</td>
<td align="right">@(powerUsage.Peak.HasValue ? powerUsage.Peak.Value.ToString("F4") : null)</td>
<td align="right">@(powerUsage.HalfPeak.HasValue ? powerUsage.HalfPeak.Value.ToString("F4") : null)</td>
<td align="right">@(powerUsage.SaturdayHalfPeak.HasValue ? powerUsage.SaturdayHalfPeak.Value.ToString("F4") : null)</td>
<td align="right">@(powerUsage.OffPeak.HasValue ? powerUsage.OffPeak.Value.ToString("F4") : null)</td>
<td align="right">@((powerUsage.Peak.Value + powerUsage.HalfPeak.Value + powerUsage.SaturdayHalfPeak.Value + powerUsage.OffPeak.Value).ToString("F4"))</td>
<td align="right">@powerUsage.Year</td>
<td>
@if (!string.IsNullOrEmpty(powerUsage.ReferenceFileLink))
{<a href="@powerUsage.ReferenceFileLink">@Resource.StaticLabelDownload</a>}
</td>
</tr>
}
<tr align="right">
<td>@Resource.Total</td>
<td>@Model.ProductLca.PowerUsageSheet.ToList().GetTotalPowerPeak().ToString("F4")</td>
<td>@Model.ProductLca.PowerUsageSheet.ToList().GetTotalPowerHalfPeak().ToString("F4")</td>
<td>@Model.ProductLca.PowerUsageSheet.ToList().GetTotalPowerSaturdayHalfPeak().ToString("F4")</td>
<td>@Model.ProductLca.PowerUsageSheet.ToList().GetTotalPowerOffPeak().ToString("F4")</td>
<td>@Model.ProductLca.PowerUsageSheet.ToList().GetTotalPowerUsage().ToString("F4")</td>
<td></td>
<td></td>
</tr>
</table>
</div>
<div>
<h4 id="water-usage" class="docs-inline">@Resource.WaterUsage</h4>
@if (@Model.WaterHeader.SheetFillerName != null)
{
var sheetheader = Model.WaterHeader;
<div class="sheetheader">
<label class="sheetheader-label">@Resource.StaticLabelFillerName/@Resource.StaticLabelSencondContact: </label>
<span class="sheetheader-text">@sheetheader.SheetFillerName</span>
<label class="sheetheader-label">@(Resource.PhoneNumber): </label>
<span class="sheetheader-text">@sheetheader.Phone</span>
<label class="sheetheader-label">@(Resource.Department): </label>
<span class="sheetheader-text">@sheetheader.Department</span>
</div>
}
<a class="iframe pull-right" href="~/Certification/Comment?lcaId=@(Model.ProductLca.ID)&category=WaterUsage" data-fancybox-type="iframe">@Resource.Comment</a>
<table class="table docs-table">
<tr class="certification_table_header">
<th>@Resource.StaticLabelGlobal_Month</th>
<th>@Resource.WaterUsage</th>
<th>@Resource.StaticLabelGlobal_Years</th>
<th>@Resource.StaticLabelEvidenceOfElectronicFile</th>
</tr>
@foreach (var waterUsage in Model.ProductLca.WaterUsageSheet)
{
<tr>
<td align="right">@waterUsage.MonthLabel()</td>
<td align="right">@waterUsage.Scalar.ToString("F4")</td>
<td align="right">@waterUsage.Year</td>
<td>
@if (!string.IsNullOrEmpty(waterUsage.ReferenceFileLink))
{<a href="@waterUsage.ReferenceFileLink">@Resource.StaticLabelDownload</a>}
</td>
</tr>
}
<tr align="right">
<td>@Resource.Total</td>
<td>@Model.ProductLca.WaterUsageSheet.ToList().GetTotalWaterUsage().ToString("F4")</td>
<td></td>
<td></td>
</tr>
</table>
</div>
<div>
<h4 id="waste-water" class="docs-inline">@Resource.WasteWaterCategory</h4>
@if (@Model.WasteWaterHeader.SheetFillerName != null)
{
var sheetheader = Model.WasteWaterHeader;
<div class="sheetheader">
<label class="sheetheader-label">@Resource.StaticLabelFillerName/@Resource.StaticLabelSencondContact: </label>
<span class="sheetheader-text">@sheetheader.SheetFillerName</span>
<label class="sheetheader-label">@(Resource.PhoneNumber): </label>
<span class="sheetheader-text">@sheetheader.Phone</span>
<label class="sheetheader-label">@(Resource.Department): </label>
<span class="sheetheader-text">@sheetheader.Department</span>
</div>
}
<a class="iframe pull-right" href="~/Certification/Comment?lcaId=@(Model.ProductLca.ID)&category=Waste_Water" data-fancybox-type="iframe">@Resource.Comment</a>
<table class="table docs-table">
<tr class="certification_table_header">
<th>@Resource.PollutionCategory</th>
<th>@Resource.ProcessingPatterns</th>
<th>@Resource.WaterQuality BOD</th>
<th>@Resource.WaterQuality COD</th>
<th>@(Resource.AmountOfWasteWater)(CMD)</th>
<th>KgBOD/KgCOD</th>
<th>DQI</th>
@*<th>DQI@(Resource.Explanation)</th>*@
<th>@Resource.Notes</th>
<th>KgCO2e</th>
<th>@Resource.SimaproParametersRemark</th>
</tr>
@if (Model.ProductLca.WasteSheet.Count(x => x.Type.ToString() == "water") == 0)
{
<tr>
<td class="text-center" colspan="11">@Resource.NoData</td>
</tr>
}
@foreach (var waste in Model.ProductLca.WasteSheet)
{
if (waste.Type.ToString() == "water")
{
<tr>
<td>
@(waste.Parameter != null && waste.Parameter.Type != null ? ViewHelper.GetEntityCategory(waste.Parameter.Type.DisplayName) : "")
</td>
<td>
@(waste.Parameter != null && waste.Parameter.Type != null ? ViewHelper.GetProcessOrType(waste.Parameter.Type.DisplayName) : "")
</td>
<td align="right">@(waste.WaterBOD.HasValue ? waste.WaterBOD.Value.ToString("F4") : null)</td>
<td align="right">@(waste.WaterCOD.HasValue ? waste.WaterCOD.Value.ToString("F4") : null)</td>
<td align="right">@(waste.WaterCMD.HasValue ? waste.WaterCMD.Value.ToString("F4") : null)</td>
<td align="right">@waste.Scalar.ToString("F4")</td>
<td>@waste.DQI</td>
@*<td>@waste.DQIDescription</td>*@
<td>@waste.Description</td>
<td align="right">@waste.KgCO2e.ToString("F4")</td>
<td>
@if (waste.ParameterID.HasValue)
{
<a class="iframe" href="~/Certification/Parameter/nonYearly/@waste.ParameterID.Value" data-fancybox-type="iframe">@Resource.StaticLabelGlobal_CheckOut</a>
}
</td>
</tr>
}
}
</table>
</div>
<div>
<h4 id="waste-other" class="docs-inline">@Resource.WasteCategory</h4>
<a class="iframe pull-right" href="~/Certification/Comment?lcaId=@(Model.ProductLca.ID)&category=Waste_Other" data-fancybox-type="iframe">@Resource.Comment</a>
<table class="table docs-table">
<tr class="certification_table_header">
<th>@Resource.WasteCategory</th>
<th>@Resource.ProcessingPatterns</th>
<th>@(Resource.WasteWeight)</th>
<th>DQI</th>
@*<th>DQI@(Resource.Explanation)</th>*@
<th>@Resource.Notes</th>
<th>KgCO2e</th>
<th>@Resource.SimaproParametersRemark</th>
</tr>
@if (Model.ProductLca.WasteSheet.Count(x => x.Type.ToString() == "other") == 0)
{
<tr>
<td class="text-center" colspan="8">@Resource.NoData</td>
</tr>
}
@foreach (var waste in Model.ProductLca.WasteSheet)
{
if (waste.Type.ToString() == "other")
{
<tr>
<td>
@(waste.Parameter != null && waste.Parameter.Type != null ? ViewHelper.GetEntityCategory(waste.Parameter.Type.DisplayName) : "")
</td>
<td>
@(waste.Parameter != null && waste.Parameter.Type != null ? ViewHelper.GetProcessOrType(waste.Parameter.Type.DisplayName) : "")
</td>
<td align="right">@waste.Scalar.ToString("F4")</td>
<td>@waste.DQI</td>
@*<td>@waste.DQIDescription</td>*@
<td>@waste.Description</td>
<td align="right">@waste.KgCO2e.ToString("F4")</td>
<td>
@if (waste.ParameterID.HasValue)
{
<a class="iframe" href="~/Certification/Parameter/nonYearly/@waste.ParameterID.Value" data-fancybox-type="iframe">@Resource.StaticLabelGlobal_CheckOut</a>
}
</td>
</tr>
}
}
</table>
</div>
<div>
<h4 id="transport" class="docs-inline">@Resource.Transport</h4>
@if (@Model.TransportHeader.SheetFillerName != null)
{
var sheetheader = Model.TransportHeader;
<div class="sheetheader">
<label class="sheetheader-label">@Resource.StaticLabelFillerName/@Resource.StaticLabelSencondContact: </label>
<span class="sheetheader-text">@sheetheader.SheetFillerName</span>
<label class="sheetheader-label">@(Resource.PhoneNumber): </label>
<span class="sheetheader-text">@sheetheader.Phone</span>
<label class="sheetheader-label">@(Resource.Department): </label>
<span class="sheetheader-text">@sheetheader.Department</span>
</div>
}
<a class="iframe pull-right" href="~/Certification/Comment?lcaId=@(Model.ProductLca.ID)&category=Transport" data-fancybox-type="iframe">@Resource.Comment</a>
<table class="table docs-table">
<tr class="certification_table_header">
<th>@Resource.Type</th>
<th>@Resource.TransportDate</th>
<th>@Resource.JourneyNO</th>
<th>@Resource.ModeOfTransport</th>
<th>@Resource.StartLocation</th>
<th>@Resource.EndLocation</th>
<th align="right">@(Resource.TransportDistance)(KM)</th>
<th>@Resource.TransportTypes</th>
<th align="right">@(Resource.SubjectProductNumber)(PCS)</th>
<th align="right">@(Resource.SubjectProductWeight)@(Resource.IncludeWrapMaterial)</th>
<th>DQI</th>
<th align="right">Ton * Km</th>
<th align="right">KgCO2e</th>
<th>@Resource.SimaproParametersRemark</th>
</tr>
@if (Model.ProductLca.TransportSheet.Count() == 0)
{
<tr>
<td class="text-center" colspan="13">@Resource.NoData</td>
</tr>
}
@foreach (var transport in Model.ProductLca.TransportSheet)
{
<tr>
<td>
@(transport.TransportType == 0 ? Resource.UpstreamTransport : Resource.DownstreamTransport)
</td>
<td>
@(transport.TransportDate != null ? transport.TransportDate.ToLongDateString() : "")
</td>
<td>@transport.JourneyNO</td>
<td>
@(transport.NonYearlyParameter != null && transport.NonYearlyParameter.Type != null ? ViewHelper.GetEntityCategory(transport.NonYearlyParameter.Type.DisplayName) : "")
</td>
<td>@transport.StartLocation</td>
<td>@transport.EndLocation</td>
<td align="right">@transport.TransportDistance.ToString("F4")</td>
<td>
@(transport.NonYearlyParameter != null && transport.NonYearlyParameter.Type != null ? ViewHelper.GetProcessOrType(transport.NonYearlyParameter.Type.DisplayName) : "")
</td>
<td align="right">@transport.TransportQuantity.ToString("F4")</td>
<td align="right">@transport.TransportWeight.ToString("F4")</td>
<td>@transport.DQI</td>
<td align="right">@((transport.TransportWeight * transport.TransportDistance / 1000).ToString("F4"))</td>
<td align="right">@transport.KgCO2e.ToString("F4")</td>
<td>
@if (transport.ParameterID.HasValue)
{
<a class="iframe" href="~/Certification/Parameter/nonYearly/@transport.ParameterID.Value" data-fancybox-type="iframe">@Resource.StaticLabelGlobal_CheckOut</a>
}
</td>
</tr>
}
</table>
</div>
<div>
<h4 id="waste-transport" class="docs-inline">@Resource.WasteTransportation</h4>
@if (@Model.WasteTransportHeader.SheetFillerName != null)
{
var sheetheader = Model.WasteTransportHeader;
<div class="sheetheader">
<label class="sheetheader-label">@Resource.StaticLabelFillerName/@Resource.StaticLabelSencondContact: </label>
<span class="sheetheader-text">@sheetheader.SheetFillerName</span>
<label class="sheetheader-label">@(Resource.PhoneNumber): </label>
<span class="sheetheader-text">@sheetheader.Phone</span>
<label class="sheetheader-label">@(Resource.Department): </label>
<span class="sheetheader-text">@sheetheader.Department</span>
</div>
}
<a class="iframe pull-right" href="~/Certification/Comment?lcaId=@(Model.ProductLca.ID)&category=WasteTransport" data-fancybox-type="iframe">@Resource.Comment</a>
<table class="table docs-table">
<tr class="certification_table_header">
<th>@Resource.JourneyNO</th>
@*<th>@Resource.ModeOfTransport</th>*@
<th>@Resource.StartLocation</th>
<th>@Resource.EndLocation</th>
<th>@(Resource.TransportDistance)(KM)</th>
@*<th>@Resource.TransportTypes</th>*@
<th>@Resource.WasteName</th>
<th>@(Resource.WasteWeight)</th>
<th>DQI</th>
<th>Ton * Km</th>
<th>KgCO2e</th>
<th>@(Resource.SimaproParametersRemark)</th>
</tr>
@if (Model.ProductLca.WasteTransportSheet.Count() == 0)
{
<tr>
<td class="text-center" colspan="12">@Resource.NoData</td>
</tr>
}
@foreach (var wasteTransport in Model.ProductLca.WasteTransportSheet)
{
<tr>
<td>@wasteTransport.JourneyNO</td>
@*<td>
@(wasteTransport.Parameter != null && wasteTransport.Parameter.Type != null ? ViewHelper.GetEntityCategory(wasteTransport.Parameter.Type.DisplayName) : "")
</td>*@
<td>@wasteTransport.StartLocation</td>
<td>@wasteTransport.EndLocation</td>
<td>@wasteTransport.TransportDistance.ToString("F4")</td>
@*<td>
@(wasteTransport.Parameter != null && wasteTransport.Parameter.Type != null ? ViewHelper.GetProcessOrType(wasteTransport.Parameter.Type.DisplayName) : "")
</td>*@
<td>@wasteTransport.WasteName</td>
<td align="right">@wasteTransport.TransportWeight.ToString("F4")</td>
<td>@wasteTransport.DQI</td>
<td align="right">@((wasteTransport.TransportWeight * wasteTransport.TransportDistance / 1000).ToString("F4"))</td>
<td align="right">@wasteTransport.KgCO2e.ToString("F4")</td>
<td>
@if (wasteTransport.ParameterID.HasValue)
{
<a class="iframe" href="~/Certification/Parameter/nonYearly/@wasteTransport.ParameterID.Value" data-fancybox-type="iframe">@Resource.StaticLabelGlobal_CheckOut</a>
}
</td>
</tr>
}
</table>
</div>
<div>
<h4 id="vehicle" class="docs-inline">@Resource.ParamemterCategoriesVehicle</h4>
@if (@Model.VehicleHeader.SheetFillerName != null)
{
var sheetheader = Model.VehicleHeader;
<div class="sheetheader">
<label class="sheetheader-label">@Resource.StaticLabelFillerName/@Resource.StaticLabelSencondContact: </label>
<span class="sheetheader-text">@sheetheader.SheetFillerName</span>
<label class="sheetheader-label">@(Resource.PhoneNumber): </label>
<span class="sheetheader-text">@sheetheader.Phone</span>
<label class="sheetheader-label">@(Resource.Department): </label>
<span class="sheetheader-text">@sheetheader.Department</span>
</div>
}
<a class="iframe pull-right" href="~/Certification/Comment?lcaId=@(Model.ProductLca.ID)&category=Vehicle" data-fancybox-type="iframe">@Resource.Comment</a>
<table class="table docs-table">
<tr class="certification_table_header">
<th>@Resource.VehicleVehicleType</th>
<th>@Resource.FactoryAndProcessItems</th>
<th>@Resource.ResponsibleUnit</th>
<th>@Resource.OfficialDepotVehicleModel</th>
<th>@Resource.CarPlateNo</th>
<th>@Resource.Area</th>
<th>@Resource.FuelType</th>
<th>@Resource.StaticLabelGlobal_Years</th>
<th>@Resource.FuelConsumptionDuringInterrogation</th>
<th>@Resource.RefuelingRecord</th>
<th>@Resource.OfficialVehiclePhoto</th>
<th>KgCO2e</th>
<th>@Resource.SimaproParametersRemark</th>
</tr>
@if (Model.ProductLca.VehicleSheet.Count() == 0)
{
<tr>
<td class="text-center" colspan="13">@Resource.NoData</td>
</tr>
}
@foreach (var vehicle in Model.ProductLca.VehicleSheet)
{
<tr>
<td>@vehicle.Type.ToString()</td>
<td>@vehicle.ProcessName</td>
<td>@vehicle.ResponsibleUnit</td>
<td>@vehicle.Name</td>
<td>@vehicle.CarPlateNo</td>
<td>
@(vehicle.Parameter != null && vehicle.Parameter.Area != null ? vehicle.Parameter.Area.DisplayName : "")
</td>
<td>
@(vehicle.Parameter != null && vehicle.Parameter.Type != null ? ViewHelper.GetEntityCategory(vehicle.Parameter.Type.DisplayName) : "")
</td>
<td>@(vehicle.Parameter != null ? vehicle.Parameter.Year.ToString() : "")</td>
<td align="right">@vehicle.Scalar.ToString("F4")</td>
<td>
@if (!string.IsNullOrEmpty(vehicle.ReferenceFileUrl))
{<a href="@vehicle.ReferenceFileUrl">@Resource.StaticLabelDownload</a>}
</td>
<td>
@if (!string.IsNullOrEmpty(vehicle.ReferencePhotoUrl))
{<a href="@vehicle.ReferencePhotoUrl">@Resource.StaticLabelDownload</a>}
</td>
<td align="right">@vehicle.KgCO2e.ToString("F4")</td>
<td>
<a class="iframe" href="~/Certification/Parameter/yearly/@vehicle.ParameterID" data-fancybox-type="iframe">@Resource.StaticLabelGlobal_CheckOut</a>
</td>
</tr>
}
</table>
</div>
<div>
<h4 id="gasoline" class="docs-inline">@Resource.DieselEquipment</h4>
@if (@Model.GasolineHeader.SheetFillerName != null)
{
var sheetheader = Model.GasolineHeader;
<div class="sheetheader">
<label class="sheetheader-label">@Resource.StaticLabelFillerName/@Resource.StaticLabelSencondContact: </label>
<span class="sheetheader-text">@sheetheader.SheetFillerName</span>
<label class="sheetheader-label">@(Resource.PhoneNumber): </label>
<span class="sheetheader-text">@sheetheader.Phone</span>
<label class="sheetheader-label">@(Resource.Department): </label>
<span class="sheetheader-text">@sheetheader.Department</span>
</div>
}
<a class="iframe pull-right" href="~/Certification/Comment?lcaId=@(Model.ProductLca.ID)&category=GasolineEquipment" data-fancybox-type="iframe">@Resource.Comment</a>
<table class="table docs-table">
<tr class="certification_table_header">
<th>@Resource.FactoryAndProcessItems</th>
<th>@Resource.ResponsibleUnit</th>
<th>@Resource.OilEquipment</th>
<th>@Resource.Area</th>
<th>@Resource.FuelType</th>
<th>@Resource.StaticLabelGlobal_Years</th>
<th>@Resource.FuelConsumptionDuringInterrogation</th>
<th>@Resource.SupportDocumentOfUsageAmount</th>
<th>@Resource.EquipmentAndPhoto</th>
<th>KgCO2e</th>
<th>@Resource.SimaproParametersRemark</th>
</tr>
@if (Model.ProductLca.GasolineEquipmentSheet.Count() == 0)
{
<tr>
<td class="text-center" colspan="11">@Resource.NoData</td>
</tr>
}
@foreach (var gasolineEquipment in Model.ProductLca.GasolineEquipmentSheet)
{
<tr>
<td>@gasolineEquipment.ProcessName</td>
<td>@gasolineEquipment.ResponsibleUnit</td>
<td>@gasolineEquipment.Name</td>
<td>
@(gasolineEquipment.Parameter != null ? gasolineEquipment.Parameter.Area.DisplayName : "")
</td>
<td>
@(gasolineEquipment.Parameter != null ? ViewHelper.GetEntityCategory(gasolineEquipment.Parameter.Type.DisplayName) : "")
</td>
<td align="right">
@(gasolineEquipment.Parameter != null ? gasolineEquipment.Parameter.Year.ToString() : "")
</td>
<td align="right">@gasolineEquipment.Scalar.ToString("F4")</td>
<td>
@if (!string.IsNullOrEmpty(gasolineEquipment.ReferenceFileUrl))
{<a href="@gasolineEquipment.ReferenceFileUrl">@Resource.StaticLabelDownload</a>}
</td>
<td>
@if (!string.IsNullOrEmpty(gasolineEquipment.ReferencePhotoUrl))
{<a href="@gasolineEquipment.ReferencePhotoUrl">@Resource.StaticLabelDownload</a>}
</td>
<td align="right">@gasolineEquipment.KgCO2e.ToString("F4")</td>
<td>
@if (gasolineEquipment.ParameterID.HasValue)
{
<a class="iframe" href="~/Certification/Parameter/yearly/@gasolineEquipment.ParameterID.Value" data-fancybox-type="iframe">@Resource.StaticLabelGlobal_CheckOut</a>
}
</td>
</tr>
}
</table>
</div>
<div>
<h4 id="kitchen-owned" class="docs-inline">@(Resource.Kitchen)(@Resource.CompanyHas)</h4>
@if (@Model.KitchenHeader.SheetFillerName != null)
{
var sheetheader = Model.KitchenHeader;
<div class="sheetheader">
<label class="sheetheader-label">@Resource.StaticLabelFillerName/@Resource.StaticLabelSencondContact: </label>
<span class="sheetheader-text">@sheetheader.SheetFillerName</span>
<label class="sheetheader-label">@(Resource.PhoneNumber): </label>
<span class="sheetheader-text">@sheetheader.Phone</span>
<label class="sheetheader-label">@(Resource.Department): </label>
<span class="sheetheader-text">@sheetheader.Department</span>
</div>
}
<a class="iframe pull-right" href="~/Certification/Comment?lcaId=@(Model.ProductLca.ID)&category=Kitchen_Company" data-fancybox-type="iframe">@Resource.Comment</a>
<table class="table docs-table">
<tr class="certification_table_header">
<th>@Resource.FactoryAndProcessItems</th>
<th>@Resource.ResponsibleUnit</th>
<th>@Resource.DeviceName</th>
<th>@Resource.Area</th>
<th>@Resource.FuelType</th>
<th>@Resource.StaticLabelGlobal_Years</th>
<th>@Resource.FuelConsumptionDuringInterrogation</th>
<th>@Resource.SupportDocumentOfUsageAmount</th>
<th>@Resource.EquipmentAndPhoto</th>
<th>KgCO2e</th>
<th>@Resource.SimaproParametersRemark</th>
</tr>
@if (Model.ProductLca.KitchenSheet.Count(x => x.Type.ToString() == "owned") == 0)
{
<tr>
<td class="text-center" colspan="11">@Resource.NoData</td>
</tr>
}
@foreach (var kitchen in Model.ProductLca.KitchenSheet)
{
if (kitchen.Type.ToString() == "owned")
{
<tr>
<td>@kitchen.ProcessName</td>
<td>@kitchen.ResponsibleUnit</td>
<td>@kitchen.Name</td>
<td>
@(kitchen.Parameter != null ? kitchen.Parameter.Area.DisplayName : "")
</td>
<td>
@(kitchen.Parameter != null ? ViewHelper.GetEntityCategory(kitchen.Parameter.Type.DisplayName) : "")
</td>
<td align="right">
@(kitchen.Parameter != null ? kitchen.Parameter.Year.ToString() : "")
</td>
<td align="right">@kitchen.Scalar.ToString("F4")</td>
<td>
@if (!string.IsNullOrEmpty(kitchen.ReferenceFileUrl))
{<a href="@kitchen.ReferenceFileUrl">@Resource.StaticLabelDownload</a>}
</td>
<td>
@if (!string.IsNullOrEmpty(kitchen.ReferencePhotoUrl))
{<a href="@kitchen.ReferencePhotoUrl">@Resource.StaticLabelDownload</a>}
</td>
<td align="right">@kitchen.KgCO2e.ToString("F4")</td>
<td>
@if (kitchen.ParameterID.HasValue)
{
<a class="iframe" href="~/Certification/Parameter/yearly/@kitchen.ParameterID.Value" data-fancybox-type="iframe">@Resource.StaticLabelGlobal_CheckOut</a>
}
</td>
</tr>
}
}
</table>
</div>
<div>
<h4 id="kitchen-outsourcing" class="docs-inline">@(Resource.Kitchen)(@Resource.Outsourcing)</h4>
<a class="iframe pull-right" href="~/Certification/Comment?lcaId=@(Model.ProductLca.ID)&category=Kitchen_Outsourcing" data-fancybox-type="iframe">@Resource.Comment</a>
<table class="table docs-table">
<tr class="certification_table_header">
<th>@Resource.FactoryAndProcessItems</th>
<th>@Resource.ResponsibleUnit</th>
<th>@Resource.DeviceName</th>
<th>@Resource.Area</th>
<th>@Resource.FuelType</th>
<th>@Resource.StaticLabelGlobal_Years</th>
<th>@Resource.FuelConsumptionDuringInterrogation</th>
<th>@Resource.SupportDocumentOfUsageAmount</th>
<th>@Resource.EquipmentAndPhoto</th>
<th>KgCO2e</th>
<th>@Resource.SimaproParametersRemark</th>
</tr>
@if (Model.ProductLca.KitchenSheet.Count(x => x.Type.ToString() == "outsourcing") == 0)
{
<tr>
<td class="text-center" colspan="11">@Resource.NoData</td>
</tr>
}
@foreach (var kitchen in Model.ProductLca.KitchenSheet)
{
if (kitchen.Type.ToString() == "outsourcing")
{
<tr>
<td>@kitchen.ProcessName</td>
<td>@kitchen.ResponsibleUnit</td>
<td>@kitchen.Name</td>
<td>
@(kitchen.Parameter != null ? kitchen.Parameter.Area.DisplayName : "")
</td>
<td>
@(kitchen.Parameter != null ? ViewHelper.GetEntityCategory(kitchen.Parameter.Type.DisplayName) : "")
</td>
<td align="right">
@(kitchen.Parameter != null ? kitchen.Parameter.Year.ToString() : "")
</td>
<td align="right">@kitchen.Scalar.ToString("F4")</td>
<td>
@if (!string.IsNullOrEmpty(kitchen.ReferenceFileUrl))
{<a href="@kitchen.ReferenceFileUrl">@Resource.StaticLabelDownload</a>}
</td>
<td>
@if (!string.IsNullOrEmpty(kitchen.ReferencePhotoUrl))
{<a href="@kitchen.ReferencePhotoUrl">@Resource.StaticLabelDownload</a>}
</td>
<td align="right">@kitchen.KgCO2e.ToString("F4")</td>
<td>
@if (kitchen.ParameterID.HasValue)
{
<a class="iframe" href="~/Certification/Parameter/yearly/@kitchen.ParameterID.Value" data-fancybox-type="iframe">@Resource.StaticLabelGlobal_CheckOut</a>
}
</td>
</tr>
}
}
</table>
</div>
<div>
<h4 id="kitchen-other" class="docs-inline">@(Resource.Kitchen)(@Resource.Other)</h4>
<a class="iframe pull-right" href="~/Certification/Comment?lcaId=@(Model.ProductLca.ID)&category=Kitchen_Other" data-fancybox-type="iframe">@Resource.Comment</a>
<table class="table docs-table">
<tr class="certification_table_header">
<th>@Resource.FactoryAndProcessItems</th>
<th>@Resource.ResponsibleUnit</th>
<th>@Resource.DeviceName</th>
<th>@Resource.Area</th>
<th>@Resource.FuelType</th>
<th>@Resource.StaticLabelGlobal_Years</th>
<th>@Resource.FuelConsumptionDuringInterrogation</th>
<th>@Resource.SupportDocumentOfUsageAmount</th>
<th>@Resource.EquipmentAndPhoto</th>
<th>KgCO2e</th>
<th>@Resource.SimaproParametersRemark</th>
</tr>
@if (Model.ProductLca.KitchenSheet.Count(x => x.Type.ToString() == "other") == 0)
{
<tr>
<td class="text-center" colspan="11">@Resource.NoData</td>
</tr>
}
@foreach (var kitchen in Model.ProductLca.KitchenSheet)
{
if (kitchen.Type.ToString() == "other")
{
<tr>
<td>@kitchen.ProcessName</td>
<td>@kitchen.ResponsibleUnit</td>
<td>@kitchen.Name</td>
<td>
@(kitchen.Parameter != null ? kitchen.Parameter.Area.DisplayName : "")
</td>
<td>
@(kitchen.Parameter != null ? ViewHelper.GetEntityCategory(kitchen.Parameter.Type.DisplayName) : "")
</td>
<td align="right">
@(kitchen.Parameter != null ? kitchen.Parameter.Year.ToString() : "")
</td>
<td align="right">@kitchen.Scalar.ToString("F4")</td>
<td>
@if (!string.IsNullOrEmpty(kitchen.ReferenceFileUrl))
{<a href="@kitchen.ReferenceFileUrl">@Resource.StaticLabelDownload</a>}
</td>
<td>
@if (!string.IsNullOrEmpty(kitchen.ReferencePhotoUrl))
{<a href="@kitchen.ReferencePhotoUrl">@Resource.StaticLabelDownload</a>}
</td>
<td align="right">@kitchen.KgCO2e.ToString("F4")</td>
<td>
@if (kitchen.ParameterID.HasValue)
{
<a class="iframe" href="~/Certification/Parameter/yearly/@kitchen.ParameterID.Value" data-fancybox-type="iframe">@Resource.StaticLabelGlobal_CheckOut</a>
}
</td>
</tr>
}
}
</table>
</div>
<div>
<h4 id="refrigerant" class="docs-inline">@Resource.ContainsRefrigerant</h4>
@if (@Model.RefrigerantHeader.SheetFillerName != null)
{
var sheetheader = Model.RefrigerantHeader;
<div class="sheetheader">
<label class="sheetheader-label">@Resource.StaticLabelFillerName/@Resource.StaticLabelSencondContact: </label>
<span class="sheetheader-text">@sheetheader.SheetFillerName</span>
<label class="sheetheader-label">@(Resource.PhoneNumber): </label>
<span class="sheetheader-text">@sheetheader.Phone</span>
<label class="sheetheader-label">@(Resource.Department): </label>
<span class="sheetheader-text">@sheetheader.Department</span>
</div>
}
<a class="iframe pull-right" href="~/Certification/Comment?lcaId=@(Model.ProductLca.ID)&category=Refrigerant" data-fancybox-type="iframe">@Resource.Comment</a>
<table class="table docs-table">
<tr class="certification_table_header">
<th>@Resource.FactoryAndProcessItems</th>
@*<th>@Resource.ResponsibleUnit</th>*@
<th>@Resource.DeviceName</th>
<th>@Resource.MaterialType</th>
<th>@Resource.UnitsNumberOfWholeFactory</th>
<th>@(Resource.OriginalFillingAmountOfRefrigerant)(kg)</th>
<th>@Resource.UsedMonth</th>
<th>@Resource.TypeOfRefrigerant</th>
<th>GWP</th>
<th>@Resource.DeviceTypeAndEmissionFactor</th>
<th>@Resource.EmitPara</th>
<th>KgCO2e</th>
<th>@Resource.SimaproParametersRemark</th>
</tr>
@if (Model.ProductLca.RefrigerantSheet.Count() == 0)
{
<tr>
<td class="text-center" colspan="10">@Resource.NoData</td>
</tr>
}
@foreach (var refrigerant in Model.ProductLca.RefrigerantSheet)
{
<tr>
<td>@refrigerant.ProcessName</td>
@*<td>@refrigerant.ResponsibleUnit</td>*@
<td>@refrigerant.Name</td>
<td>@refrigerant.ModelNumber</td>
<td align="right">@refrigerant.TotalNumber</td>
<td align="right">@refrigerant.Scalar.ToString("F4")</td>
<td align="right">@refrigerant.UsedMonth</td>
<td>
@(refrigerant.ARnGWP != null ? refrigerant.ARnGWP.ingredientName : "")
</td>
<td align="right">
@(refrigerant.ARnGWP != null ? (Model.ProductLca.ARversion == "AR4" ? refrigerant.ARnGWP.AR4GWP100.ToString()
: Model.ProductLca.ARversion == "AR5" ? refrigerant.ARnGWP.AR5GWP100.ToString()
: Model.ProductLca.ARversion == "AR6" ? refrigerant.ARnGWP.AR6GWP100.ToString() : "0" ) : "0"))
</td>
<td>
@(refrigerant.Factor != null && refrigerant.Factor.Type != null ? refrigerant.Factor.Type.DisplayName : "")
</td>
<td align="right">@refrigerant.Factor.Value</td>
<td align="right">@refrigerant.KgCO2e.ToString("F4")</td>
<td>
@if (refrigerant.ParameterID.HasValue)
{
<a class="iframe" href="~/Certification/Parameter/nonYearly/@refrigerant.ParameterID.Value" data-fancybox-type="iframe">@Resource.StaticLabelGlobal_CheckOut</a>
}
</td>
</tr>
}
</table>
</div>
<div>
<h4 id="fire-equipment" class="docs-inline">@Resource.FireEquipment</h4>
@if (@Model.FireEquipmentHeader.SheetFillerName != null)
{
var sheetheader = Model.FireEquipmentHeader;
<div class="sheetheader">
<label class="sheetheader-label">@Resource.StaticLabelFillerName/@Resource.StaticLabelSencondContact: </label>
<span class="sheetheader-text">@sheetheader.SheetFillerName</span>
<label class="sheetheader-label">@(Resource.PhoneNumber): </label>
<span class="sheetheader-text">@sheetheader.Phone</span>
<label class="sheetheader-label">@(Resource.Department): </label>
<span class="sheetheader-text">@sheetheader.Department</span>
</div>
}
<a class="iframe pull-right" href="~/Certification/Comment?lcaId=@(Model.ProductLca.ID)&category=FireEquipment" data-fancybox-type="iframe">@Resource.Comment</a>
<table class="table docs-table">
<tr class="certification_table_header">
@*<th>@Resource.FactoryAndProcessItems</th>
<th>@Resource.ResponsibleUnit</th>*@
<th>@Resource.DeviceName</th>
<th>@Resource.Quantity</th>
<th>@Resource.EmissionSources</th>
<th>@(Resource.UsageAmount)(kg)</th>
<th>@Resource.Notes</th>
<th>@Resource.EmitPara</th>
<th>KgCO2e</th>
<th>@Resource.SimaproParametersRemark</th>
</tr>
@if (Model.ProductLca.FireEquipmentSheet.Count() == 0)
{
<tr>
<td class="text-center" colspan="9">@Resource.NoData</td>
</tr>
}
@foreach (var fireEquipment in Model.ProductLca.FireEquipmentSheet)
{
<tr>
@*<td>@fireEquipment.ProcessName</td>
<td>@fireEquipment.ResponsibleUnit</td>*@
<td>@fireEquipment.Name</td>
<td align="right">@fireEquipment.Quantity</td>
<td>
@(fireEquipment.ARnGWP != null ? fireEquipment.ARnGWP.ingredientName : "")
</td>
<td align="right">@fireEquipment.Scalar.ToString("F4")</td>
<td>@fireEquipment.Description</td>
<td align="right">
@(fireEquipment.ARnGWP != null ? (Model.ProductLca.ARversion == "AR4" ? fireEquipment.ARnGWP.AR4GWP100.ToString()
: Model.ProductLca.ARversion == "AR5" ? fireEquipment.ARnGWP.AR5GWP100.ToString()
: Model.ProductLca.ARversion == "AR6" ? fireEquipment.ARnGWP.AR6GWP100.ToString() : "0" ) : "0")
</td>
<td align="right">@fireEquipment.KgCO2e.ToString("F4")</td>
<td>
@if (fireEquipment.ParameterID.HasValue)
{
<a class="iframe" href="~/Certification/Parameter/nonYearly/@fireEquipment.ParameterID.Value" data-fancybox-type="iframe">@Resource.StaticLabelGlobal_CheckOut</a>
}
</td>
</tr>
}
</table>
</div>
<div>
<h4 id="steam-usage" class="docs-inline">@Resource.SteamUsage</h4>
@if (@Model.SteamHeader.SheetFillerName != null)
{
var sheetheader = Model.SteamHeader;
<div class="sheetheader">
<label class="sheetheader-label">@Resource.StaticLabelFillerName/@Resource.StaticLabelSencondContact: </label>
<span class="sheetheader-text">@sheetheader.SheetFillerName</span>
<label class="sheetheader-label">@(Resource.PhoneNumber): </label>
<span class="sheetheader-text">@sheetheader.Phone</span>
<label class="sheetheader-label">@(Resource.Department): </label>
<span class="sheetheader-text">@sheetheader.Department</span>
</div>
}
<a class="iframe pull-right" href="~/Certification/Comment?lcaId=@(Model.ProductLca.ID)&category=SteamUsage" data-fancybox-type="iframe">@Resource.Comment</a>
<table class="table docs-table">
<tr class="certification_table_header">
<th>@Resource.StaticLabelGlobal_Month</th>
<th>@(Resource.UsageAmount)</th>
<th>@Resource.StaticLabelGlobal_Years</th>
<th>@Resource.EvidenceEBooks</th>
<th>@Resource.SimaproParametersRemark</th>
</tr>
@foreach (var steam in Model.ProductLca.SteamUsageSheet)
{
<tr>
<td align="right">@steam.MonthLabel()</td>
<td align="right">@steam.Scalar.ToString("F4")</td>
<td align="right">
@(steam.Parameter != null ? steam.Parameter.Year.ToString() : "")
</td>
<td>
@if (!string.IsNullOrEmpty(steam.ReferenceFileLink))
{<a href="@steam.ReferenceFileLink">@Resource.StaticLabelDownload</a>}
</td>
<td>
@if (steam.ParameterID.HasValue)
{
<a class="iframe" href="~/Certification/Parameter/yearly/@steam.ParameterID.Value" data-fancybox-type="iframe">@Resource.StaticLabelGlobal_CheckOut</a>
}
</td>
</tr>
}
<tr align="right">
<td>@Resource.Total</td>
<td>@Model.ProductLca.SteamUsageSheet.ToList().GetTotalSteamUsage().ToString("F4")</td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
</div>
<div>
<h4 id="other" class="docs-inline">@Resource.OtherCompound</h4>
@if (@Model.OtherHeader.SheetFillerName != null)
{
var sheetheader = Model.OtherHeader;
<div class="sheetheader">
<label class="sheetheader-label">@Resource.StaticLabelFillerName/@Resource.StaticLabelSencondContact: </label>
<span class="sheetheader-text">@sheetheader.SheetFillerName</span>
<label class="sheetheader-label">@(Resource.PhoneNumber): </label>
<span class="sheetheader-text">@sheetheader.Phone</span>
<label class="sheetheader-label">@(Resource.Department): </label>
<span class="sheetheader-text">@sheetheader.Department</span>
</div>
}
<a class="iframe pull-right" href="~/Certification/Comment?lcaId=@(Model.ProductLca.ID)&category=OtherCompound" data-fancybox-type="iframe">@Resource.Comment</a>
<table class="table docs-table">
<tr class="certification_table_header">
<th>@Resource.FactoryAndProcessItems</th>
<th>@Resource.ResponsibleUnit</th>
<th>@Resource.DeviceName</th>
<th>@Resource.EmissionSources</th>
<th>@Resource.CO2Factor</th>
<th>@Resource.UsageAmount</th>
<th>@Resource.RefuelingRecord</th>
<th>@Resource.StaticLabelGlobal_Remark</th>
<th>@Resource.KgCO2e (KgCO2e)</th>
</tr>
@if (Model.ProductLca.OtherCompoundSheet.Count() == 0)
{
<tr>
<td class="text-center" colspan="8">@Resource.NoData</td>
</tr>
}
@foreach (var other in Model.ProductLca.OtherCompoundSheet)
{
<tr>
<td>@other.ProcessName</td>
<td>@other.ResponsibleUnit</td>
<td>@other.Name</td>
<td>@other.ingredientName</td>
<td align="right">@other.CO2Factor</td>
<td align="right">@other.Scalar.ToString("F4")</td>
<td>
@if (!string.IsNullOrEmpty(other.ReferenceFileUrl))
{<a href="@other.ReferenceFileUrl">@Resource.StaticLabelDownload</a>}
</td>
<td>@other.Description</td>
<td align="right">@other.KgCO2e.ToString("F4")</td>
</tr>
}
</table>
</div>
<div>
<h4 id="usage-stage" class="docs-inline">@Resource.ProductUsageStage</h4>
<a class="iframe pull-right" href="~/Certification/Comment?lcaId=@(Model.ProductLca.ID)&category=UsageStage" data-fancybox-type="iframe">@Resource.Comment</a>
<table class="table docs-table">
<tr class="certification_table_header">
<th>@Resource.WattInOperation</th>
<th>@Resource.WattInLowOperation</th>
<th>@Resource.TurnOnHourPerDayInWorkDay</th>
<th>@Resource.TurnOnHourPerDayInOffDay</th>
<th>@Resource.WorkDayPerYear</th>
<th>@Resource.PowerCoefficient</th>
<th>@Resource.PowerCoefficientSourceDescription</th>
<th>@Resource.CalculateResult</th>
</tr>
<tr>
@if (Model.UsageStage != null)
{
<td align="right">@Model.UsageStage.WattInOperation.ToString("F4")</td>
<td align="right">@Model.UsageStage.WattInLowOperation.ToString("F4")</td>
<td align="right">@Model.UsageStage.TurnOnHourPerDayInWorkDay</td>
<td align="right">@Model.UsageStage.TurnOnHourPerDayInOffDay</td>
<td align="right">@Model.UsageStage.WorkDayPerYear</td>
<td align="right">@Model.UsageStage.PowerFactor.ToString("F4")</td>
<td>@Model.UsageStage.Description</td>
<td align="right">@Model.UsageStage.CalculateResult.ToString("F4")</td>
}
else
{
<td class="text-center" colspan="8">@Resource.NoData</td>
}
</tr>
</table>
</div>
<div>
<h4 id="abandoned-stage">@Resource.AbandonedStage</h4>
<a class="iframe pull-right" href="~/Certification/Comment?lcaId=@(Model.ProductLca.ID)&category=AbandonedStage" data-fancybox-type="iframe">@Resource.Comment</a>
<table class="table docs-table">
<tr class="certification_table_header">
<th>@Resource.WasteWeight</th>
<th>Recycle (%)</th>
<th>Reuse (%)</th>
<th>Recover (%)</th>
<th>@Resource.IncinerationParameter</th>
<th>@Resource.AbandonedParameter</th>
<th>@Resource.AbandonedDescription</th>
<th>@Resource.CalculateResult</th>
</tr>
<tr>
@if (Model.AbandonedStage != null)
{
<td align="right">@Model.AbandonedStage.WasteWeight.ToString("F4")</td>
<td align="right">@Model.AbandonedStage.RecyclePercentage.ToString("F4")</td>
<td align="right">@Model.AbandonedStage.ReusePercentage.ToString("F4")</td>
<td align="right">@Model.AbandonedStage.RecoverPercentage.ToString("F4")</td>
<td align="right">@Model.AbandonedStage.IncinerationParameter.ToString("F4")</td>
<td align="right">@Model.AbandonedStage.AbandonedParameter.ToString("F4")</td>
<td>@Model.AbandonedStage.Description</td>
<td align="right">@Model.AbandonedStage.CalculateResult.ToString("F4")</td>
}
else
{
<td class="text-center" colspan="8">@Resource.NoData</td>
}
</tr>
</table>
</div>
@if (Model.ProductLca.Status == Weee.Models.LCAStatus.Waiting)
{
<div class="pull-right docs-btn-group">
<input id="confirm-button2" type="button" value="@Resource.Approve" class="header-button" />
@using (Html.BeginForm("ProductLcaConfirm", "LCA", new { lcaId = Model.ProductLca.ID }, FormMethod.Post, new { @id = "lca-confirm2", @class = "docs-inline" })) { }
<input id="reject-button2" type="button" value="@Resource.Reject" class="header-button" />
@using (Html.BeginForm("ProductLcaReject", "LCA", new { lcaId = Model.ProductLca.ID }, FormMethod.Post, new { @id = "lca-reject2", @class = "docs-inline" })) { }
<button class="header-button" id="upload-button" onclick="showModel()">@Resource.StaticLabelGlobal_Upload</button>
</div>
}
@if (Model.ProductLca.Status == Weee.Models.LCAStatus.Processing)
{
<div class="pull-right docs-btn-group">
<input id="refuse-button2" type="button" value="@Resource.Refuse" class="header-button" />
@using (Html.BeginForm("ProductLcaRefuse", "LCA", new { lcaId = Model.ProductLca.ID }, FormMethod.Post, new { @id = "lca-refuse2", @class = "docs-inline" })) { }
</div>
}
@if (ViewBag.ProductLcaId != null)
{
<div class="pull-right docs-btn-group">
@Html.ActionLink(Resource.StaticLabelGlobal_BackToList, "ProductLcaDetail", new { id = ViewBag.ProductLcaId }, new { @class = "header-button", style = "text-decoration: none;" })
</div>
}
@*<div id="empty"></div>*@
</div>
</div>
</div>
@using (Html.BeginForm("ProductLcaUploadFile", "LCA", new { lcaId = Model.ProductLca.ID }, FormMethod.Post, new { enctype = "multipart/form-data" }))
{
<div class="table_edit_wrap transition show_table_edit" id="file-upload" style="display: none; width: 100%; height: calc(100vh + 150px); background-color: rgb(128,128,128, 0.6); position: fixed; z-index: 1001;margin-top: -150px">
<div>
<div class="edit_form" style="z-index: 1001; position: fixed; margin: auto; left: 0; right: 0; top: 30%; background-color: #eeeeee; width: 500px; border: 1px solid #bbb; border-radius: 5px; padding-bottom: 20px; box-shadow: 1px 1px 1px 1px #ddd; height: 140px;">
<div style="float:right;margin: 10px 10px;cursor: pointer;" onclick="cancel()">
<img src="~/Browser_Local/img/header_image7_1.png" alt="close" />
</div>
<div id="upload-file-result-msg" style="padding: 20px 0 10px 10px;">上传文件:</div>
<div style="margin-left: 30px;">
<input id="fileUpload" type="file" name="uploadedFile" />
<input type="submit" value="@Resource.StaticLabelImport" class="btn btn-default" />
</div>
<p style="color:red;margin-top: 0;margin-left:28px;">仅支持的文件类型zip</p>
</div>
</div>
</div>
}
</div>
</html>
<script>
function cancel() {
let box = document.getElementById('file-upload');
box.style.display = 'none';
}
</script>
@Scripts.Render("~/jQuery")
@Scripts.Render("~/bootstrap")
<script>
function showModel() {
var model = document.getElementById("file-upload");
model.style.display = "block";
}
</script>