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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="../../../UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager"
    TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="MainUpdatePanel" runat="server">
        <ContentTemplate>
            <!-- Search CriteriaSub Container2 Box Start -->
            <div class="himssuHeader2WireBox">
                <div class="himsBoxHeader">
                    <asp:Panel ID="TopPanel" runat="server" meta:resourcekey="TopPanelResource1">
                        <div class="leftdiv">
                        </div>
                        <div class="himsBoxTitle">
                            <asp:Image ID="buttonImage" runat="server" class="fLeft" 
                                meta:resourcekey="buttonImageResource1" />
                            <div class="headerText">
                                <asp:Label ID="headerTextLabel" runat="server" 
                                    meta:resourcekey="headerTextLabelResource1"></asp:Label>
                                <cc1:CollapsiblePanelExtender ID="CollapsiblePanelExtender1" runat="server" TargetControlID="DetailPanel"
                                    ExpandControlID="buttonImage" CollapseControlID="buttonImage" TextLabelID="headerTextLabel"
                                    Collapsed="True" CollapsedText="Search" ExpandedText="Search" ImageControlID="buttonImage"
                                    ExpandedImage="~/images/buttonCollapse.gif" 
                                    CollapsedImage="~/images/buttonExpand.gif" Enabled="True" />
                            </div>
                        </div>
                    </asp:Panel>
                </div>
                <asp:Panel ID="DetailPanel" runat="server" 
                    meta:resourcekey="DetailPanelResource1">
                    <div class="himsBoxContent">
                        <div class="contentHolder">
                         
                            <asp:Panel ID="SearchPanel" runat="server" meta:resourcekey="SearchPanelResource1">
                                <div class="outerBox pTop5">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="SearchClinicalUOMCodeLabel" runat="server" Text="Code" meta:resourcekey="SearchClinicalUOMCodeLabelResource1"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="SearchClinicalUOMCodeTextBox" runat="server" SkinID="CustomWidthTextbox"
                                            Width="150px" meta:resourcekey="SearchClinicalUOMCodeTextBoxResource1"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="outerBoxPreBtn pTop5">
                                    <div class="controlLabelWidth">
                                      <asp:HiddenField ID="ClinicalIdHiddenField" runat="server" />
                                        <asp:Label ID="SearchClinicalUOMTitleLabel" runat="server" Text="Name" meta:resourcekey="SearchClinicalUOMTitleLabelResource1"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="SearchClinicalUOMTitleTextBox" runat="server" SkinID="CustomWidthTextbox"
                                            Width="150px" meta:resourcekey="SearchClinicalUOMTitleTextBoxResource1"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="outerBox pTop5">
                                    <div class="searchBoxBtn">
                                        <asp:Button ID="SearchButton" runat="server" OnClick="SearchButton_Click" Text="Search"
                                             SkinID="0" CssClass="PrimaryButton"/>
                                        <asp:Button ID="ResetButton" runat="server" Text="Clear" OnClick="ResetButton_Click"
                                            onblur="fnClearTabIndexChange()" meta:resourcekey="ResetButtonResource1" />
                                    </div>
                                </div>
                                <div class="cBoth">
                                </div>
                            </asp:Panel>
                            <div id="ClinicalUOMGridViewDiv" runat="server" visible="False">
                                <div class="spacer">
                                    <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/spacer.gif" meta:resourcekey="Image1Resource1" />
                                </div>
                                <div class="himssuHeader1WireBox" id="PatientRelationDiv" runat="server" style="width: 100%;
                                    margin-right: 5px;">
                                    <div class="himsBoxHeader" id="GridHeaderDiv" runat="server">
                                        <div class="leftdiv">
                                        </div>
                                        <div class="himsBoxTitle" style="width: 99%">
                                            <div class="headerText">
                                                <div class="fLeft">
                                                    <asp:Label ID="GridViewLabel" Text="Clinical UOM List" runat="server" meta:resourcekey="GridViewLabelResource1" />
                                                </div>
                                            </div>
                                            <div align="right" class="fRight" style="margin-top: -3px;">
                                                <uc1:GridViewPager ID="ClinicalUOMGridView_GridViewPager" runat="server" OnFirstRecordClick="ClinicalUOMGridView_GridViewPager_FirstRecordClick"
                                                    OnLastRecordClick="ClinicalUOMGridView_GridViewPager_LastRecordClick" OnNextRecordClick="ClinicalUOMGridView_GridViewPager_NextRecordClick"
                                                    OnPrevRecordClick="ClinicalUOMGridView_GridViewPager_PrevRecordClick" OnTextBoxValueChange="ClinicalUOMGridView_GridViewPager_TextBoxValueChange" />
                                            </div>
                                        </div>
                                    </div>
                                    <div class="himsBoxContent">
                                        <div id="DivHeader" style="vertical-align: top; width: 100%;">
                                            <asp:Table ID="ClinicalUOMGridViewTable" runat="server" CellPadding="0" CellSpacing="0"
                                                BackColor="#E8E8E8" ForeColor="Black" Width="100%" GridLines="Both" CssClass="GridViewTableRow"
                                                meta:resourcekey="ClinicalUOMGridViewTableResource1">
                                            </asp:Table>
                                        </div>
                                        <div class="himsBoxContentMsg" id="GridContentDiv" runat="server" visible="False">
                                        </div>
                                        <div id="DivData" class="Container" style="vertical-align: top; height: 100px; width: 99.6%;">
                                            <asp:GridView ID="ClinicalUOMGridView" runat="server" AutoGenerateColumns="False"
                                                Width="100%" OnSelectedIndexChanged="ClinicalUOMGridView_SelectedIndexChanged"
                                                DataKeyNames="Id,ClinicalUomTypeId" OnPageIndexChanging="ClinicalUOMGridView_PageIndexChanging"
                                                AllowPaging="True" PageSize="5" ShowHeader="False" meta:resourcekey="ClinicalUOMGridViewResource1">
                                                <Columns>
                                                    <asp:CommandField ShowSelectButton="True" meta:resourcekey="CommandFieldResource1">
                                                        <ItemStyle HorizontalAlign="Center" ForeColor="Blue" Width="5%" />
                                                    </asp:CommandField>
                                                    <asp:BoundField HeaderText="Code" DataField="Code" meta:resourcekey="BoundFieldResource1">
                                                        <ItemStyle Width="5%" />
                                                    </asp:BoundField>
                                                    <asp:BoundField HeaderText="Name" DataField="Title" meta:resourcekey="BoundFieldResource2">
                                                        <ItemStyle Width="5%" />
                                                    </asp:BoundField>
                                                    <asp:BoundField HeaderText="Clinical UOM Type" DataField="ClinicalUomType" meta:resourcekey="BoundFieldResource3">
                                                        <ItemStyle Width="5%" />
                                                    </asp:BoundField>
                                                    <asp:BoundField HeaderText="Display Text" DataField="DisplayText" meta:resourcekey="BoundFieldResource4">
                                                        <ItemStyle Width="5%" />
                                                    </asp:BoundField>
                                                    <asp:BoundField HeaderText="InActive" DataField="ObsoleteDisplay" meta:resourcekey="BoundFieldResource5">
                                                        <ItemStyle HorizontalAlign="Center" Width="5%" />
                                                    </asp:BoundField>
                                                    <asp:BoundField DataField="Id" Visible="False" meta:resourcekey="BoundFieldResource6">
                                                        <ItemStyle Width="0%" />
                                                    </asp:BoundField>
                                                    <asp:BoundField DataField="ClinicalUomTypeId" Visible="False" meta:resourcekey="BoundFieldResource7">
                                                        <ItemStyle Width="0%" />
                                                    </asp:BoundField>
                                                </Columns>
                                                <PagerSettings Visible="False" />
                                            </asp:GridView>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                
            </div>
          
            </asp:Panel>
            <!-- Sub Container2 Box Ends -->
            <div class="spacer">
                <asp:Image ID="spacerImage" runat="server" ImageUrl="~/Images/spacer.gif" 
                    meta:resourcekey="spacerImageResource1" />
            </div>
            <!-- Sub Container1 Box Start -->
            <div class="himssuHeader1WireBox">
                <div class="himsBoxHeader">
                    <div class="leftdiv">
                    </div>
                    <div class="himsBoxTitle">
                        <div class="headerText">
                           <asp:Label ID="ClinicalUOMDetailsLabel" runat="server" Text="Maintenance" meta:resourcekey="ClinicalUOMDetailsLabelResource1"></asp:Label></div>
                    </div>
                </div>
                <div class="himsBoxContent">
                    <div class="contentHolder">
                      <div class="outerBox pTop5">
                            <div class="controlLabelWidth">
                                <asp:Label ID="ClinicalUOMCodeLabel" runat="server" Text="Code" SkinID="MandatoryLabel"
                                    meta:resourcekey="ClinicalUOMCodeLabelResource2"></asp:Label>
                            </div>
                            <div class="fLeft pRight5">
                                <asp:TextBox ID="ClinicalUOMCodeTextBox" runat="server" MaxLength="50" SkinID="CustomWidthTextbox"
                                    Width="150px" OnTextChanged="ClinicalUOMCodeTextBox_TextChanged" onkeypress="return fnKeyPressForCodeField(event)"
                                    onblur="return fnonTextChangeCodeField(this)" AutoPostBack="True" meta:resourcekey="ClinicalUOMCodeTextBoxResource2"></asp:TextBox>
                            </div>
                        </div>
                        <div class="cBoth">
                        </div>
                        <div class="outerBox pTop5">
                            <div class="controlLabelWidth">
                                <asp:Label ID="ClinicalUOMTitleLabel" runat="server" Text="Name" SkinID="MandatoryLabel"
                                    meta:resourcekey="ClinicalUOMTitleLabelResource2"></asp:Label>
                            </div>
                            <div class="fLeft pRight5">
                                <asp:TextBox ID="ClinicalUOMTitleTextBox" runat="server" MaxLength="50" SkinID="CustomWidthTextbox"
                                    Width="150px" meta:resourcekey="ClinicalUOMTitleTextBoxResource2"></asp:TextBox>
                            </div>
                        </div>
                        <div class="cBoth">
                        </div>
                        <div class="outerBox pTop5">
                            <div class="controlLabelWidth">
                                <asp:Label ID="ClinicalUOMTypeLabel" runat="server" Text="Clinical UOM Type" SkinID="MandatoryLabel"
                                    meta:resourcekey="ClinicalUOMTypeLabelResource1"></asp:Label>
                            </div>
                            <div class="fLeft pRight5">
                                <asp:DropDownList ID="ClinicalUOMTypeDropDownList" runat="server" SkinID="CustomWidthTextbox"
                                    Width="155px" meta:resourcekey="ClinicalUOMTypeDropDownListResource1">
                                </asp:DropDownList>
                            </div>
                        </div>
                        <div class="cBoth">
                        </div>
                        <div class="outerBox pTop5">
                            <div class="controlLabelWidth">
                                <asp:Label ID="ClinicalUOMDisplayTextLabel" runat="server" Text="Display Text" SkinID="MandatoryLabel"
                                    meta:resourcekey="ClinicalUOMDisplayTextLabelResource1"></asp:Label>
                            </div>
                            <div class="fLeft pRight5">
                                <asp:TextBox ID="ClinicalUOMDisplayTextTextBox" runat="server" SkinID="CustomWidthTextbox"
                                    Width="150px" MaxLength="50" meta:resourcekey="ClinicalUOMDisplayTextTextBoxResource1"></asp:TextBox>
                            </div>
                        </div>
                        <div class="cBoth">
                        </div>
                        <div class="outerBox pTop5">
                            <div class="controlLabelWidth">
                                <asp:CheckBox ID="ClinicalUOMObsoleteCheckBox" runat="server" meta:resourcekey="ClinicalUOMObsoleteCheckBoxResource1" />
                                <asp:Label ID="ClinicalUOMObsoleteLabel" runat="server" Text="InActive" meta:resourcekey="ClinicalUOMObsoleteLabelResource1"></asp:Label>
                            </div>
                        </div>
                        <div class="cBoth">
                        </div>
                    </div>
                </div>
            </div>
            <!-- Sub Container1 Box Ends -->
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
  <%--  <script data-main="../../../JavaScript/rjs/encrypt/clinical-master-encrypt" src="../../../JavaScript/rjs/require.js"></script>--%>
      <script data-main='<%=ResolveUrl("~/JavaScript/rjs/clinical-master")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
