39 lines
3 KiB
Text
39 lines
3 KiB
Text
<%@ Page Title="BR2 Cycli" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeBehind="BR2Cycli.aspx.cs" Inherits="Rems2018.Rems.BR2Cycli" %>
|
|
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
|
|
<telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="True" AllowSorting="True" AutoGenerateColumns="False" AutoGenerateEditColumn="True" CellSpacing="0" DataSourceID="SqlDSRems5" GridLines="None" AllowAutomaticInserts="True">
|
|
<ExportSettings>
|
|
<Pdf PageWidth="">
|
|
</Pdf>
|
|
</ExportSettings>
|
|
<MasterTableView AllowAutomaticUpdates="True" CommandItemDisplay="Top" DataKeyNames="id" DataSourceID="SqlDSRems5">
|
|
<Columns>
|
|
<telerik:GridBoundColumn DataField="id" DataType="System.Int32" HeaderText="id" ReadOnly="True" SortExpression="id" UniqueName="id" HeaderStyle-Width="50px" AllowFiltering="false" />
|
|
<telerik:GridBoundColumn DataField="tp" HeaderText="tp" SortExpression="tp" UniqueName="tp" HeaderStyle-Width="30px" AllowFiltering="false" />
|
|
<telerik:GridBoundColumn DataField="year" DataType="System.Int32" HeaderText="year" SortExpression="year" UniqueName="year" HeaderStyle-Width="50px" AllowFiltering="true" />
|
|
<telerik:GridBoundColumn DataField="seq" DataType="System.Int32" HeaderText="seq" SortExpression="seq" UniqueName="seq" />
|
|
<telerik:GridBoundColumn DataField="van" DataType="System.DateTime" HeaderText="van" SortExpression="van" UniqueName="van" />
|
|
<telerik:GridBoundColumn DataField="tot" DataType="System.DateTime" HeaderText="tot" SortExpression="tot" UniqueName="tot" />
|
|
</Columns>
|
|
</MasterTableView>
|
|
</telerik:RadGrid>
|
|
<asp:SqlDataSource ID="SqlDSRems5" runat="server" ConnectionString="<%$ ConnectionStrings:RemsConnectionString %>" SelectCommand="SELECT * FROM [br2Cycli]" DeleteCommand="DELETE FROM [br2Cycli] WHERE [id] = @id" InsertCommand="INSERT INTO [br2Cycli] ([tp], [year], [seq], [van], [tot]) VALUES (@tp, @year, @seq, @van, @tot)" UpdateCommand="UPDATE [br2Cycli] SET [tp] = @tp, [year] = @year, [seq] = @seq, [van] = @van, [tot] = @tot WHERE [id] = @id">
|
|
<DeleteParameters>
|
|
<asp:Parameter Name="id" Type="Int32" />
|
|
</DeleteParameters>
|
|
<InsertParameters>
|
|
<asp:Parameter Name="tp" Type="String" />
|
|
<asp:Parameter Name="year" Type="Int32" />
|
|
<asp:Parameter Name="seq" Type="Int32" />
|
|
<asp:Parameter Name="van" Type="DateTime" />
|
|
<asp:Parameter Name="tot" Type="DateTime" />
|
|
</InsertParameters>
|
|
<UpdateParameters>
|
|
<asp:Parameter Name="tp" Type="String" />
|
|
<asp:Parameter Name="year" Type="Int32" />
|
|
<asp:Parameter Name="seq" Type="Int32" />
|
|
<asp:Parameter Name="van" Type="DateTime" />
|
|
<asp:Parameter Name="tot" Type="DateTime" />
|
|
<asp:Parameter Name="id" Type="Int32" />
|
|
</UpdateParameters>
|
|
</asp:SqlDataSource>
|
|
</asp:Content>
|