demo20230512/Views/Partial/templates/quote.cshtml

40 lines
1.4 KiB
Plaintext
Raw Normal View History

2023-05-12 10:20:28 +08:00
@*
this template is bound to Quote.js directive
*@
<div class="row">
<label class="col-sm-4 col-form-label">@Resource.StaticLabelReferenceData</label>
<div class="col col-sm-8">
<select ng-model="selectedLCA"
ng-options="item.ID+' '+item.Description for item in lcaList">
<option value="">- @Resource.StaticLabelGlobal_Select -</option>
</select>
</div>
</div>
@*<div class="table_edit_row">
<div class="title">@Resource.StaticLabelReferenceData</div>
<div class="input">
<select ng-model="selectedLCA"
ng-options="item.Description for item in lcaList">
<option value="">- @Resource.StaticLabelGlobal_Select -</option>
</select>
</div>
</div>*@
<div>可引用資料數: {{selectedLCA.quoteResult.length}}</div>
<div ng-show="error">{{error}}</div>
<div ng-transclude></div>
<div class="row">
<button class="header_button"
style="float: left; margin-left: 16px;"
ng-click="quote(selectedLCA)"
ng-show="selectedLCA.quoteResult.length>0">
@Resource.StaticLabelGlobal_Save
</button>
<button class="header_button"
style="float: left; margin-left: 16px;"
ng-click="fetchQuoteData(selectedLCA)"
ng-show="selectedLCA&&!selectedLCA.quoteResult">
@Resource.StaticLabelReferenceData
</button>
</div>