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

<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">
        <asp:HiddenField ID="hdnDsrHeaderID" runat="server" />

        <div class="bg_shadow">
            <div class="errMsg" id="errMsg" runat="server" style="display: none;">
                <div class="errMsgText" id="errMsgText" runat="server"></div>
                <br />
            </div>
            <table border="2" cellspacing="0" cellpadding="0" width="100%">
                <tr>
                    <td width="350px" colspan="2">
                        <h1>
                            <asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:Res, Daily_Sales_Report_Entry%>" /></h1>
                        <br />
                        <br />
                    </td>
                </tr>
                <tr >
                    <td>
                        <asp:Literal ID="Literal2" runat="server" Text="<%$ Resources:Res, Date%>" />&nbsp;:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                        <asp:Literal ID="lblDate" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <asp:Literal ID="Literal3" runat="server" Text="<%$ Resources:Res, Shift_Name%>" /><span id="label1" class="mand_style">*</span>&nbsp:&nbsp&nbsp&nbsp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp
                         <telerik:RadComboBox ID="cmbShift" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td colspan="4">
                        <asp:Literal ID="Literal4" runat="server" Text="<%$ Resources:Res, Office_Morning_IN%>" /><span id="Span1" class="mand_style">*</span>  :
                        <telerik:RadTimePicker ID="tpMorningIn" runat="server" />&nbsp&nbsp&nbsp
                        <asp:Literal ID="Literal5" runat="server" Text="<%$ Resources:Res, Out%>" /><span id="Span2" class="mand_style">*</span> :
                         <telerik:RadTimePicker ID="tpMorningOut" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td colspan="4" style="float:left;">
                        <asp:Literal ID="Literal6" runat="server" Text="<%$ Resources:Res, Office_Exening_IN%>" /><span id="Span3" class="mand_style">*</span>    :
                         <telerik:RadTimePicker ID="tpEveningIn" runat="server" />&nbsp&nbsp&nbsp
                        <asp:Literal ID="Literal7" runat="server" Text="<%$ Resources:Res, Out%>" /><span id="Span4" class="mand_style">*</span>  :
                         <telerik:RadTimePicker ID="tpEveningOut" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <div style="margin-left: 275px;width: 70px;">
                        <asp:Button ID="btnSaveOfficeTime" runat="server" Text="<%$ Resources:Res, Save%>" OnClick="btnSaveOfficeTime_Click" />
                            </div>
                    </td>
                </tr>
            </table>
        </div>
        <br />

            <table border="2" cellspacing="0" cellpadding="0" width="100%">
                <tr>
                    <td align="right" style="float:right;">
                        <asp:Button ID="btnAddVisit" runat="server" Text="<%$ Resources:Res, Add_Visits%>" Enabled="false" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <br />
                        <telerik:RadGrid ID="Grid" runat="server" OnNeedDataSource="Grid_NeedDataSource" OnItemDataBound="Grid_ItemDataBound">
                            <MasterTableView>
                                <Columns>
                                    <telerik:GridBoundColumn UniqueName="DSR_Id" DataField="DSR_Id" Display="false" />
                                    <telerik:GridBoundColumn UniqueName="Customer_Id" DataField="Customer_Id" Display="false" />
                                    <telerik:GridBoundColumn UniqueName="Contact_Id" DataField="Contact_Id" Display="false" />
                                    <telerik:GridBoundColumn HeaderText="<%$ Resources:Res, Sr_No%>" UniqueName="SrNo" />
                                    <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, Contact_Person%>" DataField="Contact_Name" UniqueName="Contact_Name" Display="false"/>
                                    <telerik:GridBoundColumn HeaderText="<%$ Resources:Res, Contact_Person%>" DataField="Contact_Name_BL" UniqueName="Contact_Name_BL" Display="false"/>
                                    <telerik:GridBoundColumn HeaderText="<%$ Resources:Res, Location%>" DataField="Location_Name" UniqueName="Location_Name" Display="false"/>
                                    <telerik:GridBoundColumn HeaderText="<%$ Resources:Res, Location%>" DataField="Location_Name_BL" UniqueName="Location_Name_BL" Display="false"/>
                                    <telerik:GridTemplateColumn UniqueName="Edit">
                                        <ItemTemplate>
                                            <asp:Button ID="btnEditCustomer" runat="server" Text="<%$ Resources:Res, Edit_Customer%>" />
                                            <asp:Button ID="btnEditContact" runat="server" Text="<%$ Resources:Res, Edit_Contact%>" />
                                            <asp:Button ID="btnEditVisit" runat="server" Text="<%$ Resources:Res, Edit_Visit%>" />
                                        </ItemTemplate>
                                    </telerik:GridTemplateColumn>
                                </Columns>
                            </MasterTableView>
                        </telerik:RadGrid>

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