<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SelettoreCertificati.aspx.cs" Inherits="OlympiaIntranet.SelettoreCertificati" %>

<%@ Register Assembly="DevExpress.Web.v23.2, Version=23.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v23.2, Version=23.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Data.Linq" TagPrefix="dx" %>
<!DOCTYPE html>

<%--ref link : https://supportcenter.devexpress.com/ticket/details/e1081/grid-view-for-asp-net-web-forms-how-to-display-the-grid-view-in-the-full-screen-mode-100--%>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        body, html {
            padding: 0;
            margin: 0;
        }
    </style>
    <script type="text/javascript">
        function OnInit(s, e) {
            AdjustSize();
            document.getElementById("gridContainer").style.visibility = "";
        }
        function OnEndCallback(s, e) {
            AdjustSize();
        }
        function OnControlsInitialized(s, e) {
            ASPxClientUtils.AttachEventToElement(window, "resize", function (evt) {
                AdjustSize();
            });
        }
        function AdjustSize() {
            var height = Math.max(0, document.documentElement.clientHeight);
            grid.SetHeight(height);
        }
    </script>
</head>
<body style="overflow: hidden">
    <form id="form1" runat="server">
        <table>
            <tr>
                <td>
                    <dx:ASPxButton ID="ASPxExportPdf" runat="server" Theme="Office2010Blue" ToolTip="Click to generate report..." Height="22px" Width="36px" Text="Genera report" HorizontalAlign="Center" OnClick="ASPxExportPdf_Click">
                        <Image IconID="export_exporttopdf_16x16">
                        </Image>
                        <Paddings Padding="0px" />
                    </dx:ASPxButton>
                </td>
            </tr>
        </table>
        <%--<div id="gridContainer" style="visibility: hidden">--%>
        <div id="gridContainer">
            <dx:ASPxGridView ID="ASPxSelettoreCertificati" runat="server" ClientInstanceName="grid" EnableTheming="True" Theme="Office2010Blue" AutoGenerateColumns="False" DataSourceID="SqlDSCertificatesCalc" KeyFieldName="IDCertificates" Width="100%">
                <SettingsPager AlwaysShowPager="True" PageSize="20">
                    <PageSizeItemSettings ShowAllItem="True" Visible="True">
                    </PageSizeItemSettings>
                </SettingsPager>
                <Settings ShowFilterRow="True" ShowHeaderFilterButton="True" ShowFilterBar="Visible" HorizontalScrollBarMode="Visible" VerticalScrollBarMode="Visible" VerticalScrollableHeight="600" />
<%--                <ClientSideEvents Init="OnInit" EndCallback="OnEndCallback" />--%>
                <SettingsBehavior ConfirmDelete="True" AllowFocusedRow="True" EnableRowHotTrack="True" AllowSelectByRowClick="True" FilterRowMode="OnClick" />
                <SettingsFilterControl ViewMode="VisualAndText">
                </SettingsFilterControl>
                <EditFormLayoutProperties ColCount="1"></EditFormLayoutProperties>
                <Columns>
                    <dx:GridViewDataDateColumn FieldName="MaturityDate" VisibleIndex="7" Caption="Mat. Date" FixedStyle="Left">
                        <PropertiesDateEdit DisplayFormatString="dd/MM/yyyy">
                        </PropertiesDateEdit>
                        <SettingsHeaderFilter Mode="CheckedList">
                        </SettingsHeaderFilter>
                        <CellStyle BackColor="#CCCCFF">
                        </CellStyle>
                    </dx:GridViewDataDateColumn>
                    <dx:GridViewDataTextColumn FieldName="BufferCapitalProtection" ReadOnly="True" VisibleIndex="21" Caption="Buffer K Prot">
                        <PropertiesTextEdit DisplayFormatString="P2" Width="20px">
                        </PropertiesTextEdit>
                        <SettingsHeaderFilter Mode="CheckedList">
                        </SettingsHeaderFilter>
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataTextColumn FieldName="BufferCouponProtection" ReadOnly="True" VisibleIndex="22" Caption="Buffer CPN Prot">
                        <PropertiesTextEdit DisplayFormatString="P2" Width="20px">
                        </PropertiesTextEdit>
                        <SettingsHeaderFilter Mode="CheckedList">
                        </SettingsHeaderFilter>
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataTextColumn FieldName="TriggerAutocallDistance" ReadOnly="True" VisibleIndex="23" Caption="Trigger AutoC Dist">
                        <PropertiesTextEdit DisplayFormatString="P2" Width="20px">
                        </PropertiesTextEdit>
                        <SettingsHeaderFilter Mode="CheckedList">
                        </SettingsHeaderFilter>
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataTextColumn FieldName="CapitalReturnAtMaturity" ReadOnly="True" VisibleIndex="25" Caption="K Ret at Mat">
                        <PropertiesTextEdit DisplayFormatString="P2" Width="20px">
                        </PropertiesTextEdit>
                        <SettingsHeaderFilter Mode="CheckedList">
                        </SettingsHeaderFilter>
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataTextColumn FieldName="CapitalAnnualReturnAtMaturity" ReadOnly="True" VisibleIndex="26" Caption="K Ann Ret at Mat">
                        <PropertiesTextEdit DisplayFormatString="P2" Width="20px">
                        </PropertiesTextEdit>
                        <SettingsHeaderFilter Mode="CheckedList">
                        </SettingsHeaderFilter>
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataTextColumn FieldName="AutocallReturn" ReadOnly="True" VisibleIndex="27" Caption="AutoC Ret">
                        <PropertiesTextEdit DisplayFormatString="P2" Width="20px">
                        </PropertiesTextEdit>
                        <SettingsHeaderFilter Mode="CheckedList">
                        </SettingsHeaderFilter>
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataTextColumn FieldName="AutocallAnnualReturn" ReadOnly="True" VisibleIndex="28" Caption="AutoC Ann Ret">
                        <PropertiesTextEdit DisplayFormatString="P2" Width="20px">
                        </PropertiesTextEdit>
                        <SettingsHeaderFilter Mode="CheckedList">
                        </SettingsHeaderFilter>
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataTextColumn FieldName="NominalAnnualYield" ReadOnly="True" VisibleIndex="29" Caption="Nom CPN Ann Yield">
                        <PropertiesTextEdit DisplayFormatString="P2" Width="20px">
                        </PropertiesTextEdit>
                        <SettingsHeaderFilter Mode="CheckedList">
                        </SettingsHeaderFilter>
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataTextColumn FieldName="CouponYield" ReadOnly="True" VisibleIndex="30" Caption="Eff CPN Ann Yield">
                        <PropertiesTextEdit DisplayFormatString="P2">
                        </PropertiesTextEdit>
                        <SettingsHeaderFilter Mode="CheckedList">
                        </SettingsHeaderFilter>
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataTextColumn FieldName="MinimumYield" ReadOnly="True" VisibleIndex="38" Caption="Min Yield">
                        <PropertiesTextEdit DisplayFormatString="P2" Width="20px">
                        </PropertiesTextEdit>
                        <SettingsHeaderFilter Mode="CheckedList">
                        </SettingsHeaderFilter>
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataTextColumn FieldName="Sector" ReadOnly="True" VisibleIndex="4" FixedStyle="Left">
                        <SettingsHeaderFilter Mode="CheckedList">
                        </SettingsHeaderFilter>
                        <CellStyle BackColor="#CCCCFF">
                        </CellStyle>
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataComboBoxColumn FieldName="Category" VisibleIndex="5" FixedStyle="Left">
                        <PropertiesComboBox DataSourceID="SqlDSCategory" TextField="Name" ValueField="IDCategory">
                        </PropertiesComboBox>
                        <SettingsHeaderFilter Mode="CheckedList">
                        </SettingsHeaderFilter>
                        <CellStyle BackColor="#CCCCFF">
                        </CellStyle>
                    </dx:GridViewDataComboBoxColumn>
                    <dx:GridViewDataComboBoxColumn FieldName="Issuer" VisibleIndex="6" FixedStyle="Left">
                        <PropertiesComboBox DataSourceID="SqlDSIssuer" TextField="Name" ValueField="IDIssuer">
                        </PropertiesComboBox>
                        <SettingsHeaderFilter Mode="CheckedList">
                        </SettingsHeaderFilter>
                        <CellStyle BackColor="#CCCCFF">
                        </CellStyle>
                    </dx:GridViewDataComboBoxColumn>
                    <dx:GridViewDataComboBoxColumn FieldName="UnderlyingType" VisibleIndex="17" Caption="UL Type">
                        <PropertiesComboBox DataSourceID="SqlDSUnderlyingsType" TextField="Type" ValueField="IDUnderlyingsType">
                        </PropertiesComboBox>
                        <SettingsHeaderFilter Mode="CheckedList">
                        </SettingsHeaderFilter>
                    </dx:GridViewDataComboBoxColumn>
                    <dx:GridViewDataComboBoxColumn FieldName="BarrierType" VisibleIndex="19">
                        <PropertiesComboBox DataSourceID="SqlDSBarrierType" TextField="Barrier_type" ValueField="IDBarrierType">
                        </PropertiesComboBox>
                        <SettingsHeaderFilter Mode="CheckedList">
                        </SettingsHeaderFilter>
                    </dx:GridViewDataComboBoxColumn>
                    <dx:GridViewDataTextColumn FieldName="ISIN" VisibleIndex="2" FixedStyle="Left">
                        <%--                        <PropertiesHyperLinkEdit NavigateUrlFormatString="~/MemberPages/CertificatesPage.aspx?isin={0}" Target="_blank" TextField="ISIN">
                        </PropertiesHyperLinkEdit>--%>
                        <SettingsHeaderFilter Mode="CheckedList">
                        </SettingsHeaderFilter>
                        <CellStyle BackColor="#CCCCFF">
                        </CellStyle>
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataTextColumn FieldName="IntrinsicValue" ReadOnly="True" VisibleIndex="40">
                        <PropertiesTextEdit DisplayFormatString="n2" Width="20px">
                        </PropertiesTextEdit>
                        <SettingsHeaderFilter Mode="CheckedList">
                        </SettingsHeaderFilter>
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataTextColumn FieldName="Bid" VisibleIndex="42">
                        <PropertiesTextEdit DisplayFormatString="n2" Width="20px">
                        </PropertiesTextEdit>
                        <SettingsHeaderFilter Mode="CheckedList">
                        </SettingsHeaderFilter>
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataTextColumn FieldName="Ask" VisibleIndex="43">
                        <PropertiesTextEdit DisplayFormatString="n2" Width="20px">
                        </PropertiesTextEdit>
                        <SettingsHeaderFilter Mode="CheckedList">
                        </SettingsHeaderFilter>
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataTextColumn Caption="UL Qty" FieldName="UnderlyingsQty" ReadOnly="True" VisibleIndex="18">
                        <SettingsHeaderFilter Mode="CheckedList">
                        </SettingsHeaderFilter>
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataTextColumn FieldName="PersonalNotes" VisibleIndex="48" Visible="false">
                        <SettingsHeaderFilter Mode="CheckedList">
                        </SettingsHeaderFilter>
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataDateColumn Caption="Next AutoC Date" FieldName="autocallDate" ReadOnly="True" VisibleIndex="15">
                        <PropertiesDateEdit DisplayFormatString="dd/MM/yyyy">
                        </PropertiesDateEdit>
                        <SettingsHeaderFilter Mode="CheckedList">
                        </SettingsHeaderFilter>
                    </dx:GridViewDataDateColumn>
                    <dx:GridViewDataTextColumn FieldName="Note" VisibleIndex="47" Visible="false">
                        <SettingsHeaderFilter Mode="CheckedList">
                        </SettingsHeaderFilter>
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataTextColumn FieldName="Underlyings" Caption="UL" ReadOnly="True" VisibleIndex="3" FixedStyle="Left">
                        <SettingsHeaderFilter Mode="CheckedList">
                        </SettingsHeaderFilter>
                        <CellStyle BackColor="#CCCCFF">
                        </CellStyle>
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataComboBoxColumn FieldName="BasketType" VisibleIndex="16">
                        <PropertiesComboBox DataSourceID="SqlDSBasketType" TextField="Basket_type" ValueField="IDBasketType">
                        </PropertiesComboBox>
                        <SettingsHeaderFilter Mode="CheckedList">
                        </SettingsHeaderFilter>
                    </dx:GridViewDataComboBoxColumn>
                    <dx:GridViewDataHyperLinkColumn Caption="doc" FieldName="ISIN" VisibleIndex="1" Visible="False">
                        <PropertiesHyperLinkEdit NavigateUrlFormatString="~/MemberPages/DocumentsPage.aspx?isin={0}" Target="_blank" Text="docs" TextFormatString="">
                        </PropertiesHyperLinkEdit>
                        <SettingsHeaderFilter Mode="CheckedList">
                        </SettingsHeaderFilter>
                    </dx:GridViewDataHyperLinkColumn>
                    <dx:GridViewCommandColumn VisibleIndex="0" ShowEditButton="True" Width="20px" Visible="False">
                    </dx:GridViewCommandColumn>
                    <dx:GridViewDataTextColumn FieldName="Premium" ReadOnly="True" VisibleIndex="41">
                        <PropertiesTextEdit DisplayFormatString="P2" Width="20px">
                        </PropertiesTextEdit>
                        <SettingsHeaderFilter Mode="CheckedList">
                        </SettingsHeaderFilter>
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataTextColumn Caption="CPN Ann Num" FieldName="AnnualCouponNumber" VisibleIndex="33">
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataTextColumn FieldName="Currency" ReadOnly="True" VisibleIndex="46">
                        <SettingsHeaderFilter Mode="CheckedList">
                        </SettingsHeaderFilter>
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataTextColumn Caption="Nom CPN Tot Yield" FieldName="PotentialCoupon" ReadOnly="True" VisibleIndex="31">
                        <PropertiesTextEdit DisplayFormatString="P2">
                        </PropertiesTextEdit>
                        <SettingsHeaderFilter Mode="CheckedList">
                        </SettingsHeaderFilter>
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataTextColumn Caption="Eff CPN tot Yield" FieldName="PotentialCouponYield" ReadOnly="True" VisibleIndex="32">
                        <PropertiesTextEdit DisplayFormatString="P2">
                        </PropertiesTextEdit>
                        <SettingsHeaderFilter Mode="CheckedList">
                        </SettingsHeaderFilter>
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataTextColumn FieldName="Dir" ReadOnly="True" VisibleIndex="49">
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataTextColumn Caption="PerfUL_K" FieldName="Perf_UL_Capital" VisibleIndex="50">
                        <PropertiesTextEdit DisplayFormatString="P2" Width="20px">
                        </PropertiesTextEdit>
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataTextColumn Caption="PerfUL_CPN" FieldName="Perf_UL_Coupon" VisibleIndex="51">
                        <PropertiesTextEdit DisplayFormatString="P2" Width="20px">
                        </PropertiesTextEdit>
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataTextColumn Caption="PerfUL_AutoC" FieldName="Perf_UL_Autocall" VisibleIndex="52">
                        <PropertiesTextEdit DisplayFormatString="P2" Width="20px">
                        </PropertiesTextEdit>
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataTextColumn FieldName="CapitalValue" VisibleIndex="45">
                        <PropertiesTextEdit DisplayFormatString="n2" Width="20px">
                        </PropertiesTextEdit>
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataTextColumn FieldName="AutocallValue" VisibleIndex="44">
                        <PropertiesTextEdit DisplayFormatString="n2" Width="20px">
                        </PropertiesTextEdit>
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataDateColumn FieldName="CD_DataBarriera" VisibleIndex="20">
                        <PropertiesDateEdit DisplayFormatString="dd/MM/yyyy">
                        </PropertiesDateEdit>
                    </dx:GridViewDataDateColumn>
                    <dx:GridViewDataTextColumn FieldName="RTS" Caption="RTA" VisibleIndex="54" ToolTip="Rimborso teorico attuale">
                        <PropertiesTextEdit DisplayFormatString="n2" Width="20px">
                        </PropertiesTextEdit>
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataTextColumn FieldName="RTS_caso" Caption="RTA (caso)" VisibleIndex="55" ToolTip="Rimborso teorico attuale (casistica)">
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataTextColumn FieldName="RimborsoMax" VisibleIndex="56">
                        <PropertiesTextEdit DisplayFormatString="n2">
                        </PropertiesTextEdit>
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataTextColumn Caption="VaR" FieldName="Var" VisibleIndex="53">
                        <PropertiesTextEdit DisplayFormatString="n2">
                        </PropertiesTextEdit>
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataTextColumn FieldName="IRR" VisibleIndex="39">
                        <PropertiesTextEdit DisplayFormatString="P2" Width="20px">
                        </PropertiesTextEdit>
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataTextColumn FieldName="VOL30" VisibleIndex="57">
                        <PropertiesTextEdit DisplayFormatString="P2">
                        </PropertiesTextEdit>
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataTextColumn FieldName="VOLFULL" VisibleIndex="58">
                        <PropertiesTextEdit DisplayFormatString="P2">
                        </PropertiesTextEdit>
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataTextColumn FieldName="Mkt" VisibleIndex="14">
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataCheckColumn FieldName="Memory" VisibleIndex="12">
                    </dx:GridViewDataCheckColumn>
                    <dx:GridViewDataTextColumn FieldName="CpnInMemoria" VisibleIndex="34">
                        <PropertiesTextEdit DisplayFormatString="F2">
                        </PropertiesTextEdit>
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataTextColumn FieldName="CpnPagati" VisibleIndex="35">
                        <PropertiesTextEdit DisplayFormatString="F2">
                        </PropertiesTextEdit>
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataTextColumn FieldName="CpnDaPagare" VisibleIndex="36">
                        <PropertiesTextEdit DisplayFormatString="F2">
                        </PropertiesTextEdit>
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataTextColumn FieldName="MantelloCpn" VisibleIndex="37">
                        <PropertiesTextEdit DisplayFormatString="F2">
                        </PropertiesTextEdit>
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataTextColumn FieldName="DaysToMaturity" VisibleIndex="8" ShowInCustomizationForm="True">
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataTextColumn FieldName="LastUpdate" VisibleIndex="59">
                        <PropertiesTextEdit DisplayFormatString="dd/MM/yyyy HH:mm:ss">
                        </PropertiesTextEdit>
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataCheckColumn FieldName="Airbag" VisibleIndex="9">
                    </dx:GridViewDataCheckColumn>
                    <dx:GridViewDataCheckColumn FieldName="OneStar" VisibleIndex="10">
                    </dx:GridViewDataCheckColumn>
                    <dx:GridViewDataCheckColumn FieldName="AutocallDecrescente" VisibleIndex="13">
                    </dx:GridViewDataCheckColumn>
                    <dx:GridViewDataCheckColumn FieldName="Magnet" VisibleIndex="13">
                    </dx:GridViewDataCheckColumn>
                    <dx:GridViewDataTextColumn FieldName="TotalReturn" VisibleIndex="24">
                        <PropertiesTextEdit DisplayFormatString="P2">
                        </PropertiesTextEdit>
                        <SettingsHeaderFilter Mode="CheckedList">
                        </SettingsHeaderFilter>
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataCheckColumn FieldName="MaxiCoupon" VisibleIndex="11">
                    </dx:GridViewDataCheckColumn>
                    <dx:GridViewDataTextColumn FieldName="TickersUnderlyings" Caption="Ticker" ReadOnly="True" VisibleIndex="3" FixedStyle="Left">
                        <SettingsHeaderFilter Mode="CheckedList">
                        </SettingsHeaderFilter>
                        <CellStyle BackColor="#CCCCFF">
                        </CellStyle>
                    </dx:GridViewDataTextColumn>
                </Columns>
                <Styles>
                    <Header Wrap="True">
                    </Header>
                </Styles>
            </dx:ASPxGridView>
        </div>
        <asp:SqlDataSource ID="SqlDSCertificatesCalc" runat="server" ConnectionString="<%$ ConnectionStrings:OlympiaIntranet.Properties.Settings.SqlConnection %>" ProviderName="<%$ ConnectionStrings:OlympiaIntranet.Properties.Settings.SqlConnection.ProviderName %>" SelectCommand="SELECT * FROM LoadCertificatesCalc WHERE Mkt IN ('CERT-X','SEDEX')" SelectCommandType="Text"></asp:SqlDataSource>
        <asp:SqlDataSource ID="SqlDSCategory" runat="server" ConnectionString="<%$ ConnectionStrings:OlympiaIntranet.Properties.Settings.SqlConnection %>" SelectCommand="SELECT [Name], [IDCategory] FROM [Category] Order by Name" ProviderName="<%$ ConnectionStrings:OlympiaIntranet.Properties.Settings.SqlConnection.ProviderName %>"></asp:SqlDataSource>
        <asp:SqlDataSource ID="SqlDSIssuer" runat="server" ConnectionString="<%$ ConnectionStrings:OlympiaIntranet.Properties.Settings.SqlConnection %>" SelectCommand="SELECT * FROM [Issuer] order by Name" ProviderName="<%$ ConnectionStrings:OlympiaIntranet.Properties.Settings.SqlConnection.ProviderName %>"></asp:SqlDataSource>
        <asp:SqlDataSource ID="SqlDSUnderlyingsType" runat="server" ConnectionString="<%$ ConnectionStrings:OlympiaIntranet.Properties.Settings.SqlConnection %>" SelectCommand="SELECT * FROM [UnderlyingsType]" ProviderName="<%$ ConnectionStrings:OlympiaIntranet.Properties.Settings.SqlConnection.ProviderName %>"></asp:SqlDataSource>
        <asp:SqlDataSource ID="SqlDSBarrierType" runat="server" ConnectionString="<%$ ConnectionStrings:OlympiaIntranet.Properties.Settings.SqlConnection %>" SelectCommand="SELECT * FROM [BarrierType]" ProviderName="<%$ ConnectionStrings:OlympiaIntranet.Properties.Settings.SqlConnection.ProviderName %>"></asp:SqlDataSource>
        <asp:SqlDataSource ID="SqlDSBasketType" runat="server" ConnectionString="<%$ ConnectionStrings:OlympiaIntranet.Properties.Settings.SqlConnection %>" SelectCommand="SELECT * FROM [BasketType]" ProviderName="<%$ ConnectionStrings:OlympiaIntranet.Properties.Settings.SqlConnection.ProviderName %>"></asp:SqlDataSource>
        <asp:SqlDataSource ID="SqlDSFilters" runat="server" ConnectionString="<%$ ConnectionStrings:OlympiaIntranet.Properties.Settings.SqlConnection %>" ProviderName="<%$ ConnectionStrings:OlympiaIntranet.Properties.Settings.SqlConnection.ProviderName %>" SelectCommand="SELECT * FROM Filters WHERE GridName = 'CERTIFICATESCALC' ORDER BY Description"></asp:SqlDataSource>
        <dx:ASPxGlobalEvents ID="ge" runat="server">
            <ClientSideEvents ControlsInitialized="OnControlsInitialized" />
        </dx:ASPxGlobalEvents>
    </form>
</body>
</html>
