218 lines
13 KiB
Plaintext
218 lines
13 KiB
Plaintext
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="RepMovimientos.aspx.vb" Inherits="RepMovimientosRep" %>
|
|
|
|
<asp:Content ID="Content1" ContentPlaceHolderID="H" runat="Server">
|
|
<li>
|
|
<asp:LinkButton ID="LnkExportar" runat="server"><i class="fa fa-ad-excel"></i> Exportar</asp:LinkButton>
|
|
</li>
|
|
<li>
|
|
<asp:LinkButton ID="LnkPdf" runat="server"><i class="fa fa-ad-pdf"></i> Genera PDF</asp:LinkButton>
|
|
</li>
|
|
</asp:Content>
|
|
<asp:Content ID="Content5" ContentPlaceHolderID="CP" runat="Server">
|
|
<link href="/Metronic/assets/global/plugins/datatables/plugins/bootstrap/dataTables.bootstrap.css" rel="stylesheet" />
|
|
</asp:Content>
|
|
<asp:Content ID="Content4" ContentPlaceHolderID="Css" runat="Server">
|
|
<style>
|
|
.table-scrollable {
|
|
margin-top: 0px !important;
|
|
margin-bottom: 0px !important;
|
|
}
|
|
|
|
.Widthall {
|
|
width: 100% !important;
|
|
}
|
|
|
|
.dataTables_scrollHeadInner {
|
|
width: 100% !important;
|
|
background-color: #dddddd;
|
|
padding-left: 0px !important;
|
|
}
|
|
|
|
.dataTables_scrollFoot {
|
|
display: none;
|
|
position: static;
|
|
}
|
|
|
|
.table-scrollable {
|
|
margin: 0px !important;
|
|
}
|
|
|
|
.dataTables_scroll {
|
|
margin-bottom: 0px;
|
|
}
|
|
|
|
.table.dataTable {
|
|
margin-top: 0px !important;
|
|
}
|
|
|
|
.dataTables_scrollBody table th {
|
|
padding: 0px !important;
|
|
padding-right: 4px !important;
|
|
padding-left: 4px !important;
|
|
}
|
|
|
|
.sinlink td a {
|
|
pointer-events: none;
|
|
cursor: default;
|
|
color: black;
|
|
font-size: small;
|
|
}
|
|
|
|
.white a {
|
|
color: white !important;
|
|
}
|
|
|
|
.Derecha {
|
|
text-align: right;
|
|
}
|
|
|
|
.Izquierda {
|
|
text-align: left;
|
|
}
|
|
</style>
|
|
</asp:Content>
|
|
<asp:Content ID="Content2" ContentPlaceHolderID="E" runat="Server">
|
|
Reporte de Movimientos
|
|
</asp:Content>
|
|
<asp:Content ID="Content3" ContentPlaceHolderID="C" runat="Server">
|
|
|
|
<asp:UpdatePanel ID="UpFiltros" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div class="portlet solid grey-cascade portlet-filter" style="">
|
|
<div class="portlet-title portlet-filterT smalltitle" style="min-height: 49px; position: relative;">
|
|
<div class="tools">
|
|
<asp:Button ID="btConsultar" CssClass="btn btn-primary" runat="server" Text="Consultar" /></td>
|
|
<a href="javascript:;" data-idchekbox="<%= chkexpand.ClientID%>" class=" <%= IIf(chkexpand.Checked = True, "collapse", "expand")%>"></a>
|
|
<asp:CheckBox ID="chkexpand" Checked="true" CssClass="hidden" runat="server" />
|
|
</div>
|
|
<div class="titlefiltros caption magindate">
|
|
<div class="row">
|
|
<div class="col-md-1 truncate" style="text-align: right!important">Almacén:</div>
|
|
<div class="col-md-2">
|
|
<asp:DropDownList ID="DdlAlmacen" CssClass="form-control input-sm select2me" runat="server" Width="150" DataValueField="CveAlmacen" DataTextField="Almacen"></asp:DropDownList>
|
|
</div>
|
|
<div class="col-md-1 truncate" style="text-align: right!important">Tipo de movimiento:</div>
|
|
<div class="col-md-2">
|
|
<asp:DropDownList ID="DdlTipoMovimiento" CssClass="form-control input-sm select2me" runat="server" Width="150" DataTextField="Concepto" DataValueField="CveConcepto"></asp:DropDownList>
|
|
</div>
|
|
<div class="col-md-1 truncate" style="text-align: right!important">F.I. Movto:</div>
|
|
<div class="col-md-1 col-sm-1">
|
|
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 95px !important; padding: 0px;">
|
|
<asp:TextBox Style="width: 80px !important;" ID="TxtFechaI" runat="server" CssClass="form-control" MaxLength="10"></asp:TextBox>
|
|
<span class="input-group-btn ">
|
|
<asp:LinkButton ID="ImgFechaI" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
|
</span>
|
|
</div>
|
|
<ajax:MaskedEditExtender ID="MEEFechaI" runat="server" TargetControlID="TxtFechaI" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
|
<ajax:CalendarExtender runat="server" ID="CEFechaI" TargetControlID="TxtFechaI" PopupButtonID="ImgFechaI" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-1 truncate" style="text-align: right!important">F.F. Mov:</div>
|
|
<div class="col-md-1 col-sm-1">
|
|
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 95px !important; padding: 0px;">
|
|
<asp:TextBox Style="width: 80px !important;" ID="TxtFechaF" runat="server" CssClass="form-control" MaxLength="10"></asp:TextBox>
|
|
<span class="input-group-btn ">
|
|
<asp:LinkButton ID="ImgFechaF" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
|
</span>
|
|
</div>
|
|
<ajax:MaskedEditExtender ID="MEEFechaF" runat="server" TargetControlID="TxtFechaF" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
|
<ajax:CalendarExtender runat="server" ID="CalendarExtender1" TargetControlID="TxtFechaF" PopupButtonID="ImgFechaF" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body magindate" <%= IIf(chkexpand.Checked = True, "", "style=""display:none;""")%>>
|
|
<div class="row">
|
|
<div class="col-md-1 truncate" style="text-align: right!important">Usuario:</div>
|
|
<div class="col-md-2">
|
|
<asp:DropDownList ID="DdlUsuarios" CssClass="form-control input-sm select2me" runat="server" Width="150" DataTextField="Usuario" DataValueField="CveUsuario"></asp:DropDownList>
|
|
</div>
|
|
|
|
<div class="col-md-1 truncate" style="text-align: right!important">Folio:</div>
|
|
<div class="col-md-2">
|
|
<asp:TextBox ID="TxtFolio" style="max-width:75px;" runat="server" CssClass="form-control input-sm" Width="150"></asp:TextBox>
|
|
</div>
|
|
|
|
<div class="col-md-1 truncate" style="text-align: right!important">F.I. Ing:</div>
|
|
<div class="col-md-1 col-sm-1">
|
|
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 95px !important; padding: 0px;">
|
|
<asp:TextBox Style="width: 80px !important;" ID="TxtFechaIngInicio" runat="server" CssClass="form-control" MaxLength="10"></asp:TextBox>
|
|
<span class="input-group-btn ">
|
|
<asp:LinkButton ID="ImgFechaIngI" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
|
</span>
|
|
</div>
|
|
<ajax:MaskedEditExtender ID="MaskedEditExtender1" runat="server" TargetControlID="TxtFechaIngInicio" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
|
<ajax:CalendarExtender runat="server" ID="CalendarExtender2" TargetControlID="TxtFechaIngInicio" PopupButtonID="ImgFechaIngI" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
|
</div>
|
|
|
|
<div class="col-md-1 truncate" style="text-align: right!important">F.F. Ing:</div>
|
|
<div class="col-md-1 col-sm-1">
|
|
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 95px !important; padding: 0px;">
|
|
<asp:TextBox Style="width: 80px !important;" ID="TxtFechaIngFin" runat="server" CssClass="form-control" MaxLength="10"></asp:TextBox>
|
|
<span class="input-group-btn ">
|
|
<asp:LinkButton ID="ImgFechaIngF" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
|
</span>
|
|
</div>
|
|
<ajax:MaskedEditExtender ID="MaskedEditExtender2" runat="server" TargetControlID="TxtFechaIngFin" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
|
<ajax:CalendarExtender runat="server" ID="CalendarExtender3" TargetControlID="TxtFechaIngFin" PopupButtonID="ImgFechaIngF" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
<div class="row col-md-12" style="text-align: right!important">
|
|
<input type="text" id="TxtBusqueda" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GvM.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
|
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GvM.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
|
</div>
|
|
<br />
|
|
<br />
|
|
<asp:UpdatePanel ID="UpDatosGV" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<asp:GridView ID="GvM" data-sort="true" Width="100%" runat="server" GridLines="None" CssClass="table table-striped table-advance table-hover Widthall ScrollAD" EmptyDataText="No se encontraron resultados." ShowHeaderWhenEmpty="true" AutoGenerateColumns="False" >
|
|
<Columns>
|
|
<asp:BoundField HeaderText="Concepto" DataField="Concepto" ItemStyle-Width="10%" />
|
|
<asp:HyperLinkField DataNavigateUrlFields="CveMovimiento" DataNavigateUrlFormatString="~/inventarios/EntradasSalidas.aspx?CveMovimiento={0}" Target="_blank" ItemStyle-Width="15%" HeaderText="Movimiento" ControlStyle-CssClass="Texto" ItemStyle-HorizontalAlign="Left" DataTextField="Folio" />
|
|
<asp:BoundField HeaderText="Almacen" DataField="Almacen" ItemStyle-Width="20%" />
|
|
<asp:BoundField HeaderText="F. Movimiento" DataField="FechaMovto" DataFormatString="{0:d}" ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center" />
|
|
<asp:BoundField HeaderText="F. Ingreso" DataField="FechaIng" DataFormatString="{0:d}" ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center" />
|
|
<asp:HyperLinkField DataNavigateUrlFields="CveCompra" DataNavigateUrlFormatString="~/Compras/Compras.aspx?CveCompra={0}" Target="_blank" ItemStyle-Width="12.5%" HeaderText="Compra" ControlStyle-CssClass="Texto" ItemStyle-HorizontalAlign="Left" DataTextField="SerieFolioCompra" />
|
|
<asp:HyperLinkField DataNavigateUrlFields="CveVenta" DataNavigateUrlFormatString="~/Ventas/Ventas.aspx?CvePS={0}" Target="_blank" ItemStyle-Width="12.5%" HeaderText="Venta" ControlStyle-CssClass="Texto" ItemStyle-HorizontalAlign="Left" DataTextField="SerieFolioVenta" />
|
|
</Columns>
|
|
</asp:GridView>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
</asp:Content>
|
|
|
|
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
|
<script src="/Metronic/assets/global/scripts/datatable.js"></script>
|
|
<script src="/Metronic/assets/global/plugins/datatables/all.min.js"></script>
|
|
<script type="text/javascript">
|
|
|
|
//function OrdenarGV() {
|
|
// var Tam = TamañoVentana();
|
|
// var Alto = Tam.height - 330;
|
|
// if (Alto < 100) {
|
|
// Alto = 100;
|
|
// }
|
|
|
|
// $('#GvM').DataTable({
|
|
// scrollY: Alto + 'px',
|
|
// scrollCollapse: true,
|
|
// paging: false,
|
|
// searching: false,
|
|
// info: false
|
|
// });
|
|
// $('#GvM').parent().parent().children().first().css("position", "static");
|
|
//}
|
|
|
|
</script>
|
|
|
|
</asp:Content>
|
|
|