<%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeBehind="Synchronize_RTC.aspx.cs" Inherits="Neclog_3_0.Synchronize_RTC" %>

<%@ Register Src="~/UserControls/ucSearchControl.ascx" TagName="ucSearchControl" TagPrefix="ucSearch" %>
<%@ Register TagPrefix="OBgrid" Namespace="Obout.Grid" Assembly="obout_Grid_NET" %>
<%@ Register Src="~/UserControls/ucAdminLoginControl.ascx" TagPrefix="ucAdminLoginControl" TagName="ucAdminLogin" %>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <div class='divtable'>
        <asp:HiddenField ID="hdnLoginComments" runat="server" />
        <div class='form-box'>
            <div class="box box-success">
                <!-- /.box-header -->
                <div class="box-header with-border">
                    <div class='row'>
                        <div class='col-md-8'>
                            <asp:Label ID="lblTitle" runat="server" class="box-title"></asp:Label>
                        </div>
                        <div class="col-sm-4" align="right">
                            <asp:Button ID="btnInstrumentWriteLog" runat="server" Text="Instrument Log" OnClick="btnInstrumentWriteLog_Click" CssClass="myButton" CausesValidation="false" ToolTip="Instrument Log" />
                        </div>
                    </div>
                </div>

                <!-- form start -->
                <div class="form-horizontal">
                    <div class="box-body" id="divFormContent" runat="server">
                        <div class="form-group">
                            <asp:Wizard ID="Wizard1" runat="server" HeaderText="" DisplaySideBar="true" Width="99%" OnNextButtonClick="Wizard1_NextButtonClick"
                                OnActiveStepChanged="Wizard1_ActiveStepChanged" StartNextButtonType="Button">
                                <WizardSteps>
                                    <asp:WizardStep ID="Step0" StepType="Step" runat="server" AllowReturn="true">
                                        <div class="form-group" style="height: 64vh; overflow-x: hidden; overflow-y: scroll;">
                                            <ucSearch:ucSearchControl ID="ucSynchronize" runat="server" strSearchProcedurename=""
                                                strDelePrecedure="" strDeletekeys="" strDeleteColName=""
                                                blnOutParameter="true" strColWidth="0,50,25,20" />
                                        </div>
                                    </asp:WizardStep>
                                    <asp:WizardStep ID="Step1" StepType="Step" runat="server" AllowReturn="false">
                                        <div class="form-group" style="height: 67vh;">
                                            <ucAdminLoginControl:ucAdminLogin ID="ucAdminLogin" runat="server" />
                                        </div>
                                    </asp:WizardStep>
                                    <asp:WizardStep ID="Step2" StepType="Step" runat="server" AllowReturn="false">
                                        <div class="form-group" style="height: 70vh;" align="center">
                                            <img alt="Prcessing" src="~/../Images/AnimatedProgressBar1.gif" />
                                        </div>
                                        <asp:Timer ID="tmrSynchronize" runat="server" Enabled="false" Interval="1000" OnTick="tmrSynchronize_Tick"></asp:Timer>
                                    </asp:WizardStep>
                                    <asp:WizardStep ID="Step3" StepType="Step" runat="server" AllowReturn="true">
                                        <asp:UpdatePanel runat="server">
                                            <ContentTemplate>
                                                <asp:Timer ID="tmrSynchronizeError" runat="server" Enabled="false" Interval="1000" OnTick="tmrSynchronizeError_Tick"></asp:Timer>
                                                <div class="form-group" style="height: 60vh; overflow-x: hidden; overflow-y: scroll;">
                                                    <ucSearch:ucSearchControl ID="UcError" runat="server" strSearchProcedurename=""
                                                        strDelePrecedure="" strDeletekeys="" strDeleteColName=""
                                                        blnOutParameter="true" strColWidth="0,15,13,15,12,10,30" />
                                                </div>
                                                <div class="form-group" align="center">
                                                    <asp:Button ID="btnCancel" runat="server" Text="Cancel" OnClick="btnCancel_Click" CssClass="myButton" CausesValidation="false" />
                                                </div>
                                            </ContentTemplate>
                                            <Triggers>
                                                <asp:AsyncPostBackTrigger ControlID="tmrSynchronizeError" EventName="Tick" />
                                            </Triggers>
                                        </asp:UpdatePanel>
                                    </asp:WizardStep>
                                </WizardSteps>
                                <SideBarButtonStyle ForeColor="White" />
                                <StepNavigationTemplate>
                                    <div style="float: right; padding-right: 20px;">
                                        <asp:Button ID="btnNext" runat="server" Text="Save & Continue" CssClass="myButton" CommandName="MoveNext" Visible="false" ToolTip="Save & Continue" />
                                        <asp:Button ID="btnCancel" runat="server" Text="Back" OnClick="btnCancel_Click1" CssClass="myButton" Visible="false" CommandName="Back" ToolTip="Back" />
                                    </div>
                                </StepNavigationTemplate>
                                <StartNavigationTemplate>
                                    <asp:Button ID="StartNextButton" runat="server" CommandName="MoveNext" Text="Save" CssClass="myButton" Visible="false" ToolTip="Save" />
                                </StartNavigationTemplate>
                                <FinishNavigationTemplate>
                                    <asp:Button ID="btnFinish" runat="server" Text="Home" CssClass="myButton" CausesValidation="false" CommandName="MoveComplete" ToolTip="Home" />
                                </FinishNavigationTemplate>
                                <HeaderStyle ForeColor="White" HorizontalAlign="Center" Font-Size="18px" Font-Bold="True"
                                    Height="25px" BackColor="#fc8d25" BorderStyle="Solid" BorderColor="#E6E2D8" BorderWidth="2px" />
                            </asp:Wizard>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
