<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_ZProjectManagment_ProjectWiseDSRReport, App_Web_qlqzdrqo" title="Project Wise DSR 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 pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <%--   <asp:Label ID="lblActiveProject" Text="In Active Project" runat="server" meta:resourcekey="ProjectIdSearchLabelResource1"></asp:Label>--%>
                                                            &nbsp;&nbsp;&nbsp;
                                                            <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 col-md-12 pTop5">
                                            <asp:Button ID="SearchButton" Text="&#xf02f; Print" runat="Server" OnClick="SearchButton_Click"
                                                SkinID="0" CssClass="btn-print btn fas" />
                                            <asp:Button ID="btndayWiseReport" runat="Server" OnClick="btndayWiseReport_Click"
                                                Text="&#xf15b; Day Wise Report" CssClass="btn-report btn fas" SkinID="0" />
                                            <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="spacer">
                                                <asp:Image ID="Image3" runat="server" ImageUrl="~/Images/spacer.gif" />
                                            </div>
                                            <div class="himsBoxHeader" id="NewsDiv" visible="false" runat="server">
                                                <div class="leftdiv">
                                                </div>
                                                <div class="himsBoxTitle" style="width: 99%">
                                                    <div align="right" class="fRight" style="margin-top: 0px;">
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="himsBoxContent" id="ProjectWise" runat="server">
                                                <div class="card-head inner">

                                                    <div class="headerText">
                                                        <header>Project Wise Detail Report</header>
                                                    </div>

                                                </div>
                                                <div class="width-100" id="DivEtypeSummary">
                                                    <asp:PlaceHolder ID="PlaceHolder3" runat="server" />
                                                </div>
                                            </div>
                                            <div class="himsBoxContent" id="DayWise" runat="server">
                                                <div class="card-head inner">
                                                    <div class="headerText">
                                                        <header>Day Wise Report</header>
                                                    </div>

                                                </div>
                                                <div class="width-100" id="DivdayWise">
                                                    <asp:PlaceHolder ID="PlaceHolder1" runat="server" />
                                                </div>
                                            </div>

                                            <asp:Panel ID="Panel2" runat="server">
                                            </asp:Panel>
                                        </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);
            }
        }
        function openDiv(obj) {
            var id = $(obj).parent().parent().parent().attr('id').split('_')[1];
            if ($('.Detail_' + id).css('display') == 'none') {
                $('.Detail_' + id).css('display', 'table-row');
                $('.DetailNew_' + id).css('display', 'table-row');
                $('.Detail1_' + id).css('display', 'none');
                $('.DetailNew1_' + id).css('display', 'none');
            }
            else {
                $('.Detail_' + id).css('display', 'none');
                $('.DetailNew_' + id).css('display', 'none');
            }
        }

        function openDivNew(obj) {
            var id = $(obj).parent().parent().parent().attr('id').split('_')[1];
            if ($('.Detail1_' + id).css('display') == 'none') {
                $('.Detail1_' + id).css('display', 'table-row');
                $('.DetailNew1_' + id).css('display', 'table-row');
                $('.Detail_' + id).css('display', 'none');
                $('.DetailNew_' + id).css('display', 'none');
            }
            else {
                $('.Detail1_' + id).css('display', 'none');
                $('.DetailNew1_' + id).css('display', 'none');
            }
        }
    </script>
</asp:Content>
