eDosWeb/eDos/DocDGrid.aspx
Luc Vandenbroucke ffbb8b638f DocD nieuw
2025-11-21 17:00:30 +01:00

60 lines
4.5 KiB
Text

<%@ Page Title="Document D" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeBehind="DocDGrid.aspx.cs" Inherits="Rems2018.DocDGrid" MaintainScrollPositionOnPostback="true" %>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<telerik:RadSearchBox runat="server" ID="rs" DataTextField="DisplayName" DataValueField="PersID" DataSourceID="dsSearch" OnDataSourceSelect="rs_DataSourceSelect" OnSearch="rs_Search"/>
<asp:HiddenField runat="server" ID="hPersID" />
<%--<telerik:RadComboBox ID="cmbPerson" runat="server" DataSourceID="sqlDSPerson" DataTextField="displayName" DataValueField="PersID" MarkFirstMatch="True" OnSelectedIndexChanged="cmbPerson_SelectedIndexChanged" OnDataBound="cmbPerson_DataBound" AutoPostBack="true" Width="208px"/>--%>
<br />
<telerik:RadGrid runat="server" ID="rgDocD" DataSourceID="sqlDSDocDPersId" CellSpacing="-1" GridLines="Both" AllowFilteringByColumn="True" AutoGenerateColumns="False" AllowSorting="True" AutoGenerateHierarchy="True" EnableHeaderContextAggregatesMenu="True" EnableHeaderContextFilterMenu="True" EnableHeaderContextMenu="True">
<GroupingSettings CollapseAllTooltip="Collapse all groups"></GroupingSettings>
<ExportSettings>
<Pdf PageWidth="">
</Pdf>
</ExportSettings>
<MasterTableView DataSourceID="sqlDSDocDPersId" DataKeyNames="YearMonth" CommandItemDisplay="Top" EnableHeaderContextAggregatesMenu="True" AllowAutomaticInserts="true" AllowAutomaticUpdates="true">
<CommandItemSettings ShowAddNewRecordButton="False" ShowExportToExcelButton="True" />
<RowIndicatorColumn ShowNoSortIcon="False"></RowIndicatorColumn>
<ExpandCollapseColumn ShowNoSortIcon="False"></ExpandCollapseColumn>
<Columns>
<telerik:GridButtonColumn CommandName="Edit" Text="Edit" ButtonCssClass="rgEdit" UniqueName="EditColumn" HeaderStyle-Width="30px" />
<telerik:GridBoundColumn DataField="YearMonth" DataType="System.Int32" EditorControlToolTip="YearMonth" HeaderText="YearMonth" ReadOnly="True" ShowNoSortIcon="False" SortExpression="YearMonth" UniqueName="YearMonth" ItemStyle-Width="120px" HeaderStyle-Width="120px" />
<telerik:GridBoundColumn DataField="Dose" DataType="System.Double" EditorControlToolTip="Dose" HeaderText="Dose" ShowNoSortIcon="False" SortExpression="Dose" UniqueName="Dose" ItemStyle-Width="120px" HeaderStyle-Width="120px" />
<telerik:GridBoundColumn DataField="Comment" DataType="System.String" EditorControlToolTip="Comment" HeaderText="Comment" ShowNoSortIcon="False" SortExpression="Comment" UniqueName="Comment" ItemStyle-Width="500px" HeaderStyle-Width="500px" />
</Columns>
<EditFormSettings>
<EditColumn ShowNoSortIcon="False" ButtonType="ImageButton"></EditColumn>
</EditFormSettings>
</MasterTableView>
</telerik:RadGrid>
<asp:SqlDataSource ID="sqlDSDocDPersId" runat="server" ConnectionString="<%$ ConnectionStrings:eDosConnectionString %>"
SelectCommand="DocD_Select" SelectCommandType="StoredProcedure" InsertCommand="DocD_Insert" InsertCommandType="StoredProcedure" UpdateCommand="DocD_Insert" UpdateCommandType="StoredProcedure">
<InsertParameters>
<asp:Parameter Name="PersID" Type="Int32" />
<asp:Parameter Name="YearMonth" Type="Int32" />
<asp:Parameter Name="Dose" Type="Double" />
</InsertParameters>
<SelectParameters>
<asp:ControlParameter ControlID="hPersID" Name="PersID" PropertyName="Value" Type="Int32" />
</SelectParameters>
<UpdateParameters>
<asp:ControlParameter ControlID="hPersID" Name="PersID" PropertyName="Value" Type="Int32" />
<asp:Parameter Name="YearMonth" Type="Int32" />
<asp:Parameter Name="Dose" Type="Double" />
</UpdateParameters>
</asp:SqlDataSource>
<asp:SqlDataSource runat="server" ID="dsSearch" ConnectionString="<%$ ConnectionStrings:eDosConnectionString %>" SelectCommand="dbo.personSearch" SelectCommandType="StoredProcedure">
<SelectParameters>
<asp:Parameter DefaultValue="wils" Name="search" Type="String" />
<asp:Parameter DefaultValue="*" Name="type" Type="String" />
<asp:Parameter DefaultValue="false" Name="showDeleted" Type="Boolean" />
</SelectParameters>
</asp:SqlDataSource>
</asp:Content>