Ejemplo n.º 1
0
 public ActionResult Index()
 {
     _objCurrentInfo            = new CurrentInfo();
     ViewBag.CompanyCode        = _objCurrentInfo.GetCompanyCode();
     ViewBag.LoggedUserName     = _objCurrentInfo.GetUserName();
     ViewBag.LoggedEmployeeName = _objCurrentInfo.GetEmployeeName();
     ViewBag.loggedUserTypeName = _objCurrentInfo.GetUserTypeName();
     ViewBag.RequestUserCode    = _objCurrentInfo.GetUserCode();
     return(View());
 }
Ejemplo n.º 2
0
        public string GetGrievanceURL()
        {
            CurrentInfo _objCurrInfo = new CurrentInfo();
            string      LoginParams  = string.Empty;
            string      GrievanceUrl = string.Empty;

            try
            {
                CompanyDetails lstcompdetails = new CompanyDetails();
                lstcompdetails.Company_Code    = _objCurrInfo.GetCompanyCode();
                lstcompdetails.Region_Code     = _objCurrInfo.GetRegionCode();
                lstcompdetails.Region_Name     = _objCurrInfo.GetRegionName();
                lstcompdetails.User_Code       = _objCurrInfo.GetUserCode();
                lstcompdetails.Employee_Code   = _objCurrInfo.GetEmployeeCode();
                lstcompdetails.Employee_Number = _objCurrInfo.GetEmployeeNumber();
                lstcompdetails.Employee_Name   = _objCurrInfo.GetEmployeeName();
                lstcompdetails.UserName        = _objCurrInfo.GetUserName();
                lstcompdetails.User_Type_Code  = _objCurrInfo.GetUserTypeCode();
                lstcompdetails.User_Type_Name  = _objCurrInfo.GetUserTypeName();
                lstcompdetails.Role_Id         = 0;


                LoginParams = JsonConvert.SerializeObject(lstcompdetails);
                byte[] LoginParamsEncode = System.Text.Encoding.UTF8.GetBytes(LoginParams);
                LoginParams = Convert.ToBase64String(LoginParamsEncode);


                GrievanceUrl = LoginParams;
                return(GrievanceUrl);
            }
            catch (Exception ex)
            {
                DataControl.Impl.ExceptionHandler.WriteLog(ex, null);
                return(string.Empty);
            }
        }