demo20230512/Views/Partial/templates/simapro.cshtml
2023-05-12 10:20:28 +08:00

85 lines
4.7 KiB
Plaintext

<div class="select_simapro transition" ng-class="{show_simapro: displayOption.show}">
<div class="select_simapro_wrap">
<div class="select_simapro_left">
<div class="survey_content">
<div class="row" style="flex-direction:column; padding: 20px 10px;">
<div>
<p class="h6">@Resource.StaticLabelVersion</p>
<select ng-model="simaproVersionSelected" ng-options="sv.Version for sv in simaproVersions"
ng-change="simaproVersionChange()">
<option value="">-- @Resource.StaticLabelGlobal_Select --</option>
</select>
</div>
<div>
<p class="h6">@Resource.SimaproParametersCategory<p />
<select ng-model="simaproCategorySelected" ng-options="sc.DisplayName for sc in simaproCategories"
ng-change="simaproCategoryChange()">
<option value="">-- @Resource.StaticLabelGlobal_Select --</option>
</select>
</div>
<div>
<p class="h6">@Resource.SimaproParametersType</p>
<select ng-model="simaproTypeSelected" ng-options="sty.DisplayName for sty in simaproTypes"
ng-change="simaproTypeChange()">
<option value="">-- @Resource.StaticLabelGlobal_Select --</option>
</select>
</div>
<div style="width: 26px; height: 26px; margin-right: 0;"
ng-click="searchByEncoding(encodingTxt)">
<i class="bi bi-search"></i>
</div>
<input type="text"
ng-model="encodingTxt"
ng-change="searchByEncoding(encodingTxt)"
placeholder="@Resource.StaticLabelGlobal_Search"/>
</div>
</div>
</div>
<div class="simapro_table_wrap" ng-style="{maxHeight: simapro_table_max_height + 'px'}">
<p class="h5" ng-transclude></p>
<p class="h6" style="color: rgb(35, 173, 99); font-weight: bold;">{{simaproTypeSelected.DisplayName}}</p>
<div class="simapro_table" ng-class="{tableBottom: simaproParameters.length == 0? false: border_bottom}">
<div class="table_overflow">
<table class="table">
<thead>
<tr>
<th></th>
<th>@Resource.SimaproParametersEncoding</th>
<th>@Resource.SimaproParametersName</th>
<th>@Resource.DisplayName</th>
<th>@Resource.KgCO2e</th>
<th>@Resource.MaterialUnit</th>
<th>Project</th>
<th>@Resource.StaticLabelGlobal_Remark</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="dr in simaproParameters" ng-class="{tableBottom: !border_bottom && $last}" load-simapro>
<td>
<div style="width: 15px;">
<input type="checkbox" ng-click="selectParameter(dr)" ng-checked="dr==simaproParameterSelected" />
</div>
</td>
<td>{{dr.Encoding}}</td>
<td>{{dr.DisplayNameEN}}</td>
<td>{{dr.DisplayNameTW}}</td>
<td>{{dr.Value}}</td>
<td>{{dr.Unit}}</td>
<td>{{dr.Project}}</td>
<td style="padding: 0">{{(dr.Remark.length > 300 ? dr.Remark.substring(0, 300) : dr.Remark)}}</td>
</tr>
</tbody>
</table>
</div>
</div>
<button class="header_button simapro_done" ng-show="simaproParameterSelected" ng-click="simaproDone()">
@Resource.StaticLabelGlobal_Confirm
</button>
</div>
<div class="simapro_cancel" ng-click="closeSimapro()" style="top: 10px; right: 10px;">
<img ng-src="~/Browser_Local/img/header_image7_{{cancel_icon}}.png" ng-init="cancel_icon = 1"
ng-mouseover="cancel_icon = 2" ng-mouseleave="cancel_icon = 1" />
</div>
</div>
</div>