171 lines
6.4 KiB
Plaintext
171 lines
6.4 KiB
Plaintext
|
|
@using Weee.Models.ExtensionMethods
|
|
@using Weee.DAL
|
|
@using Weee.Models
|
|
@using Resources
|
|
@{
|
|
Random rnd = new Random();
|
|
}
|
|
|
|
<div class="form-row" style="margin: 20px 0px; justify-content: flex-end" ng-controller="LCAReportController">
|
|
@*CFT-89*@
|
|
@* 思納捷轉戰情室 *@
|
|
<div class="survey_order_btn" ng-click="toInsynergerHome()" ng-show="InsynergerOn">
|
|
@Resource.InsynergerUrlText
|
|
</div>
|
|
@* 盤查表 *@
|
|
<div class="survey_order_btn"
|
|
ng-click="toGenerateLCAdataReport()"
|
|
ng-show="typeof(lcaDetail.ProductID)==='undefined' || lcaDetail.ProductID==null">
|
|
@Resource.StartCreateLCAdataReport
|
|
</div>
|
|
@*<div>
|
|
lcaDetail.ProductID: {{lcaDetail.ProductID}}
|
|
</div>*@
|
|
@* 清冊 *@
|
|
<div class="survey_order_btn"
|
|
ng-click="toGenerateLCAlistReport()"
|
|
ng-show="typeof(lcaDetail.ProductID)==='undefined' || lcaDetail.ProductID==null">
|
|
@Resource.StartCreateLCAlistReport
|
|
</div>
|
|
@* 報告書 *@
|
|
<div class="survey_order_btn"
|
|
ng-click="toGenerateLCAreport()"
|
|
ng-show="(typeof(lcaDetail.ProductID)==='undefined' || lcaDetail.ProductID==null) && lcaDetail.isCompanyAdmin">
|
|
@Resource.StartCreateLCAreport
|
|
</div>
|
|
@if (@User.Identity.GetUserAccountType(new WeeeDataContext()) != ACCOUNT_TYPE.ORGANICATION12)
|
|
{
|
|
@* 風險評估表 *@
|
|
<div class="survey_order_btn"
|
|
ng-click="toGenerateRiskAssessmentReport()"
|
|
ng-show="typeof(lcaDetail.ProductID)==='undefined' || lcaDetail.ProductID==null">
|
|
@Resource.RiskAssessmentReport
|
|
</div>
|
|
}
|
|
@* 產生全部報表 (組織型) *@
|
|
@*<div class="survey_order_btn"
|
|
ng-click="toGenerateReport()"
|
|
ng-show="(typeof(lcaDetail.ProductID)==='undefined' || lcaDetail.ProductID==null) && lcaDetail.isCompanyAdmin">
|
|
@Resource.StartCreateReport
|
|
</div>*@
|
|
|
|
@* 產品型盤查表 *@
|
|
<div class="survey_order_btn"
|
|
ng-click="toGenerateLCAdataReport()"
|
|
ng-show="lcaDetail.ProductID>0">
|
|
@Resource.ProductLCAdataReport
|
|
</div>
|
|
@* 高階分析表,無此表,實為清冊的一部分 *@
|
|
@*<div class="survey_order_btn"
|
|
ng-click="toGenerateHighLevelAnalysis()"
|
|
ng-show="lcaDetail.ProductID>0">
|
|
@Resource.HighLevelAnalysis
|
|
</div>*@
|
|
@* 敏感性分析表 *@
|
|
<div class="survey_order_btn"
|
|
ng-click="toGenerateSensitivityAnalysis()"
|
|
ng-show="lcaDetail.ProductID>0">
|
|
@Resource.SensitivityAnalysis
|
|
</div>
|
|
@* 產品型清冊 *@
|
|
<div class="survey_order_btn"
|
|
ng-click="toGenerateLCAlistReport()"
|
|
ng-show="lcaDetail.ProductID>0">
|
|
@Resource.StartCreateLCAlistReport
|
|
</div>
|
|
@* 產品型報告書 *@
|
|
<div class="survey_order_btn"
|
|
@*ng-click="toGenerateLCAreport()"*@
|
|
ng-click="toGenerateProductReport()"
|
|
ng-show="lcaDetail.ProductID>0 && lcaDetail.isCompanyAdmin">
|
|
@Resource.StartCreateLCAreport
|
|
</div>
|
|
@* 產生全部報表 (產品型) *@
|
|
@*<div class="survey_order_btn"
|
|
ng-click="toGenerateProductReport()"
|
|
ng-show="lcaDetail.ProductID>0 && lcaDetail.isCompanyAdmin">
|
|
@Resource.StartCreateReport
|
|
</div>*@
|
|
|
|
@if (@User.Identity.IsCompanyAdmin(new WeeeDataContext()))
|
|
{
|
|
@* 合併清冊 *@
|
|
<div class="survey_order_btn"
|
|
ng-click="toGenerateMergedLCAlistReport()"
|
|
ng-show="(typeof(lcaDetail.ProductID)==='undefined' || lcaDetail.ProductID==null) && lcaDetail.isCompanyAdmin">
|
|
@Resource.MergedLCAlistReport
|
|
</div>
|
|
@* 合併報告書 *@
|
|
<div class="survey_order_btn"
|
|
ng-click="toGenerateMergedLCAreport()"
|
|
ng-show="(typeof(lcaDetail.ProductID)==='undefined' || lcaDetail.ProductID==null) && lcaDetail.isCompanyAdmin">
|
|
@Resource.MergedLCAreport
|
|
</div>
|
|
}
|
|
<div class="survey_order_btn"
|
|
ng-click="uploadZipReport(lcaDetail.ID,lcaDetail.isProductLCA)"
|
|
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 != 5"
|
|
@*ng-show="true"*@>
|
|
@Resource.DownloadZipReport
|
|
</div>
|
|
<div class="survey_order_btn"
|
|
ng-click="downloadZipReplyReport(lcaDetail.ID)"
|
|
@*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)"*@
|
|
<!--ng-show="lcaDetail.Status == 4">
|
|
@Resource.Complete
|
|
</div>-->
|
|
|
|
<div style="width: 100%; text-align: center; margin-top: 50px">
|
|
<span style="width:40%; display: inline-block;">
|
|
<canvas id="canvasPie"></canvas>
|
|
</span>
|
|
<span style="width:40%; display: inline-block;">
|
|
<canvas id="canvasPie2"></canvas>
|
|
</span>
|
|
</div>
|
|
|
|
<table-edit-modal display-option="reportUploadOption">
|
|
<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>
|
|
</div>
|