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

<%@ Register Assembly="DevExpress.Web.v23.2, Version=23.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Data.Linq" TagPrefix="dx" %>
<%@ 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">
        <div>
            <dx:ASPxRibbon ID="ASPxRibbon1" runat="server" EnableTheming="True" Theme="Office2010Blue" ShowFileTab="False" ShowTabs="False" OnCommandExecuted="ASPxRibbon1_CommandExecuted">
                <Tabs>
                    <dx:RibbonTab Name="Main" Text="Main">
                        <Groups>
                            <dx:RibbonGroup Text="Filtri" Name="Filtri">
                                <Items>
                                    <dx:RibbonTemplateItem Size="Large" Name="ribbonTemplate">
                                        <Template>
                                            <table cellpadding="0" cellspacing="0">
                                                <tr>
                                                    <td>Data Inizio  
                                                    </td>
                                                    <td>
                                                        <dx:ASPxDateEdit ID="dataInizio" runat="server" DisplayFormatString="dd/MM/yyyy" EditFormat="Custom" EditFormatString="dd/MM/yyyy" />
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>Data Fine  
                                                    </td>
                                                    <td>
                                                        <dx:ASPxDateEdit ID="dataFine" runat="server" DisplayFormatString="dd/MM/yyyy" EditFormat="Custom" EditFormatString="dd/MM/yyyy" />
                                                    </td>
                                                </tr>
                                            </table>
                                        </Template>
                                    </dx:RibbonTemplateItem>
                                    <dx:RibbonButtonItem Name="loadGrid" Size="Large" Text="Carica">
                                        <LargeImage IconID="actions_refresh2_32x32">
                                        </LargeImage>
                                    </dx:RibbonButtonItem>
                                </Items>
                            </dx:RibbonGroup>
                            <dx:RibbonGroup Text="Tools" Name="Tools">
                                <Items>
                                    <dx:RibbonButtonItem Name="exportExcel" Size="Large" Text="Excel">
                                        <LargeImage IconID="export_exporttoxlsx_32x32">
                                        </LargeImage>
                                    </dx:RibbonButtonItem>
                                </Items>
                            </dx:RibbonGroup>
                        </Groups>
                    </dx:RibbonTab>
                </Tabs>
            </dx:ASPxRibbon>
            <table>
                <tr style="height: 10px;"></tr>
                <tr>
                    <td>
                        <dx:ASPxLabel ID="ASPxLabel15" runat="server" Text="Totale Raccolta" Theme="Office2010Blue"></dx:ASPxLabel>
                    </td>
                    <td>
                        <dx:ASPxTextBox ID="tbTotaleRaccolta" runat="server" Width="170px" Theme="Office2010Blue" Font-Bold="True" ReadOnly="True"></dx:ASPxTextBox>
                    </td>
                    <td>
                        <dx:ASPxPanel ID="ASPxPanel29" runat="server" Width="20px">
                            <PanelCollection>
                                <dx:PanelContent runat="server"></dx:PanelContent>
                            </PanelCollection>
                        </dx:ASPxPanel>
                    </td>
                    <td>
                        <dx:ASPxLabel ID="ASPxLabel2" runat="server" Text="Totale Conti Aperti" Theme="Office2010Blue"></dx:ASPxLabel>
                    </td>
                    <td>
                        <dx:ASPxTextBox ID="tbTotContiAperti" runat="server" Width="170px" Theme="Office2010Blue" Font-Bold="True" ReadOnly="True"></dx:ASPxTextBox>
                    </td>
                    <td>
                        <dx:ASPxPanel ID="ASPxPanel1" runat="server" Width="20px">
                            <PanelCollection>
                                <dx:PanelContent runat="server"></dx:PanelContent>
                            </PanelCollection>
                        </dx:ASPxPanel>
                    </td>
                    <td>
                        <dx:ASPxLabel ID="ASPxLabel1" runat="server" Text="Totale Conti Chiusi" Theme="Office2010Blue"></dx:ASPxLabel>
                    </td>
                    <td>
                        <dx:ASPxTextBox ID="tbTotContiChiusi" runat="server" Width="170px" Theme="Office2010Blue" Font-Bold="True" ReadOnly="True"></dx:ASPxTextBox>
                    </td>
                </tr>
                <tr style="height: 10px;"></tr>
            </table>
            <dx:ASPxPageControl ID="ASPxPageControl1" runat="server" Theme="Office2010Blue" ActiveTabIndex="0" EnableTheming="True">
                <TabPages>
                    <dx:TabPage Text="Gestori" Name="tabGestori">
                        <ContentCollection>
                            <dx:ContentControl runat="server">
                                <dx:ASPxGridView ID="gvRaccoltaGestori" runat="server" OnDataBound="gvRaccoltaGestori_DataBound" Theme="Office2010Blue" Width="100%" OnCustomSummaryCalculate="gvRaccoltaGestori_CustomSummaryCalculate" AutoGenerateColumns="False" KeyFieldName="ID" OnHtmlFooterCellPrepared="gvRaccoltaGestori_HtmlFooterCellPrepared" OnSummaryDisplayText="gvRaccoltaGestori_SummaryDisplayText">
                                    <SettingsAdaptivity>
                                        <AdaptiveDetailLayoutProperties ColCount="1"></AdaptiveDetailLayoutProperties>
                                    </SettingsAdaptivity>
                                    <SettingsPager PageSize="15" Mode="ShowAllRecords">
                                    </SettingsPager>
                                    <Settings ShowFilterRow="True" ShowHeaderFilterButton="True" ShowTitlePanel="True" ShowFooter="true" />
                                    <EditFormLayoutProperties ColCount="1"></EditFormLayoutProperties>
                                </dx:ASPxGridView>
                            </dx:ContentControl>
                        </ContentCollection>
                    </dx:TabPage>
                    <dx:TabPage Name="tabConsulenti" Text="Consulenti">
                        <ContentCollection>
                            <dx:ContentControl runat="server">
                                <dx:ASPxGridView ID="gvSituazioneConti" runat="server" OnDataBound="gvSituazioneConti_DataBound" Theme="Office2010Blue" Width="100%" AutoGenerateColumns="False" KeyFieldName="ID">
                                    <SettingsAdaptivity>
                                        <AdaptiveDetailLayoutProperties ColCount="1"></AdaptiveDetailLayoutProperties>
                                    </SettingsAdaptivity>
                                    <SettingsPager PageSize="15" Mode="ShowAllRecords">
                                    </SettingsPager>
                                    <Settings ShowFilterRow="True" ShowHeaderFilterButton="True" ShowTitlePanel="True" ShowFooter="true" />
                                    <EditFormLayoutProperties ColCount="1"></EditFormLayoutProperties>
                                </dx:ASPxGridView>
                                <dx:ASPxPanel ID="ASPxPanel10" runat="server" Width="20px">
                                    <PanelCollection>
                                        <dx:PanelContent runat="server"></dx:PanelContent>
                                    </PanelCollection>
                                </dx:ASPxPanel>
                                <dx:ASPxGridView ID="gvRaccoltaConsulenti" runat="server" OnDataBound="gvRaccoltaConsulenti_DataBound" Theme="Office2010Blue" Width="100%" OnCustomSummaryCalculate="gvRaccoltaConsulenti_CustomSummaryCalculate" AutoGenerateColumns="False" KeyFieldName="ID" OnHtmlFooterCellPrepared="gvRaccoltaConsulenti_HtmlFooterCellPrepared" OnSummaryDisplayText="gvRaccoltaConsulenti_SummaryDisplayText">
                                    <SettingsAdaptivity>
                                        <AdaptiveDetailLayoutProperties ColCount="1"></AdaptiveDetailLayoutProperties>
                                    </SettingsAdaptivity>
                                    <SettingsPager PageSize="15" Mode="ShowAllRecords">
                                    </SettingsPager>
                                    <Settings ShowFilterRow="True" ShowHeaderFilterButton="True" ShowTitlePanel="True" ShowFooter="true" />
                                    <EditFormLayoutProperties ColCount="1"></EditFormLayoutProperties>
                                </dx:ASPxGridView>
                            </dx:ContentControl>
                        </ContentCollection>
                    </dx:TabPage>
                </TabPages>
            </dx:ASPxPageControl>

        </div>
        <%--        <asp:SqlDataSource ID="SqlDSRaccoltaConsulenti" runat="server" ConnectionString="Data Source=26.69.45.60;Initial Catalog=FirstSolutionDB;Persist Security Info=True;User ID=sa;Password=Skyline72;TrustServerCertificate=True;"  SelectCommand="GDN_RaccoltaConsulenti" SelectCommandType="StoredProcedure" >
            <SelectParameters>
                <asp:SessionParameter Name="DataInizio" SessionField="data_inizio" />
                <asp:SessionParameter Name="DataFine" SessionField="data_fine" />
            </SelectParameters>
        </asp:SqlDataSource>--%>
        <dx:ASPxGridViewExporter ID="ExporterRaccoltaConsulenti" runat="server" GridViewID="gvRaccoltaConsulenti">
        </dx:ASPxGridViewExporter>
        <dx:ASPxGridViewExporter ID="ExporterRaccoltaGestori" runat="server" GridViewID="gvRaccoltaGestori">
        </dx:ASPxGridViewExporter>
    </form>
</body>
</html>
