541 lines
32 KiB
Plaintext
541 lines
32 KiB
Plaintext
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="Kardex.aspx.vb" Inherits="Inventarios_Kardex" %>
|
|
|
|
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
|
</asp:Content>
|
|
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
|
<style>
|
|
.dataTables_scrollBody table th {
|
|
padding: 0px !important;
|
|
padding-right: 4px !important;
|
|
padding-left: 4px !important;
|
|
}
|
|
|
|
.table-scrollable {
|
|
margin: 0px !important;
|
|
}
|
|
|
|
.dataTables_scrollFoot {
|
|
display: none;
|
|
}
|
|
|
|
.dataTables_scroll {
|
|
margin-bottom: 0px;
|
|
}
|
|
|
|
.table.dataTable {
|
|
margin-top: 0px !important;
|
|
}
|
|
|
|
.table table-striped table-hover dataTable no-footer {
|
|
margin-top: 0px !important;
|
|
}
|
|
|
|
.Excede {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.psagregar > div.comboxes {
|
|
display: inline-block;
|
|
width: 250px;
|
|
}
|
|
|
|
.psagregar > div.codigo input {
|
|
width: 79px;
|
|
}
|
|
|
|
.psagregar > div.codigo {
|
|
display: inline-block;
|
|
width: 80px;
|
|
}
|
|
|
|
.psagregar > div.codigo > input[type="submit"] {
|
|
display: none;
|
|
}
|
|
|
|
|
|
|
|
.widget-thumb {
|
|
padding: 15px;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.widget-thumb.bordered {
|
|
border: 3px solid whitesmoke;
|
|
}
|
|
|
|
.widget-thumb .widget-thumb-heading {
|
|
font-size: 14px;
|
|
font-weight: 700;
|
|
color: #8e9daa;
|
|
margin: 0px 5px;
|
|
text-align: center;
|
|
}
|
|
|
|
.widget-thumb .widget-thumb-wrap {
|
|
overflow: hidden;
|
|
}
|
|
|
|
.widget-thumb .widget-thumb-wrap .widget-thumb-icon {
|
|
float: left;
|
|
width: 60px;
|
|
height: 60px;
|
|
display: inline-block;
|
|
font-size: 20px;
|
|
line-height: 41px;
|
|
color: #fff;
|
|
text-align: center;
|
|
padding: 10px;
|
|
margin-right: 15px;
|
|
}
|
|
|
|
.widget-thumb .widget-thumb-body {
|
|
overflow: hidden;
|
|
padding: 5px;
|
|
}
|
|
|
|
.widget-thumb .widget-thumb-body .widget-thumb-subtitle {
|
|
padding-top: 2px;
|
|
display: block;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: #8e9daa;
|
|
}
|
|
|
|
.widget-thumb .widget-thumb-body .widget-thumb-body-stat {
|
|
display: block;
|
|
font-size: 20px;
|
|
font-weight: 600;
|
|
color: #3e4f5e;
|
|
}
|
|
</style>
|
|
</asp:Content>
|
|
<asp:Content ID="Content3" ContentPlaceHolderID="HB" runat="Server">
|
|
</asp:Content>
|
|
<asp:Content ID="Content4" ContentPlaceHolderID="E" runat="Server">
|
|
Kardex
|
|
</asp:Content>
|
|
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
|
<asp:UpdatePanel runat="server" ID="UpAcciones" UpdateMode="Conditional" >
|
|
<ContentTemplate>
|
|
<li>
|
|
<asp:LinkButton ID="ImgImprimir" runat="server"><i class="fa fa-ad-pdf"></i> Generar PDF</asp:LinkButton>
|
|
</li>
|
|
<li>
|
|
<asp:LinkButton ID="LnkExportar" runat="server"><i class="fa fa-ad-excel"></i> Generar Excel</asp:LinkButton>
|
|
</li>
|
|
<li>
|
|
<asp:LinkButton ID="LnkSeries" Visible="false" runat="server"><i class="fa fa-list"></i> Series Disponibles</asp:LinkButton>
|
|
</li>
|
|
<li>
|
|
<a target="_blank" class="ayuda" href="../Documentacion/DocumentacionInventarios.aspx#Kardex"> </a>
|
|
</li>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</asp:Content>
|
|
<asp:Content ID="Content6" ContentPlaceHolderID="C" runat="Server">
|
|
|
|
|
|
<asp:UpdatePanel ID="UPFiltros" runat="server" UpdateMode="Conditional" RenderMode="Inline">
|
|
<ContentTemplate>
|
|
<div class="portlet solid grey-cascade portlet-filter">
|
|
<div class="portlet-title portlet-filterT smalltitle" style="min-height: 49px; position: relative;">
|
|
<div class="tools">
|
|
<asp:Button ID="btConsultar" runat="server" Text="Consultar" class="btn btn-primary" />
|
|
<a href="javascript;" data-idchekbox="<%= chkexpand.ClientID%>" class=" <%= IIf(chkexpand.Checked = True, "collapse", "expand")%>"></a>
|
|
<asp:CheckBox ID="chkexpand" CssClass="hidden" runat="server" />
|
|
</div>
|
|
<div class="titlefiltros caption ">
|
|
<div class="row" style="padding-top: 10px; position: relative;">
|
|
|
|
<asp:Label runat="server" ID="LblPS" CssClass="col-md-1 truncate" Style="max-width: 80px;">Producto:</asp:Label>
|
|
<div class="col-md-2 " style="min-width: 250px; max-width: 300px;">
|
|
<ADS:Dropdownlost ID="ddlProducto2" runat="server" AutoPostBack="False" DataTextField="PSCodigo" IncluyeTodos="false" DataValueField="CvePS" CssClassDdl="select2me" CssStyle="width: 250px; "></ADS:Dropdownlost>
|
|
</div>
|
|
|
|
<label class="col-md-1 truncate" style="max-width: 80px;">Almacén:</label>
|
|
<div class="col-md-2">
|
|
<asp:DropDownList ID="ddlAlmacen" runat="server" CssClass="select2me " Style="width: 175px !important;" DataTextField="Almacen" DataValueField="CveAlmacen"></asp:DropDownList>
|
|
</div>
|
|
|
|
<label class="col-md-1" style="max-width: 85px;">Fecha Inicio:</label>
|
|
<div class="col-md-1" style="min-width: 115px;">
|
|
<div style="display: inline-block; vertical-align: text-bottom;">
|
|
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 105px !important; padding: 0px;">
|
|
<asp:TextBox ID="TxtFechaI" runat="server" CssClass="form-control" CausesValidation="true" Style="width: 80px" 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>
|
|
<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>
|
|
<asp:RequiredFieldValidator ID="rfvFechaI" runat="server" ControlToValidate="txtFechaI" Display="None" ErrorMessage="El campo <b>''Fecha Inicial''</b> es requerido por la aplicación, por favor ingrese una fecha." ValidationGroup="Valida"></asp:RequiredFieldValidator>
|
|
<asp:CompareValidator ID="cvFechaI" runat="server" ControlToValidate="txtFechaI" Display="None" ErrorMessage="El campo <b>''Fecha Inicial''</b> no tienes el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="Valida"></asp:CompareValidator>
|
|
<ajax:ValidatorCalloutExtender ID="vcoFfvFI" runat="server" HighlightCssClass="vco" TargetControlID="rfvFechaI" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
<ajax:ValidatorCalloutExtender ID="vcoCvFI" runat="server" HighlightCssClass="vco" TargetControlID="cvFechaI" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<label class="col-md-1 " style="max-width: 70px;">Fecha Fin:</label>
|
|
<div class="col-md-1" style="min-width: 115px;">
|
|
<div style="display: inline-block; vertical-align: text-bottom;">
|
|
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 105px !important; padding: 0px;">
|
|
<asp:TextBox ID="TxtFechaF" runat="server" CssClass="form-control" CausesValidation="true" Style="width: 80px" 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>
|
|
<asp:RequiredFieldValidator ID="rfvFechaF" runat="server" ControlToValidate="txtFechaF" Display="None" ErrorMessage="El campo <b>''Fecha Final''</b> es requerido por la aplicación, por favor ingrese una fecha." ValidationGroup="Valida"></asp:RequiredFieldValidator>
|
|
<asp:CompareValidator ID="cvFechaF" runat="server" ControlToValidate="txtFechaF" Display="None" ErrorMessage="El campo <b>''Fecha Final''</b> no tienes el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="Valida"></asp:CompareValidator>
|
|
<ajax:ValidatorCalloutExtender ID="vcoRfvFF" runat="server" HighlightCssClass="vco" TargetControlID="rfvFechaF" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
<ajax:ValidatorCalloutExtender ID="vcoCvFF" runat="server" HighlightCssClass="vco" TargetControlID="cvFechaF" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-1">
|
|
<asp:CheckBox ID="ChkAgruparAlmacen" CssClass="md-checksd" runat="server" Text="Agrupar Almacenes" Checked="False" Visible="false" />
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body" <%= IIf(chkexpand.Checked = True, "", "style=""display:none;""")%>>
|
|
<div class="row">
|
|
<label class="col-md-1 truncate">Clasificación:</label>
|
|
<div class="col-md-2">
|
|
<asp:DropDownList ID="DdlClasificacion" CssClass="select2me" runat="server" AppendDataBoundItems="true" AutoPostBack="true" DataTextField="Clasificacion" DataValueField="CveClasificacion" Class="table-group-action-input form-control input-inline input-small input-sm" Style="width: 250px !important;">
|
|
<asp:ListItem Selected="True" Text="Todos" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</div>
|
|
|
|
<label class="col-md-1 truncate">Unidad Medida:</label>
|
|
<div class="col-md-2">
|
|
<asp:DropDownList ID="DdlUnidadMedida" runat="server" CssClass="select2me " Style="width: 200px !important;" DataTextField="UnidadMedida" DataValueField="CveUnidadMedida">
|
|
<asp:ListItem Text="Todos" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</div>
|
|
|
|
<div class="col-md-1">
|
|
<asp:CheckBox ID="cbEntrada" CssClass="md-checksd" runat="server" Text="Entrada" Checked="True" />
|
|
</div>
|
|
|
|
<div class="col-md-1">
|
|
<asp:CheckBox ID="cbSalida" CssClass="md-checksd" runat="server" Text="Salida" Checked="True" />
|
|
</div>
|
|
|
|
<div class="col-md-2">
|
|
<button type="button" class="btn btn-default" data-toggle="modal" data-target="#ModalTiposAlmacen">Filtrar tipos almacén</button>
|
|
</div>
|
|
|
|
|
|
<div id="DivSerie" runat="server" visible="false">
|
|
<label class="col-md-1 truncate" style="max-width: 80px;">Serie:</label>
|
|
<div class="col-md-1 ">
|
|
<asp:TextBox ID="TxtSerie" CssClass="form-control input-sm" runat="server" Width="90px" />
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
|
|
<%-- INDICADORES --%>
|
|
<asp:UpdatePanel ID="UpIndicadores" UpdateMode="Conditional" runat="server">
|
|
<ContentTemplate>
|
|
<div id="DivIndicadores" visible="false" class="row" runat="server">
|
|
<div class="col-md-3 col-sm-6 col-xs-12">
|
|
<div class="widget-thumb text-uppercase bordered">
|
|
<h4 class="widget-thumb-heading">Existencia</h4>
|
|
<div class="widget-thumb-wrap">
|
|
<i class="widget-thumb-icon bg-yellow fa fa-cubes"></i>
|
|
<div class="widget-thumb-body">
|
|
<span class="widget-thumb-body-stat">
|
|
<asp:Literal ID="LtIndicador_Existencia" Text="" runat="server" />
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-3 col-sm-6 col-xs-12">
|
|
<div class="widget-thumb text-uppercase bordered">
|
|
<h4 class="widget-thumb-heading">Valor</h4>
|
|
<div class="widget-thumb-wrap">
|
|
<i class="widget-thumb-icon bg-green fa fa-money"></i>
|
|
<div class="widget-thumb-body">
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<span class="widget-thumb-subtitle">MXN</span>
|
|
<span class="widget-thumb-body-stat">
|
|
<asp:Literal ID="LtIndicador_ValorPesos" Text="" runat="server" />
|
|
</span>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<span class="widget-thumb-subtitle">USD *</span>
|
|
<span class="widget-thumb-body-stat">
|
|
<asp:Literal ID="LtIndicador_ValorDolares" Text="" runat="server" />
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-3 col-sm-6 col-xs-12">
|
|
<div class="widget-thumb text-uppercase bordered">
|
|
<h4 class="widget-thumb-heading">Costo Promedio</h4>
|
|
<div class="widget-thumb-wrap">
|
|
<i class="widget-thumb-icon bg-green-jungle fa fa-usd"></i>
|
|
<div class="widget-thumb-body">
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<span class="widget-thumb-subtitle">MXN</span>
|
|
<span class="widget-thumb-body-stat">
|
|
<asp:Literal ID="LtIndicador_CPPesos" Text="" runat="server" />
|
|
</span>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<span class="widget-thumb-subtitle">USD *</span>
|
|
<span class="widget-thumb-body-stat">
|
|
<asp:Literal ID="LtIndicador_CPDolares" Text="" runat="server" />
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-3 col-sm-6 col-xs-12">
|
|
<div class="widget-thumb text-uppercase bordered">
|
|
<h4 class="widget-thumb-heading">Ultimo Costo</h4>
|
|
<div class="widget-thumb-wrap">
|
|
<i class="widget-thumb-icon bg-green-jungle fa fa-usd"></i>
|
|
<div class="widget-thumb-body">
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<span class="widget-thumb-subtitle">MXN</span>
|
|
<span class="widget-thumb-body-stat">
|
|
<asp:Literal ID="LtIndicador_UCPesos" Text="" runat="server" />
|
|
</span>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<span class="widget-thumb-subtitle">USD *</span>
|
|
<span class="widget-thumb-body-stat">
|
|
<asp:Literal ID="LtIndicador_UCDolares" Text="" runat="server" />
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="col-md-6 text-left">
|
|
<asp:Literal ID="LtIndicador_MensajeSerie" Text="" runat="server" />
|
|
</div>
|
|
<div class="col-md-6 text-right">
|
|
<asp:Literal ID="LtIndicador_Mensaje" Text="" runat="server" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
|
|
<div class="text-right" style="margin: 5px 0px;">
|
|
<input type="text" id="TxtBusqueda2" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusqueda2','{0}')", GvM.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
|
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusqueda2','{0}')", GvM.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
|
</div>
|
|
|
|
<asp:UpdatePanel ID="UPDatos" runat="server" UpdateMode="Conditional" RenderMode="Inline">
|
|
<ContentTemplate>
|
|
<asp:GridView ID="GvM" Width="100%" runat="server" ShowHeader="true" EmptyDataText="No hay registros." AutoGenerateColumns="False" AllowPaging="False"
|
|
ShowFooter="True" ShowHeaderWhenEmpty="True" CssClass="table table-striped table-hover Widthall ScrollAD mysmallbtn" GridLines="None" DataKeyNames="CveMovimiento,FechaMovto">
|
|
<Columns>
|
|
<asp:BoundField DataField="FechaMovto" DataFormatString="{0:d}" ItemStyle-Width="70px" HeaderText="Fecha" />
|
|
<asp:TemplateField ItemStyle-Width="10px" ItemStyle-HorizontalAlign="Left" Visible="false">
|
|
<ItemTemplate>
|
|
<asp:LinkButton data-toggle="tooltip" title="Editar Fecha" ID="LnkEditarFecha" OnClick="LnkEditarFecha_Click" CssClass="btn btn-circle btn-sm green" runat="server" Text="<i class='fa fa-pencil'></i>"></asp:LinkButton>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:BoundField DataField="Concepto" ItemStyle-Width="170px" HeaderText="Movimiento" ItemStyle-HorizontalAlign="Left" />
|
|
<asp:BoundField DataField="Almacen" ItemStyle-Width="140px" HeaderText="Almacen" ItemStyle-HorizontalAlign="Left" />
|
|
<asp:TemplateField ItemStyle-Width="70px" HeaderText="Folio">
|
|
<ItemTemplate>
|
|
<asp:HyperLink ID="hlFolio" runat="server" Text='<%# Eval("Folio")%>' CssClass="Texto" NavigateUrl='<%# Eval("CveMovimiento", "/Inventarios/EntradasSalidas.aspx?CveMovimiento={0}")%>' Target="_blank" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField ItemStyle-Width="140px" ItemStyle-HorizontalAlign="Left" HeaderText="Folio Doc.">
|
|
<ItemTemplate>
|
|
<asp:HyperLink runat="server" Target="_blank" ID="hlFolioD" Text='<%# Eval("FolioDocto")%>' CssClass="Texto" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField ItemStyle-Width="100px" ItemStyle-HorizontalAlign="Left" HeaderText="U. M.">
|
|
<ItemTemplate>
|
|
<asp:Label ID="lbUm" runat="server" Text='<%# Eval("UnidadMedida")%>' data-toggle="tooltip" title='<%# Eval("CveUnidadMedida")%>'></asp:Label>
|
|
</ItemTemplate>
|
|
<ItemStyle Width="100px"></ItemStyle>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField ItemStyle-Width="70px" ItemStyle-HorizontalAlign="Left" HeaderText="Sección" Visible="false">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="lbSA" runat="server" Text='<%# Eval("SeccionAlmacen")%>'></asp:Literal>
|
|
</ItemTemplate>
|
|
<ItemStyle Width="100px"></ItemStyle>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField ItemStyle-Width="70px" ItemStyle-HorizontalAlign="Left" HeaderText="Serie" Visible="false">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="lbS" runat="server" Text='<%# Eval("Serie")%>'></asp:Literal>
|
|
</ItemTemplate>
|
|
<ItemStyle Width="100px"></ItemStyle>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField ItemStyle-Width="70px" ItemStyle-HorizontalAlign="Left" HeaderText="Lote" Visible="false">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="lbL" runat="server" Text='<%# Eval("Lote")%>'></asp:Literal>
|
|
</ItemTemplate>
|
|
<ItemStyle Width="70"></ItemStyle>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField ItemStyle-Width="70px" ItemStyle-HorizontalAlign="Center" HeaderText="F. Caducidad" Visible="false">
|
|
<ItemTemplate>
|
|
<asp:Label ID="lbFCad" runat="server" Text='<%# Eval("FechaCaducidad", "{0:d}")%>' data-toggle="tooltip"></asp:Label>
|
|
</ItemTemplate>
|
|
<ItemStyle Width="75px"></ItemStyle>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField ItemStyle-Width="100px" ItemStyle-HorizontalAlign="Right" HeaderText="Entrada">
|
|
<ItemTemplate>
|
|
<asp:Label ID="lbEntrada" runat="server"
|
|
Text='<%# Eval("Entrada", "{0:###,###.####}")%>'></asp:Label>
|
|
</ItemTemplate>
|
|
<ItemStyle Width="100px" HorizontalAlign="Right"></ItemStyle>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField ItemStyle-Width="100px" ItemStyle-HorizontalAlign="Right" HeaderText="Salida">
|
|
<ItemTemplate>
|
|
<asp:Label ID="lbSalida" runat="server"
|
|
Text='<%# Eval("Salida", "{0:###,###.####}")%>'></asp:Label>
|
|
</ItemTemplate>
|
|
<ItemStyle Width="100px" HorizontalAlign="Right"></ItemStyle>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField ItemStyle-Width="100px" ItemStyle-HorizontalAlign="Right" HeaderText="Costo">
|
|
<ItemTemplate>
|
|
<asp:Label ID="lbCosto" runat="server"
|
|
Text='<%# Eval("Costo", "{0:N2}")%>'></asp:Label>
|
|
</ItemTemplate>
|
|
<ItemStyle Width="100px" HorizontalAlign="Right"></ItemStyle>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField ItemStyle-Width="100px" ItemStyle-HorizontalAlign="Right" HeaderText="Importe">
|
|
<ItemTemplate>
|
|
<asp:Label ID="lbImporte" runat="server"
|
|
Text='<%# Eval("Importe", "{0:N2}")%>'></asp:Label>
|
|
</ItemTemplate>
|
|
<ItemStyle Width="100px" HorizontalAlign="Right"></ItemStyle>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField ItemStyle-Width="100px" ItemStyle-HorizontalAlign="Right" HeaderText="Existencias">
|
|
<ItemTemplate>
|
|
<asp:Label ID="lbExistencias" runat="server"
|
|
Text='<%# Eval("Existencias", "{0:#,###.####}")%>'></asp:Label>
|
|
</ItemTemplate>
|
|
<ItemStyle Width="100px"></ItemStyle>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField ItemStyle-Width="100px" ItemStyle-HorizontalAlign="Right" HeaderText="Valor">
|
|
<ItemTemplate>
|
|
<asp:Label ID="lbValor" runat="server"
|
|
Text='<%# Eval("ValorInventario", "{0:N2}")%>'></asp:Label>
|
|
</ItemTemplate>
|
|
<ItemStyle Width="100px" HorizontalAlign="Right"></ItemStyle>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
<RowStyle CssClass="Texto" />
|
|
<AlternatingRowStyle CssClass="TextoAlterno" />
|
|
</asp:GridView>
|
|
</div>
|
|
|
|
</ContentTemplate>
|
|
<Triggers>
|
|
<asp:AsyncPostBackTrigger ControlID="btConsultar" EventName="Click" />
|
|
</Triggers>
|
|
</asp:UpdatePanel>
|
|
<div id="ModalTiposAlmacen" class="modal ADS fade" role="dialog">
|
|
<asp:UpdatePanel ID="UpTiposAlmacen" class="modal-dialog rowpadding" tabindex="-1" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
<h4 class="modal-title">Tipos Almacén</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<asp:CheckBoxList ID="CBLTiposAlmacen" DataValueField="CveTipoAlmacen" DataTextField="TipoAlmacen" RepeatDirection="Horizontal" RepeatColumns="3" runat="server"></asp:CheckBoxList>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button id="CancelarTiposAlmacen" type="button" class="btn btn-default" data-dismiss="modal">Cerrar</button>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
<div id="DModalEditarFecha" class="modal ADS fade" role="dialog">
|
|
<asp:UpdatePanel class="modal-dialog" runat="server" ID="UpModalEditarFecha" UpdateMode="Conditional" RenderMode="Inline">
|
|
<ContentTemplate>
|
|
<div class="modal-content">
|
|
<div class="modal-header ">
|
|
<h4 class="modal-title">
|
|
<asp:Literal ID="LtlEditarFecha" Text="Editar Fecha" runat="server"> </asp:Literal></h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<div class="row">
|
|
<div class="col-md-2" style="text-align: left">Fecha:</div>
|
|
<div class="col-md-2">
|
|
<asp:TextBox type="datetime-local" ID="TxtFecha" runat="server"></asp:TextBox>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<asp:Button ID="BtnEditarFecha" OnClick="BtnEditarFecha_Click" runat="server" Text="Editar Fecha" CssClass="btn btn-primary" ValidationGroup="VgmEditarFecha" />
|
|
<button type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
<div id="DivModalSerie" class="modal ADS fade" role="dialog">
|
|
<asp:UpdatePanel class="modal-dialog" runat="server" ID="UpdatePanel1" UpdateMode="Conditional" RenderMode="Inline" style="width:50%">
|
|
<ContentTemplate>
|
|
<div class="modal-content">
|
|
<div class="modal-header ">
|
|
<h4 class="modal-title">
|
|
<asp:Literal ID="LtlSerieTitle" Text="Series Disponibles" runat="server"> </asp:Literal></h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<div class="row" style="width:100%">
|
|
<div style="width:98%;margin-left:1.5%;margin-right:1.5%">
|
|
<asp:UpdatePanel ID="UpGridSeries" runat="server" UpdateMode="Conditional" RenderMode="Inline">
|
|
<ContentTemplate>
|
|
<asp:GridView ID="GvSeries" Width="98%" runat="server" ShowHeader="true" EmptyDataText="No hay registros." AutoGenerateColumns="False" AllowPaging="False"
|
|
ShowFooter="True" ShowHeaderWhenEmpty="True" CssClass="table table-striped table-advance table-hover ScrollAD" GridLines="None"
|
|
DataKeyNames="CveEmpresa,CveAlmacen,Almacen,PS,CvePS,Serie,Lote,FechaCaducidad,CveSeccionAlmacen,Existencia,Valor">
|
|
<Columns>
|
|
<asp:BoundField HeaderText="Almacén" DataField="Almacen"/>
|
|
<asp:BoundField HeaderText="Serie" DataField="Serie"/>
|
|
<asp:BoundField HeaderText="Existencia" DataField="Existencia" DataFormatString="{0:#,###}"/>
|
|
</Columns>
|
|
|
|
</asp:GridView>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-primary" data-dismiss="modal">Cerrar</button>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</asp:Content>
|
|
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
|
</asp:Content>
|