Opmerkingen izb 2020-05-13

This commit is contained in:
Luc Vandenbroucke 2020-05-13 09:31:06 +02:00
parent 8cc0977284
commit 72a8d906f1
20 changed files with 99 additions and 31 deletions

View file

@ -3,12 +3,14 @@
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server"> <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content> </asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server"> <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_AddLimitAgent"> <telerik:RadGrid ID="RadGrid1" runat="server" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" AllowSorting="True" CellSpacing="-1" GridLines="Both" AllowAutomaticDeletes="True" AllowFilteringByColumn="True" AutoGenerateColumns="False" DataSourceID="sqlDSV_AddLimitAgent" AllowPaging="True">
<GroupingSettings CollapseAllTooltip="Collapse all groups" CaseSensitive="false"/> <GroupingSettings CollapseAllTooltip="Collapse all groups" CaseSensitive="false"/>
<ExportSettings> <ExportSettings>
<Pdf PageWidth="">
</Pdf>
<Excel FileExtension="xlsx" Format="Xlsx" /> <Excel FileExtension="xlsx" Format="Xlsx" />
</ExportSettings> </ExportSettings>
<MasterTableView DataKeyNames="ID_ChangeLimit" CommandItemDisplay="Top" DataSourceID="sqlDSV_AddLimitAgent" EditMode="EditForms" > <MasterTableView DataKeyNames="ID_ChangeLimit" CommandItemDisplay="Top" DataSourceID="sqlDSV_AddLimitAgent" EditMode="EditForms" PageSize="50" >
<CommandItemSettings ShowExportToExcelButton="True" AddNewRecordText="Add limits" /> <CommandItemSettings ShowExportToExcelButton="True" AddNewRecordText="Add limits" />
<Columns> <Columns>
<telerik:GridButtonColumn CommandName="Edit" Text="Edit" ButtonCssClass="rgEdit" UniqueName="EditColumn" HeaderStyle-Width="30px"> <telerik:GridButtonColumn CommandName="Edit" Text="Edit" ButtonCssClass="rgEdit" UniqueName="EditColumn" HeaderStyle-Width="30px">

View file

@ -3,14 +3,14 @@
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server"> <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content> </asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server"> <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"> <telerik:RadGrid ID="RadGrid1" runat="server" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" AllowSorting="True" CellSpacing="-1" GridLines="Both" AllowAutomaticDeletes="True" AllowFilteringByColumn="True" AllowPaging="True" AutoGenerateColumns="False" DataSourceID="sqlDSV_AddLimitHPH">
<GroupingSettings CollapseAllTooltip="Collapse all groups" CaseSensitive="false"/> <GroupingSettings CollapseAllTooltip="Collapse all groups" CaseSensitive="false"/>
<ExportSettings> <ExportSettings>
<Pdf PageWidth=""> <Pdf PageWidth="">
</Pdf> </Pdf>
<Excel FileExtension="xlsx" Format="Xlsx" /> <Excel FileExtension="xlsx" Format="Xlsx" />
</ExportSettings> </ExportSettings>
<MasterTableView DataKeyNames="ID_ChangeLimit" CommandItemDisplay="Top" DataSourceID="sqlDSV_AddLimitHPH" EditMode="EditForms" > <MasterTableView DataKeyNames="ID_ChangeLimit" CommandItemDisplay="Top" DataSourceID="sqlDSV_AddLimitHPH" EditMode="EditForms" PageSize="50" >
<CommandItemSettings ShowExportToExcelButton="True" AddNewRecordText="Add limits" /> <CommandItemSettings ShowExportToExcelButton="True" AddNewRecordText="Add limits" />
<Columns> <Columns>
<telerik:GridButtonColumn CommandName="Edit" Text="Edit" ButtonCssClass="rgEdit" UniqueName="EditColumn" HeaderStyle-Width="30px"> <telerik:GridButtonColumn CommandName="Edit" Text="Edit" ButtonCssClass="rgEdit" UniqueName="EditColumn" HeaderStyle-Width="30px">

View file

@ -8,9 +8,11 @@
AllowAutomaticInserts="True" AllowAutomaticUpdates="True" AllowAutomaticInserts="True" AllowAutomaticUpdates="True"
CellSpacing="-1" GridLines="Both" AllowPaging="True" CellSpacing="-1" GridLines="Both" AllowPaging="True"
DataSourceID="sqlDSAlarmEPD" DataSourceID="sqlDSAlarmEPD"
AutoGenerateColumns="False"> AutoGenerateColumns="False" PageSize="50">
<GroupingSettings CollapseAllTooltip="Collapse all groups"></GroupingSettings> <GroupingSettings CollapseAllTooltip="Collapse all groups"></GroupingSettings>
<ExportSettings> <ExportSettings>
<Pdf PageWidth="">
</Pdf>
<Excel FileExtension="xlsx" Format="Xlsx" /> <Excel FileExtension="xlsx" Format="Xlsx" />
<Csv ColumnDelimiter="Semicolon" /> <Csv ColumnDelimiter="Semicolon" />
</ExportSettings> </ExportSettings>

View file

@ -5,10 +5,10 @@
</asp:Content> </asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server"> <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<telerik:RadGrid ID="RadGrid2" runat="server" <telerik:RadGrid ID="RadGrid2" runat="server"
CellSpacing="-1" GridLines="Both" AllowPaging="True" CellSpacing="-1" GridLines="Both" AllowPaging="True" PageSize="50"
DataSourceID="sqlDSBadgeNotFound" DataSourceID="sqlDSBadgeNotFound"
AutoGenerateColumns="False" AllowSorting="True"> AutoGenerateColumns="False" AllowSorting="True">
<GroupingSettings CollapseAllTooltip="Collapse all groups"></GroupingSettings> <GroupingSettings CollapseAllTooltip="Collapse all groups" CaseSensitive="false"></GroupingSettings>
<ExportSettings> <ExportSettings>
<Pdf PageWidth=""> <Pdf PageWidth="">
</Pdf> </Pdf>

View file

@ -5,7 +5,7 @@
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server"> <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<telerik:RadGrid ID="RadGrid1" runat="server" AllowAutomaticUpdates="True" AllowSorting="True" CellSpacing="-1" GridLines="Both" AllowCustomPaging="True" AllowFilteringByColumn="True" AllowPaging="True" AutoGenerateColumns="False" DataSourceID="SqlDSListVistClear"> <telerik:RadGrid ID="RadGrid1" runat="server" AllowAutomaticUpdates="True" AllowSorting="True" CellSpacing="-1" GridLines="Both" AllowFilteringByColumn="True" AllowPaging="True" PageSize="50" AutoGenerateColumns="False" DataSourceID="SqlDSListVistClear">
<GroupingSettings CollapseAllTooltip="Collapse all groups" CaseSensitive="false" /> <GroupingSettings CollapseAllTooltip="Collapse all groups" CaseSensitive="false" />
<ExportSettings> <ExportSettings>
<Pdf PageWidth=""> <Pdf PageWidth="">

View file

@ -3,7 +3,7 @@
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server"> <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content> </asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server"> <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" AllowFilteringByColumn="True" AutoGenerateColumns="False" DataSourceID="sqlDSV_CommentToPerson"> <telerik:RadGrid ID="RadGrid1" runat="server" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" AllowSorting="True" CellSpacing="-1" GridLines="Both" AllowAutomaticDeletes="True" AllowFilteringByColumn="True" AutoGenerateColumns="False" DataSourceID="sqlDSV_CommentToPerson" AllowPaging="True" PageSize="50">
<GroupingSettings CollapseAllTooltip="Collapse all groups" CaseSensitive="false"/> <GroupingSettings CollapseAllTooltip="Collapse all groups" CaseSensitive="false"/>
<ExportSettings> <ExportSettings>
<Pdf PageWidth=""> <Pdf PageWidth="">

View file

@ -3,7 +3,7 @@
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server"> <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content> </asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server"> <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_DoseDocD"> <telerik:RadGrid ID="RadGrid1" runat="server" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" AllowSorting="True" CellSpacing="-1" GridLines="Both" AllowAutomaticDeletes="True" AllowFilteringByColumn="True" AllowPaging="True" PageSize="50" AutoGenerateColumns="False" DataSourceID="sqlDSV_DoseDocD">
<GroupingSettings CollapseAllTooltip="Collapse all groups" CaseSensitive="false"/> <GroupingSettings CollapseAllTooltip="Collapse all groups" CaseSensitive="false"/>
<ExportSettings> <ExportSettings>
<Pdf PageWidth=""> <Pdf PageWidth="">

View file

@ -3,7 +3,7 @@
</asp:Content> </asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server"> <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<telerik:RadGrid ID="RadGrid2" runat="server" AllowAutomaticUpdates="True" CellSpacing="-1" GridLines="Both" AllowPaging="True" DataSourceID="sqlDSEPD" PageSize="15" AllowFilteringByColumn="True"> <telerik:RadGrid ID="RadGrid2" runat="server" AllowAutomaticUpdates="True" CellSpacing="-1" GridLines="Both" AllowPaging="True" DataSourceID="sqlDSEPD" PageSize="15" AllowFilteringByColumn="True">
<GroupingSettings CollapseAllTooltip="Collapse all groups"> <GroupingSettings CollapseAllTooltip="Collapse all groups" CaseSensitive="False">
</GroupingSettings> </GroupingSettings>
<ExportSettings> <ExportSettings>
<Pdf PageWidth=""> <Pdf PageWidth="">

View file

@ -1,4 +1,4 @@
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" <%@ Page Title="FNGain" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
CodeBehind="FNGainANGain.aspx.cs" Inherits="Rems2018.FNGainANGain" %> CodeBehind="FNGainANGain.aspx.cs" Inherits="Rems2018.FNGainANGain" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server"> <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
@ -6,7 +6,7 @@
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server"> <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<telerik:RadGrid ID="RadGrid2" runat="server" <telerik:RadGrid ID="RadGrid2" runat="server"
AllowAutomaticInserts="True" AllowAutomaticUpdates="True" AllowAutomaticInserts="True" AllowAutomaticUpdates="True"
CellSpacing="-1" GridLines="Both" AllowPaging="True" CellSpacing="-1" GridLines="Both" AllowPaging="True" PageSize="50"
DataSourceID="sqlDSFNGainANGain" DataSourceID="sqlDSFNGainANGain"
AutoGenerateColumns="False"> AutoGenerateColumns="False">
<GroupingSettings CollapseAllTooltip="Collapse all groups"></GroupingSettings> <GroupingSettings CollapseAllTooltip="Collapse all groups"></GroupingSettings>

View file

@ -3,7 +3,7 @@
</asp:Content> </asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server"> <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<telerik:RadGrid ID="RadGrid1" runat="server" AllowAutomaticUpdates="True" CellSpacing="-1" GridLines="Both" AllowPaging="True" OnNeedDataSource="RadGrid1_NeedDataSource" DataSourceID="sqlDSLimitPerson"> <telerik:RadGrid ID="RadGrid1" runat="server" AllowAutomaticUpdates="True" CellSpacing="-1" GridLines="Both" AllowPaging="True" OnNeedDataSource="RadGrid1_NeedDataSource" DataSourceID="sqlDSLimitPerson">
<GroupingSettings CollapseAllTooltip="Collapse all groups"> <GroupingSettings CollapseAllTooltip="Collapse all groups" CaseSensitive="false">
</GroupingSettings> </GroupingSettings>
<ExportSettings> <ExportSettings>
<Pdf PageWidth=""> <Pdf PageWidth="">

View file

@ -1,9 +1,9 @@
<%@ Page Title="Comment" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeBehind="ManualReturn.aspx.cs" Inherits="Rems2018.ManualReturn" %> <%@ Page Title="ManualReturn" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeBehind="ManualReturn.aspx.cs" Inherits="Rems2018.ManualReturn" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server"> <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content> </asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server"> <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<telerik:RadGrid ID="RadGrid1" runat="server" AllowAutomaticUpdates="True" AllowSorting="True" CellSpacing="-1" GridLines="Both" AllowCustomPaging="True" AllowFilteringByColumn="True" AllowPaging="True" PageSize="100" AutoGenerateColumns="False" DataSourceID="SqlDSManualReturn"> <telerik:RadGrid ID="RadGrid1" runat="server" AllowAutomaticUpdates="True" AllowSorting="True" CellSpacing="-1" GridLines="Both" AllowFilteringByColumn="True" AllowPaging="True" PageSize="100" AutoGenerateColumns="False" DataSourceID="SqlDSManualReturn">
<GroupingSettings CollapseAllTooltip="Collapse all groups" CaseSensitive="false" /> <GroupingSettings CollapseAllTooltip="Collapse all groups" CaseSensitive="false" />
<SortingSettings SortedDescToolTip="ID_Visit" /> <SortingSettings SortedDescToolTip="ID_Visit" />
<ExportSettings> <ExportSettings>

View file

@ -1,3 +1,4 @@
Telerik.Web.UI.RadWindowManager, Telerik.Web.UI, Version=2020.1.114.45, Culture=neutral, PublicKeyToken=121fae78165ba3d4
Telerik.Web.UI.RadMultiPage, Telerik.Web.UI, Version=2020.1.114.45, Culture=neutral, PublicKeyToken=121fae78165ba3d4 Telerik.Web.UI.RadMultiPage, Telerik.Web.UI, Version=2020.1.114.45, Culture=neutral, PublicKeyToken=121fae78165ba3d4
Telerik.Web.UI.RadTabStrip, Telerik.Web.UI, Version=2020.1.114.45, Culture=neutral, PublicKeyToken=121fae78165ba3d4 Telerik.Web.UI.RadTabStrip, Telerik.Web.UI, Version=2020.1.114.45, Culture=neutral, PublicKeyToken=121fae78165ba3d4
Telerik.Web.UI.RadDataForm, Telerik.Web.UI, Version=2020.1.114.45, Culture=neutral, PublicKeyToken=121fae78165ba3d4 Telerik.Web.UI.RadDataForm, Telerik.Web.UI, Version=2020.1.114.45, Culture=neutral, PublicKeyToken=121fae78165ba3d4

View file

@ -1,9 +1,16 @@
<%@ Page Title="TaskBG" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeBehind="TaskBG.aspx.cs" Inherits="Rems2018.TaskBG" MaintainScrollPositionOnPostback="true" %> <%@ Page Title="TaskBG" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeBehind="TaskBG.aspx.cs" Inherits="Rems2018.TaskBG" MaintainScrollPositionOnPostback="true" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server"> <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script type="text/javascript">
function callBackFn(arg)
{
alert("this is the client-side callback function. The RadAlert returned: " + arg);
}
</script>
</asp:Content> </asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server"> <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" AllowFilteringByColumn="True" AllowPaging="True" AutoGenerateColumns="False" DataSourceID="sqlDSV_Task" PagerStyle-Mode="Slider" OnItemCreated="RadGrid1_ItemCreated"> <telerik:RadWindowManager runat="server" id="RadWindowManager1" Modal="true"></telerik:RadWindowManager>
<telerik:RadGrid ID="RadGrid1" runat="server" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" AllowSorting="True" CellSpacing="-1" GridLines="Both" AllowAutomaticDeletes="True" AllowFilteringByColumn="True" AutoGenerateColumns="False" DataSourceID="sqlDSV_Task" AllowPaging="True" PageSize="50" PagerStyle-Mode="Slider" OnItemCreated="RadGrid1_ItemCreated" OnItemInserted="RadGrid1_ItemInserted" >
<GroupingSettings CollapseAllTooltip="Collapse all groups" CaseSensitive="false"></GroupingSettings> <GroupingSettings CollapseAllTooltip="Collapse all groups" CaseSensitive="false"></GroupingSettings>
<ExportSettings> <ExportSettings>
<Pdf PageWidth=""> <Pdf PageWidth="">
@ -13,7 +20,7 @@
<ClientSettings AllowColumnsReorder="True"> <ClientSettings AllowColumnsReorder="True">
<%-- <Scrolling AllowScroll="True" UseStaticHeaders="True" ScrollHeight="700px" />--%> <%-- <Scrolling AllowScroll="True" UseStaticHeaders="True" ScrollHeight="700px" />--%>
</ClientSettings> </ClientSettings>
<MasterTableView DataKeyNames="ID_Task" CommandItemDisplay="Top" AllowAutomaticDeletes="False" DataSourceID="sqlDSV_Task" EditMode="EditForms"> <MasterTableView DataKeyNames="ID_Task" CommandItemDisplay="Top" AllowAutomaticDeletes="False" DataSourceID="sqlDSV_Task" EditMode="EditForms" >
<CommandItemSettings ShowExportToExcelButton="True" AddNewRecordText="Add new task" /> <CommandItemSettings ShowExportToExcelButton="True" AddNewRecordText="Add new task" />
<Columns> <Columns>
<telerik:GridButtonColumn CommandName="Edit" Text="Edit" ButtonCssClass="rgEdit" UniqueName="EditColumn" HeaderStyle-Width="30px"> <telerik:GridButtonColumn CommandName="Edit" Text="Edit" ButtonCssClass="rgEdit" UniqueName="EditColumn" HeaderStyle-Width="30px">
@ -24,9 +31,9 @@
</telerik:GridBoundColumn> </telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="InstallationName" HeaderText="Installation" UniqueName="InstallationName" SortExpression="InstallationName" FilterControlWidth="100px" HeaderStyle-Width="130px" CurrentFilterFunction="Contains" ShowFilterIcon="false" AutoPostBackOnFilter="true"> <telerik:GridBoundColumn DataField="InstallationName" HeaderText="Installation" UniqueName="InstallationName" SortExpression="InstallationName" FilterControlWidth="100px" HeaderStyle-Width="130px" CurrentFilterFunction="Contains" ShowFilterIcon="false" AutoPostBackOnFilter="true">
</telerik:GridBoundColumn> </telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Inst_CODE" HeaderText="Code" UniqueName="Inst_CODE" DataType="System.Int32" SortExpression="Inst_CODE" HeaderStyle-Width="60px" FilterControlAltText="Filter Inst_CODE column"> <telerik:GridBoundColumn DataField="Inst_CODE" HeaderText="Code" UniqueName="Inst_CODE" DataType="System.Int32" SortExpression="Inst_CODE" HeaderStyle-Width="60px" FilterControlAltText="Filter Inst_CODE column" ReadOnly="true">
</telerik:GridBoundColumn> </telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="TaskType_CODE" HeaderText="Task Nr" SortExpression="TaskType_CODE" UniqueName="TaskType_CODE" DataType="System.Int32" FilterControlWidth="50px" HeaderStyle-Width="110px" ReadOnly="true" > <telerik:GridBoundColumn DataField="TaskType_CODE" HeaderText="Task Nr" SortExpression="TaskType_CODE" UniqueName="TaskType_CODE" DataType="System.Int32" FilterControlWidth="50px" HeaderStyle-Width="110px" ReadOnly="true" >
</telerik:GridBoundColumn> </telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Task_Name" HeaderText="Task" UniqueName="Task_Name" SortExpression="Task_Name" HeaderStyle-Width="200px"> <telerik:GridBoundColumn DataField="Task_Name" HeaderText="Task" UniqueName="Task_Name" SortExpression="Task_Name" HeaderStyle-Width="200px">
</telerik:GridBoundColumn> </telerik:GridBoundColumn>
@ -132,7 +139,7 @@
ConnectionString="<%$ ConnectionStrings:eDosConnectionString %>" ConnectionString="<%$ ConnectionStrings:eDosConnectionString %>"
SelectCommand="TaskBGSelect" SelectCommandType="StoredProcedure" SelectCommand="TaskBGSelect" SelectCommandType="StoredProcedure"
InsertCommand="TaskBGInsert" InsertCommandType="StoredProcedure" InsertCommand="TaskBGInsert" InsertCommandType="StoredProcedure"
UpdateCommand="TaskBGUpdate" UpdateCommandType="StoredProcedure" > UpdateCommand="TaskBGUpdate" UpdateCommandType="StoredProcedure" >
<InsertParameters> <InsertParameters>
<asp:Parameter Name="Inst_CODE" Type="Int32" /> <asp:Parameter Name="Inst_CODE" Type="Int32" />
<asp:Parameter Name="TaskType_CODE" Type="Int32" /> <asp:Parameter Name="TaskType_CODE" Type="Int32" />

View file

@ -80,7 +80,34 @@ namespace Rems2018
} }
} }
private void DisplayMessage(string text)
{
RadWindowManager1.RadAlert(text,200,100,"Warning", "callBackFn");
}
protected void RadGrid1_ItemInserted(object sender, GridInsertedEventArgs e)
{
if (e.Exception != null)
{
e.KeepInInsertMode = true;
e.ExceptionHandled = true;
var tc = new Label();
tc.Text = "Cannot be Inserted. Reason: " + e.Exception.Message;
tc.BackColor = System.Drawing.Color.Red;
var x = e.Item.Controls[1].Controls[0]; //..FindControl("TaskDescription");
//var y = x.FindControl("TaskDescription");
x.Controls.Add(tc);
}
else
{
//DisplayMessage("Updated");
}
}
//protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e) //protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
//{ //{

View file

@ -12,6 +12,15 @@ namespace Rems2018 {
public partial class TaskBG { public partial class TaskBG {
/// <summary>
/// RadWindowManager1 control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::Telerik.Web.UI.RadWindowManager RadWindowManager1;
/// <summary> /// <summary>
/// RadGrid1 control. /// RadGrid1 control.
/// </summary> /// </summary>

View file

@ -3,7 +3,7 @@
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server"> <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content> </asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server"> <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" AllowFilteringByColumn="True" AllowPaging="True" AutoGenerateColumns="False" DataSourceID="sqlDSV_Task" PagerStyle-Mode="Slider" OnItemCreated="RadGrid1_ItemCreated"> <telerik:RadGrid ID="RadGrid1" runat="server" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" AllowSorting="True" CellSpacing="-1" GridLines="Both" AllowAutomaticDeletes="True" AllowFilteringByColumn="True" AutoGenerateColumns="False" DataSourceID="sqlDSV_Task" PagerStyle-Mode="Slider" OnItemCreated="RadGrid1_ItemCreated" AllowPaging="True" PageSize="50" OnItemInserted="RadGrid1_ItemInserted">
<GroupingSettings CollapseAllTooltip="Collapse all groups" CaseSensitive="false"></GroupingSettings> <GroupingSettings CollapseAllTooltip="Collapse all groups" CaseSensitive="false"></GroupingSettings>
<ExportSettings> <ExportSettings>
<Pdf PageWidth=""> <Pdf PageWidth="">
@ -20,13 +20,13 @@
<HeaderStyle Width="30px"></HeaderStyle> <HeaderStyle Width="30px"></HeaderStyle>
</telerik:GridButtonColumn> </telerik:GridButtonColumn>
<telerik:GridBoundColumn DataField="ID_Task" DataType="System.Int32" HeaderText="ID" UniqueName="ID_Task" ReadOnly="True" SortExpression="ID_Task" HeaderStyle-Width="90px" FilterControlWidth="60px"> <telerik:GridBoundColumn DataField="ID_Task" DataType="System.Int32" HeaderText="ID" UniqueName="ID_Task" ReadOnly="True" SortExpression="ID_Task" HeaderStyle-Width="90px" FilterControlWidth="60px" >
</telerik:GridBoundColumn> </telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="InstallationName" HeaderText="Installation" UniqueName="InstallationName" SortExpression="InstallationName" FilterControlWidth="100px" HeaderStyle-Width="130px" CurrentFilterFunction="Contains" ShowFilterIcon="false" AutoPostBackOnFilter="true"> <telerik:GridBoundColumn DataField="InstallationName" HeaderText="Installation" UniqueName="InstallationName" SortExpression="InstallationName" FilterControlWidth="100px" HeaderStyle-Width="130px" CurrentFilterFunction="Contains" ShowFilterIcon="false" AutoPostBackOnFilter="true">
</telerik:GridBoundColumn> </telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Inst_CODE" HeaderText="Code" UniqueName="Inst_CODE" DataType="System.Int32" SortExpression="Inst_CODE" HeaderStyle-Width="60px" FilterControlAltText="Filter Inst_CODE column"> <telerik:GridBoundColumn DataField="Inst_CODE" HeaderText="Code" UniqueName="Inst_CODE" DataType="System.Int32" SortExpression="Inst_CODE" HeaderStyle-Width="60px" FilterControlAltText="Filter Inst_CODE column" ReadOnly="true">
</telerik:GridBoundColumn> </telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="TaskType_CODE" HeaderText="Task Type" SortExpression="TaskType_CODE" UniqueName="TaskType_CODE" DataType="System.Int32" FilterControlWidth="50px" HeaderStyle-Width="110px"> <telerik:GridBoundColumn DataField="TaskType_CODE" HeaderText="Task nr" SortExpression="TaskType_CODE" UniqueName="TaskType_CODE" DataType="System.Int32" FilterControlWidth="50px" HeaderStyle-Width="110px" ReadOnly="true">
</telerik:GridBoundColumn> </telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Task_Name" HeaderText="Task" UniqueName="Task_Name" SortExpression="Task_Name" HeaderStyle-Width="200px"> <telerik:GridBoundColumn DataField="Task_Name" HeaderText="Task" UniqueName="Task_Name" SortExpression="Task_Name" HeaderStyle-Width="200px">
</telerik:GridBoundColumn> </telerik:GridBoundColumn>

View file

@ -70,6 +70,26 @@ namespace Rems2018
} }
} }
protected void RadGrid1_ItemInserted(object sender, GridInsertedEventArgs e)
{
if (e.Exception != null)
{
e.KeepInInsertMode = true;
e.ExceptionHandled = true;
var tc = new Label();
tc.Text = "Cannot be Inserted. Reason: " + e.Exception.Message;
tc.BackColor = System.Drawing.Color.Red;
var x = e.Item.Controls[1].Controls[0]; //..FindControl("TaskDescription");
//var y = x.FindControl("TaskDescription");
x.Controls.Add(tc);
}
else
{
//DisplayMessage("Updated");
}
}
//protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e) //protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
//{ //{
// if (e.Item.IsInEditMode) // if (e.Item.IsInEditMode)

View file

@ -2,7 +2,7 @@
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server"> <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content> </asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server"> <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<telerik:RadGrid ID="RadGrid1" runat="server" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" AutoGenerateEditColumn="True" CellSpacing="-1" GridLines="Both" AllowAutomaticDeletes="True" AutoGenerateDeleteColumn="True" AllowPaging="True" OnNeedDataSource="RadGrid1_NeedDataSource" DataSourceID="sqlDSWSumDose"> <telerik:RadGrid ID="RadGrid1" runat="server" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" AutoGenerateEditColumn="True" CellSpacing="-1" GridLines="Both" AllowAutomaticDeletes="True" AutoGenerateDeleteColumn="True" AllowPaging="True" PageSize="50" OnNeedDataSource="RadGrid1_NeedDataSource" DataSourceID="sqlDSWSumDose">
<GroupingSettings CollapseAllTooltip="Collapse all groups"> <GroupingSettings CollapseAllTooltip="Collapse all groups">
</GroupingSettings> </GroupingSettings>
<ExportSettings> <ExportSettings>

View file

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup> <PropertyGroup>
<LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig> <LastActiveSolutionConfig>Release|Any CPU</LastActiveSolutionConfig>
<UseIISExpress>true</UseIISExpress> <UseIISExpress>true</UseIISExpress>
<Use64BitIISExpress /> <Use64BitIISExpress />
<IISExpressSSLPort /> <IISExpressSSLPort />
@ -9,13 +9,13 @@
<IISExpressWindowsAuthentication /> <IISExpressWindowsAuthentication />
<IISExpressUseClassicPipelineMode /> <IISExpressUseClassicPipelineMode />
<UseGlobalApplicationHostFile /> <UseGlobalApplicationHostFile />
<NameOfLastUsedPublishProfile>eDosTest</NameOfLastUsedPublishProfile> <NameOfLastUsedPublishProfile>FolderProfile</NameOfLastUsedPublishProfile>
</PropertyGroup> </PropertyGroup>
<ProjectExtensions> <ProjectExtensions>
<VisualStudio> <VisualStudio>
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}"> <FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
<WebProjectProperties> <WebProjectProperties>
<StartPageUrl>CommentToPerson.aspx</StartPageUrl> <StartPageUrl>TaskBG.aspx</StartPageUrl>
<StartAction>SpecificPage</StartAction> <StartAction>SpecificPage</StartAction>
<AspNetDebugging>True</AspNetDebugging> <AspNetDebugging>True</AspNetDebugging>
<SilverlightDebugging>False</SilverlightDebugging> <SilverlightDebugging>False</SilverlightDebugging>

View file

@ -2,7 +2,7 @@
<configuration> <configuration>
<connectionStrings> <connectionStrings>
<add name="eDosConnectionString" connectionString="Data Source=sqltest2;Initial Catalog=eDos;Integrated Security=True" providerName="System.Data.SqlClient" /> <add name="eDosConnectionString" connectionString="Data Source=HPHDB;Initial Catalog=eDos;Integrated Security=True" providerName="System.Data.SqlClient" />
<add name="RemsConnectionString" connectionString="Data Source=REMSDB;Initial Catalog=Rems;Integrated Security=True" providerName="System.Data.SqlClient" /> <add name="RemsConnectionString" connectionString="Data Source=REMSDB;Initial Catalog=Rems;Integrated Security=True" providerName="System.Data.SqlClient" />
</connectionStrings> </connectionStrings>
<appSettings> <appSettings>