Untitled
unknown
plain_text
2 years ago
10 kB
9
Indexable
{% include 'Home_eVP_PhotoCSS' %} {%if user and user.parentcustomerid.Id %} {% assign vendor = entities.account[user.parentcustomerid.Id] %} {%endif%} {% for choice in vendor.evp_registrationtype %} {% if choice.Value == "790550001" %} {% assign hideEproButton = true %} {% endif %} {% endfor %} <div class="home-content"> <div class="jumbotron"> <div class="container"> <h1>Welcome to the North Carolina electronic Vendor Portal!</h1> <p> The North Carolina electronic Vendor Portal (eVP) is the State of North Carolina's system to connect vendors with state government organizations that purchase goods and services. </p> </div> </div> <div class="container breathing-room"> <div class="row" style="display: flex; flex-wrap: wrap;"> <div class="col-sm-6 col-xs-12" style="display: flex; flex-wrap: wrap;"> <div class="panel panel-info" style="display: flex; flex-wrap: wrap;"> <div class="panel-heading text-center" style="flex-basis: 100%"> <h2> <span class="glyphicon glyphicon-globe home-tab-icon" aria-hidden="true"></span> Discover </h2> </div> <div class="panel-body"> <a class="btn btn-primary btn-block btn-look " href="/solicitations">Browse Solicitations</a> <h3 class="bold-heading">Discover how North Carolina is working for you</h3> <p>Search for business opportunities in North Carolina's official online repository for state advertisements for competitive procurements.</p> <a class="btn btn-primary btn-block btn-look " href="/vendors">Browse Vendors</a> <h3 class="bold-heading">Find vendors working for your community</h3> <p>Search for vendors in North Carolina's official vendor directory including vendor registration details and North Carolina certified historically underutilized business and small business enterprises.</p> {% if hideEproButton != true %} <h2> </h2> {% endif %} </div> </div> </div> <div class="col-sm-6 col-xs-12" style="display: flex; flex-wrap: wrap;"> <div class="panel panel-info" style="display: flex; flex-wrap: wrap;"> <div class="panel-heading text-center" style="flex-basis: 100%"> <h2> {% if user %} {% if user.parentcustomerid.Id and vendor.statuscode.value != '3' %} <span class="glyphicon glyphicon-edit home-tab-icon" aria-hidden="true"></span> Manage {% else %} <span class="glyphicon glyphicon-edit home-tab-icon" aria-hidden="true"></span> Register {% endif %} {% else %} <span class="glyphicon glyphicon-edit home-tab-icon" aria-hidden="true"></span> Register {% endif %} </h2> </div> <div class="panel-body"> {% if user %} {%if user.parentcustomerid.Id and vendor.statuscode.value != '3' %} <a class="btn btn-primary btn-block btn-look" href="/vendor">Your Account</a> {% else %} <a class="btn btn-primary btn-block btn-look" href="/vendor-registration">Complete Registration</a> {% endif %} {% else %} <a class="btn btn-primary btn-block btn-look" href="/SignIn?returnUrl=%2F">Sign In or Register</a> {% endif %} <h3 class="bold-heading">Join a growing community of North Carolina vendors</h3> <p>eVP provides a self-service portal where vendors can register to: </p> <ul> <li> Participate in electronic procurement activities. </li> <li> Participate in the state's <a href="https://ncadmin.nc.gov/businesses/historically-underutilized-businesses-hub" target="_blank">Historically Underutilized Business program (HUB)</a> and the <a href="https://ncadmin.nc.gov/businesses/historically-underutilized-businesses-hub/hub-certification/ncsbe-certification" target="_blank">North Carolina Small Business Enterprise program (NCSBE)</a>. </li> <li> Receive information on upcoming bids. </li> </ul> <div col-md-12 bg-light id="divhubncsbe" style="display:none"> <a class="btn btn-primary btn-block btn-look" style="" id="btnhubreg">HUB Registration</a> <a class="btn btn-primary btn-block btn-look" style="" id="btnncsbereg">NCSBE Registration</a> {% if hideEproButton != true %} <a class="btn btn-primary btn-block btn-look" style="" id="btneproreg">eProcurement Registration</a> {% endif %} </div> <br> <br> </div> </div> </div> </div> </div> </div> <script> var type=""; $(document).ready(function() { var userroles="{{user.roles}}"; var customerid="{{user.parentcustomerid.Id}}"; var vendorstatus="{{vendor.statuscode.value}}" if(((userroles.indexOf("Read Only"))>-1)||((userroles.indexOf("Account Maintenance")>-1))) { if(customerid!=""&&vendorstatus!= '3'&&(userroles.indexOf("Account Owner"))>-1) $("#divhubncsbe").show(); else $("#divhubncsbe").hide(); } else if(customerid!=""&&vendorstatus != '3'&&(userroles.indexOf("Account Owner"))>-1) $("#divhubncsbe").show(); else $("#divhubncsbe").hide(); $("#btnhubreg").on("click", function(){ var vendorid="{{user.parentcustomerid.id}}" retrievevendorinfo(vendorid,"hub"); }) $("#btnncsbereg").on("click", function(){ var vendorid="{{user.parentcustomerid.id}}" retrievevendorinfo(vendorid,"ncsbe"); }) $("#btneproreg").on("click", function(){ var vendorid="{{user.parentcustomerid.id}}" retrievevendorinfo(vendorid,"epro"); }) }); function retrievevendorinfo(vendor,type) { webapi.safeAjax({ type: "GET", url: "/_api/accounts?$select=evp_registrationtype&$filter=accountid eq "+vendor, contentType: "application/json", success: function (res) { if (res.value.length > 0) { registrationtype=res.value[0].evp_registrationtype; if(type=="hub") { if(registrationtype.indexOf("790550002")>-1) window.location.href="/vendor/certifications" else { var vendorid="{{user.parentcustomerid.id}}" updatevenor(vendorid,"hub",registrationtype) } } else if(type=="ncsbe") { if(registrationtype.indexOf("790550003")>-1) window.location.href="/vendor/certifications" else { var vendorid="{{user.parentcustomerid.id}}" updatevenor(vendorid,"ncsbe",registrationtype) } } else if(type=="epro"){ var vendorid="{{user.parentcustomerid.id}}" updatevenor(vendorid,"epro",registrationtype); } } } }); } function updatevenor(vendorid,type,registrationtype) { var jsondata=""; if(type=="hub") { jsondata=JSON.stringify({ "evp_registrationtype":registrationtype+",790550002" }) } else if(type=="ncsbe") { jsondata=JSON.stringify({ "evp_registrationtype":registrationtype+",790550003" }) } else if(type=="epro") { jsondata=JSON.stringify({ "evp_registrationtype":registrationtype+",790550001" }) } webapi.safeAjax({ type: "PATCH", url: "/_api/accounts("+vendorid+")", contentType: "application/json", data:jsondata, success: function (res) { if (type=="epro") window.location.href="/vendor/TOU/" else window.location.href="/vendor/certifications" } }); } (function (webapi, $) { function safeAjax(ajaxOptions) { var deferredAjax = $.Deferred(); shell.getTokenDeferred().done(function (token) { // add headers for AJAX if (!ajaxOptions.headers) { $.extend(ajaxOptions, { headers: { "__RequestVerificationToken": token } }); } else { ajaxOptions.headers["__RequestVerificationToken"] = token; } $.ajax(ajaxOptions) .done(function (data, textStatus, jqXHR) { validateLoginSession(data, textStatus, jqXHR, deferredAjax.resolve); }).fail(deferredAjax.reject); //AJAX }).fail(function () { deferredAjax.rejectWith(this, arguments); // on token failure pass the token AJAX and args }); return deferredAjax.promise(); } webapi.safeAjax = safeAjax; })(window.webapi = window.webapi || {}, jQuery) </script>
Editor is loading...
Leave a Comment