Dyncraft MVC

EWI : Electronic Work Instruction

BOM: Build of Material

NCP:Non Conformance Part

TBD: To be Determind 

AddTechnology.cshtml

Technology.cshtml




ManageTechnology.cshtml

    [Authorize(Roles = "SG-DYNLOU-UAM-DEV-Hose21mFittingVolume-Edit")]

EWI_ADMIN >_Navigation.js(Controllers\API\App_NavController.cs)
 //Uri uri = new Uri(HttpContext.Current.Request.Url.AbsoluteUri);
 Uri uri = new Uri("https://dynlou.na.paccar.com/EWI/DashBoard/DashBoard");
 string host = uri.Scheme + Uri.SchemeDelimiter + uri.Host + ":" + uri.Port;
 string host2 = "http://" + HttpContext.Current.Request.Url.Authority;
// string host3 = uri.Scheme + Uri.SchemeDelimiter + HttpContext.Current.Request.Url.Authority;

EWI_ADMIN >_Navigation.js(\Scripts\PageScripts\_Navigation.js)

  let url = location.href;
  let prefix = url.includes('/EWI/') ? '/EWI' : '';

  var appuri = prefix + '/Controllers/API/App_Nav/AppNav'
  var reporturi = prefix + '/Controllers/API/App_Nav/ReportNav'
  var opsuri = prefix + '/Controllers/API/App_Nav/OpsNav'
  var produri = prefix + '/Controllers/API/App_Nav/ProdNav'
  var areasetupuri = prefix + '/Controllers/API/App_Nav/AreaSetupNav'




  [HttpPost] //SG-DYNLOU-EWI-Admins
  //[Authorize(Roles = "Administrator, PowerUser")]
  [Authorize(Roles = "SG-DYNLOU-UAM-DEV-EWI_Assembly-ADMIN-MasterAssemblies-Edit")]
  //[Authorize(Roles = "SG-DYNLOU-EWI-Admins")]


--------------
 [OutputCache(Duration = 0)]
// [Authorize(Roles = "SG-DYNLOU-UAM-DEV-EWI_Assembly-ADMIN-MasterAssemblies-Edit")]
 [Authorize(Roles = "SG-DYNLOU-EWI-Admins")]


Comments

Popular posts from this blog

Travel RESUME CV

PTE