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

<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 width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
        <td width="27%">&nbsp;</td>
        <td width="14%">Select Service Type</td>
        <td width="1%"><strong>:</strong></td>
        <td width="58%">
           <asp:DropDownList ID="ddl_ServiceType" runat="server" width="225px"  AutoPostBack="true" 
                onselectedindexchanged="ddl_ServiceType_SelectedIndexChanged">
           <asp:ListItem>Select</asp:ListItem>       
           <asp:ListItem>Pan Card</asp:ListItem>
           <asp:ListItem>Digital Signature</asp:ListItem>
           <%--<asp:ListItem>Premium Payments</asp:ListItem>--%>
           </asp:DropDownList>	
	    </td>
  </tr>
  <tr>
      <td colspan="4" style="text-align:center; font-size:larger; height:inherit"><asp:Label ID="lblerror" runat="server"></asp:Label></td>
  </tr>
  <tr>
    <td colspan="4" style="padding:10px 0;">
	<!-------------------------------------------------Pan Card Request------------------------------------------------------->
	<div id="PanCard" runat="server">
	<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
	   <tr >
	       <td colspan="11" 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>
       <tr>
       <td>
          <asp:GridView ID="gvPancardReport" runat="server" AutoGenerateColumns="false" ForeColor="#333333" Width="100%" DataKeyNames="RefrenceNo" >
          <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="Request Date & Time" DataField="CreatedDate" />
                 <asp:BoundField HeaderText="User Type" DataField="USERTYPE" />
                 <asp:BoundField HeaderText="User ID" DataField="USERNAME" />
                 <asp:BoundField HeaderText="Service Name" DataField="ServiceType" />
                 <asp:BoundField HeaderText="Txn. Id" DataField="RefrenceNo" />
                 <asp:BoundField HeaderText="Amount" DataField="Amount" />
                 <asp:BoundField HeaderText="Customer Name" DataField="CustomerName" />
                 <asp:BoundField HeaderText="Customer Mobile No." DataField="MobileNo" />                 
                 <asp:BoundField HeaderText="Status" DataField="STATUS" />
                 <asp:BoundField HeaderText="RefrenceNo1" DataField="RefrenceNo" Visible="false" />
                 <asp:BoundField HeaderText="LoverLabel"  DataField="CurrentLevel" Visible="false" />
                 <asp:TemplateField HeaderText="Decline Reason">
                       <ItemTemplate>
                              <asp:TextBox ID="txt_DeclineReasion" MaxLength="40" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.DeclineReason") %>' Width="110px" ></asp:TextBox>
                       </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>        
        </td>
       </tr>
    </table>
	</div>
	<!-------------------------------------------------Digital Signature Div-------------------------------------------------->
	<div id="DigitalSignature" runat="server">
	<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
	    <tr>
	        <td colspan="11" style="text-align:right; padding:10px">
	            <asp:Button ID="btn_DSCRequest_Accept" runat="server" class="button active"  
                    Text="Accept" onclick="btn_DSCRequest_Accept_Click"/>&nbsp;&nbsp;&nbsp;
	            <asp:Button ID="btn_DSCRequest_Decline" runat="server"  class="button active" 
                    Text="Decline" onclick="btn_DSCRequest_Decline_Click" />
	        </td>
	     </tr>	     
         <tr>
             <td>
                 <asp:GridView ID="gvDigitalsignature" runat="server" AutoGenerateColumns="false" ForeColor="#333333" Width="100%" 
                 DataKeyNames="ReferenceNo,CurrentLevel,Amount" >
                 <RowStyle BackColor="#EFF3FB" HorizontalAlign="Center" VerticalAlign="Top" />
                        <Columns>
                            <asp:TemplateField HeaderText="S.No.">
                                <ItemTemplate>
                                    <asp:CheckBox ID="chkboxDSC" runat="server" />
                                    <%#Container.DataItemIndex+1 %>
                                </ItemTemplate>
                            </asp:TemplateField>                          
                            <asp:BoundField DataField="CreatedDate" HeaderText="Request Date & Time" />
                            <asp:BoundField DataField="USERTYPE" HeaderText="User Type" />
                            <asp:BoundField HeaderText="User ID" DataField="USERNAME" />                            
                            <asp:BoundField DataField="SERVICE_NAME" HeaderText="Service Name" />
                            <asp:BoundField DataField="ReferenceNo" HeaderText="Txn. Id" />
                            <asp:BoundField DataField="Amount" HeaderText="Amount" />
                            <asp:BoundField DataField="DSCPeriod" HeaderText="DSC Period" />
                            <asp:BoundField DataField="PanNo" HeaderText="Cust. Pan No." />
                            <asp:BoundField DataField="STATUS" HeaderText="Status" />
                            <asp:TemplateField HeaderText="Decline Reason">
                               <ItemTemplate>
                                      <asp:TextBox ID="txt_DeclineReasionDSC" MaxLength="60" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.DeclineReason") %>' Width="110px" ></asp:TextBox>
                               </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>                
             </td>
         </tr>
      </table>
	</div>	
	<!-------------------------------------------------LIC Div---------------------------------------------------------------->
	<div id="LIC" runat="server" >	
	   <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
	     <tr >
	        <td colspan="11" style="text-align:right; padding:10px">
	            <asp:Button ID="btn_Request_Accept" runat="server" class="button active"  
                    Text="Accept" onclick="btn_Request_Accept_Click"/>&nbsp;&nbsp;&nbsp;
	            <asp:Button ID="btn_RequestLic_Decline" runat="server"  class="button active" 
                    Text="Decline" onclick="btn_RequestLic_Decline_Click" />
	        </td>
	     </tr>
        <tr>
            <td>
            <asp:GridView ID="gvInsurance" runat="server" AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" 
             Width="100%" DataKeyNames="ReferenceNo,CurrentLevel,Amount,CompanyName" >
                      <RowStyle BackColor="#EFF3FB" HorizontalAlign="Center" VerticalAlign="Top" />
                        <Columns>
                            <asp:TemplateField HeaderText="S No">                                
                                <ItemTemplate>
                                <asp:CheckBox ID="chkboxLic" runat="server" />
                                    <%# Container.DataItemIndex+1 %>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="CreatedDate" HeaderText="Request Date & Time" />
                            <asp:BoundField  HeaderText="User Type" DataField="USERTYPE"/>
                            <asp:BoundField HeaderText="User ID" DataField="USERNAME" />
                            <asp:BoundField HeaderText="LIC Operator" DataField="CompanyName" />
                            <asp:BoundField HeaderText="Txn. Id" DataField="ReferenceNo" />                            
                            <asp:BoundField  HeaderText="Amount" DataField="Amount"/>
                            <asp:BoundField  HeaderText="Policy Holder Name" DataField="PolicyHolderName"/>
                            <asp:BoundField HeaderText="Policy No." DataField="PolicyNo" />  
                            <asp:BoundField HeaderText="Status" DataField="Status" /> 
                            <asp:TemplateField HeaderText="Decline Reason">
                               <ItemTemplate>
                                      <asp:TextBox ID="txt_DeclineReasionLIC" MaxLength="40" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.DeclineReason") %>' Width="110px" ></asp:TextBox>
                               </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>
           </td>
        </tr>
      </table>
	</div>
	
		</td>
     </tr>
</table>



<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>

