695 lines
31 KiB
Plaintext
695 lines
31 KiB
Plaintext
<style type="text/css">
|
|
.checkbox {
|
|
position: relative;
|
|
display: block;
|
|
}
|
|
|
|
.checkbox input[type=checkbox] {
|
|
position: absolute;
|
|
margin-left: -20px;
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
</style>
|
|
@* the select function is provided by select-row directive*@
|
|
<div ng-controller="LifecycleAssmtController" select-row lca-detail>
|
|
@* header *@
|
|
@* header's button style is controlled by header-content-layout, the business logic(ng-show) is controlled here *@
|
|
|
|
<div class="body_content container" style="margin-top: 2px;">
|
|
<div style="padding-left:10px">
|
|
<!--<div class="row">
|
|
<div class="col-sm-3">
|
|
<div class="checkbox">
|
|
<label>
|
|
<input type="checkbox" ng-model="updateOption.Material">@Resource.MaterialInfo
|
|
</label>
|
|
</div>
|
|
</div>
|
|
<div class="col-sm-3" ng-show="updateOption.Material">
|
|
<div class="checkbox">
|
|
<label>
|
|
<input type="checkbox" ng-model="updateOption.MaterialDelete">@Resource.DeleteExisted
|
|
</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row" style="margin-top: 10px;">
|
|
<div class="col-sm-3">
|
|
<div class="checkbox">
|
|
<label>
|
|
<input type="checkbox" ng-model="updateOption.UpstreamDelivery">@Resource.UpShipInfo
|
|
</label>
|
|
</div>
|
|
</div>
|
|
<div class="col-sm-3" ng-show="updateOption.UpstreamDelivery">
|
|
<div class="checkbox">
|
|
<label>
|
|
<input type="checkbox" ng-model="updateOption.UpstreamDeliveryDelete"> @Resource.DeleteExisted
|
|
</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row" style="margin-top: 10px;">
|
|
<div class="col-sm-3">
|
|
<div class="checkbox">
|
|
<label>
|
|
<input type="checkbox" ng-model="updateOption.Service" ng-disabled="true">@Resource.OpSpServInfo
|
|
</label>
|
|
</div>
|
|
</div>
|
|
<div class="col-sm-3" ng-show="updateOption.Service">
|
|
<div class="checkbox">
|
|
<label>
|
|
<input type="checkbox" ng-model="updateOption.ServiceDelete"> @Resource.DeleteExisted
|
|
</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row" style="margin-top: 10px;">
|
|
<div class="col-sm-3">
|
|
<div class="checkbox">
|
|
<label>
|
|
<input type="checkbox" ng-model="updateOption.DownstreamDelivery" ng-disabled="true">@Resource.DnShipInfo
|
|
</label>
|
|
</div>
|
|
</div>
|
|
<div class="col-sm-3" ng-show="updateOption.DownstreamDelivery">
|
|
<div class="checkbox">
|
|
<label>
|
|
<input type="checkbox" ng-model="updateOption.DownstreamDeliveryDelete"> @Resource.DeleteExisted
|
|
</label>
|
|
</div>
|
|
</div>
|
|
</div>-->
|
|
@*<div class="row" style="margin-top: 10px;">
|
|
<div class="col-sm-3">
|
|
<div class="checkbox">
|
|
<label>
|
|
<input type="checkbox" ng-model="updateOption.Product" ng-disabled="true">@Resource.ProdUsgDispoInfo
|
|
</label>
|
|
</div>
|
|
</div>
|
|
<div class="col-sm-3" ng-show="updateOption.Product">
|
|
<div class="checkbox">
|
|
<label>
|
|
<input type="checkbox" ng-model="updateOption.ProductDelete"> @Resource.DeleteExisted
|
|
</label>
|
|
</div>
|
|
</div>
|
|
</div>*@
|
|
<!--<div class="row" style="margin-top: 10px;">
|
|
<div class="col-sm-3">
|
|
<div class="checkbox">
|
|
<label>
|
|
<input type="checkbox" ng-model="updateOption.Waste" ng-disabled="true">@Resource.WasteDispoInfo
|
|
</label>
|
|
</div>
|
|
</div>
|
|
<div class="col-sm-3" ng-show="updateOption.Waste">
|
|
<div class="checkbox">
|
|
<label>
|
|
<input type="checkbox" ng-model="updateOption.WasteDelete"> @Resource.DeleteExisted
|
|
</label>
|
|
</div>
|
|
</div>
|
|
</div>-->
|
|
<div class="row" style="margin-top: 10px; margin-left:2px">
|
|
<div>
|
|
@*<button class="header_button"
|
|
ng-disabled="!updateOption.Material && !updateOption.UpstreamDelivery && !updateOption.Service && !updateOption.DownstreamDelivery && !updateOption.Product && !updateOption.Waste"
|
|
style="float:left; margin-left:-20px;width:100px"
|
|
ng-click="updateProcess()">
|
|
@Resource.Update
|
|
</button>*@
|
|
<!--
|
|
<button class="header_button"
|
|
ng-click="toGenerateRiskAssessmentReport()">
|
|
@Resource.RiskAssessmentReport
|
|
</button>
|
|
-->
|
|
</div>
|
|
<div>
|
|
<p>
|
|
<label style="width: 250px;">@Resource.Step 1. @Resource.LifecycleStage </label>
|
|
<select style="width: auto;" name="lifeCycleStage"
|
|
ng-model="lifeCycleStage.value"
|
|
ng-change="onLifeCycleStageChange(lifeCycleStage.value)">
|
|
<option value="">-- @Resource.StaticLabelGlobal_Select --</option>
|
|
<option ng-repeat="(key, value) in stageOptions"
|
|
value="{{key}}">
|
|
{{value}}
|
|
</option>
|
|
</select>
|
|
</p>
|
|
<p>
|
|
<label style="width: 250px;">@Resource.Step 2. @Resource.SelectGHGCategory </label>
|
|
<select style="width: auto;" name="category" id="category"
|
|
ng-model="lifeCycleStage.category"
|
|
ng-show="!isObjectEmpty(categoryOptions)"
|
|
ng-change="onCategoryChange(lifeCycleStage.category)">
|
|
<option value="">-- @Resource.StaticLabelGlobal_Select --</option>
|
|
<option ng-repeat="(key, value) in categoryOptions"
|
|
value="{{key}}">
|
|
{{value}}
|
|
</option>
|
|
</select>
|
|
</p>
|
|
<p>
|
|
<label style="width: 250px;">@Resource.Step 3. @Resource.SelectSubItem </label>
|
|
<select style="width: auto;" name="categorySub1" id="categorySub1"
|
|
ng-model="lifeCycleStage.categorySubItem"
|
|
ng-show="!isObjectEmpty(categorySub1Options)"
|
|
ng-change="onCategorySub1Change(lifeCycleStage.categorySubItem)"
|
|
@*ng-disabled="categorySub1Disabled"*@>
|
|
<option value="">-- @Resource.StaticLabelGlobal_Select --</option>
|
|
<option ng-repeat="(key, value) in categorySub1Options"
|
|
value="{{key}}">
|
|
{{value}}
|
|
</option>
|
|
</select>
|
|
</p>
|
|
|
|
<p>
|
|
<label style="width: 250px;">@Resource.Step 4. @Resource.CreateNewLCARAItem </label>
|
|
</p>
|
|
@*<button ng-click="sumPercentage()" ng-hide="true">百分比求和</button>*@
|
|
</div>
|
|
</div>
|
|
|
|
<br />
|
|
<br />
|
|
</div>
|
|
<div header-content-layout>
|
|
|
|
@*header content layout provide the general function like mouse over and background image*@
|
|
@*<p>lifeCycleStage.value: {{lifeCycleStage.value}}</p>
|
|
<p>categoryOptions.length: {{isObjectEmpty(categoryOptions)}}</p>*@
|
|
<div class="header_image_button"
|
|
ng-style="{ backgroundImage: headerLayout.header_image1 }"
|
|
ng-show="lcaDetail.Status!=2 && lifeCycleStage.categorySubItem.length>0"
|
|
ng-click="createProcess()"
|
|
ng-mouseover="headerLayout.headerImageChange(1, 2)"
|
|
ng-mouseleave="headerLayout.headerImageChange(1, 1)">
|
|
|
|
<div class="tooltip" ng-show="headerLayout.show1">
|
|
<div ng-style="{ width: headerLayout.tooltipWidth(1) }">
|
|
@Resource.StaticLabelAddNew
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
@*<div class="header_image_button"
|
|
ng-style="{ backgroundImage: headerLayout.header_image17 }"
|
|
ng-show="lcaDetail.Status==1"
|
|
ng-click="updateProcess()"
|
|
ng-mouseover="headerLayout.headerImageChange(17, 2)"
|
|
ng-mouseleave="headerLayout.headerImageChange(17, 1)">
|
|
|
|
<div class="tooltip" ng-show="headerLayout.show17">
|
|
<div ng-style="{ width: headerLayout.tooltipWidth(17) }">
|
|
@Resource.UpdateInfo
|
|
</div>
|
|
</div>
|
|
</div>*@
|
|
|
|
<div class="header_image_button"
|
|
ng-style="{ backgroundImage: headerLayout.header_image4 }"
|
|
ng-click="editProcess(selectRow.getSelected())"
|
|
ng-mouseover="headerLayout.headerImageChange(4, 2)"
|
|
ng-mouseleave="headerLayout.headerImageChange(4, 1)"
|
|
ng-show="selectRow.getSelected() != null">
|
|
|
|
<div class="tooltip" ng-show="headerLayout.show4">
|
|
<div ng-style="{ width: headerLayout.tooltipWidth(4) }">
|
|
@Resource.StaticLabelGlobal_Edit
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="header_image_button"
|
|
ng-style="{ backgroundImage: headerLayout.header_image6 }"
|
|
ng-click="deleteProcess(selectRow.getSelected())"
|
|
ng-mouseover="headerLayout.headerImageChange(6, 2)"
|
|
ng-mouseleave="headerLayout.headerImageChange(6, 1)"
|
|
ng-show="selectRow.getSelected() != null && selectRow.getSelected().subTableId==undefined">
|
|
|
|
<div class="tooltip" ng-show="headerLayout.show6">
|
|
<div ng-style="{ width: headerLayout.tooltipWidth(6) }">
|
|
@Resource.StaticLabelGlobal_Delete
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="header_image_button"
|
|
ng-style="{ backgroundImage: headerLayout.header_image8 }"
|
|
ng-click="modelBuilder.export(model)"
|
|
ng-mouseover="headerLayout.headerImageChange(8, 2)"
|
|
ng-mouseleave="headerLayout.headerImageChange(8, 1)">
|
|
|
|
<div class="tooltip" ng-show="headerLayout.show8">
|
|
<div ng-style="{ width: tooltipWidth(8) }">
|
|
@Resource.StaticLabelExportBOM
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="header_image_button"
|
|
ng-style="{ backgroundImage: headerLayout.header_image9 }"
|
|
ng-click="fileImportModal.show = true;"
|
|
ng-mouseover="headerLayout.headerImageChange(9, 2)"
|
|
ng-mouseleave="headerLayout.headerImageChange(9, 1)">
|
|
|
|
<div class="tooltip" ng-show="headerLayout.show9">
|
|
<div ng-style="{ width: tooltipWidth(9) }">
|
|
@Resource.StaticLabelImprotBOM
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="header_image_button"
|
|
ng-style="{ backgroundImage: headerLayout.header_image17 }"
|
|
ng-click="quoteModal.show = true;"
|
|
ng-mouseover="headerLayout.headerImageChange(17, 2)"
|
|
ng-mouseleave="headerLayout.headerImageChange(17, 1)">
|
|
|
|
<div class="tooltip" ng-show="headerLayout.show17">
|
|
<div ng-style="{ width: tooltipWidth(17) }">
|
|
@Resource.StaticLabelReferenceData
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
@*<div class="header_image_button"
|
|
ng-style="{ backgroundImage: headerLayout.header_image11 }"
|
|
ng-click="search_box = !search_box"
|
|
ng-mouseover="headerLayout.headerImageChange(11, 2)"
|
|
ng-mouseleave="headerLayout.headerImageChange(11, 1)">
|
|
|
|
<div class="tooltip" ng-show="headerLayout.show11">
|
|
<div ng-style="{ width: tooltipWidth(11) }">
|
|
@Resource.StaticLabelGlobal_Search
|
|
</div>
|
|
</div>
|
|
</div>*@
|
|
|
|
@*<div class="header_search" ng-show="!Table_Edit_State">
|
|
<input type="text" class="transition" ng-model="searchText" ng-class="{ expand: search_box }" />
|
|
</div>*@
|
|
|
|
|
|
</div>
|
|
</div>
|
|
@* end of header *@
|
|
|
|
@* the body of index *@
|
|
<div class="body_content" ng-model="currentPage" ng-init="currentPage = 1">
|
|
<div class="table_overflow">
|
|
<table class="table">
|
|
<thead>
|
|
<tr class="table-active" style="text-align:center">
|
|
<th>@Resource.LifecycleStage</th>
|
|
<th>@Resource.CategorySubItem</th>
|
|
<th>@Resource.EvaluationItem</th>
|
|
<th>@Resource.MaterialNo</th>
|
|
<th>@Resource.ActivityStrength</th>
|
|
<th>@Resource.Parameter (kgCO2e)</th>
|
|
<th>@Resource.DeclareUnit</th>
|
|
@*<th>@Resource.CarbonEmitQuan (kg)</th>*@
|
|
<th>@Resource.CarbonEmitQuan (@Resource.Ton)</th>
|
|
<th>@Resource.Percentage</th>
|
|
<th>@Resource.ParaDesc</th>
|
|
@*<th>@Resource.EvidenceFile / @Resource.SituationDesc</th>*@
|
|
<th>@Resource.UncertaintyAnalysis</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody ng-mouseleave="setHoverColumnRow(-1, -1, -1)">
|
|
<tr class="survey_order_table_row"
|
|
ng-class="{ selected: row == selectRow.getSelected() }"
|
|
ng-click="selectRow.select(row)"
|
|
ng-dblclick="editProcess(row)"
|
|
ng-repeat="row in model | filter:{LifeCycleStage: lifeCycleStage.value} | orderBy:'LifeCycleStage'">
|
|
<td ng-bind="getStageLabel(row.LifeCycleStage)"></td>
|
|
<td ng-bind="row.categorySubItem"></td>
|
|
<td ng-bind="row.GHGEvaluateItem"></td>
|
|
<td ng-bind="row.MaterialNo"></td>
|
|
<td align="right">{{row.ActivityIntensity|number:4}}</td>
|
|
<td align="right">{{row.KgCO2e|number:4}}</td>
|
|
<td ng-bind="row.Unit"></td>
|
|
@*<td ng-bind="row.EmissionKg"></td>*@
|
|
<td align="right">{{row.EmissionT|number:3}}</td>
|
|
<td ng-bind="row.Percentage" align="right"></td>
|
|
<td ng-bind="row.Instruction"></td>
|
|
@*<td ng-bind="row.Scenario"></td>*@
|
|
<td ng-bind="row.UncertaintyAnalysis"></td>
|
|
</tr>
|
|
<tr style="border-bottom: solid 1px rgb(214, 214, 214);">
|
|
<td ng-show="model.length == 0">
|
|
@Resource.NoData
|
|
</td>
|
|
</tr>
|
|
<tr style="background-color: #F5F5F5" ng-show="(model).length != 0" align="right">
|
|
<td></td>
|
|
<td></td>
|
|
<td></td>
|
|
<td></td>
|
|
<td></td>
|
|
<td></td>
|
|
<td></td>
|
|
<td>{{sumKgCO2e | number:4}}</td>
|
|
<td></td>
|
|
<td></td>
|
|
<td></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="summary">
|
|
<table class="table" style="table-layout: fixed;">
|
|
<thead>
|
|
<tr class="table-active" align="center">
|
|
<th></th>
|
|
<th></th>
|
|
<th></th>
|
|
<th></th>
|
|
<th></th>
|
|
<th>@Resource.LifecycleStage</th>
|
|
<th>@Resource.CarbonEmitQuan (@Resource.Ton)</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr ng-show="model.length > 0" style="background-color: #F5F5F5"
|
|
ng-repeat="sum in summary" align="right">
|
|
<td></td>
|
|
<td></td>
|
|
<td></td>
|
|
<td></td>
|
|
<td></td>
|
|
<td ng-bind="getStageLabel(sum.LifeCycleStage)"></td>
|
|
<td>{{sum.totalKgCO2e|number:4}}</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
@* end of the body of index *@
|
|
|
|
@*<page passed-total-page="Math.ceil((model | filter : searchText).length / 10)" passed-current-page="currentPage"></page>*@
|
|
|
|
@* the detail modal form *@
|
|
<form name="editForm" novalidate>
|
|
<table-edit-modal display-option="modalFormOption" passed-form="editForm">
|
|
<div class="row">
|
|
<label class="col-sm-4 col-form-label">@Resource.LifecycleStage</label>
|
|
<div class="col col-sm-8">
|
|
<select name="lifeCycleStage"
|
|
required
|
|
ng-model="selectRow.toBeEdit.LifeCycleStage"
|
|
@*ng-model="lifeCycleStage.value"*@
|
|
@*ng-change="onLifeCycleStageChange(selectRow.toBeEdit.LifeCycleStage)"*@
|
|
@*ng-disabled="lifeCycleStage.value!=''"*@
|
|
ng-disabled="true">
|
|
@*ng-options="item.value as item.label for item in stages">*@
|
|
<option value="">-- @Resource.StaticLabelGlobal_Select --</option>
|
|
<option ng-repeat="(key, value) in stageOptions"
|
|
value="{{key}}">
|
|
{{value}}
|
|
</option>
|
|
</select>
|
|
</div>
|
|
<div class="validation_block"></div>
|
|
</div>
|
|
<div class="row">
|
|
<label class="col-sm-4 col-form-label">@Resource.Category</label>
|
|
<div class="col col-sm-8">
|
|
{{selectRow.toBeEdit.category}}
|
|
@*<input name="category" id="category"
|
|
ng-disabled="true"
|
|
ng-model="selectRow.toBeEdit.category">*@
|
|
</div>
|
|
<div class="validation_block"></div>
|
|
</div>
|
|
<div class="row">
|
|
<label class="col-sm-4 col-form-label">@Resource.CategorySubItem</label>
|
|
<div class="col col-sm-8">
|
|
{{selectRow.toBeEdit.categorySubItem}}
|
|
@*<input name="categorySubItem" id="categorySubItem"
|
|
ng-disabled="true"
|
|
ng-model="selectRow.toBeEdit.categorySubItem">*@
|
|
</div>
|
|
<div class="validation_block"></div>
|
|
</div>
|
|
<!--<div class="row">
|
|
<label class="col-sm-4 col-form-label">@Resource.GHGinventoryItemNo</label>
|
|
<div class="col col-sm-8">{{selectRow.toBeEdit.GHGinventoryItemNo}}-->
|
|
@*<input name="GHGinventoryItemNo" id="GHGinventoryItemNo"
|
|
ng-disabled="true"
|
|
ng-model="selectRow.toBeEdit.GHGinventoryItemNo">*@
|
|
<!--</div>
|
|
<div class="validation_block"></div>
|
|
</div>-->
|
|
<div class="row">
|
|
<label class="col-sm-4 col-form-label">@Resource.EvaluationItem</label>
|
|
<div class="col col-sm-8">
|
|
<input @*name="GHGEvaluateItem" id="GHGEvaluateItem"*@
|
|
type="text"
|
|
@*required*@
|
|
placeholder="@Resource.RequiredMessage"
|
|
ng-model="selectRow.toBeEdit.GHGEvaluateItem"
|
|
ng-disabled="selectRow.toBeEdit.subTableId!=undefined">
|
|
</div>
|
|
<div class="validation_block"></div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<label class="col-sm-4 col-form-label">@Resource.MaterialNo</label>
|
|
<div class="col col-sm-8">
|
|
<input type="text"
|
|
ng-model="selectRow.toBeEdit.MaterialNo"
|
|
ng-disabled="selectRow.toBeEdit.subTableId!=undefined" />
|
|
</div>
|
|
<div class="validation_block"></div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<label class="col-sm-4 col-form-label">@Resource.ActivityStrength</label>
|
|
<div class="col col-sm-8">
|
|
<input name="activityIntensity"
|
|
type="number" step="any"
|
|
max="{{CONSTANTS.MAXNUMVALUE}}"
|
|
required
|
|
placeholder="@Resource.RequiredMessage"
|
|
ng-change="changeEmission(selectRow.toBeEdit)"
|
|
ng-model="selectRow.toBeEdit.ActivityIntensity"
|
|
ng-disabled="selectRow.toBeEdit.subTableId!=undefined">
|
|
</div>
|
|
<div class="validation_block">
|
|
<div ng-show="editForm.activityIntensity.$dirty">
|
|
<small ng-show="editForm.activityIntensity.$error.max">@Resource.MaxValidateMsg {{CONSTANTS.MAXNUMVALUE}}</small>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<label class="col-sm-4 col-form-label">@Resource.ActivityStrength@Resource.StaticLabelGlobal_Unit</label>
|
|
<div class="col col-sm-8">
|
|
<input name="activityIntensityUnit"
|
|
type="text"
|
|
required
|
|
placeholder="@Resource.RequiredMessage"
|
|
ng-model="selectRow.toBeEdit.ActivityIntensityUnit"
|
|
ng-blur="checkUnit(selectRow.toBeEdit, selectRow.toBeEdit.ActivityIntensityUnit)"
|
|
ng-focus="unitFocus(selectRow.toBeEdit.ActivityIntensityUnit)"
|
|
ng-disabled="selectRow.toBeEdit.subTableId!=undefined">
|
|
</div>
|
|
<div class="validation_block">
|
|
<div ng-show="editForm.ActivityIntensityUnit.$dirty">
|
|
<small ng-show="editForm.activityIntensity.$error.max">@Resource.MaxValidateMsg {{CONSTANTS.MAXNUMVALUE}}</small>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<label class="col-sm-4 col-form-label">@Resource.Parameter (kgCO2e)</label>
|
|
<div class="col col-sm-8">
|
|
<input name="kgCO2e"
|
|
type="number" step="any"
|
|
required
|
|
placeholder="@Resource.RequiredMessage"
|
|
ng-change="changeEmission(selectRow.toBeEdit)"
|
|
ng-model="selectRow.toBeEdit.KgCO2e"
|
|
ng-disabled="selectRow.toBeEdit.subTableId!=undefined">
|
|
<div class="header_image_button simapro-image-button"
|
|
ng-click="selectSimaproProcess(selectRow.toBeEdit)"
|
|
ng-show="selectRow.toBeEdit.subTableId==undefined">
|
|
</div>
|
|
</div>
|
|
<div class="validation_block">
|
|
<div ng-show="editForm.kgCO2e.$dirty">
|
|
<small ng-show="editForm.kgCO2e.$error.max">@Resource.MaxValidateMsg {{CONSTANTS.MAXNUMVALUE}}</small>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<label class="col-sm-4 col-form-label">@Resource.DeclareUnit</label>
|
|
<div class="col col-sm-8">
|
|
<input name="Unit"
|
|
type="text"
|
|
required
|
|
placeholder="@Resource.RequiredMessage"
|
|
ng-model="selectRow.toBeEdit.Unit"
|
|
ng-blur="checkUnit(selectRow.toBeEdit, selectRow.toBeEdit.Unit)"
|
|
ng-focus="unitFocus(selectRow.toBeEdit.Unit)"
|
|
ng-disabled="selectRow.toBeEdit.subTableId!=undefined">
|
|
</div>
|
|
<div class="validation_block"></div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<label class="col-sm-4 col-form-label">@Resource.CarbonEmitQuan (kg)</label>
|
|
<div class="col col-sm-8">
|
|
<input name="emissionKg"
|
|
type="number" step="any"
|
|
readonly="readonly"
|
|
ng-model="selectRow.toBeEdit.EmissionKg">
|
|
</div>
|
|
<div class="validation_block"></div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<label class="col-sm-4 col-form-label">@Resource.CarbonEmitQuan (@Resource.Ton)</label>
|
|
<div class="col col-sm-8">
|
|
<input name="emissionT"
|
|
type="number" step="any"
|
|
readonly="readonly"
|
|
ng-model="selectRow.toBeEdit.EmissionT">
|
|
</div>
|
|
<div class="validation_block"></div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<label class="col-sm-4 col-form-label">@Resource.Percentage</label>
|
|
<div class="col col-sm-8">
|
|
<input name="percentage"
|
|
type="text"
|
|
readonly="readonly"
|
|
ng-model="selectRow.toBeEdit.Percentage">
|
|
</div>
|
|
<div class="validation_block"></div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<label class="col-sm-4 col-form-label">@Resource.ParaDesc</label>
|
|
<div class="col col-sm-8">
|
|
<input type="text"
|
|
ng-model="selectRow.toBeEdit.Instruction"
|
|
ng-disabled="selectRow.toBeEdit.subTableId!=undefined" />
|
|
</div>
|
|
<div class="validation_block"></div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<label class="col-sm-4 col-form-label">@Resource.StaticLabelEvidence</label>
|
|
<div class="col col-sm-8">
|
|
<input type="file" file read-file="selectFile(file)" display-option="modalFormOption">
|
|
<a class="inline_link" target="_blank"
|
|
ng-href="{{ selectRow.toBeEdit.ReferenceFileUrl }}"
|
|
ng-show="selectRow.toBeEdit.ReferenceFileUrl">
|
|
{{selectRow.toBeEdit.ReferenceFileUrl|getFileName}} @Resource.DownloadLink
|
|
</a>
|
|
</div>
|
|
<div class="validation_block"></div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<label class="col-sm-4 col-form-label"> @Resource.SituationDesc</label>
|
|
<div class="col col-sm-8">
|
|
<input type="text"
|
|
ng-model="selectRow.toBeEdit.Scenario" />
|
|
</div>
|
|
<div class="validation_block"></div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<label class="col-sm-4 col-form-label">@Resource.RAIntlTravelScalarSource</label>
|
|
<div class="col col-sm-8">
|
|
<select name="dataSource"
|
|
ng-change="changeUncertaintyAnalysis(selectRow.toBeEdit)"
|
|
ng-model="selectRow.toBeEdit.DataSource">
|
|
<option value="">-- @Resource.StaticLabelGlobal_Select --</option>
|
|
<option value="1">全球或區域級係數</option>
|
|
<option value="2">國家級係數</option>
|
|
</select>
|
|
</div>
|
|
<div class="validation_block"></div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<label class="col-sm-4 col-form-label">@Resource.RAIntlTravelFileAttr</label>
|
|
<div class="col col-sm-8">
|
|
<select name="dataAttribute"
|
|
ng-change="changeUncertaintyAnalysis(selectRow.toBeEdit)"
|
|
ng-model="selectRow.toBeEdit.DataAttribute">
|
|
<option value="">-- @Resource.StaticLabelGlobal_Select --</option>
|
|
<option value="1">基於假設情境而來</option>
|
|
<option value="2">可獲得特定廠址數據</option>
|
|
</select>
|
|
</div>
|
|
<div class="validation_block"></div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<label class="col-sm-4 col-form-label">@Resource.RAIntlTravelUncertainAnalysis</label>
|
|
<div class="col col-sm-8">
|
|
<input name="uncertaintyAnalysis"
|
|
type="text"
|
|
readonly="readonly"
|
|
ng-model="selectRow.toBeEdit.UncertaintyAnalysis">
|
|
</div>
|
|
<div class="validation_block"></div>
|
|
</div>
|
|
|
|
<div class="survey_btn_wrap">
|
|
<div class="survey_content" style="float: right">
|
|
<div class="row">
|
|
<button class="header_button"
|
|
style="float: left; margin-left: 16px;"
|
|
ng-click="save()"
|
|
ng-show="lcaDetail.Status==1"
|
|
ng-disabled="editForm.$invalid">
|
|
@Resource.StaticLabelGlobal_Save
|
|
</button>
|
|
@*<input type="text" ng-model="editForm.$error" />
|
|
<p></p>
|
|
<input type="text" ng-model="editForm.$invalid" />*@
|
|
</div>
|
|
</div>
|
|
@*<div class="validation_block"></div>*@
|
|
</div>
|
|
</table-edit-modal>
|
|
</form>
|
|
@* end of the detail modal form *@
|
|
|
|
<table-edit-modal display-option="fileImportModal">
|
|
<div file-import-process import-option="fileImportOptions"></div>
|
|
</table-edit-modal>
|
|
<table-edit-modal display-option="quoteModal">
|
|
<div></div>
|
|
<div quote quote-options="quoteOptions"></div>
|
|
</table-edit-modal>
|
|
|
|
<simapro display-option="simaproOption">
|
|
<div>@Resource.PartNumber : <span ng-bind="selectRow.getSelected().PartNumber"></span></div>
|
|
<div>@Resource.MaterialName : <span ng-bind="selectRow.getSelected().Name"></span></div>
|
|
</simapro>
|
|
|
|
<table-edit-modal display-option="modalUpdateOption">
|
|
|
|
</table-edit-modal>
|
|
@*<div class="footnote">
|
|
@Html.Raw(@Resource.FootnoteRefrigerant.Replace("\r\n", "<br>"))
|
|
</div>*@
|
|
</div>
|
|
</div>
|