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

257 lines
12 KiB
Plaintext

<div class="body_content receive_tool_menu">
@*<div class="header_search">
<img class="header_image_button" src="../Browser_Local/img/header_image11_1.png" ng-click="search()">
<input class="expand" type="text" ng-model="searchText" />
</div>*@
<div style="float: left;">
<div style="float: left; line-height: 26px; margin-left: 12px;">
<label>
<input name="receiveLcaStatus" type="radio" ng-value="undefined" ng-model="selectedRadio" ng-init="selectedRadio = undefined" ng-change="updateList(selectedRadio)" />
<p ng-class="{ active: selectedRadio == undefined ? true : false }">@Resource.All</p>
</label>
</div>
<div style="float: left; line-height: 26px; margin-left: 12px;">
<label>
<input name="receiveLcaStatus" type="radio" value="已確認" ng-model="selectedRadio" ng-change="updateList(selectedRadio)" />
<p ng-class="{ active: selectedRadio == '已確認' ? true : false }">@Resource.RequestApplied</p>
</label>
</div>
<div style="float: left; line-height: 26px; margin-left: 12px;">
<label>
<input name="receiveLcaStatus" type="radio" value="!" ng-model="selectedRadio" ng-change="updateList(selectedRadio)" />
<p ng-class="{ active: selectedRadio == '!' ? true : false }">@Resource.RequestNotApplied</p>
</label>
</div>
<div style="float: left; line-height: 26px; margin-left: 12px;">
<label>
<span>@Resource.SelectLCA: </span>
<select class="selectLCA-select"
ng-model="filterByLCAID"
ng-options="item.ID as item.ID+' '+item.Description for item in [{ Description: '-Select- '}].concat((lcaList | filter: { PCRID: '!!' }))"
@*ng-options="item as item.Description for (ID, Description) in lcaList"*@
>
@*<option ng-repeat="(ID, Description) in lcaList" value="{{ID}}">{{Description}}</option>*@
</select>
</label>
</div>
</div>
</div>
<div class="body_content"
style="padding: 0; margin: 0; border-left: 1px solid rgb(35, 176, 99); border-right: 1px solid rgb(35, 176, 99); border-bottom: 1px solid rgb(35, 176, 99);"
ng-model="currentPage"
ng-init="currentPage = 1">
<div>
<!-- Table header -->
<div class="table_header_wrap" style="height: 29px;">
<div class="table_header"
style="cursor: pointer; width: 10%;">
@Resource.LCAid
</div>
<div class="table_header"
style="cursor: pointer; width: 10%;">
@Resource.PartNumber
</div>
<div class="table_header"
style="cursor: pointer; width: 15%;">
@Resource.SendTime
</div>
<div class="table_header"
style="cursor: pointer; width: 15%;">
@Resource.LCAReplyDate
</div>
<div class="table_header"
style="cursor: pointer; width: 10%;">
Replied LCAID
</div>
<div class="table_header"
style="cursor: pointer; width: 10%;">
@Resource.LCAIntentCompanyName
</div>
@*<div class="table_header"
style="cursor: pointer; width: 10%;">
@Resource.ReceiveStatus
</div>*@
<div class="table_header"
style="cursor: pointer; width: 10%;">
@Resource.MaterialSupplierCompany @Resource.LCAStatus
</div>
<div class="table_header"
style="cursor: pointer; width: 10%;">
@Resource.ReplyCarbonCoefficient
</div>
<div class="table_header"
style="cursor: pointer; width: 10%;">
</div>
</div>
<!-- Table row -->
<div class="survey_order_table_row"
style="height: 30px;"
ng-repeat="row in filteredSendRequest = (displaySendLCAList | filter : { SendLCAID: filterByLCAID } | filter : searchText) | orderBy : predicate : reverse | smarterLimitTo : 10 : (currentPage - 1) * 10">
<div>
<div class="table_text"
style="width: 10% "
ng-bind="row.SendLCAID">
</div>
<div class="table_text"
style="width: 10% "
ng-bind="row.MaterialPartNumber">
</div>
<div class="table_text"
style="width: 15% "
ng-bind="row.CreatedDate | date: 'yyyy/MM/dd HH:mm'">
</div>
<div class="table_text"
style="width: 15% "
ng-bind="row.ReplyDate | date:'yyyy/MM/dd HH:mm'">
</div>
<div class="table_text"
style="width: 10% "
ng-bind="row.RepliedLCAID">
</div>
<div class="table_text"
style="width: 10%"
ng-bind="row.MaterialSupplierName">
</div>
@*<div class="table_text"
style="width: 10%">
<span ng-if="row.ReceiverCompanyID">@Resource.Accept</span>
<span ng-if="!row.ReceiverCompanyID">@Resource.NotAccepted</span>
</div>*@
<div class="table_text"
style="width: 10%"
ng-bind="row.SupplierLCAStatus">
</div>
<div class="table_text"
style="width: 10%; text-align: right; "
ng-bind="row.RepliedValue">
</div>
</div>
<a class="table_text"
style="width: 10%; color: #23AD63; cursor: pointer"
ng-click="row.displayRequest = true;">
@Resource.StaticLabelGlobal_Detail
</a>
<table-edit-modal display-option="row.displayRequest">
<div class="row">
<div class="col-sm-4 col-form-label">@Resource.LCADescription</div>
<div class="col col-sm-8">
<input type="text" disabled ng-model="row.lcaHeader" />
</div>
</div>
<div class="row">
<div class="col-sm-4 col-form-label">@Resource.LCAStatus</div>
<div class="col col-sm-8">
<input type="text" disabled ng-model="row.lcaStatusDisplay" />
</div>
</div>
<div class="row">
<div class="col-sm-4 col-form-label">@Resource.PartNumber</div>
<div class="col col-sm-8">
<input type="text" disabled ng-model="row.MaterialPartNumber" />
</div>
</div>
<div class="row">
<div class="col-sm-4 col-form-label">@Resource.SendTime</div>
<div class="col col-sm-8">
<input type="text" disabled ng-value="row.CreatedDate | date: 'yyyy/MM/dd HH:mm'" />
</div>
</div>
@* 由於接收時間該欄位的邏輯目前與發送時間應該相同,故將該欄位隱藏 *@
@*<div class="row">
<div class="col-sm-4 col-form-label">@Resource.AcceptTime</div>
<div class="col col-sm-8">
<input type="text" disabled ng-value="row.AcceptDate | date: 'yyyy/MM/dd HH:mm'" />
</div>
</div>*@
<div class="row">
<div class="col-sm-4 col-form-label">@Resource.ReplyTime</div>
<div class="col col-sm-8">
<input type="text" disabled ng-value="row.ReplyDate | date: 'yyyy/MM/dd HH:mm'" />
</div>
</div>
<div class="row">
<div class="col-sm-4 col-form-label">@Resource.AcceptReplyTime</div>
<div class="col col-sm-8">
<input type="text" disabled ng-value="row.AcceptReplyDate | date: 'yyyy/MM/dd HH:mm'" />
</div>
</div>
<div class="row">
<div class="col-sm-4 col-form-label">@Resource.DistributionPrinciple</div>
<div class="col col-sm-8">
<input type="text" disabled ng-model="row.Distribute" />
</div>
</div>
<div class="row">
<div class="col-sm-4 col-form-label">Replied LCAID</div>
<div class="col col-sm-8">
<input type="text" disabled ng-model="row.RepliedLCAID" />
</div>
</div>
<div class="row">
<div class="col-sm-4 col-form-label">@Resource.MaterialSupplierCompanyEmail</div>
<div class="col col-sm-8">
<input type="text" disabled ng-model="row.MaterialSupplierEmail" />
</div>
</div>
<div class="row">
<div class="col-sm-4 col-form-label">@Resource.LCAIntentCompanyName</div>
<div class="col col-sm-8">
<input type="text" disabled ng-model="row.MaterialSupplierName" />
</div>
</div>
<div class="row">
<div class="col-sm-4 col-form-label">@Resource.ReplyCarbonCoefficient</div>
<div class="col col-sm-8">
<input type="text" disabled ng-model="row.RepliedValue" />
</div>
</div>
<div class="row">
<div class="col-sm-4 col-form-label">@Resource.AcceptLink</div>
<div class="col col-sm-8">
<input type="text" disabled ng-model="row.RequestLink" />
</div>
</div>
<div class="row">
<div class="col-sm-4 col-form-label">@Resource.EvidenceFile</div>
<div class="col col-sm-8">
<a style="color: rgb(89, 89, 89); padding-left: 4px;" ng-if="row.ReferenceFileLink" ng-href="{{ row.ReferenceFileLink }}">@Resource.DownloadLink</a>
<span style="padding-left: 4px;" ng-if="!row.ReferenceFileLink">@Resource.NoFile</span>
</div>
</div>
<div class="row">
<button class="header_button"
ng-show="row.CanBeDelete"
style="float: left; margin-left: 16px;"
ng-click="deleteSentRequest(row)">
@Resource.StaticLabelGlobal_Delete
</button>
</div>
<div class="row">
<button class="header_button"
ng-show="row.CanBeApply&&row.lcaStatus==1"
ng-click="acceptRepliedValue(row)"
style="float: left; margin-left: 16px;">
@Resource.UseTheFactor
</button>
</div>
<div class="row">
<button class="header_button"
ng-show="row.lcaStatus == 1 || row.lcaStatus == 3"
ng-click="resetLcaInstruction(row)">
@Resource.ResetLcaInstruction
</button>
</div>
</table-edit-modal>
</div>
</div>
</div>
<page passed-total-page="Math.ceil(filteredSendRequest.length / 10)" passed-current-page="currentPage"></page>