This commit is contained in:
Isabelle 2019-09-06 11:26:42 +02:00
parent 8ded8051c6
commit e3ba1fcf72
10 changed files with 290 additions and 20 deletions

View file

@ -1,9 +1,9 @@
<%@ Page Title="Comment" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeBehind="AddLimitAgent.aspx.cs" Inherits="Rems2018.AddLimitAGent" %>
<%@ Page Title="Add limit M&Q Agent" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeBehind="AddLimitAgent.aspx.cs" Inherits="Rems2018.AddLimitAgent" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<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_AddLimitPerson" AutoGenerateEditColumn="True" AutoGenerateDeleteColumn="True">
<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_AddLimitAgent" AutoGenerateEditColumn="True" AutoGenerateDeleteColumn="True">
<GroupingSettings CollapseAllTooltip="Collapse all groups" CaseSensitive="false"/>
<ExportSettings>
<Pdf PageWidth="">
@ -12,8 +12,8 @@
</ExportSettings>
<ClientSettings AllowColumnsReorder="True">
</ClientSettings>
<MasterTableView DataKeyNames="ID_ChangeLimit" CommandItemDisplay="Top" DataSourceID="sqlDSV_AddLimitAGent" EditMode="EditForms" >
<CommandItemSettings ShowExportToExcelButton="True" AddNewRecordText="Nieuw comment" />
<MasterTableView DataKeyNames="ID_ChangeLimit" CommandItemDisplay="Top" DataSourceID="sqlDSV_AddLimitAgent" EditMode="EditForms" >
<CommandItemSettings ShowExportToExcelButton="True" AddNewRecordText="Add limits" />
<Columns>
<telerik:GridButtonColumn CommandName="Edit" Text="Edit" ButtonCssClass="rgEdit" UniqueName="EditColumn" HeaderStyle-Width="30px">
<HeaderStyle Width="30px"></HeaderStyle>
@ -107,7 +107,7 @@
<asp:Label ID="Label7" runat="server" CssClass="rdfLabel rdfBlock" Text="Register by (Agent SC of HPH): "></asp:Label>
</td>
<td>
<telerik:RadComboBox ID="RadComboBoxSelectAgentSC" runat="server" DataSourceID="SqlDSSelectAgentSC" DataTextField="displayName" DataValueField="PersID" Width="95%" SelectedValue='<%# Bind("PersID_AgentSC") %>'>
<telerik:RadComboBox ID="RadComboBoxSelectAgentSC" runat="server" DataSourceID="SqlDSSelectAgentSC" DataTextField="displayName" DataValueField="PersID" Width="95%" SelectedValue='<%# Bind("PersID_Resp") %>'>
<Items>
<telerik:RadComboBoxItem Text="-" Value="0" />
</Items>
@ -130,24 +130,24 @@
</MasterTableView>
</telerik:RadGrid>
<asp:SqlDataSource ID="sqlDSV_AddLimitPerson" runat="server"
<asp:SqlDataSource ID="sqlDSV_AddLimitAgent" runat="server"
ConnectionString="<%$ ConnectionStrings:HPH_REMS_newConnectionString %>"
SelectCommand="AddLimitAgentInsert" SelectCommandType="StoredProcedure"
InsertCommand="AddLimitAgentSelect" InsertCommandType="StoredProcedure"
SelectCommand="AddLimitAgentSelect" SelectCommandType="StoredProcedure"
InsertCommand="AddLimitAgentInsert" InsertCommandType="StoredProcedure"
UpdateCommand="AddLimitAgentUpdate" UpdateCommandType="StoredProcedure"
DeleteCommand="AddLimitAgentDelete" DeleteCommandType="StoredProcedure">
<DeleteParameters>
<asp:Parameter Name="ID_ChangeLimit" Type="Int32" />
</DeleteParameters>
<InsertParameters>
<asp:Parameter Name="RETURN_VALUE" Type="Int32" Direction="ReturnValue" />
<asp:Parameter Name="PersID" Type="Int32" />
<asp:Parameter Name="PersID_Resp" Type="Int32" />
<asp:Parameter Name="JustificationIncrease" Type="String" />
<asp:Parameter Name="IncreaseQuarterLimit" Type="int32" />
<asp:Parameter Name="IncreaseMonthlyLimit" Type="int32" />
<asp:Parameter Name="IncreaseYearToDateLimit" Type="double" />
<asp:Parameter Name="IncreaseQuarterLimit" Type="double" />
<asp:Parameter Name="IncreaseMonthlyLimit" Type="double" />
<asp:Parameter DbType="Date" Name="DateStart" />
<asp:Parameter Name="DateEnd" DbType="Date" />
<asp:Parameter Name="PersID_Resp" Type="Int32" />
</InsertParameters>
<UpdateParameters>
@ -155,8 +155,8 @@
<asp:Parameter Name="PersID" Type="Int32" />
<asp:Parameter Name="PersID_Resp" Type="Int32" />
<asp:Parameter Name="JustificationIncrease" Type="String" />
<asp:Parameter Name="IncreaseQuarterLimit" Type="int32" />
<asp:Parameter Name="IncreaseMonthlyLimit" Type="int32" />
<asp:Parameter Name="IncreaseQuarterLimit" Type="double" />
<asp:Parameter Name="IncreaseMonthlyLimit" Type="double" />
<asp:Parameter DbType="Date" Name="DateStart" />
<asp:Parameter Name="DateEnd" DbType="Date" />
</UpdateParameters>
@ -164,7 +164,7 @@
</asp:SqlDataSource>
<asp:SqlDataSource ID="SqlDSSelectPerson" runat="server" ConnectionString="<%$ ConnectionStrings:HPH_REMS_newConnectionString %>" SelectCommand="PersonList" SelectCommandType="StoredProcedure"></asp:SqlDataSource>
<asp:SqlDataSource ID="SqlDSSelectAgentSC" runat="server" ConnectionString="<%$ ConnectionStrings:HPH_REMS_newConnectionString %>" SelectCommand="SELECT [PersID], displayName=[LastName]+' '+[FirstName] FROM [V_SelectAGentSCenHPHResp]"></asp:SqlDataSource>
<asp:SqlDataSource ID="SqlDSSelectAgentSC" runat="server" ConnectionString="<%$ ConnectionStrings:HPH_REMS_newConnectionString %>" SelectCommand="SELECT [PersID], displayName=[LastName]+' '+[FirstName] FROM [V_SelectAgent SC]"></asp:SqlDataSource>

View file

@ -14,7 +14,7 @@ namespace Rems2018
//Zet titel op masterpage
Literal titelControl = Master.FindControl("PageTitle") as Literal;
titelControl.Text = "Comment to person";
titelControl.Text = "Add limit M&Q Agent";
}
}

View file

@ -10,7 +10,7 @@
namespace Rems2018 {
public partial class AddLimitAGent {
public partial class AddLimitAgent {
/// <summary>
/// RadGrid1 control.
@ -22,13 +22,13 @@ namespace Rems2018 {
protected global::Telerik.Web.UI.RadGrid RadGrid1;
/// <summary>
/// sqlDSV_AddLimitPerson control.
/// sqlDSV_AddLimitAgent control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.SqlDataSource sqlDSV_AddLimitPerson;
protected global::System.Web.UI.WebControls.SqlDataSource sqlDSV_AddLimitAgent;
/// <summary>
/// SqlDSSelectPerson control.

184
Rems2018/AddLimitHPH.aspx Normal file
View file

@ -0,0 +1,184 @@
<%@ Page Title="Add limit M&Q Agent" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeBehind="AddLimitHPH.aspx.cs" Inherits="Rems2018.AddLimitHPH" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<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_AddLimitHPH" AutoGenerateEditColumn="True" AutoGenerateDeleteColumn="True">
<GroupingSettings CollapseAllTooltip="Collapse all groups" CaseSensitive="false"/>
<ExportSettings>
<Pdf PageWidth="">
</Pdf>
<Excel FileExtension="xlsx" Format="Xlsx" />
</ExportSettings>
<ClientSettings AllowColumnsReorder="True">
</ClientSettings>
<MasterTableView DataKeyNames="ID_ChangeLimit" CommandItemDisplay="Top" DataSourceID="sqlDSV_AddLimitHPH" EditMode="EditForms" >
<CommandItemSettings ShowExportToExcelButton="True" AddNewRecordText="Add limits" />
<Columns>
<telerik:GridButtonColumn CommandName="Edit" Text="Edit" ButtonCssClass="rgEdit" UniqueName="EditColumn" HeaderStyle-Width="30px">
<HeaderStyle Width="30px"></HeaderStyle>
</telerik:GridButtonColumn>
<telerik:GridBoundColumn DataField="ID_ChangeLimit" DataType="System.Int32" HeaderText="ID" UniqueName="ID_ChangeLimit" ReadOnly="True" SortExpression="ID" MaxLength="3" AllowFiltering="False">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="FNamePerson" HeaderText="Person" UniqueName="FNamePerson" SortExpression="FNamePerson" ReadOnly="True">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="LNamePerson" HeaderText="" UniqueName="LNamePerson" SortExpression="LNamePerson" ReadOnly="True">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="IncreaseYearToDateLimit" HeaderText="Added µSv for the Year Limit" SortExpression="IncreaseYearToDateLimit" UniqueName="IncreaseYearToDateLimit">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="IncreaseQuarterLimit" HeaderText="Added µSv for the Quarter Limit" SortExpression="IncreaseQuarterLimit" UniqueName="IncreaseQuarterLimit">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="IncreaseMonthlyLimit" HeaderText="Added µSv for the Monthly Limit" SortExpression="IncreaseMonthlyLimit" UniqueName="IncreaseMonthlyLimit">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="JustificationIncrease" HeaderText="Justification" SortExpression="JustificationIncrease" UniqueName="JustificationIncrease">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="DateStart" HeaderText="Date when it starts applying" SortExpression="DateStart" UniqueName="DateStart" DataType="System.DateTime" DataFormatString="{0:yyyy-MM-dd}">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="DateEnd" HeaderText="Date when it stops applying" SortExpression="DateEnd" UniqueName="DateEnd" DataType="System.DateTime" DataFormatString="{0:yyyy-MM-dd}">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="FNameAgent" HeaderText="Agent SC" UniqueName="FNameAgent" SortExpression="FNameAgent" ReadOnly="True">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="LNameAgent" HeaderText="" UniqueName="LNameAgent" SortExpression="LNameAgent" ReadOnly="True">
</telerik:GridBoundColumn>
</Columns>
<EditFormSettings EditFormType="Template">
<FormTemplate>
<table>
<tr>
<td style="font-weight: bold">
<asp:Label ID="Label3" runat="server" CssClass="rdfLabel rdfBlock" Text="Select the Person: "></asp:Label>
</td>
<td>
<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>
</telerik:RadComboBox>
</td>
</tr>
<tr>
<td style="font-weight: bold">
<asp:Label ID="Label6" runat="server" CssClass="rdfLabel rdfBlock" Text="Added µSv for the Year Limit :" AssociatedControlID="IncreaseYearToDateLimit"></asp:Label>
</td>
<td>
<asp:TextBox ID="TextBox1" runat="server" CssClass="rdfFieldValue" Text='<%# Bind("IncreaseYearToDateLimit") %>' />
</td>
</tr>
<tr>
<td style="font-weight: bold">
<asp:Label ID="Label1" runat="server" CssClass="rdfLabel rdfBlock" Text="Added µSv for the Quarter Limit :" AssociatedControlID="IncreaseQuarterLimit"></asp:Label>
</td>
<td>
<asp:TextBox ID="IncreaseQuarterLimit" runat="server" CssClass="rdfFieldValue" Text='<%# Bind("IncreaseQuarterLimit") %>' />
</td>
</tr>
<tr>
<td style="font-weight: bold">
<asp:Label ID="Label2" runat="server" CssClass="rdfLabel rdfBlock" Text="dded µSv for the Monthly Limit :" AssociatedControlID="IncreaseMonthlyLimit"></asp:Label>
</td>
<td>
<asp:TextBox ID="IncreaseMonthlyLimit" runat="server" CssClass="rdfFieldValue" Text='<%# Bind("IncreaseMonthlyLimit") %>' />
</td>
</tr>
<tr>
<td style="font-weight: bold">
<asp:Label ID="Label4" runat="server" CssClass="rdfLabel rdfBlock" Text="Justification:" AssociatedControlID="JustificationIncrease"/>
</td>
<td>
<asp:TextBox ID="JustificationIncrease" runat="server" CssClass="rdfFieldValue" Text='<%# Bind("JustificationIncrease") %>' />
</td>
</tr>
<tr>
<td style="font-weight: bold">
<asp:Label ID="Label9" runat="server" CssClass="rdfLabel rdfBlock" Text="Date when it starts applying:"></asp:Label>
</td>
<td>
<telerik:RadDatePicker ID="DateStart" runat="server" DbSelectedDate='<%# Bind("DateStart") %>' />
</td>
</tr>
<tr>
<td style="font-weight: bold">
<asp:Label ID="Label5" runat="server" CssClass="rdfLabel rdfBlock" Text="Date when it stops applying:"></asp:Label>
</td>
<td>
<telerik:RadDatePicker ID="DateEnd" runat="server" DbSelectedDate='<%# Bind("DateEnd") %>' />
</td>
</tr>
<tr>
<td style="font-weight: bold">
<asp:Label ID="Label7" runat="server" CssClass="rdfLabel rdfBlock" Text="Register by (Agent SC of HPH): "></asp:Label>
</td>
<td>
<telerik:RadComboBox ID="RadComboBoxSelectHPHResp" runat="server" DataSourceID="SqlDSSelectHPHResp" DataTextField="displayName" DataValueField="PersID" Width="95%" SelectedValue='<%# Bind("PersID_Resp") %>'>
<Items>
<telerik:RadComboBoxItem Text="-" Value="0" />
</Items>
</telerik:RadComboBox>
</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>
</MasterTableView>
</telerik:RadGrid>
<asp:SqlDataSource ID="sqlDSV_AddLimitHPH" runat="server"
ConnectionString="<%$ ConnectionStrings:HPH_REMS_newConnectionString %>"
SelectCommand="AddLimitHPHSelect" SelectCommandType="StoredProcedure"
InsertCommand="AddLimitHPHInsert" InsertCommandType="StoredProcedure"
UpdateCommand="AddLimitHPHUpdate" UpdateCommandType="StoredProcedure"
DeleteCommand="AddLimitAgentDelete" DeleteCommandType="StoredProcedure">
<DeleteParameters>
<asp:Parameter Name="ID_ChangeLimit" Type="Int32" />
</DeleteParameters>
<InsertParameters>
<asp:Parameter Name="PersID" Type="Int32" />
<asp:Parameter Name="JustificationIncrease" Type="String" />
<asp:Parameter Name="IncreaseYearToDateLimit" Type="double" />
<asp:Parameter Name="IncreaseQuarterLimit" Type="double" />
<asp:Parameter Name="IncreaseMonthlyLimit" Type="double" />
<asp:Parameter DbType="Date" Name="DateStart" />
<asp:Parameter Name="DateEnd" DbType="Date" />
<asp:Parameter Name="PersID_Resp" Type="Int32" />
</InsertParameters>
<UpdateParameters>
<asp:Parameter Name="ID_ChangeLimit" Type="Int32" />
<asp:Parameter Name="PersID" Type="Int32" />
<asp:Parameter Name="PersID_Resp" Type="Int32" />
<asp:Parameter Name="JustificationIncrease" Type="String" />
<asp:Parameter Name="IncreaseYearToDateLimit" Type="double" />
<asp:Parameter Name="IncreaseQuarterLimit" Type="double" />
<asp:Parameter Name="IncreaseMonthlyLimit" Type="double" />
<asp:Parameter DbType="Date" Name="DateStart" />
<asp:Parameter Name="DateEnd" DbType="Date" />
</UpdateParameters>
</asp:SqlDataSource>
<asp:SqlDataSource ID="SqlDSSelectPerson" runat="server" ConnectionString="<%$ ConnectionStrings:HPH_REMS_newConnectionString %>" SelectCommand="PersonList" SelectCommandType="StoredProcedure"></asp:SqlDataSource>
<asp:SqlDataSource ID="SqlDSSelectHPHResp" runat="server" ConnectionString="<%$ ConnectionStrings:HPH_REMS_newConnectionString %>" SelectCommand="SELECT [PersID], displayName=[LastName]+' '+[FirstName] FROM [V_SelectHPHResp]"></asp:SqlDataSource>
</asp:Content>

View file

@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace Rems2018
{
public partial class AddLimitHPH : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
//Zet titel op masterpage
Literal titelControl = Master.FindControl("PageTitle") as Literal;
titelControl.Text = "Add limits HPH";
}
}
}

51
Rems2018/AddLimitHPH.aspx.designer.cs generated Normal file
View file

@ -0,0 +1,51 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Rems2018 {
public partial class AddLimitHPH {
/// <summary>
/// RadGrid1 control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::Telerik.Web.UI.RadGrid RadGrid1;
/// <summary>
/// sqlDSV_AddLimitHPH control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.SqlDataSource sqlDSV_AddLimitHPH;
/// <summary>
/// SqlDSSelectPerson control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.SqlDataSource SqlDSSelectPerson;
/// <summary>
/// SqlDSSelectHPHResp control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.SqlDataSource SqlDSSelectHPHResp;
}
}

View file

@ -64,6 +64,8 @@
</telerik:RadMenuItem>
<telerik:RadMenuItem runat="server" NavigateUrl="~/ClearVisitAlarm.aspx" Text="Clear Visit Alarm">
</telerik:RadMenuItem>
<telerik:RadMenuItem runat="server" Text="Child RadMenuItem 3">
</telerik:RadMenuItem>
</Items>
</telerik:RadMenuItem>
@ -90,6 +92,10 @@
</telerik:RadMenuItem>
<telerik:RadMenuItem runat="server" Text="BadgeNotFound" NavigateUrl="~/BadgeNotFound.aspx">
</telerik:RadMenuItem>
<telerik:RadMenuItem runat="server" NavigateUrl="~/AddLimitAgent.aspx" Text="Add M&amp;Q Limits to a person (Agent)">
</telerik:RadMenuItem>
<telerik:RadMenuItem runat="server" NavigateUrl="~/AddLimitHPH.aspx" Text="Add Limits to person (HPH)">
</telerik:RadMenuItem>
</Items>
</telerik:RadMenuItem>

Binary file not shown.

Binary file not shown.

View file

@ -72,6 +72,13 @@
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="AddLimitHPH.aspx.cs">
<DependentUpon>AddLimitHPH.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="AddLimitHPH.aspx.designer.cs">
<DependentUpon>AddLimitHPH.aspx</DependentUpon>
</Compile>
<Compile Include="BadgeNotFound.aspx.cs">
<DependentUpon>BadgeNotFound.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
@ -173,6 +180,7 @@
</Compile>
</ItemGroup>
<ItemGroup>
<Content Include="AddLimitHPH.aspx" />
<Content Include="BadgeNotFound.aspx" />
<Content Include="AddLimitAgent.aspx" />
<Content Include="TaskTypeStandard.aspx" />
@ -241,7 +249,7 @@
<SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
</WebProjectProperties>
</FlavorProperties>
<UserProperties UseAjaxifiedTemplates="False" UseJQuerySupport="False" />
<UserProperties UseJQuerySupport="False" UseAjaxifiedTemplates="False" />
</VisualStudio>
</ProjectExtensions>
</Project>