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

<%@ 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/ucDropDown.ascx" TagPrefix="ucSearchGrid" TagName="ucDropDown" %>
    <%@ Register Src="~/User_Controls/ucDropDown.ascx" TagPrefix="ucDropDown" TagName="ucDropDown" %>


    <script type="text/javascript">
        window.onload = function () {
            var h = document.getElementById("<%=div_position.ClientID%>");
            document.getElementById("<%=dvScroll.ClientID%>").scrollTop = h.value;
        }
        function SetDivPosition() {
            var intY = document.getElementById("<%=dvScroll.ClientID%>").scrollTop;
            var h = document.getElementById("<%=div_position.ClientID%>");
            h.value = intY;
        }

        function afterpostback() {

            var h = document.getElementById("<%=div_position.ClientID%>");
            document.getElementById("<%=dvScroll.ClientID%>").scrollTop = h.value;

        }
    </script>

    <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="upnlwzDepartment">
        <ProgressTemplate>
            <div class="loadingmodal">
                <div class="loadingcenter">
                </div>
            </div>
        </ProgressTemplate>
    </asp:UpdateProgress>
    <asp:UpdatePanel ID="upnlwzDepartment" 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="" runat="server" />
                            <asp:HiddenField ID="hdnRowIndex" Value="0" runat="server" />
                            <asp:HiddenField ID="hdnSelectTitle" runat="server" />
                            <asp:HiddenField ID="hdnEmailTime" runat="server" Value="" />
                            <asp:HiddenField ID="hdnEmailAddress" runat="server" Value="" />
                            <asp:HiddenField ID="hdnEditRecordId" Value="0" runat="server" />
                            <asp:HiddenField ID="hdnSMSAddress" runat="server" Value="" />
                            <asp:HiddenField ID="hdnMobileUserName" runat="server" Value="" />
                            <asp:HiddenField ID="hdnSuperVisorEmailAddress" runat="server" Value="" />
                            <asp:HiddenField ID="div_position" Value="0" runat="server" />
                            <asp:HiddenField ID="hdnNavigation" Value="0" runat="server" />
                            <asp:HiddenField ID="hdnGroupName" Value="0" runat="server" />
                            <asp:HiddenField ID="hdnApplicationSetupEmailSystem" runat="server" Value="0" />
                            <asp:HiddenField ID="hdnApplicationSetupSMSSystem" runat="server" Value="0" />

                            <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>
                                    <li>
                                        <a runat="server" id="aStep3" class="disabled">
                                            <span class="step_no">2</span>
                                            <small>Alarm Type</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" />
                                </span>
                            </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 class="row">
                                                <div style="width: 100%; overflow: auto; position: relative; overflow-x: hidden">
                                                    <ucSearchGrid:ucSearchGrid runat="server" ID="ucSearchGrid" />
                                                </div>
                                            </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">Name*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                                                        <asp:TextBox ID="txtDepartmentName" MaxLength="100" runat="server" class="form-control" AutoCompleteType="Disabled" autocomplete="off"
                                                            placeholder="Enter Name" required onkeypress="return blockSpecialChar(event)" />
                                                    </div>
                                                </div>
                                                <div class="col-xs-12 col-sm-12 col-lg-6"></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">Comm.Group*&nbsp;</span>
                                                        <ucDropDown:ucDropDown runat="server" ID="ddlCommGroup" />
                                                    </div>
                                                </div>
                                                <div class="col-xs-12 col-sm-12 col-lg-6"></div>
                                            </div>
                                            <div class="row">
                                                <div class="col-xs-12 col-sm-12 col-lg-12">
                                                    <div class="input-group">
                                                        <span class="input-group-addon">Header Note*&nbsp;&nbsp;</span>
                                                        <asp:TextBox ID="txtHeaderNote" MaxLength="100" runat="server" class="form-control" AutoCompleteType="Disabled" autocomplete="off"
                                                            placeholder="Enter Header Note" required onkeypress="return blockSpecialChar(event)" />
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="row">
                                                <div class="col-xs-12 col-sm-12 col-lg-12">
                                                    <div class="input-group">
                                                        <span class="input-group-addon">Footer Note*&nbsp;&nbsp;&nbsp;&nbsp;</span>
                                                        <asp:TextBox ID="txtFooterNote" MaxLength="70" runat="server" class="form-control" AutoCompleteType="Disabled" autocomplete="off"
                                                            placeholder="Enter Footer Note" required onkeypress="return blockSpecialChar(event)" />
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="row">
                                                <div class="col-xs-12 col-sm-12 col-lg-3">
                                                    <div class="input-group">
                                                        <span class="input-group-addon">Archive Month*</span>
                                                        <asp:DropDownList ID="ddlArchiveMonth" runat="server" class="form-control">
                                                            <asp:ListItem Value="0" Text="Select Month" Selected="True" required />
                                                            <asp:ListItem Value="1" Text="Jan"></asp:ListItem>
                                                            <asp:ListItem Value="2" Text="Feb"></asp:ListItem>
                                                            <asp:ListItem Value="3" Text="Mar"></asp:ListItem>
                                                            <asp:ListItem Value="4" Text="Apr"></asp:ListItem>
                                                            <asp:ListItem Value="5" Text="May"></asp:ListItem>
                                                            <asp:ListItem Value="6" Text="Jun"></asp:ListItem>
                                                            <asp:ListItem Value="7" Text="Jul"></asp:ListItem>
                                                            <asp:ListItem Value="8" Text="Aug"></asp:ListItem>
                                                            <asp:ListItem Value="9" Text="Sep"></asp:ListItem>
                                                            <asp:ListItem Value="10" Text="Oct"></asp:ListItem>
                                                            <asp:ListItem Value="11" Text="Nov"></asp:ListItem>
                                                            <asp:ListItem Value="12" Text="Dec"></asp:ListItem>
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                                <div class="col-xs-12 col-sm-12 col-lg-3">
                                                    <div class="input-group">
                                                        <asp:Label ID="lblArchiveMonth" runat="server" Text="(Archive data for more than 2 years.)"></asp:Label>
                                                    </div>
                                                </div>
                                            </div>
                                            <asp:Panel ID="pnlEmailMain" runat="server">
                                                <div>
                                                    <asp:Label ID="lblEmail" runat="server" Text="EMAIL" BackColor="DarkGreen" ForeColor="White" BorderColor="LimeGreen"
                                                        Font-Size="Small" Width="100%" Style="padding-left: 10px;" Height="25" Visible="true"></asp:Label>
                                                </div>
                                                <div class=" divider"></div>
                                                <div class="row">
                                                    <div class="col-xs-12 col-sm-12 col-lg-6">
                                                        <div class="input-group">
                                                            <span class="input-group-addon">Email System&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                                                            <asp:RadioButtonList ID="optEmailStatus" runat="server" CssClass="form-control" RepeatDirection="Horizontal" OnSelectedIndexChanged="optEmailStatus_SelectedIndexChanged" AutoPostBack="true">
                                                                <asp:ListItem Value="0" style="margin-left: 10px">Enabled</asp:ListItem>
                                                                <asp:ListItem Value="1" Selected="True" style="margin-left: 10px">Disabled</asp:ListItem>
                                                            </asp:RadioButtonList>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-12 col-sm-12 col-lg-3"></div>
                                                </div>
                                                <asp:Panel ID="PnlEmail" 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">Email Alert Delay*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                                                                <asp:TextBox ID="txtEmailAlertDelay" runat="server" class="form-control" AutoCompleteType="Disabled" autocomplete="off" onKeyDown="maxLengthCheck(this,3);" type="number"
                                                                    Style="text-align: right;" max="180" step="1" min="1" required />
                                                            </div>
                                                        </div>
                                                        <div class="col-xs-12 col-sm-12 col-lg-3">
                                                            <div class="input-group">
                                                                <asp:Label ID="Label1" runat="server" Text="(1-180 minutes)"></asp:Label>
                                                            </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">Alert Email Address 1*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                                                                <asp:TextBox ID="txtAlertEmailAddress1" MaxLength="100" runat="server" class="form-control" AutoCompleteType="Disabled" autocomplete="off"
                                                                    placeholder="Enter Email ID 1" required type="email" />
                                                            </div>
                                                        </div>
                                                        <div class="col-xs-12 col-sm-12 col-lg-6">
                                                            <div class="input-group">
                                                                <span class="input-group-addon">Alert Email Address 2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                                                                <asp:TextBox ID="txtAlertEmailAddress2" MaxLength="100" runat="server" class="form-control" AutoCompleteType="Disabled" autocomplete="off"
                                                                    placeholder="Enter Email ID 2" type="email" />
                                                            </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">Alert Email Address 3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                                                                <asp:TextBox ID="txtAlertEmailAddress3" MaxLength="100" runat="server" class="form-control" AutoCompleteType="Disabled" autocomplete="off"
                                                                    placeholder="Enter Email ID 3" type="email" />
                                                            </div>
                                                        </div>
                                                        <div class="col-xs-12 col-sm-12 col-lg-6">
                                                            <div class="input-group">
                                                                <span class="input-group-addon">Alert Email Address 4&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                                                                <asp:TextBox ID="txtAlertEmailAddress4" MaxLength="100" runat="server" class="form-control" AutoCompleteType="Disabled" autocomplete="off"
                                                                    placeholder="Enter Email ID 4" type="email" />
                                                            </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">Alert Email Address 5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                                                                <asp:TextBox ID="txtAlertEmailAddress5" MaxLength="100" runat="server" class="form-control" AutoCompleteType="Disabled" autocomplete="off"
                                                                    placeholder="Enter Email ID 5" type="email" />
                                                            </div>
                                                        </div>
                                                        <div class="col-xs-12 col-sm-6 col-lg-5">
                                                            <div class="row">
                                                                <div class="col-lg-9">
                                                                    <div class="input-group">
                                                                        <span class="input-group-addon ">Email Time*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                                                                        <asp:DropDownList ID="ddlEmailHours" runat="server" class="form-control">
                                                                            <asp:ListItem Text="00" Value="00" Selected="True" required />
                                                                            <asp:ListItem Text="01" Value="01" />
                                                                            <asp:ListItem Text="02" Value="02" />
                                                                            <asp:ListItem Text="03" Value="03" />
                                                                            <asp:ListItem Text="04" Value="04" />
                                                                            <asp:ListItem Text="05" Value="05" />
                                                                            <asp:ListItem Text="06" Value="06" />
                                                                            <asp:ListItem Text="07" Value="07" />
                                                                            <asp:ListItem Text="08" Value="08" />
                                                                            <asp:ListItem Text="09" Value="09" />
                                                                            <asp:ListItem Text="10" Value="10" />
                                                                            <asp:ListItem Text="11" Value="11" />
                                                                            <asp:ListItem Text="12" Value="12" />
                                                                            <asp:ListItem Text="13" Value="13" />
                                                                            <asp:ListItem Text="14" Value="14" />
                                                                            <asp:ListItem Text="15" Value="15" />
                                                                            <asp:ListItem Text="16" Value="16" />
                                                                            <asp:ListItem Text="17" Value="17" />
                                                                            <asp:ListItem Text="18" Value="18" />
                                                                            <asp:ListItem Text="19" Value="19" />
                                                                            <asp:ListItem Text="20" Value="20" />
                                                                            <asp:ListItem Text="21" Value="21" />
                                                                            <asp:ListItem Text="22" Value="22" />
                                                                            <asp:ListItem Text="23" Value="23" />
                                                                        </asp:DropDownList>
                                                                    </div>
                                                                </div>
                                                                <div class="col-lg-3">
                                                                    <div class="input-group col-lg-12">
                                                                        <asp:DropDownList ID="ddlEmailMins" runat="server" class="form-control">
                                                                            <asp:ListItem Text="00" Value="00" Selected="True" required />
                                                                            <asp:ListItem Text="05" Value="05" />
                                                                            <asp:ListItem Text="10" Value="10" />
                                                                            <asp:ListItem Text="15" Value="15" />
                                                                            <asp:ListItem Text="20" Value="20" />
                                                                            <asp:ListItem Text="25" Value="25" />
                                                                            <asp:ListItem Text="30" Value="30" />
                                                                            <asp:ListItem Text="35" Value="35" />
                                                                            <asp:ListItem Text="40" Value="40" />
                                                                            <asp:ListItem Text="45" Value="45" />
                                                                            <asp:ListItem Text="50" Value="50" />
                                                                            <asp:ListItem Text="55" Value="55" />
                                                                        </asp:DropDownList>
                                                                    </div>
                                                                </div>
                                                            </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">Supervisor Email Add. 1*&nbsp;</span>
                                                                <asp:TextBox ID="txtSupervisorEmailAdd1" MaxLength="100" runat="server" class="form-control" AutoCompleteType="Disabled" autocomplete="off"
                                                                    placeholder="Enter Email Add.1" required type="email" />
                                                            </div>
                                                        </div>
                                                        <div class="col-xs-12 col-sm-12 col-lg-6">
                                                            <div class="input-group">
                                                                <span class="input-group-addon">Supervisor Email Add. 2&nbsp;&nbsp;</span>
                                                                <asp:TextBox ID="txtSupervisorEmailAdd2" MaxLength="100" runat="server" class="form-control" AutoCompleteType="Disabled" autocomplete="off"
                                                                    placeholder="Enter Email Add.2" type="email" />
                                                            </div>
                                                        </div>
                                                    </div>
                                                </asp:Panel>
                                            </asp:Panel>
                                            <asp:Panel ID="pnlSMSMain" runat="server">
                                                <div>
                                                    <asp:Label ID="lblsms" runat="server" Text="SMS" BackColor="DarkGreen" ForeColor="White" BorderColor="LimeGreen"
                                                        Font-Size="Small" Width="100%" Style="padding-left: 10px;" Height="25" Visible="true"></asp:Label>
                                                </div>
                                                <div class=" divider"></div>

                                                <div class="row">
                                                    <div class="col-xs-12 col-sm-12 col-lg-6">
                                                        <div class="input-group">
                                                            <span class="input-group-addon">SMS System &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                                                            <asp:RadioButtonList ID="optSMSSystem" runat="server" CssClass="form-control" RepeatDirection="Horizontal" OnSelectedIndexChanged="optSMSSystem_SelectedIndexChanged" AutoPostBack="true">
                                                                <asp:ListItem Value="0" style="margin-right: 10px">Enabled</asp:ListItem>
                                                                <asp:ListItem Value="1" Selected="True" style="margin-right: 10px">Disabled</asp:ListItem>
                                                            </asp:RadioButtonList>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-12 col-sm-12 col-lg-8"></div>
                                                </div>

                                                <asp:Panel ID="PnlSMS" 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">SMS Alert Delay*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                                                                <asp:TextBox ID="txtSMSAlertDelay" runat="server" class="form-control" AutoCompleteType="Disabled" autocomplete="off" onKeyDown="maxLengthCheck(this,3);" type="number"
                                                                    Style="text-align: right;" max="180" min="1" required />
                                                            </div>
                                                        </div>
                                                        <div class="col-xs-12 col-sm-12 col-lg-3">
                                                            <div class="input-group">
                                                                <asp:Label ID="Label2" runat="server" Text="(1-180 minutes)"></asp:Label>
                                                            </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">Mobile User Name 1*&nbsp;</span>
                                                                <asp:TextBox ID="txtMobileUserName1" MaxLength="100" runat="server" class="form-control" AutoCompleteType="Disabled" autocomplete="off"
                                                                    placeholder="Enter User Name 1" required onkeypress="return blockSpecialChar(event)"/>
                                                            </div>
                                                        </div>
                                                        <div class="col-xs-12 col-sm-12 col-lg-4">
                                                            <div class="input-group">
                                                                <span class="input-group-addon">Mobile No.1*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                                                                <asp:TextBox ID="txtMobileNo1" runat="server" class="form-control" AutoCompleteType="Disabled" autocomplete="off"
                                                                    placeholder="e.g +919874563210" MaxLength="13" required />
                                                                <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" TargetControlID="txtMobileNo1"
                                                                    FilterType="Custom" ValidChars="+1234567890"></asp:FilteredTextBoxExtender>
                                                            </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">Mobile User Name 2&nbsp;&nbsp;</span>
                                                                <asp:TextBox ID="txtMobileUserName2" MaxLength="100" runat="server" class="form-control" AutoCompleteType="Disabled" autocomplete="off"
                                                                    placeholder="Enter User Name.2" onkeypress="return blockSpecialChar(event)" />

                                                            </div>
                                                        </div>
                                                        <div class="col-xs-12 col-sm-12 col-lg-4">
                                                            <div class="input-group">
                                                                <span class="input-group-addon">Mobile No.2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                                                                <asp:TextBox ID="txtMobileNo2" runat="server" class="form-control" AutoCompleteType="Disabled" autocomplete="off"
                                                                    placeholder="Enter Mobile No.2" MaxLength="13" />
                                                                <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender2" runat="server" TargetControlID="txtMobileNo2"
                                                                    FilterType="Custom" ValidChars="+1234567890"></asp:FilteredTextBoxExtender>
                                                            </div>
                                                        </div>
                                                        <div class="col-xs-12 col-sm-12 col-lg-2"></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">Mobile User Name 3&nbsp;&nbsp;</span>
                                                                <asp:TextBox ID="txtMobileUserName3" MaxLength="100" runat="server" class="form-control" AutoCompleteType="Disabled" autocomplete="off"
                                                                    placeholder="Enter User Name.3" onkeypress="return blockSpecialChar(event)" />
                                                            </div>
                                                        </div>
                                                        <div class="col-xs-12 col-sm-12 col-lg-4">
                                                            <div class="input-group">
                                                                <span class="input-group-addon">Mobile No.3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                                                                <asp:TextBox ID="txtMobileNo3" runat="server" class="form-control" AutoCompleteType="Disabled" autocomplete="off"
                                                                    placeholder="Enter Mobile No.3" MaxLength="13" />
                                                                <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender3" runat="server" TargetControlID="txtMobileNo3"
                                                                    FilterType="Custom" ValidChars="+1234567890"></asp:FilteredTextBoxExtender>
                                                            </div>
                                                        </div>
                                                        <div class="col-xs-12 col-sm-12 col-lg-2"></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">Mobile User Name 4&nbsp;&nbsp;</span>
                                                                <asp:TextBox ID="txtMobileUserName4" MaxLength="100" runat="server" class="form-control" AutoCompleteType="Disabled" autocomplete="off"
                                                                    placeholder="Enter User Name.4" onkeypress="return blockSpecialChar(event)" />
                                                            </div>
                                                        </div>
                                                        <div class="col-xs-12 col-sm-12 col-lg-4">
                                                            <div class="input-group">
                                                                <span class="input-group-addon">Mobile No.4&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                                                                <asp:TextBox ID="txtMobileNo4" runat="server" class="form-control" AutoCompleteType="Disabled" autocomplete="off"
                                                                    placeholder="Enter Mobile No.4" MaxLength="13" />
                                                                <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender4" runat="server" TargetControlID="txtMobileNo4"
                                                                    FilterType="Custom" ValidChars="+1234567890"></asp:FilteredTextBoxExtender>
                                                            </div>
                                                        </div>
                                                        <div class="col-xs-12 col-sm-12 col-lg-2"></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">Mobile User Name 5&nbsp;&nbsp;</span>
                                                                <asp:TextBox ID="txtMobileUserName5" MaxLength="100" runat="server" class="form-control" AutoCompleteType="Disabled" autocomplete="off"
                                                                    placeholder="Enter User Name.5" onkeypress="return blockSpecialChar(event)" />
                                                            </div>
                                                        </div>
                                                        <div class="col-xs-12 col-sm-12 col-lg-4">
                                                            <div class="input-group">
                                                                <span class="input-group-addon">Mobile No.5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                                                                <asp:TextBox ID="txtMobileNo5" runat="server" class="form-control" AutoCompleteType="Disabled" autocomplete="off"
                                                                    placeholder="Enter Mobile No.5" MaxLength="13" />
                                                                <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender5" runat="server" TargetControlID="txtMobileNo5"
                                                                    FilterType="Custom" ValidChars="+1234567890"></asp:FilteredTextBoxExtender>
                                                            </div>
                                                        </div>
                                                        <div class="col-xs-12 col-sm-12 col-lg-2"></div>
                                                    </div>
                                                </asp:Panel>
                                            </asp:Panel>
                                        </asp:WizardStep>

                                        <asp:WizardStep ID="Step2" 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">Department</span>
                                                        <asp:TextBox ID="txtName1" runat="server" class="form-control" AutoCompleteType="Disabled" ReadOnly="true" />
                                                    </div>
                                                </div>
                                                <div class="col-xs-12 col-sm-12 col-lg-6">
                                                    <div class="input-group">
                                                        <span class="input-group-addon">Comm.Group</span>
                                                        <asp:TextBox ID="txtCommGroup1" runat="server" class="form-control" AutoCompleteType="Disabled" ReadOnly="true" />
                                                    </div>
                                                </div>
                                            </div>

                                            <div class="row">
                                                <div class="col-xs-12 col-sm-12 col-lg-12">
                                                    <table id="Table1" 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">Alarm Description</td>
                                                            <td style="width: 47%; text-align: left">Alarm Type</td>
                                                        </tr>
                                                    </table>
                                                </div>
                                                <div class="col-xs-12 col-sm-12 col-lg-12">
                                                    <div id="dvScroll" onscroll="SetDivPosition()" runat="server" style="height: 350px; overflow: auto; overflow-x: hidden;">
                                                        <asp:GridView ID="grdAlarmEvent" runat="server" Width="100%" CssClass="table table-bordered dt- responsive nowrap" AutoGenerateColumns="False" CellPadding="0" CellSpacing="0" ShowHeader="false">
                                                            <Columns>
                                                                <asp:BoundField DataField="AlarmEventId" HeaderText="AlarmEventId">
                                                                    <HeaderStyle CssClass="hidden txtalign" />
                                                                    <ItemStyle CssClass="hidden" />
                                                                </asp:BoundField>
                                                                <asp:BoundField DataField="CompanyId" HeaderText="CompanyId">
                                                                    <HeaderStyle CssClass="hidden txtalign" />
                                                                    <ItemStyle CssClass="hidden" />
                                                                </asp:BoundField>
                                                                <asp:BoundField DataField="AlarmCodeLookUpId" HeaderText="AlarmCodeLookUpId">
                                                                    <HeaderStyle CssClass="hidden txtalign" />
                                                                    <ItemStyle CssClass="hidden" />
                                                                </asp:BoundField>
                                                                <asp:TemplateField ControlStyle-CssClass="widthchk">
                                                                    <ItemTemplate>
                                                                        <asp:CheckBox ID="chkAlarmEventId" runat="server"></asp:CheckBox>
                                                                    </ItemTemplate>
                                                                    <ItemStyle Width="5%" />
                                                                </asp:TemplateField>
                                                                <asp:TemplateField>
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="RowNumber" Text='<%# Eval("AlarmDescription")%>' runat="server"></asp:Label>
                                                                    </ItemTemplate>
                                                                    <ItemStyle Width="47%" HorizontalAlign="Left" />
                                                                </asp:TemplateField>
                                                                <asp:TemplateField>
                                                                    <ItemTemplate>
                                                                        <asp:DropDownList class="form-control" runat="server" SelectedValue='<%# Bind("AlarmType") %>' ID="AlarmType">
                                                                            <asp:ListItem Value="" Text="SELECT ALARM TYPE" />
                                                                            <asp:ListItem Value="A" Text="Alarm" />
                                                                            <asp:ListItem Value="E" Text="Event" />
                                                                            <asp:ListItem Value="N" Text="Notifications" />
                                                                        </asp:DropDownList>

                                                                    </ItemTemplate>
                                                                    <ItemStyle Width="47%" />
                                                                </asp:TemplateField>
                                                            </Columns>
                                                        </asp:GridView>
                                                    </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>
                                    <StepNavigationTemplate>
                                        <br />
                                        <div id="btnPrevNnext" runat="server">
                                            <asp:Button ID="btnStepPrevious" formnovalidate="true" runat="server" ToolTip="CONTINUE TO PREVIOUS SCREEN WITHOUT SAVING RECORDS" CausesValidation="false" Text="Previous" CssClass="btn btn-success btn-sm" OnClick="btnStepPrevious_Click" />
                                            <asp:Button ID="btnStepNext" formnovalidate="true" runat="server" ToolTip="CONTINUE TO NEXT SCREEN WITHOUT SAVING RECORDS" Text="Continue" CssClass="btn btn-primary btn-sm" OnClick="btnStepNext_Click" />
                                        </div>
                                    </StepNavigationTemplate>
                                    <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>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>



