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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager"
    TagPrefix="uc1" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl"
    TagPrefix="ScreenGroup" %>
<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl"
    TagPrefix="Date" %>
<%@ Register Src="~/UserControls/Common/EmployeeSearch/EmployeeSearch.ascx" TagName="EmployeeSearchControl"
    TagPrefix="hims" %>
<%@ Register Assembly="TimePicker" Namespace="MKB.TimePicker" TagPrefix="timePicker" %>
<%@ Register Src="~/UserControls/Common/CommonSearch/CommonSearch.ascx" TagName="CommonSearchUserControl"
    TagPrefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="ResonMasterUpdatePanel" runat="server" UpdateMode="Always">
        <ContentTemplate>
            <uc2:CommonSearchUserControl ID="CommonSearchControl" Visible="false" runat="server" />
            <hims:EmployeeSearchControl ID="EmployeeSearch" Visible="false" runat="server" />
            <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="213"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="whiteboxpaddingleft row">
                    <div class="himssuHeader5WireBox card card-box" id="SearchDiv" runat="server">
                        <div class="himsBoxHeader card-head">
                            <asp:Panel ID="TopPanel" runat="server">
                                <div class="leftdiv">
                                </div>
                                <div class="himsBoxTitle">
                                    <div class="headerText">
                                        <header>
                                            <i class="fas fa-search"></i>
                                            <asp:Label ID="headerTextLabel" runat="server" Text="Search"></asp:Label>
                                        </header>
                                    </div>
                                    <div class="fRight mt-27">
                                        <asp:Button ID="AddNewButtonID" runat="server" OnClick="AddNewButton_Click" SkinID="0"
                                            class="btn btn-add fas" Text="&#xf067; Add" />
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                        <asp:Panel ID="DetailPanel" runat="Server">
                            <div class="himsBoxContent card-body">
                                <div class="contentHolder">
                                    <asp:Panel ID="PanelSearch" runat="server">
                                        <div class="outerBox pTop5 col-md-3" runat="server" visible="false">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="SearchEmployeeCodeLabel" runat="server" Text="Employee Code"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5 display-flex">
                                                <asp:TextBox ID="SearchEmployeeCodeTextBox" SkinID="CustomWidthTextBox" Width="150px"
                                                    runat="server" MaxLength="100" AutoPostBack="true" OnTextChanged="SearchEmployeeCodeTextBox_TextChanged"> </asp:TextBox>
                                                <asp:ImageButton SkinID="FindImage" ToolTip="Search" ID="SearchEmployeeCodeImageButton"
                                                    runat="server" OnClick="SearchEmployeeCodeImageButton_Click" ImageUrl="../../../../Images/icons/icon_find.gif" />
                                                <asp:HiddenField ID="SearchEmployeeIdHiddenField" runat="server" />
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3" runat="server" visible="false">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="SearchEmployeeNameLabel" runat="server" Text="Employee Name"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:TextBox ID="SearchEmployeeNameTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                    SkinID="CustomWidthTextBox" runat="server" MaxLength="100"> </asp:TextBox>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="SearchEmployeeTypeLabel" Text="Expense Group" runat="server" meta:resourcekey="HeaderAgeLabelResource1"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList ID="SearchEmployeeExpenseTypeDropDownList" runat="server" SkinID="CustomWidthDropDownList"
                                                    CssClass="form-control">
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                        <%--<timePicker:TimeSelector ID="TimeSelector1" runat="server" DisplaySeconds="False"
                                                        SelectedTimeFormat="Twelve" AmPm="AM" Date="" Hour="0" Minute="0" Enabled="false"
                                                        Second="0" meta:resourcekey="ActivityStartTimeSelectorResource1" CssClass="pTop5" />--%>

                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="StatusSearchLabel" runat="server" Text="Status"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList runat="server" ID="SearchStatusDropDownList" SkinID="CustomWidthDropDownList"
                                                    CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="SearchFromDateLabel2" runat="server" Text="From Date"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <Date:DatePickerControl DisplayDatePicker="true" ID="SearchFromDatePickerControl2"
                                                    runat="server" />
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="SearchToDateLabel3" runat="server" Text="To Date"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <Date:DatePickerControl DisplayDatePicker="true" ID="SearchToDatePickerControl3"
                                                    runat="server" />
                                            </div>
                                        </div>

                                        <div class="alignCenter col-md-12 pTop5">
                                            <asp:Button ID="SearchButton" Text="&#xf002; Search" TabIndex="3" runat="Server" OnClick="SearchButton_Click"
                                                SkinID="0" class="btn-search btn fas" />
                                            <asp:Button ID="ResetButton" runat="server" TabIndex="4" Text="&#xf0e2; Clear" OnClick="ResetButton_Click"
                                                SkinID="0" class="btn-reset btn fas" />
                                        </div>

                                    </asp:Panel>
                                    <div id="CsrBenefiteMasterGridDiv" runat="server" visible="false">
                                        <div class="himssuHeader7WireBox col-md-12" id="PatientRelationDiv"
                                            runat="server" style="width: 100%">
                                            <div class="himsBoxHeader card-head inner" id="ListDiv" runat="server" visible="true">
                                                <div class="leftdiv">
                                                </div>
                                                <div class="himsBoxTitle">
                                                    <div class="headerText">
                                                        <div class="fLeft">
                                                        </div>
                                                    </div>
                                                    <div align="right" class="fRight" style="margin-top: 0px;">
                                                    </div>
                                                </div>
                                                <div class="gridHeaderText">
                                                    <header>
                                                        <asp:Label ID="AssignRouteLabel" runat="server" Text="My Expense"></asp:Label>
                                                    </header>
                                                </div>
                                            </div>
                                            <div class="himsBoxContent pTop5 table-responsive">
                                                <asp:UpdatePanel ID="MenuPlanDetailUpdatePanel" runat="server" UpdateMode="Always">
                                                </asp:UpdatePanel>
                                                <asp:GridView ID="MyExpenseListGridView" runat="server" AllowPaging="false" AutoGenerateColumns="False"
                                                    CssClass="table table-striped table-bordered table-hover" DataKeyNames="ExpenseId,StatusId"
                                                    EmptyDataText="No records available for the search criteria" OnPageIndexChanging="MyExpenseListGridView_PageIndexChanging"
                                                    OnRowDataBound="MyExpenseListGridView_RowDataBound" PagerSettings-Visible="false" ShowHeader="True">
                                                    <Columns>
                                                        <asp:TemplateField ItemStyle-HorizontalAlign="Center" ItemStyle-Width="5%" ItemStyle-Wrap="true">
                                                            <ItemTemplate>
                                                                <asp:LinkButton ID="EditLinkButton" runat="server" CausesValidation="false" CommandName="Select" OnClick="LinkButton_Click" Text="Select"></asp:LinkButton>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:BoundField DataField="EmployeeCode" HeaderStyle-HorizontalAlign="Left" HeaderText="Employee Code">
                                                            <ItemStyle Width="10%" />
                                                        </asp:BoundField>
                                                        <asp:BoundField DataField="EmployeeName" HeaderStyle-HorizontalAlign="Left" HeaderText="Employee Name">
                                                            <ItemStyle Width="15%" />
                                                        </asp:BoundField>
                                                        <asp:BoundField DataField="ExpenseDate" DataFormatString="{0:dd/MM/yyyy}" HeaderStyle-HorizontalAlign="Left" HeaderText="Expense Date">
                                                            <ItemStyle Width="10%" />
                                                        </asp:BoundField>
                                                        <asp:BoundField DataField="ExpenseGroupName" HeaderStyle-HorizontalAlign="Left" HeaderText="Expense Type">
                                                            <ItemStyle Width="10%" />
                                                        </asp:BoundField>
                                                       <%-- <asp:BoundField DataField="Amount" HeaderStyle-HorizontalAlign="Left" HeaderText="Amount">
                                                            <ItemStyle Width="10%" />
                                                        </asp:BoundField>--%>
                                                        <asp:TemplateField HeaderStyle-HorizontalAlign="Left" HeaderText="Amount" ItemStyle-Width="10%" ItemStyle-Wrap="true">
                                                            <ItemTemplate>
                                                                <asp:Label ID="AmountLabel" runat="server" Text='<%#Eval("Amount")%>'></asp:Label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:BoundField DataField="Remark" HeaderStyle-HorizontalAlign="Left" HeaderText="Remark">
                                                            <ItemStyle Width="15%" />
                                                        </asp:BoundField>
                                                        <asp:TemplateField HeaderStyle-HorizontalAlign="Left" HeaderText="Status" ItemStyle-Width="5%" ItemStyle-Wrap="true">
                                                            <ItemTemplate>
                                                                <asp:Label ID="StatusLabel" runat="server" Text='<%#Eval("StatusName")%>'></asp:Label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <%--   <asp:BoundField HeaderText="Status" DataField="StatusName" HeaderStyle-HorizontalAlign="Left">
                                                                                <ItemStyle Width="5%" />
                                                                            </asp:BoundField>--%>
                                                    </Columns>
                                                </asp:GridView>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </asp:Panel>
                    </div>
                    <div class="himssuHeader1WireBox card card-box" id="DetailDiv" runat="server" visible="false">
                        <div class="card-head">
                            <div class="himsBoxHeader">
                                <div class="leftdiv">
                                </div>
                                <div class="himsBoxTitle">
                                    <div class="headerText">
                                        <header>
                                            <asp:Label ID="Label1" runat="server" Text="Leave" />
                                        </header>
                                    </div>
                                </div>
                            </div>
                            <div class="fRight mt-27 pagination display-flex">

                                <div id="NumberOfRecordDiv" class="display-flex" runat="server" visible="true">
                                    <asp:LinkButton AlternateText="First page" ToolTip="First page" ID="FirstRecordImageButton"
                                        runat="server" ImageUrl="~/Images/arrowLlast.gif" CommandName="Page" CommandArgument="First"
                                        OnClick="FirstRecordImageButton_Click" CssClass="btn btn-default gridviewpagerbuttonpadding">
                                                                <i class="fa fa-fast-backward"></i>
                                    </asp:LinkButton>
                                    <asp:LinkButton AlternateText="Previous page" ToolTip="Previous page" ID="PreviousImageButton"
                                        runat="server" ImageUrl="~/Images/arrowLeft.gif" CommandName="Page" CommandArgument="Prev"
                                        OnClick="PreviousImageButton_Click" CssClass="btn btn-default gridviewpagerbuttonpadding">
                                                                <i class="fa fa-play fa-rotate-180"></i>
                                    </asp:LinkButton>

                                    <asp:Label ID="LabelPage" runat="server" Text="Record " AssociatedControlID="ReCordNumber" />
                                    &nbsp;
                                    <asp:Label ID="ReCordNumber" Font-Bold="true" SkinID="Dummy" runat="server"></asp:Label>
                                    &nbsp;
                                    <asp:Label ID="ofLabel" Text="of" runat="server" />
                                    &nbsp;
                                    <asp:Label ID="TotalRecord" runat="server" />
                                    &nbsp; 
                                                            <asp:LinkButton AlternateText="Next page" ToolTip="Next page" ID="NextImageButtom"
                                                                runat="server" ImageUrl="~/Images/arrowRight.gif" CommandName="Page" CommandArgument="Next"
                                                                OnClick="NextImageButton_Click" CssClass="btn btn-default gridviewpagerbuttonpadding">
                                                                <i class="fa fa-play"></i>
                                                            </asp:LinkButton>
                                    <asp:LinkButton AlternateText="Last page" ToolTip="Last page" ID="LastRecordImageButton"
                                        runat="server" ImageUrl="~/Images/arrowRLast.gif" CommandName="Page" CommandArgument="Last"
                                        OnClick="LastRecordImageButton_Click" CssClass="btn btn-default gridviewpagerbuttonpadding">
                                                                <i class="fa fa-fast-forward"></i>
                                    </asp:LinkButton>
                                </div>

                                &nbsp; &nbsp;  
                                <asp:Button ID="BackButton" runat="Server" OnClick="BackButton_Click" SkinID="0"
                                    class="btn btn-back fas" Text="&#xf30a;  Back" />

                            </div>
                        </div>
                        <div class="himsBoxContent card-body">
                            <div class="contentHolder">
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="EmployeeCodeLabel" runat="server" Text="Employee Code" SkinID="MandatoryLabel"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5 display-flex">
                                        <asp:TextBox ID="EmployeeCodeTextBox" SkinID="CustomWidthTextBox" Width="150px" runat="server"
                                            MaxLength="100" AutoPostBack="true" OnTextChanged="EmployeeCodeTextBox_TextChanged"> </asp:TextBox>
                                        <%--    <asp:ImageButton SkinID="FindImage" ToolTip="Search" ID="EmployeeCodeImageButton"
                                                        runat="server" OnClick="EmployeeCodeImageButton_Click" ImageUrl="../../../../Images/icons/icon_find.gif" />--%>
                                        <asp:ImageButton SkinID="FindImage" ToolTip="Search" ID="EmployeeCodeImageButton1"
                                            runat="server" OnClick="EmployeeCodeImageButton_Click" ImageUrl="../../../../Images/icons/icon_find.gif" />
                                        <asp:HiddenField ID="ExpenseHiddenField1" runat="server" />
                                        <asp:HiddenField ID="EmployeeIdHiddenField" runat="server" />
                                        <asp:HiddenField ID="StatusIdHiddenField" runat="server" />
                                        <asp:HiddenField ID="MaxRowHiddenField" runat="server" />
                                        <asp:HiddenField ID="UserSourceTypeHiddenField" runat="server" />
                                        <asp:HiddenField ID="UserSourceIdHiddenField" runat="server" />
                                        <asp:HiddenField ID="UploadConfigurationHiddenField" runat="server" />
                                        <asp:HiddenField ID="AttachmentSizeHiddenField" runat="server" />
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="EmployeeNameLabel" runat="server" Text="Employee Name"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="EmployeeNameTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            Enabled="false" SkinID="CustomWidthTextBox" runat="server" MaxLength="100"> </asp:TextBox>
                                    </div>
                                </div>

                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="ExpenseDateLabel" runat="server" Text="Expense Date" SkinID="MandatoryLabel"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <Date:DatePickerControl DisplayDatePicker="true" ID="ExpenseDatePickerControl1" runat="server" />
                                    </div>
                                </div>

                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="AmountLabel" runat="server" Text="Amount" SkinID="MandatoryLabel"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="AmountTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            runat="server" MaxLength="12" SkinID="CustomWidthTextbox" AutoPostBack="true" OnTextChanged="AmountTextBox_TextChanged"></asp:TextBox>

                                    </div>
                                </div>

                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="ExpenseTypeIdLabel2" Text="Expense Group" runat="server" SkinID="MandatoryLabel"
                                            meta:resourcekey="HeaderAgeLabelResource1"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:DropDownList ID="ExpenseTypeIdDropDownList" AutoPostBack="true" runat="server"
                                            SkinID="CustomWidthDropDownList" OnSelectedIndexChanged="ExpenseGroupDropDownList_SelectedIndexChange"
                                            CssClass="form-control">
                                        </asp:DropDownList>
                                    </div>
                                </div>

                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="Remarklable" runat="server" Text="Remark"> </asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="RemarkTextBox" runat="server" SkinID="MultiLineTextbox"
                                            TextMode="MultiLine"></asp:TextBox>

                                    </div>
                                </div>

                                <div class="outerBox pTop5 col-md-3" id="ExpenseStatusReasondiv" runat="server" visible="false">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="ExpenseReasonLabel" runat="server" Text="Reason"> </asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="ExpenseReasonTextBox" runat="server" Enabled="false" SkinID="MultiLineTextbox"
                                            TextMode="MultiLine"></asp:TextBox>

                                    </div>
                                </div>

                                <div class="cBoth">
                                </div>
                                <div class="outerBox pTop15 col-md-3">
                                    <div class="fLeft">
                                        <asp:CheckBox ID="FileAttachmentCheckBox" Text="File Attachment" runat="server" AutoPostBack="True" OnCheckedChanged="FileAttachmentCheckBox_CheckedChanged" />
                                    </div>
                                </div>

                                <div id="FileUploaddiv" visible="False" runat="server">
                                    <div class="cBoth"></div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <a href="javascript:;" id="BrowseUpload" runat="server" onclick="OpenFileUpload();" class="btn btn-browser">
                                                <i class="fa fa-arrow-down"></i>Browse</a>
                                            <asp:FileUpload ID="flUpload" runat="server" onChange="readURL(this);" AllowMultiple="true" ClientIDMode="Static" Style="display: none;" />

                                            <asp:Button runat="server" ID="RefreshButton" Text="&#xf2f9; Refresh" OnClick="RefreshButton_OnClick"
                                                SkinID="0" CssClass="btn btn-refresh fas" />
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">

                                            <asp:Label ID="Label2" runat="server" Text="" Style="padding-left: 10px; font-size: medium;"></asp:Label>

                                        </div>
                                    </div>
                                    <div class="cBoth">
                                    </div>
                                    <div class="col-md-12">
                                        <div class="alert alert-info">
                                            <i class="material-icons pos-rel">info</i> |&nbsp;
                                        <asp:Label ID="Label6" Text="Click on refresh button to view current uploaded Files"
                                            runat="server" />
                                        </div>
                                    </div>
                                    <div class="cBoth">
                                    </div>
                                    <div id="Div11" class="himssuHeader6WireBox col-md-12" runat="server"
                                        style="width: 100%; margin-right: 5px;">
                                        <div id="UploadDiv" runat="server">
                                            <div class="himsBoxHeader" id="HeaderDiv" visible="False" runat="server">
                                                <div class="leftdiv">
                                                </div>
                                                <div class="cBoth"></div>
                                                <div class="himsBoxTitle pTop10" style="width: 99%">
                                                    <div class="headerText">
                                                        <div class="">
                                                            <b>
                                                                <asp:Label ID="Label7" Text="File List" runat="server" /></b>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="himsBoxContent">
                                                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                                    <ContentTemplate>
                                                        <div id="GridViewDiv" runat="server">
                                                            <div id="Div2" runat="server" class="table-responsive">
                                                                <asp:GridView ID="FileGridView" runat="server" Width="100%" CssClass="table table-striped table-bordered table-hover"
                                                                    AutoGenerateColumns="False" ShowHeader="true" PagerSettings-Visible="false" EmptyDataText="No Files Uploaded">
                                                                    <Columns>
                                                                        <asp:TemplateField HeaderText="File Name" ItemStyle-Width="90%" HeaderStyle-HorizontalAlign="Left"
                                                                            ItemStyle-HorizontalAlign="Left" ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <asp:HyperLink ID="FileNameHyperLink" runat="server" Text='<%# Eval("FileName") %>'
                                                                                    NavigateUrl='<%# Eval("FilePath") %>' Target="_blank"></asp:HyperLink>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Delete" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Center"
                                                                            ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <asp:ImageButton ID="DeleteImageButton" runat="server" OnClick="DeleteImageButton_OnClick"
                                                                                    ImageUrl="~/Images/icons/icon_delete.gif" ToolTip="Delete" />
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                    </Columns>
                                                                </asp:GridView>
                                                            </div>
                                                        </div>
                                                    </ContentTemplate>
                                                </asp:UpdatePanel>
                                            </div>
                                        </div>
                                    </div>
                                </div>

                                <div id="ExpenseDetailDiv" class="himssuHeader6WireBox col-md-12"
                                    runat="server" style="width: 100%; margin-right: 5px;" visible="false">
                                      <asp:HiddenField ID="DecimalValueHiddenField" runat="server" />
                                    <div class="himsBoxHeader" id="Div1" visible="False" runat="server">
                                        <div class="leftdiv">
                                        </div>
                                        <div class="himsBoxTitle" style="width: 99%">
                                            <div class="headerText">
                                                <div class="">
                                                    <b>
                                                        <asp:Label ID="ExpenseDetailLabel" Text="Expense Detail" runat="server" /></b>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="himsBoxContent table-responsive">
                                        <asp:GridView ID="ExpenseDetailGridView" runat="server" CssClass="table table-striped table-bordered table-hover" OnRowDataBound="ExpenseDetailGridView_RowDataBound"
                                            AutoGenerateColumns="False" ShowHeader="true" ShowFooter="true" PagerSettings-Visible="false" EmptyDataText="No Records Found !!" DataKeyNames="ExpenseSubGroupId">
                                            <Columns>
                                                <%-- <asp:BoundField HeaderText="Expense Sub Group" DataField="ExpenseSubGroup" HeaderStyle-HorizontalAlign="Left">
                                                                <ItemStyle Width="25%" />
                                                            </asp:BoundField>--%>
                                                <asp:TemplateField HeaderText="Expense Sub Group" ItemStyle-Width="30%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                    <ItemTemplate>
                                                        <asp:Label ID="ExpenseSubGroupLabel" runat="server" Width="100%" MaxLength="100" Text='<%# Bind("ExpenseSubGroup") %>'></asp:Label>
                                                    </ItemTemplate>
                                                    <FooterTemplate>
                                                        <asp:Label ID="TotalLabel" ClientIDMode="Static" runat="server" Text="Total" Font-Bold="true"></asp:Label>
                                                    </FooterTemplate>
                                                </asp:TemplateField>
                                                <%--<asp:BoundField DataField="AmountLimit" HeaderText="Amount Limit" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left" />--%>
                                                <asp:TemplateField HeaderText="Expense Sub Group" ItemStyle-Width="10%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                    <ItemTemplate>
                                                        <asp:Label ID="AmountLimitLabel" runat="server" Width="100%" MaxLength="100" Text='<%# Bind("AmountLimit") %>'></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Amount" ItemStyle-Width="10%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                    <ItemTemplate>
                                                        <asp:TextBox ID="DetailAmountTextBox" runat="server" SkinID="CustomWidthTextBox" MaxLength="100"
                                                             Text='<%# Bind("SubGroupAmount") %>'></asp:TextBox>
                                                    </ItemTemplate>
                                                    <FooterTemplate>
                                                        <asp:Label ID="TotalOfAmountLabel" runat="server" ClientIDMode="Static" Font-Bold="true"></asp:Label>
                                                    </FooterTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Remark" ItemStyle-Width="50%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                    <ItemTemplate>
                                                        <asp:TextBox ID="ExpenseDetailRemarkTextBox" runat="server" Height="40px" SkinID="CustomWidthTextBox" Text='<%# Bind("DetailRemark") %>' TextMode="MultiLine"></asp:TextBox>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                            </Columns>
                                        </asp:GridView>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            </div>
            
        </ContentTemplate>
    </asp:UpdatePanel>

    <%--<script data-main="../../../JavaScript/rjs/builtjs/Expense-master-built" src="../../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/Expense-master")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/Expense_master")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>    
</asp:Content>
