task repair 1
This commit is contained in:
parent
3827e793a0
commit
a09fd43842
6 changed files with 255 additions and 340 deletions
|
|
@ -263,7 +263,7 @@
|
|||
<SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
|
||||
</WebProjectProperties>
|
||||
</FlavorProperties>
|
||||
<UserProperties UseAjaxifiedTemplates="True" UseJQuerySupport="True" />
|
||||
<UserProperties UseJQuerySupport="False" UseAjaxifiedTemplates="False" />
|
||||
</VisualStudio>
|
||||
</ProjectExtensions>
|
||||
</Project>
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
<%@ Master Language="C#" %>
|
||||
<%@ Master Language="C#" %>
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
|
|
@ -7,12 +7,19 @@
|
|||
<link href="favicon.ico" rel="shortcut icon" type="image/x-icon" />
|
||||
<title>REMS 2018</title>
|
||||
<link href="rems.css" rel="stylesheet" />
|
||||
<asp:ContentPlaceHolder ID="head" runat="server" />
|
||||
<%--<telerik:RadStyleSheetManager ID="eDoseStyleSheetManager" runat="server" >
|
||||
<StyleSheets>
|
||||
<telerik:StyleSheetReference Path="eDoseTheme/DataForm.eDoseTheme.css" />
|
||||
<telerik:StyleSheetReference Path="eDoseTheme/Button.eDoseTheme.css" />
|
||||
<telerik:StyleSheetReference Path="eDoseTheme/Grid.eDoseTheme.css" />
|
||||
<telerik:StyleSheetReference Path="eDoseTheme/Menu.eDoseTheme.css" />
|
||||
</StyleSheets>
|
||||
</telerik:RadStyleSheetManager>--%>
|
||||
|
||||
<asp:ContentPlaceHolder ID="head" runat="server" />
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
|
||||
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
|
||||
<Scripts>
|
||||
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
|
||||
|
|
@ -20,7 +27,7 @@
|
|||
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
|
||||
</Scripts>
|
||||
</telerik:RadScriptManager>
|
||||
<telerik:RadFormDecorator ID="RadFormDecorator2" runat="server" Skin="WebBlue" DecoratedControls="All" EnableRoundedCorners="true" />
|
||||
<telerik:RadFormDecorator ID="RadFormDecorator2" runat="server" DecoratedControls="All" EnableRoundedCorners="true" />
|
||||
<div>
|
||||
<div id="container">
|
||||
<div id="header" class="header-top2">
|
||||
|
|
@ -39,15 +46,19 @@
|
|||
|
||||
|
||||
<div style="clear: both;">
|
||||
<telerik:RadMenu ID="RadMenu1" runat="server" EnableRoundedCorners="True" EnableShadows="True" Skin="WebBlue" Style="top: 0px; left: 0px">
|
||||
<telerik:RadMenu ID="RadMenu1" runat="server" EnableRoundedCorners="True" EnableShadows="True" Style="top: 0px; left: 0px">
|
||||
<Items>
|
||||
<telerik:RadMenuItem Text="Worker" NavigateUrl="Worker.aspx">
|
||||
<telerik:RadMenuItem Text="Worker" NavigateUrl="Worker.aspx" >
|
||||
|
||||
<Items>
|
||||
<telerik:RadMenuItem runat="server" NavigateUrl="~/Worker_Folder2.aspx" Text="worker sub 2">
|
||||
</telerik:RadMenuItem>
|
||||
</Items>
|
||||
</telerik:RadMenuItem>
|
||||
|
||||
|
||||
<telerik:RadMenuItem runat="server" Text="Task" NavigateUrl="~/Task.aspx">
|
||||
</telerik:RadMenuItem>
|
||||
|
||||
|
||||
<telerik:RadMenuItem runat="server" Text="Alarm/Alert">
|
||||
<Items>
|
||||
<telerik:RadMenuItem runat="server" NavigateUrl="~/AlarmEPD.aspx" Text="Alarm EPD (view)">
|
||||
|
|
@ -59,7 +70,13 @@
|
|||
|
||||
<telerik:RadMenuItem runat="server" Text="EPD">
|
||||
</telerik:RadMenuItem>
|
||||
<telerik:RadMenuItem runat="server" Text="Comment (To Send)">
|
||||
<telerik:RadMenuItem runat="server" Text="Comment (sent)">
|
||||
<Items>
|
||||
<telerik:RadMenuItem runat="server" NavigateUrl="~/CommentToPerson.aspx" Text="Comment to Person">
|
||||
</telerik:RadMenuItem>
|
||||
<telerik:RadMenuItem runat="server" NavigateUrl="~/CommentToInstallation.aspx" Text="Comment to Installation">
|
||||
</telerik:RadMenuItem>
|
||||
</Items>
|
||||
</telerik:RadMenuItem>
|
||||
<telerik:RadMenuItem runat="server" Text="Report">
|
||||
</telerik:RadMenuItem>
|
||||
|
|
|
|||
|
|
@ -2,7 +2,9 @@
|
|||
<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_Task" AutoGenerateEditColumn="True">
|
||||
<telerik:RadFormDecorator runat="server" ID ="rfd1" DecoratedControls="All" />
|
||||
|
||||
<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_Task" AutoGenerateEditColumn="True" >
|
||||
<GroupingSettings CollapseAllTooltip="Collapse all groups">
|
||||
</GroupingSettings>
|
||||
<ExportSettings>
|
||||
|
|
@ -12,156 +14,172 @@
|
|||
</ExportSettings>
|
||||
<ClientSettings AllowColumnsReorder="True">
|
||||
</ClientSettings>
|
||||
<MasterTableView DataKeyNames="ID_Task" CommandItemDisplay="Top" AllowAutomaticDeletes="False" DataSourceID="sqlDSV_Task">
|
||||
<CommandItemSettings ShowExportToExcelButton="True" />
|
||||
<MasterTableView DataKeyNames="ID_Task" CommandItemDisplay="Top" AllowAutomaticDeletes="False" DataSourceID="sqlDSV_Task" EditMode="EditForms">
|
||||
<CommandItemSettings ShowExportToExcelButton="True" AddNewRecordText="Add new task" />
|
||||
<Columns>
|
||||
|
||||
<telerik:GridBoundColumn DataField="ID_Task" DataType="System.Int32" HeaderText="ID" UniqueName="ID_Task" AllowFiltering="False" FilterControlAltText="Filter ID_Task column" MaxLength="3" ReadOnly="True" SortExpression="ID_Task">
|
||||
<telerik:GridBoundColumn DataField="ID_Task" DataType="System.Int32" HeaderText="ID" UniqueName="ID_Task" AllowFiltering="False" MaxLength="3" ReadOnly="True" SortExpression="ID_Task" HeaderStyle-Width="60px" ShowFilterIcon="false" />
|
||||
<telerik:GridBoundColumn DataField="InstallationName" HeaderText="Inst." UniqueName="InstallationName" MaxLength="5" SortExpression="InstallationName" HeaderStyle-Width="100px"/>
|
||||
<telerik:GridBoundColumn DataField="TaskType_CODE" HeaderText="Task nr." UniqueName="TaskType_CODE" DataType="System.Int32" SortExpression="TaskType_CODE" HeaderStyle-Width="60px" />
|
||||
<telerik:GridBoundColumn DataField="Task_Name" HeaderText="Name" UniqueName="Task_Name" AllowFiltering="False" SortExpression="Task_Name" HeaderStyle-Width="150px"/>
|
||||
<telerik:GridBoundColumn DataField="TaskDescription" HeaderText="Description" UniqueName="TaskDescription" AllowFiltering="False" SortExpression="TaskDescription" HeaderStyle-Width="150px" />
|
||||
<telerik:GridDateTimeColumn DataField="TaskDateStart" DataType="System.DateTime" HeaderText="Start" SortExpression="TaskDateStart" UniqueName="TaskDateStart" DataFormatString="{0:yyyy-MM-dd}" HeaderStyle-Width="80px" />
|
||||
<telerik:GridDateTimeColumn DataField="TaskDateEnd" DataType="System.DateTime" HeaderText="End" SortExpression="TaskDateEnd" UniqueName="TaskDateEnd" DataFormatString="{0:yyyy-MM-dd}" HeaderStyle-Width="80px" />
|
||||
<telerik:GridCheckBoxColumn DataField="TaskEnable" DataType="System.Boolean" HeaderText="Enable" UniqueName="TaskEnable" SortExpression="TaskEnable" HeaderStyle-Width="50px" />
|
||||
<telerik:GridBoundColumn DataField="EPDRad" HeaderText="EPDRad" UniqueName="EPDRad" SortExpression="EPDRad" FilterControlWidth="60px" />
|
||||
<telerik:GridBoundColumn DataField="AlarmEPDName" HeaderText="Alarm Level" UniqueName="AlarmEPDName" SortExpression="AlarmEPDName" HeaderStyle-Width="50px" />
|
||||
<telerik:GridBoundColumn DataField="FNGain_AnGainValue" DataType="System.Double" HeaderText="FNGain_AnGainValue" UniqueName="FNGain_AnGainValue" SortExpression="FNGain_AnGainValue" HeaderStyle-Width="50px" />
|
||||
<telerik:GridBoundColumn AllowFiltering="False" DataField="InstallationActivity" HeaderText="Installation Activity" SortExpression="InstallationActivity" UniqueName="InstallationActivity">
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="InstallationName" HeaderText="Installation" UniqueName="InstallationName" FilterControlAltText="Filter InstallationName column" SortExpression="InstallationName">
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="Inst_CODE" DataType="System.Int32" HeaderText="I" UniqueName="Inst_CODE" FilterControlAltText="Filter Inst_CODE column" MaxLength="3" SortExpression="Inst_CODE">
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="TaskType_CODE" HeaderText="Task nr." UniqueName="TaskType_CODE" DataType="System.Int32" FilterControlAltText="Filter TaskType_CODE column" SortExpression="TaskType_CODE">
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="Task_Name" HeaderText="Task_Name" UniqueName="Task_Name" AllowFiltering="False" FilterControlAltText="Filter Task_Name column" SortExpression="Task_Name">
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="TaskDescription" HeaderText="TaskDescription" UniqueName="TaskDescription" AllowFiltering="False" FilterControlAltText="Filter TaskDescription column" SortExpression="TaskDescription">
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="TaskDateStart" DataType="System.DateTime" FilterControlAltText="Filter TaskDateStart column" HeaderText="TaskDateStart" SortExpression="TaskDateStart" UniqueName="TaskDateStart">
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="TaskDateEnd" DataType="System.DateTime" FilterControlAltText="Filter TaskDateEnd column" HeaderText="TaskDateEnd" SortExpression="TaskDateEnd" UniqueName="TaskDateEnd">
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridCheckBoxColumn DataField="TaskEnable" DataType="System.Boolean" HeaderText="TaskEnable" UniqueName="TaskEnable" FilterControlAltText="Filter TaskEnable column" SortExpression="TaskEnable">
|
||||
</telerik:GridCheckBoxColumn>
|
||||
<telerik:GridBoundColumn DataField="EPDRad" HeaderText="EPDRad" UniqueName="EPDRad" FilterControlAltText="Filter EPDRad column" SortExpression="EPDRad">
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="AlarmEPDName" HeaderText="AlarmEPDName" UniqueName="AlarmEPDName" SortExpression="AlarmEPDName">
|
||||
</telerik:GridBoundColumn>
|
||||
|
||||
|
||||
<telerik:GridBoundColumn DataField="FNGain_AnGainValue" DataType="System.Double" HeaderText="FNGain_AnGainValue" UniqueName="FNGain_AnGainValue" FilterControlAltText="Filter FNGain_AnGainValue column" SortExpression="FNGain_AnGainValue">
|
||||
</telerik:GridBoundColumn>
|
||||
|
||||
<telerik:GridBoundColumn AllowFiltering="False" DataField="InstallationActivity" FilterControlAltText="Filter InstallationActivity column" HeaderText="InstallationActivity" SortExpression="InstallationActivity" UniqueName="InstallationActivity">
|
||||
</telerik:GridBoundColumn>
|
||||
|
||||
</Columns>
|
||||
<EditFormSettings EditFormType="Template">
|
||||
<FormTemplate>
|
||||
<table style="width: 500px;">
|
||||
<tr>
|
||||
<td style="font-weight: bold">
|
||||
<asp:Label ID="Label10" runat="server" CssClass="rdfLabel rdfBlock" Text="Installation: "></asp:Label>
|
||||
</td>
|
||||
<td>
|
||||
<telerik:RadComboBox ID="RadComboBox1" runat="server" DataSourceID="SqlDSSelectInst" DataTextField="InstallationName" DataValueField="Inst_CODE" Width="95%" SelectedValue='<%# Bind("Inst_CODE") %>' />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-weight: bold;">
|
||||
<asp:Label ID="Label11" runat="server" CssClass="rdfLabel rdfBlock" Text="Task nr. :"></asp:Label>
|
||||
</td>
|
||||
<td>
|
||||
<asp:TextBox ID="Label12" runat="server" CssClass="rdfFieldValue" Text='<%# Bind("TaskType_CODE") %>' />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-weight: bold">
|
||||
<asp:Label ID="Label14" runat="server" AssociatedControlID="TaskEnableCheckBox" CssClass="rdfLabel rdfBlock" Text="Actif"></asp:Label>
|
||||
</td>
|
||||
<td>
|
||||
<telerik:RadCheckBox ID="TaskEnableCheckBox" runat="server" Checked='<%# Bind("TaskEnable") %>' />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-weight: bold">
|
||||
<asp:Label ID="Label15" runat="server" CssClass="rdfLabel rdfBlock" Text="Name:"></asp:Label>
|
||||
</td>
|
||||
<td>
|
||||
<asp:TextBox ID="Label16" runat="server" CssClass="rdfFieldValue" Text='<%# Bind("Task_Name") %>' />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style="font-weight: bold">
|
||||
<asp:Label ID="Label17" runat="server" CssClass="rdfLabel rdfBlock" Text="Description:"></asp:Label>
|
||||
</td>
|
||||
<td>
|
||||
<asp:TextBox ID="Label18" runat="server" CssClass="rdfFieldValue" Text='<%# Bind("TaskDescription") %>' Width="300px" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-weight: bold">
|
||||
<asp:Label ID="Label19" runat="server" CssClass="rdfLabel rdfBlock" Text="Start:"></asp:Label>
|
||||
</td>
|
||||
<td>
|
||||
<telerik:RadDatePicker ID="RadDatePicker1" runat="server" DbSelectedDate='<%# Bind("TaskDateStart") %>' />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-weight: bold">
|
||||
<asp:Label ID="Label20" runat="server" CssClass="rdfLabel rdfBlock" Text="End:"></asp:Label>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<telerik:RadDatePicker ID="RadDatePicker2" runat="server" DbSelectedDate='<%# Bind("TaskDateEnd") %>' />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-weight: bold">
|
||||
<asp:Label ID="Label21" runat="server" CssClass="rdfLabel rdfBlock" Text="EPD Type: "></asp:Label>
|
||||
</td>
|
||||
<td>
|
||||
<telerik:RadComboBox ID="RadComboBoxSelectEPDRad" runat="server" OnSelectedIndexChanged="RadComboBoxSelectEPDRad_SelectedIndexChanged" AutoPostBack="true" Width="95%" SelectedValue='<%# Bind("EPDRad") %>' >
|
||||
<Items>
|
||||
<telerik:RadComboBoxItem Value="BG" Text="Beta Gamma" Selected="True" />
|
||||
<telerik:RadComboBoxItem Value="NG" Text="Neutron Gamma" BackColor="#FFFF80" />
|
||||
</Items>
|
||||
</telerik:RadComboBox>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-weight: bold">
|
||||
<asp:Label ID="Label22" runat="server" CssClass="rdfLabel rdfBlock" Text="Alarm EPD Level: "></asp:Label>
|
||||
</td>
|
||||
<td>
|
||||
<telerik:RadComboBox ID="RadComboBoxSelectAlarmLevel" runat="server" DataTextField="AlarmEPDName" DataValueField="ID_AlarmEPD" Width="95%" SelectedValue='<%# Bind("ID_AlarmEPD") %>' OnLoad="RadComboBoxSelectAlarmLevel_Load" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-weight: bold">
|
||||
<asp:Label ID="Label23" runat="server" CssClass="rdfLabel rdfBlock" Text="FNGainANGain: "></asp:Label>
|
||||
</td>
|
||||
<td>
|
||||
<telerik:RadComboBox ID="RadComboBox4" runat="server" DataSourceID="SqlDSSelectGain" DataTextField="InstallationActivity" DataValueField="ID_FNGainANGain" Width="95%" SelectedValue='<%# Bind("ID_FNGainANGain") %>' />
|
||||
</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>
|
||||
<EditColumn InsertImageUrl="Update.gif" UpdateImageUrl="Update.gif" CancelImageUrl="Cancel.gif"></EditColumn>
|
||||
</EditFormSettings>
|
||||
</MasterTableView>
|
||||
|
||||
<FilterMenu EnableEmbeddedSkins="False"></FilterMenu>
|
||||
|
||||
<HeaderContextMenu EnableEmbeddedSkins="False"></HeaderContextMenu>
|
||||
</telerik:RadGrid>
|
||||
|
||||
|
||||
<asp:SqlDataSource ID="sqlDSV_Task" runat="server"
|
||||
ConnectionString="<%$ ConnectionStrings:HPH_REMS_newConnectionString %>"
|
||||
SelectCommand="SELECT [ID_Task], [InstallationName], [Inst_CODE], [TaskType_CODE], [Task_Name], [TaskDescription], [EPDRad], [AlarmEPDName], [TaskDateStart], [TaskDateEnd], [TaskEnable], [FNGain_AnGainValue], [InstallationActivity] FROM [V_Task]"
|
||||
SelectCommand="SELECT [ID_Task], [InstallationName], [Inst_CODE], [TaskType_CODE], [Task_Name], [TaskDescription], [EPDRad], [AlarmEPDName], [TaskDateStart], [TaskDateEnd], [TaskEnable], [FNGain_AnGainValue], [InstallationActivity],ID_AlarmEPD,ID_FNGainANGain FROM [V_Task]"
|
||||
InsertCommand="TaskInsert" InsertCommandType="StoredProcedure"
|
||||
UpdateCommand="TaskUpdate" UpdateCommandType="StoredProcedure"
|
||||
>
|
||||
<InsertParameters>
|
||||
<asp:Parameter Name="Inst_CODE" Type="Int32" />
|
||||
<asp:Parameter Name="TaskType_CODE" Type="Int32" />
|
||||
<asp:Parameter Name="Task_Name" Type="String" />
|
||||
<asp:Parameter Name="TaskDescription" Type="String" />
|
||||
<asp:Parameter Name="EPDRad" Type="String" />
|
||||
<asp:Parameter Name="ID_AlarmEPD" Type="Int32" />
|
||||
<asp:Parameter Name="TaskDateStart" Type="DateTime" />
|
||||
<asp:Parameter Name="TaskDateEnd" Type="DateTime" />
|
||||
<asp:Parameter Name="TaskEnable" Type="Boolean" />
|
||||
<asp:Parameter Name="ID_FNGainANGain" Type="Int32" />
|
||||
</InsertParameters>
|
||||
<UpdateParameters>
|
||||
<asp:Parameter Name="ID_Task" Type="Int32" />
|
||||
<asp:Parameter Name="Inst_CODE" Type="Int32" />
|
||||
<asp:Parameter Name="TaskType_CODE" Type="Int32" />
|
||||
<asp:Parameter Name="Task_Name" Type="String" />
|
||||
<asp:Parameter Name="TaskDescription" Type="String" />
|
||||
<asp:Parameter Name="EPDRad" Type="String" />
|
||||
<asp:Parameter Name="ID_AlarmEPD" Type="Int32" />
|
||||
<asp:Parameter Name="TaskDateStart" Type="DateTime" />
|
||||
<asp:Parameter Name="TaskDateEnd" Type="DateTime" />
|
||||
<asp:Parameter Name="TaskEnable" Type="Boolean" />
|
||||
<asp:Parameter Name="ID_FNGainANGain" Type="Int32" />
|
||||
</UpdateParameters>
|
||||
</asp:SqlDataSource>
|
||||
|
||||
|
||||
|
||||
<table border="1" style="width:500px;">
|
||||
<tr>
|
||||
<td style ="font-weight: bold">
|
||||
<asp:Label ID="Label3" runat="server" CssClass="rdfLabel rdfBlock" Text="Installation: "></asp:Label>
|
||||
</td>
|
||||
<td>
|
||||
<telerik:RadComboBox ID="RadComboBox22" Runat="server" DataSourceID="SqlDataSource2" DataTextField="InstallationName" DataValueField="Inst_CODE">
|
||||
</telerik:RadComboBox>
|
||||
<asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:HPH_REMS_newConnectionString %>" SelectCommand="SELECT [Inst_CODE], [InstallationName] FROM [Installation]"></asp:SqlDataSource>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style ="font-weight: bold;text-align:right;margin-right:10px;">
|
||||
<asp:Label ID="Label1" runat="server" CssClass="rdfLabel rdfBlock" Text="Task nr. :"></asp:Label>
|
||||
</td>
|
||||
<td>
|
||||
<asp:Label ID="TaskType_CODE" runat="server" CssClass="rdfFieldValue" Text='<%# Eval("TaskType_CODE") %>' />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style ="font-weight: bold">
|
||||
<asp:Label ID="Label13" runat="server" AssociatedControlID="TaskEnableCheckBox" CssClass="rdfLabel rdfBlock" Text="Actif"></asp:Label>
|
||||
</td>
|
||||
<td>
|
||||
<telerik:RadCheckBox ID="TaskEnableCheckBox" runat="server" Checked='<%# Bind("TaskEnable") %>' />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style ="font-weight: bold">
|
||||
<asp:Label ID="Label2" runat="server" CssClass="rdfLabel rdfBlock" Text="Name:"></asp:Label>
|
||||
</td>
|
||||
<td>
|
||||
<asp:Label ID="Task_Name" runat="server" CssClass="rdfFieldValue" Text='<%# Eval("Task_Name") %>' />
|
||||
</td>
|
||||
</tr>
|
||||
<asp:SqlDataSource ID="SqlDSSelectInst" runat="server" ConnectionString="<%$ ConnectionStrings:HPH_REMS_newConnectionString %>" SelectCommand="SELECT [Inst_CODE], [InstallationName] FROM [Installation]"></asp:SqlDataSource>
|
||||
<asp:SqlDataSource ID="SqlDSSelectAlarmLevel" runat="server" ConnectionString="<%$ ConnectionStrings:HPH_REMS_newConnectionString %>"
|
||||
SelectCommand="SELECT [ID_AlarmEPD], [AlarmEPDName], [EPDRad] FROM [AlarmEPD] where epdrad=@epdrad or @epdrad='*';">
|
||||
<SelectParameters>
|
||||
<asp:parameter Name="epdrad" Type="String" />
|
||||
</SelectParameters>
|
||||
</asp:SqlDataSource>
|
||||
|
||||
<tr>
|
||||
<td style ="font-weight: bold">
|
||||
<asp:Label ID="Label4" runat="server" CssClass="rdfLabel rdfBlock" Text="Description:"></asp:Label>
|
||||
</td>
|
||||
<td>
|
||||
<asp:Label ID="TaskDescription" runat="server" CssClass="rdfFieldValue" Text='<%# Eval("TaskDescription") %>' />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style ="font-weight: bold">
|
||||
<asp:Label ID="Label7" runat="server" CssClass="rdfLabel rdfBlock" Text="Start:"></asp:Label>
|
||||
</td>
|
||||
<td>
|
||||
<telerik:RadDatePicker ID="TaskDateStart" runat="server" SelectedDate='<%# Bind("TaskDateStart") %>' />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style ="font-weight: bold">
|
||||
<asp:Label ID="Label8" runat="server" CssClass="rdfLabel rdfBlock" Text="End:"></asp:Label>
|
||||
</td>
|
||||
<td>
|
||||
<asp:Label ID="TaskDateEnd" runat="server" CssClass="rdfFieldValue" Text='<%# Eval("TaskDateEnd") %>' />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style ="font-weight: bold">
|
||||
<asp:Label ID="Label5" runat="server" CssClass="rdfLabel rdfBlock" Text="EPD Type: "></asp:Label>
|
||||
</td>
|
||||
<td>
|
||||
<telerik:RadComboBox ID="RadComboBox2" Runat="server" OnSelectedIndexChanged="RadComboBox2_SelectedIndexChanged" AutoPostBack="true" Width="95%" >
|
||||
<Items>
|
||||
<telerik:RadComboBoxItem Value="BG" Text="Beta Gamma" Selected="True"/>
|
||||
<telerik:RadComboBoxItem Value="NG" Text="Neutron Gamma" BackColor="#FFFF80"/>
|
||||
</Items>
|
||||
</telerik:RadComboBox>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style ="font-weight: bold">
|
||||
<asp:Label ID="Label6" runat="server" CssClass="rdfLabel rdfBlock" Text="Alarm EPD Level: "></asp:Label>
|
||||
</td>
|
||||
<td>
|
||||
<telerik:RadComboBox ID="RadComboBox3" Runat="server" DataSourceID="SqlDataSource3" DataTextField="AlarmEPDName" DataValueField="ID_AlarmEPD">
|
||||
</telerik:RadComboBox>
|
||||
<asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:HPH_REMS_newConnectionString %>"
|
||||
SelectCommand="SELECT [ID_AlarmEPD], [AlarmEPDName], [EPDRad] FROM [AlarmEPD] where epdrad=@epdrad">
|
||||
<SelectParameters>
|
||||
<asp:ControlParameter ControlID="RadComboBox2" Name="epdrad" PropertyName="SelectedValue" />
|
||||
</SelectParameters>
|
||||
</asp:SqlDataSource>
|
||||
<!-- Hier moeten we een controle hebben EPDRad van de Combobox moet hetzelfde dan die in de veld EPDRad van task -->
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style ="font-weight: bold">
|
||||
<asp:Label ID="Label9" runat="server" CssClass="rdfLabel rdfBlock" Text="FNGainANGain: "></asp:Label>
|
||||
</td>
|
||||
<td>
|
||||
<telerik:RadComboBox ID="RadComboBox4" Runat="server" DataSourceID="SqlDataSource4" DataTextField="InstallationActivity" DataValueField="ID_FNGainANGain">
|
||||
</telerik:RadComboBox>
|
||||
<asp:SqlDataSource ID="SqlDataSource4" runat="server" ConnectionString="<%$ ConnectionStrings:HPH_REMS_newConnectionString %>" SelectCommand="SELECT [ID_FNGainANGain],[FNGain_ANGainValue]
|
||||
<asp:SqlDataSource ID="SqlDSSelectGain" runat="server" ConnectionString="<%$ ConnectionStrings:HPH_REMS_newConnectionString %>" SelectCommand="SELECT [ID_FNGainANGain],[FNGain_ANGainValue]
|
||||
,[InstallationActivity],[Description] FROM [FNGAinANGain]"></asp:SqlDataSource>
|
||||
<!-- Only actif if EPDRad = NG -->
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
</asp:Content>
|
||||
|
|
|
|||
|
|
@ -1,9 +1,11 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using Telerik.Web.UI;
|
||||
|
||||
namespace Rems2018
|
||||
{
|
||||
|
|
@ -11,14 +13,57 @@ namespace Rems2018
|
|||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
//Zet titel op masterpage
|
||||
Literal titelControl = Master.FindControl("PageTitle") as Literal;
|
||||
titelControl.Text = "Task";
|
||||
|
||||
}
|
||||
|
||||
protected void RadComboBox2_SelectedIndexChanged(object sender, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
|
||||
protected void RadComboBoxSelectEPDRad_SelectedIndexChanged(object sender, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
|
||||
{
|
||||
RadComboBox3.DataBind();
|
||||
var s = sender as RadComboBox;
|
||||
|
||||
SqlDSSelectAlarmLevel.SelectParameters["epdrad"].DefaultValue = s.SelectedValue;
|
||||
var res = SqlDSSelectAlarmLevel.Select(DataSourceSelectArguments.Empty);
|
||||
|
||||
var c2 = s.Parent.FindControl("RadComboBoxSelectAlarmLevel") as RadComboBox;
|
||||
c2.Items.Clear();
|
||||
foreach ( var x in res)
|
||||
{
|
||||
var dv = (DataRowView)x;
|
||||
var di = new RadComboBoxItem(dv[1].ToString(), dv[0].ToString());
|
||||
c2.Items.Add(di);
|
||||
}
|
||||
//c2.DataBind();
|
||||
|
||||
}
|
||||
|
||||
protected void sqlDSV_Task_Selecting(object sender, SqlDataSourceSelectingEventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
protected void RadComboBoxSelectAlarmLevel_Load(object sender, EventArgs e)
|
||||
{
|
||||
var c2 = sender as RadComboBox;
|
||||
|
||||
//var s = c2.Parent.FindControl("RadComboBoxSelectEPDRad") as RadComboBox;
|
||||
SqlDSSelectAlarmLevel.SelectParameters["epdrad"].DefaultValue = "*";
|
||||
var res = SqlDSSelectAlarmLevel.Select(DataSourceSelectArguments.Empty);
|
||||
if (c2 != null)
|
||||
{
|
||||
c2.Items.Clear();
|
||||
foreach (var x in res)
|
||||
{
|
||||
var dv = (DataRowView)x;
|
||||
var di = new RadComboBoxItem(dv[1].ToString(), dv[0].ToString());
|
||||
c2.Items.Add(di);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
201
Rems2018/Task.aspx.designer.cs
generated
201
Rems2018/Task.aspx.designer.cs
generated
|
|
@ -12,6 +12,15 @@ namespace Rems2018 {
|
|||
|
||||
public partial class Task {
|
||||
|
||||
/// <summary>
|
||||
/// rfd1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Telerik.Web.UI.RadFormDecorator rfd1;
|
||||
|
||||
/// <summary>
|
||||
/// RadGrid1 control.
|
||||
/// </summary>
|
||||
|
|
@ -31,210 +40,30 @@ namespace Rems2018 {
|
|||
protected global::System.Web.UI.WebControls.SqlDataSource sqlDSV_Task;
|
||||
|
||||
/// <summary>
|
||||
/// Label3 control.
|
||||
/// SqlDSSelectInst 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.Label Label3;
|
||||
protected global::System.Web.UI.WebControls.SqlDataSource SqlDSSelectInst;
|
||||
|
||||
/// <summary>
|
||||
/// RadComboBox22 control.
|
||||
/// SqlDSSelectAlarmLevel control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Telerik.Web.UI.RadComboBox RadComboBox22;
|
||||
protected global::System.Web.UI.WebControls.SqlDataSource SqlDSSelectAlarmLevel;
|
||||
|
||||
/// <summary>
|
||||
/// SqlDataSource2 control.
|
||||
/// SqlDSSelectGain 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 SqlDataSource2;
|
||||
|
||||
/// <summary>
|
||||
/// Label1 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.Label Label1;
|
||||
|
||||
/// <summary>
|
||||
/// TaskType_CODE 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.Label TaskType_CODE;
|
||||
|
||||
/// <summary>
|
||||
/// Label13 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.Label Label13;
|
||||
|
||||
/// <summary>
|
||||
/// TaskEnableCheckBox control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Telerik.Web.UI.RadCheckBox TaskEnableCheckBox;
|
||||
|
||||
/// <summary>
|
||||
/// Label2 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.Label Label2;
|
||||
|
||||
/// <summary>
|
||||
/// Task_Name 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.Label Task_Name;
|
||||
|
||||
/// <summary>
|
||||
/// Label4 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.Label Label4;
|
||||
|
||||
/// <summary>
|
||||
/// TaskDescription 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.Label TaskDescription;
|
||||
|
||||
/// <summary>
|
||||
/// Label7 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.Label Label7;
|
||||
|
||||
/// <summary>
|
||||
/// TaskDateStart control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Telerik.Web.UI.RadDatePicker TaskDateStart;
|
||||
|
||||
/// <summary>
|
||||
/// Label8 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.Label Label8;
|
||||
|
||||
/// <summary>
|
||||
/// TaskDateEnd 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.Label TaskDateEnd;
|
||||
|
||||
/// <summary>
|
||||
/// Label5 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.Label Label5;
|
||||
|
||||
/// <summary>
|
||||
/// RadComboBox2 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Telerik.Web.UI.RadComboBox RadComboBox2;
|
||||
|
||||
/// <summary>
|
||||
/// Label6 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.Label Label6;
|
||||
|
||||
/// <summary>
|
||||
/// RadComboBox3 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Telerik.Web.UI.RadComboBox RadComboBox3;
|
||||
|
||||
/// <summary>
|
||||
/// SqlDataSource3 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 SqlDataSource3;
|
||||
|
||||
/// <summary>
|
||||
/// Label9 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.Label Label9;
|
||||
|
||||
/// <summary>
|
||||
/// RadComboBox4 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Telerik.Web.UI.RadComboBox RadComboBox4;
|
||||
|
||||
/// <summary>
|
||||
/// SqlDataSource4 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 SqlDataSource4;
|
||||
protected global::System.Web.UI.WebControls.SqlDataSource SqlDSSelectGain;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,9 +5,12 @@
|
|||
</connectionStrings>
|
||||
<appSettings>
|
||||
<add key="Telerik.Web.UI.RenderMode" value="lightweight" />
|
||||
<add key="Telerik.Skin" value="Bootstrap" />
|
||||
<add key="Telerik.ScriptManager.TelerikCdn" value="Disabled" />
|
||||
<add key="Telerik.StyleSheetManager.TelerikCdn" value="Disabled" />
|
||||
<add key="Telerik.Skin" value="Outlook" />
|
||||
<add key="Telerik.ScriptManager.TelerikCdn" value="Enabled" />
|
||||
<add key="Telerik.StyleSheetManager.TelerikCdn" value="Enabled" />
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
@ -28,7 +31,7 @@
|
|||
-->
|
||||
<system.web>
|
||||
<compilation debug="true" targetFramework="4.6.1" />
|
||||
<httpRuntime targetFramework="4.6.1" />
|
||||
<httpRuntime targetFramework="4.6.1" maxRequestLength="4096" executionTimeout="110" />
|
||||
<pages>
|
||||
<controls>
|
||||
<add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI" />
|
||||
|
|
@ -56,5 +59,8 @@
|
|||
<remove name="Telerik_Web_UI_WebResource_axd" />
|
||||
<add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" preCondition="integratedMode" />
|
||||
</handlers>
|
||||
<security>
|
||||
<requestFiltering>
|
||||
<requestLimits maxAllowedContentLength="4194304" /></requestFiltering></security>
|
||||
</system.webServer>
|
||||
</configuration>
|
||||
Loading…
Add table
Reference in a new issue