290 lines
18 KiB
Plaintext
290 lines
18 KiB
Plaintext
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="PopUpExistenciasAlmacen.aspx.vb" Inherits="Inventarios_Default" %>
|
|
|
|
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
|
|
|
|
<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="E" runat="Server">
|
|
<asp:Label ID="LblTitulo" runat="server" Text="Búsqueda de Existencias"></asp:Label>
|
|
</asp:Content>
|
|
<asp:Content ID="Content4" ContentPlaceHolderID="HB" runat="Server">
|
|
</asp:Content>
|
|
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
|
</asp:Content>
|
|
<asp:Content ID="Content6" ContentPlaceHolderID="C" runat="Server">
|
|
|
|
|
|
<asp:HiddenField ID="hdnEsThickbox" runat="server" ClientIDMode="Static" />
|
|
|
|
<asp:UpdatePanel ID="UPFiltros" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<table style="width: 750px;">
|
|
<tr>
|
|
<td class="Titulos" colspan="4">Filtros para búsqueda</td>
|
|
</tr>
|
|
<tr align="left">
|
|
</tr>
|
|
<tr align="left">
|
|
<td class="text-right"><b>Producto/Servicio:</b></td>
|
|
<td>
|
|
<asp:UpdatePanel runat="server">
|
|
<ContentTemplate>
|
|
<ADS:Dropdownlost ID="DDlPS" AutoPostBack="false" runat="server" IncluyeTodos="false" DataTextField="PSCodigo" DataValueField="CvePS" CssClassDdl="select2me" CssStyle="width:400px;"></ADS:Dropdownlost>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</td>
|
|
<td>
|
|
<asp:LinkButton runat="server" ID="LnkBsucarSerie" CssClass="Texto" Text="Buscar por Serie" OnClick="LnkBsucarSerie_Click" Visible="false"></asp:LinkButton>
|
|
</td>
|
|
</tr>
|
|
<tr runat="server" id="DivMed" visible="false">
|
|
<td class="text-right">Medida: </td>
|
|
<td >
|
|
<asp:DropDownList runat="server" ID="DdlMedidas" CssClass="form-control input-sm select2me" Width="150px" DataTextField="Medida" DataValueField="CveMedida"></asp:DropDownList>
|
|
</td>
|
|
<td rowspan="2">
|
|
<div id="DivEquivalentes" style="overflow-y: auto; overflow-x:hidden; width: 150px; height:70px" runat="server" visible="False">
|
|
<asp:GridView ID="GvEquival" runat="server" AutoGenerateColumns="False" DataKeyNames="CveMedidaEquivalencia,CveMedida,CveRin,CveMedidaEquivalente,CveRinEquivalente,Medida,RinTamaño,MedidaEquivalente,RinTamañoEquivalente" EmptyDataText="" ToolTip="" CssClass="table table-striped table-advance table-hover" Style="margin-top: 10px; width: 100%" GridLines="None">
|
|
<Columns>
|
|
<asp:TemplateField ItemStyle-Width="300px" HeaderText="Equivalentes">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="lblUsuario" runat="server" Text='<%#String.Concat(Eval("MedidaEquivalente"), " ", Eval("RinTamañoEquivalente")) %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
</asp:GridView>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr runat="server" id="DivRin" visible="false">
|
|
<td class="text-right">Rin: </td>
|
|
<td >
|
|
<asp:DropDownList runat="server" ID="DdlRin" CssClass="form-control input-sm select2me" Width="150px" DataTextField="RinTamaño" DataValueField="CveRinTamaño"></asp:DropDownList>
|
|
</td>
|
|
<td>
|
|
|
|
</td>
|
|
</tr>
|
|
<tr runat="server" id="DivCodigoSeriePS" visible="false">
|
|
<td class="text-right"><b>C. Barras:</b></td>
|
|
<td>
|
|
<asp:UpdatePanel runat="server">
|
|
<ContentTemplate>
|
|
<asp:Panel ID="PanelCodigo" runat="server" DefaultButton="BtnCodigoPS">
|
|
<asp:TextBox ID="TxtCodigoPS" ClientIDMode="Static" Text="" runat="server" />
|
|
<asp:Button Text="" ID="BtnCodigoPS" OnClick="BtnCodigoPS_Click" Style="display: none" runat="server" />
|
|
</asp:Panel>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</td>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr align="left" runat="server" id="DivSucursal" visible="false">
|
|
<td class="text-right"><b>Sucursal:</b></td>
|
|
<td>
|
|
<asp:DropDownList ID="DdlSubProyecto" AutoPostBack="True" runat="server" CssClass="form-control input-sm select2me" DataTextField="SubProyecto" DataValueField="CveSubProyecto" Width="400px"></asp:DropDownList>
|
|
</td>
|
|
<td></td>
|
|
</tr>
|
|
<tr align="left" runat="server" id="TrCompuesto" visible="false">
|
|
<td class="text-right"><b>Compuesto:</b></td>
|
|
<td>
|
|
<asp:TextBox ID="TxtCompuesto" runat="server" CssClass="form-control input-sm select2me" Width="400px"></asp:TextBox>
|
|
</td>
|
|
<td></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="4" style="text-align: center;">
|
|
<asp:Button ID="BtnBuscar" runat="server" Text="Buscar" class="btn btn-primary" />
|
|
</td>
|
|
<td></td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
|
|
<asp:UpdatePanel ID="UPDatos" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div id="TblBusqueda" style="width: 100%" runat="server" border="0" visible="false">
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<asp:Literal ID="LtPs" Text="" runat="server" />    
|
|
<asp:Literal ID="LtPrecioPS" Text="" runat="server" Visible="false"/>
|
|
    
|
|
<asp:Literal ID="LtlIEPS" Text="IEPS:" runat="server" Visible="false"/>
|
|
  
|
|
<asp:Literal ID="LtlIEPSPorcentaje" Text="" runat="server" Visible="false"/>
|
|
    
|
|
<asp:Literal ID="LtlIVA" Text="IVA:" runat="server" Visible="false"/>
|
|
 
|
|
<asp:Literal ID="LtlIVAPorcentaje" Text="" runat="server" Visible="false"/>
|
|
|
|
</div>
|
|
<div class="col-md-3" style="text-align: right;"">
|
|
<asp:HyperLink ID="HlPendiente" Style="color: #337ab7;" Visible="false" runat="server" Text="Ventas Pendiente por Surtir" Target="_blank"></asp:HyperLink>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div id="DivPS" style="overflow-y: auto; width: 765px; height: 365px;" runat="server">
|
|
<asp:GridView ID="GV" Width="100%" runat="server" AutoGenerateColumns="false" EmptyDataText="No se encontraron registros" ToolTip="" CssClass="table table-striped table-hover" GridLines="None">
|
|
<Columns>
|
|
<asp:BoundField DataField="Almacen" HeaderText="Almacén" />
|
|
<asp:BoundField DataField="UnidadMedida" HeaderText="Unidad Medida" />
|
|
<asp:BoundField DataField="Existencia" ItemStyle-HorizontalAlign="Right" HeaderText="Existencia" DataFormatString="{0:#,###.######}" />
|
|
<asp:BoundField DataField="PendientePorSurtir" ItemStyle-HorizontalAlign="Right" HeaderText="Pte. Por Surtir" DataFormatString="{0:#,###.######}" />
|
|
<asp:BoundField DataField="ExistenciaFinal" ItemStyle-HorizontalAlign="Right" HeaderText="Existencia Real" DataFormatString="{0:#,###.######}" />
|
|
<asp:BoundField DataField="CantidadDisponibleInv" ItemStyle-HorizontalAlign="Right" HeaderText="Pendiente Recibir" DataFormatString="{0:#,###.######}" Visible="false"/>
|
|
<asp:BoundField DataField="Compuesto" HeaderText="Compuesto" Visible="false"/>
|
|
<%-- <asp:BoundField DataField="Importe" ItemStyle-HorizontalAlign="Right" HeaderText="Precio Neto" DataFormatString="{0:N2}"/>
|
|
<asp:BoundField DataField="ImportePromocion" ItemStyle-HorizontalAlign="Right" HeaderText="Precio Promoción" DataFormatString="{0:N2}"/>--%>
|
|
</Columns>
|
|
</asp:GridView>
|
|
</div>
|
|
<div id="DivMedRin" style="overflow-y: auto; width: 765px; height: 325px;" runat="server" visible="False">
|
|
<asp:GridView ID="GvMedRin" Width="100%" runat="server" AutoGenerateColumns="false" EmptyDataText="No se encontraron registros" CssClass="table table-striped table-hover" GridLines="None">
|
|
<Columns>
|
|
<asp:BoundField DataField="Almacen" HeaderText="Almacén" />
|
|
<%--<asp:BoundField DataField="UnidadMedida" HeaderText="Unidad" />--%>
|
|
<asp:TemplateField>
|
|
<HeaderTemplate>
|
|
<asp:Label ID="LblUMH" runat="server" ToolTip="Unidad de Medida" Text="U.M"></asp:Label>
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:Label ID="LblUM" runat="server" Text='<%# Eval("UnidadMedida") %>'></asp:Label>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:BoundField DataField="Existencia" ItemStyle-HorizontalAlign="Right" HeaderText="Existencia" DataFormatString="{0:#,###.######}" />
|
|
<%--<asp:BoundField DataField="PendientePorSurtir" ItemStyle-HorizontalAlign="Right" HeaderText="Pendiente Por Surtir" DataFormatString="{0:#,###.######}" /> --%>
|
|
<asp:TemplateField ItemStyle-HorizontalAlign="Right">
|
|
<HeaderTemplate>
|
|
<asp:Label ID="LblPPPH" runat="server" ToolTip="Pendiente Por Surtir" Text="Pendiente <br/> Por Surtir"></asp:Label>
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:Label ID="LblPP" runat="server" Text='<%# String.Format("{0:#,###.######}", Eval("PendientePorSurtir")) %>'></asp:Label>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:BoundField DataField="ExistenciaFinal" ItemStyle-HorizontalAlign="Right" HeaderText="Existencia Real" DataFormatString="{0:#,###.######}" />
|
|
<asp:BoundField DataField="Importe" ItemStyle-HorizontalAlign="Right" HeaderText="Precio Neto" DataFormatString="{0:N2}"/>
|
|
<%--<asp:BoundField DataField="ImportePromocion" ItemStyle-HorizontalAlign="Right" HeaderText="Precio Promoción" DataFormatString="{0:N2}"/>--%>
|
|
<asp:TemplateField ItemStyle-HorizontalAlign="Right">
|
|
<HeaderTemplate>
|
|
<asp:Label ID="LblPH" runat="server" ToolTip="Precio Promoción" Text="Precio <br/> Promoción"></asp:Label>
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:Label ID="LblP" runat="server" Text='<%# String.Format("{0:N2}", Eval("ImportePromocion")) %>'></asp:Label>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<%--<asp:BoundField DataField="CantidadMinimaPromo" ItemStyle-HorizontalAlign="Right" HeaderText="Cant. Min. Promo" DataFormatString="{0:N0}"/>--%>
|
|
<asp:TemplateField ItemStyle-HorizontalAlign="Right">
|
|
<HeaderTemplate>
|
|
<asp:Label ID="LblCMPH" runat="server" ToolTip="Cantidad Mínima Promoción" Text="Cant. Min. <br/> Promoción"></asp:Label>
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:Label ID="LblCMP" runat="server" Text='<%# String.Format("{0:N0}", Eval("CantidadMinimaPromo")) %>'></asp:Label>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:BoundField DataField="CantidadDisponibleInv" ItemStyle-HorizontalAlign="Right" HeaderText="Pendiente Por Recibir" DataFormatString="{0:#,###.######}" Visible="false"/>
|
|
</Columns>
|
|
</asp:GridView>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
|
|
|
|
|
|
<div id="ModalBuscarPorSerie" class="modal ADS fade" role="dialog">
|
|
<div class="modal-dialog">
|
|
|
|
<!-- Modal content-->
|
|
<div class="modal-content" style="width: 700px;">
|
|
<div class="modal-header ">
|
|
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
<h4 class="modal-title">
|
|
Buscar Por Serie
|
|
</h4>
|
|
</div>
|
|
<div class="modal-body rowpadding ">
|
|
|
|
<asp:UpdatePanel runat="server" ID="UpModalBuscarPorSerie" UpdateMode="Conditional" RenderMode="Block">
|
|
<ContentTemplate>
|
|
|
|
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<b>Buscar Por Serie:</b>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<asp:TextBox ID="TxtBuscarPorSerie" runat="server" CssClass="form-control" Width="100%" CausesValidation="true" ></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RfvTxtBuscarPorSerie" runat="server" ControlToValidate="TxtBuscarPorSerie" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b> El campo <b>''Serie''</b> es necesario, por favor ingréselo." ValidationGroup="GrpBuscarPorSerie"></asp:RequiredFieldValidator>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-md-12" style="text-align: center!important">
|
|
<asp:Button ID="BtnBuscarPorSerie" runat="server" OnClick="BtnBuscarPorSerie_Click" ClientIDMode="Static" Text="Buscar" CssClass="btn btn-primary" ValidationGroup="GrpBuscarPorSerie" />
|
|
</div>
|
|
</div>
|
|
<br />
|
|
<div class="row">
|
|
<div class="col-md-12" >
|
|
|
|
<asp:GridView ID="GvPSSerie" Width="100%" runat="server" AutoGenerateColumns="false" EmptyDataText="No se encontraron registros" ToolTip=""
|
|
CssClass="table table-striped table-hover" GridLines="None">
|
|
<Columns>
|
|
<asp:BoundField DataField="CodigoPS" HeaderText="Producto" />
|
|
<asp:BoundField DataField="Serie" HeaderText="Serie" />
|
|
</Columns>
|
|
</asp:GridView>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
</div>
|
|
<br />
|
|
<div class="modal-footer">
|
|
<asp:UpdatePanel runat="server">
|
|
<ContentTemplate>
|
|
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Cerrar</button>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</asp:Content>
|
|
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
|
<script type="text/javascript">
|
|
|
|
function Focus() {
|
|
$('#TxtCodigoPS').focus()
|
|
}
|
|
|
|
</script>
|
|
</asp:Content>
|
|
|