eDosWeb/eDos/CommentToPerson.aspx

183 lines
12 KiB
Text
Raw Normal View History

2019-02-14 13:37:21 +01:00
<%@ Page Title="Comment" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeBehind="CommentToPerson.aspx.cs" Inherits="Rems2018.CommentToPerson" %>
2019-02-05 16:28:32 +01:00
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
2019-09-10 13:34:58 +02:00
<telerik:RadGrid ID="RadGrid1" runat="server" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" AllowSorting="True" CellSpacing="-1" GridLines="Both" AllowAutomaticDeletes="True" AllowCustomPaging="True" AllowFilteringByColumn="True" AllowPaging="True" AutoGenerateColumns="False" DataSourceID="sqlDSV_CommentToPerson">
2019-02-14 13:37:21 +01:00
<GroupingSettings CollapseAllTooltip="Collapse all groups" CaseSensitive="false"/>
2019-02-05 16:28:32 +01:00
<ExportSettings>
<Pdf PageWidth="">
</Pdf>
<Excel FileExtension="xlsx" Format="Xlsx" />
</ExportSettings>
2019-02-14 11:48:15 +01:00
<ClientSettings AllowColumnsReorder="True">
2019-02-05 16:28:32 +01:00
</ClientSettings>
<MasterTableView DataKeyNames="ID_CommentToPerson" CommandItemDisplay="Top" DataSourceID="sqlDSV_CommentToPerson" EditMode="EditForms" >
2019-02-14 11:18:01 +01:00
<CommandItemSettings ShowExportToExcelButton="True" AddNewRecordText="Nieuw comment" />
2019-02-05 16:28:32 +01:00
<Columns>
2019-09-03 12:53:12 +02:00
<telerik:GridButtonColumn CommandName="Edit" Text="Edit" ButtonCssClass="rgEdit" UniqueName="EditColumn" HeaderStyle-Width="30px">
<HeaderStyle Width="30px"></HeaderStyle>
</telerik:GridButtonColumn>
2019-02-14 11:48:15 +01:00
<telerik:GridBoundColumn DataField="ID_CommentToPerson" DataType="System.Int32" HeaderText="ID" UniqueName="ID_CommentToPerson" ReadOnly="True" SortExpression="ID" MaxLength="3" AllowFiltering="False">
2019-02-05 16:28:32 +01:00
</telerik:GridBoundColumn>
2019-02-14 11:48:15 +01:00
<telerik:GridBoundColumn DataField="FNamePerson" HeaderText="Person" UniqueName="FNamePerson" SortExpression="FNamePerson" ReadOnly="True">
2019-02-05 16:28:32 +01:00
</telerik:GridBoundColumn>
2019-02-14 11:48:15 +01:00
<telerik:GridBoundColumn DataField="LNamePerson" HeaderText="" UniqueName="LNamePerson" SortExpression="LNamePerson" ReadOnly="True">
2019-02-05 16:28:32 +01:00
</telerik:GridBoundColumn>
2019-02-14 11:48:15 +01:00
<telerik:GridBoundColumn DataField="Comment_FR" HeaderText="Comment FRANS" SortExpression="Comment_FR" UniqueName="Comment_FR">
2019-02-05 16:28:32 +01:00
</telerik:GridBoundColumn>
2019-02-14 11:48:15 +01:00
<telerik:GridBoundColumn DataField="Comment_NL" HeaderText="Comment DUTCH" UniqueName="Comment_NL" SortExpression="Comment_NL">
2019-02-05 16:28:32 +01:00
</telerik:GridBoundColumn>
2019-02-14 11:48:15 +01:00
<telerik:GridBoundColumn DataField="Comment_EN" HeaderText="Comment ENGELS" UniqueName="Comment_EN" SortExpression="Comment_EN">
2019-02-05 16:28:32 +01:00
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="CommentDateApply" HeaderText="Date appliance" SortExpression="CommentDateApply" UniqueName="CommentDateApply" DataType="System.DateTime" DataFormatString="{0:yyyy-MM-dd}">
2019-02-05 16:28:32 +01:00
</telerik:GridBoundColumn>
2019-02-14 11:48:15 +01:00
<telerik:GridBoundColumn DataField="NumberOfTimeToDisplay" DataType="System.Int32" HeaderText="Nr. time to display" SortExpression="NumberOfTimeToDisplay" UniqueName="NumberOfTimeToDisplay" AllowFiltering="False" MaxLength="3">
2019-02-05 16:28:32 +01:00
</telerik:GridBoundColumn>
2019-02-14 11:48:15 +01:00
<telerik:GridBoundColumn DataField="FNameAgent" HeaderText="Agent SC" UniqueName="FNameAgent" SortExpression="FNameAgent" ReadOnly="True">
2019-02-05 16:28:32 +01:00
</telerik:GridBoundColumn>
2019-02-14 11:48:15 +01:00
<telerik:GridBoundColumn DataField="LNameAgent" HeaderText="" UniqueName="LNameAgent" SortExpression="LNameAgent" ReadOnly="True">
2019-02-05 16:28:32 +01:00
</telerik:GridBoundColumn>
2019-02-14 11:48:15 +01:00
<telerik:GridBoundColumn DataField="CommentDate" DataType="System.DateTime" HeaderText="Date of registration" UniqueName="CommentDate" SortExpression="CommentDate">
2019-02-05 16:28:32 +01:00
</telerik:GridBoundColumn>
</Columns>
2019-02-14 11:48:15 +01:00
<EditFormSettings EditFormType="Template">
<FormTemplate>
<table>
<tr>
<td style="font-weight: bold">
2019-04-26 11:51:44 +02:00
<asp:Label ID="Label3" runat="server" CssClass="rdfLabel rdfBlock" Text="Select the Person: "></asp:Label>
2019-02-14 11:48:15 +01:00
</td>
<td>
2019-04-23 16:25:37 +02:00
<telerik:RadComboBox ID="RadComboBoxSelectPerson" runat="server" AppendDataBoundItems="true" DataSourceID="SqlDSSelectPerson" DataTextField="displayName" DataValueField="PersID" Width="95%" SelectedValue ='<%# Bind("PersID") %>' >
<Items>
<telerik:RadComboBoxItem Text="-" Value="0" />
</Items>
2019-02-14 11:48:15 +01:00
</telerik:RadComboBox>
</td>
</tr>
<tr>
<td style="font-weight: bold">
<asp:Label ID="Label1" runat="server" CssClass="rdfLabel rdfBlock" Text="Comment in French :" AssociatedControlID="Comment_FR"></asp:Label>
</td>
<td>
<asp:TextBox ID="Comment_FR" runat="server" CssClass="rdfFieldValue" Text='<%# Bind("Comment_FR") %>' />
</td>
</tr>
<tr>
<td style="font-weight: bold">
<asp:Label ID="Label2" runat="server" CssClass="rdfLabel rdfBlock" Text="Comment in Dutch:" AssociatedControlID="Comment_NL"></asp:Label>
</td>
<td>
<asp:TextBox ID="Comment_NL" runat="server" CssClass="rdfFieldValue" Text='<%# Bind("Comment_NL") %>' />
</td>
</tr>
<tr>
<td style="font-weight: bold">
<asp:Label ID="Label4" runat="server" CssClass="rdfLabel rdfBlock" Text="Comment in English:" AssociatedControlID="Comment_EN"/>
</td>
<td>
<asp:TextBox ID="Comment_EN" runat="server" CssClass="rdfFieldValue" Text='<%# Bind("Comment_EN") %>' />
</td>
</tr>
<tr>
<td style="font-weight: bold">
2019-04-26 11:51:44 +02:00
<asp:Label ID="Label9" runat="server" CssClass="rdfLabel rdfBlock" Text="When should the comment be displaied ?:"></asp:Label>
2019-02-14 11:48:15 +01:00
</td>
<td>
<telerik:RadDatePicker ID="RadDateEnd" runat="server" DbSelectedDate='<%# Bind("CommentDateApply") %>' />
</td>
</tr>
<tr>
<td style="font-weight: bold">
2019-04-26 11:51:44 +02:00
<asp:Label ID="Label5" runat="server" CssClass="rdfLabel rdfBlock" Text="How many time should it be displaied ?:"></asp:Label>
2019-02-14 11:48:15 +01:00
</td>
<td>
<asp:TextBox ID="NumberOfTimeToDisplay" runat="server" CssClass="rdfFieldValue" Text='<%# Bind("NumberOfTimeToDisplay") %>' />
</td>
</tr>
<tr>
<td style="font-weight: bold">
2019-08-28 13:38:49 +02:00
<asp:Label ID="Label7" runat="server" CssClass="rdfLabel rdfBlock" Text="Register by (Agent SC of HPH): "></asp:Label>
2019-02-14 11:48:15 +01:00
</td>
<td>
<telerik:RadComboBox ID="RadComboBoxSelectAgentSC" runat="server" DataSourceID="SqlDSSelectAgentSC" DataTextField="displayName" DataValueField="PersID" Width="95%" SelectedValue='<%# Bind("PersID_AgentSC") %>'>
2019-04-26 11:51:44 +02:00
<Items>
<telerik:RadComboBoxItem Text="-" Value="0" />
</Items>
2019-02-14 11:48:15 +01:00
</telerik:RadComboBox>
</td>
</tr>
2019-08-28 13:38:49 +02:00
2019-02-14 11:48:15 +01:00
<tr>
<td style="font-weight: bold">
<asp:Label ID="Label10" runat="server" CssClass="rdfLabel rdfBlock" Text="Date of the registration:"></asp:Label>
</td>
<td>
<telerik:RadDatePicker ID="RadDatePicker1" runat="server" DbSelectedDate='<%# Bind("CommentDate") %>' />
</td>
</tr>
</table>
<div class="rdfCommandButtons">
<hr class="rdfHr" />
<telerik:RadButton RenderMode="Lightweight" ID="UpdateButton" runat="server" ButtonType="SkinnedButton" CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>' Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>' ToolTip="Update" />
<telerik:RadButton RenderMode="Lightweight" ID="CancelButton" runat="server" ButtonType="SkinnedButton" CausesValidation="False" CommandName="Cancel" Text="Cancel" ToolTip="Cancel" />
</div>
</FormTemplate>
</EditFormSettings>
2019-02-05 16:28:32 +01:00
</MasterTableView>
</telerik:RadGrid>
<asp:SqlDataSource ID="sqlDSV_CommentToPerson" runat="server"
ConnectionString="<%$ ConnectionStrings:HPH_REMS_newConnectionString %>"
2019-02-14 11:48:15 +01:00
SelectCommand="CommentToPersonSelect" SelectCommandType="StoredProcedure"
2019-02-14 11:18:01 +01:00
InsertCommand="CommentToPersonInsert" InsertCommandType="StoredProcedure"
2019-02-14 11:48:15 +01:00
UpdateCommand="CommentToPersonUpdate" UpdateCommandType="StoredProcedure"
DeleteCommand="CommentToPersonDelete" DeleteCommandType="StoredProcedure">
2019-02-14 11:18:01 +01:00
<DeleteParameters>
2019-04-23 16:25:37 +02:00
<asp:Parameter Name="ID_CommentToPerson" Type="Int32" />
2019-02-14 11:18:01 +01:00
</DeleteParameters>
<InsertParameters>
2019-08-28 13:38:49 +02:00
<asp:Parameter Name="RETURN_VALUE" Type="Int32" Direction="ReturnValue" />
2019-02-14 11:18:01 +01:00
<asp:Parameter Name="PersID" Type="Int32" />
2019-08-28 13:38:49 +02:00
<asp:Parameter Name="PersID_AgentSC" Type="Int32" />
2019-02-14 11:18:01 +01:00
<asp:Parameter Name="Comment_FR" Type="String" />
2019-08-28 13:38:49 +02:00
<asp:Parameter Name="Comment_NL" Type="String" />
<asp:Parameter Name="Comment_EN" Type="String" />
<asp:Parameter DbType="Date" Name="CommentDate" />
2019-08-28 13:38:49 +02:00
<asp:Parameter Name="CommentDateApply" DbType="Date" />
<asp:Parameter Name="NumberOfTimeToDisplay" Type="Int32" />
2019-02-14 11:18:01 +01:00
</InsertParameters>
<UpdateParameters>
2019-04-23 16:25:37 +02:00
<asp:Parameter Name="ID_CommentToPerson" Type="Int32" />
2019-02-14 11:18:01 +01:00
<asp:Parameter Name="PersID" Type="Int32" />
<asp:Parameter Name="PersID_AgentSC" Type="Int32" />
<asp:Parameter Name="Comment_FR" Type="String" />
<asp:Parameter Name="Comment_NL" Type="String" />
<asp:Parameter Name="Comment_EN" Type="String" />
<asp:Parameter DbType="Date" Name="CommentDate" />
<asp:Parameter DbType="Date" Name="CommentDateApply" />
2019-02-14 11:48:15 +01:00
<asp:Parameter Name="NumberOfTimeToDisplay" Type="Int32" DefaultValue="3" />
2019-02-14 11:18:01 +01:00
</UpdateParameters>
</asp:SqlDataSource>
2019-02-14 11:48:15 +01:00
<asp:SqlDataSource ID="SqlDSSelectPerson" runat="server" ConnectionString="<%$ ConnectionStrings:HPH_REMS_newConnectionString %>" SelectCommand="PersonList" SelectCommandType="StoredProcedure"></asp:SqlDataSource>
2019-08-28 13:38:49 +02:00
<asp:SqlDataSource ID="SqlDSSelectAgentSC" runat="server" ConnectionString="<%$ ConnectionStrings:HPH_REMS_newConnectionString %>" SelectCommand="SELECT [PersID], displayName=[LastName]+' '+[FirstName] FROM [V_SelectAGentSCenHPHResp]"></asp:SqlDataSource>
2019-02-05 16:28:32 +01:00
2019-09-03 12:53:12 +02:00
2019-02-05 16:28:32 +01:00
</asp:Content>