Opmerkingen izb 2020-05-13
This commit is contained in:
parent
8cc0977284
commit
72a8d906f1
20 changed files with 99 additions and 31 deletions
|
|
@ -3,12 +3,14 @@
|
|||
<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_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"/>
|
||||
<ExportSettings>
|
||||
<Pdf PageWidth="">
|
||||
</Pdf>
|
||||
<Excel FileExtension="xlsx" Format="Xlsx" />
|
||||
</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" />
|
||||
<Columns>
|
||||
<telerik:GridButtonColumn CommandName="Edit" Text="Edit" ButtonCssClass="rgEdit" UniqueName="EditColumn" HeaderStyle-Width="30px">
|
||||
|
|
|
|||
|
|
@ -3,14 +3,14 @@
|
|||
<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">
|
||||
<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"/>
|
||||
<ExportSettings>
|
||||
<Pdf PageWidth="">
|
||||
</Pdf>
|
||||
<Excel FileExtension="xlsx" Format="Xlsx" />
|
||||
</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" />
|
||||
<Columns>
|
||||
<telerik:GridButtonColumn CommandName="Edit" Text="Edit" ButtonCssClass="rgEdit" UniqueName="EditColumn" HeaderStyle-Width="30px">
|
||||
|
|
|
|||
|
|
@ -8,9 +8,11 @@
|
|||
AllowAutomaticInserts="True" AllowAutomaticUpdates="True"
|
||||
CellSpacing="-1" GridLines="Both" AllowPaging="True"
|
||||
DataSourceID="sqlDSAlarmEPD"
|
||||
AutoGenerateColumns="False">
|
||||
AutoGenerateColumns="False" PageSize="50">
|
||||
<GroupingSettings CollapseAllTooltip="Collapse all groups"></GroupingSettings>
|
||||
<ExportSettings>
|
||||
<Pdf PageWidth="">
|
||||
</Pdf>
|
||||
<Excel FileExtension="xlsx" Format="Xlsx" />
|
||||
<Csv ColumnDelimiter="Semicolon" />
|
||||
</ExportSettings>
|
||||
|
|
|
|||
|
|
@ -5,10 +5,10 @@
|
|||
</asp:Content>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
|
||||
<telerik:RadGrid ID="RadGrid2" runat="server"
|
||||
CellSpacing="-1" GridLines="Both" AllowPaging="True"
|
||||
CellSpacing="-1" GridLines="Both" AllowPaging="True" PageSize="50"
|
||||
DataSourceID="sqlDSBadgeNotFound"
|
||||
AutoGenerateColumns="False" AllowSorting="True">
|
||||
<GroupingSettings CollapseAllTooltip="Collapse all groups"></GroupingSettings>
|
||||
<GroupingSettings CollapseAllTooltip="Collapse all groups" CaseSensitive="false"></GroupingSettings>
|
||||
<ExportSettings>
|
||||
<Pdf PageWidth="">
|
||||
</Pdf>
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
<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" />
|
||||
<ExportSettings>
|
||||
<Pdf PageWidth="">
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
<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" 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"/>
|
||||
<ExportSettings>
|
||||
<Pdf PageWidth="">
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
<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_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"/>
|
||||
<ExportSettings>
|
||||
<Pdf PageWidth="">
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
</asp:Content>
|
||||
<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">
|
||||
<GroupingSettings CollapseAllTooltip="Collapse all groups">
|
||||
<GroupingSettings CollapseAllTooltip="Collapse all groups" CaseSensitive="False">
|
||||
</GroupingSettings>
|
||||
<ExportSettings>
|
||||
<Pdf PageWidth="">
|
||||
|
|
|
|||
|
|
@ -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" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
|
||||
|
|
@ -6,7 +6,7 @@
|
|||
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
|
||||
<telerik:RadGrid ID="RadGrid2" runat="server"
|
||||
AllowAutomaticInserts="True" AllowAutomaticUpdates="True"
|
||||
CellSpacing="-1" GridLines="Both" AllowPaging="True"
|
||||
CellSpacing="-1" GridLines="Both" AllowPaging="True" PageSize="50"
|
||||
DataSourceID="sqlDSFNGainANGain"
|
||||
AutoGenerateColumns="False">
|
||||
<GroupingSettings CollapseAllTooltip="Collapse all groups"></GroupingSettings>
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
</asp:Content>
|
||||
<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">
|
||||
<GroupingSettings CollapseAllTooltip="Collapse all groups">
|
||||
<GroupingSettings CollapseAllTooltip="Collapse all groups" CaseSensitive="false">
|
||||
</GroupingSettings>
|
||||
<ExportSettings>
|
||||
<Pdf PageWidth="">
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
<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" />
|
||||
<SortingSettings SortedDescToolTip="ID_Visit" />
|
||||
<ExportSettings>
|
||||
|
|
|
|||
|
|
@ -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.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
|
||||
|
|
|
|||
|
|
@ -1,9 +1,16 @@
|
|||
<%@ 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">
|
||||
<script type="text/javascript">
|
||||
function callBackFn(arg)
|
||||
{
|
||||
alert("this is the client-side callback function. The RadAlert returned: " + arg);
|
||||
}
|
||||
</script>
|
||||
</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" 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>
|
||||
<ExportSettings>
|
||||
<Pdf PageWidth="">
|
||||
|
|
@ -13,7 +20,7 @@
|
|||
<ClientSettings AllowColumnsReorder="True">
|
||||
<%-- <Scrolling AllowScroll="True" UseStaticHeaders="True" ScrollHeight="700px" />--%>
|
||||
</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" />
|
||||
<Columns>
|
||||
<telerik:GridButtonColumn CommandName="Edit" Text="Edit" ButtonCssClass="rgEdit" UniqueName="EditColumn" HeaderStyle-Width="30px">
|
||||
|
|
@ -24,9 +31,9 @@
|
|||
</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>
|
||||
<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 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 DataField="Task_Name" HeaderText="Task" UniqueName="Task_Name" SortExpression="Task_Name" HeaderStyle-Width="200px">
|
||||
</telerik:GridBoundColumn>
|
||||
|
|
@ -132,7 +139,7 @@
|
|||
ConnectionString="<%$ ConnectionStrings:eDosConnectionString %>"
|
||||
SelectCommand="TaskBGSelect" SelectCommandType="StoredProcedure"
|
||||
InsertCommand="TaskBGInsert" InsertCommandType="StoredProcedure"
|
||||
UpdateCommand="TaskBGUpdate" UpdateCommandType="StoredProcedure" >
|
||||
UpdateCommand="TaskBGUpdate" UpdateCommandType="StoredProcedure" >
|
||||
<InsertParameters>
|
||||
<asp:Parameter Name="Inst_CODE" Type="Int32" />
|
||||
<asp:Parameter Name="TaskType_CODE" Type="Int32" />
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
//{
|
||||
|
|
|
|||
9
eDos/TaskBG.aspx.designer.cs
generated
9
eDos/TaskBG.aspx.designer.cs
generated
|
|
@ -12,6 +12,15 @@ namespace Rems2018 {
|
|||
|
||||
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>
|
||||
/// RadGrid1 control.
|
||||
/// </summary>
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
<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" 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>
|
||||
<ExportSettings>
|
||||
<Pdf PageWidth="">
|
||||
|
|
@ -20,13 +20,13 @@
|
|||
<HeaderStyle Width="30px"></HeaderStyle>
|
||||
</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 DataField="InstallationName" HeaderText="Installation" UniqueName="InstallationName" SortExpression="InstallationName" FilterControlWidth="100px" HeaderStyle-Width="130px" CurrentFilterFunction="Contains" ShowFilterIcon="false" AutoPostBackOnFilter="true">
|
||||
</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 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 DataField="Task_Name" HeaderText="Task" UniqueName="Task_Name" SortExpression="Task_Name" HeaderStyle-Width="200px">
|
||||
</telerik:GridBoundColumn>
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
//{
|
||||
// if (e.Item.IsInEditMode)
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
<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" 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>
|
||||
<ExportSettings>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig>
|
||||
<LastActiveSolutionConfig>Release|Any CPU</LastActiveSolutionConfig>
|
||||
<UseIISExpress>true</UseIISExpress>
|
||||
<Use64BitIISExpress />
|
||||
<IISExpressSSLPort />
|
||||
|
|
@ -9,13 +9,13 @@
|
|||
<IISExpressWindowsAuthentication />
|
||||
<IISExpressUseClassicPipelineMode />
|
||||
<UseGlobalApplicationHostFile />
|
||||
<NameOfLastUsedPublishProfile>eDosTest</NameOfLastUsedPublishProfile>
|
||||
<NameOfLastUsedPublishProfile>FolderProfile</NameOfLastUsedPublishProfile>
|
||||
</PropertyGroup>
|
||||
<ProjectExtensions>
|
||||
<VisualStudio>
|
||||
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
|
||||
<WebProjectProperties>
|
||||
<StartPageUrl>CommentToPerson.aspx</StartPageUrl>
|
||||
<StartPageUrl>TaskBG.aspx</StartPageUrl>
|
||||
<StartAction>SpecificPage</StartAction>
|
||||
<AspNetDebugging>True</AspNetDebugging>
|
||||
<SilverlightDebugging>False</SilverlightDebugging>
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
<configuration>
|
||||
<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" />
|
||||
</connectionStrings>
|
||||
<appSettings>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue