<%@ Page Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="KategoriençKUKC.aspx.cs" Inherits="QW2021C.Resultate.KategoriençKUKC" %>


<%@ 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" namespace="Syncfusion.JavaScript.Models" tagprefix="ej" %>
<asp:Content ID="MainContent" ContentPlaceHolderID="MainContent" runat="Server">
    <asp:Label runat="server"><h4>Kategorien 4-Kampf / UKC</h4></asp:Label>
    <ej:Grid ID="GridDaten" runat="server" AllowFiltering="True" CssClass="" DataSourceCachingMode="None" DataSourceID="SqlDataSource1" 
        EnableLoadOnDemand="False" Locale="de-DE" MinWidth="0" AllowSorting="True" OnServerBatchEditRow="GridDaten_ServerBatchEditRow" Width="600px">
        <Columns>
            <ej:Column AllowEditing="False" DataType="number" Field="Res_Diszipllin_SelectNr" HeaderText="Nr." IsIdentity="True" IsPrimaryKey="True" Width="20px">
            </ej:Column>
            <ej:Column DataType="number" Field="OrtNr" Visible="False">
            </ej:Column>
            <ej:Column AllowEditing="False" DataType="string" Field="Expr1" HeaderText="Ort" IsIdentity="True" IsPrimaryKey="True" Width="150px">
            </ej:Column>
            <ej:Column AllowEditing="False" DataType="string" Field="Kategorie" Width="120px">
            </ej:Column>
            <ej:Column AllowEditing="False" DataType="string" Field="Disziplin" Width="120px">
            </ej:Column>
            <ej:Column DataType="boolean" EditType="BooleanEdit" Field="QW" Width="60px">
            </ej:Column>
            <ej:Column DataType="boolean" EditType="BooleanEdit" Field="UKC" Width="60px">
            </ej:Column>
        </Columns>
          <EditSettings AllowEditing="true" EditMode="Batch" />
        <ToolbarSettings ShowToolbar="true" ToolbarItems="update" />
    </ej:Grid>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:QWToolConnectionstring %>" 
        DeleteCommand="DELETE FROM [Res_Disziplin_Select] WHERE [Res_Diszipllin_SelectNr] = @Res_Diszipllin_SelectNr" 
        InsertCommand="INSERT INTO [Res_Disziplin_Select] ([OrtNr], [Kategorie], [Disziplin], [QW], [EG]) VALUES (@OrtNr, @Kategorie, @Disziplin, @QW, @EG)" 
        SelectCommand="SELECT        dbo.Res_Disziplin_Select.Res_Diszipllin_SelectNr, dbo.Res_Disziplin_Select.OrtNr, dbo.Res_Ort.Ort AS Expr1, dbo.Res_Disziplin_Select.Kategorie, dbo.Res_Disziplin_Select.Disziplin, dbo.Res_Disziplin_Select.QW, 
                         dbo.Res_Disziplin_Select.EG
FROM            dbo.Res_Disziplin_Select INNER JOIN
                         dbo.Res_Ort ON dbo.Res_Disziplin_Select.OrtNr = dbo.Res_Ort.OrtNr" 
        UpdateCommand="UPDATE [Res_Disziplin_Select] SET [OrtNr] = @OrtNr, [Kategorie] = @Kategorie, [Disziplin] = @Disziplin, [QW] = @QW, [EG] = @EG WHERE [Res_Diszipllin_SelectNr] = @Res_Diszipllin_SelectNr">
        <DeleteParameters>
            <asp:Parameter Name="Res_Diszipllin_SelectNr" Type="Int32" />
        </DeleteParameters>
        <InsertParameters>
            <asp:Parameter Name="OrtNr" Type="Int32" />
            <asp:Parameter Name="Kategorie" Type="String" />
            <asp:Parameter Name="Disziplin" Type="String" />
            <asp:Parameter Name="QW" Type="Boolean" />
            <asp:Parameter Name="EG" Type="Boolean" />
        </InsertParameters>
        <UpdateParameters>
            <asp:Parameter Name="OrtNr" Type="Int32" />
            <asp:Parameter Name="Kategorie" Type="String" />
            <asp:Parameter Name="Disziplin" Type="String" />
            <asp:Parameter Name="QW" Type="Boolean" />
            <asp:Parameter Name="EG" Type="Boolean" />
            <asp:Parameter Name="Res_Diszipllin_SelectNr" Type="Int32" />
        </UpdateParameters>

    </asp:SqlDataSource>
</asp:Content>