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

<%@ Register Assembly="DevExpress.Web.v23.2, Version=23.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web" 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>
                    <div>
                        <dx:ASPxFormLayout ID="ASPxFormLayout1" runat="server" EnableTheming="True" Theme="Aqua">
                            <Items>
                                <dx:LayoutGroup Caption="Filtri Selezione" ColCount="6" ColSpan="1" ColumnCount="6">
                                    <Items>
                                        <dx:LayoutItem Caption="Consulente" ColSpan="1">
                                            <LayoutItemNestedControlCollection>
                                                <dx:LayoutItemNestedControlContainer runat="server">
                                                    <dx:ASPxGridLookup ID="gridLookupConsulente" ClientInstanceName="clientgridLookupConsulente" runat="server" Theme="Aqua" DataSourceID="SqlDSConsulenti" DropDownStyle="DropDownList" EnableTheming="True" KeyFieldName="Consulente" TextFormatString="{0}">
                                                        <GridViewProperties>
                                                            <SettingsBehavior AllowFocusedRow="True" AllowSelectSingleRowOnly="True" EnableRowHotTrack="True" />
                                                            <SettingsPager Mode="ShowAllRecords">
                                                            </SettingsPager>
                                                        </GridViewProperties>
                                                    </dx:ASPxGridLookup>
                                                </dx:LayoutItemNestedControlContainer>
                                            </LayoutItemNestedControlCollection>
                                        </dx:LayoutItem>
                                        <dx:LayoutItem Caption="Tipo Attività" ColSpan="1">
                                            <LayoutItemNestedControlCollection>
                                                <dx:LayoutItemNestedControlContainer runat="server">
                                                    <dx:ASPxComboBox ID="cbTipoAttività" runat="server" Theme="Aqua">
                                                        <Items>
                                                            <dx:ListEditItem Text="-- TUTTI --" Value="-- TUTTI --" />
                                                            <dx:ListEditItem Text="GESTIONE PATRIMONIALE" Value="GESTIONE PATRIMONIALE" />
                                                            <dx:ListEditItem Text="POLIZZE" Value="POLIZZE" />
                                                        </Items>
                                                    </dx:ASPxComboBox>
                                                </dx:LayoutItemNestedControlContainer>
                                            </LayoutItemNestedControlCollection>
                                        </dx:LayoutItem>
                                        <dx:LayoutItem Caption="Società" ColSpan="1">
                                            <LayoutItemNestedControlCollection>
                                                <dx:LayoutItemNestedControlContainer runat="server">
                                                    <dx:ASPxComboBox ID="cbSocieta" runat="server" EnableTheming="True" Theme="Aqua">
                                                        <Items>
                                                            <dx:ListEditItem Text="-- TUTTI --" Value="-- TUTTI --" />
                                                            <dx:ListEditItem Text="NEW" Value="NEW" />
                                                            <dx:ListEditItem Text="OLYMPIA" Value="OLYMPIA" />
                                                            <dx:ListEditItem Text="OLYMPIAITA" Value="OLYMPIAITA" />
                                                        </Items>
                                                    </dx:ASPxComboBox>
                                                </dx:LayoutItemNestedControlContainer>
                                            </LayoutItemNestedControlCollection>
                                        </dx:LayoutItem>
                                        <dx:LayoutItem Caption="Mese Riferimento" ColSpan="1">
                                            <LayoutItemNestedControlCollection>
                                                <dx:LayoutItemNestedControlContainer runat="server">
                                                    <dx:ASPxDateEdit ID="deMeseRiferimento" runat="server" EditFormatString="MM/yyyy" PickerType="Months" Theme="Aqua">
                                                    </dx:ASPxDateEdit>
                                                </dx:LayoutItemNestedControlContainer>
                                            </LayoutItemNestedControlCollection>
                                        </dx:LayoutItem>
                                        <dx:LayoutItem Caption="Elabora dati" ColSpan="1">
                                            <LayoutItemNestedControlCollection>
                                                <dx:LayoutItemNestedControlContainer runat="server">
                                                    <dx:ASPxButton ID="btnElaboraDati" runat="server" Theme="Aqua" OnClick="btnElaboraDati_Click">
                                                        <Image IconID="databars_gradientbluedatabar_16x16">
                                                        </Image>
                                                    </dx:ASPxButton>
                                                </dx:LayoutItemNestedControlContainer>
                                            </LayoutItemNestedControlCollection>
                                        </dx:LayoutItem>
                                        <dx:LayoutItem Caption="Esporta in Pdf" ColSpan="1">
                                            <LayoutItemNestedControlCollection>
                                                <dx:LayoutItemNestedControlContainer runat="server">
                                                    <dx:ASPxButton ID="btnEsportaPdf" runat="server" AutoPostBack="False" OnClick="btnEsportaPdf_Click" Theme="Aqua">
<%--                                                        <ClientSideEvents Click="function(s, e) { ExportChartToPdf(e); }" />--%>
                                                        <Image IconID="export_exporttopdf_16x16">
                                                        </Image>
                                                    </dx:ASPxButton>
                                                </dx:LayoutItemNestedControlContainer>
                                            </LayoutItemNestedControlCollection>
                                        </dx:LayoutItem>
                                    </Items>
                                </dx:LayoutGroup>
                                <dx:LayoutGroup Caption="Dati Elaborati" ColSpan="1" ShowCaption="False">
                                    <Items>
                                        <dx:LayoutItem ColSpan="1" Caption="">
                                            <LayoutItemNestedControlCollection>
                                                <dx:LayoutItemNestedControlContainer runat="server">
                                                    <dx:ASPxPageControl ID="ASPxPageControl1" runat="server" ActiveTabIndex="0" EnableTheming="True" Theme="Aqua">
                                                        <TabPages>
                                                            <dx:TabPage Name="tbDatiGuardian" Text="Dati Guardian">
                                                                <ContentCollection>
                                                                    <dx:ContentControl runat="server">
                                                                        <dx:ASPxGridView ID="gvDatiGuardian" runat="server" Theme="Aqua">
                                                                            <SettingsPager Mode="ShowAllRecords" PageSize="20">
                                                                            </SettingsPager>
                                                                            <SettingsDataSecurity AllowDelete="False" AllowEdit="False" AllowInsert="False" />
                                                                        </dx:ASPxGridView>
                                                                    </dx:ContentControl>
                                                                </ContentCollection>
                                                            </dx:TabPage>
                                                            <dx:TabPage Name="tbReport" Text="Report">
                                                                <ContentCollection>
                                                                    <dx:ContentControl runat="server">
                                                                        <dx:ASPxGridView ID="gvReport" runat="server" Theme="Aqua">
                                                                            <SettingsPager Mode="ShowAllRecords" PageSize="20">
                                                                            </SettingsPager>
                                                                            <SettingsDataSecurity AllowDelete="False" AllowEdit="False" AllowInsert="False" />
                                                                        </dx:ASPxGridView>
                                                                    </dx:ContentControl>
                                                                </ContentCollection>
                                                            </dx:TabPage>
                                                        </TabPages>
                                                    </dx:ASPxPageControl>
                                                </dx:LayoutItemNestedControlContainer>
                                            </LayoutItemNestedControlCollection>
                                        </dx:LayoutItem>
                                    </Items>
                                </dx:LayoutGroup>
                            </Items>
                        </dx:ASPxFormLayout>
                    </div>
                </td>
            </tr>
        </table>
<%--        <asp:SqlDataSource ID="SqlDSDatiGuardian" runat="server" ConnectionString="Data Source=26.69.45.60;Initial Catalog=FirstSolutionDB;Persist Security Info=True;User ID=sa;Password=Skyline72" SelectCommand="GDN_VerificheAML_Load" SelectCommandType="StoredProcedure">
            <SelectParameters>
                <asp:Parameter Direction="ReturnValue" Name="RETURN_VALUE" Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>--%>
        <asp:SqlDataSource ID="SqlDSConsulenti" runat="server" ConnectionString="Data Source=26.69.45.60;Initial Catalog=FirstSolutionDB;Persist Security Info=True;User ID=sa;Password=Skyline72" SelectCommand="GDN_VerificheAML_Consulenti" SelectCommandType="StoredProcedure">
            <SelectParameters>
                <asp:Parameter Direction="ReturnValue" Name="RETURN_VALUE" Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
        <dx:ASPxGridViewExporter ID="ASPxGridViewExporter1" runat="server" GridViewID="gvReport"></dx:ASPxGridViewExporter>
    </form>
</body>
</html>

