demo20230512/Views/Partial/templates/file_import.cshtml

35 lines
1.4 KiB
Plaintext
Raw Normal View History

2023-05-12 10:20:28 +08:00
<div class="table_edit_row">
<div class="title">@Resource.StaticLabelImprotBOM</div>
<div class="input">
<input type="file" style="margin-top: 5px;" file read-file="fileImportOption.fileSelected(file)" />
</div>
</div>
<div ng-show="result">
<span style="color: green; font-weight: bold;">Parse complete</span>
<div>總共匯入 : {{result.totalParsed}}</div>
<div>成功 : {{result.data.length}}</div>
<div>失敗 : {{result.errors.length}}</div>
<div ng-repeat="error in result.errors"><span ng-show="error.line">Line {{error.line}}, </span>{{error.error}}</div>
</div>
<div class="row">
<button class="header_button"
style="float: left; margin-left: 16px;"
ng-click="fileImportOption.onNextFn()"
ng-hide="(!fileImportOption.onNextFn)||hideOnNextBtn">
@Resource.StaticLabelGlobal_Next
</button>
<button class="header_button"
style="float: left; margin-left: 16px;"
ng-click="fileImportOption.onOkFn()"
ng-hide="(!fileImportOption.onOkFn)||hideOnOkBtn"
ng-disabled="edit_form.$invalid">
@Resource.StaticLabelGlobal_Save
</button>
<button class="header_button"
style="float: left; margin-left: 16px;"
ng-click="fileImportOption.onCancelFn();"
ng-hide="(!fileImportOption.onCancelFn)||hideOnCancelBtn">
@Resource.StaticLabelGlobal_Cancel
</button>
</div>