<%@ Page Language="C#" MasterPageFile="~/MasterPages/Main.master" AutoEventWireup="true"
    CodeFile="UpdateMerchant.aspx.cs" Inherits="Business_UpdateMerchant" %>

<%@ Register Src="../UserControls/DatePicker.ascx" TagName="DatePicker" TagPrefix="uc1" %>
 

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
  <script language="javascript" type="text/javascript">
  
   function UpdateFID()
    {
        var level = '<%=clLevel %>';
        if(level=="001")
            return;

     //  alert('hi');
       var retailerID = document.getElementById("<%=txtRetailerID.ClientID%>").value;
       var retailerID2 = document.getElementById("<%=txtRetailerID2.ClientID%>").value;

      //  alert(retailerID);
       // alert(retailerID);
       
        //alert();
     var changeValue = '11'+ retailerID.substr(-5)+ retailerID2;
    // alert(changeValue);

    document.getElementById("<%=txtFDR.ClientID%>").value= changeValue;
    }
      
        
    function showterminals() {

        var level = '<%=clLevel %>';
        document.getElementById('td1').className='off';
        document.getElementById('td2').className='offEndLast';
        document.getElementById('td3').className='off';
        document.getElementById('td4').className='offEndLast';
        document.getElementById('td5').className='off';
        document.getElementById('td6').className = 'offEnd';        
        document.getElementById('td7').className = 'on';
        document.getElementById('td8').className = 'onEnd';        
        document.getElementById('td9').className='off';
        document.getElementById('td10').className='offEndLast';
        document.getElementById('tbl1').style.display = 'none';
//        document.getElementById('Table1').style.display = 'none';
        document.getElementById('Table2').style.display = 'none';
        document.getElementById('tbl2').style.display = 'none';
        document.getElementById('tbl3').style.display = 'none';
        document.getElementById('tbl4').style.display = 'block';
        document.getElementById('tbl5').style.display = 'none';
    }
    function showservice() {
        var level='<%=clLevel %>'
        document.getElementById('td1').className='off';
        document.getElementById('td2').className='offEndLast';
        document.getElementById('td3').className='off';
        document.getElementById('td4').className = 'offEnd';       
        document.getElementById('td5').className = 'on';
        document.getElementById('td6').className = 'onEnd';       
        document.getElementById('td7').className='off';
        document.getElementById('td8').className='offEndLast';
        document.getElementById('td9').className='off';
        document.getElementById('td10').className='offEndLast';
        document.getElementById('tbl1').style.display = 'none';
//        document.getElementById('Table1').style.display = 'none';
        document.getElementById('Table2').style.display = 'none';
        document.getElementById('tbl2').style.display = 'none';
        document.getElementById('tbl3').style.display = 'block';
        document.getElementById('tbl4').style.display = 'none';
        document.getElementById('tbl5').style.display = 'none';
    }
    function showaddress() {
        var level = '<%=clLevel %>';
        document.getElementById('td1').className='off';
        document.getElementById('td2').className='offEnd';
        document.getElementById('td3').className='on';
        document.getElementById('td4').className='onEnd';
        document.getElementById('td5').className='off';
        document.getElementById('td6').className='offEndLast';
        document.getElementById('td7').className='off';
        document.getElementById('td8').className='offEndLast';
        document.getElementById('td9').className='off';
        document.getElementById('td10').className='offEndLast';
        document.getElementById('tbl1').style.display = 'none';
//        document.getElementById('Table1').style.display = 'none';
        document.getElementById('Table2').style.display = 'none';
        document.getElementById('tbl2').style.display = 'block';
        document.getElementById('tbl3').style.display = 'none';
        document.getElementById('tbl4').style.display = 'none';
        document.getElementById('tbl5').style.display = 'none';
    }
    function showgeneral() {
        var level = '<%=clLevel %>';
        document.getElementById('td1').className='on';
        document.getElementById('td2').className='onEnd';
        document.getElementById('td3').className='off';
        document.getElementById('td4').className = 'offEndLast';
        if (level == "001" || level == "002") {

            document.getElementById('td5').className = 'off';
            document.getElementById('td6').className = 'offEndLast';
            document.getElementById('td7').className = 'off';
            document.getElementById('td8').className = 'offEndLast';

            document.getElementById('td5').style.display = "none";
            document.getElementById('td6').style.display = "none";
            document.getElementById('td7').style.display = "none";
            document.getElementById('td8').style.display = "none";
        }
        else {

            document.getElementById('td5').className = 'off';
            document.getElementById('td6').className = 'offEndLast';
            document.getElementById('td7').className = 'off';
            document.getElementById('td8').className = 'offEndLast';

            document.getElementById('td5').style.visibility = "visible";
            document.getElementById('td6').style.visibility = "visible";
            document.getElementById('td7').style.visibility = "visible";
            document.getElementById('td8').style.visibility = "visible"; 
            
        }
       
        document.getElementById('td9').className='off';
        document.getElementById('td10').className='offEndLast';
        document.getElementById('tbl1').style.display = 'block';
//        document.getElementById('Table1').style.display = 'block';
        document.getElementById('Table2').style.display = 'block';
        document.getElementById('tbl2').style.display = 'none';
        document.getElementById('tbl3').style.display = 'none';
        document.getElementById('tbl4').style.display = 'none';
        document.getElementById('tbl5').style.display = 'none';
    }
    function showcomments() {
        var level = '<%=clLevel %>';
        document.getElementById('td1').className='off';
        document.getElementById('td2').className='offEndLast';
        document.getElementById('td3').className='off';
        document.getElementById('td4').className='offEndLast';
        document.getElementById('td5').className='off';
        document.getElementById('td6').className='offEndLast';
        document.getElementById('td7').className='off';
        document.getElementById('td8').className='offEnd';
        document.getElementById('td9').className='on';
        document.getElementById('td10').className='onEndLast';
        document.getElementById('tbl1').style.display = 'none';
//        document.getElementById('Table1').style.display = 'none';
        document.getElementById('Table2').style.display = 'none';
        document.getElementById('tbl2').style.display = 'none';
        document.getElementById('tbl3').style.display = 'none';
        document.getElementById('tbl4').style.display = 'none';
        document.getElementById('tbl5').style.display = 'block';
    }
    
    function validate()
    {
         UpdateFID();

        var message = "";
        var level = '<%=clLevel %>';
        
        if (document.getElementById("<%=txtAccNoGeneral.ClientID%>").value=="")
        {
            message += "Account Number can not be blank\n";
            document.getElementById("<%=txtAccNoGeneral.ClientID%>").style.backgroundColor="#c8d1e4";
        }
        
        if(document.getElementById("<%=txtRetailName.ClientID%>").value=="")
        {
            message += "Merchant Name can not be blank\n";
            document.getElementById("<%=txtRetailName.ClientID%>").style.backgroundColor="#c8d1e4";
        }
        
        if(document.getElementById("<%=ddlCity.ClientID %>").selectedIndex ==0)
        {
            message += "City can not be blank\n";
            document.getElementById("<%=ddlCity.ClientID%>").style.backgroundColor="#c8d1e4";
        }
        
        if (document.getElementById("<%=txtFDR.ClientID%>").value == "" && level!="001") {
            message += "FDR ID can not be blank\n";
            document.getElementById("<%=txtFDR.ClientID%>").style.backgroundColor = "#c8d1e4";
        }
         //  POS Merchant Settlement Method changes 20210729
        if (document.getElementById("<%=txtEmail.ClientID%>").value == "" && level=="003") {
            message += "Email ID can not be blank\n";  
            document.getElementById("<%=txtEmail.ClientID%>").style.backgroundColor = "#c8d1e4";
        }

        if(message.length >0)
        {
            message = "please notice the following requirments:\n\n" + message;
            alert(message);
            return false;
        }
          return true;
      }
      function Zero() {
          var a = document.getElementById("<%=txtPICapacity.ClientID %>").value;
 
          var piCapicty = Number(a);
          if(piCapicty<=0)
				alert('Are you sure to Add Fee Capacity value as 0');
          

	 return true;
        
      }
      function total() {
          var a = document.getElementById("<%=txtPercentB.ClientID %>").value;
          var b = document.getElementById("<%=txtPercentM.ClientID %>").value;
          var c = document.getElementById("<%=lblPercent.ClientID %>");
          var sumofPer = Number(a) + Number(b);
          c.innerHTML = sumofPer;
            
           
            var limit = <%=Span_Fee_Limit %>;
            var serviceID = '<%=ddlServices.SelectedValue %>';
//         
//          if (serviceID=="001" && sumofPer > Number(limit) ) {
//              alert('Total % should be less than equal to upper cap value  0.8 %');
//              return false;
//          }
          return true;
      }
      function total_lower() {
          var a = document.getElementById("<%=txtPercentB_lower.ClientID %>").value;
          var b = document.getElementById("<%=txtPercentM_lower.ClientID %>").value;
          var c = document.getElementById("<%=lblPercent_lower.ClientID %>");

          var sumofPer = Number(a) + Number(b);
          c.innerHTML = sumofPer;

       
          var limit = <%=Span_Fee_Limit_lower %>;
            var serviceID = '<%=ddlServices.SelectedValue %>';
            
//          if (serviceID=="001" && sumofPer > Number(limit) ) {
//          alert('Total % lower should be less than equal to lower cap value 0.7 %');
//              return false;
//          }

          return true;
      }

      function OnKeyPressSerialText(sender, eventArgs) {
          var char = eventArgs.get_keyCharacter();
          //will allow just letters, numbers and "-" letter             var exp = /[^a-zA-Z0-9-]/g;
          if (exp.test(char)) {
              eventArgs.set_cancel(true);
          }
      }

    </script>
    <style type="text/css">
        .style2
        {
            width: 15%;
            height: 20px;
        }
        .style3
        {
            width: 30%;
            height: 20px;
        }
        .style4
        {
            width: 10%;
            height: 20px;
        }
.style5
        {
            width: 2%;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <table class="body_MainTB" border="0" cellpadding="0" cellspacing="0">
        <tr align="center">
            <td valign="top">
                <!------------------------------------body St  ---------------------------------------------->
                <table border="0" cellpadding="0" cellspacing="0" class="body_formTitle">
                    <tr>
                        <td>
                            Merchant Details
                        </td>
                    </tr>
                </table>
                <br>
                <!------------------------------------body End1 ----------------------------------------------->
                <table border="0" cellpadding="0" cellspacing="0" class="contTB">
                    <tr>
                        <td align="center">
                            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="Frow">
                                <tr>
                                    <td>
                                        <uc1:DatePicker ID="DatePicker1" runat="server" width="0" />
                                    </td>
                                </tr>
                            </table>
							
                            <asp:UpdatePanel ID="UpdatePanel4" runat="server" UpdateMode="Always">
                                <ContentTemplate>
                                    <asp:Label ID="lblError" runat="server" Text="" class="fieldError"></asp:Label>
                                </ContentTemplate>
                            </asp:UpdatePanel>
                            <asp:Panel ID="pnlBR" runat="server" Width="100%">
                                <table width="95%" class="tabTb" border="0" cellpadding="0" cellspacing="0" dir="ltr">
                                    <tr>
                                        <td align="left">
                                            <table border="0" cellpadding="0" cellspacing="0" dir="ltr">
                                                <tr>
                                                    <td id="td1" class="on">
                                                        <a href="#" onclick="showgeneral();">General Details</a>
                                                    </td>
                                                    <td id="td2" class="onEnd">
                                                    </td>
                                                    <td id="td3" class="off">
                                                        <a href="#" onclick="showaddress();">Addresses</a>
                                                    </td>
                                                    <td id="td4" class="offEndLast">
                                                    </td>
                                                    <td id="td5" class="off">
                                                        <a href="#" onclick="showservice();">Services & Charges</a>
                                                    </td>
                                                    <td id="td6" class="offEndLast">
                                                    </td>
                                                    <td id="td7" class="off">
                                                        <a href="#" onclick="showterminals();">Terminals</a>
                                                    </td>
                                                    <td id="td8" class="offEnd">
                                                    </td>
                                                    <td id="td9" class="off">
                                                        <a href="#" onclick="showcomments();">Comments</a>
                                                    </td>
                                                    <td id="td10" class="offEndLast">
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                                <table id="tbl1" style="display: block" border="0" width="95%" cellpadding="0" cellspacing="0"
                                    class="add_ItemTB1">
                                    <tr>
                                        <td class="tdNormal" style="width: 20%">
                                            Registration Status
                                        </td>
                                        <td class="style5" >
                                           <asp:TextBox ID="txtRegStatus" ReadOnly="true" runat="server"   class="fieldNormal" ></asp:TextBox>
                                        </td>
                                        <td class="style5" >
                                           <asp:TextBox ID="txtRegCode" ReadOnly="false" visible ="false" runat="server"  
                                            class="fieldNormal" OnClientClick="return validate()"  ></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdNormal" style="width: 15%">
                                            Registration Date
                                        </td>
                                        <td class="style5">
                                            <uc1:DatePicker ID="dateRegDate" runat="server" width="250" Visible="false" />
                                            <br />
                                            <asp:Label ID="dateRegDateOld" runat="server" class="fieldNormalOld"></asp:Label>
                                            <asp:TextBox ID="txtRegDate" ReadOnly="true" runat="server" class="fieldNormal"></asp:TextBox>
                                        </td>
                                        <td class="tdNormal" style="width: 10%">
                                        </td>
                                        <td class="tdNormal" style="width: 15%">
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdNormal" style="width: 15%">
                                            Client Number
                                        </td>
                                        <td class="style5">
                                            x
                                            <asp:Label ID="lblClientNo" runat="server" class="fieldNormal"></asp:Label>
                                        </td>
                                        <td class="tdNormal" style="width: 10%">
                                        </td>
                                        <td class="tdNormal" style="width: 15%">
                                            Merchant Fee Account Number
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:TextBox ID="txtfeemerchantaccno" runat="server" class="fieldNormal"
                                                Width="150"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdNormal" style="width: 15%">
                                            Account Number
                                        </td>
                                        <td class="style5">
                                            <asp:TextBox ID="txtAccNoGeneral" ReadOnly="true" runat="server" class="fieldNormal"
                                                Width="150"></asp:TextBox>
                                            <asp:Button ID="btnAccSer" runat="server" Text="Apply to Service Accounts" class="Btn_L_Normal1"
                                                OnClick="btnAccSer_Click" Visible="False" /><br />
                                            <asp:TextBox ID="txtAccNoGeneralOld" runat="server" class="fieldNormalold" Enabled="false"
                                                Visible="false" Width="150"></asp:TextBox>
                                        </td>
                                        <td class="tdNormal" style="width: 10%">
                                        </td>
                                        <td class="tdNormal" style="width: 45%" colspan="2">
                                            <asp:Button ID="btnChangeAccount" runat="server" Text="Change Account" class="Btn_L_Normal1"
                                                OnClick="btnChangeAccount_Click" Visible="False" />
                                            <asp:Button ID="btnVerifyAcc" runat="server" Text="Verify Account" class="Btn_L_Normal1"
                                                OnClick="btnVerifyAcc_Click" Visible="False" />
                                            <asp:Button ID="btnCancelAcc" runat="server" Text="Cancel" class="Btn_L_Normal1"
                                                OnClick="btnCancelAcc_Click" Visible="False" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdNormal" style="width: 15%">
                                            Index Number
                                        </td>
                                        <td class="style5">
                                            <asp:TextBox ID="txtIndexNumber" runat="server"  MaxLength="100" class="fieldNormal" Width="150"></asp:TextBox>
                                        </td>
                                        <td class="tdNormal" style="width: 10%">
                                        </td>
                                        <td class="tdNormal">
                                            FDR ID(Auto filled from Retailer ID)
                                        </td>
                                        <td class="tdNormal">
                                            <asp:TextBox ID="txtFDR" runat="server"  MaxLength="12" Width="150" class="fieldNormal"></asp:TextBox>
																				  
                                            <br />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdNormal" style="width: 15%">
                                            Client Level
                                        </td>
                                        <td class="style5">
                                            <asp:DropDownList ID="ddlClientLevel" runat="server" DataTextField="cl_desc" DataValueField="cl_code"
                                                class="fieldNormal">
                                            </asp:DropDownList>
                                        </td>
                                        <td class="tdNormal" style="width: 10%">
                                        </td>
                                        <td class="tdNormal">
                                            <asp:Label ID="lblRetailerID" runat="server" Text="Retailer ID"></asp:Label>
                                        </td>
                                        <td class="tdNormal">
                                            <asp:TextBox ID="txtRetailerID" runat="server" MaxLength="10" Width="150" class="fieldNormal"
                                                ReadOnly="True"></asp:TextBox>
                                              -<asp:TextBox ID="txtRetailerID2" runat="server"  onkeyup="javascript:UpdateFID();" MaxLength="2" Width="32px" class="fieldNormal"
                                                ></asp:TextBox>
                                            <asp:DropDownList ID="ddlRetailerRegion" runat="server" class="fieldNormal" 
                                                Visible="false" >
                                                <asp:ListItem Text="1 - Central" Value="1"></asp:ListItem>
                                                <asp:ListItem Text="2 - West" Value="2"></asp:ListItem>
                                                <asp:ListItem Text="3 - East" Value="3"></asp:ListItem>
                                            </asp:DropDownList>
                                            <asp:Button ID="btnRetailer" runat="server" Text="Change Region" class="Btn_L_Normal"
                                                OnClick="btnRetailer_Click" Visible="False" />
                                            <asp:Button ID="btnRetailerOk" runat="server" Text="OK" class="Btn_s_Normal" Visible="False"
                                                OnClick="btnRetailerOk_Click" />
                                            <asp:Button ID="btnRetailerCancel" runat="server" Text="CANCEL" class="Btn_s_Normal"
                                                Visible="False" OnClick="btnRetailerCancel_Click" /><br />
                                            <asp:TextBox ID="txtRetailerIDOld" runat="server" MaxLength="12" Width="150" class="fieldNormalold"
                                                Enabled="false" Visible="false"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdNormal">
                                            <asp:Label ID="lblMerchantNameAr" runat="server" Text="Merchant Name (Arabic)"></asp:Label>
                                        </td>
                                        <td class="style5">
											

                                            <asp:TextBox ID="txtRetailNameAr" runat="server" class="fieldNormal" MaxLength="100" CausesValidation="True"></asp:TextBox><br />
																							
                                            <asp:TextBox ID="txtRetailNameArOld" runat="server" class="fieldNormalold" Enabled="false"
                                                Visible="false"></asp:TextBox>
                                        </td>
                                        <td class="tdNormal">
                                        </td>
                                        <td class="tdNormal">
                                            <asp:Label ID="lblMerchantName" runat="server" Text="Merchant Name (English)"></asp:Label>
                                        </td>
                                        <td class="tdNormal">
                                            <asp:RegularExpressionValidator ID="ReqValContactPerson_SpecialChars" runat="server"
                                                ControlToValidate="txtRetailName" Display="Dynamic" ErrorMessage="Please enter valid name"
																											  
                                                SetFocusOnError="True" ValidationExpression="[a-zA-Z0-9 ]+"></asp:RegularExpressionValidator>
                                            <asp:TextBox ID="txtRetailName" runat="server" class="fieldNormal"></asp:TextBox><br />
                                            <asp:TextBox ID="txtRetailNameOld" runat="server" class="fieldNormalold" Enabled="false"
                                                Visible="false"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr runat="server" id="rootrow">
                                        <td class="tdNormal">
                                            Root Name (Arabic)
                                        </td>
                                        <td class="style5">
                                            <asp:Label ID="lblRootNameAr" runat="server"  Text="Arabic Merchant Name"></asp:Label>
                                        </td>
                                        <td class="tdNormal">
                                        </td>
                                        <td class="tdNormal">
                                            Root Name (English)
                                        </td>
                                        <td class="tdNormal">
                                            <asp:Label ID="lblRootName" runat="server" Text="Arabic Merchant Name"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdNormal">
                                            Branch
                                        </td>
                                        <td class="style5">
                                            <asp:DropDownList ID="ddlBranch" runat="server" DataTextField="branch_cd" DataValueField="branch_cd"
                                                class="fieldNormal" AutoPostBack="True" OnSelectedIndexChanged="ddlBranch_SelectedIndexChanged">
																										 
                                            </asp:DropDownList>
                                            <asp:TextBox ID="txtBranch" runat="server" class="fieldNormal" ReadOnly="True"></asp:TextBox>
                                        </td>
                                        <td class="tdNormal">
                                        </td>
                                        <td class="tdNormal">
                                        </td>
                                        <td class="tdNormal">
                                        </td>
                                    </tr>
                                    <tr>
																			
                                        <td class="tdNormal">
                                            City Name
                                        </td>
                                        <td class="style5">
                                            <asp:DropDownList ID="ddlCity" runat="server" DataTextField="c_desc" DataValueField="c_code"
                                                class="fieldNormal" AutoPostBack="True" OnSelectedIndexChanged="ddlCity_SelectedIndexChanged">
																									  
                                            </asp:DropDownList>
                                            <br />
                                            <asp:DropDownList ID="ddlCityOld" runat="server" DataTextField="c_desc" DataValueField="c_code"
                                                class="fieldNormalold" Enabled="false" Visible="false">
                                            </asp:DropDownList>
                                        </td>
                                        <td class="tdNormal">
                                        </td>
                                        <td class="tdNormal">
                                            Business Class
                                        </td>
                                        <td class="tdNormal">
                                            <asp:DropDownList ID="ddlBusinessClass" runat="server" DataTextField="business_NAME"
                                                DataValueField="MCC" class="fieldNormal" Width="250">
                                            </asp:DropDownList>
                                            <br />
                                            <asp:DropDownList ID="ddlBusinessClassOld" runat="server" DataTextField="business_Type"
                                                DataValueField="MCC" class="fieldNormalold" Enabled="false" Visible="false">
                                            </asp:DropDownList>
                                        </td>
                                    </tr>
								  
									
                                    <tr style="display: none">
                                        <td class="tdNormal">
                                            Business Unit
                                        </td>
                                        <td class="style5">
                                            <asp:DropDownList ID="ddlBusinessUnit" runat="server" DataTextField="description"
                                                DataValueField="bu_code" class="fieldNormal" AutoPostBack="True" OnSelectedIndexChanged="ddlBusinessUnit_SelectedIndexChanged">
                                            </asp:DropDownList>
                                            <br />
                                            <asp:DropDownList ID="ddlBusinessUnitOld" runat="server" DataTextField="description"
                                                DataValueField="bu_code" class="fieldNormalold" Enabled="false" Visible="false">
                                            </asp:DropDownList>
                                        </td>
                                        <td class="tdNormal">
                                        </td>
                                        <td class="tdNormal">
                                            Business Unit Account
                                        </td>
                                        <td class="tdNormal">
                                            <asp:TextBox ID="txtBUAcc" ReadOnly="true" runat="server" class="fieldNormal"></asp:TextBox>
                                        </td>
                                    </tr>
									
									
                                    <%-- <tr>
                                        <td class="tdNormal" style="display :none">
                                            Manual application number
                                        </td>
                                        <td class="tdNormal" style ="display:none">
                                            <asp:TextBox ID="txtManualAppNo" runat="server" class="fieldNormal"></asp:TextBox><br />
                                            <asp:TextBox ID="txtManualAppNoOld" runat="server" class="fieldNormalold" Enabled=false Visible=false></asp:TextBox>
                                        </td>
                                        <td class="tdNormal">
                                        </td>
                                        <td class="tdNormal">
                                            
                                        </td>
                                        <td class="tdNormal">
                                            
                                        </td>
                                    </tr>--%>
                                    <tr>										   
                                        <td class="tdNormal">
                                            Relationship Officer
                                        </td>
                                        <td class="style5">
                                            <asp:DropDownList ID="ddlRelationshipOfficer" runat="server" DataTextField="RSO_NAME"
                                                DataValueField="RSO_CODE" class="fieldNormal">
                                            </asp:DropDownList>
                                            <br />
                                            <asp:DropDownList ID="ddlRelationshipOfficerOld" runat="server" DataTextField="RSO_NAME"
                                                DataValueField="RSO_CODE" class="fieldNormalold" Enabled="false" Visible="false">
                                            </asp:DropDownList>
                                        </td>
                                        <td class="tdNormal">
                                        </td>
                                        <td class="tdNormal">
                                            Registration Number
                                        </td>
                                        <td class="tdNormal">
                                            <asp:TextBox ID="txtRegNo" runat="server"   MaxLength="20"  class="fieldNormal"></asp:TextBox><br />
                                            <asp:TextBox ID="txtRegNoOld" runat="server" class="fieldNormalold" Enabled="false"
                                                Visible="false"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>										   
                                        <td class="tdNormal">
                                            Settlement Method
                                        </td>
                                        <td class="style5">
                                            <asp:DropDownList ID="ddlSettlMethod" runat="server" DataTextField="SETTLE_METHOD_NAME"
                                                DataValueField="SM_CODE" class="fieldNormal">
                                            </asp:DropDownList>
                                            <br />
                                            <asp:DropDownList ID="ddlSettlMethodOld" runat="server" DataTextField="SETTLE_METHOD_NAME"
                                                DataValueField="SM_CODE" class="fieldNormalold" Enabled="false" Visible="false">
                                            </asp:DropDownList>
                                        </td>
                                        <td class="tdNormal">
                                        </td>
                                        <td class="tdNormal">
                                            Posting Method
                                        </td>
                                        <td class="tdNormal">
                                            <asp:DropDownList ID="ddlPostingMethod" runat="server" DataTextField="POSTING_METHOD_NAME"
                                                DataValueField="PM_CODE" class="fieldNormal">
                                            </asp:DropDownList>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdNormal" colspan="5">
                                            <table border="0" cellpadding="0" style="width: 100%" cellspacing="0" class="action_TB_BgaddItem">
                                                <tr>
                                                    <td>
                                                        <asp:Button ID="btnSave" runat="server" Text="   Save   " class="Btn_M_Normal" OnClick="btnSave_Click"
                                                            OnClientClick="return validate()" />
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
								
							  
								
                                <table id="Table2" style="display: none" border="0" width="95%" cellpadding="0" cellspacing="0"
                                    class="add_ItemTB1">
                                    <tr style="background-color: White">
                                        <td colspan="5">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdNormal" colspan="5" style="width: 100%">
                                            <asp:Panel ID="pnlAutoPayment" runat="server" Visible="false">
                                                Auto Payment
                                                <asp:CheckBox ID="chkAutoPayment" runat="server" />
                                                <asp:Button ID="btnAutoPayment" runat="server" Text="Update AutoPayment" class="Btn_L_Normal1"
                                                    OnClick="btnAutoPayment_Click" />
                                            </asp:Panel>
                                        </td>
                                    </tr>
                                </table>
                                <%--<br />--%>
                                <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
                                    <ContentTemplate>
                                        <table id="tbl2" border="0" width="95%" style="width: 95%" cellpadding="0" cellspacing="0"
                                            class="contTB">
                                            <tr>
                                                <td>
                                                    <table border="0" width="100%" cellpadding="0" cellspacing="0" style="width: 100%"
                                                        class="add_ItemTB">
                                                        <tr>
                                                            <td class="tdNormal">
                                                                <table border="0" style="width: 25%" cellpadding="0" cellspacing="0" class="add_ItemTB1">
                                                                    <tr>
                                                                        <td class="tdNormal" style="width: 20%">
                                                                            List Legend
                                                                        </td>
                                                                        <td class="tdNormal" style="width: 40%">
                                                                            <asp:TextBox ID="TextBox3" runat="server" Text="Deleted" BackColor="SkyBlue" class="fieldNormal"></asp:TextBox>
                                                                        </td>
                                                                        <td class="tdNormal" style="width: 40%">
                                                                            <asp:TextBox ID="TextBox4" runat="server" Text="Modified" BackColor="Tan" class="fieldNormal"></asp:TextBox>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                                <asp:GridView ID="gvAddresses" CssClass="gridMaster" runat="server" AutoGenerateColumns="False"
                                                                    DataKeyNames="ma_code" AllowPaging="True" AllowSorting="True" CellPadding="4"
                                                                    ForeColor="#333333" GridLines="None" EmptyDataText="There are no Results" OnRowCommand="gvAddresses_RowCommand"
																																				   
                                                                    OnRowDataBound="gvAddresses_RowDataBound" OnRowCreated="gvAddresses_RowCreated">
                                                                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                                                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" HorizontalAlign="Right" />
                                                                    <Columns>
                                                                        <asp:BoundField DataField="contact_name" HeaderText="Contact Name" />
                                                                        <asp:BoundField DataField="city" HeaderText="city" />
                                                                        <asp:BoundField DataField="country" HeaderText="country" />
                                                                        <asp:BoundField DataField="address_category" HeaderText="Category" />
                                                                        <asp:ButtonField ButtonType="Image" ItemStyle-Width="30px" CommandName="u" Text="Edit"
                                                                            ImageUrl="~/Images/edit.jpg">
                                                                            <ItemStyle Width="30px" />
                                                                        </asp:ButtonField>
                                                                        <asp:ButtonField ButtonType="Image" ItemStyle-Width="30px" CommandName="d" Text="Delete"
                                                                            ImageUrl="~/Images/delete.jpg">
                                                                            <ItemStyle Width="30px" />
                                                                        </asp:ButtonField>
                                                                        <asp:ButtonField ButtonType="Image" ItemStyle-Width="30px" CommandName="h" Text="View History"
                                                                            ImageUrl="~/Images/document_view.jpg">
                                                                            <ItemStyle Width="30px" />
                                                                        </asp:ButtonField>
                                                                        <asp:BoundField DataField="rec_flag" HeaderText="" />
                                                                        <asp:BoundField DataField="status" HeaderText="" />
                                                                        <asp:ButtonField ButtonType="Image" ItemStyle-Width="30px" ImageUrl="~/Images/reports/edit.png"
                                                                            CommandName="ca" Text="Change Address Report">
                                                                            <ItemStyle Width="30px" />
                                                                        </asp:ButtonField>
                                                                    </Columns>
                                                                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                                                                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                                                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="Black" />
                                                                    <EditRowStyle BackColor="#999999" />
                                                                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" HorizontalAlign="Right" />
                                                                </asp:GridView>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                    <table border="0" cellpadding="0" cellspacing="0" class="action_TB_BgForm">
                                                        <tr>
                                                            <td>
                                                                <asp:Button ID="btnAddAddress" runat="server" Text="     Add     " class="Btn_M_Normal"
                                                                    OnClick="btnAddAddress_Click" />
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="tdNormal">
                                                    <asp:Panel ID="pnlAddress" runat="server" Width="100%" Visible="false">
                                                        <fieldset id="addItem">
                                                            <legend id="addItem">Address Details</legend>
                                                        </fieldset>
                                                        <table border="0" cellpadding="0" cellspacing="0" class="add_ItemTB">
                                                            <tr>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Contact Name
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:TextBox ID="txtContactname" runat="server"  MaxLength="100" class="fieldNormal"></asp:TextBox><br />
                                                                    <asp:TextBox ID="txtContactnameOld" runat="server" class="fieldNormalOld" Enabled="false"
                                                                        Visible="false"></asp:TextBox>
                                                                </td>
                                                                <td class="tdNormal" style="width: 10%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    P.O Box
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:TextBox ID="txtPOBox" runat="server"  MaxLength="30"   class="fieldNormal"></asp:TextBox><br />
                                                                    <asp:TextBox ID="txtPOBoxOld" runat="server" class="fieldNormalOld" Enabled="false"
                                                                        Visible="false"></asp:TextBox>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    English Address 1
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:TextBox ID="txtEngAdd1" runat="server" MaxLength="100"  class="fieldNormal"></asp:TextBox><br />
                                                                    <asp:TextBox ID="txtEngAdd1Old" runat="server" class="fieldNormalOld" Enabled="false"
                                                                        Visible="false"></asp:TextBox>
                                                                </td>
                                                                <td class="tdNormal" style="width: 10%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    English Address 2
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:TextBox ID="txtEngAdd2" runat="server"  MaxLength="50" class="fieldNormal"></asp:TextBox><br />
                                                                    <asp:TextBox ID="txtEngAdd2Old" runat="server" class="fieldNormalOld" Enabled="false"
                                                                        Visible="false"></asp:TextBox>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    English Address 3
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:TextBox ID="txtEngAdd3" runat="server" MaxLength="50"  class="fieldNormal"></asp:TextBox><br />
                                                                    <asp:TextBox ID="txtEngAdd3Old" runat="server" class="fieldNormalOld" Enabled="false"
                                                                        Visible="false"></asp:TextBox>
                                                                </td>
                                                                <td class="tdNormal" style="width: 10%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 15%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Arabic Address 1
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:TextBox ID="txtArabAdd1" runat="server" MaxLength="50" class="fieldNormal"></asp:TextBox><br />
                                                                    <asp:TextBox ID="txtArabAdd1Old" runat="server" class="fieldNormalOld" Enabled="false"
                                                                        Visible="false"></asp:TextBox>
                                                                </td>
                                                                <td class="tdNormal" style="width: 10%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Arabic Address 2
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:TextBox ID="txtArabAdd2" runat="server"   MaxLength="50" cclass="fieldNormal"></asp:TextBox><br />
                                                                    <asp:TextBox ID="txtArabAdd2Old" runat="server" class="fieldNormalOld" Enabled="false"
                                                                        Visible="false"></asp:TextBox>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Arabic Address 3
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:TextBox ID="txtArabAdd3" runat="server"   MaxLength="50" class="fieldNormal"></asp:TextBox><br />
                                                                    <asp:TextBox ID="txtArabAdd3Old" runat="server" class="fieldNormalOld" Enabled="false"
                                                                        Visible="false"></asp:TextBox>
                                                                </td>
                                                                <td class="tdNormal" style="width: 10%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 15%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Post Code
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:TextBox ID="txtPostCode" runat="server"  MaxLength="30"  class="fieldNormal"></asp:TextBox><br />
                                                                    <asp:TextBox ID="txtPostCodeOld" runat="server" class="fieldNormalOld" Enabled="false"
                                                                        Visible="false"></asp:TextBox>
                                                                </td>
                                                                <td class="tdNormal" style="width: 10%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 15%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    City
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:DropDownList ID="ddlAddressCity" runat="server" DataTextField="c_desc" DataValueField="c_code"
                                                                        class="fieldNormal">
                                                                    </asp:DropDownList>
                                                                    <br />
                                                                    <asp:DropDownList ID="ddlAddressCityOld" runat="server" DataTextField="c_desc" DataValueField="c_code"
                                                                        class="fieldNormalOld" Enabled="false" Visible="false">
                                                                    </asp:DropDownList>
                                                                </td>
                                                                <td class="tdNormal" style="width: 10%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Country
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:DropDownList ID="ddlAddressCountry" runat="server" class="fieldNormal">
                                                                        <asp:ListItem Value="682">Saudi Arabia</asp:ListItem>
                                                                    </asp:DropDownList>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Tel Work
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:TextBox ID="txtTelWork" runat="server"  MaxLength="20"  class="fieldNormal"></asp:TextBox><br />
                                                                    <asp:TextBox ID="txtTelWorkOld" runat="server" class="fieldNormalOld" Enabled="false"
                                                                        Visible="false"></asp:TextBox>
                                                                </td>
                                                                <td class="tdNormal" style="width: 10%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Tel Other
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:TextBox ID="txtTelOther" runat="server"  MaxLength="20"  class="fieldNormal"></asp:TextBox><br />
                                                                    <asp:TextBox ID="txtTelOtherOld" runat="server" class="fieldNormalOld" Enabled="false"
                                                                        Visible="false"></asp:TextBox>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    fax
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:TextBox ID="txtFax" runat="server"   MaxLength="20"   class="fieldNormal"></asp:TextBox><br />
                                                                    <asp:TextBox ID="txtFaxOld" runat="server" class="fieldNormalOld" Enabled="false"
                                                                        Visible="false"></asp:TextBox>
                                                                </td>
                                                                <td class="tdNormal" style="width: 10%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Mobile 1
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:TextBox ID="txtMobile" runat="server"  MaxLength="20"  class="fieldNormal"></asp:TextBox><br />
                                                                    <asp:TextBox ID="txtMobileOld" runat="server" class="fieldNormalOld" Enabled="false"
                                                                        Visible="false"></asp:TextBox>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Mobile 2
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:TextBox ID="txtMobile2" runat="server"   MaxLength="20" class="fieldNormal"></asp:TextBox><br />
                                                                    <asp:TextBox ID="TextBox9" runat="server" class="fieldNormalOld" Enabled="false"
                                                                        Visible="false"></asp:TextBox>
                                                                </td>
                                                                <td class="tdNormal" style="width: 10%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Mobile 3
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:TextBox ID="txtMobile3" runat="server"  MaxLength="20"  class="fieldNormal"></asp:TextBox><br />
                                                                    <asp:TextBox ID="TextBox11" runat="server" class="fieldNormalOld" Enabled="false"
                                                                        Visible="false"></asp:TextBox>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Email Address 1
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:TextBox ID="txtEmail" runat="server"  MaxLength="50"  class="fieldNormal"></asp:TextBox><br />
                                                                    <asp:TextBox ID="txtEmailOld" runat="server" class="fieldNormalOld" Enabled="false"
                                                                        Visible="false"></asp:TextBox>
                                                                </td>
                                                                <td class="tdNormal" style="width: 10%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Email Address 2
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:TextBox ID="txtEmail2" runat="server" MaxLength="50" class="fieldNormal"></asp:TextBox><br />
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Email Address 3
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:TextBox ID="txtEmail3" runat="server" MaxLength="50" class="fieldNormal"></asp:TextBox><br />
                                                                    <asp:TextBox ID="TextBox10" runat="server" class="fieldNormalOld" Enabled="false"
                                                                        Visible="false"></asp:TextBox>
                                                                </td>
                                                                <td class="tdNormal" style="width: 10%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Category
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
																   
                                                                    <asp:DropDownList ID="ddlAddressCat" runat="server" DataTextField="CATEGORY_NAME"
                                                                        DataValueField="AC_CODE" class="fieldNormal">
                                                                    </asp:DropDownList>
                                                                    <br />
                                                                    <asp:DropDownList ID="ddlAddressCatOld" runat="server" DataTextField="CATEGORY_NAME"
                                                                        DataValueField="AC_CODE" class="fieldNormalOld" Enabled="false" Visible="false">
                                                                    </asp:DropDownList>
																
                                                                </td>
                                                            </tr>
                                                            <tr>										   
                                                                <td class="tdNormal">
                                                                    Delivery Method
                                                                </td>
                                                                <td class="tdNormal">
                                                                    <asp:DropDownList ID="ddlDeliveryMethod" runat="server" DataTextField="DELIVERY_METHOD_NAME"
                                                                        DataValueField="DM_CODE" class="fieldNormal">
                                                                    </asp:DropDownList>
                                                                    <br />
                                                                    <asp:DropDownList ID="ddlDeliveryMethodOld" runat="server" DataTextField="DELIVERY_METHOD_NAME"
                                                                        DataValueField="DM_CODE" class="fieldNormalold" Enabled="false" Visible="false">
                                                                    </asp:DropDownList>
                                                                </td>
                                                                <td class="tdNormal">
                                                                </td>
                                                            </tr>
                                                        </table>
                                                        <table border="0" cellpadding="0" cellspacing="0" class="action_TB_BgaddItem">
                                                            <tr>
                                                                <td>
                                                                    <asp:Button ID="btnCancelAddress" runat="server" Text="   Cancel   " class="Btn_M_Normal"
                                                                        CausesValidation="False" OnClick="btnCancelAddress_Click" />
                                                                    <asp:Button ID="btnSaveAddress" runat="server" Text="   Save   " class="Btn_M_Normal"
                                                                        OnClick="btnSaveAddress_Click"  OnClientClick="return validate()"  />
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </asp:Panel>
                                                </td>
                                            </tr>
                                        </table>
                                    </ContentTemplate>
                                </asp:UpdatePanel>
                                <asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
                                    <ContentTemplate>
                                        <table id="tbl3" style="display: block" border="0" width="95%" style="width: 95%"
                                            cellpadding="0" cellspacing="0" class="contTB">
                                            <tr>
                                                <td>
                                                    <table border="0" width="100%" cellpadding="0" cellspacing="0" style="width: 100%"
                                                        class="add_ItemTB">
                                                        <tr>
                                                            <td class="tdNormal">
                                                                <table border="0" style="width: 25%" cellpadding="0" cellspacing="0" class="add_ItemTB1">
                                                                    <tr>
                                                                        <td class="tdNormal" style="width: 20%">
                                                                            List Legend
                                                                        </td>
                                                                        <td class="tdNormal" style="width: 40%">
                                                                            <asp:TextBox ID="TextBox5" runat="server" Text="Deleted" BackColor="SkyBlue" class="fieldNormal"></asp:TextBox>
                                                                        </td>
                                                                        <td class="tdNormal" style="width: 40%">
                                                                            <asp:TextBox ID="TextBox6" runat="server" Text="Modified" BackColor="Tan" class="fieldNormal"></asp:TextBox>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                                <asp:GridView ID="gvServices" CssClass="gridMaster" runat="server" AutoGenerateColumns="False"
                                                                    DataKeyNames="as_code" AllowPaging="True" AllowSorting="True" CellPadding="4"
                                                                    ForeColor="#333333" GridLines="None" EmptyDataText="There are no Results" OnRowCommand="gvServices_RowCommand"
                                                                    OnRowDataBound="gvServices_RowDataBound" OnRowCreated="gvServices_RowCreated">
                                                                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                                                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" HorizontalAlign="Right" />
                                                                    <Columns>
                                                                        <asp:BoundField DataField="service_name" HeaderText="Service Id" />
                                                                        <asp:BoundField DataField="acct_number" HeaderText="Account No" />
                                                                        <asp:BoundField DataField="fee_merchant_acct_number" HeaderText="Merchant Fee Acc No" />
                                                                        <asp:BoundField DataField="fee_percent" HeaderText="Fee Percentage (Merchant)" />
                                                                        <asp:BoundField DataField="bank_fee_percent" HeaderText="Fee Percentage (Bank)" />
                                                                        <asp:BoundField DataField="record_date" HeaderText="Date" />
                                                                        <asp:BoundField DataField="key_entry" HeaderText="Key Entry" />
                                                                        <%-- 6--%>
                                                                        <asp:BoundField DataField="vat_fee_code" HeaderText="VAT" />
																		
                                                                        <asp:ButtonField ButtonType="Image" ItemStyle-Width="30px" CommandName="u" Text="Edit"
                                                                            ImageUrl="~/Images/edit.jpg">
                                                                            <ItemStyle Width="30px" />
                                                                        </asp:ButtonField>
                                                                        <asp:ButtonField ButtonType="Image" ItemStyle-Width="30px" CommandName="d" Text="Delete"
                                                                            ImageUrl="~/Images/delete.jpg">
                                                                            <ItemStyle Width="30px" />
                                                                        </asp:ButtonField>
                                                                        <asp:ButtonField ButtonType="Image" ItemStyle-Width="30px" CommandName="ar" Text="Add Service Report"
                                                                            ImageUrl="~/Images/reports/add.png">
                                                                            <ItemStyle Width="30px" />
                                                                        </asp:ButtonField>
                                                                        <asp:BoundField DataField="rec_flag" HeaderText="" />
                                                                        <asp:BoundField DataField="status" HeaderText="" />
                                                                        <asp:ButtonField ButtonType="Image" ItemStyle-Width="30px" CommandName="dr" Text="Delete Service Report"
                                                                            ImageUrl="~/Images/reports/delete.png">
                                                                            <ItemStyle Width="30px" />
                                                                        </asp:ButtonField>
                                                                        <asp:ButtonField ButtonType="Image" ItemStyle-Width="30px" CommandName="car" Text="Change Account Report"
                                                                            ImageUrl="~/Images/reports/edit.png">
                                                                            <ItemStyle Width="30px" />
                                                                        </asp:ButtonField>
                                                                    </Columns>
                                                                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                                                                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                                                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="Black" />
                                                                    <EditRowStyle BackColor="#999999" />
                                                                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" HorizontalAlign="Right" />
                                                                </asp:GridView>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                    <table border="0" cellpadding="0" cellspacing="0" class="action_TB_BgForm">
                                                        <tr>
                                                            <td>
                                                                <asp:Button ID="btnAddServices" runat="server" Text="     Add     " class="Btn_M_Normal"
                                                                    OnClick="btnAddServices_Click" />
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="tdNormal">
                                                    <asp:Panel ID="pnlServices" runat="server" Width="100%" Visible="false">
                                                        <fieldset id="addItem">
                                                            <legend id="addItem">Service Details</legend>
                                                        </fieldset>

                                                        <script language="javascript" type="text/javascript">
                                                            showservice();
                                                        </script>

                                                        <table border="0" cellpadding="0" cellspacing="0" class="add_ItemTB">
                                                            <tr>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Service ID
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:DropDownList ID="ddlServices" runat="server" DataTextField="service_name" DataValueField="Service_code"
                                                                        class="fieldNormal" AutoPostBack="True" OnSelectedIndexChanged="ddlServices_SelectedIndexChanged">
                                                                    </asp:DropDownList>
                                                                </td>
                                                                <td class="tdNormal" style="width: 10%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Currency
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:DropDownList ID="ddlCurrancy" runat="server" DataTextField="currency" DataValueField="iso_code"
                                                                        class="fieldNormal">
                                                                    </asp:DropDownList>
                                                                    <br />
                                                                    <asp:DropDownList ID="ddlCurrancyOld" runat="server" DataTextField="currency" DataValueField="iso_code"
                                                                        class="fieldNormalOld" Enabled="false" Visible="false">
                                                                    </asp:DropDownList>
                                                                </td>
                                                            </tr>
                                                             <tr>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Account Number
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:TextBox ID="txtAccNo" runat="server" class="fieldNormal" MaxLength="16"></asp:TextBox><br />
                                                                    <asp:TextBox ID="txtAccNoOld" runat="server" class="fieldNormalOld" Enabled="false"
                                                                        Visible="false"></asp:TextBox>
                                                                </td>
                                                                <td class="tdNormal" style="width: 10%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Vate Rate %
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:DropDownList ID="ddlVat" runat="server" DataTextField="V_DESCRIPTION" DataValueField="V_CODE"
                                                                        class="fieldNormal" AutoPostBack="True">
                                                                    </asp:DropDownList>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Cost Branch
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:DropDownList ID="ddlBranchAcc" runat="server" DataTextField="branch_cd" DataValueField="branch_cd"
                                                                        class="fieldNormal" AutoPostBack="True" OnSelectedIndexChanged="ddlBranchAcc_SelectedIndexChanged">
                                                                    </asp:DropDownList>
                                                                    <asp:TextBox ID="txtbranchAccName" MaxLength="50" runat="server" class="fieldNormal"></asp:TextBox><br />
                                                                </td>
                                                                <td class="tdNormal" style="width: 10%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Account Number
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:TextBox ID="txtBrAccNo" runat="server" ReadOnly="true" class="fieldNormal" MaxLength="16"></asp:TextBox><br />
                                                                    <asp:CheckBox ID="chkKeyEntry" runat="server" class="fieldNormal" Visible="false" />
                                                                    <asp:CheckBox ID="chkKeyEntryOld" runat="server" class="fieldNormalOld" Enabled="false"
                                                                        Visible="false" />
                                                                    <asp:TextBox ID="txtBrAccNoOld" runat="server" class="fieldNormalOld" Enabled="false"
                                                                        Visible="false"></asp:TextBox>
                                                                </td>
                                                            </tr>

                                                               <tr runat="server" id="tr7">
                                                                <td class="tdNormal" style="width: 15%">
                                                                    <br />
                                                                    <asp:Label ID="lblFixedFlag" runat="server" Text="Fee & Charges" class="fieldError"></asp:Label>
                                                                    <br />
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
																	<%  if (ddlServices.SelectedValue == "001")
                                                                     {%>			
                                                                     	<asp:RadioButton ID="rdPercentage" runat="server" Checked="True" GroupName="ff" Text="Percentage" Visible=false />
                                                                        <asp:RadioButton ID="rdFixed" runat="server" Checked="false" GroupName="ff" Text="Fixed" Visible=false/>														   
                                                                        <asp:Button ID="bttnUpdateFeeByMCC" runat="server" class="Btn_L_Normal" OnClick="bttnUpdateFeeByMCC_Click" OnClientClick="" Text="Get Fee By MCC" />
																	<%} %>																   
                                                                </td>
                                                                <td class="tdNormal" style="width: 10%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 15%">
																																							 
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
																																																  
																																																			  
                                                                </td>
                                                            </tr>
                                                            <tr runat="server" id="tr8" Visible=false>
                                                                <td class="tdNormal" colspan=5>
                                                                    Fixed Fee (Maximum Fees <asp:Label ID="lblMaxFees" runat="server" class="fieldNormal">0.0</asp:Label> )
                                                                </td>
                                                            </tr>
                                                            </tr>

                                                               <tr runat="server" id="tr9" Visible=false>
                                                                <td class="style2">
                                                                     Fixed Fees (Merchant)
                                                                </td>
                                                                <td class="style3">
                                                                    <asp:TextBox ID="txtFixedFeesMerchant" runat="server" MaxLength="10" class="fieldNormal"></asp:TextBox><br />
                                                                    
                                                                </td>
                                                                <td class="style4">

                                                                </td>
                                                                <td class="style2">
                                                                    
                                                                        Fixed Fees(Branch)
                                                                    
                                                                </td>
                                                                <td class="style3">
                                                                    <asp:TextBox ID="txtFixedFeesBranch" runat="server" MaxLength="10" class="fieldNormal"></asp:TextBox><br />
                                                                </td>
                                                            </tr>
                                                             <tr>
                                                                <td class="style2">
                                                                     <asp:Label ID="lblPICapacity" runat="server" class="fieldNormal">Fee Capacity(Merchant)</asp:Label>
                                                                </td>
                                                                <td class="style3">
                                                                    <asp:TextBox ID="txtPICapacity" runat="server" MaxLength="10" class="fieldNormal"
                                                                        OnBlur="return Zero()"></asp:TextBox><br />
                                                                    <asp:TextBox ID="txtPICapacityOld" runat="server" class="fieldNormalOld" OnBlur="return Zero()"
                                                                        Enabled="false" Visible="false"></asp:TextBox>
                                                                </td>
                                                                <td class="style4">
                                                                </td>
                                                                <td class="style2">
                                                                    <asp:Label ID="lblPICapacityBank" runat="server" class="fieldNormal" Visible="false" >
                                                                        Fee Capacity(Branch)
                                                                    </asp:Label>
                                                                </td>
                                                                <td class="style3">
                                                                    <asp:TextBox ID="txtPICapacityBank" runat="server" MaxLength="10" class="fieldNormal" Visible="false"
                                                                        ></asp:TextBox><br />
                                                                    <asp:TextBox ID="txtPICapacityBankOld" runat="server" class="fieldNormalOld" OnBlur="return Zero()"
                                                                        Enabled="false" Visible="false"></asp:TextBox>
                                                                </td>
                                                            </tr>
                                                            <tr runat="server" id="rowSPAN1">
                                                                <td class="tdNormal" style="width: 15%">
                                                                    SPAN Max Fee % Limit(Upper Segment)
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                <asp:Label ID="lblSpanFeeLimit" runat="server" Text="" class="fieldError"></asp:Label>
                                                             
                                                                </td>
																		
                                                                <td class="tdNormal" style="width: 10%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    SPAN Max Fee % Limit (Lower Segment )
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:Label ID="lblSpanFeeLimitLower" runat="server" Text="<%=Span_Fee_Limit_lower %>" class="fieldError"></asp:Label>
                                                                
																																																		   
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Fee Percentage (merchant)
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:TextBox ID="txtPercentM" runat="server" MaxLength="6" class="fieldNormal" OnBlur="return total()"></asp:TextBox><br />
                                                                    <asp:TextBox ID="txtPercentMOld" runat="server" MaxLength="6" class="fieldNormalOld"
                                                                        Enabled="false" Visible="false"></asp:TextBox>
                                                                </td>
                                                                <td class="tdNormal" style="width: 10%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Fee Percentage (Branch)
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:TextBox ID="txtPercentB" runat="server" MaxLength="6" class="fieldNormal" OnBlur="return total()"></asp:TextBox><br />
                                                                    <asp:TextBox ID="txtPercentBOld" runat="server" MaxLength="6" class="fieldNormalOld"
                                                                        Enabled="false" Visible="false"></asp:TextBox>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Computed Total Fee %
																				 
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:Label ID="lblPercent" runat="server" class="fieldBlueLabel"></asp:Label>
																																										 
																																												   
																									  
																									  
																									  
																									  
																									  
																									  
																									  
																									  
																									  
																					   
                                                                </td>
                                                                <td class="tdNormal" style="width: 10%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 15%">
                                                                   <asp:Label ID="lblSettledBy" runat="server" class="fieldBlueLabel" Visible=false>Settled By</asp:Label>
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                  
																	 <asp:DropDownList ID="ddlSettledBy" runat="server" class="fieldNormal" Visible=false DataTextField="Text"
                                                                        DataValueField="ID">
                                                                        <asp:ListItem Value="001">By Total Settlement Amount</asp:ListItem>
                                                                        <asp:ListItem Value="002">By A Txn</asp:ListItem>
                                                                    </asp:DropDownList>		
																	
                                                                </td>
                                                            </tr>
                                                     

                                                            <tr runat="server" id="rowSPAN2">
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Fee Percentage Lower (merchant)
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:TextBox ID="txtPercentM_lower" runat="server" class="fieldNormal" OnBlur="return total_lower()"></asp:TextBox><br />
                                                                    <asp:TextBox ID="txtPercentM_lowerOld" runat="server" class="fieldNormalOld" Enabled="false"
                                                                        Visible="false"></asp:TextBox>
                                                                </td>
                                                                <td class="tdNormal" style="width: 10%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Fee Percentage Lower (Branch)
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:TextBox ID="txtPercentB_lower" runat="server" MaxLength="6" class="fieldNormal"
                                                                        OnBlur="return total_lower()"></asp:TextBox><br />
                                                                    <asp:TextBox ID="txtPercentB_lowerOld" runat="server" MaxLength="6" class="fieldNormalOld"
                                                                        Enabled="false" Visible="false"></asp:TextBox>
                                                                </td>
                                                            </tr>
                                                            <tr runat="server" id="rowSPAN3">
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Computed Total Fee % Lower
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:Label ID="lblPercent_lower" runat="server" class="fieldBlueLabel"></asp:Label>
																												
																																	
																						  
																																																											
                                                                </td>
                                                                <td class="tdNormal" style="width: 10%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 15%">
                                                                
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
																																											 
																																					 
																																										  
																																													
                                                                </td>
                                                            </tr>
                                                            <tr runat="server" id="PIRow" visible="false">
                                                                <td class="tdNormal" style="width: 15%">
                                                                    <asp:Label ID="lblPIWaive" runat="server" class="fieldNormal" Visible="false">Waive NCB Cards</asp:Label>
                                                                    Payment Delay
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:CheckBox ID="chkPIWaive" runat="server" class="fieldNormal" Visible="false" /><br />
                                                                    <asp:CheckBox ID="chkPIWaiveOld" runat="server" class="fieldNormalOld" Enabled="false"
                                                                        Visible="false" />
                                                                    <asp:DropDownList ID="ddlPayDelay" runat="server" class="fieldNormal" DataTextField="Text"
                                                                        DataValueField="ID">
                                                                        <asp:ListItem>1</asp:ListItem>
                                                                        <asp:ListItem>2</asp:ListItem>
                                                                        <asp:ListItem>3</asp:ListItem>
                                                                        <asp:ListItem>4</asp:ListItem>
                                                                        <asp:ListItem>5</asp:ListItem>
                                                                        <asp:ListItem>6</asp:ListItem>
                                                                        <asp:ListItem>7</asp:ListItem>
                                                                        <asp:ListItem>8</asp:ListItem>
                                                                        <asp:ListItem>9</asp:ListItem>
                                                                    </asp:DropDownList>
                                                                </td>
                                                                <td class="tdNormal" style="width: 10%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 15%">
                                                                     
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                     
                                                                </td>
                                                            </tr>
                                                           
                                                        </table>
                                                        <table border="0" cellpadding="0" cellspacing="0" class="action_TB_BgaddItem">
                                                            <tr>
                                                                <td>
                                                                    <asp:Button ID="btnCancelService" runat="server" Text="   Cancel   " class="Btn_M_Normal"
                                                                        CausesValidation="False" OnClick="btnCancelService_Click" />
                                                                    <asp:Button ID="btnSaveService" runat="server" Text="   Save   " class="Btn_M_Normal"
                                                                        OnClientClick="" OnClick="btnSaveService_Click" />
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </asp:Panel>
                                                </td>
                                            </tr>
                                        </table>
                                    </ContentTemplate>
                                </asp:UpdatePanel>
                                <asp:UpdatePanel ID="UpdatePanel3" runat="server" UpdateMode="Conditional">
                                    <ContentTemplate>
                                        <table id="tbl4" style="display: block" border="0" width="95%" style="width: 95%"
                                            cellpadding="0" cellspacing="0" class="contTB">
                                            <tr>
                                                <td>
                                                    <table border="0" width="100%" cellpadding="0" cellspacing="0" style="width: 100%"
                                                        class="add_ItemTB">
                                                        <tr>
                                                            <td class="tdNormal" colspan="5">
                                                                <table border="0" style="width: 15%" cellpadding="0" cellspacing="0" class="add_ItemTB1">
                                                                    <tr>
                                                                        <td class="tdNormal" style="width: 20%">
                                                                            List Legend
                                                                        </td>
                                                                        <td class="tdNormal" style="width: 80%">
                                                                            <asp:TextBox ID="TextBox8" runat="server" Text="Modified" BackColor="Tan" class="fieldNormal"></asp:TextBox>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                                <asp:GridView ID="gvTerminals" runat="server" AllowPaging="True" AllowSorting="True"
																																	
                                                                    AutoGenerateColumns="False" CellPadding="4" CssClass="gridMaster" DataKeyNames="dvl_code"
                                                                    EmptyDataText="There are no Results" ForeColor="#333333" GridLines="None" OnRowCommand="gvTerminals_RowCommand"
                                                                    OnRowDataBound="gvTerminals_RowDataBound" OnRowCreated="gvTerminals_RowCreated"
                                                                    OnSelectedIndexChanged="gvTerminals_SelectedIndexChanged">
                                                                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                                                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" HorizontalAlign="Right" />
                                                                    <Columns>
                                                                        <asp:BoundField DataField="terminal_id" HeaderText="Terminal Id" />
                                                                        <asp:BoundField DataField="serial_number" HeaderText="Terminal Type" />
                                                                        <asp:BoundField DataField="TERMINAL_STATUSS" HeaderText="Status" />
                                                                        <asp:BoundField DataField="sama_flag" HeaderText="Sama" />
                                                                        <asp:ButtonField ButtonType="Image" CommandName="asama" ImageUrl="~/Images/approve.jpg"
                                                                            ItemStyle-Width="20px" Text="Approve Sama" />
                                                                        <asp:ButtonField ButtonType="Image" CommandName="dsama" ImageUrl="~/Images/reject.jpg"
                                                                            ItemStyle-Width="20px" Text="Decline Sama" />
                                                                        <asp:BoundField DataField="support_flag" HeaderText="Support" />
                                                                        <asp:ButtonField ButtonType="Image" CommandName="asup" ImageUrl="~/Images/approve.jpg"
                                                                            ItemStyle-Width="20px" Text="Approve Support" />
                                                                        <asp:ButtonField ButtonType="Image" CommandName="dsup" ImageUrl="~/Images/reject.jpg"
                                                                            ItemStyle-Width="20px" Text="Decline Support" />
                                                                        <asp:ButtonField ButtonType="Image" CommandName="u" ImageUrl="~/Images/edit.jpg"
                                                                            ItemStyle-Width="20px" Text="Edit">
                                                                            <ItemStyle Width="30px" />
                                                                        </asp:ButtonField>
                                                                        <asp:ButtonField ButtonType="Image" CommandName="d" ImageUrl="~/Images/delete.jpg"
                                                                            ItemStyle-Width="20px" Text="Delete">
                                                                            <ItemStyle Width="30px" />
                                                                        </asp:ButtonField>
                                                                        <asp:ButtonField ButtonType="Image" CommandName="r" ImageUrl="~/Images/update.jpg"
                                                                            ItemStyle-Width="20px" Text="reset">
                                                                            <ItemStyle Width="30px" />
                                                                        </asp:ButtonField>
                                                                        <asp:ButtonField ButtonType="Image" CommandName="v" ImageUrl="~/Images/images1.jpg"
																																   
                                                                            ItemStyle-Width="20px" Text="View Terminal Charges" />
                                                                        <asp:ButtonField ButtonType="Image" CommandName="t" ImageUrl="~/Images/trans.jpg"
                                                                            ItemStyle-Width="20px" Text="Transfer Terminal" />
                                                                        <asp:ButtonField ButtonType="Image" CommandName="h" ImageUrl="~/Images/document_view.jpg"
                                                                            ItemStyle-Width="30px" Text="View History">
																								
                                                                            <ItemStyle Width="30px" />
                                                                        </asp:ButtonField>
                                                                        <asp:BoundField DataField="rec_flag" HeaderText="" />
                                                                        <asp:BoundField DataField="status" HeaderText="" />
                                                                        <asp:ButtonField ButtonType="Image" ItemStyle-Width="30px" CommandName="dt" Text="Disable Terminal Report"
                                                                            ImageUrl="~/Images/reports/delete.png">
                                                                            <ItemStyle Width="30px" />
                                                                        </asp:ButtonField>
                                                                        <asp:ButtonField ButtonType="Image" ItemStyle-Width="30px" CommandName="rt" Text="Replace Terminal Report"
                                                                            ImageUrl="~/Images/reports/edit.png">
                                                                            <ItemStyle Width="30px" />
                                                                        </asp:ButtonField>
                                                                    </Columns>
                                                                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                                                                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                                                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="Black" />
                                                                    <EditRowStyle BackColor="#999999" />
                                                                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" HorizontalAlign="Right" />
																								  
                                                                </asp:GridView>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td class="tdNormal" style="width: 20%">
                                                                Go To Page:
                                                                <asp:DropDownList ID="ddlPages" runat="server" class="fieldNormal" AutoPostBack="True"
                                                                    Width="50px" OnSelectedIndexChanged="ddlPages_SelectedIndexChanged">
                                                                </asp:DropDownList>
                                                            </td>
                                                            <td class="tdNormal">
                                                            </td>
                                                            <td class="tdNormal">
                                                            </td>
                                                            <td class="tdNormal">
                                                            </td>
                                                            <td class="tdNormal">
                                                            </td>
                                                        </tr>
                                                    </table>
                                                    <table border="0" cellpadding="0" cellspacing="0" class="action_TB_BgForm">
                                                        <tr>
                                                            <td>
                                                                <asp:Button ID="btnAddTerminalBulk" runat="server" Text="     Add Bulk     " class="Btn_M_Normal"
                                                                    OnClick="btnAddTerminalBulk_Click" Visible="False" />
                                                                <asp:Button ID="btnAddTerminal" runat="server" class="Btn_M_Normal" OnClick="btnAddTerminal_Click"
                                                                    Text="     Add     " />
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="tdNormal">
                                                    <asp:Panel ID="pnlTerminals" runat="server" Width="100%" Visible="false">
                                                        <fieldset id="addItem">
                                                            <legend id="addItem">Terminal Details</legend>
                                                        </fieldset>

                                                        <script language="javascript" type="text/javascript">
                                                            showservice();
                                                        </script>

                                                        <table border="0" cellpadding="0" cellspacing="0" class="add_ItemTB">
                                                            <tr runat="server" id="firstrow">
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Terminal ID
                                                                </td>
                                                                <td class="tdNormal" colspan="2" style="width: 30%">
                                                                    <asp:DropDownList ID="ddlTerminals" runat="server" DataTextField="term_type" DataValueField="terminal_id"
                                                                        class="fieldNormal" AutoPostBack="True" OnSelectedIndexChanged="ddlTerminals_SelectedIndexChanged">
																																   
                                                                    </asp:DropDownList>
                                                                </td>
                                                                <td class="tdNormal" style="width: 15%; display: none">
                                                                    Region
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%; display: none">
                                                                    <asp:DropDownList ID="ddlRegion" runat="server" class="fieldNormal">
                                                                        <asp:ListItem Value="0110">Central</asp:ListItem>
                                                                        <asp:ListItem Value="0210">Western</asp:ListItem>
                                                                        <asp:ListItem Value="0310">Eastern</asp:ListItem>
                                                                        <asp:ListItem Value="0410">Nor.West</asp:ListItem>
                                                                        <asp:ListItem Value="0610">Nor.Central</asp:ListItem>
                                                                        <asp:ListItem Value="0710">South</asp:ListItem>
                                                                    </asp:DropDownList>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Installation Date
                                                                </td>
                                                                <%--<td class="tdNormal" style="width: 30%">
                                                                    <asp:Label ID="lblInstall" runat="server" Text="" class="fieldNormal"></asp:Label>
                                                                </td>--%>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <uc1:DatePicker ID="dtInstall" runat="server" width="250" />
                                                                    <asp:TextBox ID="lblInstall" ReadOnly="false" runat="server" class="fieldNormalOld"
                                                                        Enabled="false" Visible="false"></asp:TextBox>
                                                                </td>
                                                                <td class="tdNormal" style="width: 10%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Sama Confirm Date
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <uc1:DatePicker ID="dateSamaConfirm" runat="server" width="250" />
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Re-Installation Date
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <uc1:DatePicker ID="dtReInstall" runat="server" width="250" />
                                                                </td>
                                                                <td class="tdNormal" style="width: 10%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 15%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                </td>
                                                            </tr>
                                                            <tr style="display: none">
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Cost
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:Label ID="lblTermCost" runat="server" Text="" class="fieldNormal"></asp:Label>
                                                                </td>
                                                                <td class="tdNormal" style="width: 10%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Revenue
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:Label ID="lblTermRevenue" runat="server" Text="" class="fieldNormal"></asp:Label>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Terminal Identity Data
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:TextBox ID="txtTerminalIdentityData" MaxLength="8" runat="server" class="fieldNormal"
                                                                        Width="100"></asp:TextBox>
                                                                    <asp:Button ID="btnCorrectIdentity" runat="server" Text="Correct Identity" class="Btn_L_Normal"
                                                                        CausesValidation="False" OnClick="btnCorrectIdentity_Click" /><br />
                                                                    <asp:TextBox ID="txtTerminalIdentityDataOld" MaxLength="8" runat="server" class="fieldNormalOld"
                                                                        Enabled="false" Visible="false" Width="100"></asp:TextBox>
                                                                </td>
                                                                <td class="tdNormal" style="width: 10%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 15%; display: none">
                                                                    Language
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%; display: none">
                                                                    <asp:DropDownList ID="DropDownList1" runat="server" DataTextField="language_name"
                                                                        DataValueField="lang_code" class="fieldNormal">
                                                                    </asp:DropDownList>
                                                                    <br />
                                                                    <asp:DropDownList ID="DropDownList1Old" runat="server" DataTextField="language_name"
                                                                        DataValueField="lang_code" class="fieldNormalOld" Enabled="false" Visible="false">
                                                                    </asp:DropDownList>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Terminal Location
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:TextBox ID="txtTerminalLocation" runat="server" class="fieldNormal"></asp:TextBox><br />
                                                                    <asp:TextBox ID="txtTerminalLocationOld" runat="server" class="fieldNormalOld" Enabled="false"
                                                                        Visible="false"></asp:TextBox>
                                                                </td>
                                                                <td class="tdNormal" style="width: 10%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Primary Phone Number
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:TextBox ID="txtPrimPhoneNo2" MaxLength="3" Width="50" runat="server" class="fieldNormal"></asp:TextBox>
																										  
                                                                    <asp:TextBox ID="txtPrimPhoneNo" MaxLength="7" Width="200" runat="server" class="fieldNormal"></asp:TextBox><br />
                                                                    <asp:TextBox ID="txtPrimPhoneNoOld2" Width="50" runat="server" class="fieldNormalold"
                                                                        Enabled="false" Visible="false"></asp:TextBox>
                                                                    <asp:TextBox ID="txtPrimPhoneNoOld" Width="200" runat="server" class="fieldNormalold"
                                                                        Enabled="false" Visible="false"></asp:TextBox>
                                                                </td>
                                                            </tr>
                                                            <tr style="display: none">
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Alternative Host Access
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:TextBox ID="txtAltHostAcc" runat="server"   MaxLength="30"  class="fieldNormal"></asp:TextBox><br />
                                                                    <asp:TextBox ID="txtAltHostAccOld" runat="server" class="fieldNormalold" Enabled="false"
                                                                        Visible="false"></asp:TextBox>
                                                                </td>
                                                                <td class="tdNormal" style="width: 10%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Primary Host Access
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:TextBox ID="txtPrimHostAcc" runat="server"  MaxLength="30" class="fieldNormal"></asp:TextBox><br />
                                                                    <asp:TextBox ID="txtPrimHostAccOld" runat="server" class="fieldNormalOld" Enabled="false"
                                                                        Visible="false"></asp:TextBox>
                                                                </td>
																
                                                            </tr>
                                                            <tr>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Status
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:DropDownList ID="ddlStatus" Enabled="false" runat="server" DataTextField="TERMINAL_STATUS_DESC"
                                                                        DataValueField="TERMINAL_STATUS_CODE" class="fieldNormal">
                                                                    </asp:DropDownList>
                                                                </td>
                                                                <td class="tdNormal" style="width: 10%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Service Type
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:DropDownList ID="ddlSrvType" runat="server" DataTextField="st_name" Width="100"
                                                                        DataValueField="st_code" class="fieldNormal">
                                                                    </asp:DropDownList>
                                                                    <asp:Button ID="btnUpdateSrvType" runat="server" Text="Update Service Type" class="Btn_L_Normal1"
																													   
                                                                        CausesValidation="False" OnClick="btnUpdateSrvType_Click" Visible="False" /><br />
                                                                    <asp:DropDownList ID="ddlSrvTypeOld" runat="server" DataTextField="st_name" DataValueField="st_code"
                                                                        class="fieldNormalOld" Enabled="false" Visible="false">
                                                                    </asp:DropDownList>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Vendor
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:TextBox ID="txtVendor" ReadOnly="true" runat="server" class="fieldNormal"></asp:TextBox>
                                                                </td>
                                                                <td class="tdNormal" style="width: 10%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    SR Number
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:TextBox ID="txtSRNumber" runat="server"    MaxLength="50"  class="fieldNormal"></asp:TextBox>
                                                                </td>
                                                            </tr>
                                                            <tr style="display: none">
                                                                <td class="tdNormal" style="width: 15%">
                                                                    TRSM
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:TextBox ID="txtTRSM" ReadOnly="true" runat="server" class="fieldNormal"></asp:TextBox>
                                                                </td>
                                                                <td class="tdNormal" style="width: 10%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Old Client ID
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:TextBox ID="txtoldClientID" ReadOnly="true" runat="server" class="fieldNormal"></asp:TextBox>
                                                                </td>
                                                            </tr>
                                                            <tr runat="server" id="oldclientrow">
                                                                <td class="tdNormal" style="width: 15%">
																	
                                                                    Update Action
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
																	
                                                                    <asp:DropDownList ID="ddlUpdateAction" runat="server" class="fieldNormal" DataTextField="name_en"
                                                                        DataValueField="id" Enabled="true">
                                                                    </asp:DropDownList>
																	
                                                                </td>
                                                                <td class="tdNormal" style="width: 10%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Replacement Terminal ID
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:TextBox ID="txtReplacementTerminal" ReadOnly="false" runat="server" class="fieldNormal"></asp:TextBox><br />
                                                                    <asp:TextBox ID="txtReplacementTerminalOld" ReadOnly="false" runat="server" class="fieldNormalOld"
                                                                        Enabled="false" Visible="false"></asp:TextBox>
                                                                </td>
                                                            </tr>
                                                            <tr runat="server" id="rowVendor">
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Vendor Notification Date
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:TextBox ID="txtNotifyDate" ReadOnly="true" runat="server" class="fieldNormal"></asp:TextBox>
                                                                </td>
                                                                <td class="tdNormal" style="width: 10%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Vendor Response Date
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:TextBox ID="txtResponseDate" ReadOnly="true" runat="server" class="fieldNormal"></asp:TextBox>
                                                                </td>
                                                            </tr>
                                                            <tr runat="server" id="TrVendorNote">
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Service Representative
                                                                </td>
                                                                <td class="tdNormal" colspan="4">
                                                                    <asp:TextBox ID="txtVendorNote" ReadOnly="true" runat="server" class="fieldMultiLine"></asp:TextBox>
                                                                </td>
                                                                <%--<td class="tdNormal">
                                                                </td>--%>
                                                                <%-- <td class="tdNormal">
                                                                    
                                                                </td>--%>
                                                                <%--<td class="tdNormal">
                                                                   
                                                                </td>--%>
                                                            </tr>
                                                            <tr runat="server" id="tr6">
                                                                <td class="tdNormal" style="width: 15%">
                                                                    <br />
                                                                    <asp:Label ID="Label1" runat="server" Text="Fee & Charges on Terminal" class="fieldError"></asp:Label>
                                                                    <br />
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 10%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 15%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                </td>
                                                            </tr>
                                                            <tr runat="server" id="trLowUsage1">
                                                                <td class="tdNormal" style="width: 15%">
                                                                    MADA Low Usage Cap Limit
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                 <asp:Label ID="lblLowUsageCapLimit" runat="server" Text="" class="fieldError"></asp:Label>
                                                                   <%-- <asp:TextBox ID="lblLowUsageCapLimit" ReadOnly="true" runat="server" class="fieldNormal"></asp:TextBox>--%>
                                                                </td>
                                                                <td class="tdNormal" style="width: 10%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 15%">
																  
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                </td>
                                                            </tr>
                                                       
                                                            <tr runat="server" id="trLowUsage">
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Low Usage Charges Merchant
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:TextBox ID="txtLowUsageChargesPerTermnial" MaxLength="16" runat="server" class="fieldNormal"></asp:TextBox>
                                                                    <asp:RangeValidator ID="rvclass" runat="server" ControlToValidate="txtLowUsageChargesPerTermnial"
                                                                        ErrorMessage="Amount Range (0 - Max. Cap Value)" MinimumValue="0" MaximumValue="10000"
                                                                        Type="Double">  </asp:RangeValidator>
   
												  
                                                                </td>
                                                                <td class="tdNormal" style="width: 10%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Low Usage Charges Branch 
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:TextBox ID="txtLowUsageChargesPerTermnialBranch" MaxLength="16" runat="server"
                                                                        class="fieldNormal"></asp:TextBox>
                                                                    <asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="txtLowUsageChargesPerTermnialBranch"
                                                                        ErrorMessage="Amount Range (0 - Max. Cap Value)" MinimumValue="0" MaximumValue="10000"
                                                                        Type="Double">  </asp:RangeValidator>
   
                                                                </td>
                                                            </tr>
                                                                 <tr>
                                                                <td class="tdNormal">
                                                                    Terminal Business Type
                                                                </td>
                                                                <td class="tdNormal">
                                                                    <asp:DropDownList ID="ddlTerminalBusinessType" runat="server" DataTextField="business_type_desc"
                                                                        DataValueField="business_type_id" class="fieldNormal" AutoPostBack="True" OnSelectedIndexChanged="ddlTerminalBusinessType_SelectedIndexChanged">
                                                                    </asp:DropDownList>
                                                                   
                                                                </td>
                                                                <td class="tdNormal">
                                                                </td>
                                                                <td class="tdNormal">
                                                                    Terminal Provider (Aggregator name)
                                                                </td>
                                                                <td class="tdNormal">
                                                                    <asp:DropDownList ID="ddlTerminalProvider" runat="server" DataTextField="Terminal_Provider_desc"
                                                                        DataValueField="Terminal_Provider_id" class="fieldNormal">
                                                                    </asp:DropDownList>
                                                                   </td>
                                                            </tr>
                                                            <tr runat="server" id="tfCostOfPOS">
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Cost Of POS
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:TextBox ID="txtCostOfPOS" MaxLength="6" runat="server" class="fieldNormal"></asp:TextBox>
                                                                    <asp:RangeValidator ID="RangeValidatorCostOfPOS" runat="server" ControlToValidate="txtCostOfPOS"
                                                                        ErrorMessage="Amount Range (0 - Max. Cap Value)" MinimumValue="0" Type="Double">  </asp:RangeValidator>
                                                                </td>
                                                                <td class="tdNormal" style="width: 10%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Max. Cap Cost of POS
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:Label ID="lblCostOfPosCap" runat="server" Text="" class="fieldError"></asp:Label>
                                                           
                                                                    <%--<asp:TextBox ID="txtCostOfPosCap" ReadOnly="true" runat="server" class="fieldNormal"></asp:TextBox>--%>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                        <table border="0" cellpadding="0" cellspacing="0" class="action_TB_BgaddItem">
                                                            <tr>
                                                                <td>
                                                                    <asp:Button ID="btnCancelTerminal" runat="server" Text="   Cancel   " class="Btn_M_Normal"
                                                                        CausesValidation="False" OnClick="btnCancelTerminal_Click" />
                                                                    <asp:Button ID="btnSaveTerminal" runat="server" Text="   Save   " class="Btn_M_Normal"
                                                                        OnClick="btnSaveTerminal_Click"
                                                                        />  
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </asp:Panel>
                                                    <asp:Panel ID="PnlTerminalBulk" runat="server" Width="100%" Visible="false">
                                                        <fieldset id="addItem">
                                                            <legend id="addItem">Terminal Bulk Details</legend>
                                                        </fieldset>

                                                        <script language="javascript" type="text/javascript">
                                                            showservice();
                                                        </script>

                                                        <br />

                                                        <table border="0" cellpadding="0" cellspacing="0" class="add_ItemTB">
                                                            <tr runat="server" id="Tr5">
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Vendor
                                                                </td>
                                                                <td class="tdNormal" colspan="2" style="width: 30%">
                                                                    <asp:DropDownList ID="ddlVendor" runat="server" DataTextField="v_name" DataValueField="v_code"
                                                                        class="fieldNormal" AutoPostBack="true" OnSelectedIndexChanged="ddlVendor_SelectedIndexChanged">
                                                                    </asp:DropDownList>
                                                                </td>
																
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Terminal Type
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:DropDownList ID="ddlTerminalType" runat="server" DataTextField="type_name" DataValueField="type_code"
                                                                        class="fieldNormal" Enabled="false">
                                                                    </asp:DropDownList>
																   
                                                                </td>
                                                            </tr>
															
																														
                                                            <tr>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Service Type
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:DropDownList ID="ddlServiceType" runat="server" DataTextField="st_name" DataValueField="st_code"
                                                                        class="fieldNormal">
                                                                    </asp:DropDownList>
																	
                                                                </td>
                                                                <td class="tdNormal" style="width: 10%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Status
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:DropDownList ID="ddlStatusBulk" runat="server" DataTextField="terminal_status_desc"
                                                                        DataValueField="terminal_status_code" class="fieldNormal">
                                                                    </asp:DropDownList>
																	
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    SR Number
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:TextBox ID="txtSRNumberBulk" runat="server" class="fieldNormal" MaxLength="40"></asp:TextBox>
																									 
                                                                </td>
                                                                <td class="tdNormal" style="width: 10%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    No. of Terminal
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:TextBox ID="txtNoTerminals" runat="server" class="fieldNormal" MaxLength="10"></asp:TextBox>
																									   
                                                                </td>
                                                            </tr>
															
                                                        </table>
                                                        <table border="0" cellpadding="0" cellspacing="0" class="action_TB_BgaddItem">
                                                            <tr>
                                                                <td>
                                                                    <asp:Button ID="btnCancelTerminalBulk" runat="server" Text="   Cancel   " class="Btn_M_Normal"
                                                                        CausesValidation="False" OnClick="btnCancelTerminalBulk_Click" />
                                                                    <asp:Button ID="btnSaveTerminalBulk" runat="server" Text="   Save   " class="Btn_M_Normal"
                                                                        OnClick="btnSaveTerminalBulk_Click" />
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </asp:Panel>
                                                    <asp:Panel ID="pnlChanrges" runat="server" Width="100%" Visible="false">
                                                        <fieldset id="addItem1">
                                                            <legend id="addItem1">Terminal Charges</legend>
                                                        </fieldset>

                                                        <script language="javascript" type="text/javascript">
                                                            showservice();
                                                        </script>

                                                        <table border="0" width="90%" cellpadding="0" cellspacing="0" style="width: 100%"
                                                            class="add_ItemTB">
                                                            <tr>
                                                                <td class="tdNormal">
                                                                    <asp:GridView ID="gvTerminalCharges" CssClass="gridMaster" runat="server" AutoGenerateColumns="False"
                                                                        DataKeyNames="" AllowPaging="True" AllowSorting="True" CellPadding="4" ForeColor="#333333"
                                                                        GridLines="None" EmptyDataText="There are no Results" OnRowCommand="gvTerminals_RowCommand">
                                                                        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                                                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" HorizontalAlign="Right" />
                                                                        <Columns>
                                                                            <asp:BoundField DataField="chg_date" HeaderText="Date" ItemStyle-Width="20%" />
                                                                            <asp:BoundField DataField="amount" HeaderText="Amount" ItemStyle-Width="20%" />
                                                                            <asp:BoundField DataField="reason" HeaderText="Reason" />
                                                                        </Columns>
                                                                        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                                                                        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                                                        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="Black" />
                                                                        <EditRowStyle BackColor="#999999" />
                                                                        <AlternatingRowStyle BackColor="White" ForeColor="#284775" HorizontalAlign="Right" />
                                                                    </asp:GridView>
                                                                </td>
                                                            </tr>
                                                        </table>
														
                                                        <fieldset id="addItem">
                                                            <legend id="addItem">Add Terminal Charges</legend>
                                                        </fieldset>
                                                        <table border="0" cellpadding="0" cellspacing="0" class="add_ItemTB">
                                                            <tr runat="server" id="Tr1">
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Amount
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:TextBox ID="txtChargeAmount" runat="server"   MaxLength="20"  class="fieldNormal"></asp:TextBox>
                                                                </td>
                                                                <td class="tdNormal" style="width: 10%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Reason
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:DropDownList ID="ddlReason" runat="server" DataTextField="reason_nm" DataValueField="reason_cd"
                                                                        class="fieldNormal">
                                                                    </asp:DropDownList>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                        <table border="0" cellpadding="0" cellspacing="0" class="action_TB_BgaddItem">
                                                            <tr>
                                                                <td>
                                                                    <asp:Button ID="btnCancelTerminalCharge" runat="server" Text="   Cancel   " class="Btn_M_Normal"
                                                                        CausesValidation="False" OnClick="btnCancelTerminalCharge_Click" />
                                                                    <asp:Button ID="btnSaveTerminalCharge" runat="server" Text="   Save   " class="Btn_M_Normal"
                                                                        OnClick="btnSaveTerminalCharge_Click" />
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </asp:Panel>
													
                                                    <asp:Panel ID="pnlTransfer" runat="server" Width="100%" Visible="false">
                                                        <fieldset id="addItem">
                                                            <legend id="addItem">Transfer terminal</legend>
                                                        </fieldset>

                                                        <script language="javascript" type="text/javascript">
                                                            showservice();
                                                        </script>

                                                        <table border="0" cellpadding="0" cellspacing="0" class="add_ItemTB">
                                                            <tr runat="server" id="Tr2">
                                                                <td class="tdNormal" style="width: 15%">
                                                                    New Retailer ID
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:TextBox ID="txtNewClientNo" runat="server" class="fieldNormal" MaxLength="12"></asp:TextBox>
                                                                </td>
                                                                <td class="tdNormal" style="width: 10%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 15%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                </td>
                                                            </tr>
                                                        </table>
                                                        <table border="0" cellpadding="0" cellspacing="0" class="action_TB_BgaddItem">
                                                            <tr>
                                                                <td>
                                                                    <asp:Button ID="btnCancelTransfer" runat="server" Text="   Cancel   " class="Btn_M_Normal"
                                                                        CausesValidation="False" OnClick="btnCancelTransfer_Click" />
                                                                    <asp:Button ID="btnSaveTransfer" runat="server" Text="   Save   " class="Btn_M_Normal"
                                                                        OnClick="btnSaveTransfer_Click" />
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </asp:Panel>
													
                                                    <asp:Panel ID="pnlCancel" runat="server" Width="100%" Visible="false">
                                                        <fieldset id="addItem">
                                                            <legend id="addItem">Cancel terminal</legend>
                                                        </fieldset>

                                                        <script language="javascript" type="text/javascript">
                                                            showservice();
                                                        </script>

                                                        <table border="0" cellpadding="0" cellspacing="0" class="add_ItemTB">
                                                            <tr runat="server" id="Tr3">
                                                                <td class="tdNormal" style="width: 15%">
                                                                    New Terminal ID
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:TextBox ID="txtNewTerminalID" MaxLength="8" runat="server" class="fieldNormal"></asp:TextBox>
                                                                </td>
                                                                <td class="tdNormal" style="width: 10%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 15%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                </td>
                                                            </tr>
                                                        </table>
                                                        <table border="0" cellpadding="0" cellspacing="0" class="action_TB_BgaddItem">
                                                            <tr>
                                                                <td>
                                                                    <asp:Button ID="btnCancelReplace" runat="server" Text="   Cancel   " class="Btn_M_Normal"
                                                                        CausesValidation="False" OnClick="btnCancelReplace_Click" />
                                                                    <asp:Button ID="btnSaveReplace" runat="server" Text="   Save   " class="Btn_M_Normal"
                                                                        OnClick="btnSaveReplace_Click" />
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </asp:Panel>
                                                    <asp:Panel runat="server" ID="pnlVendor" Visible="false">
                                                        <fieldset id="addItem">
                                                            <legend id="addItem">Vendor Response</legend>
                                                        </fieldset>
                                                        <table border="1" width="100%" cellpadding="0" cellspacing="0" class="add_ItemTB">
                                                            <tr>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Date
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <uc1:DatePicker ID="dateVendorResponse" runat="server" width="250" />
                                                                </td>
                                                                <td class="tdNormal" style="width: 10%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Time
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:TextBox ID="txtTimeResponse" runat="server" class="fieldNormal"></asp:TextBox>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td colspan="5">
                                                                    <asp:Button ID="btnSaveResponse" runat="server" Text="Save" CssClass="Btn_L_Normal"
                                                                        OnClientClick="" OnClick="btnSaveResponse_Click" />
                                                                    <asp:Button ID="btnCancelResponse" runat="server" Text="Cancel" CssClass="Btn_L_Normal"
                                                                        OnClientClick="" OnClick="btnCancelResponse_Click" />
                                                                </td>
															
                                                            </tr>
                                                        </table>
                                                    </asp:Panel>
                                                </td>
                                            </tr>
                                        </table>
                                    </ContentTemplate>
                                </asp:UpdatePanel>
                                <table id="tbl5" border="0" width="95%" style="width: 95%" cellpadding="0" cellspacing="0"
                                    class="contTB">
                                    <tr>
                                        <td>
                                            <table border="0" width="100%" cellpadding="0" cellspacing="0" style="width: 100%"
                                                class="add_ItemTB">
                                                <tr>
                                                    <td class="tdNormal">
                                                        <asp:GridView ID="gvComments" CssClass="gridMaster" runat="server" AutoGenerateColumns="False"
                                                            DataKeyNames="" AllowPaging="False" AllowSorting="True" CellPadding="4" ForeColor="#333333"
                                                            GridLines="None" EmptyDataText="There are no Results" OnRowCommand="gvAddresses_RowCommand">
                                                            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                                            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" HorizontalAlign="Right" />
                                                            <Columns>
                                                                <asp:BoundField DataField="user_name" HeaderText="User Name" />
                                                                <asp:BoundField DataField="action_name" HeaderText="Action" />
                                                                <asp:BoundField DataField="action_date" HeaderText="Date" />
                                                                <asp:BoundField DataField="note" HeaderText="Note" />
																
                                                            </Columns>
                                                            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                                                            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                                            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="Black" />
                                                            <EditRowStyle BackColor="#999999" />
                                                            <AlternatingRowStyle BackColor="White" ForeColor="#284775" HorizontalAlign="Right" />
                                                        </asp:GridView>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                            <!------------------------------------body End2 ----------------------------------------------->
                            <br />
                            <table border="0" cellpadding="0" cellspacing="0" class="action_TB_BgaddItem">
                                <tr>
                                    <td>
                                        <asp:Button ID="btnSubmit" runat="server" Text="   SUBMIT   " class="Btn_M_Normal"
                                            OnClick="btnSubmit_Click" />
                                        <asp:Button ID="btnDuplicate" runat="server" Text="   Duplicate   " class="Btn_M_Normal"
                                            OnClick="btnDuplicate_Click" />
                                        <asp:Button ID="btnHistory" runat="server" Text="View Merchant History" class="Btn_L_Normal1"
                                            OnClick="btnHistory_Click" />
                                        <asp:Button ID="btnAccHistory" runat="server" Text="View Account History" class="Btn_L_Normal1"
                                            OnClick="btnAccHistory_Click" />
                                    </td>
                                    <td style="text-align: left" width="25%">
                                        <table border="0" width="50%" cellpadding="0" cellspacing="0" class="add_ItemTB1">
                                            <tr>
                                                <td class="tdNormal" style="width: 20%">
												   
                                                </td>
                                                <td class="tdNormal" style="width: 40%">
                                                </td>
                                                <td class="tdNormal" style="width: 40%">
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
							
                            <asp:Panel ID="pnlDuplicate" runat="server" Width="100%" Visible="false">
                                <fieldset id="addItem">
                                    <legend id="addItem">Duplicate Branch</legend>
                                </fieldset>

                                <script language="javascript" type="text/javascript">
                                    showgeneral();
                                </script>

                                <table border="0" cellpadding="0" cellspacing="0" class="add_ItemTB">
                                    <tr runat="server" id="Tr4">
                                        <td class="tdNormal" style="width: 15%">
                                            New Account ID
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:TextBox ID="txtNewAcctNo" MaxLength="16" runat="server" class="fieldNormal"></asp:TextBox>
                                        </td>
                                        <td class="tdNormal" style="width: 10%">
                                        </td>
                                        <td class="tdNormal" style="width: 15%">
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                        </td>
                                    </tr>
                                </table>
                                <table border="0" cellpadding="0" cellspacing="0" class="action_TB_BgaddItem">
                                    <tr>
                                        <td>
                                            <asp:Button ID="btnSaveDuplicate" runat="server" Text="   Save   " class="Btn_M_Normal"
                                                CausesValidation="False" OnClick="btnSaveDuplicate_Click" />
                                            <asp:Button ID="btnCancelDuplicate" runat="server" Text="   Cancel   " class="Btn_M_Normal"
                                                OnClick="btnCancelDuplicate_Click" />
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                        </td>
                    </tr>
                </table>
                <!------------------------------------body End2 ----------------------------------------------->
            </td>
        </tr>
    </table>

    <script language="javascript" type="text/javascript">
        showgeneral();
    </script>

</asp:Content>
