<%@ Page Language="C#" AutoEventWireup="true" CodeFile="List_Conciliacion.aspx.cs" Inherits="Conciliacion_List_Conciliacion" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/ControlUsuario/pl_pie.ascx" TagName="pl_pie" TagPrefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Balance Comprobacion</title>
    <link href="../estilos/Estilos.css" rel="stylesheet" type="text/css" />
    <script language="javascript" type="text/javascript" src="../JavaScript/actb.js"></script>
    <script language="javascript" type="text/javascript" src="../JavaScript/common.js"></script>
    <script language="javascript" type="text/javascript" src="../JavaScript/SGH_Script.js"></script>    
    
    <script type="text/javascript" language="JavaScript">
        function cerrar() {
        var ventana = window.self;
        ventana.opener = window.self;
        parent.close();
        }
        
      function requestStart(sender, args)
        {
            if (args.get_eventTarget().indexOf("ExcelExport") != -1)
                args.set_enableAjax(false);
            if (args.get_eventTarget().indexOf("PDFExport") > 0)
                args.set_enableAjax(false);
            if (args.get_eventTarget().indexOf("WordExport") > 0)
                args.set_enableAjax(false);
            if (args.get_eventTarget().indexOf("CSVExport") > 0)
                args.set_enableAjax(false);
            if (args.get_eventTarget().indexOf("Print") > 0)
                args.set_enableAjax(false);
        }   
        function Regresar() {
            
            var ventana = window.self;
            ventana.opener = window.self;
            ventana.opener.focus();
    }
  
        function CerraryRegresar() {
            var ventana = window.self;
            ventana.opener = window.self;
            parent.close();
        }                                                 
    </script>

    

    <style type="text/css">
        .style1
        {
            font-family: Arial, Helvetica, sans-serif;
            font-size: 11px;
            font-style: normal;
            line-height: normal;
            font-weight: normal;
            color: #000000;
            height: 26px;
        }
        
.RadPicker_Outlook
{
	vertical-align:middle;
}

.RadPicker_Outlook
{
	vertical-align:middle;
}

.RadPicker_Outlook .RadInput
{
	vertical-align:baseline;
}

.RadPicker_Outlook .RadInput
{
	vertical-align:baseline;
}

.RadInput_Default
{
	vertical-align:middle;
	font:12px "segoe ui",arial,sans-serif;
}

.RadInput_Default
{
	vertical-align:middle;
	font:12px "segoe ui",arial,sans-serif;
}

.RadPicker_Outlook .rcCalPopup
{
	background-position:0 0;
}

.RadPicker_Outlook .rcCalPopup
{
	display:block;
	overflow:hidden;
	width:22px;
	height:22px;
	background:url('mvwres://Telerik.Web.UI, Version=2009.2.826.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4/Telerik.Web.UI.Skins.Outlook.Calendar.sprite.gif') no-repeat;
	text-indent:-2222px;
	text-align:center;
}

.RadPicker_Outlook .rcCalPopup
{
	background-position:0 0;
}

.RadPicker_Outlook .rcCalPopup
{
	display:block;
	overflow:hidden;
	width:22px;
	height:22px;
	background:url('mvwres://Telerik.Web.UI, Version=2009.2.826.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4/Telerik.Web.UI.Skins.Outlook.Calendar.sprite.gif') no-repeat;
	text-indent:-2222px;
	text-align:center;
}

        .style2
        {
            width: 55px;
        }
        .style3
        {
            width: 65px;
        }

        </style>

    </head>
<body>
    <form id="form2" runat="server" method="post" defaultfocus="txtUsuario">
    <asp:ScriptManager ID="ScriptManager1" runat="server" />
   
     <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Telerik" />
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1" ClientEvents-OnRequestStart="requestStart">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="tk_Grid">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="tk_Grid" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="btnActualizar">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="tk_Grid" LoadingPanelID="RadAjaxLoadingPanel1" />
                    
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="lblTotalSoles">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="PANEL2" LoadingPanelID="RadAjaxLoadingPanel1" />
                    
                </UpdatedControls>
            </telerik:AjaxSetting>          
            <telerik:AjaxSetting AjaxControlID="btnConciliar">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="tk_Grid" LoadingPanelID="RadAjaxLoadingPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="irAsiento" UpdatePanelRenderMode="Inline" />
                </UpdatedControls>
            </telerik:AjaxSetting>   
            
            <telerik:AjaxSetting AjaxControlID="cbxCasaTarjetasCredito">

                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="tk_Grid"  />
                    <telerik:AjaxUpdatedControl ControlID="txtBanco"  />
                    <telerik:AjaxUpdatedControl ControlID="txtBancoCuentaID"  />
                    <telerik:AjaxUpdatedControl ControlID="txtMoneda"  />
                    
                </UpdatedControls>
            </telerik:AjaxSetting>   
                   
       
        </AjaxSettings>
    </telerik:RadAjaxManager>
    
      <table  style="height:455px; width:100%" cellpdading="0" cellspacing="0" border="0">
      <tr>
        <td align="center" valign="middle">
          <table width="100%" cellpadding="0" cellspacing="0" border="0" 
                style="height:435px; background-color: #FFFFFF;">
            <tr>
              <td colspan="2" style="height:7px" bgcolor="#FFFFFF"></td>
            </tr>
            <tr>
              <%--<td align=right colspan="2" style="height:20px" bgcolor="#A9CE53" ><a href="#" class="linksblanco" onClick="cerrar()"> Cerrar</a>&nbsp;&nbsp</td>--%>
              <td>
              
              <table width="100%" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td style="width:1px; padding-left:20px">
                            <img id="Img4" runat="server" src="~/images/TitleLeftLightBlue.png" alt="" />
                        </td>
                        <td background="../images/LineBodySky.png" style="width:15px; padding-left:5px; text-align:left; vertical-align:middle;" class="tituloseccion">
                            <img id="img5" runat="server" src="~/images/Report.png" border="0" />                             
                        </td>
                        <td background="../images/LineBodySky.png" style="padding-left:10px; text-align:left; vertical-align:middle;" class="tituloseccion">                            
                           <asp:Label ID="lblTitulo" runat="server" Text="CONCILIACION"></asp:Label>
                        </td>
                        
                        <td background="../images/LineGray.png" style="width:20px; padding-left:15px; vertical-align:middle;" class="gridtextbold">
                            <a href="../Salir.aspx" class="gridtext" >
                                <img id="img6" runat="server" src="~/images/close.png" border="0" />                                            
                            </a>
                        </td>                 
                        <td background="../images/LineGray.png" style="width:20px; padding-right:5px; vertical-align:middle;" class="gridtextbold">
                            <a href="../Salir.aspx" class="gridtext">Cerrar</a>
                        </td>
                        <td style="text-align:right; width:1px; padding-right:20px" 
                            <img id="Img7" class="gridtext" runat="server" src="~/images/TitleRightLightGray.png" alt="" />
                        </td>
                    </tr>
                    
        </table>
              
              
              
              </td>
            </tr>

            <tr>
              <td colspan="2" align="center">
              
              <table id="Table3" cellspacing="0" cellpadding="0" width="97%" border="0">

       
        
        <tr>
            <td align="center" class="arial10bold" style="height: 15px;" valign="top">
                &nbsp;</td>
        </tr>
        
        <tr>
            <td align="left" class="style1" valign="bottom" style="height: 5px;">
                    
            </td>
        </tr>
        
         <tr align="center" valign="middle">
            <td style="height: 45px;">
                <table width="100%" border="0" cellpadding="0" cellspacing="0" >
                    <tr>
                                <td style="width:70px; border-top:1px dotted #3E5729; padding-top:5px; border-bottom:1px dotted #3E5729; padding-bottom:5px;" align="right">
                                     <asp:Label ID="Label1" runat="server" CssClass="gridtext" AssociatedControlID="cbxCasaTarjetasCredito">Casa Matriz&nbsp</asp:Label>
                                 </td>
                                 <td align="left" style="width:90px; border-top:1px dotted #3E5729; padding-top:5px; border-bottom:1px dotted #3E5729; padding-bottom:5px;">
                                     
                                     <telerik:RadComboBox ID="cbxCasaTarjetasCredito" 
                                                            runat="server" 
                                                            Width="160px" 
                                                            AutoPostBack="true"
                                                            Skin="Outlook" 
                                                            AllowCustomText="true" 
                                                            Filter="StartsWith"
                                                            MarkFirstMatch="True" 
                                                            CausesValidation="false"
                                                            EmptyMessage="Seleccione" 
                                                            Height="70px" 
                                         onselectedindexchanged="cbxCasaTarjetasCredito_SelectedIndexChanged1">
                                     </telerik:RadComboBox>
                                     </td>
                                 <td align="left" style="width:120px; border-top:1px dotted #3E5729; padding-top:5px; border-bottom:1px dotted #3E5729; padding-left:5px; padding-bottom:5px;">
                                     <telerik:RadTextBox ID="txtBanco" Runat="server" Skin="Office2007" 
                                         EmptyMessage="Banco" ReadOnly="True">
                                     </telerik:RadTextBox>
                                    </td>
                                 <td align="left" style="width:180px; border-top:1px dotted #3E5729; padding-top:5px; border-bottom:1px dotted #3E5729; padding-bottom:5px; padding-left:5px">
                                     <telerik:RadTextBox ID="txtBancoCuentaID" Runat="server" Skin="Office2007" 
                                         EmptyMessage="Cuenta Corriente" ReadOnly="True">
                                     </telerik:RadTextBox>
                                 </td>
                                 
                                 <td align="left" style="width:100px; border-top:1px dotted #3E5729; padding-top:5px; border-bottom:1px dotted #3E5729; padding-bottom:5px; padding-left:5px">
                                     <telerik:RadTextBox ID="txtMoneda" Runat="server" Width="80px" 
                                         Skin="Office2007" EmptyMessage="Moneda" ReadOnly="True">
                                     </telerik:RadTextBox>
                                 </td>
                                 
                                 <td align="right" style="width:60px; border-top:1px dotted #3E5729; padding-top:5px; border-bottom:1px dotted #3E5729; padding-bottom:5px;">
                                 <asp:Label ID="Label2" runat="server" CssClass="gridtext">Desde&nbsp</asp:Label>
                                    </td>
                                 <td align="left" style="width:60px; border-top:1px dotted #3E5729; padding-top:5px; border-bottom:1px dotted #3E5729; padding-bottom:5px;">
                                    <telerik:RadDatePicker ID="txtDesde" Runat="server" Skin="Outlook" Width="100px">
                                        <Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x" Skin="Outlook"/>
                                    <DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>
                                        </telerik:RadDatePicker>
                                 </td>
                                 
                                 <td align="right" style="width:60px; border-top:1px dotted #3E5729; padding-top:5px; border-bottom:1px dotted #3E5729; padding-bottom:5px;">
                                 <asp:Label ID="Label3" runat="server" CssClass="gridtext">Hasta&nbsp</asp:Label>
                                    </td>
                                 <td align="left" style="width:80px; border-top:1px dotted #3E5729; padding-top:5px; border-bottom:1px dotted #3E5729; padding-bottom:5px;">
                                    <telerik:RadDatePicker ID="txtHasta" Runat="server" Skin="Outlook" Width="100px">
                                        <Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x" Skin="Outlook"/>
                                    <DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>
                                        </telerik:RadDatePicker>
                                 </td>
                                 
                                 <td style="width:10px; border-top:1px dotted #3E5729; padding-top:5px; border-bottom:1px dotted #3E5729; padding-bottom:5px;">
                                     &nbsp;</td>
                                 <td align="left" style="border-top:1px dotted #3E5729; padding-top:5px; border-bottom:1px dotted #3E5729; padding-bottom:5px;">
                                     <asp:Button ID="btnActualizar" runat="server" class="Button" Text="Actualizar" Width="80px" onclick="btnActualizar_Click" />
                                 </td>
                                 

                    </tr>
                </table>
            </td>
                                 
        
        <tr>
            <td align="center">
                
                         
                        <table border="0" style="border: #CCCCCC 1px solid; width: 100%">
                            <tr>
                                <td style="text-align: center; height: 21px; padding: 4px;">
                                                                    
                                 <telerik:RadGrid                                              
                                            AutoGenerateColumns="False" 
                                            ID="tk_Grid" 
                                            AllowPaging="True" 
                                            PageSize="200" 
                                            Height="400"
                                            runat="server" 
                                            
                                            GridLines="None" 
                                            style="margin-top: 0px" 
                                            
                                            AllowFilteringByColumn="false" 
                                            onneeddatasource="tk_Grid_NeedDataSource" 
                                            Skin="Office2007" onitemdatabound="tk_Grid_ItemDataBound" 
                                            OnItemCommand="Exportar_Data"
                                            >    
                                            
                                        <AlternatingItemStyle HorizontalAlign="Center" />
                                                                                                                                                                
                                        <PagerStyle Mode="NextPrevAndNumeric" PageButtonCount="15" />
                                        
                                        <HeaderContextMenu Skin="Inox">
                                            <CollapseAnimation Duration="100" Type="OutQuint" />
                                        </HeaderContextMenu>
                                        
                                        <ExportSettings ExportOnlyData="true" IgnorePaging="true" OpenInNewWindow="true" >
                                            <Pdf PageWidth="360mm" />
                                        </ExportSettings>
                                        
                                        
                                        <MasterTableView NoMasterRecordsText="No se encontraron Registro con este criterio de Busqueda." GroupLoadMode="Client"
                                        CommandItemDisplay="Top" CellSpacing="0"  AllowMultiColumnSorting="true" DataKeyNames="Total,DocumentoPagoID,UsuarioIDPreConcilia"
                                                           >  
                                        <CommandItemTemplate>
                                            <asp:ImageButton runat="server" ID="ExcelExport" ImageUrl="~/images/page_excel.png" CommandName="ExportExcel" AlternateText="Excel" ToolTip="Excel" /> 
                                            <asp:ImageButton runat="server" ID="PDFExport" ImageUrl="~/images/page_acrobat.png" CommandName="ExportPDF" AlternateText="Pdf" ToolTip="Pdf" />
                                            <asp:ImageButton runat="server" ID="WordExport" ImageUrl="~/images/page_word.png" CommandName="ExportWord" AlternateText="Word" ToolTip="Word" />
                                            <asp:ImageButton runat="server" ID="CSVExport" ImageUrl="~/images/page_csv.png" CommandName="ExportCSV" AlternateText="CSV" ToolTip="CSV" />
                                            <asp:ImageButton runat="server" ID="Print" ImageUrl="~/images/printer.png" CommandName="Print" AlternateText="Print" ToolTip="Imprimir" />
                                        </CommandItemTemplate>
                                        
                                        <CommandItemStyle CssClass="" HorizontalAlign="Right" />
                                        
                                            <Columns>                                                                                                                                                                                                                                                   
                                                
                                                <%--<telerik:GridClientSelectColumn HeaderStyle-Width="3%" >
                                                    <HeaderStyle HorizontalAlign="Center" />
                                                </telerik:GridClientSelectColumn>--%>
                                                
                                                <telerik:GridTemplateColumn UniqueName="GridTemplateRegister" DataField="Seleccion" HeaderText="" ShowFilterIcon="false" FilterControlWidth="20px">
                                                    <ItemTemplate>
                                                        <asp:Panel  ID="Panel1" runat="server">
                                                            <asp:CheckBox ID="chkRegistered" runat="server"  TextAlign="Right" OnCheckedChanged="chkSeleccion_CheckedChanged" AutoPostBack="True" />
                                                       </asp:Panel>
                                                    </ItemTemplate>    
                                                    <HeaderStyle Width="20px" /> 
                                                    <ItemStyle Width="20px" /> 
                                                </telerik:GridTemplateColumn>
                                                
                                                <telerik:GridBoundColumn DataField="UsuarioIDPreConcilia" FilterControlWidth="100%" ShowFilterIcon="false" Visible ="true"
                                                    HeaderText="U.Pre Concilia"  HeaderStyle-Width="57px" AutoPostBackOnFilter="true">
                                                    <ItemStyle CssClass="gridtext" HorizontalAlign="Left" />
                                                    <FooterStyle Font-Bold="True" />
                                                </telerik:GridBoundColumn>  

                                                <telerik:GridBoundColumn Aggregate="none" DataField="DocumentoPagoID" FilterControlWidth="100%" ShowFilterIcon="false" Visible ="false"
                                                    HeaderText="Codigo" FooterAggregateFormatString="{0:g}" HeaderStyle-Width="57px" AutoPostBackOnFilter="true"
                                                    CurrentFilterFunction="StartsWith">
                                                    <ItemStyle CssClass="gridtext" HorizontalAlign="Left" />
                                                    <FooterStyle Font-Bold="True" />
                                                </telerik:GridBoundColumn>  
                                                
                                                <telerik:GridBoundColumn Aggregate="none" DataField="Fecha" DataType="System.DateTime" FilterControlWidth="100%" ShowFilterIcon="false" DataFormatString="{0:dd/MM/yyyy}"
                                                    HeaderText="Fecha" FooterAggregateFormatString="{0:g}" HeaderStyle-Width="40px" AutoPostBackOnFilter="true"
                                                    CurrentFilterFunction="StartsWith">
                                                    <ItemStyle CssClass="gridtext" HorizontalAlign="Left" />
                                                    <FooterStyle Font-Bold="True" />
                                                </telerik:GridBoundColumn>  
                                                
                                                <telerik:GridBoundColumn Aggregate="none" DataField="TipoCambio" DataType="System.Decimal" FilterControlWidth="100%" ShowFilterIcon="false"
                                                    HeaderText="TipoCambio" FooterAggregateFormatString="{0:g}" HeaderStyle-Width="57px" AutoPostBackOnFilter="true" Visible="false"
                                                    CurrentFilterFunction="StartsWith" DataFormatString="{0:N2}">
                                                    <ItemStyle CssClass="gridtext" HorizontalAlign="Right" />
                                                    <FooterStyle Font-Bold="True" />
                                                </telerik:GridBoundColumn>  
                                                
                                                <telerik:GridBoundColumn Aggregate="none" DataField="BETarjetaCreditos.NombreTarjetaCredito" FilterControlWidth="100%" ShowFilterIcon="false"
                                                    HeaderText="Nombre Tarjeta" FooterAggregateFormatString="{0:g}" HeaderStyle-Width="57px" AutoPostBackOnFilter="true"
                                                    CurrentFilterFunction="StartsWith">
                                                    <ItemStyle CssClass="gridtext" HorizontalAlign="Left" />
                                                    <FooterStyle Font-Bold="True" />
                                                </telerik:GridBoundColumn>  
                                                
                                                <telerik:GridBoundColumn Aggregate="none" DataField="NumeroTarjeta" FilterControlWidth="100%" ShowFilterIcon="false"
                                                    HeaderText="NumeroTarjeta" FooterAggregateFormatString="{0:g}" HeaderStyle-Width="57px" AutoPostBackOnFilter="true"
                                                    CurrentFilterFunction="StartsWith">
                                                    <ItemStyle CssClass="gridtext" HorizontalAlign="Right" />
                                                    <FooterStyle Font-Bold="True" />
                                                </telerik:GridBoundColumn>  
                                                
                                                <telerik:GridBoundColumn Aggregate="none" DataField="NumeroCheque" FilterControlWidth="100%" ShowFilterIcon="false"
                                                    HeaderText="NumeroCheque" FooterAggregateFormatString="{0:g}" HeaderStyle-Width="57px" AutoPostBackOnFilter="true"
                                                    CurrentFilterFunction="StartsWith">
                                                    <ItemStyle CssClass="gridtext" HorizontalAlign="Left" />
                                                    <FooterStyle Font-Bold="True" />
                                                </telerik:GridBoundColumn>
                                                
                                                <telerik:GridBoundColumn Aggregate="none" DataField="BEMonedas.Nombre" FilterControlWidth="100%" ShowFilterIcon="false"
                                                    HeaderText="Moneda" FooterAggregateFormatString="{0:g}" HeaderStyle-Width="40px" AutoPostBackOnFilter="true"
                                                    CurrentFilterFunction="StartsWith">
                                                    <ItemStyle CssClass="gridtext" HorizontalAlign="Left" />
                                                    <FooterStyle Font-Bold="True" />
                                                </telerik:GridBoundColumn>
                                                
                                                <telerik:GridBoundColumn Aggregate="none" DataField="Total" DataType="System.Decimal" FilterControlWidth="100%" ShowFilterIcon="false"
                                                    HeaderText="Total" FooterAggregateFormatString="{0:g}" HeaderStyle-Width="57px" AutoPostBackOnFilter="true" DataFormatString="{0:N2}"
                                                    CurrentFilterFunction="StartsWith">
                                                    <ItemStyle CssClass="gridtext" HorizontalAlign="Right" />
                                                    <FooterStyle Font-Bold="True" />
                                                </telerik:GridBoundColumn>
                                                
                                                <telerik:GridBoundColumn Aggregate="none" DataField="FechaPago" FilterControlWidth="100%" ShowFilterIcon="false"  DataFormatString="{0:dd/MM/yyyy}"
                                                    HeaderText="FechaPago" FooterAggregateFormatString="{N:2}" HeaderStyle-Width="40px" AutoPostBackOnFilter="true"
                                                    CurrentFilterFunction="StartsWith">
                                                    <ItemStyle CssClass="gridtext" HorizontalAlign="Left" />
                                                    <FooterStyle Font-Bold="True" />
                                                </telerik:GridBoundColumn>
                                                
                                                
                                                <telerik:GridBoundColumn Aggregate="none" DataField="BETarjetaCreditos.CuentaSoles" FilterControlWidth="100%" ShowFilterIcon="false" Visible="true"
                                                        HeaderText="CuentaSoles" FooterAggregateFormatString="{0:g}" HeaderStyle-Width="57px" AutoPostBackOnFilter="true"
                                                    CurrentFilterFunction="StartsWith">
                                                    <ItemStyle CssClass="gridtext" HorizontalAlign="Left" />
                                                    <FooterStyle Font-Bold="True" />
                                                </telerik:GridBoundColumn>
                                                
                                                <telerik:GridBoundColumn Aggregate="none" DataField="BETarjetaCreditos.CuentaDolares" FilterControlWidth="100%" ShowFilterIcon="false" Visible="false"
                                                        HeaderText="CuentaDolares" FooterAggregateFormatString="{0:g}" HeaderStyle-Width="57px" AutoPostBackOnFilter="true"
                                                    CurrentFilterFunction="StartsWith">
                                                    <ItemStyle CssClass="gridtext" HorizontalAlign="Left" />
                                                    <FooterStyle Font-Bold="True" />
                                                </telerik:GridBoundColumn>
                                                
                                                <telerik:GridBoundColumn Aggregate="none" DataField="MonedaID" FilterControlWidth="100%" ShowFilterIcon="false" Visible="false"
                                                        HeaderText="MonedaID" FooterAggregateFormatString="{0:g}" HeaderStyle-Width="57px" AutoPostBackOnFilter="true"
                                                    CurrentFilterFunction="StartsWith">
                                                    <ItemStyle CssClass="gridtext" HorizontalAlign="Left" />
                                                    <FooterStyle Font-Bold="True" />
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn Aggregate="none" DataField="BETarjetaCreditos.PlanCuentaIDSoles" FilterControlWidth="100%" ShowFilterIcon="false" Visible="false"
                                                        HeaderText="PlanCuentaIDSoles" FooterAggregateFormatString="{0:g}" HeaderStyle-Width="57px" AutoPostBackOnFilter="true"
                                                    CurrentFilterFunction="StartsWith">
                                                    <ItemStyle CssClass="gridtext" HorizontalAlign="Left" />
                                                    <FooterStyle Font-Bold="True" />
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn Aggregate="none" DataField="BETarjetaCreditos.PlanCuentaIDDolares" FilterControlWidth="100%" ShowFilterIcon="false" Visible="false"
                                                        HeaderText="PlanCuentaIDDolares" FooterAggregateFormatString="{0:g}" HeaderStyle-Width="57px" AutoPostBackOnFilter="true"
                                                    CurrentFilterFunction="StartsWith">
                                                    <ItemStyle CssClass="gridtext" HorizontalAlign="Left" />
                                                    <FooterStyle Font-Bold="True" />
                                                </telerik:GridBoundColumn>
                                                
                                                
                                            </Columns>
                                            
                                            <GroupByExpressions >
                                                <telerik:GridGroupByExpression > 
                                                    <GroupByFields >                                                                                                        
                                                    <telerik:GridGroupByField   FieldName="BETarjetaCreditos.NombreTarjetaCredito"  FormatString="{0:g}" />  
                                                    </GroupByFields>

                                                    <SelectFields>
                                                    <telerik:GridGroupByField FieldName="BETarjetaCreditos.NombreTarjetaCredito" HeaderText="Tarjeta " />
                                                    </SelectFields>

                                                </telerik:GridGroupByExpression>
                                            </GroupByExpressions>
                                            <GroupHeaderItemStyle HorizontalAlign="Left" CssClass="gridtext"  />
                                                               
                                           
                                        </MasterTableView>
                                        
                                        
                                        
                                        <ClientSettings EnableRowHoverStyle="true">
                                            <Scrolling AllowScroll="true" UseStaticHeaders="true" />
                                            <Selecting AllowRowSelect="True"/>
                                        </ClientSettings>
                                        
                                        
                                        
                                    </telerik:RadGrid>
                                    
                                    
                                    
                                </td>
                                
                            </tr>
                        </table>
                        
                    <%--<telerik:GridClientSelectColumn HeaderStyle-Width="3%" >
                                                    <HeaderStyle HorizontalAlign="Center" />
                                                </telerik:GridClientSelectColumn>--%>
            </td>
        </tr>
        
        <tr>
            <td>
            
                    <table id="PANEL2" runat="server" width="100%" border="0" cellpadding="0" cellspacing="0" >
                    <tr>
                        <td style="width:70px; border-top:1px dotted #3E5729; padding-top:5px; border-bottom:1px dotted #3E5729; padding-bottom:5px;" align="left">
                            <asp:Label ID="Label4" runat="server" CssClass="gridtext" AssociatedControlID="cbxCasaTarjetasCredito">Total 
                            Soles :&nbsp</asp:Label>
                        </td>
                        <td align="left" 
                            style="border-top:1px dotted #3E5729; padding-top:5px; border-bottom:1px dotted #3E5729; padding-bottom:5px;" 
                            class="style3">
                                 <asp:Label ID="lblTotalSoles" runat="server" CssClass="gridtext">0.00</asp:Label>
                        </td>
                        <td runat="server" visible="false" align="right" style="width:120px; border-top:1px dotted #3E5729; padding-top:5px; border-bottom:1px dotted #3E5729; padding-bottom:5px;">
                            <asp:Label ID="Label12" runat="server" CssClass="gridtext" 
                            AssociatedControlID="cbxCasaTarjetasCredito">Total Dolares :&nbsp</asp:Label>
                        </td>
                        <td runat="server" visible="false" align="left" 
                            style="border-top:1px dotted #3E5729; padding-top:5px; border-bottom:1px dotted #3E5729; padding-bottom:5px;" 
                            class="style2">
                            <asp:Label ID="lblTotalDolares" runat="server" CssClass="gridtext">0.00</asp:Label>
                        </td>
                                     
                        <td align="right" style="width:90px; border-top:1px dotted #3E5729; padding-top:5px; border-bottom:1px dotted #3E5729; padding-bottom:5px;">
                            <asp:Label ID="Label9" runat="server" CssClass="gridtext">Comision :&nbsp</asp:Label>
                        </td>
                        <td align="left" style="width:100px; border-top:1px dotted #3E5729; padding-top:5px; border-bottom:1px dotted #3E5729; padding-bottom:5px;">
                            <telerik:RadTextBox ID="txtComision" Runat="server" Skin="Office2007" Width="50px"/>
                        </td>
                        <td align="right" style="width:30px; border-top:1px dotted #3E5729; padding-top:5px; border-bottom:1px dotted #3E5729; padding-bottom:5px;">
                            <asp:Label ID="Label5" runat="server" CssClass="gridtext">Igv :&nbsp</asp:Label>
                        </td>
                        <td align="left" style="width:80px; border-top:1px dotted #3E5729; padding-top:5px; border-bottom:1px dotted #3E5729; padding-bottom:5px;">
                            <telerik:RadTextBox ID="txtIgv" Runat="server" Skin="Office2007" Width="50px"/>
                        </td>
                        <td align="right" style="width:40px; border-top:1px dotted #3E5729; padding-top:5px; border-bottom:1px dotted #3E5729; padding-bottom:5px;">
                            <asp:Label ID="Label6" runat="server" CssClass="gridtext">Portes :&nbsp</asp:Label>
                        </td>
                        <td align="left" style="width:80px; border-top:1px dotted #3E5729; padding-top:5px; border-bottom:1px dotted #3E5729; padding-bottom:5px;"> 
                            <telerik:RadTextBox ID="txtPortes" Runat="server" Skin="Office2007" Width="50px"/>
                        </td>
                        <td align="right" style="width:80px; border-top:1px dotted #3E5729; padding-top:5px; border-bottom:1px dotted #3E5729; padding-bottom:5px;">
                            <asp:Label ID="Label10" runat="server" CssClass="gridtext">Fecha Asiento :&nbsp</asp:Label>
                        </td>
                        <td align="left" style="width:80px; border-top:1px dotted #3E5729; padding-top:5px; border-bottom:1px dotted #3E5729; padding-bottom:5px;"> 
                                    <telerik:RadDatePicker ID="txtFechaAsiento" Runat="server" Skin="Outlook">
                                        <Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x" Skin="Outlook"/>
                                    <DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>
                                        </telerik:RadDatePicker>
                        </td>            
                                 
                                 <td style="width:10px; border-top:1px dotted #3E5729; padding-top:5px; border-bottom:1px dotted #3E5729; padding-bottom:5px;">
                                     &nbsp;</td>
                                 <td align="left" style="border-top:1px dotted #3E5729; padding-top:5px; border-bottom:1px dotted #3E5729; padding-bottom:5px;"  Width="85px" >
                                     <asp:Button ID="btnConciliar" runat="server" class="Button" Text="Conciliar" Width="80px" onclick="btnConciliar_Click" />
                                 </td>
                                 
                                 <td style="width:10px; border-top:1px dotted #3E5729; padding-top:5px; border-bottom:1px dotted #3E5729; padding-bottom:5px;">
                                     &nbsp;</td>
                                 
                                 <td style="border-top:1px dotted #3E5729; padding-top:5px; border-bottom:1px dotted #3E5729; padding-bottom:5px;">
                                     &nbsp;<a id="irAsiento" visible="false" runat="server" style="padding-left:10px;padding-right:10px; padding-top:1px; padding-bottom:1px" class="Button" target="_blank">Ir Asiento</a></td>
                                 
                    </tr>
                    
                    
                </table>
                
                
                
            </td>
        </tr>
    </table>
              
              
              </td>
            </tr>
            <tr>
              <td colspan="2" style="height:40px">
                  
                  <uc1:pl_pie ID="pl_pie1" runat="server" />
                  
              </td>
            </tr>
          </table>
        </td>
      </tr>
      </table>
    
    </form>
</body>
</html>

