<%@ Page Language="C#" AutoEventWireup="true" CodeFile="frmAnalisisPorCuenta.aspx.cs" Inherits="frmAnalisisPorCuenta" %>
<%@ 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>::: sgh peru - Sistema Planillas :::</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>

    

    </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="btnImprimir">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="btnImprimir" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>--%>
            
            
            
        </AjaxSettings>
    </telerik:RadAjaxManager>
    
      <table  style="height:455px; width:100%" cellpadding="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 align=right colspan="2" style="height:24px;" background="images/LineForest.jpg"></asp:Label> <a href="#" class="linksblanco" style="vertical-align:text-top" onClick="cerrar()"> Cerrar</a>&nbsp;&nbsp</td>--%>
            </tr>
            <tr>
              <td align="center" colspan="2" style="height:10px">
                <table width="100%" cellpadding="0" cellspacing="0" border="0">
                  <tr>
                    <td style="width:1px; padding-left:0px">
                            <img id="Img3" runat="server" src="~/images/TitleLeftLightBlue.png" alt="" />
                        </td>
                        <td background="images/LineBodySky.png" style="padding-left:20px; text-align:left" class=" gridtextbold">
                            ANALISIS POR CUENTA
                            EJERCICIO <asp:Label ID="lblEjercicio" class="gridtext" runat="server" Text="Label"></asp:Label>
                        </td>
                        <td background="images/LineGray.png" style="width:20px; padding-left:10px; vertical-align:bottom;">
                            <a href="BusquedaInteligente.aspx" class="gridtext">
                                <img id="imgHome" runat="server" src="images/Back.png" border="0" />                                            
                            </a>                            
                        </td>
                        <td background="images/LineGray.png" style="width:20px" class="gridtextbold">
                            <a href="#" class="gridtext"  onClick="Regresar()">Atras</a>
                            <%--<asp:LinkButton runat="server" ID="l1" Text="Inicio2" onclick="l1_Click"></asp:LinkButton>--%>
                        </td>
                        <td background="images/LineGray.png" style="width:20px; padding-left:15px" class="gridtextbold">
                            <a href="#" class="gridtext"  onClick="cerrar()">
                                <img id="img2" runat="server" src="images/close.png" border="0" />                                            
                            </a>
                        </td>                 
                        <td background="images/LineGray.png" style="width:20px; padding-right:5px" class="gridtextbold">
                            <a href="#" class="gridtext"  onClick="CerraryRegresar()">Cerrar</a>
                        </td>
                        <td style="text-align:right; width:1px; padding-right:0px"> 
                            <img id="Img1" class="gridtext" runat="server" src="~/images/TitleRightLightGray.png" alt="" />
                            </td>
                  </tr>
                </table>
              </td>
            </tr>
            <tr><td style="height:15px"></td></tr>
            <tr>
              <td colspan="2" align="center" style="padding-bottom:20px">
              
              
             
               <table border="0" style="border: #CCCCCC 1px solid; width: 100%">
               
               <tr>
                    <td align="left" style="padding-top:6px; padding-bottom:6px; border-bottom:1px solid #3C7FB1;">
                        <div style="float:left">
                            <asp:Label CssClass="gridtextgray" ID="Label8" runat="server" Text="Sucursal: "></asp:Label>
                            &nbsp;
                            <asp:Label CssClass="gridtextgray" ID="lblSucursal" runat="server" Text="Label"></asp:Label>
                            &nbsp;
                            <asp:Label CssClass="gridtextgray" ID="Label7" runat="server" Text="Unidad de Negocio: " Width="110px"></asp:Label>
                            &nbsp;
                            <asp:Label CssClass="gridtextgray" ID="lblUnidadNegocio" runat="server" Text="Label"></asp:Label>
                            &nbsp;
                            <asp:Label CssClass="gridtextgray" ID="Label11" runat="server" Text="Area: "></asp:Label>
                            &nbsp;
                            <asp:Label CssClass="gridtextgray" ID="lblArea" runat="server" Text="Label"></asp:Label>
                            &nbsp;
                            <asp:Label CssClass="gridtextgray" ID="lblFechaHasta" runat="server" Text=""></asp:Label>
                            &nbsp;
                            <span class="gridtextgray">Moneda: </span>
                            <asp:Label CssClass="gridtextgray" ID="lblMoneda" runat="server" Text="Label"></asp:Label>
                            &nbsp;
                            <span class="gridtextgray" id="labelDesde" runat="server">Desde: </span>
                            <asp:Label CssClass="gridtextgray" ID="lblDesde" runat="server" Text="Label"></asp:Label>
                            &nbsp;
                            <span class="gridtextgray" id="labelHasta" runat="server">Hasta: </span>
                            <asp:Label CssClass="gridtextgray" ID="lblHasta" runat="server" Text="Label"></asp:Label>
                            
                        </div>
                   </td>
               </tr>
               
                <tr>
                    <td style="text-align: center; height: 21px; padding: 4px;">
                                                        
                     <telerik:RadGrid                                  
                                AutoGenerateColumns="False" 
                                ID="tk_Grid" 
                                AllowPaging="True" 
                                PageSize="200" 
                                runat="server" 
                                onitemcreated="tk_Grid_ItemCreated" 
                                onitemdatabound="tk_Grid_ItemDataBound" 
                                Skin="Office2007" onitemcommand="tk_Grid_ItemCommand" 
                                onneeddatasource="tk_Grid_NeedDataSource"
                                OnGridExporting="RadGrid1_GridExporting"
                                Height="550px" AllowFilteringByColumn="True">
                               
                            <FooterStyle BackColor="Silver" />
                            <PagerStyle Mode="NextPrevAndNumeric" PageButtonCount="15" />
                            
                            <ExportSettings ExportOnlyData="true" IgnorePaging="true" OpenInNewWindow="true" >
                                <Pdf PageWidth="210mm" />
                            </ExportSettings>
                            
                            <MasterTableView CommandItemDisplay="Top" CellSpacing="0" ShowGroupFooter="true" AllowMultiColumnSorting="true" ShowFooter="true" GroupLoadMode="Client">
                            <CommandItemTemplate>
                                <asp:ImageButton runat="server" ID="ExcelExport" ImageUrl="~/images/page_excel.png" CommandName="ExportExcel" AlternateText="Excel" ToolTip="Excel" CausesValidation="false" /> 
                                <%--<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 Height="24px" VerticalAlign="Middle" HorizontalAlign="Right" />
                            
                                <Columns>
                                    <telerik:GridBoundColumn Aggregate="none" DataField="BEAsientosContablesDetalle.PlanCuentaID" Display="false"
                                        HeaderText="PlanCuentaID" FooterText="Total" FooterAggregateFormatString="{0:g}" FooterStyle-Font-Bold="true">
                                        <ItemStyle HorizontalAlign="Left" />
                                        <FooterStyle Font-Bold="True" />
                                     </telerik:GridBoundColumn>
                                     
                                     <telerik:GridBoundColumn Aggregate="none" DataField="BEPlanDeCuentas.NombrePlanCuenta" Display="false"
                                        HeaderText="NombrePlanCuenta" FooterText="Total" FooterAggregateFormatString="{0:g}" FooterStyle-Font-Bold="true">
                                        <HeaderStyle CssClass="gridtextbold" />
                                        <ItemStyle HorizontalAlign="Left" />
                                        <FooterStyle Font-Bold="True" />
                                     </telerik:GridBoundColumn>                                                                                                                                                   
                                     
                                     <telerik:GridBoundColumn Aggregate="none" DataField="Mes" 
                                        HeaderText="Mes" FooterText="" FooterAggregateFormatString="{0:g}" FooterStyle-Font-Bold="true" AutoPostBackOnFilter="True" FilterControlWidth="100%" ShowFilterIcon="False">
                                        <ItemStyle CssClass="gridtext" HorizontalAlign="Left" />
                                        <HeaderStyle Width="3%" />
                                        <FooterStyle Font-Bold="True"  />
                                     </telerik:GridBoundColumn> 
                                                              
                                    <telerik:GridBoundColumn DataField="SubDiarioID" Display="false" HeaderText="Origen" FooterAggregateFormatString="{0:g}" FooterStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Right">
                                        <HeaderStyle HorizontalAlign="Right" />
                                        <ItemStyle CssClass="gridtext" HorizontalAlign="Right" />
                                        <FooterStyle Font-Bold="True" HorizontalAlign="Right" />
                                    </telerik:GridBoundColumn>
                                    
                                    <telerik:GridBoundColumn DataField="BESubDiarios.NombreSubDiario" HeaderText="Sub Diario" FooterAggregateFormatString="{0:g}" FooterStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Right" Display="False">
                                        <HeaderStyle HorizontalAlign="Left" />
                                        <ItemStyle CssClass="gridtext" HorizontalAlign="Left" />
                                        <FooterStyle Font-Bold="True" HorizontalAlign="Left" />
                                    </telerik:GridBoundColumn>
                                                                                                                                                           
                                    <telerik:GridBoundColumn DataField="Comprobante" HeaderText="Comprob." FooterAggregateFormatString="{0:g}" FooterStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Right" AutoPostBackOnFilter="True" FilterControlWidth="100%" ShowFilterIcon="False">
                                        <HeaderStyle Width="150px"  HorizontalAlign="Right" />
                                        <ItemStyle CssClass="linkblue" HorizontalAlign="Right" />
                                        <FooterStyle Font-Bold="True" HorizontalAlign="Right" />
                                    </telerik:GridBoundColumn>
                                    
                                    <telerik:GridBoundColumn Aggregate="none" DataField="Dia" DataType="System.DateTime" 
                                        HeaderText="Fecha" FooterAggregateFormatString="{0:g}" FooterStyle-Font-Bold="true" AutoPostBackOnFilter="True" FilterControlWidth="100%" ShowFilterIcon="False">
                                        <ItemStyle CssClass="gridtext" HorizontalAlign="Left" />
                                        <HeaderStyle Width="70px"  />
                                        <FooterStyle Font-Bold="True" />
                                     </telerik:GridBoundColumn> 

                                    <telerik:GridBoundColumn  DataField="BEAsientosContablesDetalle.TipoCambio" 
                                        DataType="System.Double" HeaderText="TC" 
                                        HeaderStyle-HorizontalAlign="Right" 
                                        EmptyDataText="0" AutoPostBackOnFilter="True" FilterControlWidth="100%" ShowFilterIcon="False">
                                        <HeaderStyle HorizontalAlign="Center" />
                                        <ItemStyle CssClass="gridtext" HorizontalAlign="Right"  />
                                        <FooterStyle CssClass="gridtext" Font-Bold="True" HorizontalAlign="Right" />
                                    </telerik:GridBoundColumn>
                                    
                                    <telerik:GridBoundColumn DataField="Glosa" UniqueName="xGlosa" HeaderText="Glosa" FooterAggregateFormatString="{0:g}" FooterStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Right" AutoPostBackOnFilter="True" FilterControlWidth="100%" ShowFilterIcon="False">
                                        <HeaderStyle Width="25%" HorizontalAlign="Left" />
                                        <ItemStyle CssClass="gridtext" HorizontalAlign="Left" />
                                        <FooterStyle Font-Bold="True" HorizontalAlign="Right" />
                                    </telerik:GridBoundColumn>
                                                                                                                                                                                    
                                    <telerik:GridBoundColumn DataField="BEAsientosContablesDetalle.Referencia" HeaderText="Referencia" FooterAggregateFormatString="{0:g}" FooterStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Right" AutoPostBackOnFilter="True" FilterControlWidth="100%" ShowFilterIcon="False">
                                        <HeaderStyle Width="15%" HorizontalAlign="Left" />
                                        <ItemStyle CssClass="gridtext" HorizontalAlign="Left" />
                                        <FooterStyle Font-Bold="True" HorizontalAlign="Left" />
                                    </telerik:GridBoundColumn>
                                    
                                    <telerik:GridBoundColumn DataField="BEAsientosContablesDetalle.TipoDocumentoIDNombre" HeaderText="Tipo" FooterAggregateFormatString="{0:g}" FooterStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Right" AutoPostBackOnFilter="True" FilterControlWidth="100%" ShowFilterIcon="False">
                                        <HeaderStyle HorizontalAlign="Left" Width="38px" />
                                        <ItemStyle CssClass="gridtext" HorizontalAlign="Left" />
                                        <FooterStyle Font-Bold="True" HorizontalAlign="Left" />
                                    </telerik:GridBoundColumn>
                                                                
                                    <telerik:GridBoundColumn DataField="BEAsientosContablesDetalle.SerieDocumento" HeaderText="Serie" FooterAggregateFormatString="{0:g}" FooterStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Right" AutoPostBackOnFilter="True" FilterControlWidth="100%" ShowFilterIcon="False">
                                        <HeaderStyle HorizontalAlign="Center" Width="50px" />
                                        <ItemStyle CssClass="gridtext" HorizontalAlign="Right" />
                                        <FooterStyle Font-Bold="True" HorizontalAlign="Right" />
                                    </telerik:GridBoundColumn>
                                                                                                                                                        
                                    <telerik:GridBoundColumn DataField="BEAsientosContablesDetalle.NumeroDocumento" HeaderText="Nro. Dcto." FooterAggregateFormatString="{0:g}" FooterStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Right" AutoPostBackOnFilter="True" FilterControlWidth="100%" ShowFilterIcon="False">
                                        <HeaderStyle HorizontalAlign="Center" Width="90px" />
                                        <ItemStyle CssClass="gridtext" HorizontalAlign="Right" />
                                        <FooterStyle Font-Bold="True" HorizontalAlign="Right" />
                                    </telerik:GridBoundColumn>

                                    <telerik:GridBoundColumn Aggregate="none" DataField="BEAsientosContablesDetalle.FechaEmision" DataType="System.DateTime" 
                                        HeaderText="Fecha E." FooterAggregateFormatString="{0:g}" FooterStyle-Font-Bold="true" AutoPostBackOnFilter="True" FilterControlWidth="100%" ShowFilterIcon="False" DataFormatString="{0:g}">
                                        <ItemStyle CssClass="gridtext" HorizontalAlign="Left" />
                                        <HeaderStyle Width="70px"  />
                                        <FooterStyle Font-Bold="True" />
                                     </telerik:GridBoundColumn> 

                                    <telerik:GridBoundColumn DataField="BEMonedas.Nomenclatura" HeaderText="Mda" FooterAggregateFormatString="{0:g}" FooterStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Right" AutoPostBackOnFilter="True" FilterControlWidth="100%" ShowFilterIcon="False">
                                        <HeaderStyle HorizontalAlign="Center" Width="40px" />
                                        <ItemStyle CssClass="gridtext" HorizontalAlign="Center" />
                                        <FooterStyle Font-Bold="True" HorizontalAlign="Center" />
                                    </telerik:GridBoundColumn>
                                   
                                    <telerik:GridBoundColumn  DataField="BEAsientosContablesDetalle.MontoDebe" 
                                        Aggregate="Sum" DataType="System.Double" HeaderText="Debe" 
                                        FooterAggregateFormatString="{0:N2}" DataFormatString="{0:N2}" 
                                        FooterStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Right" 
                                        EmptyDataText="0" AutoPostBackOnFilter="True" FilterControlWidth="100%" ShowFilterIcon="False">
                                        <HeaderStyle HorizontalAlign="Center" />
                                        <ItemStyle CssClass="gridtext" HorizontalAlign="Right"  />
                                        <FooterStyle CssClass="gridtext" Font-Bold="True" HorizontalAlign="Right" />
                                    </telerik:GridBoundColumn>
                                    
                                    <telerik:GridBoundColumn  DataField="BEAsientosContablesDetalle.MontoHaber" 
                                        Aggregate="Sum"  DataType="System.Double" HeaderText="Haber" 
                                        FooterAggregateFormatString="{0:N2}" DataFormatString="{0:N2}" 
                                        FooterStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Right" 
                                        EmptyDataText="0" AutoPostBackOnFilter="True" FilterControlWidth="100%" ShowFilterIcon="False">
                                        <HeaderStyle HorizontalAlign="Center" />
                                        <ItemStyle CssClass="gridtext" HorizontalAlign="Right" />
                                        <FooterStyle CssClass="gridtext" Font-Bold="True" HorizontalAlign="Right" />
                                    </telerik:GridBoundColumn>
                                                                          
                                                                                                                          
                                    <telerik:GridBoundColumn  DataField="AsientoContableID"  HeaderText="Asiento Cont."   HeaderStyle-HorizontalAlign="Right" Display="false" AutoPostBackOnFilter="True" FilterControlWidth="100%" ShowFilterIcon="False">
                                        <HeaderStyle HorizontalAlign="Center" />
                                        <ItemStyle CssClass="gridtext" HorizontalAlign="Right" />                                                    
                                    </telerik:GridBoundColumn>
                                    
                                     <telerik:GridBoundColumn  DataField="BEPlanDeCuentas.CodigoPlanCuenta"  HeaderText="Asiento Cont."   HeaderStyle-HorizontalAlign="Right" Display="false">
                                        <HeaderStyle HorizontalAlign="Center" />
                                        <ItemStyle CssClass="gridtext" HorizontalAlign="Right" />                                                    
                                    </telerik:GridBoundColumn>                                                                                      
                                    
                                    <telerik:GridBoundColumn  DataField="SaldoSoles" Aggregate="Sum"   HeaderText="Saldos" FooterAggregateFormatString="{0:N2}" DataFormatString="{0:N2}" FooterStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Right" AutoPostBackOnFilter="True" FilterControlWidth="100%" ShowFilterIcon="False">
                                        <HeaderStyle HorizontalAlign="Center" />
                                        <ItemStyle CssClass="gridtext" HorizontalAlign="Right" />
                                        <FooterStyle CssClass="gridtext" Font-Bold="True" HorizontalAlign="Right" />
                                    </telerik:GridBoundColumn>  
                                 
                                                                                                                                   
                                </Columns>                                                                                                           
                                                         
                                <GroupByExpressions>                                                
                                    <telerik:GridGroupByExpression>                                                
                                        <GroupByFields>                                                                                                        
                                            <telerik:GridGroupByField FieldName="BEPlanDeCuentas.CodigoPlanCuenta" /> 
                                        </GroupByFields>
                                        <SelectFields>                                                    
                                            <telerik:GridGroupByField FieldName="BEPlanDeCuentas.NombrePlanCuenta" HeaderText="Cuenta"  />                                                        
                                        </SelectFields>                                                    
                                    </telerik:GridGroupByExpression>                                                                                              
                                    
                                    <telerik:GridGroupByExpression>
                                        <GroupByFields>                                                        
                                            <telerik:GridGroupByField FieldName="SubDiarioID"/>
                                        </GroupByFields>
                                        <SelectFields>
                                            <telerik:GridGroupByField FieldName="BESubDiarios.NombreSubDiario" HeaderText="Tipo" />
                                        </SelectFields>
                                    </telerik:GridGroupByExpression>
                                   
                                </GroupByExpressions>
                                
                               
                            </MasterTableView>
                            <GroupHeaderItemStyle HorizontalAlign="Left" Font-Strikeout="False" />
                            <%--<GroupHeaderItemStyle HorizontalAlign="Left" />
                            <GroupHeaderItemStyle CssClass="links" />--%>
                           <ClientSettings EnableRowHoverStyle="true">
                                <Selecting AllowRowSelect="true" />
                                <Scrolling AllowScroll="True" UseStaticHeaders="True" />
                            </ClientSettings>
                            
                        </telerik:RadGrid>
                        
                    </td>
                    
                </tr>
            </table>
        
     
              
              
              </td>
            </tr>
            <tr>
              <td colspan="2" >
                  
                  <uc1:pl_pie ID="pl_pie1" runat="server" />
                  
              </td>
            </tr>
          </table>
        </td>
      </tr>
      </table>
      
      <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True"
        ShowSummary="False" ValidationGroup="Loggin" />
      <asp:ValidationSummary ID="ValidationSummary2" runat="server" ShowMessageBox="True"
        ShowSummary="False" ValidationGroup="CtrlPeriodo" />       
    
    </form>
</body>
</html>
