<%@ Page Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Wettkampfeinteilung.aspx.cs" Inherits="QW2021C.Administration.Wettkampfeinteilung" %>

<%@ Register Assembly="Syncfusion.EJ.Web, Version=18.3460.0.35, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" Namespace="Syncfusion.JavaScript.Web" TagPrefix="ej" %>
<%@ Register Assembly="Syncfusion.EJ, Version=18.3460.0.35, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" Namespace="Syncfusion.JavaScript.Models" TagPrefix="ej" %>

<%@ Register assembly="Syncfusion.EJ.Web" namespace="Syncfusion.JavaScript.Web" tagprefix="ej" %>

<asp:Content ID="MainContent" ContentPlaceHolderID="MainContent" runat="Server">
    <asp:Label runat="server"><h4>Wettkampf Einteilung</h4></asp:Label>
    <br />
    <ej:Tab ID="Tab1" runat="server" ClientSideOnBeforeActive="beforeItemActive">
        <Items>
            <ej:TabItem ID="TabItem1" runat="server" Text="1. Hochladen">

                <ContentSection>
                    <div class="tab-title">
                        <h4>CSV-Datei laden</h4>
                        <br />
                        Bitte die CSV-Datei hochladen
                    </div>
                    <br />
                    <ej:UploadBox ID="UploadBox2" runat="server" SaveUrl="~/Administration/saveFilescsv.ashx" AutoUpload="true" OnComplete="Upload1_Complete"
                        FileSize="12000000">
                    </ej:UploadBox>
                    <br />
                </ContentSection>

            </ej:TabItem>
            <ej:TabItem ID="TabItem2" runat="server" Text="2. Verarbeiten">
                <ContentSection>
                    <div class="tab-title">
                        <h4>Daten verarbeiten</h4>
                        <br />
                        Die hochgeladene Datei verarbeiten<br />
                    </div>
                    <br />
                    Inkl. UBS Kids-Cup: <ej:CheckBox ID="chkukc" runat="server" Checked="false"></ej:CheckBox><br /><br />
                    <ej:Button ID="ButtonVerarbeiten1" Text="Datei verarbeiten" runat="server" Enabled="true"
                        EnableRTL="true" Type="Button" OnClick="ButtonVerarbeiten1_Click" ClientSideOnClick="btnClick">
                    </ej:Button>
                    <ej:WaitingPopup ID="target" runat="server" ShowOnInit="false">
                    </ej:WaitingPopup>
                </ContentSection>
            </ej:TabItem>
            <ej:TabItem ID="TabItem3" runat="server" Text="3. Download">
                <ContentSection>
                    <div class="tab-title">
                        <h4>Zusammenfassung / Daten herunterladen</h4>
                        <br />
                        Zusammenfassung:<br />
                         <asp:Label ID="lblzusammenfassung" runat="server"></asp:Label><br /><br />
                        Excel-Datei Herunterladen<br />
                       

                    </div>
                    <br />
                    <asp:HyperLink ID="Download" Text="Download" runat="server"></asp:HyperLink>

                </ContentSection>
            </ej:TabItem>

        </Items>
    </ej:Tab>
    <asp:HiddenField ID="HiddenField1" runat="server" />

    <script type="text/javascript">

        function beforeItemActive(args) {
            if (args.isInteraction == true)
                args.cancel = true;
        }

        function btnClick(e) {

            var popup = $("#<%=target.ClientID%>").data("ejWaitingPopup");

            popup.show();

            setTimeout(success, 550000);

        }

        function success() {


            $("#<%=target.ClientID%>").ejWaitingPopup("hide");

        }

    </script>

    <%--  <div id="ControlRegion">
        <div>
            <ej:WaitingPopup ID="target" runat="server" ShowOnInit="false" Target="#ControlRegion" Text="Loading&hellip;"></ej:WaitingPopup>
            <style type="text/css">
#<%=target.ClientID% > {
                    height: 320px;
                    width: 600px;
                    margin: 0 auto;
                }

                    #<%=target.ClientID% > _WaitingPopup .e-image {
                        display: block;
                        height: 70px;
                    }

                    #<%=target.ClientID% > _WaitingPopup .e-text {
                        color: red;
                    }
            </style>
        </div>
    </div>--%>
</asp:Content>

