/// <summary> /// Open View for HOD /// </summary> /// <returns></returns> public ActionResult bapp() { var strQuery = string.Empty; strQuery = Request.QueryString[0].ToString(); strQuery = CipherURL.Decrypt(strQuery); if (strQuery.Split('&')[1].Contains("a")) { TempData["jsonmsg"] = ApproveSod_BulkBookingRequest(strQuery); } else if (Request.QueryString[1].Trim().Equals("r")) { TempData["jsonmsg"] = RejectSod_BulkBookingRequest(strQuery); } else if (Request.QueryString[1].Trim().Equals("s")) { var bbId = Request.QueryString[2].ToString(); //TempData["bbkSelective"] = _bulkUploadRepository.GetBulkBookinDetailsData(bbId); TempData["EmpIdOfApproval"] = strQuery.Split(',')[1]; return(RedirectToAction("bbkSelective", "bulk", new { bbId = bbId })); } else if (Request.QueryString[1].Trim().Equals("Ha")) { TempData["jsonmsg"] = ApproveOnlyHHotel_BulkBookingRequest(strQuery); } return(View()); }
////sjscuser profile //public ActionResult UserProfile() //{ // return UserProfile(); // } /// <summary> /// Reset Password /// </summary> /// <returns></returns> public ActionResult ResetPassword() { var strQuery = string.Empty; TempData["UserId"] = CipherURL.Decrypt(Request.QueryString[0].ToString()); var ExpiryTime = CipherURL.Decrypt(Request.QueryString[1].ToString()); if (Convert.ToDateTime(ExpiryTime) < DateTime.Now) { TempData["jsonmsg"] = "Reset password link has been expired.Please go to Forgot Password link."; } else { var IsPwdReset = _sJsisConcernRepository.IsPwdreset(TempData.Peek("UserId").ToString().Trim()); if (IsPwdReset == "yes") { TempData["jsonmsg"] = "Sorry ! You have already reset your password."; } else { TempData["jsonmsg"] = ""; } } return(View()); }
/// <summary> /// Approval over the Email /// </summary> /// <returns></returns> public ActionResult appvendor() { var appController = DependencyResolver.Current.GetService <nsvdController>(); var strquery = CipherURL.Decrypt(Request.QueryString[0].ToString()); var BatchID = strquery.Split(',')[0]; var ApproverID = strquery.Split(',')[1]; var ApproverName = strquery.Split(',')[2]; var type = strquery.Split('&')[1].Split('=')[1]; //check if already approved or not ? var msg = string.Empty; if (type == "Approved") { msg = _vendorApprovalRepository.AppvendorList(Convert.ToInt32(BatchID), ApproverID, type); } else { msg = _vendorApprovalRepository.RejectVendorList(Convert.ToInt32(BatchID), ApproverID, type); } if (msg.Length < 32) { List <VendorModels> list = _vendorApprovalRepository.getlistasperBatchID(Convert.ToInt32(BatchID)); SendEmailToUser(list, list[0].ReqEmpName, list[0].ReqEmpEmailID, ApproverName, type); } return(View(TempData["jsonmsg"] = msg)); }
/// <summary> /// Verify Email Notifications /// </summary> /// <returns></returns> public ActionResult Verify() { TempData["jsonmsg"] = verifyEmailNotification(CipherURL.Decrypt(Request.QueryString[0].ToString())); return(View()); }