<%@ Page Title="DSR Report" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="DSRReport.aspx.cs" Inherits="NikaiDSR.Executive.DSRReport" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <script type="text/javascript">
        function refreshGrid() {
            $find("<%=Grid.ClientID%>").get_masterTableView().rebind();
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="content_holder">

        <div class="bg_shadow">

            <div class="errMsg" id="errMsg" runat="server" style="display: none;">
                <div class="errMsgText" id="errMsgText" runat="server"></div>
                <br />
            </div>
            <h1>
                <asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:Res, Daily_Sales_Report%>" /></h1>
            <br />
            <br />
            <table border="2" cellspacing="0" cellpadding="0" width="100%" style="border: 1px solid;">
                <tr style="border: 1px solid;">
                    <td style="border: 1px solid;"></td>
                    <td align="center" style="border: 1px solid;"><b>
                        <asp:Literal ID="Literal2" runat="server" Text="<%$ Resources:Res, Collection%>" /></b>
                    </td>
                    <td align="center" style="border: 1px solid;"><b>
                        <asp:Literal ID="Literal3" runat="server" Text="<%$ Resources:Res, LPO%>" /></b>
                    </td>
                    <td align="center" style="border: 1px solid;"><b>
                        <asp:Literal ID="Literal4" runat="server" Text="<%$ Resources:Res, Secondary_Sales%>" /></b>
                    </td>
                </tr>
                <tr style="border: 1px solid;">
                    <td style="border: 1px solid;"><b>
                        <asp:Literal ID="Literal5" runat="server" Text="<%$ Resources:Res, Actual%>" />:</b>
                    </td>
                    <td align="center" style="border: 1px solid;">
                        <asp:Literal ID="lblCollection_Actual" runat="server" />
                    </td>
                    <td align="center" style="border: 1px solid;">
                        <asp:Literal ID="lblLPO_Actual" runat="server" />
                    </td>
                    <td align="center" style="border: 1px solid;">
                        <asp:Literal ID="lblSecondary_Sales_Actual" runat="server" />
                    </td>
                </tr>
                <tr style="border: 1px solid;">
                    <td style="border: 1px solid;">
                        <b>
                            <asp:Literal ID="Literal6" runat="server" Text="<%$ Resources:Res, Target%>" /></b>
                    </td>
                    <td align="center" style="border: 1px solid;">
                        <asp:Literal ID="lblCollecion_Target" runat="server" />
                    </td>
                    <td align="center" style="border: 1px solid;">
                        <asp:Literal ID="lblLPO_Target" runat="server" />
                    </td>
                    <td align="center" style="border: 1px solid;">
                        <asp:Literal ID="lblSecondary_Sales_Target" runat="server" />
                    </td>
                </tr>
            </table>
        </div>
        <br />

        <table border="2" cellspacing="0" cellpadding="0" width="100%">
            <tr>
                <td>
                    <b>
                        <asp:Literal ID="Literal7" runat="server" Text="<%$ Resources:Res, Date%>" /></b>: &nbsp
                       <asp:Literal ID="lblDate" runat="server" />
                </td>
            </tr>
            <tr>
                <td>
                    <br />
                    <telerik:RadGrid ID="Grid" SkinID="ReportGrid" runat="server" OnItemCommand="Radgrid1_ItemCommand" OnNeedDataSource="Grid_NeedDataSource" OnItemDataBound="Grid_ItemDataBound">
                        <MasterTableView>
                            <Columns>
                                <telerik:GridBoundColumn HeaderText="<%$ Resources:Res,Date%>" DataField="Date" UniqueName="Date" DataFormatString="{0:dd/MM/yyyy}" />
                                <telerik:GridBoundColumn HeaderText="<%$ Resources:Res,Customer_Name%>" DataField="Customer_Name" UniqueName="Customer_Name" Display="false" />
                                <telerik:GridBoundColumn HeaderText="<%$ Resources:Res,Customer_Name%>" DataField="Customer_Name_BL" UniqueName="Customer_Name_BL" Display="false" />
                                <telerik:GridBoundColumn HeaderText="<%$ Resources:Res,Contacts%>" DataField="Contact_Name" UniqueName="Contact_Name" Display="false" />
                                <telerik:GridBoundColumn HeaderText="<%$ Resources:Res,Contacts%>" DataField="Contact_Name_BL" UniqueName="Contact_Name_BL" Display="false" />
                                <telerik:GridBoundColumn HeaderText="<%$ Resources:Res,Dept%>" DataField="Department" UniqueName="Department" Display="false" />
                                <telerik:GridBoundColumn HeaderText="<%$ Resources:Res,Dept%>" DataField="Department_BL" UniqueName="Department_BL" Display="false" />
                                <telerik:GridBoundColumn HeaderText="<%$ Resources:Res,Mobile_No%>" DataField="Mobile" UniqueName="Mobile" />
                                <telerik:GridBoundColumn HeaderText="<%$ Resources:Res,Objective_of_Visit%>" DataField="ObjectiveValue" UniqueName="ObjectiveValue" />
                                <telerik:GridBoundColumn HeaderText="<%$ Resources:Res,Time_In%>" DataField="Time_In" UniqueName="Time_In" />
                                <telerik:GridBoundColumn HeaderText="<%$ Resources:Res,Time_Out%>" DataField="Time_Out" UniqueName="Time_Out" />
                                <%--<telerik:GridBoundColumn HeaderText="<%$ Resources:Res, Time_Spent%>" DataField="Time_Spent" UniqueName="Time_Spent" />--%>
                                <telerik:GridBoundColumn HeaderText="<%$ Resources:Res, Time_with_Merchandiser%>" DataField="Time_w_Merchandiser" UniqueName="Time_w_Merchandiser" />
                                <telerik:GridBoundColumn HeaderText="<%$ Resources:Res, Collection%>" DataField="Collection" UniqueName="Collection" />
                                <telerik:GridBoundColumn HeaderText="<%$ Resources:Res, Secondary_Sales%>" DataField="Secondary_Sales" UniqueName="Secondary_Sales" />
                                <telerik:GridBoundColumn HeaderText="<%$ Resources:Res, LPO_Received%>" DataField="Sales_LPO_Received" UniqueName="Sales_LPO_Received" />
                                <telerik:GridBoundColumn HeaderText="<%$ Resources:Res, Discount%>" DataField="Discount" UniqueName="Discount" />
                                <telerik:GridBoundColumn HeaderText="<%$ Resources:Res, Sales_Returns%>" DataField="Sales_Return" UniqueName="Sales_Return" />
                                <telerik:GridBoundColumn HeaderText="<%$ Resources:Res, Remarks%>" DataField="Remarks" UniqueName="Remarks" />
                            </Columns>
                        </MasterTableView>
                    </telerik:RadGrid>

                </td>
            </tr>
        </table>
    </div>
</asp:Content>
