73 lines
3.6 KiB
Plaintext
73 lines
3.6 KiB
Plaintext
|
@using Weee.Models.ExtensionMethods
|
||
|
@using Weee.DAL
|
||
|
@using Microsoft.AspNet.Identity
|
||
|
@using System.Web.Configuration;
|
||
|
@using Weee.Models
|
||
|
@{
|
||
|
bool OrganizationOnly = Convert.ToBoolean(WebConfigurationManager.AppSettings["OrganizationOnly"]);
|
||
|
}
|
||
|
|
||
|
<div class="survey_form" ng-style="{height: Survey_Height * 28 + 24 + 'px'}" style="padding: 28px 16px;">
|
||
|
<div class="survey_form_body" ng-style="{height: sidebar.length * 28 + 'px'}" style="margin: 0; padding: 0;">
|
||
|
<div class="tab_header_main">
|
||
|
<div class="tab_header">
|
||
|
<div class="tab-toggle">
|
||
|
<div ng-init="selectedTab = 'myInterrogation'"
|
||
|
ng-class="{ active: selectedTab == 'myInterrogation' }"
|
||
|
ng-click="selectedTab = 'myInterrogation'">
|
||
|
<div class="tab">@Resource.MyInterrogation</div>
|
||
|
</div>
|
||
|
@if (@User.Identity.GetUserAccountType(new WeeeDataContext()) == ACCOUNT_TYPE.FULL_FUNCTION)
|
||
|
{
|
||
|
<div ng-class="{ active: selectedTab == 'receiveLCA' }"
|
||
|
ng-click="selectedTab = 'receiveLCA'">
|
||
|
<div class="tab">@Resource.StaticLabelReceiveLCA</div>
|
||
|
</div>
|
||
|
<div ng-class="{ active: selectedTab == 'sendLCA' }"
|
||
|
ng-click="selectedTab = 'sendLCA'">
|
||
|
<div class="tab">@Resource.StaticLabelSendLCA</div>
|
||
|
</div>
|
||
|
}
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="tab_header">
|
||
|
<div class="survey_order_btn_wrap tab-toggle">
|
||
|
<div class="survey_order_btn" ng-click="redirectToCreateOrgLca()">
|
||
|
@Resource.StaticLabelGlobal_New@Resource.StaticLabelOrganizationLCA
|
||
|
</div>
|
||
|
@if (@User.Identity.GetUserAccountType(new WeeeDataContext()) == ACCOUNT_TYPE.FULL_FUNCTION)
|
||
|
{
|
||
|
if (OrganizationOnly)
|
||
|
{
|
||
|
<div class="survey_order_btn_only" style="background-color:lightgray;">
|
||
|
@Resource.StaticLabelGlobal_New@Resource.StaticLabelProductLCA
|
||
|
</div>
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
<div class="survey_order_btn" ng-click="redirectToCreateProductLca()">
|
||
|
@Resource.StaticLabelGlobal_New@Resource.StaticLabelProductLCA
|
||
|
</div>
|
||
|
}
|
||
|
}
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="tab_content card content_bg">
|
||
|
<div style="margin: 20px">
|
||
|
<div ng-include="'@ViewBag.baseUrl/Partials/LCA-Index'" ng-show="selectedTab == 'myInterrogation'"></div>
|
||
|
@*<p>selectedTab:{{selectedTab}}</p>*@
|
||
|
@*<div ng-include="'../Partials/LCA-Receive'" ng-show="true"></div>*@
|
||
|
@*<div ng-include="'../Partials/LCA-Send'" ng-show="true"></div>*@
|
||
|
@if (@User.Identity.GetUserAccountType(new WeeeDataContext()) == ACCOUNT_TYPE.FULL_FUNCTION)
|
||
|
{
|
||
|
<div ng-include="'@ViewBag.baseUrl/Partials/LCA-Receive'" ng-show="selectedTab == 'receiveLCA'"></div>
|
||
|
<div ng-include="'@ViewBag.baseUrl/Partials/LCA-Send'" ng-show="selectedTab == 'sendLCA'"></div>
|
||
|
}
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
@*<pcr ng-init="show_pcr = false"></pcr>*@
|