<%@ Page Language="C#" MasterPageFile="~/masterpage/MasterPage.master" AutoEventWireup="true"
    CodeFile="FundRequestSelf.aspx.cs" Inherits="FundRequestSelf" Title="eGen Service" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
<script type="text/javascript" language="javascript">
    function DisableRightClick(event) {

        //For mouse right click

        if (event.button == 2) {

            alert("Right Clicking not allowed!");

        }

    }

    function DisableCtrlKey(e) {

        var code = (document.all) ? event.keyCode : e.which;

        var message = "Ctrl key functionality is disabled!";

        // look for CTRL key press

        if (parseInt(code) == 17) {

            //alert(message);

            window.event.returnValue = false;

        }

    }

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

        <script type="text/javascript" src="../Javascript/datetimepicker_css.js"></script>
        <script type="text/javascript" src="../Javascript/datetimepicker.js"></script>
        <script language="JavaScript" type="text/JavaScript" src="../JavaScript/CFunc.js"></script>

        <script src="../javascript/scriptvalidation.js" type="text/javascript"></script>
        <script type="text/javascript" language="javascript">

         function showtr(selectedItemValue)
         {
            
            if (selectedItemValue == 'Select') {
                document.getElementById("Cash_div").style.display = 'none';
                document.getElementById("Cheque_dd_div").style.display = 'none';
                document.getElementById("Remark_div").style.display = 'none';
                document.getElementById("NEFT_div").style.display = 'none';
                document.getElementById("DivAccountNo").style.display = 'none';
            }


            if (selectedItemValue == 'Cheque/DD') {
                document.getElementById("Cash_div").style.display = 'none';
                document.getElementById("Cheque_dd_div").style.display = 'block';
                document.getElementById("Remark_div").style.display = 'block';
                document.getElementById("NEFT_div").style.display = 'none';
                document.getElementById("DivAccountNo").style.display = 'none';
            }

            if (selectedItemValue == 'E-Transfer') {
                document.getElementById("Cash_div").style.display = 'none';
                document.getElementById("Cheque_dd_div").style.display = 'none';
                document.getElementById("Remark_div").style.display = 'block';
                document.getElementById("NEFT_div").style.display = 'block';
                document.getElementById("DivAccountNo").style.display = 'block';
            }

            if (selectedItemValue == 'Cash') {
                document.getElementById("Cash_div").style.display = 'block';
                document.getElementById("Cheque_dd_div").style.display = 'none';
                document.getElementById("Remark_div").style.display = 'block';
                document.getElementById("NEFT_div").style.display = 'none';
                document.getElementById("DivAccountNo").style.display = 'block';
            }
            if (selectedItemValue == 'NEFT') {
                document.getElementById("Cash_div").style.display = 'none';
                document.getElementById("Cheque_dd_div").style.display = 'none';
                document.getElementById("Remark_div").style.display = 'block';
                document.getElementById("NEFT_div").style.display = 'block';
                document.getElementById("DivAccountNo").style.display = 'block';
            }
        }
      </script>
    <div id="middle">
        <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" runat="server" id="tblFundRequestSelf">
            <tr>
                <td colspan="4" class="hdr">
                    <a href="FundRequestSelf.aspx" class="active">Fund Request - Self</a><span style="padding-right: 30px;">&nbsp;</span>
                    <span style="padding-left: 50px;">&nbsp;</span><a href=""></a>
                </td>
            </tr>
            <tr>
                <td style="height: 30px ; text-align:center; " colspan="4">
                    <asp:Label ID="lblMessage" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td width="12%">
                </td>
                <td width="33%">
                    Account ID
                </td>
                <td width="3%">
                    <strong>:</strong>
                </td>
                <td width="52%">
                    <asp:Label ID="lblAgentID" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    Amount
                </td>
                <td>
                    <strong>:</strong>
                </td>
                <td>
                    <asp:TextBox ID="txtAmount" runat="server" onkeypress="return digitonly(this,event)"
                        MaxLength="6" oncopy="return false"  onpaste="return false" oncut="return false" onmousedown="DisableRightClick(event)" onkeydown="return DisableCtrlKey(event)" autocomplete="off"></asp:TextBox>                    
                    <asp:RequiredFieldValidator ID="rfvAmount" runat="server" ErrorMessage="Please Enter Amount"
                        ControlToValidate="txtAmount" Display="None">
                    </asp:RequiredFieldValidator>
                    <cc1:ValidatorCalloutExtender ID="ValidatorCalloutExtender1" TargetControlID="rfvAmount"
                        runat="server">
                    </cc1:ValidatorCalloutExtender>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    Payment Date
                </td>
                <td>
                    <strong>:</strong>
                </td>
                <td>
                    <asp:TextBox ID="txtPaymentDate" runat="server" Width="180px" onkeypress="return digitonly(this,event)"></asp:TextBox>
                    <cc1:CalendarExtender ID="CalendarExtender1" runat="server" 
                        TargetControlID="txtPaymentDate" PopupPosition="Right" Enabled="True" Format="yyyy-MM-dd">
                    </cc1:CalendarExtender>
                    
                    <asp:RequiredFieldValidator ID="rfvPaymentDate" runat="server" ErrorMessage="Please Enter Payment Date"
                        ControlToValidate="txtPaymentDate" Display="None">
                    </asp:RequiredFieldValidator>
                    <cc1:ValidatorCalloutExtender ID="ValidatorCalloutExtender2" TargetControlID="rfvPaymentDate"
                        runat="server">
                    </cc1:ValidatorCalloutExtender>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    Bank Name
                </td>
                <td>
                    :
                </td>
                <td>
                    <asp:DropDownList ID="ddlBankName" runat="server" Width="186px" >
                        <asp:ListItem>Select</asp:ListItem>
                        <asp:ListItem Value="2">ICICI Bank</asp:ListItem>
                        <asp:ListItem Value="3">PNB Bank</asp:ListItem>
                        <asp:ListItem Value="4">SBI Bank</asp:ListItem>
                        <asp:ListItem Value="5">Bank of India</asp:ListItem>
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="rfvBankName" runat="server" ErrorMessage="Please Select Bank Name"
                        InitialValue="Select" ControlToValidate="ddlBankName" Display="None">
                    </asp:RequiredFieldValidator>
                    <cc1:ValidatorCalloutExtender ID="ValidatorCalloutExtender3" TargetControlID="rfvBankName"
                        runat="server">
                    </cc1:ValidatorCalloutExtender>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    Branch Name
                </td>
                <td>
                    <strong>:</strong>
                </td>
                <td>
                    <asp:TextBox ID="txtBranchName" runat="server" onkeypress="return isAlpha(event)" MaxLength="50"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvBranchName" runat="server" ErrorMessage="Please Select Branch Name"
                        ControlToValidate="txtBranchName" Display="None">
                    </asp:RequiredFieldValidator>
                    <cc1:ValidatorCalloutExtender ID="ValidatorCalloutExtender4" TargetControlID="rfvBranchName"
                        runat="server">
                    </cc1:ValidatorCalloutExtender>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    Payment Mode
                </td>
                <td>
                    <strong>:</strong>
                </td>
                <td>
                    <asp:DropDownList ID="ddlPaymentMode" runat="server" Width="186px" onchange="return showtr(this.value);">
                        <asp:ListItem>Select</asp:ListItem>
                        <asp:ListItem Value="Cash">Cash</asp:ListItem>
                        <asp:ListItem Value="Cheque/DD">Cheque/DD</asp:ListItem>
                        <asp:ListItem Value="NEFT">NEFT</asp:ListItem>
                        <asp:ListItem Value="E-Transfer">E-Transfer</asp:ListItem>
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="rfvPaymentMode" runat="server" ErrorMessage="Please Select Payment Mode"
                        ControlToValidate="ddlPaymentMode" InitialValue="Select" Display="None">
                    </asp:RequiredFieldValidator>
                    <cc1:ValidatorCalloutExtender ID="ValidatorCalloutExtender5" TargetControlID="rfvPaymentMode"
                        runat="server">
                    </cc1:ValidatorCalloutExtender>
                </td>
            </tr>
            <tr>
                <td colspan="4" width="100%">
                    
                    <div id="NEFT_div" style="display:none">
                        <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
                            
                            <tr>
                                <td width="11%"> </td>
                                <td width="33%"> Bank Transaction ID</td>
                                <td width="3%">:</td>
                                <td width="52%"><asp:TextBox ID="txt_Bant_tran_id" runat="server"  MaxLength="16" oncopy="return false" onpaste="return false"></asp:TextBox>
                                       
                                </td>
                            </tr>
                            
                        </table>
                    </div>
                    <div id="Cash_div" style="display:none">
                        <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
                            <tr>
                                <td width="11%"></td>
                                <td width="33%">Depositor Name</td>
                                <td width="3%">  :</td>
                                <td width="52%"><asp:TextBox ID="Tet_DepositorName" runat="server"  MaxLength="30"></asp:TextBox>
                                                
                                  </td>
                            </tr>                           
                        </table>
                    </div>
                     <div id="DivAccountNo" style="display:none">
                        <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
                            <tr>
                                <td width="11%"></td>
                                <td width="33%">  Your Account No.</td>
                                <td width="3%">  :</td>
                                <td width="52%"><asp:TextBox ID="txt_Account_no" runat="server" onkeypress="return digitonly(this,event)" MaxLength="16"></asp:TextBox></td>
                            </tr>                          
                        </table>
                    </div>
                    <div id="Cheque_dd_div" style="display:none" >
                        <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
                            <tr>
                                <td width="11%"></td>
                                <td width="33%">Cheque/DD No .</td>
                                <td width="3%">: </td>
                                <td width="52%">
                                    <asp:TextBox ID="txt_Cheque_dd_no" runat="server" onkeypress="return digitonly(this,event)" oncopy="return false" onpaste="return false" MaxLength="18"></asp:TextBox>
                                    
                                    
                                </td>
                            </tr>
                            <tr>
                                <td></td>
                                <td>Cheque/DD Date</td>
                                <td>: </td>
                                <td>
                                    <asp:TextBox ID="txt_Cheque_DD_Date" runat="server" onkeypress="return digitonly(this,event)" MaxLength="14"></asp:TextBox>
                                    <%--<img src="../images/cal.gif" align="absmiddle" />--%>
                                    <cc1:CalendarExtender ID="CalendarExtender2" runat="server" 
                                        TargetControlID="txt_Cheque_DD_Date" PopupPosition="Right" Enabled="True" Format="yyyy-MM-dd">
                                    </cc1:CalendarExtender>
                                </td>
                            </tr>
                            <tr>
                                <td></td>
                                <td>Your Bank</td>
                                <td>:</td>
                                <td><asp:TextBox ID="txt_bank" runat="server"></asp:TextBox>
                                
                                </td>
                            </tr>
                            <tr>
                                <td></td>
                                <td> Your Bank Branch</td>
                                <td>:</td>
                                <td><asp:TextBox ID="txt_Yoyr_Bank_Branch" runat="server"></asp:TextBox>
                                
                                </td>
                            </tr>
                            
                        </table>
                    </div>
                    <div id="Remark_div" style="display:none">
                        <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
                            <tr>
                                <td width="11%">
                                </td>
                                <td width="33%">
                                    Remark
                                </td>
                                <td width="3%">
                                    :
                                </td>
                                <td width="52%">
                                    <asp:TextBox ID="txt_Remark" runat="server" TextMode="MultiLine"></asp:TextBox>
                                </td>
                            </tr>
                            
                        </table>
                    </div>
                    
                </td>
            </tr>
            <tr>
                <td colspan="3">
                </td>
                <td style="padding: 0 0 0 70px;">
                    <asp:Button ID="btnSubmit" runat="server" class="button" Text="Submit" OnClick="btnSubmit_Click" />
                </td>
            </tr>
            <tr>
                <td colspan="4" style="height: 30px"><asp:ScriptManager ID="ScriptManager1" runat="server">
                    </asp:ScriptManager>
                </td>
            </tr>
        </table>
    </div>
    <div id="right" style="background: none">
        <table width="100%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td class="cdr">
                    <strong>FundRequestSelf Instruction</strong>
                </td>
            </tr>
            <tr>
                <td style="padding: 10px 0 30px 5px; font-size: 15px">
                    Comming Soon
                </td>
            </tr>
        </table>
    </div>
    
</asp:Content>
