public static string GetPriceList(this InsiderEntity i) { string overridePriceList = i.OverridePriceList(); if (overridePriceList != "") { return(overridePriceList); } string userPriceList = i.PriceList; string prefix = Functions.GetIntlPrefix(userPriceList); if (prefix == "SA") { userPriceList = userPriceList.Substring(3); prefix = ""; } string companyNo = i.GetCompanyNo(); if (i.IsConsultant() && (companyNo == Constants.COMPANY_NO.ASIA || companyNo == Constants.COMPANY_NO.MIDDLE_EAST)) { return(prefix + "EU"); } else if (i.MSRP == 1) { return(prefix + "EU"); } else if (i.GetLoginType() == Constants.LOGIN.EDUCATOR && i.ECC == "US" && i.PriceList == "EU") { return("GOVS"); } return(userPriceList); }
public static string GetSupportEmail(this InsiderEntity i) { string terr = i.Territory; bool territoryInUSOrCanada = Functions.TerritoryInCanada(terr) || Functions.TerritoryInUnitedStates(terr); if (territoryInUSOrCanada) { if (i.IsEducatorK12()) { return("*****@*****.**"); } if (i.IsEducatorUniv()) { switch (terr) { case "CEN": return("*****@*****.**"); case "MA": return("*****@*****.**"); case "MW": return("*****@*****.**"); case "NE": return("*****@*****.**"); case "PNW": return("*****@*****.**"); case "SE": return("*****@*****.**"); case "SW": return("*****@*****.**"); case "EC": return("*****@*****.**"); case "WC": return("*****@*****.**"); } } } if (Functions.TerritoryInAsia(terr)) { if (i.IsEducatorK12() || i.IsEducatorUniv()) { return("*****@*****.**"); } } if (Functions.TerritoryInEurope(terr)) { if (i.IsEducatorK12() || i.IsEducatorUniv()) { return("edu-" + terr + "@extron.com"); } } if (i.IsConsultant()) { if (territoryInUSOrCanada) { return("*****@*****.**"); } if (Functions.TerritoryInEurope(terr)) { return("*****@*****.**"); } if (Functions.TerritoryInAsia(terr)) { return("*****@*****.**"); } } if (i.IsProgrammer()) { if (territoryInUSOrCanada) { return("*****@*****.**"); } } if (i.IsVerticalMarketIntegrator()) { if (territoryInUSOrCanada) { return("*****@*****.**"); } } return(terr + "*****@*****.**"); }