luc 14/02 v1

This commit is contained in:
Luc Vandenbroucke 2019-02-14 11:18:01 +01:00
parent 153e19e26f
commit 8e0d6f7c7d
4 changed files with 126 additions and 89 deletions

View file

@ -10,12 +10,11 @@
</Pdf>
<Excel FileExtension="xlsx" Format="Xlsx" />
</ExportSettings>
<ClientSettings AllowColumnsReorder="True">
<ClientSettings AllowColumnsReorder="True" >
</ClientSettings>
<MasterTableView DataKeyNames="ID_CommentToPerson" CommandItemDisplay="Top" AllowAutomaticDeletes="False" DataSourceID="sqlDSV_CommentToPerson">
<CommandItemSettings ShowExportToExcelButton="True" />
<CommandItemSettings ShowExportToExcelButton="True" AddNewRecordText="Nieuw comment" />
<Columns>
<telerik:GridBoundColumn DataField="ID_CommentToPerson" DataType="System.Int32" HeaderText="ID" UniqueName="ID_CommentToPerson" FilterControlAltText="Filter ID_CommentToPerson column" ReadOnly="True" SortExpression="ID" MaxLength="3" AllowFiltering="False">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="FNamePerson" HeaderText="Person" UniqueName="FNamePerson" FilterControlAltText="Filter FNamePerson column" SortExpression="FNamePerson">
@ -32,7 +31,6 @@
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="NumberOfTimeToDisplay" DataType="System.Int32" FilterControlAltText="Filter NumberOfTimeToDisplay column" HeaderText="Nr. time to display" SortExpression="NumberOfTimeToDisplay" UniqueName="NumberOfTimeToDisplay" AllowFiltering="False" MaxLength="3">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="FNameAgent" HeaderText="Agent SC" UniqueName="FNameAgent" FilterControlAltText="Filter FNameAgent column" SortExpression="FNameAgent">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="LNameAgent" HeaderText="" UniqueName="LNameAgent" FilterControlAltText="Filter LNameAgent column" SortExpression="LNameAgent">
@ -52,100 +50,138 @@
<asp:SqlDataSource ID="sqlDSV_CommentToPerson" runat="server"
ConnectionString="<%$ ConnectionStrings:HPH_REMS_newConnectionString %>"
SelectCommand="SELECT [ID_CommentToPerson], [FNamePerson], [LNamePerson], [FNameAgent], [LNameAgent], [FNameHPH], [LNameHPH], [Comment_FR], [Comment_NL], [Comment_EN], [CommentDate], [CommentDateApply], [NumberOfTimeToDisplay] FROM [V_CommentToPerson] ORDER BY [CommentDateApply] DESC"></asp:SqlDataSource>
SelectCommand="SELECT [ID_CommentToPerson], [FNamePerson], [LNamePerson], [FNameAgent], [LNameAgent], [FNameHPH], [LNameHPH], [Comment_FR], [Comment_NL], [Comment_EN], [CommentDate], [CommentDateApply], [NumberOfTimeToDisplay] FROM [V_CommentToPerson] ORDER BY [CommentDateApply] DESC"
InsertCommand="CommentToPersonInsert" InsertCommandType="StoredProcedure"
UpdateCommand="CommentToPersonInsert" UpdateCommandType="StoredProcedure"
DeleteCommand="CommentToPersonInsert" DeleteCommandType="StoredProcedure">
<DeleteParameters>
<asp:Parameter Name="PersID" Type="Int32" />
<asp:Parameter Name="PersID_AgentSC" Type="Int32" />
<asp:Parameter Name="PersID_HPHResp" 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" />
<asp:Parameter Name="NumberOfTimeToDisplay" Type="Int32" />
</DeleteParameters>
<InsertParameters>
<asp:Parameter Name="PersID" Type="Int32" />
<asp:Parameter Name="PersID_AgentSC" Type="Int32" />
<asp:Parameter Name="PersID_HPHResp" 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" />
<asp:Parameter Name="NumberOfTimeToDisplay" Type="Int32" />
</InsertParameters>
<UpdateParameters>
<asp:Parameter Name="PersID" Type="Int32" />
<asp:Parameter Name="PersID_AgentSC" Type="Int32" />
<asp:Parameter Name="PersID_HPHResp" 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" />
<asp:Parameter Name="NumberOfTimeToDisplay" Type="Int32" />
</UpdateParameters>
</asp:SqlDataSource>
<table >
<tr>
<td style="font-weight: bold">
<asp:Label ID="Label3" runat="server" CssClass="rdfLabel rdfBlock" Text="PersID Person: "></asp:Label>
</td>
<td>
<telerik:RadComboBox ID="RadComboBoxSelectPerson" runat="server" DataSourceID="SqlDSSelectPerson" DataTextField="[LastName] + [FirstName] + [Language]" DataValueField="PersID" Width="95%">
</telerik:RadComboBox>
<asp:SqlDataSource ID="SqlDSSelectPerson" runat="server" ConnectionString="<%$ ConnectionStrings:HPH_REMS_newConnectionString %>" SelectCommand="SELECT [PersID], [LastName], [FirstName], [Language] FROM [Person]"></asp:SqlDataSource>
</td>
</tr>
<table>
<tr>
<td style="font-weight: bold">
<asp:Label ID="Label3" runat="server" CssClass="rdfLabel rdfBlock" Text="PersID Person: "></asp:Label>
</td>
<tr>
<td style="font-weight: bold">
<asp:Label ID="Label1" runat="server" CssClass="rdfLabel rdfBlock" Text="Comment in French :"></asp:Label>
</td>
<td>
<asp:Label ID="Comment_FR" runat="server" CssClass="rdfFieldValue" Text='<%# Bind("Comment_FR") %>' />
</td>
</tr>
<td>
<telerik:RadComboBox ID="RadComboBoxSelectPerson" runat="server" DataSourceID="SqlDSSelectPerson" DataTextField="displayName" DataValueField="PersID" Width="95%">
</telerik:RadComboBox>
<asp:SqlDataSource ID="SqlDSSelectPerson" runat="server" ConnectionString="<%$ ConnectionStrings:HPH_REMS_newConnectionString %>" SelectCommand="PersonList" SelectCommandType="StoredProcedure"></asp:SqlDataSource>
</td>
</tr>
<tr>
<td style="font-weight: bold">
<asp:Label ID="Label2" runat="server" CssClass="rdfLabel rdfBlock" Text="Comment in Dutch:"></asp:Label>
</td>
<td>
<asp:Label ID="Comment_NL" runat="server" CssClass="rdfFieldValue" Text='<%# Bind("Comment_NL") %>' />
</td>
</tr>
<tr>
<td style="font-weight: bold">
<asp:Label ID="Label1" runat="server" CssClass="rdfLabel rdfBlock" Text="Comment in French :"></asp:Label>
</td>
<td>
<asp:Label ID="Comment_FR" runat="server" CssClass="rdfFieldValue" Text='<%# Bind("Comment_FR") %>' />
</td>
</tr>
<tr>
<td style="font-weight: bold">
<asp:Label ID="Label4" runat="server" CssClass="rdfLabel rdfBlock" Text="Comment in English:"></asp:Label>
</td>
<td>
<asp:Label ID="Comment_EN" runat="server" CssClass="rdfFieldValue" Text='<%# Bind("Comment_EN") %>' />
</td>
</tr>
<tr>
<td style="font-weight: bold">
<asp:Label ID="Label2" runat="server" CssClass="rdfLabel rdfBlock" Text="Comment in Dutch:"></asp:Label>
</td>
<td>
<asp:Label ID="Comment_NL" runat="server" CssClass="rdfFieldValue" Text='<%# Bind("Comment_NL") %>' />
</td>
</tr>
<tr>
<td style ="font-weight: bold">
<asp:Label ID="Label9" runat="server" CssClass="rdfLabel rdfBlock" Text="When should the comment be displaied:"></asp:Label>
</td>
<td>
<telerik:RadDatePicker ID="RadDateEnd" runat="server" SelectedDate='<%# Bind("CommentDateApply") %>' />
</td>
</tr>
<tr>
<td style="font-weight: bold">
<asp:Label ID="Label4" runat="server" CssClass="rdfLabel rdfBlock" Text="Comment in English:"></asp:Label>
</td>
<td>
<asp:Label ID="Comment_EN" runat="server" CssClass="rdfFieldValue" Text='<%# Bind("Comment_EN") %>' />
</td>
</tr>
<tr>
<tr>
<td style="font-weight: bold">
<asp:Label ID="Label9" runat="server" CssClass="rdfLabel rdfBlock" Text="When should the comment be displaied:"></asp:Label>
</td>
<td>
<telerik:RadDatePicker ID="RadDateEnd" runat="server" SelectedDate='<%# Bind("CommentDateApply") %>' />
</td>
</tr>
<td style="font-weight: bold">
<asp:Label ID="Label5" runat="server" CssClass="rdfLabel rdfBlock" Text="How many time should it be displaied:"></asp:Label>
</td>
<td>
<asp:Label ID="NumberOfTimeToDisplay" runat="server" CssClass="rdfFieldValue" Text='<%# Bind("NumberOfTimeToDisplay") %>' />
</td>
</tr>
<tr>
<tr>
<td style="font-weight: bold">
<asp:Label ID="Label7" runat="server" CssClass="rdfLabel rdfBlock" Text="Register by (Agent SC): "></asp:Label>
</td>
<td>
<telerik:RadComboBox ID="RadComboBoxSelectAgentSC" runat="server" DataSourceID="SqlDSSelectAgentSC" DataTextField="[LastName] + [FirstName]" DataValueField="PersID" Width="95%">
</telerik:RadComboBox>
<asp:SqlDataSource ID="SqlDSSelectAgentSC" runat="server" ConnectionString="<%$ ConnectionStrings:HPH_REMS_newConnectionString %>" SelectCommand="SELECT [PersID], [LastName], [FirstName] FROM [V_SelectAgent SC]"></asp:SqlDataSource>
</td>
</tr>
<tr>
<td style="font-weight: bold">
<asp:Label ID="Label8" runat="server" CssClass="rdfLabel rdfBlock" Text="Register by (HPHResp): "></asp:Label>
</td>
<td>
<telerik:RadComboBox ID="RadComboBoxSelectHPH" runat="server" DataSourceID="SqlDSSelectHPHResp" DataTextField="[LastName] + [FirstName]" DataValueField="PersID" Width="95%">
</telerik:RadComboBox>
<asp:SqlDataSource ID="SqlDSSelectHPHResp" runat="server" ConnectionString="<%$ ConnectionStrings:HPH_REMS_newConnectionString %>" SelectCommand="SELECT [PersID], [FirstName], [LastName] FROM [V_SelectHPHResp]"></asp:SqlDataSource>
</td>
</tr>
<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" SelectedDate='<%# Bind("CommentDate") %>' />
</td>
</tr>
<td style="font-weight: bold">
<asp:Label ID="Label5" runat="server" CssClass="rdfLabel rdfBlock" Text="How many time should it be displaied:"></asp:Label>
</td>
<td>
<asp:Label ID="NumberOfTimeToDisplay" runat="server" CssClass="rdfFieldValue" Text='<%# Bind("NumberOfTimeToDisplay") %>' />
</td>
</tr>
</table>
<tr>
<td style="font-weight: bold">
<asp:Label ID="Label7" runat="server" CssClass="rdfLabel rdfBlock" Text="Register by (Agent SC): "></asp:Label>
</td>
<td>
<telerik:RadComboBox ID="RadComboBoxSelectAgentSC" runat="server" DataSourceID="SqlDSSelectAgentSC" DataTextField="displayName" DataValueField="PersID" Width="95%">
</telerik:RadComboBox>
<asp:SqlDataSource ID="SqlDSSelectAgentSC" runat="server" ConnectionString="<%$ ConnectionStrings:HPH_REMS_newConnectionString %>" SelectCommand="SELECT [PersID], displayName=[LastName]+' '+[FirstName] FROM [V_SelectAgent SC]"></asp:SqlDataSource>
</td>
</tr>
<tr>
<td style="font-weight: bold">
<asp:Label ID="Label8" runat="server" CssClass="rdfLabel rdfBlock" Text="Register by (HPHResp): "></asp:Label>
</td>
<td>
<telerik:RadComboBox ID="RadComboBoxSelectHPH" runat="server" DataSourceID="SqlDSSelectHPHResp" DataTextField="displayName" DataValueField="PersID" Width="95%">
</telerik:RadComboBox>
<asp:SqlDataSource ID="SqlDSSelectHPHResp" runat="server" ConnectionString="<%$ ConnectionStrings:HPH_REMS_newConnectionString %>" SelectCommand="SELECT [PersID], displayName=[FirstName]+' '+[LastName] FROM [V_SelectHPHResp]"></asp:SqlDataSource>
</td>
</tr>
<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" SelectedDate='<%# Bind("CommentDate") %>' />
</td>
</tr>
</table>
</asp:Content>

View file

@ -168,6 +168,7 @@
<asp:Parameter Name="TaskDateEnd" Type="DateTime" />
<asp:Parameter Name="TaskEnable" Type="Boolean" />
<asp:Parameter Name="ID_FNGainANGain" Type="Int32" />
<asp:Parameter Direction="ReturnValue" Name="RETURN_VALUE" Type="Int32" />
</UpdateParameters>
</asp:SqlDataSource>

View file

@ -1,4 +1,4 @@
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeBehind="WSumDose.aspx.cs" Inherits="Rems2018.LimitPerson" %>
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeBehind="WSumDose.aspx.cs" Inherits="Rems2018.WSumDose" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

View file

@ -10,7 +10,7 @@
namespace Rems2018 {
public partial class LimitPerson {
public partial class WSumDose {
/// <summary>
/// RadGrid1 control.