<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_BaseFramework_Security_CreateCommonUser, App_Web_iur12pbz" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="../../../UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager" TagPrefix="uc1" %>
<%@ Register Src="~/UserControls/AutoComplete/AutoCompleteControl.ascx" TagName="AutoCompleteControl"  TagPrefix="acc" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl" TagPrefix="ScreenGroup" %>
<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl"  TagPrefix="Date" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <div id="CPDiv">
        <asp:UpdatePanel ID="updPnlSearchGridView" runat="server">
            <ContentTemplate>
                <div id="divContentPage">
                    <!-- ContentPlaceHolder Box Starts -->
                    <div style="width: 100%; padding: 2px; margin: 2px">
                        <table width="100%" border="0" style="vertical-align: top; margin-top: -1px; border-collapse: collapse;
                            background-color: White" cellpadding="0" cellspacing="0">
                            <tr>
                                <td class="dashBoardLeftCont" valign="top">
                                    <div class="himssuHeader3WireBox">
                                        <div class="himsBoxHeader">
                                            <div class="leftdiv">
                                            </div>
                                            <div class="himsBoxTitle">
                                                <div class="headerText">
                                                    <asp:Label runat="server" ID="ScreenGroupNameLabel"></asp:Label>
                                                </div>
                                            </div>
                                        </div>
                                        <table width="200px" cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td>
                                                    <div class="himsBoxContent">
                                                        <div class="leftUlMenu">
                                                            <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="122"
                                                                Visible="true" runat="server" />
                                                        </div>
                                                    </div>
                                                </td>
                                            </tr>
                                        </table>
                                    </div>
                                </td>
                                <td style="vertical-align: top; padding-left: 10px" width="99%">
                                    <!-- Sub Container2 Box Start -->
                                    <div class="himssuHeader5WireBox" runat="server" id="SearchDiv">
                                        <div class="himsBoxHeader">
                                            <asp:Panel ID="TopPanel" runat="server" meta:resourcekey="TopPanelResource1">
                                                <div class="leftdiv">
                                                </div>
                                                <div class="himsBoxTitle">
                                                    <%--<asp:Image ID="Image1" runat="server" class="fLeft" meta:resourcekey="Image1Resource1" />--%>
                                                    <div class="headerText">
                                                        <asp:Label ID="Label1" runat="server" Text="Search" meta:resourcekey="Label1Resource1"></asp:Label>
                                                        <%--<cc1:CollapsiblePanelExtender ID="cpe" runat="server" TargetControlID="DetailPanel"
                                                            ExpandControlID="Image1" CollapseControlID="Image1" TextLabelID="Label1" Collapsed="True"
                                                            ImageControlID="Image1" ExpandedImage="~/images/buttonCollapse.gif" CollapsedImage="~/images/buttonExpand.gif"
                                                            Enabled="True" />--%>
                                                    </div>
                                                    <div class="fRight" style="margin-top: -20px">
                                                        <asp:Button ID="AddNewButtonID" runat="server" OnClick="AddNewButton_Click" SkinID="0"
                                                            CssClass="AddButton" Text="Add" />
                                                    </div>
                                                </div>
                                            </asp:Panel>
                                        </div>
                                        <asp:Panel ID="DetailPanel" runat="server" meta:resourcekey="DetailPanelResource1">
                                            <div class="himsBoxContent">
                                                <div class="contentHolder">
                                                    <asp:Panel ID="SearchCriteriaPanel" runat="server" meta:resourcekey="SearchCriteriaPanelResource1">
                                                        <div class="outerBox pTop5">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="SearchUserRoleLabel" Text="Role" runat="server"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:DropDownList ID="SearchUserRoleDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                                    onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList" Width="154px">
                                                                </asp:DropDownList>
                                                            </div>
                                                        </div>
                                                        <div class="outerBox pTop5">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="SearchDisplayNameLabel" runat="server" Text="Display Name" meta:resourcekey="DisplayNameLabelResource1"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:TextBox ID="SearchDisplayNameTextBox" runat="server" TabIndex="1" SkinID="CustomWidthTextBox"
                                                                    Width="150px" meta:resourcekey="DisplayNameSearchTextBoxResource1"></asp:TextBox>
                                                                <asp:DropDownList ID="ConditionDropDownList" runat="server" Visible="False" onmouseleave="showHideTooltip()"
                                                                    onmouseenter="showHideTooltip()" SkinID="CustomWidthDropdownList" Width="154px"
                                                                    meta:resourcekey="ConditionDropDownListResource1">
                                                                    <asp:ListItem Selected="True" Value="0" meta:resourcekey="ListItemResource1">OR</asp:ListItem>
                                                                    <asp:ListItem Value="1" meta:resourcekey="ListItemResource2">AND</asp:ListItem>
                                                                </asp:DropDownList>
                                                            </div>
                                                        </div>
                                                        <div class="outerBox pTop5">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="SearchLoginNameLabel" runat="server" Text="User Name" meta:resourcekey="LoginNameLabelResource1"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:TextBox ID="SearchLoginNameTextBox" runat="server" TabIndex="2" SkinID="CustomWidthTextBox"
                                                                    Width="150px" meta:resourcekey="LoginNameSearchTextBoxResource1"></asp:TextBox>
                                                            </div>
                                                        </div>
                                                        <div class="cBoth">
                                                        </div>
                                                        <div class="alignCenter pTop5">
                                                            <asp:Button ID="SearchButton" runat="server" OnClick="SearchButton_Click" Text="Search"
                                                                CausesValidation="False" TabIndex="3" SkinID="0" CssClass="PrimaryButton" />
                                                            <asp:Button ID="ClearSearchButton" runat="server" OnClick="ClearSearchButton_Click"
                                                                Text="Clear" CausesValidation="False" TabIndex="4" meta:resourcekey="ClearSearchButtonResource1" />
                                                        </div>
                                                        <div class="cBoth">
                                                        </div>
                                                    </asp:Panel>
                                                    <div class="spacer">
                                                        <asp:Image ID="Image2" runat="server" ImageUrl="~/Images/spacer.gif" meta:resourcekey="Image2Resource1" />
                                                    </div>
                                                    <div class="himssuHeader7WireBox" id="PatientRelationDiv" runat="server">
                                                        <div class="himsBoxHeader">
                                                            <div class="leftdiv">
                                                            </div>
                                                            <div class="himsBoxTitle">
                                                                <%--<div class="headerText">
                                                                    <div class="fLeft">
                                                                        <asp:Label ID="GridViewLabel" Text="List" runat="server" Font-Bold="True" meta:resourcekey="GridViewLabelResource1" />
                                                                    </div>
                                                                </div>--%>
                                                                <%--<div align="right" class="fRight" style="margin-top: 0px;">
                                                                    <uc1:GridViewPager ID="UserSearchGridViewPager" runat="server" OnFirstRecordClick="UserSearchGridViewPager_FirstRecordClick"
                                                                        OnLastRecordClick="UserSearchGridViewPager_LastRecordClick" OnNextRecordClick="UserSearchGridViewPager_NextRecordClick"
                                                                        OnPrevRecordClick="UserSearchGridViewPager_PrevRecordClick" OnTextBoxValueChange="UserSearchGridViewPager_TextBoxValueChange" />
                                                                </div>--%>
                                                            </div>
                                                        </div>
                                                        <div class="himsBoxContent">
                                                            <asp:GridView ID="UserSearchGridView" runat="server" AutoGenerateColumns="False"
                                                                OnSelectedIndexChanged="UserSearchGridView_SelectedIndexChanged" OnPageIndexChanging="UserSearchGridView_PageIndexChanging"
                                                                DataKeyNames="Id" AllowPaging="false" PageSize="5" OnDataBound="UserSearchGridView_DataBound"
                                                                Width="100%" TabIndex="5" ShowHeader="True" EmptyDataText="No Records Available"
                                                                meta:resourcekey="UserSearchGridViewResource1">
                                                                <Columns>
                                                                    <asp:CommandField ShowSelectButton="True" meta:resourcekey="CommandFieldResource1">
                                                                        <ItemStyle HorizontalAlign="Center" ForeColor="Blue" Width="5%" />
                                                                    </asp:CommandField>
                                                                    <%--<asp:TemplateField HeaderText="Type" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="UserTypeLabel" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"UserSourceTypeId").ToString().ToUpper()=="95"?"Employee":"Student" %>'></asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:BoundField HeaderText="ID No / Code" DataField="EmployeeCode" meta:resourcekey="BoundFieldResource1" HeaderStyle-HorizontalAlign="Left">
                                                                            <ItemStyle Width="19%" />
                                                                        </asp:BoundField>
                                                                        <asp:BoundField HeaderText="Name" DataField="UserFullName" meta:resourcekey="BoundFieldResource2" HeaderStyle-HorizontalAlign="Left">
                                                                            <ItemStyle Width="19%" />
                                                                        </asp:BoundField>--%>
                                                                    <asp:BoundField HeaderText="User Name" DataField="LoginTitle" HeaderStyle-HorizontalAlign="Left">
                                                                        <ItemStyle Width="19%" />
                                                                    </asp:BoundField>
                                                                    <asp:BoundField HeaderText="Display Name" DataField="DisplayTitle" HeaderStyle-HorizontalAlign="Left">
                                                                        <ItemStyle Width="19%" />
                                                                    </asp:BoundField>
                                                                    <asp:BoundField HeaderText="Role" DataField="RoleName" HeaderStyle-HorizontalAlign="Left">
                                                                        <ItemStyle Width="16%" />
                                                                    </asp:BoundField>
                                                                    <asp:BoundField HeaderText="InActive" DataField="ObsoleteDisplay" HeaderStyle-HorizontalAlign="Left">
                                                                        <HeaderStyle HorizontalAlign="Center" />
                                                                        <ItemStyle HorizontalAlign="Center" Width="10%" />
                                                                    </asp:BoundField>
                                                                </Columns>
                                                                <PagerSettings Visible="False" />
                                                            </asp:GridView>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                            <%-- </div>--%>
                                        </asp:Panel>
                                    </div>
                                    <!-- Sub Container2 Box Ends -->
                                    <!-- Sub Container1 Box Start -->
                                    <div class="himssuHeader1WireBox" runat="server" id="DetailDiv" visible="false">
                                        <div class="himsBoxHeader">
                                            <div class="leftdiv">
                                            </div>
                                            <div class="himsBoxTitle">
                                                <div class="headerText">
                                                    <asp:Label ID="UserDetailsLabel" runat="server" Text="Maintenance" meta:resourcekey="UserDetailsLabelResource1"></asp:Label>
                                                </div>
                                                <div id="Div1" class="fRight" style="margin-top: -12px; padding-right: 10px" runat="server"
                                                    visible="False">
                                                    <asp:LinkButton ID="AssignRoleLinkButton" runat="server" Text="Assign Roles" CssClass="linkButtonBlue"
                                                        meta:resourcekey="AssignRoleLinkButtonResource1"></asp:LinkButton>
                                                </div>
                                            </div>
                                            <div class="fRight" style="margin-top: -20px">
                                                <asp:ImageButton AlternateText="First page" ToolTip="First page" ID="FirstRecordImageButton"
                                                    runat="server" ImageUrl="~/Images/arrowLlast.gif" OnClick="FirstRecordImageButton_Click" />
                                                <asp:ImageButton AlternateText="Previous page" ToolTip="Previous page" ID="PreviousImageButton"
                                                    runat="server" ImageUrl="~/Images/arrowLeft.gif" OnClick="PreviousImageButton_Click" />
                                                <asp:Label ID="LabelPage" runat="server" Text="Record " AssociatedControlID="ReCordNumber" />
                                                <asp:Label ID="ReCordNumber" Font-Bold="true" SkinID="Dummy" runat="server"></asp:Label>
                                                <asp:Label ID="ofLabel" Text="of" runat="server" />
                                                <asp:Label ID="TotalRecord" runat="server" />
                                                <asp:ImageButton AlternateText="Next page" ToolTip="Next page" ID="NextImageButtom"
                                                    runat="server" ImageUrl="~/Images/arrowRight.gif" OnClick="NextImageButton_Click" />
                                                <asp:ImageButton AlternateText="Last page" ToolTip="Last page" ID="LastRecordImageButton"
                                                    runat="server" ImageUrl="~/Images/arrowRLast.gif" OnClick="LastRecordImageButton_Click" />
                                                <asp:Button ID="BackButton" runat="Server" OnClick="BackButton_Click" SkinID="0"
                                                    CssClass="BackButton" Text="Back" />
                                            </div>
                                        </div>
                                        <div class="himsBoxContent">
                                            <div class="contentHolder">
                                                <div class="outerBox pTop5">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="UserRoleLabel" Text="User Role" runat="server" SkinID="MandatoryLabel"></asp:Label></div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList ID="UserRoleDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                            onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList" Width="154px">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                                <div class="cBoth">
                                                </div>
                                                <div class="outerBox pTop5">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="Label2" runat="server" Text="User Name" SkinID="MandatoryLabel" meta:resourcekey="Label2Resource1"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:TextBox ID="LoginNameTextBox" runat="server" TabIndex="8" SkinID="CustomWidthTextBox"
                                                            Width="150px" meta:resourcekey="LoginNameTextBoxResource1"></asp:TextBox>
                                                    </div>
                                                </div>
                                                <div class="cBoth">
                                                </div>
                                                <div class="outerBox pTop5">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="Label3" runat="server" Text="Display Name" SkinID="MandatoryLabel"
                                                            meta:resourcekey="Label3Resource1"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:TextBox ID="DisplayNameTextBox" runat="server" TabIndex="9" SkinID="CustomWidthTextBox"
                                                            Width="150px" meta:resourcekey="DisplayNameTextBoxResource1"></asp:TextBox>
                                                        <asp:HiddenField ID="UserIDHiddenField" runat="server"></asp:HiddenField>
                                                        <asp:HiddenField ID="UpdateHiddenField" runat="server"></asp:HiddenField>
                                                    </div>
                                                </div>
                                                <div class="cBoth">
                                                </div>
                                                <!-- UserProfile - Electronic Signature Start-->
                                                <div id="Div2" class="outerBox pTop5" runat="server" visible="False">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="ElectronicSignatureLabel" runat="server" Text="Electronic Signature"
                                                            Visible="False" meta:resourcekey="ElectronicSignatureLabelResource1"></asp:Label>
                                                    </div>
                                                    <div id="Div3" class="fLeft pRight5" runat="server" visible="False">
                                                        <asp:Image ID="ElectronicSignatureImage" runat="server" AlternateText="No Signature"
                                                            Height="25px" Width="120px" Visible="False" meta:resourcekey="ElectronicSignatureImageResource1" />
                                                    </div>
                                                </div>
                                                <div class="cBoth">
                                                </div>
                                                <div id="Div4" class="outerBox pTop5" runat="server" visible="False">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="ESuploadLabel" runat="server" Text="Select Signature" Visible="False"
                                                            meta:resourcekey="ESuploadLabelResource1" />
                                                    </div>
                                                    <div id="Div5" class="fLeft pRight5" runat="server" visible="False">
                                                        <asp:FileUpload ID="ESFileBrowser" runat="server" Visible="False" meta:resourcekey="ESFileBrowserResource1" />
                                                        <asp:Button ID="ShowESButton" runat="server" Text="Show" OnClick="ShowESButton_Click"
                                                            TabIndex="11" Visible="False" meta:resourcekey="ShowESButtonResource1" />
                                                        <asp:Label ID="ShowMessageLabel" runat="server" Text="Click on Show button before Save button to save the signature"
                                                            Visible="False" meta:resourcekey="ShowMessageLabelResource1" />
                                                    </div>
                                                </div>
                                                <!-- UserProfile - Electronic Signature End-->
                                                <div class="cBoth">
                                                </div>
                                                <div class="outerBox pTop5">
                                                    <div class="fLeft">
                                                        <asp:CheckBox ID="IsObseleteCheckBox" runat="server" TabIndex="10" meta:resourcekey="IsObseleteCheckBoxResource1">
                                                        </asp:CheckBox>
                                                    </div>
                                                    <div class="fLeft pLeft5 pTop5">
                                                        <asp:Label ID="IsObseleteLabel" runat="server" Text="InActive" meta:resourcekey="IsObseleteLabelResource1"></asp:Label>
                                                    </div>
                                                </div>
                                                <div class="cBoth">
                                                </div>
                                                <div class="outerBox pTop5">
                                                    <div class="fLeft">
                                                        <asp:CheckBox ID="ResetPasswordCheckBox" runat="server" AutoPostBack="True" OnCheckedChanged="ResetPasswordCheckBox_CheckedChanged"
                                                            TabIndex="11" meta:resourcekey="ResetPasswordCheckBoxResource1"></asp:CheckBox>
                                                    </div>
                                                    <div class="fLeft pLeft5 pTop5">
                                                        <asp:Label ID="ResetPasswordLabel" runat="server" Text="Reset Password" meta:resourcekey="ResetPasswordLabelResource1"></asp:Label>
                                                    </div>
                                                </div>
                                                <div class="cBoth">
                                                </div>
                                                <div class="outerBox pTop5">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="NewPasswordLabel" runat="server" Text="New Password" SkinID="MandatoryLabel"
                                                            meta:resourcekey="NewPasswordLabelResource1"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:TextBox ID="NewPasswordTextBox" runat="server" TextMode="Password" MaxLength="20"
                                                            TabIndex="12" SkinID="CustomWidthTextBox" Width="150px"></asp:TextBox>
                                                    </div>
                                                </div>
                                                <div class="cBoth">
                                                </div>
                                                <div class="outerBox pTop5">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="ConfirmPasswordLabel" runat="server" Text="Confirm Password" SkinID="MandatoryLabel"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:TextBox ID="ConfirmPasswordTextBox" runat="server" TextMode="Password" MaxLength="20"
                                                            onpaste="return false;" TabIndex="13" SkinID="CustomWidthTextBox" Width="150px"></asp:TextBox>
                                                    </div>
                                                </div>
                                                <div class="cBoth">
                                                </div>
                                                <div id="ValidUptoDiv" runat="server" visible="false">
                                                    <div class="outerBox pTop5">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="ValidUptoDateLabel" runat="server" Text="Valid Upto Date"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <Date:DatePickerControl DisplayDatePicker="true" ID="ValidUptoDatePicker" runat="server" />
                                                        </div>
                                                    </div>
                                                    <div class="cBoth">
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <!-- Sub Container1 Box Ends -->
                                    </div>
                                </td>
                            </tr>
                        </table>
                        <%--HEDP History Ends Here--%>
                    </div>
                </div>
                <div class="spacer">
                    <img src="../../../Images/spacer.gif" />
                </div>
            </ContentTemplate>
            <Triggers>
                <asp:PostBackTrigger ControlID="ShowESButton" />
            </Triggers>
        </asp:UpdatePanel>
    </div>  
    <%--  <script data-main="../../../JavaScript/rjs/encrypt/create-commonuser-encrypt" src="../../../JavaScript/rjs/require.js"></script> --%>
      <script data-main='<%=ResolveUrl("~/JavaScript/rjs/create-commonuser")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
