<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_ZProjectManagment_DSRMaster, App_Web_st5sblzp" title="DSR" 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 Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>
<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DataPickerControl"
    TagPrefix="HIMS" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="ResonMasterUpdatePanel" runat="server" UpdateMode="Always">
        <ContentTemplate>
            <div id="divContentPage">

                <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="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 class="pull-right mt-27">
                                        <asp:Button ID="AddNewButtonID" runat="server" OnClick="AddNewButton_Click" SkinID="0"
                                            CssClass="fas btn btn-add" Text="&#xf067; Add" />
                                    </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" 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" ID="txtTillDate"
                                                    Visible="True" runat="Server"></HIMS:DataPickerControl>
                                            </div>
                                        </div>
                                        <div class="cBoth">
                                        </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="outerBoxPreBtn 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" CssClass="form-control" runat="server"></asp:DropDownList>
                                            </div>
                                        </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" CssClass="form-control" runat="server"></asp:DropDownList>
                                            </div>
                                        </div>
                                        <div class="cBoth">
                                        </div>
                                        <div class="alignCenter pTop5">
                                            <asp:Button ID="SearchButton" Text="&#xf002; Search" runat="Server" OnClick="SearchButton_Click"
                                                SkinID="0" CssClass="fas btn btn-search" />
                                            <asp:Button ID="ResetButton" runat="server" Text="&#xf0e2; Reset" SkinID="0" CssClass="fas btn btn-reset" OnClick="ResetButton_Click" />
                                        </div>
                                    </asp:Panel>
                                    <div id="Div1" class="himssuHeader7WireBox box-body box-solid gridviewfont" runat="server">
                                        <div id="NewsDetailDiv" visible="false" runat="server">

                                            <div class="himsBoxHeader" id="NewsDiv" visible="false" runat="server">
                                                <div class="leftdiv">
                                                </div>
                                                <div class="himsBoxTitle">
                                                    <div class="fRight" style="margin-top: 0px;">
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="himsBoxContent width-100">
                                                <asp:UpdatePanel ID="MenuPlanDetailUpdatePanel" runat="server" UpdateMode="Always">
                                                    <ContentTemplate>
                                                        <div id="Div5" runat="server" visible="false" class="table-responsive">
                                                            <asp:GridView ID="DSRGridview" runat="server" AutoGenerateColumns="False"
                                                                OnRowDataBound="DSRGridview_RowDataBound" OnPageIndexChanging="DSRGridview_PageIndexChanging" CssClass="table table-striped table-bordered table-hover "
                                                                SkinID="" ShowHeader="true" PagerSettings-Visible="false" DataKeyNames="Id">
                                                                <Columns>
                                                                    <asp:TemplateField ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true"
                                                                        HeaderStyle-HorizontalAlign="Left">
                                                                        <ItemTemplate>
                                                                            <asp:LinkButton ID="EditLinkButton" runat="server" CommandName="Select" OnClick="LinkButton_Click"
                                                                                Text="Select" CausesValidation="false"></asp:LinkButton>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:BoundField DataField="ReportDate" HeaderText="DSR Date" ItemStyle-Width="15%" HeaderStyle-HorizontalAlign="Left" DataFormatString="{0:dd/MM/yyyy}" />
                                                                    <asp:BoundField DataField="Project" HeaderText="Project" ItemStyle-Width="15%" HeaderStyle-HorizontalAlign="Left" />
                                                                    <asp:BoundField DataField="DSRWorkType" HeaderText="Work Type" ItemStyle-Width="20%" HeaderStyle-HorizontalAlign="Left" />
                                                                    <asp:BoundField DataField="Module" HeaderText="Sub Type" ItemStyle-Width="20%" HeaderStyle-HorizontalAlign="Left" />
                                                                    <asp:BoundField DataField="HoursWork" HeaderText="Hours Work" ItemStyle-Width="20%" HeaderStyle-HorizontalAlign="Left" />
                                                                    <%--<asp:BoundField DataField="HoursWorked" HeaderText="HoursWorked" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left" />--%>
                                                                    <%--<asp:BoundField DataField="MinuteWorked" HeaderText="Minute Worked" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left" />--%>
                                                                </Columns>
                                                            </asp:GridView>
                                                        </div>
                                                    </ContentTemplate>
                                                </asp:UpdatePanel>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                    </div>
                    <div class="himssuHeader1WireBox card card-box" id="DetailDiv" runat="server" visible="false">
                        <div class="himsBoxHeader card-head">
                            <div class="leftdiv">
                            </div>
                            <div class="himsBoxTitle">
                                <div class="headerText">
                                    <header>
                                        <i class="fas fa-cog"></i>
                                        <asp:Label ID="NewsDetailLabel" runat="server" Text="Maintenance"></asp:Label>
                                    </header>
                                </div>

                            </div>

                            <div class="pull-right mt-27">
                                <div id="NumberOfRecordDiv" class="formLabel pagination display-flex" runat="server" visible="true">
                                    <asp:LinkButton CssClass="btn btn-default gridviewpagerbuttonpadding" ToolTip="First page"
                                        ID="FirstRecordImageButton" runat="server" OnClick="FirstRecordImageButton_Click">
                                                       <i class="fa fa-fast-backward"></i>
                                    </asp:LinkButton>
                                    <asp:LinkButton CssClass="btn btn-default gridviewpagerbuttonpadding" ToolTip="First page"
                                        ID="PreviousImageButton" runat="server" OnClick="PreviousImageButton_Click">
                                                       <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 CssClass="btn btn-default gridviewpagerbuttonpadding" ToolTip="First page"
                                        ID="NextImageButtom" runat="server" OnClick="NextImageButton_Click">
                                                       <i class="fa fa-play"></i>
                                    </asp:LinkButton>
                                    <asp:LinkButton CssClass="btn btn-default gridviewpagerbuttonpadding" ToolTip="First page"
                                        ID="LastRecordImageButton" runat="server" OnClick="LastRecordImageButton_Click">
                                                       <i class="fa fa-fast-forward"></i>
                                    </asp:LinkButton>
                                    &nbsp;  &nbsp;  &nbsp;                     
                                </div>
                                <asp:Button ID="BackButton" runat="Server" OnClick="BackButton_Click" SkinID="0"
                                    CssClass="btn btn-back fas" Text="&#xf30a; Back" />
                            </div>
                        </div>
                        <div class="himsBoxContent card-body  padd-0">
                            <div class="contentHolder">
                                <div class="tableContainer">
                                    <div class="contentHolder">
                                        <div class="outerBox col-md-12 bg-lghtgrey radiobtn">
                                            <div class="controlLabelWidth">
                                            </div>
                                            <span class="col-md-3">
                                                <asp:RadioButton ID="BulkEntryRadioButton" runat="server" Text="Bulk Entry" GroupName="Type" AutoPostBack="true" OnCheckedChanged="BulkEntryRadioButton_CheckedChanged" Checked="true" />
                                            </span>
                                            <span class="col-md-3">
                                                <asp:RadioButton ID="rbSingleEntry" runat="server" Text="Manual Entry" GroupName="Type" AutoPostBack="true" OnCheckedChanged="rbSingleEntry_CheckedChanged" />
                                            </span>
                                            <span class="col-md-3">
                                                <asp:RadioButton ID="rbbulkcopy" runat="server" Text="Bulk copy" GroupName="Type" AutoPostBack="true" OnCheckedChanged="rbbulkcopy_CheckedChanged" Visible="false" />
                                            </span>
                                        </div>

                                        <asp:Panel ID="PnlBluckEntry" runat="server">
                                            <div class="col-md-3 pTop15 pb5">
                                                <asp:HyperLink ID="HyperLink2" runat="server" class="pointer" NavigateUrl="~/ContentTemplates/Import/DSR.xls"><i class="fas fa-angle-double-right"></i> DSR Template</asp:HyperLink>
                                            </div>
                                            <div class="col-md-12 pTop5 pb5">
                                                <asp:TextBox ID="txtCopied" runat="server" TextMode="MultiLine" AutoPostBack="true"
                                                    OnTextChanged="PasteToGridView" Height="200" placeholder="Copy and Paste data here" Font-Size="30px" />
                                            </div>
                                            <div class="col-md-12 text-center  pTop5 pb15">
                                                <asp:Button ID="btnValidate" Text="&#xf00c; Validate" runat="server" SkinID="0"
                                                    CssClass="fas btn btn-validate" OnClick="btnValidate_Click" meta:resourcekey="AddToListButtonResource1" />
                                            </div>

                                            <div class="col-md-12 table-responsive">

                                                <asp:GridView ID="gdvDSRImportData" runat="server" EmptyDataText="No Records Found" CssClass="table table-bordered table-hover table-striped" Visible="false" OnRowDataBound="gdvDSRImportData_Grid" AutoGenerateColumns="false">
                                                    <Columns>
                                                        <asp:BoundField DataField="DSRDate" HeaderText="Report Date"
                                                            SortExpression="DSRDate" DataFormatString="{0:dd/MM/yyyy}" ItemStyle-Width="5%">
                                                            <HeaderStyle Width="5%" />
                                                        </asp:BoundField>
                                                        <asp:BoundField DataField="Project" HeaderText="Project Name"
                                                            SortExpression="Project" />
                                                        <asp:BoundField DataField="SubType" HeaderText="Sub Type"
                                                            SortExpression="SubType" ItemStyle-Width="10" />
                                                        <asp:BoundField DataField="WorkType" HeaderText="Work Type"
                                                            SortExpression="WorkType" />
                                                        <asp:BoundField DataField="WorkDescription" HeaderText="Work Description"
                                                            SortExpression="WorkDescription" />
                                                        <asp:BoundField DataField="HoursWorked" HeaderText="Hours Worked"
                                                            SortExpression="HoursWorked" DataFormatString="{0:0.##}" />
                                                        <asp:TemplateField HeaderText="Error Message" ShowHeader="True">
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblError" runat="server" CausesValidation="false" CommandName="lblError" />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                    </Columns>
                                                </asp:GridView>
                                            </div>


                                        </asp:Panel>

                                        <asp:Panel ID="pnlSingleEntry" runat="server">
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="lblReportDate" runat="server" Text="DSR Date" SkinID="MandatoryLabel"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <HIMS:DataPickerControl DisplayDatePicker="true" ID="txtreportDate"
                                                        Visible="True" runat="Server"></HIMS:DataPickerControl>
                                                </div>
                                            </div>
                                            <div class="cBoth"></div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="lblProject" runat="server" Text="Project" SkinID="MandatoryLabel"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList ID="ddlProject" runat="server" CssClass="form-control"></asp:DropDownList>
                                                    <asp:HiddenField ID="IdHiddenField" runat="server" />
                                                </div>
                                            </div>

                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="lblModule" runat="server" Text="Sub Type" SkinID="MandatoryLabel"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:TextBox ID="txtModule" runat="server" SkinID="CustomWidthTextBox" MaxLength="90"></asp:TextBox>
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="lblDSRWorkType" runat="server" Text="Work Type" SkinID="MandatoryLabel"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList ID="ddlWorkType" runat="server" CssClass="form-control"></asp:DropDownList>
                                                </div>
                                            </div>
                                            <div class="cBoth"></div>
                                            <div class="outerBox11 pTop5 col-md-8">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="lblWorkDesc" runat="server" Text="Work Description" SkinID="MandatoryLabel"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:TextBox ID="txtWorkDescription" runat="server" SkinID="CustomWidthTextBox" Height="80px" TextMode="MultiLine" MaxLength="500"></asp:TextBox>
                                                </div>
                                            </div>
                                            <div class="cBoth"></div>
                                            <div class="outerBox pTop5  col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="HourLabel" runat="server" Text="Hours" SkinID="MandatoryLabel"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList ID="HoursDropDownList" CssClass="form-control" runat="server"></asp:DropDownList>
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5  col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="MiuntesLabel" runat="server" Text="Miutes" SkinID="MandatoryLabel"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList ID="MinutesDropDownList" CssClass="form-control" runat="server"></asp:DropDownList>
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5" style="display: none">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="lblHoursWorked" runat="server" Text="Hours Worked" SkinID="MandatoryLabel"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:TextBox ID="txtHoursWorked" runat="server" MaxLength="23" onblur="javascript:return fnValidateDecimal(this,16,6)"
                                                        onKeypress="javascript:return MaskDecimal(event,16,6)" onmouseleave="showHideTooltip()"
                                                        onmouseenter="showHideTooltip()" Style="text-align: right;"></asp:TextBox>
                                                </div>
                                            </div>
                                            <div class="cBoth">
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                </div>
                                            </div>
                                        </asp:Panel>
                                        <asp:Panel ID="BulkEntryPanel" runat="server" Visible="false">
                                            <div id="Div2" class="himssuHeader6WireBox col-md-12" runat="server">
                                                <div class="himsBoxHeader card-head inner" id="GridViewPagerDiv" runat="server">
                                                    <div class="leftdiv">
                                                    </div>
                                                    <div class="himsBoxTitle">
                                                        <%--<div class="gridHeaderText fLeft">
                                                                        <header>
                                                                            <asp:Label ID="GridViewLabel" Text="DSR List"
                                                                                runat="server" />
                                                                        </header>
                                                                    </div>--%>
                                                        <div class="fRight display-flex">
                                                            <asp:TextBox ID="ApplyTextBox" runat="server" ClientIDMode="Static" Style="padding-top: 3px" MaxLength="9" onkeypress="return isNumberKey(event);"></asp:TextBox>
                                                            &nbsp;&nbsp;
                                                                        <asp:Button ID="ApplyButton" runat="server" Style="top: 0px; height: 28px" OnClick="ApplyButton_Click" SkinID="0" CssClass="btn btn-apply" Text="Apply" />
                                                        </div>
                                                    </div>

                                                </div>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="LabelDSRDate" runat="server" Text="DSR Date" SkinID="MandatoryLabel"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <HIMS:DataPickerControl DisplayDatePicker="true" ID="txtDSRDate"
                                                            Visible="True" runat="Server"></HIMS:DataPickerControl>
                                                    </div>
                                                </div>
                                                <div class="himsBoxContent table-responsive">
                                                    <asp:GridView ID="BulkGridView" runat="server" AutoGenerateColumns="False"
                                                        EmptyDataText="No Records Found !!" CssClass="table table-striped table-bordered table-hover"
                                                        AllowPaging="false"
                                                        ShowHeader="true" OnRowDataBound="BulkGridView_RowDataBound" DataKeyNames="Work Type,Project,Hours,Minutes" ShowFooter="true">
                                                        <Columns>
                                                           <%-- <asp:TemplateField HeaderText="Dsr Date" HeaderStyle-Width="10%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left" Visible="false">
                                                                <ItemTemplate>
                                                                    <HIMS:DataPickerControl DisplayDatePicker="false" ID="DsrdateBulk" runat="Server" Text='<%# Bind("DsrDate","{0:dd/MM/yyyy}") %>'></HIMS:DataPickerControl>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>--%>
                                                            <asp:TemplateField HeaderText="Project" ItemStyle-Width="15%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                <ItemTemplate>
                                                                    <asp:DropDownList ID="ProjectDrop" runat="server" Width="100%"
                                                                        SkinID="CustomWidthDropDownList" CssClass="form-control">
                                                                    </asp:DropDownList>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="Work Type" ItemStyle-Width="15%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                <ItemTemplate>
                                                                    <asp:DropDownList ID="WorkTypedrop" CssClass="form-control" runat="server" Width="100%"
                                                                        SkinID="CustomWidthDropDownList">
                                                                    </asp:DropDownList>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="Sub Type" ItemStyle-Width="15%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                <ItemTemplate>
                                                                    <asp:TextBox runat="server" ID="SubTypeBulk" MaxLength="100" Text='<%# Eval("Sub Type") %>'></asp:TextBox>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="HoursWorked(HH:MM)" ItemStyle-Width="15%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                <ItemTemplate>
                                                                    <span class="display-flex">

                                                                        <asp:DropDownList ID="ddlHours" CssClass="form-control height-21" runat="server" />
                                                                        :                                                                      
                                                                      <asp:DropDownList ID="ddlMinutes" CssClass="form-control height-21" runat="server" />
                                                                    </span>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <%--    <asp:TemplateField HeaderText="Hours Worked" ItemStyle-Width="5%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                            <ItemTemplate>
                                                                                <asp:TextBox runat="server" ID="HoursWorkedBulk" onblur="javascript:return fnValidateDecimal(this,3,2)"
                                                                                    onKeypress="javascript:return MaskDecimal(event,3,2)" Text='<%# Eval("Hours Worked") %>'></asp:TextBox>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>--%>
                                                            <asp:TemplateField HeaderText="Work Description" ItemStyle-Width="45%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                <ItemTemplate>
                                                                    <asp:TextBox runat="server" ID="WorkeddescBulk" SkinID="CustomWidthTextBox" Width="100%" Height="50px" TextMode="MultiLine" Text='<%# Eval("Work Description") %>'></asp:TextBox>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField ShowHeader="true" HeaderText="Dlt" HeaderStyle-HorizontalAlign="Center">
                                                                <ItemTemplate>
                                                                    <asp:ImageButton SkinID="DeleteImage" ID="DeleteImageButton" runat="server" OnClick="DeleteImageButton_Click"
                                                                        ToolTip="Delete" ImageUrl="../../../Images/icons/icon_delete.gif" />
                                                                </ItemTemplate>
                                                                <ItemStyle HorizontalAlign="Center" Width="5%" />
                                                                <FooterStyle HorizontalAlign="Center" BorderStyle="None" />
                                                                <FooterTemplate>
                                                                    <asp:ImageButton ID="AddrowImageButton" runat="server" OnClick="AddrowImageButton_Click"
                                                                        ToolTip="Add row" ImageUrl="../../Images/icons/expandtab.png" />
                                                                </FooterTemplate>
                                                            </asp:TemplateField>
                                                        </Columns>
                                                        <PagerSettings Visible="False" />
                                                    </asp:GridView>
                                                </div>
                                            </div>
                                        </asp:Panel>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

            </div>
        </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>
    <script type="text/javascript">
        window.onload = function () {
            document.getElementById("<%=txtCopied.ClientID %>").onpaste = function () {
                var txt = this;
                setTimeout(function () {
                    __doPostBack(txt.name, '');
                }, 100);
            }
        };
    </script>
</asp:Content>
