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

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

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
<style type="text/css">
input:disabled + input[type=image], input:read-only + a {
pointer-events: visible;
cursor: pointer !important;
}
</style>
    <asp:UpdatePanel ID="OTQueueListingUpdatePanel" runat="server">
        <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="226"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="whiteboxpaddingleft row">
                    <Canteen:CanteenControl ID="CanteenUserControl" runat="server" Visible="true" />
                    <div class="himssuHeader5WireBox  card card-box" id="SearchDiv" runat="server">
                        <%-- <div class="himsBoxHeader note note1 box box-danger">
                                        <asp:Panel ID="Panel1" runat="server">
                                            <div class="leftdiv">
                                            </div>
                                            <div class="himsBoxTitle">
                                                <div class="headerText">
                                                    <asp:Label ID="Label3" runat="server" Text="Search"></asp:Label>
                                                </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>--%>
                        <div class="himsBoxContent card-body">
                            <asp:Panel ID="SearchPanel" runat="Server">
                                <div class="contentHolder">

                                    <div class="outerBox pTop5 col-md-3" id="OrgnaizationDiv" runat="server">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="OrganizationLabel" runat="server" Text="BreakType" CssClass="mandatory"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="BreakTypeDropDownList" SkinID="CustomWidthDropDownList" class="form-control"
                                                onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                            </asp:DropDownList>
                                        </div>
                                    </div>

                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="ForYearLabel" runat="server" Text="Menu Year" SkinID="MandatoryLabel"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="ForYearDropDownList" SkinID="CustomWidthDropDownList"
                                                onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" class="form-control"
                                                AutoPostBack="true" OnSelectedIndexChanged="ForYearDropDownList_OnSelectedIndexChanged">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="ForMonthLabel" runat="server" Text="Menu Month" SkinID="MandatoryLabel"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="ForMonthDropDownList" SkinID="CustomWidthDropDownList"
                                                onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" class="form-control"
                                                AutoPostBack="false">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="ClassLabel" runat="server" Text="Class"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="ClassDropDownList" SkinID="CustomWidthDropDownList"
                                                onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" class="form-control"
                                                AutoPostBack="false">
                                            </asp:DropDownList>
                                        </div>
                                    </div>




                                    <div class="alignCenter pTop5 col-md-12">
                                        <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" class="btn-reset btn fas" SkinID="0" OnClick="ResetButton_Click" />

                                        <asp:Button ID="ExportButton" runat="server" Text="&#xf093; Export" CssClass="fas btn btn-examcommon" SkinID="0" OnClick="ExportButton_Click" />
                                        <a href="javascript:;" onclick="OpenFileUpload();" class="btn btn-browser">
                                            <i class="fas fa-upload"></i>Browse</a>
                                        <asp:FileUpload ID="flUpload" runat="server" onChange="readURL(this);" ClientIDMode="Static" Style="display: none;" />

                                        <asp:Button ID="ImportFromExcelButton" runat="server" Text="&#xf019; Import From Excel"
                                            SkinID="0" CssClass="fas btn btn-examcommon" OnClick="ImportFromExcelButton_Click" />


                                        <asp:Button ID="PrintButton" runat="server" Text="&#xf15b; Print" OnClick="PrintButton_Click" SkinID="0" CssClass="btn btn-print fas" />
                                    </div>

                                    <div id="Div2" class="himssuHeader7WireBox col-md-12 pb5 mt2" runat="server">
                                        <div id="FoodItemMasterListDetailDiv" runat="server" visible="false">

                                            <div class="himsBoxHeader" id="FoodItemMasterListDiv" visible="false" runat="server">
                                                <div class="leftdiv">
                                                </div>
                                                <div class="himsBoxTitle">
                                                    <div class="fRight mt-27" runat="server" visible="false">
                                                        <uc1:GridViewPager ID="CanteenMasterGridViewPager" runat="server" ParentGridView="CanteenMasterGridView" />
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="himsBoxContent ">

                                                <div id="Div5" runat="server" visible="false">
                                                    <div class="table-responsive">
                                                        <asp:GridView ID="FoodItemMasterGridView" runat="server" AutoGenerateColumns="False"
                                                            CssClass="table table-striped table-bordered table-hover" AllowPaging="false" SkinID="" PagerSettings-Visible="false" EmptyDataText="No Records Found !!"
                                                            DataKeyNames="MenuDate" OnRowDataBound="FoodItemMasterGridView_RowDataBound" OnPageIndexChanging="FoodItemMasterGridView_PageIndexChanging">
                                                            <Columns>
                                                                 <asp:TemplateField HeaderText="Class" ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Left"
                                                                    ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="ClassLabel" runat="server" Text='<%# Bind("ClassName") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>

                                                                <asp:TemplateField HeaderText="Menu Date">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="MenuDateLabel" runat="server" Text='<%# Bind("MenuDate","{0:dd/MM/yyyy}") %>'></asp:Label>
                                                                        <%--                                                                                <asp:Label ID="Label1" runat="server" Text='<%# Bind("","{0:dd/MM/yyyy}") %>'></asp:Label>--%>

                                                                        <%--   <asp:TextBox ID="MenDateTextBox" runat="server" Text=''></asp:TextBox>--%>
                                                                    </ItemTemplate>
                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                    <ItemStyle Width="10%" Wrap="True" />
                                                                </asp:TemplateField>
                                                                <%--  <asp:BoundField DataField="Days" HeaderText="Days" ItemStyle-Width="10% " HeaderStyle-HorizontalAlign="Left" />--%>
                                                                <asp:TemplateField HeaderText="Days" ItemStyle-Width="20%" ItemStyle-HorizontalAlign="Left"
                                                                    ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="DaysLabel" runat="server" Text='<%# Bind("Days") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <%-- <asp:TemplateField HeaderText="Title" ItemStyle-Width="35%" ItemStyle-HorizontalAlign="Left"
                                                                    ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:TextBox ID="TitleTextbox" runat="server" Text='<%# Bind("Title") %>'></asp:TextBox>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>--%>

                                                                <asp:TemplateField HeaderText="Title" ItemStyle-Width="40%" ItemStyle-HorizontalAlign="Left"
                                                                    ItemStyle-Wrap="true">
                                                                    <ItemTemplate>
                                                                        <asp:TextBox ID="TitleTextBox" runat="server" SkinID="CustomWidthTextBox" Visible="true" Text='<%# Bind("Title") %>'>
                                                                        </asp:TextBox>
                                                                    </ItemTemplate>
                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                    <ItemStyle HorizontalAlign="Left" Width="40%" />
                                                                </asp:TemplateField>


                                                                <%--<asp:TemplateField HeaderText="Item" ItemStyle-Width="55%" ItemStyle-HorizontalAlign="Left"
                                                                    ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:TextBox ID="ItemTextbox" runat="server" TextMode="MultiLine" Height="80px" Text='<%# Bind("MenuItems") %>' ></asp:TextBox>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>--%>

                                                                <asp:TemplateField HeaderText="Item" ItemStyle-Width="40%" ItemStyle-HorizontalAlign="Left"
                                                                    ItemStyle-Wrap="true">
                                                                    <ItemTemplate>
                                                                        <asp:TextBox ID="ItemTextBox" runat="server" SkinID="CustomWidthTextBox" Visible="true" Height="80px" TextMode="MultiLine" Text='<%# Bind("MenuItems") %>'>
                                                                        </asp:TextBox>
                                                                    </ItemTemplate>
                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                    <ItemStyle HorizontalAlign="Left" Width="40%" />
                                                                </asp:TemplateField>

                                                            </Columns>
                                                        </asp:GridView>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                    </div>
                    <div class="himssuHeader1WireBox card card-box" id="DetailDiv" runat="server" visible="false">
                    </div>


                </div>

            </div>
            </div>
           
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--    <script data-main="../../JavaScript/rjs/builtjs/fooditem-master-built" src="../../JavaScript/rjs/require.js"></script>--%>
    <%--   <script data-main="../../JavaScript/rjs/encrypt/fooditem-master-encrypt" src="../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/fooditem-master")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>

</asp:Content>
