<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage/AdminMasterPage.master" AutoEventWireup="true" CodeFile="PendingAccountRequest.aspx.cs" 
Inherits="Admin_PendingAccountRequest"%>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">

    <script type="text/javascript" src="script/ddlevelsmenu.js"></script>
<script type="text/javascript" src="script/func.js"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

<table border="0" cellspacing="0" cellpadding="0">
  <tr>
        <td >&nbsp;</td>
        <td >Select Service Type</td>
        <td ><strong>:</strong></td>
        <td >
           <asp:DropDownList ID="ddl_ServiceType" runat="server" width="225px"  AutoPostBack="true" 
                onselectedindexchanged="ddl_ServiceType_SelectedIndexChanged">
           <asp:ListItem>Select</asp:ListItem>       
           <asp:ListItem>Agent</asp:ListItem>
           </asp:DropDownList>	
	    </td>
  </tr>
  <tr>
      <td style="text-align:center; font-size:larger; height:inherit"><asp:Label ID="lblerror" runat="server"></asp:Label></td>
  </tr>
 
</table>

	<!-------------------------------------------------Pan Card Request------------------------------------------------------->
	<div id="PanCard" runat="server">
	<table  border="0" cellspacing="0" cellpadding="0" align="center">
	   <tr >
           <td style="text-align:right; padding:10px">Select DS Id:</td>
           <td  style="text-align:right; padding:10px"><asp:DropDownList ID="ddlDSId" runat="server"></asp:DropDownList></td>
	       <td  style="text-align:right; padding:10px">
	           <asp:Button ID="btn_PancardRequestAccept" runat="server" class="button active" 
                   Text="Accept" onclick="btn_PancardRequestAccept_Click" />&nbsp;&nbsp;&nbsp;
	           <asp:Button ID="btn_PancardRequestDecline" runat="server" Text="Decline" 
                   class="button active" onclick="btn_PancardRequestDecline_Click" />	       
	       </td>
	   </tr>
    
    </table>
        <div>
          <asp:GridView ID="gvPancardReport" runat="server" AutoGenerateColumns="false" ForeColor="#333333"  DataKeyNames="AgentApplicationDetails" >
          <RowStyle BackColor="#EFF3FB" HorizontalAlign="Center" VerticalAlign="Top" />
              <Columns>
                    <asp:TemplateField HeaderText="S.No.">
                     <ItemTemplate>
                         <%#((GridViewRow)Container).RowIndex+1 %>
                         <asp:CheckBox ID="chkbox" runat="server" />
                     </ItemTemplate>
                 </asp:TemplateField>
                 <asp:BoundField HeaderText="Name" DataField="Name" />
                 <asp:BoundField HeaderText="Address" DataField="Address" />
                 <asp:BoundField HeaderText="PinCode" DataField="PinCode" />
                 <asp:BoundField HeaderText="MobileNo" DataField="MobileNo" />
                 <asp:BoundField HeaderText="District" DataField="District" />
                 <asp:BoundField HeaderText="DOB" DataField="DOB" />
                 <asp:BoundField HeaderText="Div" DataField="Div" />
                 <asp:BoundField HeaderText="SubDiv" DataField="SubDiv" />                 
                 <asp:BoundField HeaderText="PANNo" DataField="PANNo" />
                 <asp:BoundField HeaderText="AadhaarNo" DataField="AadhaarNo" />
                 <asp:BoundField HeaderText="BankName"  DataField="BankName" />
                  <asp:BoundField HeaderText="BankAccountNo" DataField="BankAccountNo" />
                    <asp:BoundField HeaderText="IFSC" DataField="IFSC" />                 
                    <asp:BoundField HeaderText="CreatedOn" DataField="CreatedOn" />
                    <asp:BoundField HeaderText="Board" DataField="Board" />
                 <asp:TemplateField HeaderText="View Pancard">
            <ItemTemplate>
                <asp:Image ID="Image1" runat="server" ImageUrl='<%#"ShowImage.ashx?getID="+Eval("AgentApplicationDetails") %>' Width="200" Height="200"/>
            </ItemTemplate>
        </asp:TemplateField>
                           <asp:TemplateField HeaderText="View Aadhaar">
    <ItemTemplate>
        <asp:Image ID="Image2" runat="server" ImageUrl='<%#"ShowAadhaar.ashx?getID="+Eval("AgentApplicationDetails") %>' Width="200" Height="200"/>
    </ItemTemplate>
</asp:TemplateField>
                           <asp:TemplateField HeaderText="View Application Form">
    <ItemTemplate>
        <asp:Image ID="Image3" runat="server" ImageUrl='<%#"ShowPhoto.ashx?getID="+Eval("AgentApplicationDetails") %>' Width="200" Height="200"/>
    </ItemTemplate>
</asp:TemplateField>
              </Columns>
                <FooterStyle BackColor="#8ca6b3" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#8ca6b3" ForeColor="White" HorizontalAlign="Center" />
                <SelectedRowStyle BackColor="#8ca6b3" Font-Bold="True" ForeColor="#333333" />
                <HeaderStyle BackColor="#8ca6b3" Font-Bold="True" ForeColor="White" />
                <EditRowStyle BackColor="#8ca6b3" />
                <AlternatingRowStyle BackColor="White" />
           </asp:GridView>    
        </div>
	</div>
	

<script type="text/javascript">
    // code for risk dropdown 
    function toggleSubmit(obj) {

        count = 0
        while (document.getElementById("d" + count)) {
            document.getElementById("d" + count).style.display = "none"
            count++
        }
        document.getElementById("d" + obj.selectedIndex).style.display = "block"

    }
    function toggleSubmit1(obj) {

        count = 0
        while (document.getElementById("c" + count)) {
            document.getElementById("c" + count).style.display = "none"
            count++
        }
        document.getElementById("c" + obj.selectedIndex).style.display = "block"

    }
    function toggleSubmit2(obj) {

        count = 0
        while (document.getElementById("b" + count)) {
            document.getElementById("b" + count).style.display = "none"
            count++
        }
        document.getElementById("b" + obj.selectedIndex).style.display = "block"

    }
</script>
</asp:Content>

