<%@ Page Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="True" CodeBehind="Verein.aspx.cs" Inherits="QW2021C.Administration.Verein" %>
<%@ 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" %>

<asp:Content ID="MainContent" ContentPlaceHolderID="MainContent" runat="Server">
    <asp:Label runat="server"><h4>Vereine</h4></asp:Label>
    <ej:Grid ID="Grid1" runat="server" CssClass="" DataSourceCachingMode="None" DataSourceID="SqlDataSource1" EnableLoadOnDemand="False" Locale="de-CH" MinWidth="0" AllowPaging="True" AllowSorting="True" AllowFiltering="True">
        <Columns>
            <ej:Column DataType="string" Field="account_code">
            </ej:Column>
            <ej:Column DataType="string" Field="account_name">
            </ej:Column>
            <ej:Column DataType="string" Field="account_short">
            </ej:Column>
            <ej:Column DataType="string" Field="account_type">
            </ej:Column>
            <ej:Column DataType="string" Field="lg">
            </ej:Column>
        </Columns>
    </ej:Grid>
   <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:QWToolConnectionstring %>" 
      SelectCommand="SELECT * FROM [base_account]" InsertCommand="INSERT INTO [base_account] ([account_code], [account_name], [account_short], [account_type], [lg]) VALUES (@account_code, @account_name, @account_short, @account_type, @lg)">
      <InsertParameters>
         <asp:Parameter Name="account_code" Type="String" />
         <asp:Parameter Name="account_name" Type="String" />
         <asp:Parameter Name="account_short" Type="String" />
         <asp:Parameter Name="account_type" Type="String" />
         <asp:Parameter Name="lg" Type="String" />
      </InsertParameters>
   </asp:SqlDataSource>
</asp:Content>