461 lines
22 KiB
Plaintext
461 lines
22 KiB
Plaintext
@* the select function is provided by select-row directive*@
|
|
<div ng-controller="LCAWasteWaterCtrl" 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: 0px;">
|
|
<div header-content-layout>
|
|
|
|
<div style="margin: 10px 0 0 0;" ng-show="lcaDetail.isProductLCA">
|
|
<label for="Allocation">@Resource.Allocation</label>
|
|
<select name="AllocationN" id="Allocation"
|
|
ng-model="Allocation" style="width:130px"
|
|
ng-change="onAllocationChange(Allocation)"
|
|
ng-disabled="lcaDetail.Status==5"
|
|
class="table_text_select">
|
|
<option value="-1">-- @Resource.StaticLabelGlobal_Select --</option>
|
|
<option value="99">@Resource.AllocationNon</option>
|
|
<option value="0">@Resource.AllocationWeight</option>
|
|
<option value="1">@Resource.AllocationAreaSize</option>
|
|
<option value="2">@Resource.AllocationPcsPerYear</option>
|
|
<option value="3">@Resource.AllocationEconomic</option>
|
|
<option value="4">@Resource.AllocationWorkHour</option>
|
|
</select>
|
|
<label for="Ratio">@Resource.Ratio {{Ratio}} </label>
|
|
</div>
|
|
|
|
</div>
|
|
<div header-content-layout style="margin-top:10px;">
|
|
|
|
@*header content layout provide the general function like mouse over and background image*@
|
|
<div class="header_image_button"
|
|
ng-style="{ backgroundImage: headerLayout.header_image1 }"
|
|
ng-show="lcaDetail.Status<5"
|
|
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_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">
|
|
|
|
<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 | filter : { Type: 0 }), 'csv')"
|
|
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.PollutionCategory</th>
|
|
<th></th>*@
|
|
<th>@Resource.WaterQualityCMD</th>
|
|
@*<th>@Resource.WasteWaterScalar</th>*@
|
|
<th>@Resource.Parameter</th>
|
|
<th>@Resource.ParameterUnit</th>
|
|
<th>@Resource.ParaDesc</th>
|
|
<th>@Resource.MataDataDQI</th>
|
|
<th>@Resource.KgCO2e</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody ng-mouseleave="setHoverColumnRow(-1, -1, -1)">
|
|
<tr class="survey_order_table_row"
|
|
ng-repeat="row in filtered = (model | filter : { Type: 0 } | filter : searchText | smarterLimitTo : 10 : (currentPage - 1) * 10 )"
|
|
ng-class="{ selected: row == selectRow.getSelected() }"
|
|
ng-click="selectRow.select(row)"
|
|
ng-dblclick="editProcess(row)">
|
|
@*<td ng-bind="row.PollutionCategory"></td>
|
|
<td ng-bind="row.ProcessingPattern"></td>*@
|
|
@*<td ng-bind="row.WaterCMD || 0" align="right"></td>*@
|
|
<td ng-bind="row.Scalar" align="right"></td>
|
|
<td ng-bind="row.ParameterValue" align="right"></td>
|
|
<td ng-bind="row.Unit"></td>
|
|
<td ng-bind="row.ParameterDescription"></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 ng-bind="row.KgCO2e" align="right"></td>
|
|
</tr>
|
|
<tr style="border-bottom: solid 1px rgb(214, 214, 214);">
|
|
<td ng-show="filtered.length == 0">
|
|
@Resource.NoData
|
|
</td>
|
|
</tr>
|
|
<tr style="background-color: #F5F5F5" ng-show="(model | filter : { Type: 0 }).length != 0">
|
|
<td></td>
|
|
<td></td>
|
|
<td></td>
|
|
<td></td>
|
|
<td></td>
|
|
<td align="right">{{sumKgCO2e | number:4}}</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
@* end of the body of index *@
|
|
|
|
<page passed-total-page="Math.ceil((model | filter : { Type: 0 }).length / 10)" passed-current-page="currentPage"></page>
|
|
|
|
<div class="summary">
|
|
<table class="table" style="table-layout: fixed;">
|
|
<thead>
|
|
<tr class="table-active">
|
|
<th></th>
|
|
<th></th>
|
|
<th></th>
|
|
<th></th>
|
|
<th>@Resource.PollutionCategory</th>
|
|
<th>@Resource.KgCO2e</th>
|
|
<th ng-show="lcaDetail.isProductLCA">@Resource.AllocatedKgCO2e</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr ng-show="model.length > 0" style="background-color: #F5F5F5"
|
|
ng-repeat="sum in summary">
|
|
<td></td>
|
|
<td></td>
|
|
<td></td>
|
|
<td></td>
|
|
<td ng-bind="sum.PollutionCategory"></td>
|
|
<td align="right">{{sum.totalKgCO2e|number:4}}</td>
|
|
<td ng-show="lcaDetail.isProductLCA" align="right">{{sum.totalKgCO2e * Ratio |number:4}}</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
@* 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.PollutionCategory
|
|
</label>
|
|
<div class="col col-sm-8">
|
|
<select name="pollutionCategory"
|
|
required
|
|
ng-model="selectRow.toBeEdit.PollutionCategory"
|
|
ng-options="value for (key, value) in pollutionCategories">
|
|
<option value="">-- @Resource.StaticLabelGlobal_Select</option>
|
|
</select>
|
|
</div>
|
|
<div class="validation_block">
|
|
<div ng-show="editForm.pollutionCategory.$dirty">
|
|
<small ng-show="editForm.pollutionCategory.$error.required">
|
|
@Resource.SelectValidateMsg
|
|
</small>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<label class="col-sm-4 col-form-label">
|
|
@Resource.TooltipProcessingPatterns
|
|
<span tooltip-placement="right" class="tooltip-directive" tooltip="@Resource.TooltipProcessingPatterns"></span>
|
|
</label>
|
|
<div class="col col-sm-8">
|
|
<select name="processingPattern"
|
|
required
|
|
ng-model="selectRow.toBeEdit.ProcessingPattern"
|
|
ng-options="value for (key, value) in processingPatterns">
|
|
<option value="">-- @Resource.StaticLabelGlobal_Select --</option>
|
|
</select>
|
|
</div>
|
|
<div class="validation_block">
|
|
<div ng-show="editForm.processingPattern.$dirty">
|
|
<small ng-show="editForm.processingPattern.$error.required">
|
|
@Resource.SelectValidateMsg
|
|
</small>
|
|
</div>
|
|
</div>
|
|
</div>*@
|
|
|
|
@*<div class="row">
|
|
<label class="col-sm-4 col-form-label">
|
|
@Resource.WaterQualityBOD
|
|
<span tooltip-placement="right" class="tooltip-directive" tooltip="@Resource.TooltipWaterQualityBOD"></span>
|
|
</label>
|
|
<div class="col col-sm-8">
|
|
<input name="waterBod" type="number" ng-model="selectRow.toBeEdit.WaterBOD" />
|
|
</div>
|
|
<div class="validation_block">
|
|
<div ng-show="editForm.waterBod.$dirty">
|
|
<small ng-show="editForm.waterBod.$error.number">
|
|
@Resource.NumberValidateMsg
|
|
</small>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<label class="col-sm-4 col-form-label">
|
|
@Resource.WaterQualityCOD
|
|
<span tooltip-placement="right" class="tooltip-directive" tooltip="@Resource.TooltipWaterQualityCOD"></span>
|
|
</label>
|
|
<div class="col col-sm-8">
|
|
<input name="waterCod" type="number" step="any" ng-model="selectRow.toBeEdit.WaterCOD" />
|
|
</div>
|
|
<div class="validation_block">
|
|
<div ng-show="editForm.waterCod.$dirty">
|
|
<small ng-show="editForm.waterCod.$error.number">
|
|
@Resource.NumberValidateMsg
|
|
</small>
|
|
</div>
|
|
</div>
|
|
</div>*@
|
|
|
|
<div class="row">
|
|
<label class="col-sm-4 col-form-label">
|
|
@Resource.WaterQualityCMD
|
|
<span tooltip-placement="right" class="tooltip-directive" tooltip="@Resource.TooltipWaterQualityCMD"></span>
|
|
</label>
|
|
<div class="col col-sm-8">
|
|
@*<input name="waterCmd" type="number" step="any" ng-model="selectRow.toBeEdit.WaterCMD" />*@
|
|
<input name="waterCmd" type="number" step="any" ng-model="selectRow.toBeEdit.Scalar" required placeholder="@Resource.RequiredMessage"/>
|
|
</div>
|
|
<div class="validation_block">
|
|
<div ng-show="editForm.waterCmd.$dirty">
|
|
<small ng-show="editForm.waterCmd.$error.number">
|
|
@Resource.NumberValidateMsg
|
|
</small>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<label class="col-sm-4 col-form-label">
|
|
@Resource.Parameter
|
|
</label>
|
|
<div class="col col-sm-8">
|
|
<input type="number" step="any" ng-model="selectRow.toBeEdit.ParameterValue"
|
|
ng-change="updateKgCO2e(selectRow.toBeEdit)" required placeholder="@Resource.RequiredMessage">
|
|
<div class="header_image_button simapro-image-button"
|
|
ng-click="selectSimaproProcess(selectRow.toBeEdit, null, false)">
|
|
</div>
|
|
</div>
|
|
<div class="validation_block"></div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<label class="col-sm-4 col-form-label">
|
|
@Resource.ParameterUnit
|
|
</label>
|
|
<div class="col col-sm-8">
|
|
<input name="Unit"
|
|
type="text"
|
|
ng-model="selectRow.toBeEdit.Unit">
|
|
</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.ParameterDescription">
|
|
</div>
|
|
<div class="validation_block"></div>
|
|
</div>
|
|
|
|
@*<div class="row">
|
|
<label class="col-sm-4 col-form-label">
|
|
@Resource.WasteWaterScalar
|
|
<span tooltip-placement="right" class="tooltip-directive" tooltip-html-unsafe="@Html.Raw(@Resource.TooltipWasteWaterScalar.Replace("\r\n", "<br>"))"></span>
|
|
</label>
|
|
<div class="col col-sm-8">
|
|
<input type="number" step="any" readonly="readonly" ng-model="selectRow.toBeEdit.Scalar" />
|
|
</div>
|
|
<div class="validation_block"></div>
|
|
</div>*@
|
|
|
|
<div class="row">
|
|
<label class="col-sm-4 col-form-label">
|
|
@Resource.MataDataDQI
|
|
</label>
|
|
<div class="col col-sm-8">
|
|
<select name="dqi"
|
|
required
|
|
ng-model="selectRow.toBeEdit.DQI">
|
|
<option value="">-- @Resource.StaticLabelGlobal_Select --</option>
|
|
<option value="0">@Resource.MetaDataDQI1</option>
|
|
<option value="1">@Resource.MetaDataDQI2</option>
|
|
<option value="2">@Resource.MetaDataDQI3</option>
|
|
</select>
|
|
</div>
|
|
<div class="validation_block">
|
|
<div ng-show="editForm.dqi.$dirty">
|
|
<small ng-show="editForm.dqi.$error.required">
|
|
@Resource.SelectValidateMsg
|
|
</small>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
@*<div class="row">
|
|
<label class="col-sm-4 col-form-label">
|
|
@Resource.DQIDescription
|
|
<span tooltip-placement="right" class="tooltip-directive" tooltip="@Resource.TooltipDQIDescription"></span>
|
|
</label>
|
|
<div class="col col-sm-8">
|
|
<input type="text" ng-model="selectRow.toBeEdit.DQIDescription">
|
|
</div>
|
|
<div class="validation_block"></div>
|
|
</div>*@
|
|
|
|
<div class="row">
|
|
<label class="col-sm-4 col-form-label">
|
|
@Resource.Notes
|
|
</label>
|
|
<div class="col col-sm-8">
|
|
<input type="text" ng-model="selectRow.toBeEdit.Description">
|
|
</div>
|
|
<div class="validation_block"></div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<label class="col-sm-4 col-form-label">
|
|
@Resource.KgCO2e
|
|
<span tooltip-placement="right" class="tooltip-directive" tooltip="@Resource.TooltipKgCO2e"></span>
|
|
</label>
|
|
<div class="col col-sm-8">
|
|
<input type="number" step="any" readonly="readonly" ng-model="selectRow.toBeEdit.KgCO2e" />
|
|
</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="dataQualityShow(selectRow.getSelected())"
|
|
ng-show="isEdit && lcaDetail.isProductLCA">
|
|
@Resource.DataQualityLevel
|
|
</button>
|
|
<button class="header_button"
|
|
style="float: left; margin-left: 16px;"
|
|
ng-click="save()"
|
|
ng-show="lcaDetail.Status<5"
|
|
ng-disabled="editForm.$invalid">
|
|
@Resource.StaticLabelGlobal_Save
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</table-edit-modal>
|
|
</form>
|
|
@* end of the detail modal form *@
|
|
|
|
<simapro display-option="simaproOption" filterOption="14">
|
|
<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="fileImportModal">
|
|
<div file-import-process import-option="fileImportOptions"></div>
|
|
</table-edit-modal>
|
|
|
|
<quality display-option="dataQualityOption">
|
|
</quality>
|
|
|
|
<table-edit-modal display-option="quoteModal">
|
|
<div></div>
|
|
<div quote quote-options="quoteOptions"></div>
|
|
</table-edit-modal>
|
|
<div class="footnote">
|
|
@Html.Raw(@Resource.FootnoteWasteWater.Replace("\r\n", "<br>"))
|
|
</div>
|
|
</div>
|
|
</div> |