public static string PostRequestUrl(string companyId, string userId, string encryptedUserkey) { string str = CRMCrypto.Encrypt(CRMCheckFormat.CheckFormat(encryptedUserkey), companyId, userId); string str1 = string.Concat(CommonPage.GetConfigField("AccP_ServerName", companyId), "/WebScreenProxy/Home/ProxyRequest/?appUrl="); string str2 = CommonPage.Base64Encode(str); string str3 = string.Format("&companyId={0}&userId={1}&userKey={2}&timeout=120", companyId, userId, str2); return(string.Concat(str1, str3)); }
public static string GetOpportunityTabInfo(string logonUser, string companyDb, string compId, string emailSubject) { string configField = CommonPage.GetConfigField("AccP_CompEmail", companyDb); CommonPage.GetConfigField("AccP_ServerName", companyDb); string str = ""; string str1 = string.Concat("Select emai_emailaddress as email from Email e inner join EmailLink el on e.Emai_EmailId = el.ELink_EmailId where el.ELink_EntityId = 5 and el.ELink_RecordID = ", Convert.ToInt32(compId)); QuerySelect querySelect = new QuerySelect(); querySelect.SQLCommand = str1; querySelect.ExecuteReader(); if (!querySelect.Eof()) { str = querySelect.FieldValue("email"); } string str2 = string.Concat("Select Oppo_OpportunityId, Oppo_Description, Oppo_PrimaryCompanyId, Oppo_PrimaryPersonId From Opportunity where Oppo_Status = 'In Progress' and Oppo_PrimaryCompanyId = ", Convert.ToInt32(compId)); string str3 = string.Format("{0}|{1}|{2}|{3}&", new object[] { logonUser, str, configField, emailSubject }); QuerySelect querySelect1 = new QuerySelect(); querySelect1.SQLCommand = str2; querySelect1.ExecuteReader(); while (!querySelect1.Eof()) { string str4 = querySelect1.FieldValue("Oppo_OpportunityId"); string str5 = querySelect1.FieldValue("Oppo_Description"); string str6 = querySelect1.FieldValue("Oppo_PrimaryCompanyId"); string str7 = querySelect1.FieldValue("Oppo_PrimaryPersonId"); if (string.IsNullOrEmpty(str7)) { str7 = "0"; } string str8 = string.Format("{0},{1},{2},{3}", new object[] { str4, str5, str6, str7 }); str3 = string.Concat(str3, str8, "|"); querySelect1.Next(); } str3 = str3.Substring(0, str3.Length - 1); return(string.Format("<input id='txtOpportunityID' name='txtOpportunityID' type='hidden' value='{0}'>", str3)); }
public static string GetRequestUrl(string companyId, string userId, string appUrl) { return(string.Concat(CommonPage.GetConfigField("AccP_ServerName", companyId), "/WebScreenProxy/Home/ProxyRequest/?appUrl=", Uri.EscapeDataString(appUrl))); }