<%@ Page Title="Report" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="ScrapReportFlow.aspx.cs" Inherits="SCRAP_WEB.ScrapReportFlow" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajax" %> 
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <script type="text/javascript">


    $(document).ready(function () {

    });



    function printpdf(ctl) {


        let docno = $("#MainContent_txt_docno").val();

        $('#iframe').attr('src', 'rptScrapReportFlow?docno=' + docno);




    }








 </script>


<asp:Panel ID="Panel1" runat="server" style="overflow:no-display;" Width="100%" Height="600px"> 


        <div id="g1" class="grouplist">

            
             <div class="form-row">
                <div class="frmrow">
                     <span class="sp1">
                    <label>
                    <asp:Label ID="lblPageName" runat="server"  CssClass="frmheader"  Text="Report"  width="120px"></asp:Label>
                   
                    </label>
                    </span>
                    <span class="sp3">
                    <label>
                    <asp:Label ID="lbl_docno" runat="server" CssClass="fontlabel"  ToolTip="codegen"   Text="Doc entry no." width="120px"></asp:Label>
                    <asp:TextBox ID="txt_docno"  runat="server" Width="160px"  ToolTip="codegen"   CssClass="ctlsearchinput" style="text-align:left;"></asp:TextBox> 
                    <ajax:AutoCompleteExtender 
  ID="ac_docno"  
  BehaviorID="bi_docno"  
  runat="server"  
  CompletionSetCount="10"  
  MinimumPrefixLength="1"  
  TargetControlID="txt_docno"  
  ServicePath="~/Autokeyword.asmx" 
  ServiceMethod="GetCodeFilter" 
  ContextKey="DocNo,SCRAP_MASTER,DocNo,'',''" 
  CompletionInterval="100" 
  DelimiterCharacters=";," 
  CompletionListCssClass="completionLists80" 
  CompletionListHighlightedItemCssClass="itemHighlighted"  
  CompletionListItemCssClass="listItem"> 
  </ajax:AutoCompleteExtender>    
                    </label>
                    </span>
                </div>
            </div>

     

       </div>

      <asp:Button ID="btnshow" CssClass="buttonmsg" runat="server" Text="View" OnClientClick="JavaScript:printpdf(this);return false;" />
     <asp:Button ID="btnreload" CssClass="buttonmsg" runat="server" Text="Cancel" OnClientClick="JavaScript:location.reload();" />

    <br />
    <iframe id="iframe" name="myIframe" width="95%" height="500"></iframe>

    </asp:Panel>

</asp:Content>

