CINXE.COM
Elections and Elected Candidates
<!DOCTYPE html> <html> <head> <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta charset="UTF-8"> <meta name="format-detection" content="telephone=no"> <!-- Google tag (gtag.js) --> <script async src="https://www.googletagmanager.com/gtag/js?id=G-EZMNMBHGXD"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-EZMNMBHGXD'); </script> <!-- Google Tag Manager --> <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-5V5MNW9');</script> <!-- End Google Tag Manager --> <title>Elections and Elected Candidates</title> <!-- Dev Express CSS --> <link rel="stylesheet" href="https://cdn3.devexpress.com/jslib/22.1.3/css/dx.light.css"> <link rel="stylesheet" href="https://cdn3.devexpress.com/jslib/22.1.3/css/dx.light.compact.css"> <!-- Latest compiled and minified CSS --> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.4.1/dist/css/bootstrap.min.css" integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous"> <!-- integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" --> <link rel="stylesheet" type="text/css" href="/staticfiles/lop/assets/css/parlinfo_style.css"> <link rel="stylesheet" type="text/css" href="/staticfiles/lop/assets/css/parlinfo_header.css"> <link rel="stylesheet" type="text/css" href="/staticfiles/lop/assets/css/parlinfo_footer.css"> <link rel="stylesheet" type="text/css" href="/staticfiles/lop/assets/css/parlinfo_PageContents.css"> <link rel="stylesheet" type="text/css" href="/staticfiles/lop/assets/css/tables.css"> <link rel="stylesheet" type="text/css" href="/staticfiles/lop/assets/css/Forms.css"> <link rel="stylesheet" type="text/css" href="/staticfiles/lop/assets/css/parlinfo_responsive.css"> <link rel="stylesheet" type="text/css" href="/staticfiles/lop/assets/css/parlinfo_header_print.css" media="print"> <link rel="stylesheet" type="text/css" href="/staticfiles/lop/assets/css/parlinfo_footer_print.css" media="print"> <link rel="stylesheet" type="text/css" href="/staticfiles/lop/assets/css/parlinfo_pageContents_print.css" media="print"> <link rel="stylesheet" type="text/css" media="screen" href="/Common/Parl/Styles/ce-lop-main.min.css" /> <link rel="stylesheet" type="text/css" media="screen" href="/Common/Parl/Styles/ParlWebsite.css" /> <link rel="stylesheet" type="text/css" href="/staticfiles/lop/assets/css/parlinfo_mainsearch.css"> </head> <body> <!-- jQuery needed for DevExtreme --> <script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script> <!-- JSZIP needed for the export feature of the devextreme grid --> <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.7.1/jszip.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/babel-polyfill/7.4.0/polyfill.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/exceljs/4.1.1/exceljs.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/FileSaver.js/2.0.2/FileSaver.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.0.0/jspdf.umd.js"></script> <!-- Dev Extreme --> <script type="text/javascript" src="https://cdn3.devexpress.com/jslib/22.1.3/js/dx.all.js"></script> <!-- Localized in French --> <!--script type="text/javascript" src="https://cdn3.devexpress.com/jslib/22.1.3/js/localization/dx.messages.fr.js"></script--> <script type="text/javascript" src="/staticfiles/lop/assets/js/DevExpress/22.1.3/dx.messages.fr.js"></script> <!-- Boot strap --> <script src="https://cdn.jsdelivr.net/npm/bootstrap@3.4.1/dist/js/bootstrap.min.js" integrity="sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd" crossorigin="anonymous"></script> <!-- integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" --> <script type="text/javascript" src="/staticfiles/lop/assets/js/vfs_fonts.js"></script> <script type="text/javascript" src="/staticfiles/lop/assets/js/CommonFunctions.js"></script> <!-- Header - Start --> <div class="LOPHeaderContainer"> <!-- Skip to Content --> <a href="#StartofContent" class="ce-lop-skipnav sr-only sr-only-focusable __web-inspector-hide-shortcut__">Skip to main content</a> <!--LOP Header English --> <div role="banner" class="ce-lop-header hidden-print"> <div class="container"> <a href="http://www.parl.ca" target="_blank" class="ce-lop-btn pull-left">Parliament of Canada</a> <ul class="pull-right"> <li role="menuitem"> <a href="https://visit.parl.ca/sites/Visit/default/en_CA" class="ce-lop-btn-visit"> <span class="hidden-xs">Visit Parliament</span> <span class="visible-xs">Visit</span> </a> </li> <li role="menuitem"> <a id="parlwebsite-language-link" href="/sites/ParlInfo/default/fr_CA/ElectionsCirconscriptions/electionsCandidatsElus" class="ce-lop-btn-visit"> <span class="hidden-xs">Français</span> <span class="visible-xs">FR</span> </a> </li> </ul> </div> </div> <!-- Parl Navigation --> <nav role="navigation" class="ce-lop-nav hidden-print"> <div class="container"> <div class="row"> <div class="col-sm-12"> <ul class="ce-lop-nav-list"> <li><a href="https://www.sencanada.ca/en" target="_blank" class="ce-lop-nav-senate-link">Senate</a></li> <li><a href="http://www.ourcommons.ca" target="_blank" class="ce-lop-nav-hoc-link">House of Commons</a></li> </ul> </div> </div> </div> </nav> </div><!-- Google Tag Manager (noscript) --> <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-5V5MNW9" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> <!-- End Google Tag Manager (noscript) --><!-- Header - End --> <div id="parlinfo_headerrow2" class="clearfix"> <div class="container"> <h1 class="pull-left"><a href="/sites/ParlInfo/default/en_CA/">Parlinfo</a></h1> </div> </div> <div class="clearfix"></div> <nav class="navbar navbar-default"> <div class="container container-fluid"> <div> <ul class="hidden-sm hidden-xs nav navbar-nav parlinfo_defaultfontbs"> <li class="dropdown "><a class="dropdown-toggle" href="/sites/ParlInfo/default/en_CA/People">People</a> <ul class="dropdown-menu parlinfo_defaultfontsm"> <li class="dropdown-submenu"> <a class="dropdown-toggle" target="_self" href="/sites/ParlInfo/default/en_CA/People/governorGeneral">Governors General</a> </li> <li class="dropdown-submenu"> <a class="dropdown-toggle" target="_self" href="/sites/ParlInfo/default/en_CA/People/primeMinisters">Prime Ministers of Canada</a> </li> <li class="dropdown-submenu"> <a class="dropdown-toggle" target="_self" href="/sites/ParlInfo/default/en_CA/People/PMOLeadership">Leadership of the Prime Minister's Office</a> </li> <li class="dropdown-submenu"> <a class="dropdown-toggle" target="_self" href="/sites/ParlInfo/default/en_CA/People/LeadersOfficialOpposition">Leaders of the Official Opposition</a> </li> <li class="dropdown-submenu"> <a class="dropdown-toggle" target="_self" href="/sites/ParlInfo/default/en_CA/People/parliamentarians">Parliamentarians</a> </li> <li class="dropdown-submenu"> <a class="dropdown-toggle" target="_self" href="/sites/ParlInfo/default/en_CA/People/committeeMembers">Parliamentary Committee Membership</a> </li> <li class="dropdown-submenu"> <a class="dropdown-toggle" target="_self" href="/sites/ParlInfo/default/en_CA/People/Salaries">Indemnities, Salaries and Allowances</a> </li> <li class="dropdown-submenu"> <a class="dropdown-toggle" target="_self" href="/sites/ParlInfo/default/en_CA/People/senatorsPrimeMinisters">Senators appointed on the advice of the Prime Minister</a> </li> <li class="dropdown-submenu"> <a class="dropdown-toggle" target="_self" href="/sites/ParlInfo/default/en_CA/People/Cabinet">Size of Ministries</a> </li> <li class="dropdown-submenu"> <a class="dropdown-toggle" target="_self" href="/sites/ParlInfo/default/en_CA/People/OfficersParliament">Officers and Officials of Parliament</a> </li> <li class="dropdown-submenu"> <a class="dropdown-toggle" target="_self" href="/sites/ParlInfo/default/en_CA/People/visitors">Visiting Dignitaries</a> </li> </ul> </li> <li class="dropdown "><a class="dropdown-toggle" href="/sites/ParlInfo/default/en_CA/Parliament">Parliament</a> <ul class="dropdown-menu parlinfo_defaultfontsm"> <li class="dropdown-submenu"> <a class="dropdown-toggle" target="_self" href="/sites/ParlInfo/default/en_CA/Parliament/Parliaments">Parliaments</a> </li> <li class="dropdown-submenu"> <a class="dropdown-toggle" target="_self" href="/sites/ParlInfo/default/en_CA/Parliament/parliamentsSessions">Parliaments and Sessions</a> </li> <li class="dropdown-submenu"> <a class="dropdown-toggle" target="_self" href="/sites/ParlInfo/default/en_CA/Parliament/SittingsByYear">Sittings by Calendar Year</a> </li> <li class="dropdown-submenu"> <a class="dropdown-toggle" target="_self" href="/sites/ParlInfo/default/en_CA/Parliament/throneSpeech">Speeches from the Throne</a> </li> <li class="dropdown-submenu"> <a class="dropdown-toggle" target="_self" href="/sites/ParlInfo/default/en_CA/Parliament/budgets">Budgets</a> </li> <li class="dropdown-submenu"> <a class="dropdown-toggle" target="_self" href="/sites/ParlInfo/default/en_CA/Parliament/defeatsElection">Votes in the House of Commons That Led to a Federal Election</a> </li> <li class="dropdown-submenu"> <a class="dropdown-toggle" target="_self" href="/sites/ParlInfo/default/en_CA/Parliament/recordedVotes">Recorded Votes in the House of Commons</a> </li> <li class="dropdown-submenu"> <a class="dropdown-toggle" target="_self" href="/sites/ParlInfo/default/en_CA/People/OfficersParliament">Officers and Officials of Parliament</a> </li> </ul> </li> <li class="dropdown "><a class="dropdown-toggle" href="/sites/ParlInfo/default/en_CA/Federal">Departments and Committees</a> <ul class="dropdown-menu parlinfo_defaultfontsm"> <li class="dropdown-submenu"> <a class="dropdown-toggle" target="_self" href="/sites/ParlInfo/default/en_CA/Federal/areasResponsibility">Departments and Roles 1867 - Today</a> </li> <li class="dropdown-submenu"> <a class="dropdown-toggle" target="_self" href="/sites/ParlInfo/default/en_CA/People/committeeMembers">Parliamentary Committee Membership</a> </li> <li class="dropdown-submenu"> <a class="dropdown-toggle" target="_self" href="/sites/ParlInfo/default/en_CA/Federal/committeeReports">Select List of Substantive Committee Reports</a> </li> </ul> </li> <li class="dropdown "><a class="dropdown-toggle" href="/sites/ParlInfo/default/en_CA/Parties">Political Parties</a> <ul class="dropdown-menu parlinfo_defaultfontsm"> <li class="dropdown-submenu"> <a class="dropdown-toggle" target="_self" href="/sites/ParlInfo/default/en_CA/Parties/politicalPartiesLeaders">Political Parties and Leaders</a> </li> <li class="dropdown-submenu"> <a class="dropdown-toggle" target="_self" href="/sites/ParlInfo/default/en_CA/Parties/partyOfficersExecutives">Officers of Party Caucuses and Executives of Federal Political Parties</a> </li> <li class="dropdown-submenu"> <a class="dropdown-toggle" target="_self" href="/sites/ParlInfo/default/en_CA/Parties/partyStandings">Current Party Standings</a> </li> </ul> </li> <li class="dropdown "><a class="dropdown-toggle" href="/sites/ParlInfo/default/en_CA/legislation">Legislation</a> <ul class="dropdown-menu parlinfo_defaultfontsm"> <li class="dropdown-submenu"> <a class="dropdown-toggle" target="_self" href="/sites/ParlInfo/default/en_CA/legislation/TableOfLegislation">Table of Legislation</a> </li> <li class="dropdown-submenu"> <a class="dropdown-toggle" target="_self" href="/sites/ParlInfo/default/en_CA/legislation/privateMembersBills">Private Members' Public Bills Passed by Parliament</a> </li> <li class="dropdown-submenu"> <a class="dropdown-toggle" target="_self" href="/sites/ParlInfo/default/en_CA/legislation/billsAmendedSenate">Bills Introduced in the House of Commons and Amended by the Senate</a> </li> <li class="dropdown-submenu"> <a class="dropdown-toggle" target="_self" href="/sites/ParlInfo/default/en_CA/legislation/senateBillsNotPassed">Senate bills not passed by Senate</a> </li> <li class="dropdown-submenu"> <a class="dropdown-toggle" target="_self" href="/sites/ParlInfo/default/en_CA/legislation/royalConsent">Royal Consent to Bills</a> </li> <li class="dropdown-submenu"> <a class="dropdown-toggle" target="_self" href="/sites/ParlInfo/default/en_CA/legislation/backToWork">Federal Back-to-Work Legislation</a> </li> <li class="dropdown-submenu"> <a class="dropdown-toggle" target="_self" href="/sites/ParlInfo/default/en_CA/legislation/preStudy">Pre-Study of House of Commons Bills by Senate Committees</a> </li> <li class="dropdown-submenu"> <a class="dropdown-toggle" target="_self" href="/sites/ParlInfo/default/en_CA/legislation/legalMeasuresDistricts">Legal Measures Governing Changes in Federal Electoral Districts </a> </li> <li class="dropdown-submenu"> <a class="dropdown-toggle" target="_self" href="/sites/ParlInfo/default/en_CA/legislation/otherNoRoyalAssent">Bills Sent to Other House that did not Receive Royal Assent</a> </li> </ul> </li> <li class="dropdown active"><a class="dropdown-toggle" href="/sites/ParlInfo/default/en_CA/ElectionsRidings">Elections and Ridings</a> <ul class="dropdown-menu parlinfo_defaultfontsm"> <li class="dropdown-submenu"> <a class="dropdown-toggle" target="_self" href="/sites/ParlInfo/default/en_CA/ElectionsRidings/Elections">Elections and Candidates</a> </li> <li class="dropdown-submenu"> <a class="dropdown-toggle" target="_self" href="/sites/ParlInfo/default/en_CA/ElectionsRidings/electionsElectedCandidates">Elections and Elected Candidates</a> </li> <li class="dropdown-submenu"> <a class="dropdown-toggle" target="_self" href="/sites/ParlInfo/default/en_CA/ElectionsRidings/womenCandidatesOverview">Women Candidates in General Elections - Overview</a> </li> <li class="dropdown-submenu"> <a class="dropdown-toggle" target="_self" href="/sites/ParlInfo/default/en_CA/ElectionsRidings/womenCandidates">Women Candidates in General Elections</a> </li> <li class="dropdown-submenu"> <a class="dropdown-toggle" target="_self" href="/sites/ParlInfo/default/en_CA/ElectionsRidings/womenVote">Women's Right to Vote in Canada</a> </li> <li class="dropdown-submenu"> <a class="dropdown-toggle" target="_self" href="/sites/ParlInfo/default/en_CA/ElectionsRidings/incumbentsRan">Incumbents who did seek re-election at the next General Election</a> </li> <li class="dropdown-submenu"> <a class="dropdown-toggle" target="_self" href="/sites/ParlInfo/default/en_CA/ElectionsRidings/IncumentsDidNoSeek">Incumbents who did not seek re-election at the next General Election</a> </li> <li class="dropdown-submenu"> <a class="dropdown-toggle" target="_self" href="/sites/ParlInfo/default/en_CA/ElectionsRidings/Ridings">Ridings</a> </li> <li class="dropdown-submenu"> <a class="dropdown-toggle" target="_self" href="/sites/ParlInfo/default/en_CA/legislation/legalMeasuresDistricts">Legal Measures Governing Changes in Federal Electoral Districts</a> </li> </ul> </li> </ul> <!-- Mobile MENU --> <div class="mobile visible-sm visible-xs" ><a class="hamburger-menu" href="#"><img src="/staticfiles/PublicWebsite/assets/images/Header/icon-mobile-menu.png" /></a></div> <ul class="mobile visible-sm visible-xs nav float-left navbar-nav parlinfo_defaultfontsm"> <li class="mobile-menu-item" style="display:none"><a class="" href="/sites/ParlInfo/default/en_CA/People">People</a></li> <li class="mobile-menu-item" style="display:none"><a class="" href="/sites/ParlInfo/default/en_CA/Parliament">Parliament</a></li> <li class="mobile-menu-item" style="display:none"><a class="" href="/sites/ParlInfo/default/en_CA/Federal">Departments and Committees</a></li> <li class="mobile-menu-item" style="display:none"><a class="" href="/sites/ParlInfo/default/en_CA/Parties">Political Parties</a></li> <li class="mobile-menu-item" style="display:none"><a class="" href="/sites/ParlInfo/default/en_CA/legislation">Legislation</a></li> <li class="mobile-menu-item" style="display:none"><a class="" href="/sites/ParlInfo/default/en_CA/ElectionsRidings">Elections and Ridings</a></li> </ul> </div> </div> </nav> <script type="text/javascript"> $(document).ready(function () { //Toggle Search and Share Bars from the Menubar $('.hamburger-menu').on('click', function () { $(".mobile-menu-item").slideToggle(); }); //prevent click on a with no-link $('a.no-link').on('click', function (e) { e.preventDefault(); }); var link = !!document.querySelector("link[rel='canonical']") ? document.querySelector("link[rel='canonical']") : document.createElement('link'); link.setAttribute('rel', 'canonical'); link.setAttribute('href', window.location.href); document.head.appendChild(link); }); </script> <div class="breadcrumb_container"> <ol class="breadcrumb"> <li><a href="/sites/ParlInfo/default/en_CA/">Home</a></li> <li><a href="/sites/ParlInfo/default/en_CA/ElectionsRidings">Elections and Ridings</a></li> <li class="active">Elections and Elected Candidates</li> </ol> </div> <div id="parlinfo_pagetitle"><h1>Elections and Elected Candidates</h1></div> <div id="parlinfo_contentwrapper_wide"> <div id="parlinfo_middlesection"> <div class="parlinfo_contentplaceholder"> <div class="row"> <div class="col-sm-12 col-md-12"> <script type="text/javascript"> var envURL = "http://lopdev.parl.ca"; var envEnglish = "en_CA"; var envFrench = "fr_CA"; var envLanguage = envEnglish; //Get Environment if (window.location.href.toLowerCase().indexOf("lopdev.") !== -1 || window.location.href.toLowerCase().indexOf("lpbpwemdev") !== -1) { envURL = "https://lopdev.parl.ca"; } else if (window.location.href.toLowerCase().indexOf("bdpdev.") !== -1) { envURL = "https://bdpdev.parl.ca"; } else if (window.location.href.toLowerCase().indexOf("loptest.") !== -1 || window.location.href.toLowerCase().indexOf("lpbpwemtest") !== -1) { envURL = "https://loptest.parl.ca"; } else if (window.location.href.toLowerCase().indexOf("bdptest.") !== -1) { envURL = "https://bdptest.parl.ca"; } else if (window.location.href.toLowerCase().indexOf("lop.") !== -1 || window.location.href.toLowerCase().indexOf("lpbpwem") !== -1) { envURL = "https://lop.parl.ca"; } else if (window.location.href.toLowerCase().indexOf("bdp.") !== -1) { envURL = "https://bdp.parl.ca"; } else if (window.location.href.toLowerCase().indexOf("librarydev") !== -1) { envURL = "https://librarydev.parl.gc.ca"; } else if (window.location.href.toLowerCase().indexOf("librarytest") !== -1) { envURL = "https://librarytest.parl.gc.ca"; } else if (window.location.href.toLowerCase().indexOf("library") !== -1) { envURL = "https://library.parl.gc.ca"; } else if (window.location.href.toLowerCase().indexOf("biblio") !== -1) { envURL = "https://biblio.parl.gc.ca"; } //Get Current Language if (window.location.href.toLowerCase().indexOf(envFrench.toLowerCase()) !== -1) { var envLanguage = envFrench; } /*******************************************************/ //Get a QueryStringParameter /*******************************************************/ function getQuerystringParameter(param) { var queryParams = window.location.search.substr(1).split('&').reduce(function (q, query) { var chunks = query.split('='); var key = chunks[0]; var value = chunks[1]; return (q[key] = value, q); }, {}); var myParam = queryParams[param]; if (myParam != undefined) { return decodeURIComponent(myParam.toLowerCase()); } else { return ""; } } /*******************************************************/ //Get a value based on the current Language /*******************************************************/ function getLocalizedValue(en, fr) { if (envLanguage == envFrench) { return fr; } return en; } /*******************************************************/ //Check if the client is a search bot /*******************************************************/ function botCheck(){ var botPattern = "(googlebot\/|Googlebot-Mobile|Googlebot-Image|Google favicon|Mediapartners-Google|bingbot|slurp|java|wget|curl|Commons-HttpClient|Python-urllib|libwww|httpunit|nutch|phpcrawl|msnbot|jyxobot|FAST-WebCrawler|FAST Enterprise Crawler|biglotron|teoma|convera|seekbot|gigablast|exabot|ngbot|ia_archiver|GingerCrawler|webmon |httrack|webcrawler|grub.org|UsineNouvelleCrawler|antibot|netresearchserver|speedy|fluffy|bibnum.bnf|findlink|msrbot|panscient|yacybot|AISearchBot|IOI|ips-agent|tagoobot|MJ12bot|dotbot|woriobot|yanga|buzzbot|mlbot|yandexbot|purebot|Linguee Bot|Voyager|CyberPatrol|voilabot|baiduspider|citeseerxbot|spbot|twengabot|postrank|turnitinbot|scribdbot|page2rss|sitebot|linkdex|Adidxbot|blekkobot|ezooms|dotbot|Mail.RU_Bot|discobot|heritrix|findthatfile|europarchive.org|NerdByNature.Bot|sistrix crawler|ahrefsbot|Aboundex|domaincrawler|wbsearchbot|summify|ccbot|edisterbot|seznambot|ec2linkfinder|gslfbot|aihitbot|intelium_bot|facebookexternalhit|yeti|RetrevoPageAnalyzer|lb-spider|sogou|lssbot|careerbot|wotbox|wocbot|ichiro|DuckDuckBot|lssrocketcrawler|drupact|webcompanycrawler|acoonbot|openindexspider|gnam gnam spider|web-archive-net.com.bot|backlinkcrawler|coccoc|integromedb|content crawler spider|toplistbot|seokicks-robot|it2media-domain-crawler|ip-web-crawler.com|siteexplorer.info|elisabot|proximic|changedetection|blexbot|arabot|WeSEE:Search|niki-bot|CrystalSemanticsBot|rogerbot|360Spider|psbot|InterfaxScanBot|Lipperhey SEO Service|CC Metadata Scaper|g00g1e.net|GrapeshotCrawler|urlappendbot|brainobot|fr-crawler|binlar|SimpleCrawler|Livelapbot|Twitterbot|cXensebot|smtbot|bnf.fr_bot|A6-Indexer|ADmantX|Facebot|Twitterbot|OrangeBot|memorybot|AdvBot|MegaIndex|SemanticScholarBot|ltx71|nerdybot|xovibot|BUbiNG|Qwantify|archive.org_bot|Applebot|TweetmemeBot|crawler4j|findxbot|SemrushBot|yoozBot|lipperhey|y!j-asr|Domain Re-Animator Bot|AddThis)"; var re = new RegExp(botPattern, 'i'); var userAgent = navigator.userAgent; if (re.test(userAgent)) { return true; }else{ return false; } } </script> <script type="text/javascript"> var lnLabel = ""; var lnSite = ""; var currentUrl = window.location.href; var buildUrl = ""; if (currentUrl.indexOf("?") != -1) { buildUrl = currentUrl.substring(0, currentUrl.indexOf("?")); } else { buildUrl = currentUrl; } if (window.location.href.indexOf("en_") != -1) { lnLabel = "En"; lnSite = "en_CA"; } else { if (window.location.href.indexOf("fr_") != -1) { lnLabel = "Fr"; lnSite = "fr_CA"; } } function getItem(itemEn, itemFr, locale) { var item; if (locale == "En") { item = itemEn; } else { item = itemFr; } return item; } function copyToClipboard(element) { var $temp = $("<input>"); $("body").append($temp); $temp.val($(element).text()).select(); document.execCommand("copy"); $temp.remove(); $(element).css("background-color", "#a6d4e8"); $(element).css("font-weight", "600"); } $(document).ready(function () { $("#PermalinkHeader").append(getItem("Permalink","Lien permanent",lnLabel)); $("#PermalinkCopy").append(getItem("Copy","Copier",lnLabel)); $("#PermalinkBuild").append(getItem("Create","Cr茅er",lnLabel)); $("#PermalinkClear").append(getItem("Clear","Effacer",lnLabel)); //if(document.location.search.length) { // $("#Permalink").empty().append(currentUrl); //} }); </script> <!-- .columnOption("", "filterValue", ["", ""]); --> <!-- gridName excludes the # sign because it is needed without the # in some places --> <div> <div id="TitleAndSummaryDiv"> <p><strong>Preliminary Results</strong></p> <p>As per the House of Commons Procedure and Practice (2nd ed., 2009), a general election is initiated by the Prime Minister, who visits the Governor General and presents an Instrument of Advice recommending the dissolution of Parliament. The dissolution date marks the official end of Parliament. Once the dissolution proclamation is issued, the Prime Minister presents an Order in Council (OIC) which recommends that writs of election be issued. <button class="btn" data-toggle="collapse" data-target="#ctl00_cphContent_HeaderWithoutPicture1_pnlListHeaderNotes">... </button></p> <div id="ctl00_cphContent_HeaderWithoutPicture1_pnlListHeaderNotes" class="pnlListHeaderNote collapse"> <p>This OIC recommends:</p> <ul> <li>the date of issuance of the writs (usually the date on which the OIC is presented),</li> <li>the date for the general election, set in accordance with Canada Elections Act (called polling day), and</li> <li>the date by which the writs of election confirming the successful candidate in each riding must be returned to the Chief Electoral Officer.</li> </ul> <p>The Governor General then issues the proclamation for the issuance of the writs: the date of issuance of the writs marks the official start of the election period. In most cases, the proclamation of dissolution and that of the issuance of writs occur on the same day; however, in some historical cases, there are lapses between the two events. </p> <p>The date of the election is set in accordance with the Canada Elections Act, which currently fixes election day as the third Monday of October in the fourth calendar year following the previous general election. A further stipulation of timing is the minimum duration of an election campaign, set at 36 days. Dissolution and issuance of writs of election can certainly occur earlier than the 36 day mark, resulting in a longer election period. Although the opening of Parliament is strongly associated with the official ceremony of the first sitting and the Speech from the Throne, the technical duration of a Parliament is calculated from the date of the return of writs to the date of dissolution.</p> </div> </div> </div> <div id="PermalinkSection"> <div id="PermalinkTitle"><h3 id="PermalinkHeader"></h3></div> <div id="Permalink"></div> <div id="PermalinkButton"> <button id="PermalinkBuild" class="btn btn-primary btn-primary-xs" onclick="buildPermalink()"></button> <button id="PermalinkCopy" class="btn btn-primary btn-primary-xs" onclick="copyToClipboard('#Permalink')"></button> <button id="PermalinkClear" class="btn btn-primary btn-primary-xs" onclick="clearPermalink()"></button> </div> </div> <div id="loadPanel" ></div> <div id="gridContainer" class="gridContainer" ></div> <div id="resetButton"></div> <div id="popup"><div class="popup"></div></div><script type="text/javascript"> var notes = {}, popup = null, popupOptions = { width: 400, height: 250, contentTemplate: function() { return $("<div />").append( $("<p>" + notes + "</p>") ); }, showTitle: true, title: "Notes", visible: false, dragEnabled: false, closeOnOutsideClick: true }; function showInfo(data) { notes = data; if(popup) { $(".popup").remove(); } var $popupContainer = $("<div />") .addClass("popup") .appendTo($("#popup")); popup = $popupContainer.dxPopup(popupOptions).dxPopup("instance"); popup.show(); }</script> <script type="text/javascript"> function isParliamentarian(myPersonId) { var parliamentarians = "'2546','2566','2578','2615','2681','2729','2748','2149','2171','2200','2224','2277','2288','2327','2650','2675','2691','2724','1303','1352','1376','1409','1431','1454','1564','2839','2885','2906','2920','2979','2995','3030','3057','2364','2385','2425','1','32','93','121','145','159','239','254','271','2441','2470','2496','2545','2565','2812','1238','1249','1329','1354','1378','1395','2835','2930','2947','2965','2988','740','762','1573','1602','1616','1637','1658','1719','1768','1825','1851','680','710','726','744','797','810','839','850','875','890','1619','1668','1747','1837','1559','1577','1620','1661','1722','1744','1879','3081','3127','3154','3185','1448','1502','1532','1584','1612','1642','1670','10','37','51','83','103','128','149','197','249','267','3024','3054','3067','3096','3116','3131','3175','1231','1343','1415','1433','1473','1512','1886','1902','1926','1942','1996','2036','2057','7','1550','1761','1775','1800','1836','42','86','138','152','237','284','287','326','349','370','403','417','1862','1881','961','1029','1048','1072','1109','1127','30','79','118','142','187','222','1891','1916','1929','1150','1176','834','849','865','885','912','933','958','321','366','446','473','507','526','542','3190','3215','3228','3239','3257','3308','3345','992','1011','1070','1125','1767','1789','1829','561','621','662','683','714','3365','2114','2132','2182','2198','2217','1855','1872','1889','1924','1894','1918','11','57','85','136','219','240','2234','2257','439','523','554','1934','1980','2007','2026','2051','2068','2085','17','43','66','109','139','244','261','290','629','701','720','756','3395','3414','3485','3546','3564','1200','1221','1255','1291','1314','1370','264','294','345','367','413','425','623','642','668','713','1148','1175','1217','1239','1281','1312','278','318','364','397','428','727','765','798','887','2331','2349','2389','2408','1940','1960','1983','2056','2089','2135','547','563','846','863','906','932','973','2820','945','989','1002','1027','1046','1069','1097','1123','1144','1191','1213','2286','2330','2360','2382','2404','2445','2459','627','688','729','748','827','844','1890','1961','2009','2052','2454','2495','2512','2525','2544','2559','550','568','594','630','678','702','721','783','848','1017','1040','1057','1080','1115','1167','1212','1233','881','880','902','943','999','1051','1079','1114','904','924','971','991','1003','2513','2528','1042','1061','155','182','208','238','286','323','348','1136','1156','1204','1225','1256','1319','1165','1187','368','402','416','465','553','596','620','660','1387','1407','1420','1443','1462','2172','2102','2161','2177','2190','2228','2283','2313','2337','2372','2999','3009','3031','3071','3100','3125','3182','3836','3861','3924','3941','3953','1808','1845','1869','1898','1949','1967','1997','2023','2041','2063','2083','3576','3590','3611','3627','3656','3698','3723','3738','3757','2185','2206','2265','2280','2309','2369','2106','2127','2166','2183','2199','2222','3381','649','670','2133','2173','2205','2225','2446','2461','2477','780','824','843','855','879','311','361','421','453','512','531','2250','1385','1405','1419','1474','1496','899','962','998','1787','1805','1821','1838','16','40','82','100','126','170','256','273','310','1562','1480','1570','1587','1630','1682','1865','1897','1919','2515','2534','2567','352','306','327','355','380','409','2270','2285','2321','2344','2359','2379','2419','2580','2617','2637','914','934','963','983','689','717','750','840','867','898','1058','1081','1141','1078','1110','1130','1153','1179','2174','2189','2207','2229','2254','2271','463','493','517','534','551','570','628','652','675','1230','1244','1302','1581','1613','1643','1750','404','445','469','509','528','424','456','510','544','586','2022','2039','2061','2079','1193','1220','566','2','45','72','91','115','141','1720','1757','1774','1799','1816','1834','1861','1877','1331','1358','1380','2684','2749','2773','2795','759','3420','3440','3464','3543','3573','2420','2439','2507','2553','3995','4013','4136','4160','2427','2475','2500','2521','2582','2602','2620','3603','3646','3689','3768','3797','3817','3839','2644','2673','2739','2755','2822','2847','2892','4192','4224','4246','4265','4370','4386','4422','4440','4465','2284','2300','2318','2339','2357','2374','2417','2435','2463','3863','3885','3930','3943','3993','4033','2501','2538','2605','2624','2674','2689','2909','2922','2950','2975','2991','3005','3084','3819','3842','3893','4079','4098','4135','4154','3911','3934','3996','4074','4111','4148','4167','4218','4244','4263','4337','4390','3146','3167','3184','3203','3218','3231','2608','2655','2679','2694','2728','2825','2857','4232','4255','4278','4295','4476','4490','4521','4542','4561','4585','4348','4378','4434','4473','4489','3249','3282','3306','3327','3348','3366','2902','2917','2938','2959','3015','3032','3072','4666','4684','4698','4710','4759','4785','4804','4866','3129','3170','3204','3220','4539','4584','4606','4640','4668','4688','4700','4744','4768','4794','4819','3396','3429','3456','3472','3500','3531','3574','3602','4880','4936','4951','4979','3211','3236','3298','3314','3336','3370','3400','3419','3438','3458','3260','3312','3368','3399','3671','3688','3728','3760','3867','3894','3914','3950','4867','4882','4924','4955','4999','3431','3457','3498','3550','3578','3597','3618','3968','3983','3998','4024','4042','4066','4101','4123','4141','4228','4282','4302','4327','4092','4125','3480','3507','3544','3562','3588','3625','3651','4152','4216','4235','4293','4991','4341','4357','4375','4485','4533','4552','4595','4430','4470','4344','4366','2712','2730','2815','2921','2845','3687','4248','4274','4306','4328','4343','4363','4376','4409','4432','4433','4451','4479','3120','3159','3174','3709','3730','1417','1437','1459','3679','3753','3818','3841','3866','3209','3224','4534','4550','4568','4600','1477','2912','2943','2964','3003','3021','4634','4660','4677','4797','4675','4707','4729','4755','3038','3085','3114','3242','3364','3388','3413','4530','4588','4629','3634','3672','3713','3734','3467','3497','3517','3549','3792','3816','3854','3895','3951','3973','3237','3304','3321','3344','3359','3387','3448','4471','4487','4508','4537','4553','4580','4604','3506','4799','4821','4851','4873','4889','3991','1621','3785','3828','3858','1673','4276','4942','4962','4846','4938','4997','4975','3899','3928','3974','3992','4011','2024','2047','2116','2164','2181','3880','4638','4665','4680','4697','4712','4740','4787','2192','2216','2230','2256','2276','4352','4372','1374','1390','1408','1421','4053','4080','3553','3583','3631','3663','3683','4394','4427','4493','4526','4047','4071','3739','3781','3823','3892','3931','3961','4813','4863','4875','4895','4543','4563','3980','4027','4051','4073','4093','4099','4607','4646','4673','4691','4705','4735','4121','2683','2698','4988','4756','4140','4162','4194','4230','4322','3849','3917','3972','4001','4041','4059','4087','4437','4944','2718','2737','2801','1470','4992','4112','1486','1538','3000','3019','3033','4883','4927','2302','3065','3094','4109','4127','4143','2351','2373','2414','4150','4169','4217','4236','4201','4233','1572','4973','4990','5025','4477','1614','1629','1646','1713','1772','4519','4579','4633','4778','4803','4855','4893','4916','4935','4950','4702','5100','5120','5136','5156','5198','4252','2855','2901','2913','2932','2951','5020','5077','5095','5108','5133','5153','5174','5192','5213','5245','5266','3130','3158','3172','3188','3222','3246','3268','3299','3319','5003','5058','5098','5118','5135','2434','2462','2499','2520','2535','5305','5357','5412','5424','4741','4766','4793','4815','4864','4876','4917','5248','5268','5331','5369','5409','5465','5502','5021','5043','5061','5089','5138','5157','5186','5230','5288','3007','2548','2569','2583','2604','2661','2686','2740','5314','5154','5175','5229','3097','3124','5251','5449','5474','5506','5520','5537','5554','5569','5592','3145','3180','3386','3439','3463','3502','3596','3614','4940','4984','5549','5567','5360','5383','5398','1815','1831','1860','1901','1922','1958','2003','3200','3229','3240','3259','3309','3334','3354','2834','2859','2955','3629','3657','3682','3701','3724','3742','3761','3790','2025','2050','2067','2123','7013','7108','7124','7159','7187','6491','6532','6562','6595','6382','6412','6471','6488','5608','5633','5661','5678','5711','5732','5754','5780','7169','7188','7200','7214','7231','7280','7293','7380','7199','7212','7226','7288','6664','6709','6748','6756','6774','6794','6846','7400','7426','7474','7486','7505','7564','7588','7608','5800','5817','5848','5903','5938','6036','6506','6629','6665','6685','6717','6761','6777','7344','7366','7440','7463','7478','7499','7529','6118','6149','6895','6924','7031','6801','6879','6922','6953','7037','7091','7131','7580','7605','7621','7178','7191','7216','7236','7257','7287','7341','7666','7689','7771','7813','7871','7887','7629','7648','7672','7711','7748','7772','7802','5028','5087','5121','5200','5218','5236','5257','5017','5078','5097','5111','5149','5170','5225','7816','7834','7845','7914','7937','7362','7383','7405','7443','7469','7481','7528','7552','7573','5090','5107','5146','5187','5221','5241','5262','5279','7913','7936','7950','7965','7987','8039','8067','7954','7967','8009','8030','8052','8085','8111','5263','5285','5302','5356','5386','5417','5440','5459','6196','5415','5290','5339','5359','5372','5392','5423','5590','5620','5632','5656','5693','5728','5007','5031','5075','5106','5125','5163','5189','5473','5505','5565','5588','5618','5643','5679','5713','5745','5808','5825','5857','5876','5895','5434','5513','5524','5543','5278','5320','5349','5365','5384','7046','7067','7090','7130','7211','7241','7259','5401','5416','5499','5515','5526','5545','5562','5476','5507','5538','5555','5572','5595','5622','5637','8154','8206','8226','8083','8108','8149','8168','8198','8265','8286','8336','7617','7638','7660','7705','7720','7739','8422','8448','8478','8491','8527','8569','8581','8598','5347','5393','5414','5431','8798','8883','8930','6355','6410','6434','6483','6518','7809','7837','7853','7872','6330','6352','6374','6574','6600','6618','6635','6650','6670','8520','8542','8601','8627','8651','8672','8704','8729','8768','8806','8831','8860','8641','8684','8764','8781','7534','7604','7618','7701','5491','5522','5541','5559','5573','5609','8944','8970','9000','9031','9046','9082','9105','7910','7962','7986','8005','8023','8041','8109','8135','5959','6041','6071','6083','6754','6772','6873','6889','6916','6967','6997','7023','6106','6165','7735','7780','7808','5561','5601','5642','5665','5242','5265','5300','5352','5387','5406','5418','5466','5757','5783','5819','5834','5872','5891','5961','5980','6038','6067','6136','6179','5682','5721','5736','5768','5487','5503','5911','5986','6010','6042','6059','6092','5563','5617','5630','5671','5689','5789','5807','5822','5838','5858','5878','5935','6201','6225','6267','6321','6147','6168','6190','6223','6302','6336','6353','6408','5723','5764','5820','5835','5873','5893','5958','5973','5995','6046','6066','6079','6133','6348','6396','6424','6441','6489','6526','6552','6588','6605','6624','6638','6431','6479','6493','6522','6575','6619','5913','5951','5969','5993','6025','6045','6636','6674','6701','6804','6866','6883','6907','6184','6220','6230','6661','6682','6792','6813','6870','6886','6078','6097','6128','6193','6281','6259','6394','6423','6440','6472','6957','6982','7104','7123','7139','6941','6212','6229','6256','6276','8314','8357','8451','8480','7836','7851','8926','8938','8961','8976','9019','9040','5627','5667','5686','5734','5763','5818','5832','9065','9091','9152','9204','9229','9257','9306','5853','7044','7084','7122','7157','7182','7207','7222','9344','9378','6187','6222','6247','5869','5888','5910','5925','5952','5992','6013','6261','6284','7905','7931','7944','8200','8295','8339','8427','8489','7961','7983','9135','9174','9199','7290','7333','7372','7408','7444','7470','7483','7503','6317','6362','6415','6497','6527','6557','6607','6627','6641','6044','6076','6093','6156','6195','6211','6227','6268','6662','7370','7388','7429','7242','7289','5705','5729','5747','5779','5794','5829','7457','7476','9226','9243','9267','9282','9297','9329','9364','9385','9407','5602','5619','5675','5727','5744','9433','9460','9477','9499','7998','8019','8035','8057','8079','8105','8122','8144','8493','8553','8572','8163','8193','6683','6705','6747','5845','5859','5879','5902','7506','7539','7566','5937','7597','7630','7649','7721','7766','5772','5792','5810','5830','5860','5901','5921','5963','8700','8725','8757','8776','8836','8864','8884','8898','8934','6433','6454','6486','6550','6583','6604','9416','9443','9480','9563','9577','9614','9640','9655','9669','7796','7821','7839','7873','7908','7946','7984','7999','8955','8975','8991','9061','9605','9633','6651','6702','6736','6753','6789','6808','6875','6869','6885','6911','6942','6966','6991','9645','9678','9695','9711','9729','9744','9768','8020','8038','8064','8106','8132','8151','8173','8201','9810','9841','9862','9891','9907','9920','9952','9997','7057','7076','7094','7118','7143','7177','7189','7201','7234','7251','7274','6988','7017','7036','7047','7069','7093','9087','9110','9133','9159','9248','6009','6040','6073','6160','6182','7116','7136','7180','7205','7219','7256','7285','7298','9325','9362','9391','9485','9511','9324','9406','9423','9451','9472','9494','9556','7329','7349','7379','7397','7413','7446','9560','9576','9596','9758','9804','9830','8211','8234','8248','8311','8393','8413','8443','8465','9904','9916','7416','7461','7477','7498','7523','8215','8235','8255','8330','6968','7882','7900','7920','7959','7992','8842','8871','8887','8933','8947','8972','9056','8294','8324','8340','8407','8461','9190','9217','9233','9289','9343','9392','9428','9459','8032','8104','8119','7000','7039','7058','7078','7097','7134','7154','7206','8101','8116','8138','8155','8176','8203','8218','8263','9108','9221','9238','9264','9278','9294','8595','8617','8699','9474','9498','9568','9583','9642','9659','9672','9692','8721','8238','8259','8283','8366','8391','8455','9704','7283','8284','8309','8334','8373','8400','8420','7381','8753','8773','8892','8911','8543','8562','8590','8605','8631','8703','8780','8539','8558','8575','8668','8942','8964','8982','8996','9024','9045','9102','9123','8796','8839','8868','8894','8916','8932','8965','8983','9071','9121','9138','9146','9198','8696','8715','8771','8805','8830','8873','9139','9149','9182','9200','9240','9265','9293','9405','9421','9219','9235','9276','9309','9346','9398','8904','8928','8940','8963','8981','8993','9022','9041','9068','9096','9117','9445','9469','8349','7549','7572','7632','9686','9700','9718','8374','9575','9608','9644','9660','9677','9721','9739','7493','7540','7631','7678','7715','7490','7518','7568','7599','9778','9802','8484','8530','8552','8571','8583','8621','7613','9793','9811','9865','9897','9911','8640','8660','7382','7403','7417','7445','9923','9960','9984','9646','9679','7472','6213','6228','6252','6269','6350','6370','9696','9712','9730','9785','9870','7733','7753','7778','7807','6406','6476','6514','6545','6616','8511','8537','7828','7850','9914','9927','9961','7636','7658','7680','8557','8587','8602','8697','8693','8709','8765','7706','7725','7743','7770','7797','7814','7679','7717','7758','8828','8849','8875','9822','9892','7795','7811','7824','7843','7868','7904','7941','9919','9948','9976','9996','6634','6646','6666','6687','6723','7971','7994','8017','8033','9940','9964','9989','7842','7857','7877','6762','6825','8890','8925','8948','8974','8989','9012','9033','9090','9129','9143','9161','8717','8749','8792','7898','7917','7938','7956','7968','7991','8027','8068','8073','8103','8117','8141','8821','6861','6881','6947','9651','9685','9461','9503','9534','9570','9607','9635','9145','9189','9213','9232','9273','9370','9396','9698','9734','9752','9792','9808','9835','9889','9917','9648','9666','9680','9697','9732','9749','9790','9806','9834','9883','9905','9444','9466','9483','9504','9544','10112','11218','11289','9604','9944','9986','9918','9945','9967','9625','9656','11316','11330','10006','10022','10041','10072','10090','10111','10129','10167','9693','9708','9727','9756','9843','9869','9910','9922','9980','10004','10200','10229','10248','10273','10175','10234','10252','10268','10287','10325','10372','10052','10066','10191','10220','10240','10009','10401','10422','11237','11260','11283','11309','11335','10061','10081','10098','10136','10007','11360','11373','11398','11416','11465','11492','11510','10032','10045','10082','10115','10131','10181','10215','10017','10036','11385','11410','11464','11490','11509','11552','11563','10051','10087','10103','10142','10171','10254','10581','10621','10762','10271','10289','10313','10362','10388','10414','10158','10454','10472','10496','10524','10557','10573','10591','10613','10675','10714','10735','10193','10241','10256','10275','10295','10756','11535','11584','11614','11639','11659','11738','11821','10203','10231','10249','10267','10277','10296','10328','10356','10410','11858','10794','10816','10842','10428','10253','10283','10365','10415','10493','10856','11600','11615','11640','11661','11705','11745','11781','11805','10520','10555','10569','10481','11835','11878','10771','10792','10825','10850','10866','10507','10535','10023','10044','10886','10342','10399','10432','10444','10470','10494','10523','10059','10124','10462','10487','10579','10593','10633','10661','10572','10589','11874','11900','11926','11980','11994','10684','10708','10750','10767','10786','10804','10822','10862','12016','12036','11908','11952','10882','10698','10715','10761','10774','10793','10812','10864','11993','12012','12034','10644','10709','10752','10769','10803','10844','10863','10883','10884','10900','10916','10196','10247','10255','10978','11024','10924','12080','12124','12149','12199','12240','12253','12312','10972','10974','11039','11069','11126','12366','10352','10374','10424','11164','11189','10989','11058','11081','11102','10437','10456','10477','10497','12103','12176','11148','11210','10013','10033','10060','10097','12203','12226','11050','11140','11187','11216','11239','11313','11340','11362','11051','11099','14102','11716','11748','11779','11111','11158','11204','11225','11275','11808','11836','11854','11951','11110','11128','11153','11167','11195','11223','11248','12045','13564','13579','13607','13633','13649','13677','13704','12094','12147','12175','12194','11401','11451','13735','13759','13774','13818','13843','11079','11101','11113','11133','11173','11192','11270','11291','14129','14149','14238','14254','14272','14329','11519','11539','11560','11602','11622','11641','11506','11525','11547','11580','11608','11629','11666','10899','10914','10956','10970','11012','11683','13917','13978','13998','14041','14077','14094','14134','14171','11036','11408','11432','11495','11514','11537','11583','11613','11635','11724','11749','11787','11811','11936','14215','14267','14291','11654','11677','11063','11089','14316','14343','14352','12255','12274','12301','11130','11156','13267','13291','13316','13357','13382','13400','13410','12340','12369','12411','12438','12458','12522','11841','11943','11971','13435','13452','13479','10002','10038','10084','10559','10577','10607','10630','12386','12405','12455','12471','12507','12517','12535','12282','12321','12349','12428','12489','10354','10405','10425','10463','10649','10702','10742','12562','12614','12702','12725','12742','12511','12571','10517','10542','10568','12760','12775','12870','12932','12963','13003','13029','10647','10674','10691','10713','10733','10770','10790','10833','12636','12699','12710','12731','12761','12835','12851','12950','12975','13002','13026','10801','10819','10836','10855','11322','11334','11355','11388','11414','11457','11486','10888','13076','13107','13146','13202','13232','10854','10868','11298','11347','11366','11403','11450','11466','11493','11513','10887','10903','10940','10959','11002','11026','11054','10913','10934','10957','11609','11670','11685','11725','11752','11765','11789','11814','10582','10596','10622','10638','10662','10683','10705','10726','10747','10763','10784','10973','10993','11018','11061','13061','13105','13123','10802','13417','13433','13450','13465','13486','13147','13200','13244','10878','10906','13852','13872','13892','13910','13930','13985','14048','14065','10921','10118','10134','10233','10261','11180','11986','12030','12052','14390','14428','14453','14472','14488','11310','11336','11412','11456','11484','11520','10314','14600','12537','12564','12597','12619','10340','10363','10395','10430','10443','10512','10537','10565','12644','12659','12001','12027','12086','12128','12158','12244','12256','12300','13572','13601','13616','13636','13651','13680','13767','10821','10860','10879','10950','10965','10982','11009','11027','13812','13829','13275','13311','11632','11652','11676','11690','11743','11756','11775','11795','13361','13388','11540','11558','11570','11603','11627','14353','14404','14471','14487','14512','14529','14554','11665','11681','11710','11757','11777','11802','11845','11925','11960','12011','12033','12075','12115','11278','11303','12117','12170','12190','12215','12235','12250','12311','12368','12391','12406','12680','12720','12738','12757','12793','12844','12866','12882','12314','12348','12421','12440','12461','12490','12512','12171','12192','12237','12251','12291','12308','12385','12404','12431','12462','14579','14663','14681','14710','14730','14749','14629','14648','14682','14715','14733','14751','14772','14794','14836','12499','12515','12553','12609','12723','12740','11060','11085','11178','11202','11252','11272','11292','11318','12908','12930','12996','13020','11333','11367','11405','11428','11452','11481','12759','12831','12847','12887','12910','12987','11500','11529','11550','11562','11581','11630','11650','11672','14897','14932','14958','14982','12434','12457','12508','12525','12538','12601','12653','12701','12753','12000','12017','12039','12104','14803','14829','14878','14904','14919','12133','12168','12184','12210','12289','12306','11686','11731','11753','11770','11793','11822','11843','11863','13074','13142','13179','13239','13257','13276','13297','13379','13012','13035','13050','13086','13112','13130','13186','13231','13247','13288','13399','13409','13432','13464','13478','13498','13533','13553','12395','12426','12444','12494','12513','12529','12545','12576','12623','12645','12662','12708','12767','12787','12818','12840','12861','11875','11903','11930','11981','12065','12089','12126','13373','13425','13443','13469','13488','13505','13544','13582','13587','13615','13644','13758','13773','13795','13640','13692','13723','13746','13770','13896','13914','13976','14039','14052','14072','12151','12178','12229','12290','12325','12403','12432','12452','12466','12500','12516','12558','12590','12649','12667','12698','12927','12949','13510','13547','13570','13585','13596','12813','12903','12926','12947','12967','13013','13036','13053','13066','13090','14298','14322','14335','14347','14356','14410','14458','14530','14558','12872','12942','12983','13007','13032','13049','13064','13085','13110','13153','13187','13696','13762','13782','13806','13824','13847','13869','13923','13131','13210','13234','13250','13299','13334','14587','14654','14673','14690','14720','14737','14906','13218','13241','13259','13279','13321','13389','13419','13941','13982','14010','14030','14045','14064','14100','14126','13391','13405','13424','13453','13468','13500','13535','13566','13584','14925','14940','13512','13548','14148','14178','14200','14218','14245','13611','13658','13761','13575','13588','13639','13654','13687','13738','13764','13783','14255','14278','14295','14321','14334','14346','14362','13845','13865','13905','13945','13967','13810','13880','13901','13920','13958','13999','14025','14056','14080','14096','14395','14415','14466','14524','14537','14053','14074','14137','14194','14213','14249','14122','14138','14176','14252','14288','14308','14344','14354','14392','14408','14430','14658','14676','14725','14738','14758','14779','14805','14830','14860','14883','14285','14304','14337','14348','12995','13087','13113','13134','13176','13192','13227','13245','13266','14023','14061','14081','13816','13836','13857','13876','13897','13918','13955','13979','13794','13813','13833','13853','13873','13340','13406','13460','13477','12711','12737','12756','12772','12837','12853','14114','14131','14159','14210','14133','14160','14187','14226','13495','13520','13561','13578','13604','13618','13638','13652','12871','12898','12924','12946','12966','12988','14350','14363','14413','14436','14464','14480','14506','14527','14300','14323','14338','14365','14380','14438','14605','14634','14675','13681','13715','13745','13766','13790','13016','13052','13069','13102','13117','13144','13226','14568','14590','14642','14661','14709','14757','14778','14821','14735','14768','14831','14887','13811','13827','13849','13870','13890','13944','14012','13243','13282','13302','13377','14846','14896','14911','14948','14970','14924','14939','14959','14980','12557','12628','12648','12686','12709','12732','12765','12784','14036','14088','14130','14156','14201','14248','12744','12763','12839','12856','13397','13408','13471','16123','16145','16161','16211','16238','15831','15847','15866','15883','15910','15958','15994','16006','15531','15556','15626','15649','15692','15718','15511','15535','15600','15620','15691','16258','16295','16312','16342','16361','16393','16405','16433','16481','16092','16109','16124','16160','16178','16205','16256','16290','16306','15756','15782','15811','15859','15875','15896','15972','15996','15717','15753','15781','15803','16500','16513','16538','16557','16595','16618','16358','16390','16402','16453','16512','16017','16057','16077','16110','16125','16214','16239','16294','16310','16337','15862','15877','15897','15931','16002','16684','16741','16760','16783','16800','16816','16867','16881','16926','16947','16555','16571','16593','16662','16688','16048','16061','16103','16112','16184','16218','15780','15836','16996','17024','17048','17069','17086','17104','17141','16748','16773','16788','16891','16913','16938','16985','15870','15887','15955','16004','16050','16081','16106','16378','16407','16435','16483','17251','17260','17268','17276','17284','17292','17300','17308','17006','17044','17074','17094','17252','16506','16520','16586','16360','16374','14388','14402','14905','14957','14977','14459','14477','14499','14649','14670','14687','14717','14448','14470','14486','14510','14528','14546','14750','14806','14866','14893','14910','14926','14965','14985','14646','14662','14727','14748','14801','14848','14875','14928','14953','14974','15008','15029','15081','15110','15174','15193','15231','15251','15348','15035','15107','15125','15140','15527','15551','15312','15340','15355','15156','15176','15237','15006','15021','15052','15077','15380','15304','15327','15350','15370','15120','15186','15218','15248','15405','15442','15036','15064','15092','15128','15145','15088','15114','15131','15582','15637','15655','15676','15468','15479','15497','15708','15737','15784','15412','15495','15510','15526','15550','15149','15172','15230','15246','15266','15305','15322','15474','15519','15536','15557','15607','15856','15894','15920','15993','16005','16035','16051','16107','15640','15664','15684','15720','15735','15638','15663','15678','15710','15742','15774','15345','15363','15395','15422','15438','15470','15483','15498','15183','15217','15261','15300','15344','15420','15477','16392','16429','16457','17760','17821','17849','17857','17865','17873','17882','17261','17269','17277','17285','17293','17301','16623','16650','16679','16696','16716','16739','16486','16507','16553','16567','16590','17847','17855','17863','17871','17879','17888','17896','17890','17898','17906','17914','17922','17930','17938','17946','18117','16755','16798','16875','16895','16939','16624','16653','16680','16715','16738','16777','16794','16821','16862','18417','18425','18433','18441','18449','18457','18465','18473','18481','18489','18497','18506','18514','18522','18530','18538','18546','16962','16993','17013','17046','17077','17196','17247','17255','17264','17904','17912','17920','17928','17936','17944','17952','18116','18212','18281','16960','16992','17038','17056','17085','18554','18562','18570','18578','18586','18594','18602','18806','15491','17761','17848','17856','17864','17872','18318','18414','18422','18430','18438','18446','18454','18462','18470','18478','18486','18494','18502','18511','18519','18527','18535','17880','17889','17897','17905','17913','17921','17929','17937','15509','15545','15613','18543','18551','15039','15066','15089','15127','15143','15644','17102','17250','17259','17267','17275','17283','17291','17299','17307','15177','15201','15005','15017','15007','15024','15055','15119','15146','15179','15226','15182','15228','17272','17280','17288','17296','17304','15243','15295','15351','15683','15712','15730','18559','18567','18575','18583','18591','18599','18607','15268','15307','15331','15353','15745','15778','17945','18211','15429','15445','15471','15484','15296','15314','15342','15360','15387','15432','18280','18412','18420','18428','18436','18444','15457','17758','17843','17852','15371','15407','15520','15539','15559','15846','15881','15985','16025','15507','15521','15560','15601','15651','15586','15618','15668','15700','15715','15731','15751','15779','18452','18460','18468','18476','18484','18492','18500','18509','18517','18525','18533','18541','18549','18557','18565','18573','18581','18589','18597','18605','18699','16049','16062','16084','16118','16135','16159','16196','16226','16251','16301','16332','17860','17868','17876','17885','17893','17901','17909','17917','17925','17933','17941','17949','15800','15833','15850','15871','15921','15946','15974','16015','16055','16076','18742','16354','16370','16386','16400','16410','16439','16491','16509','16528','16556','16276','16330','16366','16376','16415','16452','18319','18415','18423','18431','18439','18447','18455','18463','18471','18479','18487','18495','18503','16111','16127','16169','16576','16685','16724','16745','16771','16815','16847','16868','16477','16539','16201','16231','16254','16291','16307','16356','18512','18520','18528','18536','18544','18552','18560','18568','18576','18584','18592','18600','18796','16566','16588','16603','16630','16704','16740','16757','16909','16930','16954','17004','17029','17072','16372','16401','16450','16473','16495','16510','16569','16591','16657','15709','15724','15741','15788','15819','15844','15863','15879','17139','17246','17254','17263','17271','17279','17287','17295','17303','16780','16797','16811','16825','16904','16928','16742','16782','16814','16842','16870','15903','16024','16043','16949','16970','17052','17070','17089','17106','17820','17845','17854','16899','16942','16964','16994','16078','16105','16167','16195','16268','16296','16326','17249','17258','17266','17274','17282','17290','17298','17306','17047','17081','17098','17140','17248','17256','17265','17273','17281','17289','17297','17305','16350','16367','16385','16398','16408','16438','16505','17862','17870','17878','17887','17895','17903','17911','17919','17927','17935','17943','17951','18056','17819','17844','17853','16583','16598','16619','16649','16669','18118','18199','18278','18418','18426','18434','18442','18450','18458','18466','18474','18482','17861','17869','17877','17886','17894','17902','17910','17918','17926','17934','17942','17950','17762','17850','17858','17866','17874','17883','17891','17899','17907','17915','17923','17931','17939','17947','16713','16735','16856','18490','18498','18507','18515','18523','18531','18539','18547','18555','18563','18571','18579','18587','18596','18604','18213','18416','18424','18432','18440','18448','18456','18464','18472','18480','18488','18496','18504','18513','18521','18529','18537','18545','18553','18561','18214','18279','18419','18427','18435','16952','16974','17003','17030','17073','17092','17107','17253','18740','18569','18577','18585','18593','18601','18743','17262','17270','17278','17286','17294','17302','17310','18443','18451','18459','18467','18475','18483','18491','18499','18508','18516','18524','18532','18540','18548','18556','18564','18572','18580','18588','18595','18603','18739','17851','17859','17867','17875','17884','17892','17900','18807','17908','17916','17924','17932','17940','17948','18230','18413','18421','18429','18437','18445','18453','18461','18469','18477','18485','18493','18501','18510','18518','18526','18534','18542','18550','18558','18566','18574','18582','18590','18598','18606','18741','20005','20006','20007','20008','20025','20051','20061','20062','20067','20079','20080','20081','20082','20083','20084','20085','20086','20087','20088','20089','20090','20091','20092','20093','20094','20095','20096','20097','20098','20099','20100','20101','20102','20103','20104','20105','20106','20107','20108','20109','20110','20111','20112','20113','20114','20115','20116','20117','20118','20119','20120','20121','20122','20123','20124','20125','20126','20127','20128','20129','20130','20131','20132','20133','20134','20135','20136','20137','20138','20139','20140','20141','20142','20143','20144','20145','20146','20147','20148','20149','20150','20151','20152','20153','20155','20156','20157','20158','20159','20160','20161','20162','20163','20164','20165','20166','20167','20168','20169','20188','20189','20217','20218','20219','20220','20221','20223','20224','20225','20226','20227','20228','20230','20231','20232','20233','20234','20235','20236','20237','20238','20239','20240','20241','20242','20243','20244','20245','20246','20247','20248','20250','20251','20252','20253','20254','20255','20256','20259','20260','20261','20262','20263','20264','20265','20267','20268','20269','20290','20302','20303','20304','20308','20338','20345','20355','20356','2697','2576','2708','2760','1531','1586','2814','2591','1310','3004','708','792','916','1780','1690','3169','1723','300','2021','1819','158','1947','3289','1031','1098','638','731','105','260','467','585','1953','1344','3584','1340','1379','331','464','2031','604','626','785','2345','2472','775','804','856','2131','2464','608','829','1190','303','1298','1139','1208','540','1521','2143','3975','3780','2335','2238','2264','2113','475','1526','1036','1884','2436','1001','918','2157','1951','602','1168','19','1311','3484','2391','2542','2589','4035','2706','4318','2522','2585','4113','3981','4185','4296','4319','4355','2747','4329','4831','3106','4845','3555','3351','3621','4256','4275','4396','4486','4501','4307','2767','2887','3665','3750','1551','4658','3426','4565','4699','4718','3755','3424','4770','4002','1576','1751','1773','1348','4332','4918','1971','2139','3598','3702','4273','3870','4965','2753','4800','4827','4872','2940','2332','4946','5046','4689','2976','2992','3206','3337','5022','5083','2449','5226','5516','5105','3050','2702','5196','5217','2777','3069','3164','3552','4961','5341','2935','3815','6959','7045','6630','6436','5621','7252','7321','6816','6878','7535','5861','6049','6615','6642','7404','6075','6086','6172','6978','7006','6893','7056','7555','7644','7150','7296','7744','5103','5144','5052','5037','8007','8136','5404','5413','5049','5531','5790','5914','5936','5291','7109','7186','7224','5452','5677','8187','8244','5374','5475','6537','7820','6407','6691','6724','8678','8788','8624','8708','8891','7577','7643','9140','5997','7819','5321','5366','5443','5733','6103','6157','5896','6379','5855','6031','6547','6601','6787','6746','6208','6280','6311','6345','6934','7041','6335','8431','5787','9272','7886','8216','8253','6130','6177','7347','7412','5655','8625','6759','6838','7741','8922','6525','9598','7855','9014','9531','9578','6849','7018','9187','6197','7402','9740','7942','8987','9032','8267','8439','8483','8074','8160','8239','9084','9150','8560','9601','9617','8304','8444','8862','8882','8659','8673','8727','8762','8468','8519','8592','9079','8889','9322','9381','9291','9441','9486','9754','9753','7570','7610','9612','8466','8574','8628','7651','8786','8801','7858','7957','8772','8189','8241','9615','9482','9594','9301','9336','10130','11268','9670','10058','10145','10206','10089','10435','11323','10035','11438','10063','10639','10738','11553','11759','10562','10556','10076','10620','10663','11977','10910','10736','10228','10288','10918','10953','10939','10958','10318','12123','11185','10080','12245','11162','11379','11179','11093','11873','11985','12024','12220','11417','11477','13858','11345','11364','11382','14216','10987','11853','14236','11105','12241','10534','12303','12396','10438','10678','10717','12651','12602','10623','12913','10754','10806','12668','12894','10870','13059','13184','11087','13044','13503','13230','10995','11015','11209','11256','12010','11324','11970','13586','10922','11846','14368','14429','11989','12143','11891','12263','12819','12376','14645','14665','14809','14868','12584','11132','14916','11931','11967','12230','13043','13103','13346','13344','12322','12380','12881','11964','13728','13591','13629','12246','13630','12993','14373','14606','14773','13594','13442','13457','13691','13805','13819','14375','13926','13990','14040','13981','14501','14117','14225','14331','14372','14641','13018','14042','13444','14186','14247','14275','14211','14250','14286','14328','14467','14679','13345','14071','14221','12777','13430','15790','16037','16052','15734','15496','15670','16333','15837','16496','15950','16969','16638','16727','16152','16249','16272','16323','15802','16809','16157','16362','16397','17334','17344','17235','16561','16600','14366','14420','14921','14572','14624','14825','15057','15154','15270','15166','15263','15016','15073','15421','15723','15463','15701','15164','15361','15388','17411','17335','17345','17414','16524','17772','17826','18150','16779','16812','16914','16900','18037','18097','18638','18704','18712','18720','17787','15009','17131','15074','15096','15161','17333','17343','15209','17338','17348','17418','18701','18710','18718','15379','18036','15475','17793','17825','15431','15499','15905','15954','15673','18641','18708','18033','18096','16096','18716','16471','16175','18136','16151','16637','16659','16499','18637','18703','18711','18719','16717','17090','16554','16606','15693','17337','17347','16866','16722','16763','15982','15998','17028','17416','16919','16114','17342','17350','18035','18093','17417','17340','17349','17370','17412','16560','16690','18137','18034','18138','17771','16776','16806','18640','18706','18714','18094','18134','18791','18700','18709','18717','17336','17346','18639','18713','17415','17816','18032','18095','18135','18634','18707','18715','20003','20004','20014','20015','20016','20019','20020','20021','20023','20027','20043','20044','20046','20047','20048','20049','20052','20053','20054','20073','20181','20182','20199','20200','20201','20205','20206','20207','20208','20209','20281','20286','20287','20288','20289','20298','20300','20306','20307','20311','20312','20313','20314','20317','20318','20319','20328','20329','20332','20348','20349','20352','20353','20354','20357'"; if (parliamentarians.indexOf("'" + myPersonId + "'") != -1) { return true; } else { return false; } } </script> <script type="text/javascript"> window.jsPDF = window.jspdf.jsPDF; var url = window.window.location.href; var expandAltText = "Expand All"; var collapseAltText = "Collapse All"; var resetAltText = "Reset"; if (url.toLowerCase().indexOf("fr_ca") >= 0){ DevExpress.localization.locale("fr"); expandAltText = "D\xE9velopper"; collapseAltText = "R\xE9duire"; resetAltText = "R\xE9initialiser"; } var urlSuffix = "?"; var permalinkExpandBoolean = false; $(document).ready(function () { var webServiceSuffix = "" var initialWebServiceUrl = "/ParlinfoWebApi/Parliament/GetElectedCandidates"; //Load the Controls for search var ua = window.navigator.userAgent; var msie = ua.indexOf("MSIE "); if (msie > 0 || !!navigator.userAgent.match(/Trident.*rv\:11\./)) { $('#gridContainer').dxTextArea({ value: "Please use a modern Browser to view this Page.", height: 90, readOnly: true}); return; //don't continue } $.urlParam = function (name) { var results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(window.location.search); return (results !== null) ? true : false; } $.urlParam = function (name) { var results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(window.location.search); return (results !== null) ? true : false; } $.urlParams = function(filter, permalink) { if ($.urlParam(filter) || $.urlParam(permalink)) { return true; } else if (botCheck() == true) { return true; } else { return false; } } var loadPanel = $("#loadPanel").dxLoadPanel({ shadingColor: "rgba(0,0,0,0.4)", visible: false, showIndicator: true, showPane: true, shading: true, closeOnOutsideClick: false }).dxLoadPanel("instance"); loadPanel.show(); $("#PermalinkSection").hide() var showPermalink = false; //Load the Grid $.ajax({ url: envURL + initialWebServiceUrl + webServiceSuffix, dataType: 'jsonp', cache: false, xhrFields: { withCredentials: true } } ).then(function(data){ $('#gridContainer').dxDataGrid({ dataSource: data, allowColumnReordering: true, columns: [{dataField: 'Picture', caption: 'Picture', allowFiltering: true, cellTemplate: function(element, info) { if (info.data.ParliamentNumber > 42 && info.data.ElectionProcessCandidateId !== null && info.data.ElectionProcessCandidateId > 0) { element.append("<img src=\"/Candidate/" + info.data.ElectionProcessCandidateId + "_tu.jpg\">"); } else {element.append(" ")} }, encodeHtml: false, width: 65, visible: true, allowFiltering: false, allowSorting: false, allowGrouping: false, allowSearch: false},{dataField: 'ParliamentNumber', caption: 'Parliament', dataType: 'number', sortIndex: 0, sortOrder: 'desc', groupIndex: 0, headerFilter:{ dataSource: function(data) { data.dataSource.paginate = false; data.dataSource.postProcess = function(results) {return results.reverse();};}}, allowFiltering: true},{dataField: 'ElectionDate', caption: 'Date of Election', sortIndex: 1, sortOrder: 'asc', groupIndex: 1, headerFilter:{ dataSource: function(data) { data.dataSource.paginate = false; data.dataSource.postProcess = function(results) {return results.reverse();};}}, allowFiltering: true, calculateCellValue: function(rowData){ if (rowData.ElectionDate != null) { return rowData.ElectionDate.substring(0,10); } else { return ""; } }, groupCellTemplate: function(element, info) { if ((info.data.collapsedItems ? info.data.collapsedItems[0].ElectionDate: info.data.items[0].ElectionDate) != null) { var electionDate = (info.data.collapsedItems ? info.data.collapsedItems[0].ElectionDate.substring(0,10) : info.data.items[0].ElectionDate.substring(0,10)); element.append(info.column.caption + ": " + electionDate + " <button class=\"btn btn-xs\" onclick=\"window.open('/sites/ParlInfo/default/en_CA/ElectionsRidings/Elections/Profile?election=" + electionDate + "');\">Profile</button>"); } else { element.append(""); } }, cellTemplate: function(element, info) { if (info.data.ElectionDate != null) { element.append(info.data.ElectionDate.substring(0,10) + " <button class=\"btn btn-xs\" onclick=\"window.open('/sites/ParlInfo/default/en_CA/ElectionsRidings/Elections/Profile?election=" + info.data.ElectionDate.substring(0,10) + "');\">Profile</button>"); } else { element.append(""); } }, encodeHtml: false},{dataField: 'ProvinceEn', caption: 'Province or Territory', sortIndex: 2, sortOrder: 'asc', allowFiltering: true},{dataField: 'ConstituencyEn', caption: 'Constituency', sortOrder: 'asc', allowFiltering: true, cellTemplate: function(element, info) { if (info.data.ConstituencyId != 0){ element.append("<a href=\"/sites/ParlInfo/default/en_CA/ElectionsRidings/Ridings/Profile?OrganizationId=" + info.data.ConstituencyId + "\" target=\"_blank\" title=\"" + info.data.ConstituencyEn + "\">" + info.data.ConstituencyEn + "</a>"); } else { element.append(info.data.ConstituencyEn); } }, encodeHtml: false, calculateSortValue: function(rowData) {return latinize(rowData.ConstituencyEn)}},{dataField: 'DisplayName', caption: 'Candidate', sortIndex: 3, sortOrder: 'asc', allowFiltering: true, cellTemplate: function(element, info) { if (info.data.PersonId != 0 && info.data.PersonId != null){ element.append("<a href=\"/sites/ParlInfo/default/en_CA/People/Profile?personId=" + info.data.PersonId + "\" target=\"_blank\" title=\"" + info.data.PersonLastFirstName + "\">" + info.data.DisplayName + "</a>"); } else { element.append(info.data.DisplayName); } }, encodeHtml: false, calculateSortValue: function(rowData) {return latinize(rowData.DisplayName)}},{dataField: 'TypeEn', caption: 'Status at Election', allowFiltering: true},{dataField: 'Gender', caption: 'Gender', allowFiltering: true, calculateCellValue: function(rowData){ if (rowData.Gender == "F"){ return "Woman"; } else if (rowData.Gender == "M"){ return "Man"; } else if (rowData.Gender == "O"){ return "Another Gender"; } else { return "Data unavailable"; } return ""; }},{dataField: 'OccupationEn', caption: 'Occupation', allowFiltering: true, calculateSortValue: function(rowData) {return latinize(rowData.OccupationEn)}},{dataField: 'PartyNameEn', caption: 'Political Affiliation', allowFiltering: true, cellTemplate: function(element, info) { if (info.data.PartyOrganizationId != 0 && info.data.HasProfile){ element.append("<a href=\"/sites/ParlInfo/default/en_CA/Parties/Profile?partyId=" + info.data.PartyOrganizationId + "\" target=\"_blank\" title=\"" + info.data.PartyNameEn + "\">" + info.data.PartyNameEn + "</a>"); } else { element.append(info.data.PartyNameEn); } }, encodeHtml: false},{dataField: 'ResultLongEn', caption: 'Result', allowFiltering: true, calculateCellValue: function(info) { if (info.OtherResultLongEn != null && info.OtherResultLongEn.trim() != "") { return info.ResultLongEn + " (" + info.OtherResultLongEn + ")"; } return info.ResultLongEn; } },{dataField: 'Votes', caption: 'Votes', dataType: 'number', format: '#,###,##0', sortIndex: 5, sortOrder: 'desc', alignment: 'right', allowFiltering: true}], allowColumnResizing: true, sorting: {mode: "multiple"}, filterPanel: { visible: true }, columnAutoWidth: true, columnChooser: { enabled: true, mode: "select" }, onContentReady: function (e) { var columnChooserView = e.component.getView("columnChooserView"); if (!columnChooserView._popupContainer) { columnChooserView._initializePopupContainer(); columnChooserView.render(); columnChooserView._popupContainer.option("position", { of: e.element, my: "right top", at: "right top", offset: "0 50"}); } }, filterRow: { visible: true}, headerFilter: { visible: true, allowSearch: true }, pager: { showInfo: true, showPageSizeSelector: true, allowedPageSizes: [100, 250, 1000], showNavigationButtons: true },grouping: { contextMenuEnabled: true }, groupPanel: { visible: true }, grouping: { autoExpandAll: true }, searchPanel: { visible: true }, "export": { enabled: true, formats: ['xlsx', 'pdf'], /* fileName: "electionsCandidates", */ allowExportSelectedData: false }, onExporting(e) { if (e.format === 'xlsx') { const workbook = new ExcelJS.Workbook(); const worksheet = workbook.addWorksheet('electionsCandidates'); DevExpress.excelExporter.exportDataGrid({ component: e.component, worksheet, autoFilterEnabled: true, }).then(() => { workbook.xlsx.writeBuffer().then((buffer) => { saveAs(new Blob([buffer], { type: 'application/octet-stream' }), 'electionsCandidates.xlsx'); }); }); e.cancel = true; } else if (e.format === 'pdf') { const doc = new jsPDF("landscape"); DevExpress.pdfExporter.exportDataGrid({ jsPDFDocument: doc, component: e.component, }).then(() => { doc.save('electionsCandidates.pdf'); }); } }, onToolbarPreparing: function(e) { var dataGrid = e.component; e.toolbarOptions.items.unshift({ location: "after", widget: "dxButton", options: { icon: "refresh", hint: resetAltText, onClick: function() { var gridinstance = $('#gridContainer').dxDataGrid('instance'); gridinstance.state({}); } } }, { location: "after", widget: "dxButton", options: { icon: "expand", hint: expandAltText, onClick: function() { var expanded = e.component.option("grouping.autoExpandAll"); dataGrid.option("grouping.autoExpandAll", !expanded); if (expanded){ this.option("icon", "expand"); this.option("hint", expandAltText); }else{ this.option("icon", "collapse"); this.option("hint", collapseAltText); } } } }, { location: "after", widget: "dxButton", options: { icon: "share", hint: getLocalizedValue("Show permalink builder", "Montrer le constructeur de permalien"), onClick: function() { showPermalink = (!showPermalink) ? true : false; if (!showPermalink){ $("#PermalinkSection").hide(); this.option("icon", "share"); this.option("hint", getLocalizedValue("Show permalink builder", "Montrer le constructeur de permalien")); }else{ $("#PermalinkSection").show(); this.option("icon", "close"); this.option("hint", getLocalizedValue("Hide permalink builder", "Cacher le constructeur de permalien")); } } } }); }, stateStoring: { enabled: false, type: "localStorage", storageKey: "" } ,paging: { pageSize: 50 }, wordWrapEnabled: true, grouping: { autoExpandAll: $.urlParams('filter', 'permalink'), }, summary: { totalItems: [{ column: "ProvinceEn", summaryType: "count" }] } }); loadPanel.hide(); /* is it working */ }) }); function sendStorageRequest(hyperlink, key, id, datatype, type) { var deferred = new $.Deferred; var state = localStorage.getItem(key); var value = JSON.stringify(state); var gUrl = envURL; if (type == "json") { if (id != '') { gUrl += '/ParlInfoWebApi/Permalink/SaveAndReturn?Hyperlink=' + hyperlink + '&key=' + key + '&value=' + value + '&id=' + id; } else { gUrl += '/ParlInfoWebApi/Permalink/SaveAndReturn?Hyperlink=' + hyperlink + '&key=' + key + '&value=' + value; } } else if (type == "text" && id != '') { gUrl += '/ParlInfoWebApi/Permalink/GetPermalink/' + id; } if (gUrl != envURL) { var storageRequestSettings = { url : gUrl, headers : { 'Accept' : 'text/html', 'Content-Type' : 'text/html' }, type : type, dataType : datatype, success : function(data) { deferred.resolve(data); }, fail : function(jqXHR, textStatus, errorThrown) { deferred.reject(); } }; if (data) { storageRequestSettings.data = JSON.stringify(data.LoadValue); } $.ajax(storageRequestSettings); return deferred.promise(); } else { return null; } } function getStorageRequest(id) { var deferred = new $.Deferred; var storageRequestSettings = { url : envURL + '/ParlInfoWebApi/Permalink/GetPermalink/' + id, //headers : { // 'Accept' : 'text/html', // 'Content-Type' : 'text/html' //}, type : 'GET', dataType : 'jsonp', success : function(data) { deferred.resolve(data); var str = JSON.stringify(data); var item = JSON.parse(str); var loadValue = item.LoadValue; localStorage.setItem("loadValue", loadValue); }, fail : function(jqXHR, textStatus, errorThrown) { deferred.reject(); } }; $.ajax(storageRequestSettings); return deferred.promise(); } function emptyFunction() { return ""; } function buildPermalink() { var exportGrid = $('#gridContainer').dxDataGrid('instance'); var filterExpr = exportGrid.getCombinedFilter(true); var deferred = new $.Deferred; var state = exportGrid.state(); //alert(JSON.stringify(state)); var gUrl = envURL; var title = $("title").text(); var sParam = ""; var sType = ""; var sParameters = []; if (urlSuffix.indexOf("param") != -1 && urlSuffix.indexOf('type') != -1) { sParameters = urlSuffix.split("&"); for (i = 0; sParameters.length; i++) { if (sParameters[i].indexOf("param") != -1) { sParam = sParameters[i].substring(sParameters[i].indexOf("=") + 1); } if (sParameters[i].indexOf("type") != -1) { sType = sParameters[i].substring(sParameters[i].indexOf("=") + 1); } } } else { if (urlSuffix.indexOf("param") != -1) { sParam = urlSuffix.substring(urlSuffix.indexOf("=") + 1); } if (urlSuffix.indexOf('type') != -1) { sType = urlSuffix.substring(urlSuffix.indexOf("=") + 1); } } gUrl += '/ParlInfoWebApi/Permalink/SaveAndReturn?Hyperlink=' + buildUrl + '&key=getKey&value=' + JSON.stringify(state) + '&expression=' + sParam + '&refiners=' + sType + '&title=' + title; var storageRequestSettings = { url : gUrl, // headers : { // 'Accept' : 'text/html', // 'Content-Type' : 'text/html' //}, type : 'GET', dataType : 'jsonp', success : function(data) { deferred.resolve(data); }, fail : function(jqXHR, textStatus, errorThrown) { deferred.reject(); } }; $.ajax(storageRequestSettings).done(function(data) { var str = JSON.stringify(data); var item = JSON.parse(str); var id = item.PermalinkId; $("#Permalink").css("background-color", "#fff"); $("#Permalink").css("font-weight", "normal"); $("#Permalink").empty().append(buildUrl + urlSuffix + "permalink=" + id); }); // return deferred.promise(); } function buildFilters() { var exportGrid = $('#gridContainer').dxDataGrid('instance'); var filterExpr = exportGrid.getCombinedFilter(true); var searchPanelValue = ""; //alert(filterExpr); var fields = [ 'Picture','ParliamentNumber','ElectionDate','ProvinceEn','ConstituencyEn','DisplayName','TypeEn','Gender','OccupationEn','PartyNameEn','ResultLongEn','Votes' ]; var filter = ""; if (filterExpr != null) { filter = filterExpr.toString(); } if (exportGrid.option("searchPanel.text").toString() != "") { searchPanelValue = exportGrid.option("searchPanel.text"); //alert(searchPanelValue); if (filter.indexOf(searchPanelValue) != -1) { while (filter.indexOf(searchPanelValue) != -1) { var indexValue = filter.indexOf(searchPanelValue); var searchPanelValueLength = searchPanelValue.length + 1; filter = filter.substring(indexValue + searchPanelValueLength); } } } var filters = ""; if (filter != "") { filters = filter.split(","); } var previousField = "-1"; var filterQueryString = ""; var y = 0; for (i = 0;i < filters.length;i++) { var op = ""; var orOp = ""; if (filters[i].match(/^[0-9a-zA-Z\s\/\(\)茅脡猫脠锚脢卯脦茂脧莽脟毛脣芒脗芒脗:.-]+$/)) { if (filters[i] == "and") { } else if (filters[i] == "or") { } else if (filters[i] == "anyof") { filterQueryString += "zzo_anyof"; } else if (filters[i] == "noneof") { filterQueryString += "zzo_noneof"; } else if (filters[i] == "contains") { filterQueryString += "zzo_contains"; } else if (filters[i] == "notcontains") { filterQueryString += "zzo_notcontains"; } else { var isField = false; for (x = 0;x < fields.length; x++) { if (filters[i] == fields[x]) { isField = true; } } if (isField) { if (previousField != filters[i]) { if (previousField != "-1") { if (filterQueryString.indexOf("zzf_") != -1) { filterQueryString = filterQueryString.replace("zzf_" + previousField, "zzc_" + y + "zzf_" + previousField) } else { filterQueryString = filterQueryString.replace("f_" + previousField, "c_" + y + "zzf_" + previousField) } } previousField = filters[i]; y = 0; if (i == 0) { filterQueryString += "f_" + filters[i]; } else { filterQueryString += "zzf_" + filters[i]; } } else { y++; } } else { filterQueryString += "zzv_" + filters[i]; } } } else { switch (filters[i]) { case "=": op = "zzo_eq"; break; case "<>": op = "zzo_neq"; break; case "<": op = "zzo_lt"; break; case ">": op = "zzo_gt"; break; case "<=": op = "zzo_lte"; break; case ">=": op = "zzo_gte"; break; default: op = "zzo_" + filters[i]; } filterQueryString += op; } } if (previousField != "-1") { if (filterQueryString.indexOf("zzf_") != -1) { filterQueryString = filterQueryString.replace("zzf_" + previousField, "zzc_" + y + "zzf_" + previousField) } else { filterQueryString = filterQueryString.replace("f_" + previousField, "c_" + y + "zzf_" + previousField) } } if (filterQueryString == "zzo_") { filterQueryString = ""; } $("#Permalink").css("background-color", "#fff"); $("#Permalink").css("font-weight", "normal"); $("#Permalink").empty().append(buildUrl + urlSuffix + "filter=" + filterQueryString + "&search=" + searchPanelValue); } function clearPermalink() { var clearMessage = "Do you want to clear the permalink and the filters below?"; var clearMessagePermalink = "Do you want to clear the permalink?"; var yesOption = "Yes"; var noOption = "No"; if (buildUrl.toLowerCase().indexOf("fr_ca") != -1){ clearMessage = "Voulez-vous effacer le permalien et les filtres ci-dessous ?"; clearMessagePermalink = "Voulez-vous effacer le permalien seulement ?"; yesOption = "Oui"; noOption = "Non"; } var ClearNotAccepted = false; confirmDialog(clearMessage, yesOption, noOption, "clearAllModal", function(ans) { if (ans) { $("#Permalink").css("background-color", "#fff"); $("#Permalink").css("font-weight", "normal"); $("#Permalink").empty().append(""); var exportGrid = $('#gridContainer').dxDataGrid('instance'); exportGrid.state({}); //exportGrid.clearFilter(); //exportGrid.clearGrouping(); //exportGrid.clearSorting(); }else { ClearNotAccepted = true; if (ClearNotAccepted) { confirmDialog(clearMessagePermalink, yesOption, noOption, "clearPermalinkModal", function(ans) { if (ans) { $("#Permalink").css("background-color", "#fff"); $("#Permalink").css("font-weight", "normal"); $("#Permalink").empty().append(""); }else { } }); } } }); } function clearPermalink_() { $("#Permalink").css("background-color", "#fff"); $("#Permalink").css("font-weight", "normal"); $("#Permalink").empty().append(""); } //custom Confirm Dialog with Custom message and callback handler function confirmDialog(message, sYes, sNo, modalId, handler){ var modalContent = "<div class=\"modal fade\" id=\"" + modalId + "\" role=\"dialog\">"; modalContent += "<div class=\"modal-dialog\">"; modalContent += "<div class=\"modal-content\">"; modalContent += "<div class=\"modal-body\" style=\"padding:10px;\">"; modalContent += "<h4 class=\"text-center\">" + message + "</h4>"; modalContent += "<div class=\"text-center\">"; modalContent += "<a class=\"btn btn-primary btn-yes\">" + sYes + "</a> "; modalContent += "<a class=\"btn btn-primary btn-no\">" + sNo + "</a>"; modalContent += "</div>"; modalContent += "</div>"; modalContent += "</div>"; modalContent += "</div>"; modalContent += "</div>"; $(modalContent).appendTo('body'); var modalIdLabel = "#" + modalId; //Trigger the modal $(modalIdLabel).modal({ backdrop: 'static', keyboard: false }); //Pass true to a callback function $(".btn-yes").click(function () { handler(true); $(modalIdLabel).modal("hide"); }); //Pass false to callback function $(".btn-no").click(function () { handler(false); $(modalIdLabel).modal("hide"); }); //Remove the modal once it is closed. $(modalIdLabel).on('hidden.bs.modal', function () { $(modalIdLabel).remove(); }); } /* Treat date as date functions */ function fnDate(myDate) { var today = new Date(myDate + " 06:00:00"); var dd = today.getDate(); var mm = today.getMonth() + 1; //January is 0! var dt = ""; var strmm = mm.toString(); var strdd = dd.toString(); var yyyy = today.getFullYear(); var stryyyy = yyyy.toString(); if(dd < 10){strdd = '0' + strdd; } if(mm < 10){strmm = '0' + strmm; } var dt = stryyyy + '-' + strmm + '-' + strdd; return dt; } function fnDateApprox(myDate, myApprox) { var today = new Date(myDate + " 06:00:00"); var dd = today.getDate(); var mm = today.getMonth() + 1; //January is 0! var dt = ""; var strmm = mm.toString(); var strdd = dd.toString(); var yyyy = today.getFullYear(); var stryyyy = yyyy.toString(); if(dd < 10){strdd = '0' + strdd; } if(mm < 10){strmm = '0' + strmm; } if (myApprox) { var approxDate = stryyyy; if (strmm != '01' || (strmm == '01' && strdd != '01')) { approxDate += '-' + strmm; } dt = approxDate; } else { dt = stryyyy + '-' + strmm + '-' + strdd; } return dt; } /* Treat date as string functions */ function fnDateStr(myDate) { var today = myDate; var yyyy = today.substring(0,4); var mm = today.substring(5,7); var dd = today.substring(8,10); var dt = ""; var dt = yyyy + '-' + mm + '-' + dd; return dt; } function fnDateApproxStr(myDate, myApprox) { var today = myDate; var yyyy = today.substring(0,4); var mm = today.substring(5,7); var dd = today.substring(8,10); var dt = ""; if (myApprox) { var approxDate = yyyy; if (mm != '01' || (mm == '01' && dd != '01')) { approxDate += '-' + mm; } dt = approxDate; } else { dt = yyyy + '-' + mm + '-' + dd; } return dt; } // urlParam and urlParams functions for expanding data grids that are collapsed. $.urlParam = function (name) { var results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(window.location.search); return (results !== null) ? true : false; } $.urlParams = function(filter, permalink) { if ($.urlParam(filter) || $.urlParam(permalink)) { return true; } else { return false; } } </script> </div> </div> </div> </div> </div> <div id="parlinfo_footer_wrapper"> <div id="parlinfo_footer_basic"> <ul class="footerlist"> <li>© Library of Parliament</li> <li><a href="/sites/ParlInfo/default/en_CA/SiteInformation/SiteMap" target="_self">PARLINFO Site Map</a></li> <li><a href="/sites/PublicWebsite/default/en_CA/ContactUs" target="_self">Contact Us</a></li> </ul> </div> <footer class="ce-lop-footer hidden-print" role="contentinfo"> <div class="ce-lop-footer-top"> <div class="container"> <div class="row ce-lop-footer-vc"> <div class="col-md-4 text-center col-md-push-4 ce-lop-footer-emblem"> <img src="/Common/Parl/Images/ce-parl-emblem-e.png" alt="" /> </div> <div class="col-md-4 col-md-pull-4"> <ul class="ce-lop-footer-external-links"> <li> <a href="https://www.sencanada.ca/en" class="ce-lop-footer-senate-link" target="_blank">Senate</a> </li> <li> <a href="http://www.ourcommons.ca/en" class="ce-lop-footer-hoc-link" target="_blank">House of Commons</a> </li> <li> <a href="https://lop.parl.ca" class="ce-lop-footer-lop-link">Library of Parliament</a> </li> <li> <a id="" class="" title="" href="https://pps.parl.ca/" target="_blank"><span>Parliamentary Protective Service</span></a> </li> <li> <a href="http://jobs-emplois.parl.ca/?Language=E" class="" target="_blank">Employment at Parliament</a> </li> </ul> </div> <div class="col-md-4 ce-lop-footer-stay-connected"> <div class="ce-lop-footer-stay-connected-header"> <a href="/sites/PublicWebsite/default/en_CA/About/Social"> <p> <b>Stay Connected</b> <br><br> <img src="/staticfiles/PublicWebsite/assets/images/Footer/icon-connect-twitter.png" alt="Connect with Twitter"> <img src="/staticfiles/PublicWebsite/assets/images/Footer/icon-connect-linkedin.png" alt="Connect with LinkedIn"> <img src="/staticfiles/PublicWebsite/assets/images/Footer/icon-connect-instagram.png" alt="Connect with Instagram"> <img src="/staticfiles/PublicWebsite/assets/images/Footer/icon-connect-facebook5.png" alt="Connect with Facebook"> <img src="/staticfiles/PublicWebsite/assets/images/Footer/icon-connect-youtube.png" alt="Connect with Youtube"> <img src="/staticfiles/PublicWebsite/assets/images/Footer/icon-connect-flickr.png" alt="Connect with Flickr"> </p> </a> </div> </div> </div> </div> </div> <div class="ce-lop-footer-bottom"> <div class="container"> <div class="row"> <div class="col-sm-12 text-center"> <ul class="ce-lop-footer-bottom-links"> <li> <a href="/sites/PublicWebsite/default/en_CA/Notices">Important Notices</a> </li> <li> <a href="/sites/ParlInfo/default/en_CA/SiteInformation/atoz">A to Z Index</a> </li> </ul> </div> </div> </div> </div> </footer></div> </body> </html>