387 lines
19 KiB
Plaintext
387 lines
19 KiB
Plaintext
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="RepAnomalias.aspx.vb" Inherits="Inventarios_RepAnomalias" %>
|
|
|
|
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
|
</asp:Content>
|
|
<asp:Content ID="Content2" 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;
|
|
}
|
|
|
|
.SinColor th {
|
|
background-color: white;
|
|
}
|
|
</style>
|
|
|
|
|
|
</asp:Content>
|
|
<asp:Content ID="Content3" ContentPlaceHolderID="HB" runat="Server">
|
|
</asp:Content>
|
|
<asp:Content ID="Content4" ContentPlaceHolderID="E" runat="Server">
|
|
Reporte de Inventario Fisico
|
|
</asp:Content>
|
|
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
|
<li>
|
|
<asp:LinkButton ID="LnkPDF" runat="server"><i class="fa fa-ad-pdf"></i> Imprimir PDF</asp:LinkButton>
|
|
</li>
|
|
<li>
|
|
<asp:LinkButton ID="ImgExcel" runat="server"><i class="fa fa-ad-excel"></i> Exportar a Excel Productos que Faltan </asp:LinkButton>
|
|
</li>
|
|
<li>
|
|
<asp:LinkButton ID="ImgExcel2" runat="server"><i class="fa fa-ad-excel"></i> Exporta a Excel Productos que Sobran</asp:LinkButton>
|
|
</li>
|
|
<%-- <li>
|
|
<asp:LinkButton ID="LnkExportar" runat="server"><i class="fa fa-ad-excel"></i> Exporta Faltantes</asp:LinkButton>
|
|
</li>
|
|
<li>
|
|
<asp:LinkButton ID="LnkExportaSobrantes" runat="server"><i class="fa fa-ad-excel"></i> Exporta Sobrantes</asp:LinkButton>
|
|
</li>--%>
|
|
<asp:UpdatePanel runat="server" id="UPAcciones" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<li>
|
|
<asp:LinkButton ID="btnFin" runat="server" Text="Finalizar Inventario" data-toggle="confirmation" data-popout="true" data-original-title="Finalizar el inventario" data-btn-ok-label="si" />
|
|
</li>
|
|
<li>
|
|
<asp:LinkButton ID="LnkCrear" runat="server"><i class=""></i> Crear a partir de</asp:LinkButton>
|
|
</li>
|
|
<li>
|
|
<asp:LinkButton ID="LnkGuardar" runat="server" Visible="false" > <i class="fa fa-floppy-o" style="font-weight:bold;"></i> Guardar Nuevo Inventario Físico</asp:LinkButton>
|
|
</li>
|
|
</ContentTemplate>
|
|
<Triggers>
|
|
<asp:AsyncPostBackTrigger ControlID="btnFin" />
|
|
</Triggers>
|
|
</asp:UpdatePanel>
|
|
|
|
</asp:Content>
|
|
<asp:Content ID="Content6" ContentPlaceHolderID="C" runat="Server">
|
|
|
|
<asp:UpdatePanel ID="UPDatos" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div class="col-md-12">
|
|
<div class="portlet smmallpadding light bordered infomov">
|
|
<div class="portlet-title">
|
|
<div class="tools">
|
|
<a href="javascript:;" class="expand"></a>
|
|
</div>
|
|
<div class="caption uppercase" style="position: relative;">
|
|
<i class="fa fa-info-circle"></i>Información del movimiento
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body">
|
|
<table>
|
|
<tr>
|
|
<td class="col-md-5">
|
|
<label><b>Título: </b></label>
|
|
<asp:Label ID="lbTitulo" runat="server"></asp:Label>
|
|
</td>
|
|
<td class="col-md-5">
|
|
<label><b>SubProyecto: </b></label>
|
|
<asp:Label ID="lbSubProyecto" runat="server"></asp:Label>
|
|
</td>
|
|
<td class="col-md-5">
|
|
<label><b>Estatus: </b></label>
|
|
<asp:Label ID="lbEstatus" runat="server"></asp:Label>
|
|
</td>
|
|
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-5">
|
|
<label><b>Fecha Inicio: </b></label>
|
|
<asp:Label ID="lbFechaI" runat="server"></asp:Label>
|
|
</td>
|
|
<td class="col-md-5">
|
|
<label><b>Fecha Fin: </b></label>
|
|
<asp:Label ID="lbFechaF" runat="server"></asp:Label>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table>
|
|
<tr>
|
|
<td class="col-md-12">
|
|
<label><b>Observaciones: </b></label>
|
|
<asp:Label ID="lbObservaciones" Width="600px" runat="server"></asp:Label>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="3"> <label><b>Almacenes:</b></label> <asp:Label ID="LblAlmacenes" runat="server" Text=""></asp:Label>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="3"> <label><b>Clasificaciones:</b></label> <asp:Label ID="LblClasif" runat="server" Text="Todas"></asp:Label>
|
|
<br />
|
|
<label><b>Clasificaciones Excluidas:</b></label> <asp:Label ID="LblClasificacionesExcluidas" runat="server" Text=""></asp:Label>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="3"> <label><b>Productos:</b></label> <asp:Label ID="LblProductos" runat="server" Text="Todos"></asp:Label>
|
|
<br />
|
|
<label><b>Productos Excluidos:</b></label> <asp:Label ID="LblProductosExcluidos" runat="server" Text=""></asp:Label>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="3"> <label><b>Proveedores:</b></label> <asp:Label ID="LblProveedores" runat="server" Text="Todos"></asp:Label></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
<br />
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<label style="font-size: 16px"><b>Productos que Faltan</b></label>
|
|
<div class="row">
|
|
<div class="col-md-4" align="left" id="divRegistradosFaltan" runat="server">
|
|
<asp:Label runat="server">Número de registros: <b><asp:Literal ID="LtlTotalRegistrosFaltan" runat="server"></asp:Literal></b></asp:Label>
|
|
</div>
|
|
<div class="col-md-8" align="right" id="DivBuscadorFaltan" runat="server">
|
|
<input type="text" id="TxtBusqueda" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GvF.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
|
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GvF.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<asp:UpdatePanel ID="UPAnomalias" UpdateMode="Conditional" runat="server">
|
|
<ContentTemplate>
|
|
<asp:GridView ID="GvF" data-sort="true" runat="server" EmptyDataText="Aun no hay registros." AutoGenerateColumns="False"
|
|
CssClass="table table-striped table-hover Widthall ScrollAD" Style="text-align: center;"
|
|
GridLines="None" DataKeyNames="CvePS">
|
|
<Columns>
|
|
<asp:TemplateField Visible="false">
|
|
<HeaderTemplate>
|
|
<asp:CheckBox ID="ChkAllFaltante" runat="server"/>
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:CheckBox ID="ChkPSFaltante" runat="server" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="#">
|
|
<ItemTemplate>
|
|
<asp:Label ID="LblC" runat="server" Font-Size="6pt"></asp:Label>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:BoundField HeaderText="Código Barras" DataField="CodigoBarras" ItemStyle-HorizontalAlign="Left" />
|
|
<asp:BoundField HeaderText="Código" DataField="Codigo" ItemStyle-HorizontalAlign="Left" />
|
|
<asp:BoundField HeaderText="Producto" DataField="PS" ItemStyle-HorizontalAlign="Left" />
|
|
<asp:BoundField HeaderText="Sección Almacén" DataField="SeccionAlmacen"/>
|
|
<asp:BoundField HeaderText="Serie" DataField="Serie" ItemStyle-HorizontalAlign="Left" />
|
|
<asp:BoundField HeaderText="Lote" DataField="Lote" ItemStyle-HorizontalAlign="Left" />
|
|
<asp:BoundField HeaderText="Fecha Caducidad" DataField="FechaCaducidad" ItemStyle-HorizontalAlign="Left" DataFormatString="{0:d}" />
|
|
<asp:BoundField HeaderText="Existencia" DataField="CantidadAlmacen" DataFormatString="{0:#,###.##}" ItemStyle-HorizontalAlign="Right" />
|
|
<asp:BoundField HeaderText="Inv. Físico" DataField="CantidadInventarioFisico" DataFormatString="{0:#,###.##}" ItemStyle-HorizontalAlign="Right" />
|
|
<asp:BoundField HeaderText="Diferencia" DataField="Diferencia" DataFormatString="{0:#,###.##}" ItemStyle-Font-Bold="true" />
|
|
<asp:BoundField HeaderText="Costo" DataField="Costo" DataFormatString="{0:#,##0.00}" ItemStyle-HorizontalAlign="Right" />
|
|
</Columns>
|
|
</asp:GridView>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
<br />
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<label style="font-size: 16px"><b>Productos que Sobran</b></label>
|
|
<div class="row">
|
|
<div class="col-md-4" align="left" id="divRegistradosSobran" runat="server">
|
|
<asp:Label runat="server">Número de registros: <b><asp:Literal ID="LtlTotalRegistrosSobran" runat="server"></asp:Literal></b></asp:Label>
|
|
</div>
|
|
<div class="col-md-8" align="right" id="DivBuscadorSobran" runat="server">
|
|
<input type="text" id="TxtBusqueda2" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusqueda2','{0}')", GvS.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
|
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusqueda2','{0}')", GvS.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<asp:UpdatePanel ID="UpdateGvS" UpdateMode="Conditional" runat="server">
|
|
<ContentTemplate>
|
|
<asp:GridView ID="GvS" data-sort="true" runat="server" EmptyDataText="Aun no hay registros." AutoGenerateColumns="False"
|
|
CssClass="table table-striped table-hover Widthall ScrollAD" Style="text-align: center;" GridLines="None" DataKeyNames="CvePS">
|
|
<Columns>
|
|
<asp:TemplateField Visible="false">
|
|
<HeaderTemplate>
|
|
<asp:CheckBox ID="ChkAllSobrante" runat="server"/>
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:CheckBox ID="ChkPSSobrante" runat="server" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="#">
|
|
<ItemTemplate>
|
|
<asp:Label ID="LblC" runat="server" Font-Size="6pt"></asp:Label>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:BoundField HeaderText="Código Barras" DataField="CodigoBarras" ItemStyle-HorizontalAlign="Left" />
|
|
<asp:BoundField HeaderText="Código" DataField="Codigo" ItemStyle-HorizontalAlign="Left" />
|
|
<asp:BoundField HeaderText="Producto" DataField="PS" ItemStyle-HorizontalAlign="Left" />
|
|
<asp:BoundField HeaderText="Sección Almacén" DataField="SeccionAlmacen"/>
|
|
<asp:BoundField HeaderText="Serie" DataField="Serie" ItemStyle-HorizontalAlign="Left" />
|
|
<asp:BoundField HeaderText="Lote" DataField="Lote" ItemStyle-HorizontalAlign="Left" />
|
|
<asp:BoundField HeaderText="Fecha Caducidad" DataField="FechaCaducidad" ItemStyle-HorizontalAlign="Left" DataFormatString="{0:d}" />
|
|
<asp:BoundField HeaderText="Existencia" DataField="CantidadAlmacen" ItemStyle-HorizontalAlign="Right" />
|
|
<asp:BoundField HeaderText="Inv. Físico" DataField="CantidadInventarioFisico" ItemStyle-HorizontalAlign="Right" />
|
|
<asp:BoundField HeaderText="Diferencia" DataField="Diferencia" DataFormatString="{0:#,###.##}" ItemStyle-Font-Bold="true" />
|
|
<asp:BoundField HeaderText="Costo" DataField="Costo" DataFormatString="{0:#,##0.00}" ItemStyle-HorizontalAlign="Right" />
|
|
</Columns>
|
|
</asp:GridView>
|
|
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
<br />
|
|
|
|
<div id="ModalGuardar" class="modal ADS fade" role="dialog">
|
|
<div class="modal-dialog modal-sm">
|
|
<div class="modal-content">
|
|
<div class="modal-header ">
|
|
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
<h4 class="modal-title">Guardar Nuevo Inventario Físico</h4>
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
<asp:UpdatePanel runat="server" ID="UpFecha" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:TextBox ID="TxtTitulo" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="50"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVTitulos" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtTitulo" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Titulo''</b> es necesario, por favor ingréselo." ValidationGroup="GrpObligatorio"></asp:RequiredFieldValidator>
|
|
<label for="<%= TxtTitulo.ClientID.ToString()%>">Titulo:</label>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<asp:UpdatePanel runat="server">
|
|
<ContentTemplate>
|
|
<asp:Button ID="BtnCrear" runat="server" ClientIDMode="Static" Text="Crear" CssClass="btn btn-primary" ValidationGroup="Actualiza" />
|
|
<button type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
|
|
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</asp:Content>
|
|
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
|
|
|
<script src="/Scripts/DataTables.js"></script>
|
|
|
|
<script type="text/javascript">
|
|
function SeleccionarTodosFaltante(chk) {
|
|
$("#C_GvF input:checkbox").attr("checked", chk.checked);
|
|
}
|
|
function SeleccionarTodosSobrante(chk) {
|
|
$("#C_GvS input:checkbox").attr("checked", chk.checked);
|
|
}
|
|
function pageLoad(sender, e) {
|
|
$(document).ready(function () {
|
|
$('a[class="ajax__tab_tab"]').click(function () {
|
|
$.fn.dataTable.tables({ visible: true, api: true }).columns.adjust();
|
|
});
|
|
});
|
|
}
|
|
|
|
<%-- function FiltrarF(e) {
|
|
debugger;
|
|
if (e.keyCode == 13 || e.which == 13) {
|
|
return false;
|
|
} else {
|
|
<%= String.Format("FiltrarTabla('TxtBusqueda','{0}', 'SumFiltraF')", GvF.ClientID) %>;
|
|
}
|
|
}
|
|
|
|
function FiltrarS(e) {
|
|
debugger;
|
|
if (e.keyCode == 13 || e.which == 13) {
|
|
return false;
|
|
} else {
|
|
<%= String.Format("FiltrarTabla('TxtBusquedaS','{0}', 'SumFiltraS')", GvS.ClientID) %>;
|
|
}
|
|
}--%>
|
|
|
|
|
|
<%-- function OrdenarGVF() {
|
|
$('#<%=GvF.ClientID%>').DataTable({
|
|
retrieve: true,
|
|
scrollY: '300px',
|
|
scrollCollapse: true,
|
|
paging: false,
|
|
searching: false,
|
|
info: false,
|
|
ordering: true
|
|
});
|
|
$('#GvF').parent().parent().children().first().css("position", "static");
|
|
}
|
|
|
|
|
|
function OrdenarGVS() {
|
|
debugger;
|
|
$('#<%=GvS.ClientID%>').DataTable({
|
|
retrieve: true,
|
|
scrollY: '300px',
|
|
scrollCollapse: true,
|
|
paging: false,
|
|
searching: false,
|
|
info: false,
|
|
ordering: true
|
|
});
|
|
$('#GvS').parent().parent().children().first().css("position", "static");
|
|
}--%>
|
|
|
|
|
|
</script>
|
|
|
|
</asp:Content>
|