39 lines
3 KiB
Text
39 lines
3 KiB
Text
|
|
<%@ Page Title="" Language="C#" MasterPageFile="~/Siten.master" AutoEventWireup="true" CodeBehind="phoneFax.aspx.cs" Inherits="safety.phoneFax" %>
|
||
|
|
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
|
||
|
|
<telerik:RadGrid runat="server" ID="gridRooms" AutoGenerateDeleteColumn="True" AutoGenerateEditColumn="True" DataSourceID="SqlDataSource1" AutoGenerateColumns="False" CellSpacing="-1" GridLines="Both">
|
||
|
|
|
||
|
|
<GroupingSettings CollapseAllTooltip="Collapse all groups" CaseSensitive="false"></GroupingSettings>
|
||
|
|
<ExportSettings OpenInNewWindow="true">
|
||
|
|
<Excel FileExtension="xlsx" Format="Xlsx" />
|
||
|
|
</ExportSettings>
|
||
|
|
<MasterTableView AllowAutomaticDeletes="True" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" AllowSorting="True" CommandItemDisplay="Top" DataKeyNames="id" DataSourceID="SqlDataSource1">
|
||
|
|
<CommandItemSettings ShowExportToExcelButton="True" />
|
||
|
|
<Columns>
|
||
|
|
<telerik:GridBoundColumn DataField="id" DataType="System.Int32" FilterControlAltText="Filter id column" HeaderText="id" ReadOnly="True" SortExpression="id" UniqueName="id" />
|
||
|
|
<telerik:GridBoundColumn DataField="name" HeaderText="Name" SortExpression="name" UniqueName="name" />
|
||
|
|
<telerik:GridBoundColumn DataField="email" HeaderText="Email" SortExpression="email" UniqueName="email" ReadOnly="true"/>
|
||
|
|
<telerik:GridBoundColumn DataField="persid" DataType="System.Int32" HeaderText="persID" SortExpression="persID" UniqueName="persID" />
|
||
|
|
<telerik:GridBoundColumn DataField="Fax" FilterControlAltText="Filter Fax column" HeaderText="Fax" SortExpression="Fax" UniqueName="Fax" />
|
||
|
|
<telerik:GridBoundColumn DataField="DisplayName" FilterControlAltText="Filter DisplayName column" HeaderText="Person name" SortExpression="DisplayName" UniqueName="DisplayName" ReadOnly="True"/>
|
||
|
|
</Columns>
|
||
|
|
</MasterTableView>
|
||
|
|
</telerik:RadGrid>
|
||
|
|
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:HRConnectionString %>" InsertCommand="phoneFaxInsert" InsertCommandType="StoredProcedure" SelectCommand="phoneFaxSelect" SelectCommandType="StoredProcedure" UpdateCommand="phoneFaxUpdate" UpdateCommandType="StoredProcedure" DeleteCommand="phoneFaxDelete" DeleteCommandType="StoredProcedure">
|
||
|
|
<DeleteParameters>
|
||
|
|
<asp:Parameter Name="id" Type="Int32" />
|
||
|
|
</DeleteParameters>
|
||
|
|
<InsertParameters>
|
||
|
|
<asp:Parameter Name="id" Type="Int32" />
|
||
|
|
<asp:Parameter Name="name" Type="String" />
|
||
|
|
<asp:Parameter Name="Fax" Type="String" />
|
||
|
|
<asp:Parameter Name="persid" Type="Int32" />
|
||
|
|
</InsertParameters>
|
||
|
|
<UpdateParameters>
|
||
|
|
<asp:Parameter Name="id" Type="Int32" />
|
||
|
|
<asp:Parameter Name="name" Type="String" />
|
||
|
|
<asp:Parameter Name="Fax" Type="String" />
|
||
|
|
<asp:Parameter Name="persid" Type="Int32" />
|
||
|
|
</UpdateParameters>
|
||
|
|
</asp:SqlDataSource>
|
||
|
|
</asp:Content>
|