eDosWeb/eDos/ClearVisitAlarm.aspx
2020-05-13 09:31:06 +02:00

93 lines
9.1 KiB
Text

<%@ Page Title="Comment" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeBehind="ClearVisitAlarm.aspx.cs" Inherits="Rems2018.ClearVisitAlarm" %>
<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" AllowFilteringByColumn="True" AllowPaging="True" PageSize="50" AutoGenerateColumns="False" DataSourceID="SqlDSListVistClear">
<GroupingSettings CollapseAllTooltip="Collapse all groups" CaseSensitive="false" />
<ExportSettings>
<Pdf PageWidth="">
</Pdf>
<Excel FileExtension="xlsx" Format="Xlsx" />
</ExportSettings>
<ClientSettings AllowColumnsReorder="True">
</ClientSettings>
<MasterTableView DataKeyNames="ID_STATION,ID_Visit,PersID" CommandItemDisplay="Top" DataSourceID="SqlDSListVistClear" EditMode="EditForms">
<CommandItemSettings ShowExportToExcelButton="True" ShowAddNewRecordButton="False" />
<Columns>
<telerik:GridButtonColumn CommandName="Edit" Text="Edit" ButtonCssClass="rgEdit" UniqueName="EditColumn" HeaderStyle-Width="30px">
<HeaderStyle Width="30px"></HeaderStyle>
</telerik:GridButtonColumn>
<telerik:GridBoundColumn DataField="ID_STATION" DataType="System.Int32" MaxLength="3" HeaderText="Station" ReadOnly="True" SortExpression="ID_STATION" UniqueName="ID_STATION"/>
<telerik:GridBoundColumn DataField="ID_Visit" DataType="System.Int32" MaxLength="10" HeaderText="ID" ReadOnly="True" SortExpression="ID_Visit" UniqueName="ID_Visit"/>
<telerik:GridCheckBoxColumn DataField="isAlarmCleared" DataType="System.Boolean" HeaderText="Cleared ?" SortExpression="isAlarmCleared" UniqueName="isAlarmCleared" Groupable="False">
</telerik:GridCheckBoxColumn>
<telerik:GridBoundColumn DataField="EPD_sn" HeaderText="EPD sn" SortExpression="EPD_sn" UniqueName="EPD_sn" MaxLength="10" ReadOnly="true" />
<telerik:GridBoundColumn DataField="PersID" DataType="System.Int32" HeaderText="PersID" MaxLength="6" SortExpression="PersID" UniqueName="PersID" ReadOnly="true" />
<telerik:GridBoundColumn DataField="FirstName" HeaderText="First Name" SortExpression="FirstName" UniqueName="FirstName" ReadOnly="true" />
<telerik:GridBoundColumn DataField="LastName" HeaderText="Last Name" SortExpression="LastName" UniqueName="LastName" ReadOnly="true" />
<telerik:GridBoundColumn DataField="alarmStatus" DataType="System.Int32" HeaderText="Alarm S" SortExpression="alarmStatus" UniqueName="alarmStatus" MaxLength="7" ReadOnly="true" />
<telerik:GridBoundColumn DataField="otherAlarms" DataType="System.Int32" HeaderText="Alarm O" SortExpression="otherAlarms" UniqueName="otherAlarms" MaxLength="7" ReadOnly="true" />
<telerik:GridBoundColumn DataField="errorStatus" DataType="System.Int32" HeaderText="Error S" SortExpression="errorStatus" UniqueName="errorStatus" MaxLength="7" ReadOnly="true" />
<telerik:GridBoundColumn DataField="operatingStatus" DataType="System.Int32" HeaderText="Operate" SortExpression="operatingStatus" UniqueName="operatingStatus" MaxLength="7" ReadOnly="true" />
<telerik:GridBoundColumn DataField="InstallationName" HeaderText="Install." SortExpression="InstallationName" UniqueName="InstallationName" MaxLength="8" ReadOnly="true" />
<telerik:GridBoundColumn DataField="Inst_CODE" DataType="System.Int32" HeaderText="I-" SortExpression="Inst_CODE" UniqueName="Inst_CODE" MaxLength="2" ReadOnly="true" />
<telerik:GridBoundColumn DataField="TaskType_CODE" DataType="System.Int32" HeaderText="Task" SortExpression="TaskType_CODE" UniqueName="TaskType_CODE" MaxLength="5" ReadOnly="true" />
<telerik:GridBoundColumn DataField="EntryTime" DataType="System.DateTime" HeaderText="Entry Time" SortExpression="EntryTime" UniqueName="EntryTime" DataFormatString="{0:yyyy-MM-dd}" ReadOnly="true" />
<telerik:GridBoundColumn DataField="ReturnTime" DataType="System.DateTime" HeaderText="Return Time" SortExpression="ReturnTime" UniqueName="ReturnTime" DataFormatString="{0:yyyy-MM-dd}" ReadOnly="true" />
<telerik:GridCheckBoxColumn DataField="isComplete" DataType="System.Boolean" HeaderText="Complete ?" SortExpression="isComplete" UniqueName="isComplete" ReadOnly="true" />
<telerik:GridBoundColumn DataField="Hp10Dose" DataType="System.Double" HeaderText="Hp10 Dose" SortExpression="Hp10Dose" UniqueName="Hp10Dose" MaxLength="8" ReadOnly="true" DataFormatString="{0:0.00}" />
<telerik:GridBoundColumn DataField="Hp07Dose" DataType="System.Double" HeaderText="Hp07 Dose" SortExpression="Hp07Dose" UniqueName="Hp07Dose" MaxLength="8" ReadOnly="true" DataFormatString="{0:0.00}" />
<telerik:GridBoundColumn DataField="Hp10Peak" DataType="System.Double" HeaderText="Hp10 Peak" SortExpression="Hp10Peak" UniqueName="Hp10Peak" MaxLength="8" ReadOnly="true" DataFormatString="{0:0.00}" />
<telerik:GridBoundColumn DataField="Hp07Peak" DataType="System.Double" HeaderText="Hp07 Peak" SortExpression="Hp07Peak" UniqueName="Hp07Peak" MaxLength="6" ReadOnly="true" DataFormatString="{0:0.00}" />
<telerik:GridBoundColumn DataField="Hp10Time" DataType="System.DateTime" HeaderText="Hp10 Time" SortExpression="Hp10Time" UniqueName="Hp10Time" MaxLength="6" ReadOnly="true" DataFormatString="{0:0.00}" />
<telerik:GridBoundColumn DataField="Hp07Time" DataType="System.DateTime" HeaderText="Hp07 Time" SortExpression="Hp07Time" UniqueName="Hp07Time" MaxLength="6" ReadOnly="true" DataFormatString="{0:0.00}" />
<telerik:GridBoundColumn DataField="EPDRad" HeaderText="EPDRad" SortExpression="EPDRad" UniqueName="EPDRad" MaxLength="6" ReadOnly="true" />
<telerik:GridBoundColumn DataField="D1" DataType="System.Double" HeaderText="D1" MaxLength="4" SortExpression="D1" UniqueName="D1" ReadOnly="true" DataFormatString="{0:0.00}" />
<telerik:GridBoundColumn DataField="D2" DataType="System.Double" HeaderText="D2" MaxLength="4" SortExpression="D2" UniqueName="D2" ReadOnly="true" DataFormatString="{0:0.00}" />
<telerik:GridBoundColumn DataField="D3" DataType="System.Double" HeaderText="D3" MaxLength="4" SortExpression="D3" UniqueName="D3" ReadOnly="true" DataFormatString="{0:0.00}" />
<telerik:GridBoundColumn DataField="D4" DataType="System.Double" HeaderText="D4" MaxLength="4" SortExpression="D4" UniqueName="D4" ReadOnly="true" DataFormatString="{0:0.00}" />
</Columns>
<EditFormSettings EditFormType="Template">
<FormTemplate>
<table>
<tr>
<td>
</td>
<td>
<asp:Label ID="Label13" runat="server" AssociatedControlID="isAlarmClearedCheckBox" Text="I have seen the alarm and I decide to clear it:"></asp:Label>
</td>
<td>
<telerik:RadCheckBox ID="isAlarmClearedCheckBox" runat="server" Checked='<%# Bind("isAlarmCleared") %>' Enabled="true" />
</td>
<td></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="SqlDSListVistClear" runat="server" ConnectionString="<%$ ConnectionStrings:eDosConnectionString %>"
SelectCommand="VisitsToClearSelect" SelectCommandType="StoredProcedure"
UpdateCommand="VisitsToClearUpdate" UpdateCommandType="StoredProcedure">
<SelectParameters>
<asp:Parameter Direction="ReturnValue" Name="RETURN_VALUE" Type="Int32" />
</SelectParameters>
<UpdateParameters>
<asp:Parameter Name="ID_STATION" Type="Int32" />
<asp:Parameter Name="ID_Visit" Type="Int32" />
<asp:Parameter Name="isAlarmCleared" Type="Boolean" />
<asp:Parameter Name="PersID" Type="Int32" />
</UpdateParameters>
</asp:SqlDataSource>
</asp:Content>