demo20230512/Areas/Lca/Views/Detail/Index/Detail.cshtml
2023-05-12 10:20:28 +08:00

238 lines
11 KiB
Plaintext

@using Resources
@*
this view is responsibe for display Product and Organization LCA
*@
<div class="add_survey_body" ng-controller="LCADetailController" lca-detail>
<div class="survey_info">
<div class="title" ng-hide="lcaDetail.isProductLCA">@Resource.StaticLabelLCAInfo</div>
<div class="title" ng-show="lcaDetail.isProductLCA">@Resource.StaticLabelProductLCAInfo</div>
<div class="survey_content">
<div class="row">
<label class="col-sm-2 col-form-label">@Resource.LCAname</label>
<div class="col col-sm-4">
<input type="text" disabled ng-model="lcaDetail.LCAname" />
</div>
</div>
@*End CFT-26*@
<div class="row">
<label class="col-sm-2 col-form-label">@Resource.LCAStartDate</label>
<div class="col">
<input type="text" disabled value="{{ lcaDetail.StartDate | date: 'yyyy/MM/dd' }}" />
</div>
<label class="col-sm-2 col-form-label">@Resource.LCAEndDate</label>
<div class="col">
<input type="text" disabled value="{{ lcaDetail.EndDate | date: 'yyyy/MM/dd' }}" />
</div>
</div>
<div class="row">
<label class="col-sm-2 col-form-label">@Resource.Starter</label>
<div class="col">
<input type="text" ng-model="lcaDetail.LCAStarter" name="uCreater" />
</div>
<label class="col-sm-2 col-form-label">@Resource.SurveyJob</label>
<div class="col">
<input type="text" ng-model="lcaDetail.LCAStarterJob" />
</div>
</div>
<div class="row">
<label class="col-sm-2 col-form-label">@Resource.Department</label>
<div class="col">
<input type="text" ng-model="lcaDetail.LCAStarterDepartment" />
</div>
<label class="col-sm-2 col-form-label">@Resource.PhoneNumber</label>
<div class="col">
<input type="text" ng-model="lcaDetail.LCAStarterPhone" />
</div>
</div>
<div class="row">
<label class="col-sm-2 col-form-label">@Resource.UserEmail</label>
<div class="col">
<input type="email" ng-model="lcaDetail.LCAStarterEmail" />
</div>
</div>
<div class="row" ng-show="lcaDetail.isProductLCA">
<label class="col-sm-2 col-form-label">@Resource.StaticLabelStaffTotalWorkHour</label>
<div class="col">
<input type="number" step="any"
ng-model="lcaDetail.FabProductionHour"
name="FabProductionHour" />
</div>
<label class="col-sm-2 col-form-label">@Resource.StaticLabelProductionTotalWorkHour</label>
<div class="col input-group" style="flex-wrap: nowrap !important">
<input type="number" step="any"
ng-model="lcaDetail.ProductProductionHour"
name="ProductProductionHour" />
<div class="input-group-append">
<span class="unit">hr</span>
</div>
</div>
</div>
<div class="row" ng-show="lcaDetail.isProductLCA">
<label class="col-sm-2 col-form-label">@Resource.ProductLCAFabProductionWeight</label>
<div class="col input-group" style="flex-wrap: nowrap !important">
<input type="number" step="any"
ng-model="lcaDetail.FabProductionWeight" />
<div class="input-group-append">
<span class="unit">kg</span>
</div>
</div>
<label class="col-sm-2 col-form-label">@Resource.ProductLCAFabProductionArea</label>
<div class="col input-group" style="flex-wrap: nowrap !important">
<input type="number" step="any" ng-model="lcaDetail.FabProductionArea" />
<div class="input-group-append">
<span class="unit">m2</span>
</div>
</div>
</div>
<div class="row">
<label class="col-sm-2 col-form-label">@Resource.StaticLabelCertificationCompany</label>
<div class="col col-sm-4">
<input type="text" ng-disabled="true" ng-model="certificationConpamy.Name" />
</div>
<label ng-show="pcr" class="col-sm-2 col-form-label">PCR</label>
<div ng-show="pcr" class="col">
<input type="text" disabled ng-model="pcr.DisplayName" />
</div>
</div>
<div class="row">
<label class="col-sm-2 col-form-label">@Resource.DescriptionAndExplanation</label>
<div class="col">
<textarea class="form-control" rows="3" ng-model="lcaDetail.Description" name="uDescription"></textarea>
</div>
</div>
<div class="survey_content" style="float: right"
ng-show="lcaDetail.Status==1||lcaDetail.Status==0">
<div class="save_LCAInfo_btn" ng-click="updateLCA(lcaDetail.isProductLCA)">
@Resource.StaticLabelGlobal_Save
</div>
<div class="save_LCAInfo_result_msg">{{saveResultMsg}}</div>
</div>
</div>
</div>
<div class="survey_info" ng-show="lcaDetail.isProductLCA">
<div class="title">
@Resource.StaticLabelSubjectProductInfo
</div>
<div class="survey_content">
<div class="row">
<label class="col-sm-2 col-form-label">@Resource.StaticLabelSubjectProductName</label>
<div class="col">
<input type="text" ng-disabled="true"
ng-model="product.Name" />
</div>
</div>
<div class="row">
<label class="col-sm-2 col-form-label">@Resource.StaticLabelSubjectProductSerialNumber</label>
<div class="col">
<input type="text" ng-disabled="true"
ng-model="product.SerialNumber" />
</div>
<label class="col-sm-2 col-form-label">@Resource.StaticLabelSubjectProductPcsPerYear</label>
<div class="col input-group" style="flex-wrap: nowrap !important">
<input type="number" step="any"
ng-model="lcaDetail.ProductProductionPcs" />
<div class="input-group-append">
<span class="unit">pcs</span>
</div>
</div>
</div>
<div class="row">
<label class="col-sm-2 col-form-label">@Resource.StaticLabelSubjectProductWeight</label>
<div class="col input-group" style="flex-wrap: nowrap !important">
<input type="number" step="any" ng-disabled="true"
ng-model="product.Weight" />
<div class="input-group-append">
<span class="unit">kg</span>
</div>
</div>
<label class="col-sm-2 col-form-label">@Resource.StaticLabelSubjectProductAreaSize</label>
<div class="col input-group" style="flex-wrap: nowrap !important">
<input type="number" step="any" ng-disabled="true"
ng-model="product.AreaSize" />
<div class="input-group-append">
<span class="unit">m2</span>
</div>
</div>
</div>
<div class="row">
<label class="col-sm-2 col-form-label">@Resource.CustomerPartNumber</label>
<div class="col">
<input type="text" disabled ng-model="lcaDetail.CustomerPartNumber" />
</div>
</div>
<div class="row">
<label class="col-sm-2 col-form-label">@Resource.StaticLabelSubjectProductSpec</label>
<div class="col">
<input type="text" ng-disabled="true"
ng-model="product.SpecDescription" />
</div>
</div>
<div class="row">
<label class="col-sm-2 col-form-label">@Resource.ProductEcoFriendlySymbol</label>
<div class="col">
<input type="text" ng-disabled="true" ng-model="product.EcoFriendlySymbol" />
</div>
</div>
<div class="row">
<label class="col-sm-2 col-form-label">@Resource.ProductEcoFriendlyDescription</label>
<div class="col">
<input type="text" ng-disabled="true" ng-model="product.EcoFriendlyDescription" />
</div>
</div>
</div>
</div>
<div class="survey_info">
<div class="title">
@Resource.StaticLabelFabInfo
</div>
<div class="survey_content">
<div class="row">
<label class="col-sm-2 col-form-label">@Resource.FabName</label>
<div class="col col-sm-4">
<input type="text" ng-disabled="true" ng-model="fab.Name" />
</div>
</div>
<div class="row">
<label class="col-sm-2 col-form-label">@Resource.FabPhone</label>
<div class="col">
<input type="text" ng-disabled="true"
ng-model="fab.Phone" required />
</div>
<label class="col-sm-2 col-form-label">@Resource.IsIso14064Passed</label>
<div class="col">
<select class="form-select"
disabled="disabled"
ng-model="fab.IsIso14064Passed"
ng-options="option.value as option.text for option in isoOptions"></select>
</div>
</div>
<div class="row">
<label class="col-sm-2 col-form-label">@Resource.FabAddress</label>
<div class="col">
<input type="text" ng-disabled="true" ng-model="fab.Address" required />
</div>
</div>
</div>
</div>
</div>