<%@ Page Title="Download SA Order" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="download_sa_vender.aspx.cs" Inherits="edicenter.download_sa_vender" %>

<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 Download SA Order &nbsp&nbsp&nbsp&nbsp&nbsp[<%= Session["ULogin"].ToString().Trim() %>]</div>
      <div class="panel-body">
        &nbsp;
        <asp:Label ID="lblVenderID" runat="server" Text="Vender:"></asp:Label>
        &nbsp;<asp:TextBox ID="txtVender" runat="server"></asp:TextBox>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:DropDownList ID="ddl1" runat="server" Width="200px" ></asp:DropDownList>&nbsp;
        <asp:Button ID="Button1" runat="server" Text="Download"  Width="100" OnClick="Button1_Click" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Button ID="Button2" runat="server" Text="Download All Vender"  Width="180"  Font-Bold="true" OnClick="Button2_Click"/>
               <br />
&nbsp; 
               <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">
           function view_click(id) {
               //$.post("plan_upload_forecast.aspx", { id: id });
               window.open("plan_upload_item.aspx?DC=" + id + "", "_self");
               //window.open("plan_upload_work.aspx?DC="+id+"",""); 
           }
           function ship_click(id) {
               //$.post("plan_upload_forecast.aspx", { id: id });
               window.open("plan_mrp_label.aspx?DC=" + id + "", "_self");
               //window.open("plan_upload_work.aspx?DC="+id+"",""); 
           }
           function confirm_click(id) {
               var confirm_value = document.createElement("INPUT");
               confirm_value.type = "hidden";
               confirm_value.name = "confirm_value";
               if (confirm("Press Button Yes to Confirm?")) {
                   confirm_value.value = "Yes";
                   <%= Session["ShowPageMGConfirm"] = "1" %>
                   $.post("MP_Confirm_New.aspx", { flag: "a", id: id });
                   window.location.reload();
               }
               else
                   confirm_value.value = "No";
               //$.post("Vender_Confirm.aspx",{A:"B",B:"B"});
           }
       </script>
    </div>
</asp:Content>
