demo20230512/Areas/Lca/Views/Detail/OtherCompound.cshtml

122 lines
6.4 KiB
Plaintext
Raw Normal View History

2023-05-12 10:20:28 +08:00
@using Resources
@model Weee.ViewModels.Lca.LcaOtherCompoundViewModel
@{
ViewBag.Title = "OtherCompound";
Layout = "~/Areas/Lca/Views/Shared/_LcaLayout.cshtml";
}
@*Html.Partial("~/Views/Partial/LCA/DetailLayout.cshtml")*@
<div class="survey_form">
<div class="survey_form_body" style="width: 84%; margin-right: 0;" lca-detail>
@if (false)//暫時隱藏
{
<div class="survey_form_filter" >
<form ng-hide="isHideSheetHeader">
<div class="form-row">
<div class="col">
<input type="text" class="form-control" aria-label="Default" aria-describedby="inputGroup-sizing-default"
ng-model="sheetHeader.SheetFillerName" ng-readonly="!sheetHeaderForm.editable" placeholder="@Resource.StaticLabelFillerName">
</div>
<div class="col">
<input type="text" class="form-control" aria-label="Default" aria-describedby="inputGroup-sizing-default"
ng-model="sheetHeader.Phone" ng-readonly="!sheetHeaderForm.editable" placeholder="@Resource.StaticLabelUserPhoneNumber">
</div>
<div class="col">
<input type="text" class="form-control" aria-label="Default" aria-describedby="inputGroup-sizing-default"
ng-model="sheetHeader.Department" ng-readonly="!sheetHeaderForm.editable" placeholder="@Resource.StaticLabelUserDepartment">
</div>
<div class="survey_order_btn"
ng-click="editSheetHeader()"
ng-show="!sheetHeaderForm.editable">@Resource.UpdateSheetHeader</div>
<div class="survey_order_btn"
ng-click="saveSheetHeader()"
ng-show="sheetHeaderForm.editable">@Resource.StaticLabelGlobal_Save</div>
<div class="survey_order_btn"
ng-click="cancelEditSheetHeader()"
ng-show="sheetHeaderForm.editable">@Resource.StaticLabelGlobal_Cancel</div>
<div class="sheetheader-result-msg">{{ sheetHeaderForm.resultMsg }}</div>
</div>
<div class="form-row" style="margin: 20px 0px; justify-content: flex-end">
@*CFT-89*@
<div class="survey_order_btn"
ng-click="toGenerateReport()"
ng-show="lcaDetail.Status == 1"
@*ng-show="true"*@>
@Resource.StartCreateReport
</div>
<div class="survey_order_btn"
ng-click="uploadZipReport(lcaDetail.ID)"
ng-show="lcaDetail.Status != 5"
@*ng-show="true"*@>
@Resource.UploadZipReport
</div>
<div class="survey_order_btn"
ng-click="downloadZipReport(lcaDetail.ID)"
ng-show="lcaDetail.Status != 1 && lcaDetail.Status != 2"
@*ng-show="true"*@
>
@Resource.DownloadZipReply
</div>
<div class="survey_order_btn"
ng-click="toWaitState()"
ng-show="lcaDetail.Status == 1">
@Resource.StaticLabelCompleteLCAAndWaitVerification
</div>
<div class="survey_order_btn"
ng-click="toProcessState()"
ng-show="lcaDetail.Status == 3">
@Resource.StaticLabelModifyData
</div>
<div class="survey_order_btn"
ng-click="toCompleteState()"
ng-show="lcaDetail.Status == 4 && lcaDetail.hasPCR || (lcaDetail.Status == 4 && !lcaDetail.isProductLCA)">
@*CFT-38*@@Resource.StartCreateReport
</div>
</div>
<div style="margin-top: 2px;">
@*<div id="download-generated-report">
<div class="survey_order_btn" ng-show="lcaDetail.Status == 1">
<span><a href="#">@Resource.CarbonFootprintReport@Resource.DownloadLink</a></span>
</div>
</div>*@
</div>
<hr />
</form>
</div>
}
@Html.Partial("~/Areas/lca/Views/Detail/OtherCompound/OtherCompound.cshtml", Model)
@*<div ng-include="IncludeTemplate">
</div>*@
</div>
@Html.Partial("~/Areas/lca/Views/Detail/OtherCompound/side_bar.cshtml")
@*<side-bar>
</side-bar>*@
</div>
@if (false) // todo 暫時隱藏
{
<table-edit-modal display-option="reportUploadOption" style="display:none">
<form name="editForm">
<div class="row">
<label class="col-sm-4 col-form-label">@Resource.UploadZipReport</label>
<input class="col col-sm-8" type="file" file read-file="reportUploadOption.selectFile(file)" />
</div>
<div class="row">
<label class="col-sm-4 prompt-msg" style="color: red">
@Resource.ZipFileOnly
</label>
<div class="col" id="upload-file-result-msg"></div>
</div>
<div class="survey_btn_wrap">
<div class="survey_content" style="float: right">
<div class="row">
<button class="header_button" ng-click="uploadZipReportPost()">@Resource.StaticLabelGlobal_Upload</button>
</div>
</div>
</div>
</form>
</table-edit-modal>
}