<%@ Page Title="Delivery Report" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="DeliveryReport.aspx.cs" Inherits="edicenter.DeliveryReport" %>
<%@ Register Assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI.DataVisualization.Charting" TagPrefix="asp" %>
<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91" Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <br /><br /><br /><br />
   <div class="container-fluid">
        <div class="row row-offcanvas row-offcanvas-right">

        <div class="col-xs-12 col-sm-12">
    <div class="row">

         <div class="panel panel-primary">
      <div class="panel-heading">&nbsp&nbsp Delivery Order Report &nbsp&nbsp&nbsp&nbsp&nbsp[<%= Session["ULogin"].ToString().Trim() %>]</div>
      <div class="panel-body">
        <asp:UpdatePanel runat="server" ID="UpdatePanel2">
            <ContentTemplate>
                &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Label ID="lblHeadOverview" runat="server" Text="Search Overview" Font-Size="Large" Font-Bold="true"></asp:Label>
                <br /><br />
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Label ID="lblFrom2" runat="server" Text="From"></asp:Label>     
                <asp:TextBox ID="txtSearchDate2" runat="server" ReadOnly = "true" Width="100px"></asp:TextBox>
                <asp:ImageButton ID="imgCalendar3" runat="server" Height="20px" ImageUrl="~/Resources/calendar.gif" Width="25px" OnClick="imgCalendar3_Click" />
                <asp:Calendar ID="Calendar3" runat="server" OnSelectionChanged="Calendar3_SelectionChanged" OnVisibleMonthChanged="Calendar3_VisibleMonthChanged"></asp:Calendar>
                &nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Label ID="lblTo2" runat="server" Text="To"></asp:Label>
                <asp:TextBox ID="txtSearchDateLast2" runat="server" ReadOnly = "true" Width="100px"></asp:TextBox>
                <asp:ImageButton ID="imgCalendar4" runat="server" Height="20px" ImageUrl="~/Resources/calendar.gif" Width="25px" OnClick="imgCalendar4_Click" />&nbsp&nbsp&nbsp
                <asp:Calendar ID="Calendar4" runat="server" OnSelectionChanged="Calendar4_SelectionChanged" OnVisibleMonthChanged="Calendar4_VisibleMonthChanged" ></asp:Calendar>&nbsp;&nbsp;&nbsp;
                <asp:Button ID="btnSearchOverview" runat="server" Text="Search" Width="150px" CssClass="btn-primary" Font-Bold="true" OnClick="btnSearchOverview_Click" />&nbsp;&nbsp;&nbsp;
                <asp:Button ID="btnClearOverview" runat="server" Text="Clear" Width="150px" CssClass="btn-primary" Font-Bold="true" OnClick="btnClearOverview_Click" />
                <br /><br />
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Label ID="lblResult1" runat="server" Text="" Font-Bold="true" ></asp:Label>
                <br />
                &nbsp;&nbsp;&nbsp;&nbsp;
                <asp:chart id="Chart1" runat="server" Height="435px" Width="869px">
                <titles><asp:Title ShadowOffset="0" Font="Tahoma, 10pt, style=Bold" Name="Title1" /></titles>
                <legends><asp:Legend Alignment="Center" Docking="Bottom" IsTextAutoFit="False" Name="Default" LegendStyle="Row" /></legends>
                <series><asp:Series Name="Default" /></series>
                <chartareas><asp:ChartArea Name="ChartArea1" BorderWidth="0" /></chartareas>
                </asp:chart>  
                <br />
                &nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Label ID="lblOV_KK" runat="server" Text="Label"></asp:Label>
                <br />
                &nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Label ID="lblOV_KM23" runat="server" Text="Label"></asp:Label>
                <br />
                &nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Label ID="lblOV_MPI" runat="server" Text="Label"></asp:Label>
                <br />
                &nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Label ID="lblOV_RJN" runat="server" Text="Label"></asp:Label>
                <br />
                &nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Label ID="lblOV_Banpho" runat="server" Text="Label"></asp:Label>
                <br />                           
            </ContentTemplate>
        </asp:UpdatePanel>
        <br /> 
        <br />
        <asp:UpdatePanel runat="server" ID="UpdatePanel3">
            <ContentTemplate>
                &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Label ID="lblHeadBy" runat="server" Text="Search by" Font-Size="Large" Font-Bold="true"></asp:Label>
                <br /><br />
                &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Label ID="lblPlant" runat="server" Text="Plant:"></asp:Label>
                <asp:DropDownList ID="ddlPlant" runat="server" Height ="26px" OnSelectedIndexChanged="ddlPlant_SelectedIndexChanged" Width="175px" AutoPostBack="True" ></asp:DropDownList>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Label ID="lblMRP" runat="server" Text="MRP:"></asp:Label>
                <asp:DropDownList ID="ddlMRP" runat="server" Height ="26px" Width="200px" OnSelectedIndexChanged="ddlMRP_SelectedIndexChanged" AutoPostBack="True" ></asp:DropDownList>&nbsp&nbsp&nbsp;&nbsp;&nbsp;
                  <br /><br />
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Label ID="lblVender" runat="server" Text="Vender:"></asp:Label>
                <asp:DropDownList ID="ddlVender" runat="server" Height ="26px" Width="300px" OnSelectedIndexChanged="ddlVender_SelectedIndexChanged" AutoPostBack="True" ></asp:DropDownList>&nbsp&nbsp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Label ID="lblMat" runat="server" Text="Material:"></asp:Label>
                <asp:DropDownList ID="ddlMat" runat="server" Height ="26px" Width="300px" AutoPostBack="False" ></asp:DropDownList>&nbsp&nbsp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            </ContentTemplate>
        </asp:UpdatePanel>   
          <br />
        <asp:UpdatePanel runat="server" ID="UpdatePanel1">
            <ContentTemplate>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Label ID="lblFrom" runat="server" Text="From"></asp:Label>     
                <asp:TextBox ID="txtSearchDate" runat="server" ReadOnly = "true" Width="100px"></asp:TextBox>
                <asp:ImageButton ID="imgCalendar" runat="server" Height="20px" ImageUrl="~/Resources/calendar.gif" Width="25px" OnClick="imgCalendar_Click" />
                <asp:Calendar ID="Calendar" runat="server" OnSelectionChanged="Calendar_SelectionChanged" OnVisibleMonthChanged="Calendar_VisibleMonthChanged"></asp:Calendar>
                &nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Label ID="lblTo" runat="server" Text="To"></asp:Label>
                <asp:TextBox ID="txtSearchDateLast" runat="server" ReadOnly = "true" Width="100px"></asp:TextBox>
                <asp:ImageButton ID="imgCalendar2" runat="server" Height="20px" ImageUrl="~/Resources/calendar.gif" Width="25px" OnClick="imgCalendar2_Click" />&nbsp&nbsp&nbsp
                <asp:Calendar ID="Calendar2" runat="server" OnSelectionChanged="Calendar2_SelectionChanged" OnVisibleMonthChanged="Calendar2_VisibleMonthChanged" ></asp:Calendar>&nbsp;&nbsp;&nbsp;
                <asp:Button ID="btnSearchBy" runat="server" Text="Search" Width="150px" CssClass="btn-primary" Font-Bold="true" OnClick="btnSearchBy_Click" /> 
                <br /><br />
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Label ID="lblResult2" runat="server" Text=""></asp:Label>  
                <br />
                &nbsp;&nbsp;&nbsp;&nbsp;
                <asp:chart id="Chart2" runat="server" Height="435px" Width="869px">
                <titles><asp:Title ShadowOffset="3" Name="Title1" /></titles>
                <legends><asp:Legend Alignment="Center" Docking="Bottom" IsTextAutoFit="False" Name="Default" LegendStyle="Row" /></legends>
                <series><asp:Series Name="Default" /></series>
                <chartareas><asp:ChartArea Name="ChartArea1" BorderWidth="0" /></chartareas>
                </asp:chart>
            </ContentTemplate>
        </asp:UpdatePanel>                    
        <br /><br /><br />
        <rsweb:ReportViewer ID="ReportViewer1" runat="server" Width="1150" Height="625" PageCountMode="Actual" ShowRefreshButton="False">
        </rsweb:ReportViewer>
               <br />
        
      </div>
    </div>
                
      </div>
            </div>

         </div>

       <script src="css/js/jquery.min.js"></script>
       <script src="css/js/bootstrap.min.js"></script>
       <script type="text/javascript">

       </script>
    </div>
</asp:Content>
