<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Proc_BloqueoAsientos.aspx.cs" Inherits="Proc_BloqueoAsientos" %>
<%@ 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;
        }
        .style2
        {
            width: 149px;
        }
        </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>
        </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">                            
                            PROCESO :: Bloqueo y liberacion de asientos</td>
                        <td background="images/LineGray.png" style="width:20px; padding-left:10px; vertical-align:bottom;">
                            <a href="BusquedaInteligente.aspx" class="gridtext">
                                <img id="img15" runat="server" src="images/Back.png" border="0" />                                            
                            </a>                            
                        </td>
                        <td background="images/LineGray.png" style="width:20px" class="gridtextbold">
                            <a href="BusquedaInteligente.aspx" class="gridtext">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; vertical-align:middle;" class="gridtextbold">
                            <a href="#" class="gridtext"  onClick="cerrar()">
                                <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="#" class="gridtext"  onClick="CerraryRegresar()">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>
        
 
            <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="100" 
                                            Height="480"
                                            runat="server" 
                                            GridLines="None"
                                            style="margin-top: 0px" 
                                            BorderStyle="None"
                                        onneeddatasource="tk_Grid_NeedDataSource" 
                                        Skin="Office2007" onitemdatabound="tk_Grid_ItemDataBound" onitemcommand="tk_Grid_ItemCommand"
                                            >    
                                            
                                        <AlternatingItemStyle HorizontalAlign="Center" />
                                        <%--    <HeaderStyle HorizontalAlign="Center" ForeColor="White" />
                                            <EditItemStyle BackColor="#EAFFEA" />
                                            <ActiveItemStyle BackColor="#333300" />--%>
                                                                                                                                                                
                                        <PagerStyle Mode="NextPrevAndNumeric" PageButtonCount="15" />
                                        
                                        <HeaderContextMenu Skin="Inox">
                                            <CollapseAnimation Duration="200" Type="OutQuint" />
                                        </HeaderContextMenu>
                                        
                                        <ExportSettings ExportOnlyData="true" IgnorePaging="true" OpenInNewWindow="true" >
                                            <Pdf PageWidth="360mm" />
                                        </ExportSettings>
                                        <GroupingSettings CaseSensitive="False" />
                                        
                                        <MasterTableView  CommandItemDisplay="Top" CellSpacing="0" ShowGroupFooter="true" AllowMultiColumnSorting="true" 
                                                            ShowFooter="false" EditMode="PopUp">  
                                        <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:GridNumericColumn HeaderText="SubDiarioBloqueoID" DataField="SubDiarioBloqueoID" Visible="false"
                                                    UniqueName="SubDiarioBloqueoID" SortExpression="SubDiarioID" AutoPostBackOnFilter="true" FilterControlWidth="100%"
                                                    CurrentFilterFunction="StartsWith" ShowFilterIcon="false">
                                                    <ItemStyle HorizontalAlign="Right" />
                                                    <HeaderStyle HorizontalAlign="Right" />
                                                    <FooterStyle HorizontalAlign="Right" />
                                            </telerik:GridNumericColumn>  
                                            
                                            <telerik:GridNumericColumn HeaderText="SubDiarioID" DataField="SubDiarioID" Visible="false"
                                                    UniqueName="SubDiarioID" SortExpression="SubDiarioID" AutoPostBackOnFilter="true" FilterControlWidth="100%"
                                                    CurrentFilterFunction="StartsWith" ShowFilterIcon="false">
                                                    <ItemStyle HorizontalAlign="Right" />
                                                    <HeaderStyle HorizontalAlign="Right" />
                                                    <FooterStyle HorizontalAlign="Right" />
                                            </telerik:GridNumericColumn>  
                                                
                                            <telerik:GridNumericColumn HeaderText="Nombre Sub Diario" DataField="NombreSubDiario" 
                                                    UniqueName="NombreSubDiario" SortExpression="NombreSubDiario" AutoPostBackOnFilter="true" FilterControlWidth="100%"
                                                    CurrentFilterFunction="StartsWith" ShowFilterIcon="false">
                                                    <ItemStyle HorizontalAlign="Left" />
                                                    <HeaderStyle HorizontalAlign="Left" />
                                                    <FooterStyle HorizontalAlign="Left" />
                                            </telerik:GridNumericColumn>
                                            
                                            <telerik:GridTemplateColumn AllowFiltering="false" HeaderText="Enero">
                                                    <ItemTemplate>
                                                    <asp:LinkButton ID="btnlinkEnero" runat="server" CommandName="1"  CommandArgument='<%# Eval("SubDiarioID")%>' ><asp:Image ID="imgEnero" AlternateText='<%# Eval("Enero")%>' runat="server" ToolTip="Enero" ImageUrl="~/images/unlock.png"/></asp:LinkButton>
                                                    </ItemTemplate>
                                            </telerik:GridTemplateColumn>
                                            
                                            <telerik:GridTemplateColumn AllowFiltering="false" HeaderText="Febrero">
                                                    <ItemTemplate>
                                                    <asp:LinkButton ID="btnlinkFebrero" runat="server" CommandName="2"  CommandArgument='<%# Eval("SubDiarioID")%>' ><asp:Image ID="imgFebrero" AlternateText='<%# Eval("Febrero")%>' runat="server" ToolTip="Febrero" ImageUrl="~/images/unlock.png"/></asp:LinkButton>
                                                    </ItemTemplate>
                                            </telerik:GridTemplateColumn>
                                            
                                            <telerik:GridTemplateColumn AllowFiltering="false" HeaderText="Marzo">
                                                    <ItemTemplate>
                                                    <asp:LinkButton ID="btnlinkMarzo" runat="server" CommandName="3"  CommandArgument='<%# Eval("SubDiarioID")%>' ><asp:Image ID="imgMarzo" AlternateText='<%# Eval("Marzo")%>' runat="server" ToolTip="Marzo" ImageUrl="~/images/unlock.png"/></asp:LinkButton>
                                                    </ItemTemplate>
                                            </telerik:GridTemplateColumn>
                                            
                                            <telerik:GridTemplateColumn AllowFiltering="false" HeaderText="Abril">
                                                    <ItemTemplate>
                                                    <asp:LinkButton ID="btnlinkAbril" runat="server" CommandName="4"  CommandArgument='<%# Eval("SubDiarioID")%>' ><asp:Image ID="imgAbril" AlternateText='<%# Eval("Abril")%>' runat="server" ToolTip="Abril" ImageUrl="~/images/unlock.png"/></asp:LinkButton>
                                                    </ItemTemplate>
                                            </telerik:GridTemplateColumn>
                                            
                                            <telerik:GridTemplateColumn AllowFiltering="false" HeaderText="Mayo">
                                                    <ItemTemplate>
                                                    <asp:LinkButton ID="btnlinkMayo" runat="server" CommandName="5"  CommandArgument='<%# Eval("SubDiarioID")%>' ><asp:Image ID="imgMayo" AlternateText='<%# Eval("Mayo")%>' runat="server" ToolTip="Mayo" ImageUrl="~/images/unlock.png"/></asp:LinkButton>
                                                    </ItemTemplate>
                                            </telerik:GridTemplateColumn>
                                            
                                            <telerik:GridTemplateColumn AllowFiltering="false" HeaderText="Junio">
                                                    <ItemTemplate>
                                                    <asp:LinkButton ID="btnlinkJunio" runat="server" CommandName="6"  CommandArgument='<%# Eval("SubDiarioID")%>' ><asp:Image ID="imgJunio" AlternateText='<%# Eval("Junio")%>' runat="server" ToolTip="Junio" ImageUrl="~/images/unlock.png"/></asp:LinkButton>
                                                    </ItemTemplate>
                                            </telerik:GridTemplateColumn>
                                            
                                            <telerik:GridTemplateColumn AllowFiltering="false" HeaderText="Julio">
                                                    <ItemTemplate>
                                                    <asp:LinkButton ID="btnlinkJulio" runat="server" CommandName="7"  CommandArgument='<%# Eval("SubDiarioID")%>' ><asp:Image ID="imgJulio" AlternateText='<%# Eval("Julio")%>' runat="server" ToolTip="Julio" ImageUrl="~/images/unlock.png"/></asp:LinkButton>
                                                    </ItemTemplate>
                                            </telerik:GridTemplateColumn>
                                            
                                            <telerik:GridTemplateColumn AllowFiltering="false" HeaderText="Agosto">
                                                    <ItemTemplate>
                                                    <asp:LinkButton ID="btnlinkAgosto" runat="server" CommandName="8"  CommandArgument='<%# Eval("SubDiarioID")%>' ><asp:Image ID="imgAgosto" AlternateText='<%# Eval("Agosto")%>' runat="server" ToolTip="Agosto" ImageUrl="~/images/unlock.png"/></asp:LinkButton>
                                                    </ItemTemplate>
                                            </telerik:GridTemplateColumn>
                                            
                                            <telerik:GridTemplateColumn AllowFiltering="false" HeaderText="Septiembre">
                                                    <ItemTemplate>
                                                    <asp:LinkButton ID="btnlinkSeptiembre" runat="server" CommandName="9"  CommandArgument='<%# Eval("SubDiarioID")%>' ><asp:Image ID="imgSeptiembre" AlternateText='<%# Eval("Septiembre")%>' runat="server" ToolTip="Septiembre" ImageUrl="~/images/unlock.png"/></asp:LinkButton>
                                                    </ItemTemplate>
                                            </telerik:GridTemplateColumn>
                                            <telerik:GridTemplateColumn AllowFiltering="false" HeaderText="Octubre">
                                                    <ItemTemplate>
                                                    <asp:LinkButton ID="btnlinkOctubre" runat="server" CommandName="10"  CommandArgument='<%# Eval("SubDiarioID")%>' ><asp:Image ID="imgOctubre" AlternateText='<%# Eval("Octubre")%>' runat="server" ToolTip="Octubre" ImageUrl="~/images/unlock.png"/></asp:LinkButton>
                                                    </ItemTemplate>
                                            </telerik:GridTemplateColumn>
                                            
                                            <telerik:GridTemplateColumn AllowFiltering="false" HeaderText="Noviembre">
                                                    <ItemTemplate>
                                                    <asp:LinkButton ID="btnlinkNoviembre" runat="server" CommandName="11"  CommandArgument='<%# Eval("SubDiarioID")%>' ><asp:Image ID="imgNoviembre" AlternateText='<%# Eval("Noviembre")%>' runat="server" ToolTip="Noviembre" ImageUrl="~/images/unlock.png"/></asp:LinkButton>
                                                    </ItemTemplate>
                                            </telerik:GridTemplateColumn>
                                            
                                            <telerik:GridTemplateColumn AllowFiltering="false" HeaderText="Diciembre">
                                                    <ItemTemplate>
                                                    <asp:LinkButton ID="btnlinkDiciembre" runat="server" CommandName="12"  CommandArgument='<%# Eval("SubDiarioID")%>' ><asp:Image ID="imgDiciembre" AlternateText='<%# Eval("Diciembre")%>' runat="server" ToolTip="Diciembre" ImageUrl="~/images/unlock.png"/></asp:LinkButton>
                                                    </ItemTemplate>
                                            </telerik:GridTemplateColumn>
                                                                                                                                                                          
                                            </Columns>
                                            
                                        </MasterTableView>
                                        
                                        <GroupHeaderItemStyle CssClass="gridtext" HorizontalAlign="Left" />
                                        <FooterStyle Font-Bold="true" />
                                        <ClientSettings EnableRowHoverStyle="true">
                                            <Scrolling AllowScroll="true" UseStaticHeaders="true" />
                                            <Selecting AllowRowSelect="True"/>
                                        </ClientSettings>
                                    </telerik:RadGrid>
                                    
                                </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>

