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

<%@ Register Src="~/UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager" TagPrefix="uc1" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl" TagPrefix="ScreenGroup" %>
<%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>
<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DataPickerControl"
    TagPrefix="HIMS" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajax" %>
<%@ Register Src="~/UserControls/Common/CommonSearch/CommonSearch.ascx" TagName="CommonSearchUserControl" TagPrefix="uc1" %>
<%@ Register Src="~/UserControls/AutoComplete/AutoCompleteControl.ascx" TagName="AutoCompleteControl" TagPrefix="acc" %>


<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="ResonMasterUpdatePanel" runat="server" UpdateMode="Always">
        <ContentTemplate>
            <uc1:CommonSearchUserControl ID="CommonSearchControl" Visible="false" runat="server" />
            <div id="divContentPage" class="divcontentpagemargin">

                <div class="dashBoardLeftCont" valign="top">
                    <div class="himssuHeader3WireBox">
                        <table width="0px" cellpadding="0" cellspacing="0">
                            <tr>
                                <td>
                                    <div class="himsBoxContent">
                                        <div class="leftUlMenu">
                                            <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="243"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="row whiteboxpaddingleft">
                    <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="Search"></asp:Label>
                                        </header>
                                    </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-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="lblFromDate" runat="server" Text="From Date"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <HIMS:DataPickerControl DisplayDatePicker="true" Width="150px" ID="txtFromDate"
                                                    Visible="True" runat="Server"></HIMS:DataPickerControl>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="lblTillDate" runat="server" Text="Till Date"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <HIMS:DataPickerControl DisplayDatePicker="true" Width="150px" ID="txtTillDate"
                                                    Visible="True" runat="Server"></HIMS:DataPickerControl>
                                            </div>
                                        </div>


                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="SearchModuleLabel" Text="Sub Type" runat="server" meta:resourcekey="ModuleSerachLabelResource1"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:TextBox ID="SearchModuleTextBox" runat="server" onmouseleave="showHideTooltip()"
                                                    onmouseenter="showHideTooltip()" meta:resourcekey="CodeSearchTextBoxResource1"
                                                    MaxLength="95"></asp:TextBox>
                                                <asp:HiddenField ID="MaxRowHiddenField" runat="server" />
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="SearchProjectLabel" Text="Project" runat="server" meta:resourcekey="ProjectIdSearchLabelResource1"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList ID="ddlSearchProject" runat="server" CssClass="form-control"></asp:DropDownList>
                                            </div>
                                        </div>
                                        <div class="cBoth">
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="SearchWorkTypeLabel" Text="Work Type" runat="server" meta:resourcekey="SearchWorkTypeLabel1"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList ID="ddlSearchworktype" runat="server" CssClass="form-control"></asp:DropDownList>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop15 col-md-3">
                                            <div class="controlLabelWidth">
                                                <%--  <asp:Label ID="lblActiveProject" Text="In Active Project" runat="server" meta:resourcekey="ProjectIdSearchLabelResource1"></asp:Label>--%>

                                                <asp:CheckBox ID="chkActive" runat="server" Text="In Active Project" />
                                            </div>
                                            <div class="fLeft pRight5">
                                            </div>
                                        </div>

                                        <div class="outerBox pTop5 col-md-3" id="UserDiv" runat="server">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="UserNameLabel" runat="server" Text="User Name"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <div class="fLeft pRight5 display-flex">
                                                    <acc:AutoCompleteControl ID="UserNameTextBox" runat="server" MinimumPrefixLength="2"
                                                        TabIndex="5" Width="150px" ValidateOnTextChanged="false" ContextKey="Security.User"
                                                        DisplayLoadingStatus="true" FirstRowSelected="false" AutoPostBack="true" Enabled="false" />
                                                    <asp:ImageButton ID="UserNameSearchButton" runat="server" SkinID="FindImage" ToolTip="User Name"
                                                        ImageUrl="~/Images/icons/icon_find.gif" TabIndex="6" OnClick="UserNameSearchButton_OnClick" meta:resourcekey="UserNameSearchButtonResource1" />
                                                </div>
                                            </div>
                                        </div>
                                        <div class="cBoth">
                                        </div>
                                        <div class="alignCenter pTop5">
                                            <asp:Button ID="SearchButton" runat="Server" OnClick="SearchButton_Click"
                                                SkinID="0" CssClass="btn-search btn fas" Text="&#xf002; Search" />
                                            <asp:Button ID="ResetButton" runat="server" Text="&#xf0e2; Reset" CssClass="btn-reset btn fas" SkinID="0" OnClick="ResetButton_Click" />
                                        </div>
                                    </asp:Panel>
                                    <div id="Div1" class="himssuHeader7WireBox col-md-12" runat="server">
                                        <div id="NewsDetailDiv" visible="false" runat="server">
                                            <div class="himsBoxContent">
                                                <asp:UpdatePanel ID="MenuPlanDetailUpdatePanel" runat="server" UpdateMode="Always">
                                                    <ContentTemplate>
                                                        <div id="Div5" runat="server" visible="false">
                                                            <div id="Div4" runat="server" class="table-responsive">
                                                                <asp:GridView ID="DSRGridview" runat="server" Width="100%" AutoGenerateColumns="False"
                                                                    OnRowDataBound="DSRGridview_RowDataBound" OnPageIndexChanging="DSRGridview_PageIndexChanging" CssClass="table table-striped table-bordered table-hover"
                                                                    SkinID="" ShowHeader="true" PagerSettings-Visible="false" DataKeyNames="Id" OnSorting="DSRGridview_Sorting" AllowSorting="true">
                                                                    <Columns>
                                                                        <asp:BoundField DataField="DisplayTitle" HeaderText="User Name" ItemStyle-Width="15%" HeaderStyle-HorizontalAlign="Left" SortExpression="DisplayTitle" />
                                                                        <asp:BoundField DataField="ReportDate" HeaderText="DSR Date" ItemStyle-Width="8%" HeaderStyle-HorizontalAlign="Left" DataFormatString="{0:dd/MM/yyyy}" SortExpression="ReportDate" />
                                                                        <asp:BoundField DataField="Project" HeaderText="Project" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left" SortExpression="Project" />
                                                                        <asp:BoundField DataField="DSRWorkType" HeaderText="Work Type" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left" SortExpression="DSRWorkType" />
                                                                        <asp:TemplateField HeaderText="Sub Type" ItemStyle-Width="10%" ItemStyle-Wrap="true"
                                                                            HeaderStyle-HorizontalAlign="Left" SortExpression="Module">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="ModuleLabel" runat="server" Text='<%#Eval("Module")%>' Width="200px" ></asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Work Description" ItemStyle-Width="20%" ItemStyle-Wrap="true"
                                                                            HeaderStyle-HorizontalAlign="Left" SortExpression="WorkDescription">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="WorkDescriptionLabel" runat="server" Text='<%#Eval("WorkDescription")%>' Width="300px" ></asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <%--<asp:BoundField DataField="Module" HeaderText="Sub Type" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left" SortExpression="Module" />--%>
                                                                        <%--<asp:BoundField DataField="WorkDescription" HeaderText="Work Description" ItemStyle-Width="20%" HeaderStyle-HorizontalAlign="Left" SortExpression="WorkDescription" />--%>
                                                                        <%--<asp:BoundField DataField="HoursWorked" HeaderText="Hours Worked" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left" SortExpression="HoursWorked" />--%>
                                                                        <asp:BoundField DataField="HoursWork" HeaderText="Hours Work" ItemStyle-Width="12%" HeaderStyle-HorizontalAlign="Left" SortExpression="HoursWorked" />
                                                                        <%--<asp:BoundField DataField="MinuteWork" HeaderText="Minutes Work" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left" SortExpression="HoursWorked" />--%>
                                                                    </Columns>
                                                                </asp:GridView>
                                                            </div>
                                                        </div>
                                                    </ContentTemplate>
                                                </asp:UpdatePanel>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                    </div>
                </div>

            </div>
            <asp:HiddenField ID="hfuserid" runat="server" />
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--<script data-main="../../JavaScript/rjs/customer-master" src="../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/customer-master")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
    <script type="text/javascript" language="javascript">
        Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
        function EndRequestHandler(sender, args) {
            if (args.get_error() != undefined) {
                args.set_errorHandled(true);
            }
        }
    </script>
</asp:Content>
