You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
193 lines
10 KiB
193 lines
10 KiB
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Schulhaus.aspx.vb" Inherits="LPWeb.Schulhaus" %>
|
|
<%@ Register Src="~/Defaults/Header.ascx" TagPrefix="shu" TagName="Header" %>
|
|
<%@ Register Src="~/UserControls/Menu1.ascx" TagPrefix="shu" TagName="Menu" %>
|
|
<%@ Register Src="~/Defaults/Footer.ascx" TagPrefix="shu" TagName="Footer" %>
|
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head id="Head1" runat="server">
|
|
<title></title>
|
|
<link href="~/Styles/Site.css" rel="stylesheet" type="text/css" /></head>
|
|
<body>
|
|
<div class="page">
|
|
<form id="form1" runat="server">
|
|
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
|
|
<Scripts>
|
|
<asp:ScriptReference Assembly="Telerik.Web.UI"
|
|
Name="Telerik.Web.UI.Common.Core.js">
|
|
</asp:ScriptReference>
|
|
<asp:ScriptReference Assembly="Telerik.Web.UI"
|
|
Name="Telerik.Web.UI.Common.jQuery.js">
|
|
</asp:ScriptReference>
|
|
<asp:ScriptReference Assembly="Telerik.Web.UI"
|
|
Name="Telerik.Web.UI.Common.jQueryInclude.js">
|
|
</asp:ScriptReference>
|
|
</Scripts>
|
|
</telerik:RadScriptManager>
|
|
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
|
|
<AjaxSettings>
|
|
<telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
|
|
<UpdatedControls>
|
|
<telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
|
|
<telerik:AjaxUpdatedControl ControlID="Label1" />
|
|
</UpdatedControls>
|
|
</telerik:AjaxSetting>
|
|
<telerik:AjaxSetting AjaxControlID="RadGrid1">
|
|
<UpdatedControls>
|
|
<telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
|
|
<telerik:AjaxUpdatedControl ControlID="Label1" />
|
|
</UpdatedControls>
|
|
</telerik:AjaxSetting>
|
|
</AjaxSettings>
|
|
</telerik:RadAjaxManager>
|
|
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" /> <shu:Header runat="Server" ID="Header1"></shu:Header>
|
|
|
|
<shu:Menu runat="server" ID="Menu1" NavigationLanguage="VB"></shu:Menu>
|
|
<div class="main">
|
|
<h2>Schulhäuser</h2>
|
|
<br />
|
|
<telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False"
|
|
CellSpacing="0" Culture="de-DE" DataSourceID="SqlDataSource1"
|
|
GridLines="None" AllowAutomaticDeletes="True" AllowAutomaticInserts="True"
|
|
AllowAutomaticUpdates="True" AllowSorting="True">
|
|
<MasterTableView DataKeyNames="SchulhausNr" DataSourceID="SqlDataSource1" CommandItemDisplay="TopAndBottom"
|
|
TableLayout="Fixed">
|
|
|
|
<CommandItemSettings ExportToPdfText="PDF-Export"
|
|
AddNewRecordText="Neuer Datensatz" ExportToExcelText="Excel-Export"
|
|
RefreshText="Aktualisieren"></CommandItemSettings>
|
|
|
|
<RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
|
|
<HeaderStyle Width="20px"></HeaderStyle>
|
|
</RowIndicatorColumn>
|
|
|
|
<ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
|
|
<HeaderStyle Width="20px"></HeaderStyle>
|
|
</ExpandCollapseColumn>
|
|
|
|
<Columns>
|
|
<telerik:GridBoundColumn DataField="SchulhausNr" DataType="System.Int32"
|
|
FilterControlAltText="Filter SchulhausNr column" HeaderText="SchulhausNr" ReadOnly="True"
|
|
SortExpression="SchulhausNr" UniqueName="SchulhausNr">
|
|
<HeaderStyle Width="30px" />
|
|
<ItemStyle Wrap="False" />
|
|
</telerik:GridBoundColumn>
|
|
<telerik:GridBoundColumn DataField="Bezeichnung"
|
|
FilterControlAltText="Filter Bezeichnung column" HeaderText="Bezeichnung"
|
|
SortExpression="Bezeichnung" UniqueName="Bezeichnung">
|
|
<HeaderStyle Width="100px" />
|
|
<ItemStyle Wrap="False" />
|
|
</telerik:GridBoundColumn>
|
|
<telerik:GridBoundColumn DataField="Strasse"
|
|
FilterControlAltText="Filter Strasse column" HeaderText="Strasse"
|
|
SortExpression="Strasse" UniqueName="Strasse">
|
|
<HeaderStyle Width="100px" />
|
|
<ItemStyle Wrap="False" />
|
|
</telerik:GridBoundColumn>
|
|
<telerik:GridBoundColumn DataField="PLZ" DataType="System.Int32"
|
|
FilterControlAltText="Filter PLZ column" HeaderText="PLZ"
|
|
SortExpression="PLZ" UniqueName="PLZ">
|
|
<HeaderStyle Width="60px" />
|
|
<ItemStyle Wrap="False" />
|
|
</telerik:GridBoundColumn>
|
|
<telerik:GridBoundColumn DataField="Ort" HeaderText="Ort" SortExpression="Ort"
|
|
UniqueName="Ort" FilterControlAltText="Filter Ort column">
|
|
<HeaderStyle Width="80px" />
|
|
<ItemStyle Wrap="False" />
|
|
</telerik:GridBoundColumn>
|
|
<telerik:GridBoundColumn DataField="Telefon" HeaderText="Telefon"
|
|
SortExpression="Telefon" UniqueName="Telefon"
|
|
FilterControlAltText="Filter Telefon column">
|
|
<HeaderStyle Width="80px" />
|
|
<ItemStyle Wrap="False" />
|
|
</telerik:GridBoundColumn>
|
|
<telerik:GridCheckBoxColumn DataField="Aktiv" DataType="System.Boolean"
|
|
FilterControlAltText="Filter Aktiv column" HeaderText="Aktiv"
|
|
SortExpression="Aktiv" UniqueName="Aktiv">
|
|
<HeaderStyle Width="40px" />
|
|
<ItemStyle Wrap="False" />
|
|
</telerik:GridCheckBoxColumn>
|
|
<telerik:GridBoundColumn DataField="Erstellt_am" DataType="System.DateTime"
|
|
FilterControlAltText="Filter Erstellt_am column" HeaderText="Erstellt_am"
|
|
SortExpression="Erstellt_am" UniqueName="Erstellt_am" ReadOnly="true">
|
|
<HeaderStyle Width="60px" />
|
|
<ItemStyle Wrap="False" />
|
|
</telerik:GridBoundColumn>
|
|
<telerik:GridBoundColumn DataField="Mutiert_am" DataType="System.DateTime"
|
|
FilterControlAltText="Filter Mutiert_am column" HeaderText="Mutiert_am"
|
|
SortExpression="Mutiert_am" UniqueName="Mutiert_am" ReadOnly="true">
|
|
<HeaderStyle Width="60px" />
|
|
<ItemStyle Wrap="False" />
|
|
</telerik:GridBoundColumn>
|
|
<telerik:GridBoundColumn DataField="Mutierer" DataType="System.Int32"
|
|
FilterControlAltText="Filter Mutierer column" HeaderText="Mutierer"
|
|
SortExpression="Mutierer" UniqueName="Mutierer" ReadOnly="true">
|
|
<HeaderStyle Width="60px" />
|
|
<ItemStyle Wrap="False" />
|
|
</telerik:GridBoundColumn>
|
|
<telerik:GridEditCommandColumn FilterControlAltText="Filter EditCommandColumn column"
|
|
HeaderText="" ButtonType="ImageButton" ItemStyle-HorizontalAlign="Center">
|
|
<HeaderStyle Width="40px" />
|
|
|
|
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
|
</telerik:GridEditCommandColumn>
|
|
<telerik:GridButtonColumn ConfirmText="Schulhaus wirklich löschen?" ConfirmDialogType="RadWindow"
|
|
ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" Text="Delete" HeaderText=""
|
|
UniqueName="DeleteColumn" ItemStyle-HorizontalAlign="Center">
|
|
<ItemStyle HorizontalAlign="Center" CssClass="MyImageButton" />
|
|
<HeaderStyle Width="40px" />
|
|
</telerik:GridButtonColumn>
|
|
</Columns>
|
|
|
|
<EditFormSettings>
|
|
<EditColumn FilterControlAltText="Filter EditCommandColumn column" ButtonType="ImageButton"
|
|
InsertText="Einfügen" UpdateText="Speichern" CancelText="Abbruch"> </EditColumn>
|
|
</EditFormSettings>
|
|
</MasterTableView>
|
|
|
|
<FilterMenu EnableImageSprites="False"></FilterMenu>
|
|
</telerik:RadGrid>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
|
|
<shu:Footer runat="Server" ID="Footer1"></SHU:Footer>
|
|
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
|
|
ConnectionString="<%$ ConnectionStrings:LPConnectionString %>"
|
|
DeleteCommand="Update [Schulhaus] set aktiv=0, mutiert_am=getdate(), mutierer=@mutierer WHERE [SchulhausNr] = @SchulhausNr"
|
|
InsertCommand="INSERT INTO [Schulhaus] ([Bezeichnung], [Strasse], [PLZ], [Ort], [Telefon], [Aktiv], [Erstellt_am], [Mutiert_am], [Mutierer]) VALUES (@Bezeichnung, @Strasse, @PLZ, @Ort, @Telefon, @Aktiv, getdate(), getdate(), @Mutierer)"
|
|
SelectCommand="SELECT * FROM [Schulhaus]"
|
|
|
|
UpdateCommand="UPDATE [Schulhaus] SET [Bezeichnung] = @Bezeichnung, [Strasse] = @Strasse, [PLZ] = @PLZ, [Ort] = @Ort, [Telefon] = @Telefon, [Aktiv] = @Aktiv, [Mutiert_am] = getdate(), [Mutierer] = @Mutierer WHERE [SchulhausNr] = @SchulhausNr">
|
|
<DeleteParameters>
|
|
<asp:Parameter Name="SchulhausNr" Type="Int32" />
|
|
<asp:SessionParameter Name="Mutierer" Type="Int32" sessionfield="UserID" />
|
|
</DeleteParameters>
|
|
<InsertParameters>
|
|
<asp:Parameter Name="Bezeichnung" Type="String" />
|
|
<asp:Parameter Name="Strasse" Type="String" />
|
|
<asp:Parameter Name="PLZ" Type="Int32" />
|
|
<asp:Parameter Name="Ort" Type="String" />
|
|
<asp:Parameter Name="Telefon" Type="String" />
|
|
<asp:Parameter Name="Aktiv" Type="Boolean" />
|
|
<asp:Parameter Name="Erstellt_am" Type="DateTime" />
|
|
<asp:Parameter Name="Mutiert_am" Type="DateTime" />
|
|
<asp:SessionParameter Name="Mutierer" Type="Int32" sessionfield="UserID" />
|
|
</InsertParameters>
|
|
<UpdateParameters>
|
|
<asp:Parameter Name="Bezeichnung" Type="String" />
|
|
<asp:Parameter Name="Strasse" Type="String" />
|
|
<asp:Parameter Name="PLZ" Type="Int32" />
|
|
<asp:Parameter Name="Ort" Type="String" />
|
|
<asp:Parameter Name="Telefon" Type="String" />
|
|
<asp:Parameter Name="Aktiv" Type="Boolean" />
|
|
<asp:Parameter Name="Erstellt_am" Type="DateTime" />
|
|
<asp:Parameter Name="Mutiert_am" Type="DateTime" />
|
|
<asp:SessionParameter Name="Mutierer" Type="Int32" sessionfield="UserID" />
|
|
<asp:Parameter Name="SchulhausNr" Type="Int32" />
|
|
</UpdateParameters>
|
|
</asp:SqlDataSource>
|
|
</body>
|
|
</html>
|