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


<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl" TagPrefix="ScreenGroup" %>
<%@ Register Src="~/UserControls/Common/Account/AccountDetailBoxControl.ascx" TagName="AccountControl" TagPrefix="Acnt" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="ResonMasterUpdatePanel" runat="server" UpdateMode="Always">
        <ContentTemplate>
            <div id="divContentPage" class="divcontentpagemargin">
                
                            <div class="dashBoardLeftCont">
                                <div class="himssuHeader3WireBox">
                                    <table>
                                        <tr>
                                            <td>
                                                <div class="himsBoxContent">
                                                    <div class="leftUlMenu">
                                                        <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="148"
                                                            Visible="true" runat="server" />
                                                    </div>
                                                </div>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </div>
                            <div class="whiteboxpaddingleft row">
                                <Acnt:AccountControl ID="AccountUserControl" runat="server" Visible="true" />
                                <div class="himssuHeader5WireBox card card-box" id="SearchDiv" runat="server">
                                    <div class="himsBoxHeader card-head">
                                        <asp:Panel ID="Panel1" runat="server">
                                            <div class="leftdiv">
                                            </div>
                                            <div class="himsBoxTitle">
                                                <div class="headerText">
                                                    <header>
                                                      <i class="fas fa-search"></i>
                                                    <asp:Label ID="Label3" runat="server" Text="Budget"></asp:Label>
                                                        </header>
                                                </div>
                                                <div class="fRight">
                                                </div>
                                            </div>
                                        </asp:Panel>
                                    </div>
                                    <div class="himsBoxContent card-body">
                                        <asp:Panel ID="DetailPanel" runat="Server">
                                            <div class="contentHolder">
                                                <asp:Panel ID="SearchCriteriaPanel" runat="Server">
                                                    <div class="outerBox pTop5 col-md-12">
                                                        <div class="controlLabelWidth">
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:CheckBoxList runat="server" ID="AccountingyearCheckBoxList" SkinID="CustomWidthCheckBoxList"
                                                                onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" DataTextField="Title" DataValueField="Id">
                                                            </asp:CheckBoxList>
                                                        </div>
                                                    </div>
                                                    <div class="cBoth"></div>
                                                  
                                                    <div class="alignCenter pTop5 col-md-12 center">
                                                        <asp:Button ID="SearchButton" Text="&#xf002; Search" runat="Server" OnClick="SearchButton_Click" SkinID="0" class="btn-search btn fas" />
                                                       <asp:Button ID="ResetButton" runat="server" Text="&#xf0e2; Reset" OnClick="ResetButton_Click" SkinID="0" class="btn-reset btn fas"/>
                                                    </div>
                                                    <br />
                                                    <div class="cBoth"></div>
                                                 <asp:HiddenField ID="DecimalValueHiddenField" runat="server" />
                                                </asp:Panel>
                                                <div id="Div1" class="himssuHeader7WireBox col-md-12" runat="server">
                                                    <div id="ReasonMasterDetailDiv">
                                                       
                                                        <div class="himsBoxHeader ">
                                                            <div class="leftdiv">
                                                            </div>
                                                            <div class="himsBoxTitle">
                                                                <div class="headerText fLeft">
                                                                    <asp:Label ID="Label1" runat="server" Text=""></asp:Label>
                                                                </div>
                                                                <div class="headerText fRight" style="vertical-align: top; margin-bottom: 10px;">
                                                                </div>
                                                            </div>
                                                            <div class="gridHeaderText">
                                                           <%-- <header>
                                                            <asp:Label ID="AssignRouteLabel" runat="server" Text="Budget"></asp:Label>
                                                            </header>--%>
                                                            </div>
                                                        </div>
                                                        <div class="himsBoxContent card-body">
                                                            <asp:UpdatePanel ID="MenuPlanDetailUpdatePanel" runat="server">
                                                                <ContentTemplate>
                                                                    <div id="Div5" runat="server" class="table-responsive">
                                                                        <asp:GridView ID="BudgetGridView" ClientIDMode="Static" runat="server" AutoGenerateColumns="true"
                                                                            AllowPaging="false" SkinID="" ShowHeader="True" PagerSettings-Visible="false"
                                                                            DataKeyNames="LedgerId,BudgetId" EmptyDataText="No records Found !!!" CssClass="table table-striped table-bordered table-hover" OnRowDataBound="BudgetGridView_RowDataBound">
                                                                            <Columns>
                                                                                <asp:BoundField DataField="Ladger" HeaderText="Ladger" />
                                                                                <asp:TemplateField HeaderText="BudgetAmount" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="40%">
                                                                                    <ItemTemplate>
                                                                                        <asp:TextBox ID="BudgetAmountTecxtbox"  runat="server" Text='<%#Eval("BudgetAmount") %>' onchange="LimitDecimalPlaces(this);" ></asp:TextBox>
                                                                                    </ItemTemplate>
                                                                                </asp:TemplateField>
                                                                            </Columns>
                                                                        </asp:GridView>
                                                                    </div>
                                                                </ContentTemplate>
                                                            </asp:UpdatePanel>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </asp:Panel>
                                    </div>
                                </div>

                            </div>                       
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--<script data-main="../../../JavaScript/rjs/encrypt/fee-setup-encrypt" src="../../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/fee-setup")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
    <script type="text/javascript">
        function LimitDecimalPlaces(textBox) {
            
            var decimalPlaces = $('#ctl00_CP_DecimalValueHiddenField').val();
          
            var value = parseFloat(textBox.value);

            // If parsing succeeds
            if (!isNaN(value)) {
                // Format the value to display two decimal places
                textBox.value = value.toFixed(decimalPlaces);
            }
        }
    </script>
</asp:Content>
