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

<%@ 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>
            <table>
                <tr>
                    <td>
                        <dx:ASPxUploadControl ID="ASPxUploadControl1" runat="server" UploadMode="Auto" Width="280px" AutoStartUpload="True" OnFileUploadComplete="ASPxUploadControl1_FileUploadComplete" Theme="Aqua">
                            <AdvancedModeSettings EnableDragAndDrop="True">
                            </AdvancedModeSettings>
                        </dx:ASPxUploadControl>
                    </td>




                </tr>
                <tr>
                    <td>
                        <dx:ASPxButton ID="btnProcessaDatiUBS" runat="server" OnClick="btnProcessaDatiUBS_Click" Style="margin-bottom: 0px" Text="Processa dati UBS" Theme="Aqua">
                            <Image IconID="actions_additem_16x16">
                            </Image>
                        </dx:ASPxButton>
                    </td>
                </tr>
                <tr>
                    <td>Data Banca Sella
                        <dx:ASPxDateEdit ID="dateeditBancaSella" runat="server" Theme="Aqua" EditFormat="Custom" EditFormatString="dd/MM/yyyy">
                        </dx:ASPxDateEdit>
                    </td>
                </tr>
                <tr>
                    <td>
                        <dx:ASPxButton ID="btnProcessaDatiBancaSella" runat="server" OnClick="btnProcessaDatiBancaSella_Click" Style="margin-bottom: 0px" Text="Processa dati Banca Sella" Theme="Aqua">
                            <Image IconID="programming_technology_16x16">
                            </Image>
                        </dx:ASPxButton>
                    </td>
                </tr>
                <tr>
                    <td>
                        <dx:ASPxButton ID="btnCreaOutput" runat="server" OnClick="btnCreaOutput_Click" Style="margin-bottom: 0px" Text="Genera Csv per MiFIR" Theme="Aqua" AutoPostBack="False">
                            <Image IconID="export_exporttocsv_16x16">
                            </Image>
                        </dx:ASPxButton>
                    </td>
                </tr>
            </table>
            <dx:ASPxPageControl ID="pageControl" runat="server" ActiveTabIndex="0" Theme="Aqua">
                <TabPages>
                    <dx:TabPage Name="tpDatiUBS" Text="Dati UBS">
                        <ContentCollection>
                            <dx:ContentControl runat="server">
                                <dx:ASPxGridView ID="gvDatiUBS" runat="server" Theme="Aqua" OnHtmlRowPrepared="gvDatiUBS_HtmlRowPrepared" OnRowUpdating="gvDatiUBS_RowUpdating">
                                    <SettingsAdaptivity>
                                        <AdaptiveDetailLayoutProperties ColCount="1"></AdaptiveDetailLayoutProperties>
                                    </SettingsAdaptivity>

                                    <SettingsPager Mode="ShowAllRecords">
                                    </SettingsPager>

                                    <SettingsEditing Mode="Inline">
                                    </SettingsEditing>

                                    <EditFormLayoutProperties ColCount="1"></EditFormLayoutProperties>
                                </dx:ASPxGridView>
                            </dx:ContentControl>
                        </ContentCollection>
                    </dx:TabPage>
                    <dx:TabPage Name="tpOutputXLS" Text="Output Csv">
                        <ContentCollection>
                            <dx:ContentControl runat="server">
                                <table>
                                    <tr>
                                        <td>
                                            <dx:ASPxLabel ID="lblDatiUBS" runat="server" ForeColor="LightGreen" Text=" " Font-Bold="True"></dx:ASPxLabel>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <dx:ASPxLabel ID="lblDatiBancaSella" runat="server" ForeColor="LightBlue" Text=" " Font-Bold="True"></dx:ASPxLabel>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <dx:ASPxGridView ID="gvOuputExcel" runat="server" Theme="Aqua" EnableCallBacks="False" OnHtmlRowPrepared="gvOuputExcel_HtmlRowPrepared">
                                                <SettingsAdaptivity>
                                                    <AdaptiveDetailLayoutProperties ColCount="1"></AdaptiveDetailLayoutProperties>
                                                </SettingsAdaptivity>
                                                <SettingsPager Mode="ShowAllRecords">
                                                </SettingsPager>
                                                <EditFormLayoutProperties ColCount="1"></EditFormLayoutProperties>
                                            </dx:ASPxGridView>
                                        </td>
                                    </tr>
                                </table>
                            </dx:ContentControl>
                        </ContentCollection>
                    </dx:TabPage>
                </TabPages>
            </dx:ASPxPageControl>
            <dx:ASPxGridViewExporter ID="ASPxGridViewExporter1" runat="server" GridViewID="gvOuputExcel"></dx:ASPxGridViewExporter>
            <dx:ASPxLabel ID="lblError" runat="server" Text="" ForeColor="Red" Font-Bold="true"></dx:ASPxLabel>
        </div>
    </form>
</body>
</html>
