<%@ Page Title="" Language="C#" MasterPageFile="~/Application.Master" AutoEventWireup="true" CodeBehind="ComponentSetHours.aspx.cs" Inherits="ICDAS_3_0_Web_App.ICDAS_3_0.Configuration.ComponentSetHours" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <%@ Register Src="~/User_Controls/ucSearchGrid.ascx" TagPrefix="ucSearchGrid" TagName="ucSearchGrid" %>
    <%@ Register Src="~/User_Controls/ucToolBar.ascx" TagPrefix="ucToolBar" TagName="ucToolBar" %>
    <%@ Register Src="~/User_Controls/ucUserValidation.ascx" TagPrefix="ucValidate" TagName="ucUserValidation" %>


    <style type="text/css">
        body {
            margin: 0;
            padding: 0;
            font-family: Arial;
        }

        .loadingmodal {
            position: fixed;
            z-index: 999 !important;
            height: 100%;
            width: 100%;
            top: 0;
            background-color: white;
            filter: alpha(opacity=60);
            opacity: 0.8;
            -moz-opacity: 1;
        }

        .loadingcenter {
            z-index: 1000 !important;
            width: 200px;
            height: 100px;
            position: absolute;
            left: 45%;
            top: 60%;
            margin-left: -150px;
            margin-top: -150px;
            opacity: 1;
            /*-moz-opacity: 1;*/
            background: url("Images/loading.gif") no-repeat;
        }
    </style>

</asp:Content>
<asp:Content ID="cotMain" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="upnlwzComponenetSetHours">
        <ProgressTemplate>
            <div class="loadingmodal">
                <div class="loadingcenter">
                </div>
            </div>
        </ProgressTemplate>
    </asp:UpdateProgress>
    <asp:UpdatePanel ID="upnlwzComponenetSetHours" UpdateMode="Always" runat="server">
        <ContentTemplate>
            <div class="row">
                <div class="col-md-12 col-sm-12 col-xs-12">
                    <div class="x_panel">
                        <div class="x_content">

                            <asp:HiddenField ID="hdnRecordId" Value="0" runat="server" />
                            <asp:HiddenField ID="hdnRecordIds" Value="0" runat="server" />
                            <asp:HiddenField ID="hdnRowIndex" Value="0" runat="server" />
                            <asp:HiddenField ID="hdnEquipmentId" Value="0" runat="server" />
                            <asp:HiddenField ID="hdnBiometricIPAddress" Value="" runat="server" />
                            <asp:HiddenField ID="hdnUpdatedUsers" Value="" runat="server" />
                            <asp:HiddenField ID="hdnUpdatedCardNo" Value="" runat="server" />
                            <asp:HiddenField ID="hdnBranchId" Value="0" runat="server" />
                            <asp:HiddenField ID="hdnOldSelectedUsers" Value="0" runat="server" />

                            <asp:HiddenField ID="hdncomments" Value="0" runat="server" />

                            <div class="x_title">
                                <h4>
                                    <asp:Label ID="lblFormTitle" runat="server"></asp:Label></h4>
                                <div class="clearfix"></div>
                            </div>
                            <div id="wizard" class="form_wizard wizard_horizontal">
                                <ul class="wizard_steps">
                                    <li>
                                        <a runat="server" id="aStep1" class="selected">
                                            <span class="step_no">1</span>
                                            <small>Search Records</small>
                                            </span>
                                        </a>
                                    </li>
                                    <li>
                                        <a runat="server" id="aStep2" class="disabled">
                                            <span class="step_no">2</span>
                                            <small>Manage Records</small>
                                            </span>
                                        </a>
                                    </li>
                                </ul>
                            </div>
                            <div class="col-xs-12 col-sm-12 col-lg-12">
                                <ucToolBar:ucToolBar runat="server" ID="ucToolBar" DisplaySaveAs="N" DisplayAdd="N" DisplayPrint="N" DisplayDelete="N" />
                            </div>
                            <div class="col-xs-12 col-sm-12 col-lg-12">
                                <asp:Wizard ID="wzMain" CssClass="col-sm-12" DisplaySideBar="false" OnActiveStepChanged="wzMain_ActiveStepChanged"
                                    runat="server" class="form_wizard wizard_horizontal">
                                    <WizardSteps>
                                        <asp:WizardStep ID="Step0" runat="server">
                                            <div id="dvControl" runat="server" style="width: 100%; overflow: auto; position: relative; overflow-x: hidden">
                                                <ucSearchGrid:ucSearchGrid runat="server" ID="ucSearchGrid" />
                                            </div>
                                        </asp:WizardStep>
                                        <asp:WizardStep ID="Step1" runat="server">
                                            <div class="row">
                                                <div class="col-xs-12 col-sm-12 col-lg-6">
                                                    <div class="input-group">
                                                        <span class="input-group-addon">Equipment Name</span>
                                                        <asp:TextBox ID="txtEquipmentName" runat="server" class="form-control" AutoCompleteType="Disabled" autocomplete="off" ReadOnly="true" />
                                                    </div>
                                                </div>
                                                <div class="col-xs-12 col-sm-12 col-lg-6">

                                                    <div class="input-group">
                                                        <span class="input-group-addon">IP Address&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                                                        <asp:TextBox ID="txtEquipmentId" CssClass="form-control text-right" runat="server" AutoCompleteType="Disabled" autocomplete="off" ReadOnly="true" Style="text-align: left;" />
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="row">
                                                <div class="col-xs-12 col-sm-12 col-lg-6">
                                                    <div class="input-group">
                                                        <span class="input-group-addon">Login Interval&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                                                        <asp:TextBox ID="txtLoginInterval" CssClass="form-control" runat="server" AutoCompleteType="Disabled" autocomplete="off" ReadOnly="true" />
                                                    </div>
                                                </div>
                                                <div class="col-xs-12 col-sm-12 col-lg-6">
                                                    <div class="input-group">
                                                        <span class="input-group-addon">Equipment Type</span>
                                                        <asp:TextBox ID="txtEquipmentType" MaxLength="40" runat="server" class="form-control" AutoCompleteType="Disabled" autocomplete="off" ReadOnly="true" />
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="row">
                                                <div class="col-xs-12 col-sm-12 col-lg-12">
                                                    <table id="tblHeader0" runat="server" width="100%" style="background-color: #b7ecd3" class="table table-bordered dt-responsive nowrap ">
                                                        <tr>
                                                            <td style="width: 5%; text-align: center"></td>
                                                            <td style="width: 47%; text-align: Left">Name</td>
                                                            <td style="width: 47%; text-align: Left">Set Run Hours</td>
                                                        </tr>
                                                    </table>
                                                </div>
                                                <div class="col-xs-12 col-sm-12 col-lg-12">
                                                    <div id="dvScroll" runat="server" style="height: 350px; overflow-y: auto; overflow-x: hidden;">
                                                        <asp:GridView ID="grdComRun" runat="server" Width="100%" CssClass="table table-bordered dt-responsive nowrap" AutoGenerateColumns="False" CellPadding="0" CellSpacing="0" ShowHeader="false">

                                                            <Columns>
                                                                <asp:BoundField DataField="EquipmentComponentRunningHoursId" HeaderText="EquipmentComponentRunningHoursId">
                                                                    <HeaderStyle CssClass="hidden txtalign" />
                                                                    <ItemStyle CssClass="hidden" />
                                                                </asp:BoundField>
                                                                <asp:BoundField DataField="EquipmentMasterId" HeaderText="EquipmentMasterId">
                                                                    <HeaderStyle CssClass="hidden txtalign" />
                                                                    <ItemStyle CssClass="hidden" />
                                                                </asp:BoundField>
                                                                <asp:BoundField DataField="ComponentRunningHoursId" HeaderText="ComponentRunningHoursId">
                                                                    <HeaderStyle CssClass="hidden txtalign" />
                                                                    <ItemStyle CssClass="hidden" />
                                                                </asp:BoundField>
                                                                <asp:TemplateField ControlStyle-CssClass="widthchk">
                                                                    <ItemTemplate>
                                                                        <asp:CheckBox ID="chkEquipmentComponentRunningHoursId" runat="server" AutoPostBack="true" OnCheckedChanged="chkEquipmentComponentRunningHoursId_CheckedChanged"></asp:CheckBox>
                                                                    </ItemTemplate>
                                                                    <ItemStyle Width="5%" />
                                                                </asp:TemplateField>
                                                                <asp:BoundField DataField="Name" HeaderText="Name"></asp:BoundField>
                                                                <asp:TemplateField>
                                                                    <ItemTemplate>
                                                                        <asp:TextBox Width="47%" ID="txtSetRunHours" Text='<%# Eval("SetRunHours")%>' MaxLength="10" runat="server" class="form-control" />
                                                                        <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" TargetControlID="txtSetRunHours"
                                                                            FilterType="Custom" ValidChars="1234567890."></asp:FilteredTextBoxExtender>
                                                                    </ItemTemplate>
                                                                    <ItemStyle Width="47%" />
                                                                </asp:TemplateField>
                                                            </Columns>
                                                        </asp:GridView>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="col-md-12 col-sm-12 col-xs-12 col-lg-12">
                                                <asp:TextBox ID="txtRunningHoursIds" MaxLength="100" runat="server" AutoCompleteType="Disabled" autocomplete="off"
                                                    placeholder="Enter Running Hours" Style="display: none" />
                                            </div>
                                            <div class="row">
                                                <div class="col-xs-12 col-sm-12 col-lg-4">
                                                    <div class="input-group">
                                                        <span class="input-group-addon">Username*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                                                        <asp:TextBox ID="txtUsername" MaxLength="100" runat="server" class="form-control" AutoCompleteType="Disabled" autocomplete="off" required ReadOnly="true" />
                                                    </div>
                                                </div>
                                                <div class="col-xs-12 col-sm-12 col-lg-4">
                                                    <div class="input-group">
                                                        <span class="input-group-addon">Password*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                                                        <asp:TextBox ID="txtPassword" TextMode="Password" MaxLength="15" runat="server" class="form-control" AutoCompleteType="Disabled" autocomplete="off" onkeypress="return blockSpecialChar(event)" required />
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="row">
                                                <div class="col-xs-12 col-sm-12 col-lg-8">
                                                    <div class="input-group">
                                                        <span class="input-group-addon">Comments*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                                                        <%--    <asp:TextBox ID="txtComments" MaxLength="255" runat="server" class="form-control" AutoCompleteType="Disabled" autocomplete="off" TextMode="MultiLine" required
                                                            placeholder="Give Your Comments.." />--%>
                                                        <textarea id="txtComments" maxlength="255" runat="server" class="form-control" autocomplete="Off" cols="20" rows="2"
                                                            placeholder="Give Your Comments.. (max length 255)" onkeypress="return blockSpecialChar(event)"></textarea>
                                                    </div>
                                                </div>
                                            </div>
                                        </asp:WizardStep>
                                    </WizardSteps>
                                    <StartNavigationTemplate>
                                        <asp:Button ID="btnNextButton" Visible="false" runat="server" Text="Next" CommandName="MoveNext" CssClass="btn btn-primary btn-sm" />
                                    </StartNavigationTemplate>
                                    <FinishNavigationTemplate>
                                        <br />
                                        <asp:Button ID="btnPrevious" runat="server" formnovalidate="true" Text="Previous" CssClass="btn btn-success btn-sm" ToolTip="MOVE BACK TO PREVIOUS SCREEN" CommandName="MovePrevious" />
                                    </FinishNavigationTemplate>
                                </asp:Wizard>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
