452 lines
31 KiB
Plaintext
452 lines
31 KiB
Plaintext
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="InventarioFisicoDetalle.aspx.vb" Inherits="Inventarios_InventarioFisicoDetalle" %>
|
|
|
|
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
|
|
|
</asp:Content>
|
|
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
|
</asp:Content>
|
|
<asp:Content ID="Content3" ContentPlaceHolderID="HB" runat="Server">
|
|
<asp:UpdatePanel ID="UpAcciones" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<li>
|
|
<asp:LinkButton ID="btnFin" runat="server" Text="<i class='fa fa-stop' style='color:#cb5a5e'></i>Finalizar" data-toggle="confirmation" data-popout="true" data-original-title="Finalizar el inventario" data-btn-ok-label="si" />
|
|
</li>
|
|
<li>
|
|
<asp:LinkButton ID="LBAvance" OnClick="LBAvance_Click" runat="server" Text="Ver Avance" Visible="false" />
|
|
</li>
|
|
<li>
|
|
<asp:LinkButton ID="LnkPDF" runat="server"><i class="fa fa-ad-pdf"></i> Imprimir PDF</asp:LinkButton>
|
|
</li>
|
|
<li>
|
|
<asp:LinkButton ID="LnkPDFResumido" runat="server"><i class="fa fa-ad-pdf"></i> Imprimir PDF Resumido</asp:LinkButton>
|
|
</li>
|
|
<li>
|
|
<asp:LinkButton ID="LnkExcel" runat="server"><i class="fa fa-ad-excel"></i> Imprimir EXCEL</asp:LinkButton>
|
|
</li>
|
|
|
|
</ContentTemplate>
|
|
<Triggers>
|
|
<asp:PostBackTrigger ControlID="LnkPDF" />
|
|
<asp:PostBackTrigger ControlID="LnkPDFResumido" />
|
|
<asp:PostBackTrigger ControlID="LnkExcel" />
|
|
</Triggers>
|
|
</asp:UpdatePanel>
|
|
<li>
|
|
<asp:LinkButton ID="LnkExcelUniverso" runat="server" ToolTip="Descarga listado de todos los productos que se consideran para la verificación de existencias"><i class="fa fa-ad-excel"></i> Descargar productos</asp:LinkButton>
|
|
</li>
|
|
</asp:Content>
|
|
<asp:Content ID="Content4" ContentPlaceHolderID="E" runat="Server">
|
|
Inventario Físico Detalle
|
|
</asp:Content>
|
|
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
|
</asp:Content>
|
|
<asp:Content ID="Content6" ContentPlaceHolderID="C" runat="Server">
|
|
|
|
|
|
<div class="row" style="margin-left: 0px; margin-right: 0px;">
|
|
|
|
<div class="col-md-6" style="max-width: 545px;">
|
|
<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-4">
|
|
<label><b>Título: </b></label>
|
|
<asp:Label ID="lbTitulo" runat="server"></asp:Label>
|
|
</td>
|
|
<td class="col-md-4">
|
|
<label><b>SubProyecto: </b></label>
|
|
<asp:Label ID="lbSubProyecto" runat="server"></asp:Label>
|
|
</td>
|
|
<td class="col-md-4">
|
|
<label><b>Estatus: </b></label>
|
|
<asp:Label ID="lbEstatus" runat="server"></asp:Label>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<label><b>Fecha Inicio: </b></label>
|
|
<asp:Label ID="lbFechaI" runat="server"></asp:Label>
|
|
</td>
|
|
<td class="col-md-4">
|
|
<label><b>Fecha Fin: </b></label>
|
|
<asp:Label ID="lbFechaF" runat="server"></asp:Label>
|
|
</td>
|
|
<td class="col-md-4">
|
|
<label><b>Usuario: </b></label>
|
|
<asp:DropDownList ID="ddlUsuario" AutoPostBack="true" runat="server" AppendDataBoundItems="true" Class="form-control input-sm select2me" Style="width: 141px !important;" DataTextField="Nombre" DataValueField="CveUsuario">
|
|
<asp:ListItem Text="Todos" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</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>
|
|
<table>
|
|
<tr>
|
|
<td class="col-md-12" style="width: 500px;">
|
|
<label><b>Observaciones: </b></label>
|
|
<asp:Label ID="lbObservaciones" runat="server" Style="width: 450px;"></asp:Label>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<asp:UpdatePanel ID="UPAgregarPro" runat="server" RenderMode="Inline" ViewStateMode="Inherit" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div class="col-md-3" id="PAgregar" runat="server">
|
|
<asp:Panel ID="PnlII" runat="server" DefaultButton="BtnGuardar">
|
|
<div class="portlet smmallpadding light bordered" id="DivCodigoBarras" runat="server">
|
|
<div class="portlet-title">
|
|
<div class="tools">
|
|
<a href="javascript:;" class="collapse"></a>
|
|
</div>
|
|
<div class="caption uppercase" style="position: relative;">
|
|
<i class="fa fa-info-circle"></i>Agregar Producto
|
|
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body">
|
|
<div class="row">
|
|
<label class="col-md-4">Cantidad</label>
|
|
<div class="col-md-8">
|
|
<asp:TextBox runat="server" ID="TxtCantidadProducto" Text="1" Width="50px"></asp:TextBox>
|
|
<asp:RequiredFieldValidator runat="server" ID="RFVCantidad" ControlToValidate="TxtCantidadProducto" ValidationGroup="GrpIngresar" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Cantidad''</b> es necesario, por favor ingrése una." Display="Dynamic" Text="*"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCOCantidad" runat="server" HighlightCssClass="vco" TargetControlID="RFVCantidad" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
</div>
|
|
<div class="row" style="margin-top: 5px;">
|
|
<label class="col-md-4">Código/NoParte</label>
|
|
<div class="col-md-8">
|
|
<asp:TextBox runat="server" ID="TxtCodigo"></asp:TextBox>
|
|
</div>
|
|
</div>
|
|
<div class="row" style="margin-top: 5px;">
|
|
<label class="col-md-4">Código.Barras</label>
|
|
<div class="col-md-8">
|
|
<asp:TextBox runat="server" ID="TxtCodigoBarras"></asp:TextBox>
|
|
</div>
|
|
</div>
|
|
<div class="row" style="margin-top: 5px;" runat="server" id="divSerie" visible="false">
|
|
<label class="col-md-4">Serie</label>
|
|
<div class="col-md-8">
|
|
<asp:TextBox runat="server" ID="TxtCodigoSerie"></asp:TextBox>
|
|
<asp:RequiredFieldValidator runat="server" ID="RFVSerie" ControlToValidate="TxtCodigoSerie" Enabled="false" ValidationGroup="GrpIngresar" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Serie''</b> es necesario, por favor ingrése una." Display="Dynamic" Text="*"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCESerie" runat="server" HighlightCssClass="vco" TargetControlID="RFVSerie" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="row" style="margin-top: 5px;" runat="server" id="divLote" visible="false">
|
|
<label class="col-md-4">Lote</label>
|
|
<div class="col-md-8">
|
|
<asp:TextBox runat="server" ID="TxtLote"></asp:TextBox>
|
|
<asp:RequiredFieldValidator runat="server" ID="RFVLote" ControlToValidate="TxtLote" Enabled="false" ValidationGroup="GrpIngresar" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Lote''</b> es necesario, por favor ingrése una." Display="Dynamic" Text="*"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCELote" runat="server" HighlightCssClass="vco" TargetControlID="RFVLote" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="row" style="margin-top: 5px;" runat="server" id="divFechaCaducidad" visible="false">
|
|
<label class="col-md-4">Fecha Caducidad</label>
|
|
<div class="col-md-8">
|
|
<asp:TextBox runat="server" ID="TxtFechaCaducidad"></asp:TextBox>
|
|
<asp:RequiredFieldValidator runat="server" ID="RFVCaducidad" ControlToValidate="TxtFechaCaducidad" Enabled="false" ValidationGroup="GrpIngresar" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Caducidad''</b> es necesario, por favor ingrése una." Display="Dynamic" Text="*"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCECaducidad" runat="server" HighlightCssClass="vco" TargetControlID="RFVCaducidad" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="row" style="margin-top: 5px" runat="server" id="divSeccion" visible="false">
|
|
<label class="col-md-4">Sección Almacén:</label>
|
|
<div class="col-md-8">
|
|
<asp:DropDownList runat="server" ID="DdlSeccionAlmacen" CssClass="select2me" DataTextField="SeccionAlmacen" DataValueField="CveSeccionAlmacen" Width="100%">
|
|
<%--<asp:ListItem Selected="True" Value="-1">Seleccione</asp:ListItem>--%>
|
|
</asp:DropDownList>
|
|
<asp:RequiredFieldValidator runat="server" ID="RfvSeccionAlmacen" ControlToValidate="DdlSeccionAlmacen" Enabled="false" ValidationGroup="GrpIngresar" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Seccion Almacen''</b> es necesario, por favor ingrése una." Display="Dynamic" InitialValue="-1"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VceSeccionAlmacen" runat="server" HighlightCssClass="vco" TargetControlID="RfvSeccionAlmacen" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
</div>
|
|
<div class="row" style="margin-top: 5px;">
|
|
<div class="col-md-12" style="text-align: center;">
|
|
<asp:Button ID="BtnGuardar" runat="server" ValidationGroup="GrpIngresar" Text="Ingresar" class="btn btn-primary" Enabled="false" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</asp:Panel>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
<asp:UpdatePanel ID="UpBuscar" runat="server" RenderMode="Inline" ViewStateMode="Inherit" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div class="col-md-3">
|
|
<asp:Panel ID="Panel1" runat="server" DefaultButton="BtnBuscarCodBarras">
|
|
<div class="portlet smmallpadding light bordered" id="Div2" runat="server">
|
|
<div class="portlet-title">
|
|
<div class="tools">
|
|
<a href="javascript:;" class="collapse"></a>
|
|
</div>
|
|
<div class="caption uppercase" style="position: relative;">
|
|
<i class="fa fa-info-circle"></i>Consultar Producto
|
|
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body">
|
|
<div class="row" style="margin-top: 5px;">
|
|
<label class="col-sm-4">Código.Barras</label>
|
|
<div class="col-sm-4">
|
|
<asp:TextBox runat="server" CssClass="form-control" ID="TxtConCodigoBarras"></asp:TextBox>
|
|
</div>
|
|
<div class="col-sm-4">
|
|
<asp:Button ID="BtnBuscarCodBarras" OnClick="BtnBuscarCodBarras_Click" runat="server" Text="Consultar" class="btn btn-primary" Enabled="true" />
|
|
</div>
|
|
</div>
|
|
<div class="row" style="margin-top: 5px;">
|
|
<%--<label class="col-sm-4 "> </label>--%>
|
|
<div class="col-sm-12" style="text-align: center">
|
|
<h4>
|
|
<asp:Label ID="LblContador" CssClass="bold" runat="server" Text=""></asp:Label>
|
|
</h4>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</asp:Panel>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
<asp:UpdatePanel ID="UPPInventario" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div class="row">
|
|
<label class="col-md-2"><b>Ultimo Registrado: </b></label>
|
|
<div class="col-md-8">
|
|
<asp:GridView ID="GvIFDUltimoRegistrado" ClientIDMode="Static" runat="server" EmptyDataText="Aun no hay registros." AutoGenerateColumns="False" GridLines="None" DataKeyNames="CveInventarioFisicoDetalle"
|
|
ShowHeaderWhenEmpty="True" CssClass="table table-striped table-advance table-hover Widthall ScrollAD mysmallbtn">
|
|
<Columns>
|
|
<asp:TemplateField HeaderText="Fecha" ItemStyle-HorizontalAlign="Center">
|
|
<ItemTemplate>
|
|
<asp:Literal runat="server" ID="ltlFecha" Text='<%#Eval("FechaInvFisico")%>'></asp:Literal>
|
|
</ItemTemplate>
|
|
<HeaderStyle Width="160px"/>
|
|
</asp:TemplateField>
|
|
<asp:BoundField HeaderText="Código Barras" DataField="CodigoBarras" ItemStyle-HorizontalAlign="Left"></asp:BoundField>
|
|
<asp:BoundField HeaderText="Código" DataField="Codigo" ItemStyle-HorizontalAlign="Left"></asp:BoundField>
|
|
<asp:BoundField HeaderText="Producto" DataField="PS" ItemStyle-HorizontalAlign="Left"></asp:BoundField>
|
|
<asp:BoundField HeaderText="Sección Almacén" DataField="SeccionAlmacen" ItemStyle-HorizontalAlign="Left" Visible="false"></asp:BoundField>
|
|
<asp:BoundField HeaderText="Serie" DataField="SerieLote" ItemStyle-HorizontalAlign="Left"></asp:BoundField>
|
|
<asp:BoundField HeaderText="Lote" DataField="Lote" ItemStyle-HorizontalAlign="Left" Visible="false"></asp:BoundField>
|
|
<asp:BoundField HeaderText="Fecha Caducidad" DataField="FechaCaducidad" ItemStyle-HorizontalAlign="Left" DataFormatString="{0:d}" Visible="false"></asp:BoundField>
|
|
<asp:BoundField HeaderText="Cantidad" DataField="Cantidad" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right"></asp:BoundField>
|
|
<asp:BoundField HeaderText="Mal Estado" DataField="MalEstado" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="70px"></asp:BoundField>
|
|
<asp:BoundField HeaderText="No Vendible" DataField="NoVendible" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="70px"></asp:BoundField>
|
|
</Columns>
|
|
</asp:GridView>
|
|
</div>
|
|
<div class="col-md-2">
|
|
<asp:Button ID="BtnVerRegistrados" OnClick="BtnVerRegistrados_Click" runat="server" CssClass="btn btn-primary btn-sm" Text="Ver Registrados" />
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<br />
|
|
<div class="row col-md-4" align="left" id="divRegistrados" runat="server">
|
|
<asp:Label runat="server">Número de registros: <b><asp:Literal ID="LtlTotalRegistros" runat="server"></asp:Literal></b></asp:Label>
|
|
</div>
|
|
<div class="row col-md-8" align="right" id="DivBuscador" runat="server">
|
|
<input type="text" id="TxtBusqueda" class="form-control input-sm" onkeyup="return Filtrar(event);" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
|
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GvIFD.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
|
<div style="display: inline-block;" id="SumFiltra"></div>
|
|
</div>
|
|
</div>
|
|
<asp:GridView ID="GvIFD" ClientIDMode="Static" runat="server" EmptyDataText="Aun no hay registros." AutoGenerateColumns="False" GridLines="None" CssClass="table table-striped table-advance table-hover Widthall ScrollAD mysmallbtn"
|
|
DataKeyNames="CveInventarioFisicoDetalle, CvePS, SerieLote, Lote, FechaCaducidad, Cantidad, CveUnidadMedida, AplicaSerie, AplicaLote, AplicaCaducidad" ShowHeaderWhenEmpty="True" ShowHeader="True" >
|
|
<Columns>
|
|
<asp:TemplateField HeaderText="Fecha" ItemStyle-HorizontalAlign="Center">
|
|
<ItemTemplate>
|
|
<asp:Literal runat="server" ID="ltlFecha" Text='<%#Eval("FechaInvFisico")%>'></asp:Literal>
|
|
</ItemTemplate>
|
|
<HeaderStyle Width="160px"/>
|
|
</asp:TemplateField>
|
|
<asp:BoundField HeaderText="Código Barras" DataField="CodigoBarras" ItemStyle-HorizontalAlign="Left"></asp:BoundField>
|
|
<asp:BoundField HeaderText="Código" DataField="Codigo" ItemStyle-HorizontalAlign="Left"></asp:BoundField>
|
|
<asp:BoundField HeaderText="Producto" DataField="PS" ItemStyle-HorizontalAlign="Left"></asp:BoundField>
|
|
<asp:BoundField HeaderText="Sección Almacén" DataField="SeccionAlmacen" ItemStyle-HorizontalAlign="Left" Visible="false"></asp:BoundField>
|
|
<asp:BoundField HeaderText="Serie/Lote" DataField="SerieLote" ItemStyle-HorizontalAlign="Left"></asp:BoundField>
|
|
<asp:BoundField HeaderText="Lote" DataField="Lote" ItemStyle-HorizontalAlign="Left" Visible="false"></asp:BoundField>
|
|
<asp:BoundField HeaderText="Fecha Caducidad" DataField="FechaCaducidad" ItemStyle-HorizontalAlign="Left" Visible="false" DataFormatString="{0:d}"></asp:BoundField>
|
|
<asp:BoundField HeaderText="Cantidad" DataField="Cantidad" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="70px"></asp:BoundField>
|
|
<asp:BoundField HeaderText="Mal Estado" DataField="MalEstado" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="70px"></asp:BoundField>
|
|
<asp:BoundField HeaderText="No Vendible" DataField="NoVendible" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="70px"></asp:BoundField>
|
|
|
|
<asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderText="Comandos">
|
|
<ItemTemplate>
|
|
<asp:LinkButton ID="imgE" runat="server" AlternateText="Editar" CausesValidation="False" CssClass="btn btn-circle btn-sm green" OnClick="Edit_Click" Text="<i class='fa fa-pencil'></i>" />
|
|
<asp:LinkButton ID="imgD" runat="server" AlternateText="Eliminar" OnClick="Delete_Click" CausesValidation="False" CssClass="btn btn-circle btn-sm red" Text="<i class='icon-trash'></i>" data-toggle="confirmation" data-popout="true" data-original-title="Confirmar" data-btn-ok-label="si" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
</asp:GridView>
|
|
</ContentTemplate>
|
|
|
|
</asp:UpdatePanel>
|
|
|
|
|
|
<div id="ModalEditarPS" class="modal ADS fade" role="dialog">
|
|
<div class="modal-dialog">
|
|
<asp:UpdatePanel ID="UpAddInventarioFisico" tabindex="-1" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
<span aria-hidden="true">×</span>
|
|
|
|
</button>
|
|
<h4 class="modal-title" id="myModalLabel" runat="server">Editar PS</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<asp:UpdatePanel ID="UpEditarPS" UpdateMode="Conditional" runat="server">
|
|
<ContentTemplate>
|
|
<asp:HiddenField ID="HfCveInventarioFisicoDetalle" Value="" runat="server"/>
|
|
<asp:HiddenField ID="HfCvePS" Value="" runat="server"/>
|
|
<asp:HiddenField ID="HfCveUM" Value="" runat="server"/>
|
|
<div class="form-group form-md-line-input input-iconright" id="DivSerieEdit" runat="server">
|
|
|
|
<asp:TextBox ID="TxtSerieLote" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="500" Width="175px" ClientIDMode="Static" ></asp:TextBox>
|
|
<label for="<%= TxtSerieLote.ClientID.ToString()%>">Serie:</label>
|
|
<asp:CustomValidator id="ReVTxtSerie" runat="server" ControlToValidate="TxtSerieLote" Display="None" ClientValidationFunction="TamanioSerie" ValidationGroup="GrpSerieModal"
|
|
ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Serie''</b> debe tener un minimo de 6 caracteres." />
|
|
<ajax:ValidatorCalloutExtender ID="VACOE1231" runat="server" HighlightCssClass="vco" TargetControlID="ReVTxtSerie" Width="300px" ></ajax:ValidatorCalloutExtender>
|
|
|
|
</div>
|
|
<div class="form-group form-md-line-input input-iconright" id="DivLoteEdit" runat="server">
|
|
<asp:TextBox ID="TxtLoteEdit" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="500" Width="175px"></asp:TextBox>
|
|
|
|
<label for="<%= TxtLoteEdit.ClientID.ToString()%>">Lote:</label>
|
|
</div>
|
|
<div class="form-group form-md-line-input input-iconright" id="DivFechaEdit" runat="server">
|
|
<asp:TextBox ID="TxtFechaCaducida" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="500" Width="175px"></asp:TextBox>
|
|
<label for="<%= TxtFechaCaducida.ClientID.ToString()%>">Fecha Caducida:</label>
|
|
</div>
|
|
<div class="form-group form-md-line-input input-iconright" id="DivCantidadEdit" runat="server">
|
|
<asp:TextBox ID="TxtCantidad" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="500" Width="175px"></asp:TextBox>
|
|
<label for="<%= TxtCantidad.ClientID.ToString()%>">Cantidad:</label>
|
|
</div>
|
|
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
</div>
|
|
<div class="modal-footer">
|
|
|
|
|
|
<asp:UpdatePanel ID="UpFooter" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<asp:Button ID="BtnGuadarEditarPS" OnClick="BtnGuadarEditarPS_Click" runat="server" CssClass="btn btn-primary" CausesValidation="true" ValidationGroup="GrpSerieModal" Text="Guardar" OnClientClick="return validapagina();" />
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
</asp:Content>
|
|
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
|
|
|
<script src="/Scripts/DataTables.js"></script>
|
|
|
|
<script type="text/javascript">
|
|
|
|
function pageLoad(sender, e) {
|
|
$(document).ready(function () {
|
|
$('a[class="ajax__tab_tab"]').click(function () {
|
|
$.fn.dataTable.tables({ visible: true, api: true }).columns.adjust();
|
|
});
|
|
});
|
|
}
|
|
|
|
function Filtrar(e) {
|
|
debugger;
|
|
if (e.keyCode == 13 || e.which == 13) {
|
|
return false;
|
|
} else {
|
|
<%= String.Format("FiltrarTabla('TxtBusqueda','{0}','SumFiltra')", GvIFD.ClientID) %>;
|
|
}
|
|
}
|
|
|
|
function playsonidito(NomArchivo) {
|
|
var URL = /Sonidos/ + NomArchivo
|
|
var snd = new Audio(URL);
|
|
snd.play();
|
|
snd.currentTime = 0;
|
|
}
|
|
|
|
function OrdenarGV() {
|
|
$('#<%=GvIFD.ClientID%>').DataTable({
|
|
retrieve: true,
|
|
scrollY: '300px',
|
|
scrollCollapse: true,
|
|
paging: false,
|
|
searching: false,
|
|
info: false,
|
|
ordering: false
|
|
});
|
|
$('#GvIFD').parent().parent().children().first().css("position", "static");
|
|
}
|
|
|
|
function TamanioSerie(source, arguments) {
|
|
|
|
if (arguments.Value.trim().length >= 6) {
|
|
arguments.IsValid = true;
|
|
} else {
|
|
arguments.IsValid = false;
|
|
}
|
|
|
|
}
|
|
|
|
|
|
function validapagina() {
|
|
|
|
Page_ClientValidate();
|
|
|
|
if (Page_IsValid) {
|
|
return true;
|
|
} else {
|
|
return false;
|
|
}
|
|
}
|
|
|
|
</script>
|
|
|
|
</asp:Content>
|