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

<%@ 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>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <table>
            <tr>
                <td>
                    <dx:ASPxButton ID="ASPxExportXls" runat="server" OnClick="ASPxExportXls_Click" Theme="Office2010Blue" ToolTip="Click to export data to excel..." Height="22px" Width="36px" Text="Esporta in Excel">
                        <Image IconID="export_exporttoxlsx_16x16">
                        </Image>
                        <Paddings Padding="0px" />
                    </dx:ASPxButton>
                </td>
                <td>
                    <dx:ASPxButton ID="ASPxManualePDF" runat="server" OnClick="ASPxManualePDF_Click" Theme="Office2010Blue" ToolTip="Click to open user PDF manual" Height="22px" Width="36px" Text="Note tecniche">
                        <Image IconID="export_exporttopdf_16x16">
                        </Image>
                        <Paddings Padding="0px" />
                    </dx:ASPxButton>
                </td>
            </tr>
        </table>

        <dx:ASPxGridView ID="ASPxFondiETF" runat="server" EnableTheming="True" Theme="Office2010Blue" AutoGenerateColumns="False" DataSourceID="SqlFondiETF" KeyFieldName="IDStrumentiFinanziari" OnHtmlRowPrepared="ASPxFondiETF_HtmlRowPrepared">
            <SettingsPager AlwaysShowPager="True" PageSize="20">
                <PageSizeItemSettings ShowAllItem="True" Visible="True">
                </PageSizeItemSettings>
            </SettingsPager>
            <Settings ShowFilterRow="True" ShowHeaderFilterButton="True" ShowFilterBar="Visible" />
            <SettingsBehavior FilterRowMode="OnClick" />

            <SettingsPopup>
                <FilterControl AutoUpdatePosition="False"></FilterControl>
            </SettingsPopup>

            <SettingsFilterControl ViewMode="VisualAndText">
            </SettingsFilterControl>
            <Columns>
                <dx:GridViewDataTextColumn FieldName="IDStrumentiFinanziari" ReadOnly="True" VisibleIndex="0" Visible="False">
                    <EditFormSettings Visible="False" />
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataHyperLinkColumn FieldName="ISIN" VisibleIndex="1">
                    <PropertiesHyperLinkEdit NavigateUrlFormatString="https://api.smart-roots.net/api/msGeneraPDF?ISIN={0}&amp;pdfOutput=true" Target="_blank">
                    </PropertiesHyperLinkEdit>
                </dx:GridViewDataHyperLinkColumn>
                <dx:GridViewDataHyperLinkColumn FieldName="Morningstar Code" VisibleIndex="2">
                    <PropertiesHyperLinkEdit NavigateUrlFormatString="https://www.morningstar.it/it/funds/snapshot/snapshot.aspx?id={0}" Target="_blank">
                    </PropertiesHyperLinkEdit>
                </dx:GridViewDataHyperLinkColumn>
                <dx:GridViewDataTextColumn FieldName="Name" VisibleIndex="3">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn FieldName="Listing Currency" VisibleIndex="4">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn FieldName="MorningStar Category" VisibleIndex="5">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn FieldName="Type" ReadOnly="True" VisibleIndex="6">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataDateColumn FieldName="Inception Date" ReadOnly="True" VisibleIndex="7">
                    <PropertiesDateEdit DisplayFormatString="dd/MM/yyyy">
                    </PropertiesDateEdit>
                </dx:GridViewDataDateColumn>
                <dx:GridViewDataTextColumn FieldName="Total Asset Value" VisibleIndex="8">
                    <PropertiesTextEdit DisplayFormatString="N0">
                    </PropertiesTextEdit>
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn FieldName="Performance 3Y" Caption="Performance 3Y (%)" ReadOnly="True" VisibleIndex="9">
                    <PropertiesTextEdit DisplayFormatString="F2">
                    </PropertiesTextEdit>
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn FieldName="Volatility 3Y" Caption="Volatility 3Y (%)" ReadOnly="True" VisibleIndex="10">
                    <PropertiesTextEdit DisplayFormatString="F2">
                    </PropertiesTextEdit>
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn FieldName="Drawdown 3Y" Caption="Drawdown 3Y (%)" ReadOnly="True" VisibleIndex="11">
                    <PropertiesTextEdit DisplayFormatString="F2">
                    </PropertiesTextEdit>
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn FieldName="Rating Finale" VisibleIndex="12">
                    <PropertiesTextEdit DisplayFormatString="F2">
                    </PropertiesTextEdit>
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataDateColumn FieldName="Data Calcolo" VisibleIndex="13">
                    <PropertiesDateEdit DisplayFormatString="dd/MM/yyyy">
                    </PropertiesDateEdit>
                </dx:GridViewDataDateColumn>
            </Columns>
        </dx:ASPxGridView>
        <div>
            <%--            <asp:SqlDataSource ID="SqlFondiETF" runat="server" ConnectionString="<%$ ConnectionStrings:OlympiaIntranet.Properties.Settings.SqlConnection %>" ProviderName="<%$ ConnectionStrings:OlympiaIntranet.Properties.Settings.SqlConnection.ProviderName %>" SelectCommand="tep_LoadFondiETF1" SelectCommandType="StoredProcedure"></asp:SqlDataSource>--%>
            <asp:SqlDataSource ID="SqlFondiETF" runat="server" ConnectionString="<%$ ConnectionStrings:OlympiaIntranet.Properties.Settings.SqlConnection %>" ProviderName="<%$ ConnectionStrings:OlympiaIntranet.Properties.Settings.SqlConnection.ProviderName %>" SelectCommand="rol_GetRatingMedioTermine" SelectCommandType="StoredProcedure"></asp:SqlDataSource>
            <dx:ASPxGridViewExporter ID="ASPxGridViewExporter1" runat="server" GridViewID="ASPxFondiETF">
            </dx:ASPxGridViewExporter>
        </div>
    </form>
</body>
</html>
