public ActionResult IrmaHomeEnscoCapPartial(IrmaHomeModel model) { string[] configSalt = CommonMethods.GetIrmaConfig().Where(c => (c.ConfigKey == "SaltString" || c.ConfigKey == "bytePermutation1" || c.ConfigKey == "bytePermutation2" || c.ConfigKey == "bytePermutation3" || c.ConfigKey == "bytePermutation4") && c.IsActive == true).Select(c => c.ConfigValue).ToArray(); string key = HttpContext.Session.SessionID + "_UserSessionInfo"; UserSession userSession = (UserSession)HttpContext.Session[key]; string culture = System.Globalization.CultureInfo.CurrentCulture.TwoLetterISOLanguageName.ToUpper(); //if (info != null) // culture = info.Language; if (userSession == null) { return(RedirectToAction("Index", "Login", new { area = "Common" })); } string enscoPassport = userSession.Passport; string ensPassportId = Encryption.Encrypt(enscoPassport, configSalt); string tlcCapURL = string.Empty; IRMA_ConfigurationModel oConfig = CommonMethods.GetIrmaConfig().Where(c => c.ConfigKey == "TLCCapUrl" && c.IsActive == true).FirstOrDefault(); if (oConfig != null) { tlcCapURL = oConfig.ConfigValue; } //string url = "http://*****:*****@" EnscoPassportNo= ""{0}"" ", this.UserId)); return(PartialView("IrmaHomeEnscoCapPartial")); }
public ActionResult IrmaHomeEnscoPassportTasksIsolationPartial(IrmaHomeModel model) { DataTableModel dt = this.GetDataTable("Ensco.Models.OpenEiModel", "Ensco.Irma.Data.vw_OpenEi"); dt.Dataset = dt.Dataset.Where(string.Format(@" PassportId={0} ", UtilitySystem.CurrentMyUserId)); return(PartialView("IrmaHomeEnscoPassportTasksIsolationPartial", dt)); }
public ActionResult MyPassport(Nullable <int> UserId) { int userId = (UserId == null) ? UtilitySystem.CurrentUserId : (int)UserId; IrmaHomeModel irmaHome = IrmaServiceSystem.GetLandingPageInfo(userId); irmaHome.Id = userId; Session["IrmaHomeModel"] = irmaHome; DataSet ds = this.GetDataSet("select * from vw_TLCPersonnelSummary where EnscoPassportNo='" + this.UserId + "'"); this.ViewBag.TimeAt = ds; return(View(irmaHome)); }
public ActionResult IrmaHomeEnscoPassportInfoPartial(IrmaHomePassportModel model) { IrmaHomeModel irmaHome = (IrmaHomeModel)Session["IrmaHomeModel"]; return(PartialView("IrmaHomeEnscoPassportInfoPartial", irmaHome.UserInfo)); }
public ActionResult IrmaHomeEnscoPobPartial(IrmaHomeModel model) { IrmaHomeModel irmaHome = (IrmaHomeModel)Session["IrmaHomeModel"]; return(PartialView("IrmaHomeEnscoPobPartial", irmaHome)); }
public ActionResult IrmaHomeEnscoPassportTasksCapaPartial(IrmaHomeModel model) { DataTableModel dt = this.GetDataTable("Ensco.Models.IrmaCapaModel", "Ensco.Irma.Data.IrmaCapa"); return(PartialView("IrmaHomeEnscoPassportTasksCapaPartial", dt)); }