<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MobileMasterPage.master" autoeventwireup="true" inherits="Pages_Communication_MViewTask, App_Web_yitrogwh" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="AssignTaskListSearchUpdatePanel" runat="server">
        <ContentTemplate>
            <style type="text/css">
              

                  @media(max-width:360px){
                    .resp-gridivew{
                        width:90% !important;
                        overflow-y:auto !important;
                    }
                }
            </style>
            <div id="divContentPage" class="padding-top-header">
                <!-- ContentPlaceHolder Box Starts -->
                 <div class="alert alert-warning" runat="server" id="MessageBox" visible="false">
                    <strong>
                        <asp:Label ID="MessageBoxLabel" runat="server"></asp:Label></strong>
                </div>
                <div style="width: 100%;padding:2px;margin:2px">
                    <table width="100%" border="0" style="vertical-align: top; margin-top: -1px;border-collapse:collapse;" cellpadding="0"
                        cellspacing="0">
                        <tr>
                          <%--<div class="col-md-3">
                        <section class="content-header" style="margin-bottom: 5px; margin-right: 0px; padding-right: 0px !important; padding-left: 0px;">
                             <div style="padding-right:0;">
                                 <asp:Label runat="server" ID="ScreenNamelabel" Text="" Font-Bold="true" CssClass="screennamelabel"/>
                             </div>
                        </section>
                    </div>--%>
                            <td style="vertical-align: top;" width="100%" class="whiteboxpaddingleft">
                                <div class="himssuHeader1WireBox whitebox resp-gridivew">
                              <div class="himsBoxHeader note note1 box box-danger" id="Div4" runat="server" visible="True">
                                       
                                        <div class="himsBoxTitle">
                                            <div class="headerText fLeft">
                              
                                                <asp:Label ID="Label4" Text="View Task" 
                                                    runat="server" />
                                            </div>
                                        </div>
                                        <div class="fRight">
                                            <asp:DropDownList ID="SearchStatusDropDownList" runat="server" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" 
                                            SkinID="CustomWidthDropDownList" Width="154px" AutoPostBack="true" OnSelectedIndexChanged="SearchStatusDropDownList_OnSelectedIndexChanged">
                                                <%--<asp:ListItem Selected="True" Text="View All" Value="2"></asp:ListItem>--%>
                                                <asp:ListItem Text="Pending" Value="0"></asp:ListItem>
                                                <asp:ListItem Text="Completed" Value="1"></asp:ListItem>
                                                    <asp:ListItem Text="Closed" Value="2"></asp:ListItem>
                                                       
                                            </asp:DropDownList>
                                            <asp:Button ID="AssignTaskButton" runat="server" Width="90px" OnClick="AssignTaskButton_Click" Text="AssignTask" SkinID="CustomWidthButton" />
                                        </div>
                                    </div>
                                   
                                    <div class="himsBoxContent">
                                        <asp:Panel ID="DetailPanel" runat="Server">
                                         <div class="contentHolder">

                                        <div class="himssuHeader6WireBox box-body box-solid gridviewfontbigger">
                                           
                                            <div class="himsBoxContent">
                                             
                                                    <asp:GridView runat="server" ID="AssignTaskToMeGridView" Width="100%" AutoGenerateColumns="False"
                                                        EmptyDataText="No records available for the seacrh criteria!" OnRowDataBound="AssignTaskToMeGridView_RowDataBound" CssClass="table table-striped table-bordered"
                                                        AllowPaging="True" PageSize="10" DataKeyNames="Id,IsClosed" ShowHeader="true" meta:resourcekey="AssignTaskToMeGridViewResource1">
                                                        <Columns>
                                                            <asp:BoundField DataField="SourceCode" HeaderText="ID No / Code"  HeaderStyle-HorizontalAlign="Left"/>
                                                            <asp:BoundField DataField="SourceName" HeaderText="Assign By" HeaderStyle-HorizontalAlign="Left"/>
                                                            <asp:BoundField DataField="AssignedDate" HeaderText="Assigned Date"  DataFormatString="{0:MMMM dd,yyyy}" HeaderStyle-HorizontalAlign="Left"/>
                                                            <asp:BoundField DataField="DueDate" HeaderText="Due Date"  DataFormatString="{0:MMMM dd,yyyy}" HeaderStyle-HorizontalAlign="Left"/>
                                                            <asp:BoundField DataField="Remark" HeaderText="Remark"  HeaderStyle-HorizontalAlign="Left"/>
                                                            <asp:TemplateField HeaderText="Status"  HeaderStyle-HorizontalAlign="Center"
                                                                ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                <ItemTemplate>
                                                                    <asp:Label ID="IsCompletedLabel" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"IsCompleted").ToString().ToUpper()=="TRUE"?"Completed":"Pending" %>'></asp:Label>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                           <%-- <asp:TemplateField ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                <ItemTemplate>
                                                                    <asp:LinkButton ID="ViewLinkButton" runat="server" CommandName="Select" OnClick="ViewLinkButton_Click"
                                                                        Text="View" CausesValidation="false"></asp:LinkButton>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>--%>
                                                        </Columns>
                                                        <PagerSettings Visible="False" />
                                                    </asp:GridView>
                                              <%--  </div>--%>
                                            </div>
                                        </div>
                                        <div class="spacer">
                                            <asp:Image ID="Image6" runat="server" ImageUrl="~/Images/spacer.gif" meta:resourcekey="Image6Resource1" />
                                        </div>
                                        <div class="himssuHeader6WireBox box-body box-solid gridviewfontbigger">
                                           
                                            <div class="himsBoxContent">
                                              
                                                    <asp:GridView runat="server" ID="AssignTaskByMeGridView" Width="100%" AutoGenerateColumns="False"  CssClass="table table-striped table-bordered"
                                                        EmptyDataText="No records available for the seacrh criteria!" OnRowDataBound="AssignTaskByMeGridView_RowDataBound"
                                                        AllowPaging="True" PageSize="10" DataKeyNames="Id,IsClosed"
                                                        ShowHeader="true" meta:resourcekey="AssignTaskByMeGridViewResource1">
                                                        <Columns>
                                                            <asp:BoundField DataField="SourceCode" HeaderText="ID No / Code"  HeaderStyle-HorizontalAlign="Left"/>
                                                            <asp:BoundField DataField="SourceName" HeaderText="Assign To" HeaderStyle-HorizontalAlign="Left"/>
                                                            <asp:BoundField DataField="AssignedDate" HeaderText="Assigned Date" DataFormatString="{0:MMMM dd,yyyy}" HeaderStyle-HorizontalAlign="Left"/>
                                                            <asp:BoundField DataField="DueDate" HeaderText="Due Date" DataFormatString="{0:MMMM dd,yyyy}" HeaderStyle-HorizontalAlign="Left"/>
                                                            <asp:BoundField DataField="Remark" HeaderText="Remark"  HeaderStyle-HorizontalAlign="Left"/>
                                                            <asp:TemplateField HeaderText="Status"  HeaderStyle-HorizontalAlign="Center"
                                                                ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                <ItemTemplate>
                                                                    <asp:Label ID="IsCompletedLabel" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"IsCompleted").ToString().ToUpper()=="TRUE"?"Completed":"Pending" %>'></asp:Label>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                <ItemTemplate>
                                                                    <asp:LinkButton ID="EditLinkButton" runat="server" CommandName="Select" OnClick="EditLinkButton_Click"
                                                                        Text="Edit" CausesValidation="false"></asp:LinkButton>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                        </Columns>
                                                        <PagerSettings Visible="False" />
                                                    </asp:GridView>
                                                <%--</div>--%>
                                            </div>
                                        </div>
                                    <div class="spacer">
                                        <asp:Image ID="Image3" runat="server" ImageUrl="~/Images/spacer.gif" meta:resourcekey="Image7Resource1" />
                                    </div>
                                </div>
                                </asp:Panel>
                                </div>
                                </div>
                            </td>
                        </tr>
                    </table>
                    <%--HEDP History Ends Here--%>
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
   <script data-main="../../JavaScript/rjs/encrypt/mempprofile-encrypt" src="../../JavaScript/rjs/require.js"></script>    
</asp:Content>