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); } }