public JsonResult GetTPApprovalMenuAccess() { CurrentInfo _objcurrentInfo = new CurrentInfo(); BLDashBoardLanding objDash = new BLDashBoardLanding(_objcurrentInfo.GetUserTypeCode()); return(Json(objDash.GetTPApprovalMenuAccessList(_objcurrentInfo.GetUserTypeCode()), JsonRequestBehavior.AllowGet)); }
//Beat Plan Creation Screen public ActionResult CreateBeatPlan() { ViewBag.Company_Code = _objCurrentInfo.GetCompanyCode(); ViewBag.Company_Id = _objCurrentInfo.GetCompanyId(); ViewBag.Region_Code = _objCurrentInfo.GetRegionCode(); ViewBag.User_Code = _objCurrentInfo.GetUserCode(); ViewBag.User_Type_Code = _objCurrentInfo.GetUserTypeCode(); return(View()); }
public ActionResult DailyReporting(string dcrActualDate) { ViewBag.CompanyCode = _objCurrentInfo.GetCompanyCode(); ViewBag.RegionCode = _objCurrentInfo.GetRegionCode(); ViewBag.UserCode = _objCurrentInfo.GetUserCode(); ViewBag.UserTypeCode = _objCurrentInfo.GetUserTypeCode(); ViewBag.dcrdate = dcrActualDate; ViewBag.UserName = _objCurrentInfo.GetUserName(); ViewBag.RegionName = _objCurrentInfo.GetRegionName(); return(View()); }
public string GetWideAngleURL() { CurrentInfo objCurInfo = new CurrentInfo(); string wideAngleUrl = string.Empty; try { string companyCode = objCurInfo.GetCompanyCode(); string userTypeCode = objCurInfo.GetUserTypeCode(); string userCode = objCurInfo.GetUserCode(); string waUrl = objCurInfo.GetWideAngleUrl(); string sessionId = objCurInfo.GetSessionId(); string regionCode = objCurInfo.GetRegionCode(); string userName = objCurInfo.GetUserName(); if (!string.IsNullOrEmpty(waUrl)) { wideAngleUrl = "" + waUrl + "?User_Code=" + userCode + "&Comp_Code=" + companyCode + "&Session_Id=" + sessionId + "&Return_URL=" + Request.Url.Authority + "&User_Type_Code=" + userTypeCode + "&Region_Code=" + regionCode + "&User_Name=" + userName + ""; } return(wideAngleUrl); } catch (Exception ex) { ErrorLog.LogError(ex, "GetWideAngleURL()"); return(ex.Message.ToString()); } }
public string GetOneLibURL() { CurrentInfo objCurInfo = new CurrentInfo(); string oneLibUrl = string.Empty; try { string companyCode = objCurInfo.GetCompanyCode(); string userTypeCode = objCurInfo.GetUserTypeCode(); string userCode = objCurInfo.GetUserCode(); string oneLibRedirectionUrl = objCurInfo.GetOneLibUrl(); string sessionId = objCurInfo.GetSessionId(); string regionCode = objCurInfo.GetRegionCode(); string userName = objCurInfo.GetUserName(); if (!string.IsNullOrEmpty(oneLibRedirectionUrl)) { oneLibUrl = "" + oneLibRedirectionUrl + "?User_Code=" + userCode + "&Comp_Code=" + companyCode + "&Session_Id=" + sessionId + "&Return_URL=" + Request.Url.Authority + "&User_Type_Code=" + userTypeCode + "&Region_Code=" + regionCode + "&User_Name=" + userName + ""; } return(oneLibUrl); } catch (Exception ex) { DataControl.Impl.ExceptionHandler.WriteLog(ex, null); return(string.Empty); } }
public string GetCRMURL() { CurrentInfo _objCurrInfo = new CurrentInfo(); string LoginParams = string.Empty; string CRMURL = string.Empty; try { CompanyDetails lstcompdetails = new CompanyDetails(); lstcompdetails.Company_Code = _objCurrInfo.GetCompanyCode(); lstcompdetails.Region_Code = _objCurrInfo.GetRegionCode(); lstcompdetails.User_Code = _objCurrInfo.GetUserCode(); lstcompdetails.Employee_Code = _objCurrInfo.GetEmployeeCode(); lstcompdetails.Employee_Number = _objCurrInfo.GetEmployeeNumber(); lstcompdetails.UserName = _objCurrInfo.GetUserName(); lstcompdetails.User_Type_Code = _objCurrInfo.GetUserTypeCode(); LoginParams = JsonConvert.SerializeObject(lstcompdetails); byte[] LoginParamsEncode = System.Text.Encoding.UTF8.GetBytes(LoginParams); LoginParams = Convert.ToBase64String(LoginParamsEncode); CRMURL = LoginParams; return(CRMURL); } catch (Exception ex) { DataControl.Impl.ExceptionHandler.WriteLog(ex, null); return(string.Empty); } }
public string GetHrmsURL() { CurrentInfo _objCurrInfo = new CurrentInfo(); string LoginParams = string.Empty; string HRMS_Url = string.Empty; string HRMS_RedirectingUrl = string.Empty; try { HRMS_RedirectingUrl = _objCurrInfo.GetHRMURL(); CompanyDetails lstcompdetails = new CompanyDetails(); lstcompdetails.Company_Code = _objCurrInfo.GetCompanyCode(); lstcompdetails.Region_Code = _objCurrInfo.GetRegionCode(); lstcompdetails.User_Code = _objCurrInfo.GetUserCode(); lstcompdetails.Employee_Code = _objCurrInfo.GetEmployeeCode(); lstcompdetails.Employee_Number = _objCurrInfo.GetEmployeeNumber(); lstcompdetails.UserName = _objCurrInfo.GetUserName(); lstcompdetails.User_Type_Code = _objCurrInfo.GetUserTypeCode(); LoginParams = JsonConvert.SerializeObject(lstcompdetails); byte[] LoginParamsEncode = System.Text.Encoding.UTF8.GetBytes(LoginParams); LoginParams = Convert.ToBase64String(LoginParamsEncode); if (!string.IsNullOrEmpty(HRMS_RedirectingUrl)) { HRMS_Url = "" + HRMS_RedirectingUrl + "?SSID=" + LoginParams; } return(HRMS_Url); } catch (Exception ex) { DataControl.Impl.ExceptionHandler.WriteLog(ex, null); return(string.Empty); } }
public JsonResult GetAckRecords() { CurrentInfo objCC = new CurrentInfo(); string companyCode = objCC.GetCompanyCode(); string usertypecode = objCC.GetUserTypeCode(); string userCode = objCC.GetUserCode(); BLCodeofConduct objDCC = new BLCodeofConduct(); List <MVCModels.CCOverlayModel> lstCCForm = new List <MVCModels.CCOverlayModel>(); lstCCForm = objDCC.GetAckRecords(companyCode, usertypecode, userCode).ToList(); return(Json(lstCCForm, JsonRequestBehavior.AllowGet)); }
public ActionResult Request(string regionCode, int?stosId) { _objCurrentInfo = new CurrentInfo(); ViewBag.CompanyCode = _objCurrentInfo.GetCompanyCode(); ViewBag.RequestRegionCode = _objCurrentInfo.GetRegionCode(); ViewBag.RequestRegionName = _objCurrentInfo.GetRegionName(); ViewBag.RequestUserCode = _objCurrentInfo.GetUserCode(); ViewBag.RequestUserName = _objCurrentInfo.GetUserName(); ViewBag.RequestUserTypeName = _objCurrentInfo.GetUserTypeName(); ViewBag.RequestUserTypeCode = _objCurrentInfo.GetUserTypeCode(); ViewBag.StosId = stosId; ViewBag.SelectedUser = regionCode; return(View()); }
public ActionResult STOSEmailTrigger() { _objCurrentInfo = new CurrentInfo(); ViewBag.CompanyCode = _objCurrentInfo.GetCompanyCode(); ViewBag.RequestRegionCode = _objCurrentInfo.GetRegionCode(); ViewBag.RequestRegionName = _objCurrentInfo.GetRegionName(); ViewBag.RequestUserCode = _objCurrentInfo.GetUserCode(); ViewBag.RequestUserName = _objCurrentInfo.GetUserName(); ViewBag.RequestUserTypeName = _objCurrentInfo.GetUserTypeName(); ViewBag.RequestUserTypeCode = _objCurrentInfo.GetUserTypeCode(); return(View()); }
public JsonResult GetAPIServices() { try { Repository.APIRepository objAPIRepo = new Repository.APIRepository(); DataSet ds = objAPIRepo.GetAPIServices(_objCur.GetCompanyCode(), _objCur.GetUserTypeCode()); return(Json(_objJSON.Serialize(ds), JsonRequestBehavior.AllowGet)); } catch (Exception ex) { Dictionary <string, string> dicObj = new Dictionary <string, string>(); DataControl.Impl.ExceptionHandler.WriteLog(ex: ex, dic: dicObj); return(null); } }
public string IsEDMenuAvaailable() { CurrentInfo objCurInfo = new CurrentInfo(); BL_WideAngle objWA = new BL_WideAngle(); string companyCode = objCurInfo.GetCompanyCode(); string userTypeCode = objCurInfo.GetUserTypeCode(); if (objWA.IsEDAvailable(companyCode, userTypeCode)) { return("Y"); } else { return("N"); } }
public string urlEncodeing() { MVCModels.UserInfoModel objuser = new MVCModels.UserInfoModel(); CurrentInfo objCurInfo = new CurrentInfo(); string userParam = string.Empty; objuser.Company_Code = objCurInfo.GetCompanyCode(); objuser.User_Code = objCurInfo.GetUserCode(); objuser.User_Type_Code = objCurInfo.GetUserTypeCode(); objuser.Region_Code = objCurInfo.GetRegionCode(); objuser.Company_Id = objCurInfo.GetCompanyId(); objuser.User_Details = objCurInfo.GetUserName() + " (" + objCurInfo.GetUserTypeName() + ")"; objuser.Is_Mobile = "NO"; userParam = Newtonsoft.Json.JsonConvert.SerializeObject(objuser); byte[] LoginParamsEncode = System.Text.Encoding.UTF8.GetBytes(userParam); userParam = Convert.ToBase64String(LoginParamsEncode); return(userParam); }
public ActionResult MasterDataHandler(string SSID) { UserInfoModel _objcomp = new UserInfoModel(); if (!string.IsNullOrEmpty(SSID)) { byte[] EncodedParams = Convert.FromBase64String(SSID); string Params = System.Text.Encoding.UTF8.GetString(EncodedParams); _objcomp = Newtonsoft.Json.JsonConvert.DeserializeObject <UserInfoModel>(Params); ViewBag.CompanyCode = _objcomp.Company_Code; ViewBag.UserCode = _objcomp.User_Code; ViewBag.UTypeCode = _objcomp.User_Type_Code; ViewBag.RegionCode = _objcomp.Region_Code; ViewBag.UserDetails = _objcomp.User_Details; ViewBag.Company_Id = _objcomp.Company_Id; ViewBag.BatchProcessingId = _objcomp.BatchProcessingId; ViewBag.BP_Guid = _objcomp.BP_Guid; ViewBag.LoadType = "Mail"; ViewBag.FileProcessId = _objcomp.FileProcessId; ViewBag.ViewType = _objcomp.ViewType; } else { CurrentInfo _objCurrentInfo = new CurrentInfo(); ViewBag.CompanyCode = _objCurrentInfo.GetCompanyCode(); ViewBag.UserCode = _objCurrentInfo.GetUserCode(); ViewBag.UTypeCode = _objCurrentInfo.GetUserTypeCode(); ViewBag.RegionCode = _objCurrentInfo.GetRegionCode(); ViewBag.UserDetails = _objCurrentInfo.GetCompanyCode(); ViewBag.Company_Id = _objCurrentInfo.GetCompanyId(); ViewBag.LoadType = "Screen"; ViewBag.BatchProcessingId = 155; ViewBag.BP_Guid = "32EAA70B-89C3-42CC-9F19-F8BA55224531"; ViewBag.FileProcessId = 66; ViewBag.ViewType = "MasterData"; } return(View()); }
public ActionResult DetailedfeedbackScreen(string SSID) { if (!string.IsNullOrEmpty(SSID)) { string parameters = System.Text.ASCIIEncoding.ASCII.GetString(System.Convert.FromBase64String(SSID)); DieticianModel obj = Newtonsoft.Json.JsonConvert.DeserializeObject <DieticianModel>(parameters); ViewBag.CompanyCode = obj.Company_Code; ViewBag.RegionCode = obj.Region_Code; ViewBag.UserCode = obj.User_Code; ViewBag.UserTypeCode = obj.User_Type_Code; ViewBag.UserName = obj.User_Name; ViewBag.RegionName = obj.Region_Name; } else { ViewBag.CompanyCode = _objCurrentInfo.GetCompanyCode(); ViewBag.RegionCode = _objCurrentInfo.GetRegionCode(); ViewBag.UserCode = _objCurrentInfo.GetUserCode(); ViewBag.UserTypeCode = _objCurrentInfo.GetUserTypeCode(); ViewBag.UserName = _objCurrentInfo.GetUserName(); ViewBag.RegionName = _objCurrentInfo.GetRegionName(); } return(View()); }
public int IsOneLibAvailable() { try { CurrentInfo objCurInfo = new CurrentInfo(); string companyCode = objCurInfo.GetCompanyCode(); string userTypeCode = objCurInfo.GetUserTypeCode(); DataControl.HiDoctorFactoryClasses.BL_OneLib objBLOneLib = new DataControl.HiDoctorFactoryClasses.BL_OneLib(); if (objBLOneLib.IsOneLibAvailable(companyCode, userTypeCode)) { return(1); } else { return(0); } } catch (Exception ex) { DataControl.Impl.ExceptionHandler.WriteLog(ex, null); return(0); } }
public ActionResult Index() { _objCurrentInfo = new CurrentInfo(); ViewBag.CompanyCode = _objCurrentInfo.GetCompanyCode(); ViewBag.RequestRegionCode = _objCurrentInfo.GetRegionCode(); ViewBag.RequestRegionName = _objCurrentInfo.GetRegionName(); ViewBag.RequestUserCode = _objCurrentInfo.GetUserCode(); ViewBag.RequestUserName = _objCurrentInfo.GetUserName(); ViewBag.RequestUserTypeName = _objCurrentInfo.GetUserTypeName(); ViewBag.RequestUserTypeCode = _objCurrentInfo.GetUserTypeCode(); DataControl.BLUser _objBlUser = new DataControl.BLUser(); List <MVCModels.HiDoctor_Master.UserModel> lstUser = new List <MVCModels.HiDoctor_Master.UserModel>(); lstUser = _objBlUser.GetImmediateChildUserForTree(_objCurrentInfo.GetCompanyCode(), _objCurrentInfo.GetUserCode()).ToList(); if (lstUser.Count > 0) { ViewBag.ShowTeam = "YES"; } else { ViewBag.ShowTeam = "NO"; } return(View()); }