<%@ page title="" language="C#" masterpagefile="~/html/MasterPage.master" autoeventwireup="true" inherits="html_PrincipalMaster, App_Web_chtwzywl" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
 <style type="text/css">
     .style2
        {
            width: 100%;
         
      }
         #scrolledGridView
    {
        overflow-x: scroll; 
        text-align: left;
        width: 400px; /* i.e. too small for all the columns */
    }

    .pinned
    {
        position: fixed; /* i.e. not scrolled */
        background-color: White; /* prevent the scrolled columns showing through */
        z-index: 100; /* keep the pinned on top of the scrollables */
    }
    .scrolled
    {
        position: relative;
        left: 150px; /* i.e. col1 Width + col2 width */
        overflow: hidden;
        white-space: nowrap;
        min-width: 500px; /* set your real column widths here */
    }
    .col1
    {
        left: 0px;
        width: 50px;
    }
    .col2
    {
        left: 50px; /* i.e. col1 Width */
        width: 100px;
    }
      
      
             
    </style>
    
  <link href="../css/ForTextBox.css" rel="stylesheet" type="text/css" />
    <link href="../css/buttoncss.css" type="text/css" rel="Stylesheet"/>
    <link href="../css/Widthset.css" rel="stylesheet" type="text/css" />

<style type="text/css">
 .shadow_five444 
      		 {
        background-color: #FFF0DB;
        -moz-border-radius: 10px;
        -webkit-border-radius: 10px;
        -o-border-radius: 10px;
        -ms-border-radius: 10px;
        border-radius: 10px;
        -moz-box-shadow: 3px 3px 5px #B1A59A;
        -webkit-box-shadow: 3px 3px 5px #B1A59A;
        -o-box-shadow: 3px 3px 5px #B1A59A;
        -ms-box-shadow: 3px 3px 5px #B1A59A;
        box-shadow: 3px 3px 5px #B1A59A;
        padding: 10px;
        margin-right:10px;
        margin-left:3px;
        margin-bottom: 10px;
    }
</style>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">


 <asp:UpdateProgress ID="UpdateProgress2" runat="server" AssociatedUpdatePanelID="UpdatePanel1" 
                           DynamicLayout="true"  >
                          <ProgressTemplate>
                          <div style="width:100%;">
                              <div class="cssLoadingTimer"  >
                              <p> Please wait...</p>
                                  <img id="Img1update" alt="Loading..." src="../images/Regloader.gif" runat="server" style="margin-top:15px;" align="middle"  />
                                  </div>
                                  
                                  </div>
                          </ProgressTemplate>
                      </asp:UpdateProgress>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
<asp:Panel ID="Panel1" runat="server" CssClass="shadow_five444" align="Center">  <%--BorderStyle="Groove"--%>

 <asp:HiddenField ID="hf_edit" runat="server" />
    <table width="100%" >
        <tr>
            <td align="justify" valign="middle">
            
             <div class="p12" style="width:200px;"  align="center" >
      <p style="font-family:Verdana; font-size:14px; margin-top:0px;color:White;font-weight:bold;padding-top:5px;">
  Principal Master
      </p>
           </div>
           
                <%--<asp:Label ID="Label5" runat="server" Text="Principal Master" CssClass="Label" 
                    Height="50px" Width="100%" ForeColor="White" Font-Bold="True" 
                    Font-Size="X-Large"></asp:Label>--%>
                  </td>
        </tr>
      
          <tr align="center">
        <td   >
         <asp:Panel ID="pnlAddNew" runat="server" CssClass="shadow_five2" Width="60%"  > 
             
    <table class="style2" align="center">
    <tr>
    <td><br /></td> <td></td> <td></td> <td></td> <td></td><td></td>
    </tr>
   
      
          
        <tr runat="server" id="custtxt">
            <td class="style26">
                &nbsp;</td>
            <td align="right" class="style3">
                <asp:Label ID="Label19" runat="server" CssClass="lb" Font-Names="Verdana" 
                    Font-Size="14px" Text="Principal/Supplier Name "></asp:Label>
            </td>
            <td class="style28">
            <a style="color:Red;">*</a>
                </td>
            <td align="left" class="style26">
                <asp:TextBox ID="txtprinc" runat="server" Height="20px"
                    Width="150px"></asp:TextBox>
                     <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="txtprinc" ErrorMessage="Enter Principal/Supplier Name" ValidationGroup="1"></asp:RequiredFieldValidator>
            </td>
            <td class="style26">
                &nbsp;</td>
                <td></td>
        </tr>
          
    
        <tr>
            <td class="style41">
            </td>
            <td align="right" class="style3">
                <asp:Label ID="Label8" runat="server" Font-Names="Verdana" Font-Size="14px" CssClass="lb"
                    Text="Address"></asp:Label>
            </td>
            <td class="style43">
            <a style="color:Red;">*</a>
            </td>
            <td align="left" class="style41">
                <asp:TextBox ID="txtAddress" runat="server" Height="20px" Width="266px" 
                    TextMode="MultiLine" ></asp:TextBox>
                     <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" 
                    ControlToValidate="txtAddress" ErrorMessage="Enter Address" ValidationGroup="1"></asp:RequiredFieldValidator>
                </td>
            <td class="style41">
            </td>
            <td></td>
        </tr>
        
  
          
        <tr>
            <td class="style44">
                </td>
            <td align="right" class="style3">
                <asp:Label ID="Label9" runat="server" Font-Names="Verdana" Font-Size="14px" CssClass="lb"
                    Text="Payment Terms"></asp:Label>
            </td>
            <td class="style46">
            <a style="color:Red;">*</a>
                </td>
            <td align="left" class="style44">
              
                    <asp:TextBox ID="txtpterms" runat="server" Height="20px" Width="266px"></asp:TextBox> 
                     <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="txtpterms" ErrorMessage="Enter Payment Terms" ValidationGroup="1"></asp:RequiredFieldValidator>
                    
                    
            </td>
            <td class="style44">
                </td>
                <td></td>
        </tr>
        
         <tr>
            <td class="style29">
            </td>
            <td align="right" class="style3">
                <asp:Label ID="Label3" runat="server" Font-Names="Verdana" Font-Size="14px" CssClass="lb"
                    Text="Delivery Period"></asp:Label>
            </td>
            <td class="style31">
            <a style="color:Red;">*</a>
            </td>
            <td align="left" class="style29">
                <asp:TextBox ID="txtdelivery" runat="server" Height="20px" Width="266px" 
                   ></asp:TextBox>
                 <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                    ControlToValidate="txtdelivery" ErrorMessage="Enter Dilivery Period" ValidationGroup="1"></asp:RequiredFieldValidator>
            </td>
            <td class="style29">
            </td>
            <td></td>
        </tr>
        
 
        <tr>
            <td class="style68">
            </td>
            <td align="right" class="style69">
             <asp:Label ID="lblproduc" runat="server" Font-Names="Verdana" Font-Size="14px" CssClass="lb"
                    Text="Products"></asp:Label>
            </td>
            <td class="style70">
            <a style="color:Red;">*</a>
            </td>
            <td align="left" class="style68">
              <asp:TextBox ID="txtproduct" runat="server" Height="20px" Width="266px"
                   ></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                    ControlToValidate="txtproduct" ErrorMessage="Enter Product" ValidationGroup="1"></asp:RequiredFieldValidator>
            </td>
            <td class="style68">
            </td>
            <td>
            
            </td>
        </tr>
 
          <tr>
        <td></td>
         
         <td align="right" class="style69"><asp:Label ID="Label2" runat="server" Font-Names="Verdana" Font-Size="14px" CssClass="lb"
                    Text="Monitoring Stages"></asp:Label></td>
         
           <td><a style="color:Red;">*</a></td>
            <td align="Left" class="style69"><asp:Label ID="lbldefa" runat="server" Font-Names="Verdana" Font-Size="14px" CssClass="lb"
                    Text="A] Default Stages"></asp:Label>
                    <br />
                        <asp:Label ID="Label61" runat="server" Font-Names="Verdana" Font-Size="13px" 
                                    ForeColor="#007500" 
                                    Text=" Note:These are alresdy included as default.<br/>You can select additional fields from (B) below. "></asp:Label>
                    </td>
            <td></td>
             <td></td>
        </tr>
          <tr>
            <td class="style68">
            </td>
            <td align="right" class="style69">
            
            </td>
            <td class="style70">
            </td>
              <td>
           
            <div >
            
            <ul>
            <li id="1">Customer Name</li>
           <li id="2">Customer Address</li>
           <li id="3">Order No</li>
          <li id="4"> Date</li>
           <li id="5">Date Of order Placed with Principle</li>
           <li id="6">Unit Details</li> 
           <li id="7">Qty</li>
           <li id="8">Payment Term</li>
          <li id="9"> Advance Payment Details</li>
           <li id="11">Delivery Date</li>
          <li id="12"> PBG CG</li>
          <li id="13"> Balance Payment Details</li>
          <li id="19">Remark</li> 
           </ul>
           
            
            
                            </div>
            
            </td>
            
            <td></td>
            
            <td></td>
            
          
        </tr>
           <tr>
        <td></td>
         
          <td></td>
         
           <td></td>
            <td align="Left" class="style69"><asp:Label ID="Label1" runat="server" Font-Names="Verdana" Font-Size="14px" CssClass="lb"
                    Text="B] Select Additional stages"></asp:Label></td>
            <td></td>
             <td></td>
        </tr>
        
        <tr>
        <td></td>
        <td align="right" class="style69"></td>
        <td></td>
          <td align="left" class="regular-checkboxnew" style="height:200px;width:250px;" >
                         <asp:CheckBoxList ID="CheckBoxList1" runat="server" Width="432px">  
                                <asp:ListItem Value="24">Drawings & E & C Allocation </asp:ListItem>  
                                <asp:ListItem Value="23">E & C Activity</asp:ListItem>  
                                <asp:ListItem Value="21">Commissioning Activity</asp:ListItem>  
                                 <asp:ListItem Value="22">PreCommissioning Activity Or Not</asp:ListItem>  
                                <asp:ListItem Value="14">Balance Payment Details 2</asp:ListItem>  
                                 <asp:ListItem Value="20">Manual / Drawings</asp:ListItem>  
                                 <asp:ListItem Value="17">C Form Date</asp:ListItem>
                                  <asp:ListItem Value="18">C Form Recieved Or Not</asp:ListItem>
                                   <asp:ListItem Value="10">OA & PI & Drawings</asp:ListItem>
                                    <asp:ListItem Value="16">Installation Activity</asp:ListItem>  
                                     <asp:ListItem Value="25">IBR Folder & Calculation</asp:ListItem>    
                                      <asp:ListItem Value="26">OA</asp:ListItem>      
                                      <asp:ListItem Value="15">Unit Receipt Date</asp:ListItem> 
                            </asp:CheckBoxList>  
                            
                            
            </td>
        <td></td>
        <td></td>
        
     
        </tr>
        <tr>
        <td colspan="6"></td>
        </tr>
        <tr>
            <td class="style65">
                </td>
            <td align="right" class="style66">
                </td>
            <td class="style67">
                </td>
            <td align="left" class="style65">
                <asp:Button ID="btnSubmit" runat="server" CssClass="myButton"
                    Text="Submit" ValidationGroup="1" 
                    Width="100px" OnClientClick="if (!Page_ClientValidate(1)){ return false; } this.disabled = true; this.value = 'Saving...';" 
                                UseSubmitBehavior="false" onclick="btnSubmit_Click"/>
                       &nbsp;
                        <asp:Button ID="btnshow" runat="server" CssClass="myButton"
                    Text="Show All"  
                    Width="100px" 
                    UseSubmitBehavior="false" onclick="btnshow_Click"/>
               
                   <br />
                <br />
                <asp:Label ID="lblInsert" runat="server" Font-Names="Verdana" Font-Size="14px" 
                    ForeColor="Red"></asp:Label>
                    <div> 
                     <asp:Label ID="lbl_no_search" runat="server" Text="" ForeColor="Red" Font-Bold="false" Font-Names="Verdana" Font-Size="14px"></asp:Label>
        </div>
                    
                    <br /> <b> <a style="color:Red;  padding-right:20px;">* Indicates Compulsory Fields</a></b>
            </td>
            <td class="style65">
                </td>
                <td></td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td align="right" class="style24">
                &nbsp;</td>
            <td class="style25">
                &nbsp;</td>
            <td align="left">
               
                      <asp:Label ID="lblTest" runat="server" Font-Names="Verdana" Font-Size="14px" 
                    ForeColor="Red"></asp:Label>
                   
            </td>
            <td>
                &nbsp;</td>
                <td></td>
        </tr>
        
        </table>
        </asp:Panel>
        </td>
        </tr>
        <tr>
        <td>
        
        </td>
        </tr>
      
     
</table>


 
       
       
</asp:Panel>


  <asp:Panel ID="Panel2" runat="server"  align="Center" ScrollBars="Both" Width="1400px">
      <div  style="width:100%;height:auto; overflow:auto;"  visible="false">
      
     
   <asp:GridView ID="Gr_Principal_Master" runat="server" AutoGenerateColumns="False" 
                            GridLines="Both"  Width="100%"
                           AllowPaging="true" PageSize="30"
                            BackColor="LightGoldenrodYellow" BorderColor="Tan" BorderWidth="1px"
                    CellPadding="2" Font-Names="Book Antiqua" Font-Size="11pt" ForeColor="Black" 
                           PagerStyle-CssClass="paging" CssClass="Type_css" 
        onpageindexchanging="Gr_Principal_Master_PageIndexChanging" 
       
      
      
        onrowdatabound="Gr_Principal_Master_RowDataBound" >
 
                            <Columns>
                                     <asp:TemplateField Visible="false">
                                    <ItemTemplate>
                                        <center>
                                            <asp:Label ID="lblprince" runat="server" Text='<%# Eval("Prince_id")%>' Width="5%"></asp:Label>
                                        </center>
                                    </ItemTemplate>
                                 
                                </asp:TemplateField>
                               
                                <asp:TemplateField HeaderText="Principal Name" HeaderStyle-Font-Size="16px">
                                    <ItemTemplate>
                                     
                                            <asp:Label ID="lblprName" runat="server" Text='<%# Eval("Principal_Name")%>' 
                                                Width="300px"></asp:Label>
                                      
                                    </ItemTemplate>
                                 
                                                         
                                </asp:TemplateField>
                              
                                <asp:TemplateField HeaderText="Address" HeaderStyle-Font-Size="16px">
                                    <ItemTemplate>
                            
                                            <asp:Label ID="lblprAddress" runat="server" Width="300px"
                                                Text='<%# Eval("Princ_Address")%>'></asp:Label>
                                      </ItemTemplate>
                                   
                                </asp:TemplateField>
                                
                                  <asp:TemplateField HeaderText="Products" HeaderStyle-Font-Size="16px">
                                    <ItemTemplate>
                                   
                                            <asp:Label ID="lblprProduct" runat="server" Text='<%# Eval("Products")%>' 
                                                Width="200px"></asp:Label>
                                      
                                    </ItemTemplate>
                                 
                                 
                                </asp:TemplateField>
                                
                                 <asp:TemplateField HeaderText="Payment Term" HeaderStyle-Font-Size="16px">
                                    <ItemTemplate>
                                      <asp:Label ID="lblprPayment" runat="server" Text='<%# Eval("Payment_term")%>' 
                                               Width="200px"></asp:Label>
                                     </ItemTemplate>
                                 
                                                                   
                                </asp:TemplateField>
                                
                                 <asp:TemplateField HeaderText="Dilivery Period" HeaderStyle-Font-Size="16px">
                                    <ItemTemplate>
                                      <asp:Label ID="lblprdilivery" runat="server" Text='<%# Eval("Delivery_period")%>' 
                                               Width="200px"></asp:Label>
                                         
                                    </ItemTemplate>
                                 
                                                           
                                </asp:TemplateField>
                                
                                
                                 <asp:TemplateField HeaderText="Customer Name">
                                    <ItemTemplate>
                                    <asp:Image ID="chekcust" runat="server"  
                                    ImageUrl="~/Images/check-mark1.png" ImageAlign="Middle" />                                   
                                    </ItemTemplate>
                                
                                </asp:TemplateField>
                                
                                  <asp:TemplateField HeaderText="Customer Address">
                                    <ItemTemplate>
                                    
                                                 <asp:Image ID="lblCrprAdd" runat="server"  
                                    ImageUrl="~/Images/check-mark1.png" ImageAlign="Middle" /> 
                                                
                                                                               
                                    </ItemTemplate>
                               
                                </asp:TemplateField>
                                
                                   <asp:TemplateField HeaderText="Order No">
                                    <ItemTemplate>
                                 
                                            
                                                 <asp:Image ID="lblprorderno" runat="server"  
                                    ImageUrl="~/Images/check-mark1.png" ImageAlign="Middle" /> 
                                    
                                    </ItemTemplate>
                                    
                                </asp:TemplateField>
                                
                                 <asp:TemplateField HeaderText="Date">
                                    <ItemTemplate>
                                      
                                           
                                               
                                                <asp:Image ID="lblprdate" runat="server"  
                                    ImageUrl="~/Images/check-mark1.png" ImageAlign="Middle"   /> 
                                       
                                    </ItemTemplate>
                                  
                                </asp:TemplateField>
                                
                                
                                
                                
                                   <asp:TemplateField HeaderText="Date Of order ">
                                    <ItemTemplate>
                                     
                                          
                                               
                                                 <asp:Image ID="lblprdteorder" runat="server"  
                                    ImageUrl="~/Images/check-mark1.png" ImageAlign="Middle"   /> 
                                     </ItemTemplate>
                                  
                                </asp:TemplateField>
                                
                                
                                  <asp:TemplateField HeaderText="Unit Details">
                                    <ItemTemplate>
                                     
                                            
                                               <asp:Image ID="lblprunitdetails" runat="server"  
                                    ImageUrl="~/Images/check-mark1.png" ImageAlign="Middle"   /> 
                                      
                                    </ItemTemplate>
                                   
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Qty" >
                                <ItemTemplate>
                                 
                                               
                                                <asp:Image ID="lblprqty" runat="server"  
                                    ImageUrl="~/Images/check-mark1.png" ImageAlign="Middle"   /> 
                                </ItemTemplate>
                               
                                </asp:TemplateField>
                                
                                
                                 <asp:TemplateField HeaderText="Payment Term">
                                    <ItemTemplate>
                                    
                                    
                                    
                                    
                                     <asp:Image ID="lblprPaymentter" runat="server"  
                                    ImageUrl="~/Images/check-mark1.png" ImageAlign="Middle"   /> 
                                    </ItemTemplate>
                                  
                                    </asp:TemplateField>
                                    
                                    
                                 <asp:TemplateField HeaderText="Advance Payment Details">
                                    <ItemTemplate>
                                    
                                  
                                    <asp:Image ID="lblpradvancepay" runat="server"  
                                    ImageUrl="~/Images/check-mark1.png" ImageAlign="Middle"   /> 
                                    
                                    </ItemTemplate>
                                  
                                    </asp:TemplateField>
                                    
                                      <asp:TemplateField HeaderText="Delivery Date">
                                    <ItemTemplate>
                                    
                                 
                                    
                                      <asp:Image ID="lblprdiliverydate" runat="server"  
                                    ImageUrl="~/Images/check-mark1.png" ImageAlign="Middle"   /> 
                                    </ItemTemplate>
                                  
                                    </asp:TemplateField>
                                    
                                          
                                      <asp:TemplateField HeaderText="PBG CG">
                                    <ItemTemplate>
                                    
                                   
                                     <asp:Image ID="lblprpbgcg" runat="server"  
                                    ImageUrl="~/Images/check-mark1.png" ImageAlign="Middle"   /> 
                                    
                                    </ItemTemplate>
                                  
                                    </asp:TemplateField> 
                                           <asp:TemplateField HeaderText="Balance Payment Details"> 
                                             
                                    <ItemTemplate>
                                    
                                     <asp:Image ID="lblprbalpay" runat="server"  
                                    ImageUrl="~/Images/check-mark1.png" ImageAlign="Middle"   /> 
                                    </ItemTemplate>
                                  
                                    </asp:TemplateField>
                                    
                                           
                                    
                                        <asp:TemplateField HeaderText="E & C Activity">
                                    <ItemTemplate>
                                    
                         
                                 
                                 <asp:Image ID="lblprEC" runat="server"  
                                    ImageUrl="~/Images/check-mark1.png" ImageAlign="Middle" Visible="false"  /> 
                                    </ItemTemplate>
                                  
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Commissi. Activity">
                                    <ItemTemplate>
                                    
                             
                                 
                                  <asp:Image ID="lblprcommiActiv" runat="server"  
                                    ImageUrl="~/Images/check-mark1.png" ImageAlign="Middle" Visible="false"  /> 
                                    </ItemTemplate>
                                  
                                    </asp:TemplateField>
                                      <asp:TemplateField HeaderText="PreCommiss. Activity Or Not">
                                     
                                    
                                    <ItemTemplate>
                                    
                               
                                    <asp:Image ID="lblprcommiss" runat="server"  
                                    ImageUrl="~/Images/check-mark1.png" ImageAlign="Middle" Visible="false"  /> 
                                  
                                    </ItemTemplate>
                                  
                                    </asp:TemplateField>
                                     <asp:TemplateField HeaderText="Balance Payment Details 2">
                                    <ItemTemplate>
                                    
                           
                                   <asp:Image ID="lblprbaltow" runat="server"  
                                    ImageUrl="~/Images/check-mark1.png" ImageAlign="Middle" Visible="false"  /> 
                                    </ItemTemplate>
                                  
                                    </asp:TemplateField>
                                    
                                     <asp:TemplateField HeaderText="Manual / Drawings">
                                    <ItemTemplate>
                                    
                         
                                  <asp:Image ID="lblprManu" runat="server"  
                                    ImageUrl="~/Images/check-mark1.png" ImageAlign="Middle" Visible="false"  /> 
                                
                                    </ItemTemplate>
                                  
                                    </asp:TemplateField>
                                        <asp:TemplateField HeaderText="C Form Date">
                                    <ItemTemplate>
                                    
                               
                                     <asp:Image ID="lblprCForm" runat="server"  
                                    ImageUrl="~/Images/check-mark1.png" ImageAlign="Middle" Visible="false"  /> 
                                    </ItemTemplate>
                                  
                                    </asp:TemplateField>
                                         <asp:TemplateField HeaderText="C Form Recieved Or Not">
                                    <ItemTemplate>
                                    
                             
                                     <asp:Image ID="lblprCFormNot" runat="server"  
                                    ImageUrl="~/Images/check-mark1.png" ImageAlign="Middle" Visible="false"  /> 
                                    </ItemTemplate>
                                  
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="OA & PI & Drawings">
                                    <ItemTemplate>
                                    
                              
                                    <asp:Image ID="lblprOAPI" runat="server"  
                                    ImageUrl="~/Images/check-mark1.png" ImageAlign="Middle" Visible="false"  /> 
                                    </ItemTemplate>
                                  
                                    </asp:TemplateField>
                                     <asp:TemplateField HeaderText="Installation Activity">
                                    <ItemTemplate>
                                    
                       
                                   <asp:Image ID="lblprInstall" runat="server"  
                                    ImageUrl="~/Images/check-mark1.png" ImageAlign="Middle" Visible="false"  /> 
                                    </ItemTemplate>
                                  
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="IBR Folder & Calculation">
                                    <ItemTemplate>
                                    
                              
                                  
                                    <asp:Image ID="lblprIBR" runat="server"  
                                    ImageUrl="~/Images/check-mark1.png" ImageAlign="Middle" Visible="false"  /> 
                                    </ItemTemplate>
                                  
                                    </asp:TemplateField>
                                    
                                     <asp:TemplateField HeaderText="OA">
                                    <ItemTemplate>
                                    
         
                                   <asp:Image ID="lblprOA" runat="server"  
                                    ImageUrl="~/Images/check-mark1.png" ImageAlign="Middle" Visible="false"  /> 
                                    </ItemTemplate>
                                  
                                    </asp:TemplateField>
                                    
                                     <asp:TemplateField HeaderText="Unit Receipt Date">
                                    <ItemTemplate>
                                    
                              
                                     <asp:Image ID="lblprunitrecip" runat="server"  
                                    ImageUrl="~/Images/check-mark1.png" ImageAlign="Middle" Visible="false"  /> 
                                    </ItemTemplate>
                                  
                                    </asp:TemplateField> 
                                    
                                  
                                    
                                    
                                         <asp:TemplateField HeaderText="  Drawings & E & C Allocation">
                                    <ItemTemplate>
                                    
                                 
                                     <asp:Image ID="lblprdraw" runat="server"  
                                    ImageUrl="~/Images/check-mark1.png" ImageAlign="Middle" Visible="false"  /> 
                                    </ItemTemplate>
                                  
                                    </asp:TemplateField> 
                                    
                                         <asp:TemplateField HeaderText="Remark">
                                    <ItemTemplate>
                                   
                                    <asp:Image ID="lblprremark" runat="server"  
                                    ImageUrl="~/Images/check-mark1.png" ImageAlign="Middle"   /> 
                                    </ItemTemplate>
                                  
                                    </asp:TemplateField>
                                    
                                   
                                <asp:TemplateField>
                                    <ItemTemplate>
                                    <center>
                                        <asp:LinkButton ID="lnkRemove" runat="server" 
                                            CommandArgument='<%# Eval("Prince_id")%>' OnClick="DeleteCustomer" 
                                            Text="Delete" OnClientClick="javascript : return confirm('Do you really want to delete?');">
                                        </asp:LinkButton>
                                        </center>
                                    </ItemTemplate>
                                    <ItemStyle Width="5%"></ItemStyle>
                                    </asp:TemplateField>
                                    
                                   
                                <asp:TemplateField>
                                    <ItemTemplate>
                                                             
                                    
                                      <asp:LinkButton ID="Edit" runat="server"  
                             CommandArgument='<%# Eval("Prince_id") %>' Text="Edit"  OnClick="edit_Click"></asp:LinkButton> 
<ItemStyle ForeColor="Blue"></ItemStyle>
</ItemTemplate>
</asp:TemplateField>

                               <%-- </asp:CommandField>--%>
                            </Columns>
                               <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                            <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
                            <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
                            <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                            <AlternatingRowStyle BackColor="White" />
                                <RowStyle BackColor="#ffc9bb" ForeColor="#333333" />
                        </asp:GridView> 
</div>
</asp:Panel>
</ContentTemplate>
</asp:UpdatePanel>
      <script type="text/javascript" language="javascript" >
          var prm = Sys.WebForms.PageRequestManager.getInstance();
          prm.add_endRequest(function() {
              $(document).ready(function() {
                  $("span[id$='lblInsert']").delay(3000).fadeOut(3000, function() {
                      //                         $(this).innerHTML("");
                  });
              });
          });
           </script>                 

</asp:Content>

