897 lines
65 KiB
Plaintext
897 lines
65 KiB
Plaintext
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="ActualizarPrecios.aspx.vb" Inherits="Ventas_ActualizarPrecios" EnableEventValidation="false" %>
|
|
|
|
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
|
</asp:Content>
|
|
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
|
<style>
|
|
.v-center {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.select2 .select2-selection__rendered {
|
|
line-height: 1;
|
|
color: #111;
|
|
}
|
|
|
|
.select2 .select2-selection--multiple {
|
|
box-sizing: border-box;
|
|
cursor: pointer;
|
|
display: block;
|
|
min-height: 20px;
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
}
|
|
|
|
.select2-container--default .select2-selection--multiple .select2-selection__choice {
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.select2-selection__rendered {
|
|
margin-top: 0px;
|
|
height: 25px;
|
|
}
|
|
|
|
.select2-selection {
|
|
margin-top: 0px;
|
|
height: 31px;
|
|
}
|
|
|
|
.select2-container--default.select2-container--focus .select2-selection--multiple {
|
|
border: none;
|
|
outline: 0;
|
|
}
|
|
</style>
|
|
</asp:Content>
|
|
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
|
Actualizar Precios
|
|
</asp:Content>
|
|
<asp:Content ID="Content4" ContentPlaceHolderID="HB" runat="Server">
|
|
</asp:Content>
|
|
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
|
<li>
|
|
<asp:HyperLink ID="HlAgregarExcel" NavigateUrl="#" Visible="True" data-toggle="modal" data-target="#DivCargaExcel" runat="server"><i class='fa fa-server'></i> Importar Listado</asp:HyperLink>
|
|
</li>
|
|
|
|
<asp:UpdatePanel ID="UpExportarExcel" runat="server">
|
|
<ContentTemplate>
|
|
<li>
|
|
<asp:LinkButton ID="LnkExportarExcel" Text="" runat="server" OnClick="LnkExportarExcel_Click"> <i class='fa fa-file-excel-o'></i> Exportar Excel</asp:LinkButton>
|
|
</li>
|
|
</ContentTemplate>
|
|
<Triggers>
|
|
<asp:PostBackTrigger ControlID="LnkExportarExcel" />
|
|
</Triggers>
|
|
</asp:UpdatePanel>
|
|
|
|
</asp:Content>
|
|
<asp:Content ID="Content6" ContentPlaceHolderID="C" runat="Server">
|
|
|
|
<asp:UpdatePanel runat="server" ID="UpEncabezado" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div class="portlet solid grey-cascade portlet-filter" id="idnecesaria">
|
|
<div class="portlet-title portlet-filterT smalltitle">
|
|
<div class="tools">
|
|
<asp:Button ID="BtnConsultar" runat="server" Text="Consultar" class="btn btn-primary" OnClick="BtnConsultar_Click" ValidationGroup="GrpConsultar" />
|
|
<a href="javascript:;" class="expand"></a>
|
|
</div>
|
|
<div class="titlefiltros caption ">
|
|
<div class="row v-center" style="height: 32px;">
|
|
<label class="col-md-1 v-center truncate" style="width: 90px;">Precio de Lista:</label>
|
|
<div class="col-md-2 v-center" id="DivPrecioLista" runat="server">
|
|
<asp:DropDownList ID="DdlPrecioLista" runat="server" AppendDataBoundItems="true" Width="100%" CssClass="select2me" DataValueField="CvePrecioLista" DataTextField="PrecioLista"></asp:DropDownList>
|
|
</div>
|
|
<div class="col-md-2 v-center" id="DivMultiplePrecioLista" runat="server" visible="false">
|
|
<asp:ListBox ID="DdlMultiplePrecioLista" runat="server" DataTextField="PrecioLista" DataValueField="CvePrecioLista" data-text="Todos" SelectionMode="Multiple" CssClass="form-control ddlFiltros input-sm select2me Widthall" Style="width: 100%;"></asp:ListBox>
|
|
</div>
|
|
|
|
<label class="col-md-1 v-center truncate" style="width: 90px;">Clasificación:</label>
|
|
<div class="col-md-2 v-center">
|
|
<asp:DropDownList ID="DDlClasificacion" runat="server" Width="100%" CssClass="select2me" OnSelectedIndexChanged="DDlClasificacion_SelectedIndexChanged" AutoPostBack="True" DataValueField="CveClasificacion" DataTextField="Clasificacion"></asp:DropDownList>
|
|
</div>
|
|
|
|
<label class="col-md-1 v-center truncate" style="width: 90px;">PS:</label>
|
|
<div class="col-md-2 v-center">
|
|
<ADS:Dropdownlost ID="DDlPs" AutoPostBack="false" runat="server" DataTextField="PSCodigo" DataValueField="CvePS" CssClassDdl="select2me" CssStyle="width:250px;"></ADS:Dropdownlost>
|
|
</div>
|
|
|
|
<label class="col-md-1 v-center truncate" runat="server" id="LblModalidad" visible="false" style="width: 80px;">Modalidad:</label>
|
|
<div class="col-md-2 v-center" runat="server" id="DivModalidad" visible="false">
|
|
<asp:DropDownList ID="DdlModalidad" runat="server" AppendDataBoundItems="true" Width="100%" CssClass="select2me" AutoPostBack="true" OnSelectedIndexChanged="DdlModalidad_SelectedIndexChanged">
|
|
<asp:ListItem Selected="True" Value="1" Text="lista de precio"></asp:ListItem>
|
|
<asp:ListItem Value="2" Text="múltiples listas de precio"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body">
|
|
<div class="row v-center" style="height: 32px;">
|
|
<label class="col-md-1 v-center truncate" style="width: 90px;">Estado:</label>
|
|
<div class="col-md-2 v-center">
|
|
<asp:DropDownList ID="DdlEstado" runat="server" Width="100%" CssClass="select2me">
|
|
<asp:ListItem Value="-1">Todos</asp:ListItem>
|
|
<asp:ListItem Value="1" Selected="True">Activos</asp:ListItem>
|
|
<asp:ListItem Value="0">Incativos</asp:ListItem>
|
|
</asp:DropDownList>
|
|
</div>
|
|
<label id="LblMarca" runat="server" visible="false" class="col-md-1 v-center truncate" style="width: 90px;">Marca:</label>
|
|
<div class="col-md-2 v-center" id="DivMarca" runat="server" visible="false">
|
|
<asp:ListBox ID="DdlMarca" runat="server" DataTextField="Marca" DataValueField="CveMarca" data-text="Todos" SelectionMode="Multiple" CssClass="form-control ddlFiltros input-sm select2me Widthall" Style="width: 100%;"></asp:ListBox>
|
|
</div>
|
|
<label id="lblModelo" runat="server" class="col-md-1 v-center truncate" visible="false" style="width: 90px;">Modelo:</label>
|
|
<div class="col-md-2 v-center" id="DivModelo" runat="server" visible="false">
|
|
<asp:DropDownList ID="DdlModelo" runat="server" Width="100%" CssClass="select2me" DataTextField="Modelo" DataValueField="CveModelo">
|
|
</asp:DropDownList>
|
|
</div>
|
|
<label class="col-md-1 v-center" id="LblProveedorCompra" runat="server" visible="false" style="width: 90px;">Proveedor:</label>
|
|
<div class="col-md-2 v-center" id="DivProveedorCompra" runat="server" visible="false">
|
|
<ADS:Dropdownlost CssClassDdl="select2me" ID="DdlProveedor" Width="100%" data-metodo="getproveedores" runat="server" DataTextField="RazonSocial" DataValueField="CveProveedor" CssStyle="width: 100%;"></ADS:Dropdownlost>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
<asp:UpdatePanel runat="server" UpdateMode="conditional" ID="UPPrecioLista">
|
|
<ContentTemplate>
|
|
<div class="row" id="DivActualizarPrecio" runat="server">
|
|
<div class="col-md-6">
|
|
<div class="portlet light smmallpadding traspasorow bordered xspadding">
|
|
<div class="portlet-title">
|
|
<div class="caption font-green">
|
|
<i class="icon-pin font-green"></i>
|
|
<span class="caption-subject bold uppercase">Actualizar Precio de Lista</span>
|
|
</div>
|
|
<div class="actions">
|
|
<div class="btn-group">
|
|
</div>
|
|
</div>
|
|
<div class="tools">
|
|
<a href="javascript:;" class="collapse"></a>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body rowpadding">
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<asp:RadioButtonList AutoPostBack="true" OnSelectedIndexChanged="RblTipo_SelectedIndexChanged" RepeatDirection="Horizontal" ID="RblTipo" runat="server">
|
|
<asp:ListItem Selected="true" Value="Imp" Text="Importe Fijo" />
|
|
<asp:ListItem Value="Por" Text="Porcentaje" />
|
|
</asp:RadioButtonList>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<div runat="Server" id="ImporteFijo" class="form-group form-md-line-input input-iconright" style="width: 50%">
|
|
<asp:TextBox ID="TxtImporte" runat="server" CssClass="form-control" CausesValidation="true"></asp:TextBox>
|
|
<ajax:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" TargetControlID="TxtImporte" FilterType="Numbers, Custom" ValidChars="." />
|
|
<label for="<%= TxtImporte.ClientID.ToString()%>">Importe Nuevo:</label>
|
|
<i>$</i>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-1">
|
|
<a class="btn btn-default" onclick="CambiaImporte();">Aplicar Importe</a>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<div runat="Server" id="Div1" class="form-group form-md-line-input input-iconright" style="width: 50%">
|
|
<asp:TextBox ID="TxtPrecio" runat="server" CssClass="form-control" CausesValidation="true"></asp:TextBox>
|
|
<ajax:FilteredTextBoxExtender ID="FilteredTextBoxExtender2" runat="server" TargetControlID="TxtPrecio" FilterType="Numbers, Custom" ValidChars="." />
|
|
<label for="<%= TxtPrecio.ClientID.ToString()%>">Precio Min.:</label>
|
|
<i>$</i>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-1">
|
|
<a class="btn btn-default" onclick="CambiaPrecio();">Aplicar Precio Min.</a>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="form-group form-md-line-input input-iconright" style="width: 50%">
|
|
<asp:TextBox ID="TxtPorcentaje" runat="server" CssClass="form-control" CausesValidation="true"></asp:TextBox>
|
|
<ajax:FilteredTextBoxExtender ID="FTBSerie" runat="server" TargetControlID="TxtPorcentaje" FilterType="Numbers, Custom" ValidChars=".,-" />
|
|
<label for="<%= TxtPorcentaje.ClientID.ToString()%>">Porcentaje Nuevo:</label>
|
|
</div>
|
|
<div class="text-right">
|
|
<asp:LinkButton ID="BtnGuardar" runat="server" AlternateText="Actualizar" CausesValidation="True" CssClass="btn btn-primary" Text="Actualizar Seleccionadas" ValidationGroup="GrpGuardar" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
<asp:UpdatePanel runat="server" ID="UpDatos" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div runat="server" visible="false" id="dvDatos">
|
|
<div align="right">
|
|
<input type="text" id="TxtBuscar" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBuscar','{0}')", GVPrecios.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
|
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBuscar','{0}')", GVPrecios.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
|
</div>
|
|
<asp:GridView ID="GVPrecios" runat="server" GridLines="None" DataKeyNames="CvePS, CvePrecioLista,PrecioLista,PS,Codigo,NumeroParte,Porcentaje,CodigoPS,ProductoExhibicion"
|
|
CssClass="table table-striped table-advance table-hover Widthall ScrollAD" AutoGenerateColumns="False" data-sort="true" EmptyDataText="No se encontraron registros"
|
|
OnRowDataBound="GVPrecios_RowDataBound" >
|
|
<Columns>
|
|
<asp:TemplateField ItemStyle-HorizontalAlign="center" ItemStyle-Width="5%">
|
|
<ItemTemplate>
|
|
<asp:CheckBox runat="server" ID="chkPS" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:BoundField DataField="Codigo" ItemStyle-Width="5%" HeaderText="Código" />
|
|
<asp:TemplateField ItemStyle-Width="5%" Visible="false" >
|
|
<HeaderTemplate>
|
|
<asp:Literal ID="LtlNumeroParte" runat="server" Text='<%# If(UsuarioActual.Empresa.Funcionalidad(531) = "1", "Código CPK", "Numero de parte") %>'></asp:Literal>
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlNumeroParte" runat="server" Text='<%# Eval("NumeroParte", "{0}")%>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:BoundField DataField="PS" HeaderText="Producto/Servicio" />
|
|
<asp:BoundField DataField="Clasificacion" ItemStyle-Width="15%" HeaderText="Clasificación" />
|
|
<asp:BoundField DataField="PrecioLista" NullDisplayText="N/A" ItemStyle-Width="10%" HeaderText="Importe" DataFormatString="$ {0:N2}" ItemStyle-HorizontalAlign="right" />
|
|
<asp:TemplateField HeaderText="">
|
|
<ItemTemplate>
|
|
<asp:TextBox ID="TxtPrecio" runat="server" Text='<%# Eval("PrecioLista", "{0:0.######}")%>' CssClass="CssCamviaPrecio" MaxLength="39" Width="90px" onkeypress="return onlyNumberKey(event)"></asp:TextBox>
|
|
<%--<ajax:FilteredTextBoxExtender runat="server" TargetControlID="TxtPrecio" FilterType="Numbers,Custom" ValidChars="." />
|
|
<asp:RegularExpressionValidator ID="REVTxtPrecio" runat="server" ControlToValidate="TxtPrecio" Display="None" EnableClientScript="True" ErrorMessage="El campo <b>''PrecioLista''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico)." ValidationGroup="GrpGuardar" ValidationExpression="^[0-9]{1,15}(?:\.[0-9]{1,4})?$" />
|
|
<ajax:ValidatorCalloutExtender ID="VCPrecio" runat="server" HighlightCssClass="vco" TargetControlID="REVTxtPrecio" Width="300px"></ajax:ValidatorCalloutExtender>--%>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Precio Mínimo" ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Right">
|
|
<ItemTemplate>
|
|
<asp:LinkButton ID="LnkPrecioMinActual" OnClick="LnkPrecioMinActual_Click" runat="server" Text='<%# If(Eval("PrecioMinimo").ToString.Length = 0, "N/A", Eval("PrecioMinimo", "{0:N2}")) %>'></asp:LinkButton>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="">
|
|
<ItemTemplate>
|
|
<asp:TextBox ID="TxtPrecioMinimo" runat="server" Text='<%# Eval("PrecioMinimo", "{0:0.######}")%>' CssClass="CssCamviaPrecio" MaxLength="39" Width="60px" onkeypress="return onlyNumberKey(event)"></asp:TextBox>
|
|
<%-- <ajax:FilteredTextBoxExtender runat="server" TargetControlID="TxtPrecioMinimo" FilterType="Numbers,Custom" ValidChars="." />
|
|
<asp:RegularExpressionValidator ID="REVTxtPrecioMinimo" runat="server" ControlToValidate="TxtPrecioMinimo" Display="None" EnableClientScript="True" ErrorMessage="El campo <b>''PrecioLista''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico)." ValidationGroup="GrpGuardar" ValidationExpression="^[0-9]{1,15}(?:\.[0-9]{1,4})?$" />
|
|
<ajax:ValidatorCalloutExtender ID="VCTxtPrecioMinimo" runat="server" HighlightCssClass="vco" TargetControlID="REVTxtPrecioMinimo" Width="300px"></ajax:ValidatorCalloutExtender>--%>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
|
|
<asp:BoundField DataField="UnidadMedida" NullDisplayText="N/A" ItemStyle-Width="10%" HeaderText="U.M." />
|
|
<asp:BoundField DataField="Moneda" NullDisplayText="N/A" ItemStyle-Width="10%" HeaderText="Moneda" ItemStyle-HorizontalAlign="Left" />
|
|
<asp:BoundField DataField="CostoPromedio" NullDisplayText="-" ItemStyle-Width="5%" DataFormatString="{0:N2}" Visible="false" HeaderText="C. Promedio" ItemStyle-HorizontalAlign="right" />
|
|
<asp:BoundField DataField="VentaMinima" NullDisplayText="N/A" ItemStyle-Width="10%" HeaderText="E. Mínimo" ItemStyle-HorizontalAlign="right" />
|
|
|
|
|
|
<asp:BoundField DataField="ImporteAnterior" NullDisplayText="N/A" ItemStyle-Width="10%" HeaderText="Importe Anterior" DataFormatString="$ {0:N2}" ItemStyle-HorizontalAlign="right" />
|
|
<asp:BoundField DataField="PrecioMinimoAnterior" NullDisplayText="N/A" ItemStyle-Width="10%" HeaderText="Precio Mínimo Anterior" DataFormatString="$ {0:N2}" ItemStyle-HorizontalAlign="right" />
|
|
<asp:BoundField DataField="FechaModificacion" DataFormatString="{0:dd/MM/yyyy hh:mm:ss}" ItemStyle-Width="10%" HeaderText="Fecha Modificación" />
|
|
<asp:BoundField DataField="UsuarioModifico" DataFormatString="{0:dd/MM/yyyy}" ItemStyle-Width="10%" HeaderText="Usuario Modificó" />
|
|
<asp:BoundField DataField="Porcentaje" NullDisplayText="N/A" ItemStyle-Width="10%" DataFormatString="%{0}" HeaderText="Porcentaje" ItemStyle-HorizontalAlign="right" />
|
|
<asp:BoundField DataField="FechaIng" DataFormatString="{0:dd/MM/yyyy}" ItemStyle-Width="10%" HeaderText="Fecha Ingreso" />
|
|
<asp:BoundField DataField="Usuario" DataFormatString="{0:dd/MM/yyyy}" ItemStyle-Width="10%" HeaderText="Usuario Ingresó" />
|
|
|
|
</Columns>
|
|
</asp:GridView>
|
|
</div>
|
|
<div id="dvMultiple" runat="server" visible="false">
|
|
<br />
|
|
<div class="row">
|
|
<div class="col-md-3">
|
|
<asp:LinkButton ID="LnkGuardarMultiple" runat="server" AlternateText="Actualizar" CausesValidation="True" CssClass="btn btn-primary" Text="Actualizar Seleccionadas" OnClick="LnkGuardarMultiple_Click" />
|
|
</div>
|
|
<div class="col-md-6">
|
|
</div>
|
|
<div class="col-md-3">
|
|
<div align="right">
|
|
<input type="text" id="TxtBuscarM" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBuscarM','{0}')", GvMultiple.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
|
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBuscarM','{0}')", GvMultiple.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<asp:GridView ID="GvMultiple" runat="server" GridLines="None" ClientIDMode="Static" AutoGenerateColumns="false"
|
|
CssClass="table table-striped table-advance table-hover ScrollAD" data-sort="true" EmptyDataText="No se encontraron registros"
|
|
OnRowCreated="GvMultiple_RowCreated" OnRowDataBound="GvMultiple_RowDataBound">
|
|
<Columns>
|
|
<asp:TemplateField ItemStyle-HorizontalAlign="center" ItemStyle-Width="35px">
|
|
<ItemTemplate>
|
|
<asp:CheckBox runat="server" ID="chkPS" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:BoundField DataField="CodigoPS" HeaderText="Producto/Servicio" ItemStyle-Width="350px" />
|
|
<asp:TemplateField Visible="false" ItemStyle-Width="100px">
|
|
<HeaderTemplate>
|
|
<asp:Label ID="LtlLista_1" runat="server"></asp:Label>
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:TextBox ID="TxtPrecio_1" runat="server" CssClass="CssCamviaPrecio" MaxLength="39" Width="80px" onkeypress="return onlyNumberKey(event)" Style="text-align: right !important;"></asp:TextBox>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField Visible="false" ItemStyle-Width="100px">
|
|
<HeaderTemplate>
|
|
<asp:Label ID="LtlLista_2" runat="server"></asp:Label>
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:TextBox ID="TxtPrecio_2" runat="server" CssClass="CssCamviaPrecio" MaxLength="39" Width="80px" onkeypress="return onlyNumberKey(event)" Style="text-align: right !important;"></asp:TextBox>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField Visible="false" ItemStyle-Width="100px">
|
|
<HeaderTemplate>
|
|
<asp:Label ID="LtlLista_3" runat="server"></asp:Label>
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:TextBox ID="TxtPrecio_3" runat="server" CssClass="CssCamviaPrecio" MaxLength="39" Width="80px" onkeypress="return onlyNumberKey(event)" Style="text-align: right !important;"></asp:TextBox>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField Visible="false" ItemStyle-Width="100px">
|
|
<HeaderTemplate>
|
|
<asp:Label ID="LtlLista_4" runat="server"></asp:Label>
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:TextBox ID="TxtPrecio_4" runat="server" CssClass="CssCamviaPrecio" MaxLength="39" Width="80px" onkeypress="return onlyNumberKey(event)" Style="text-align: right !important;"></asp:TextBox>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField Visible="false" ItemStyle-Width="100px">
|
|
<HeaderTemplate>
|
|
<asp:Label ID="LtlLista_5" runat="server"></asp:Label>
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:TextBox ID="TxtPrecio_5" runat="server" CssClass="CssCamviaPrecio" MaxLength="39" Width="80px" onkeypress="return onlyNumberKey(event)" Style="text-align: right !important;"></asp:TextBox>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField Visible="false" ItemStyle-Width="100px">
|
|
<HeaderTemplate>
|
|
<asp:Label ID="LtlLista_6" runat="server"></asp:Label>
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:TextBox ID="TxtPrecio_6" runat="server" CssClass="CssCamviaPrecio" MaxLength="39" Width="80px" onkeypress="return onlyNumberKey(event)" Style="text-align: right !important;"></asp:TextBox>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField Visible="false" ItemStyle-Width="100px">
|
|
<HeaderTemplate>
|
|
<asp:Label ID="LtlLista_7" runat="server"></asp:Label>
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:TextBox ID="TxtPrecio_7" runat="server" CssClass="CssCamviaPrecio" MaxLength="39" Width="80px" onkeypress="return onlyNumberKey(event)" Style="text-align: right !important;"></asp:TextBox>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField Visible="false" ItemStyle-Width="100px">
|
|
<HeaderTemplate>
|
|
<asp:Label ID="LtlLista_8" runat="server"></asp:Label>
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:TextBox ID="TxtPrecio_8" runat="server" CssClass="CssCamviaPrecio" MaxLength="39" Width="80px" onkeypress="return onlyNumberKey(event)" Style="text-align: right !important;"></asp:TextBox>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField Visible="false" ItemStyle-Width="100px">
|
|
<HeaderTemplate>
|
|
<asp:Label ID="LtlLista_9" runat="server"></asp:Label>
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:TextBox ID="TxtPrecio_9" runat="server" CssClass="CssCamviaPrecio" MaxLength="39" Width="80px" onkeypress="return onlyNumberKey(event)" Style="text-align: right !important;"></asp:TextBox>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField Visible="false" ItemStyle-Width="100px">
|
|
<HeaderTemplate>
|
|
<asp:Label ID="LtlLista_10" runat="server"></asp:Label>
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:TextBox ID="TxtPrecio_10" runat="server" CssClass="CssCamviaPrecio" MaxLength="39" Width="80px" onkeypress="return onlyNumberKey(event)" Style="text-align: right !important;"></asp:TextBox>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField Visible="false" ItemStyle-Width="100px">
|
|
<HeaderTemplate>
|
|
<asp:Label ID="LtlLista_11" runat="server"></asp:Label>
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:TextBox ID="TxtPrecio_11" runat="server" CssClass="CssCamviaPrecio" MaxLength="39" Width="80px" onkeypress="return onlyNumberKey(event)" Style="text-align: right !important;"></asp:TextBox>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField Visible="false" ItemStyle-Width="100px">
|
|
<HeaderTemplate>
|
|
<asp:Label ID="LtlLista_12" runat="server"></asp:Label>
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:TextBox ID="TxtPrecio_12" runat="server" CssClass="CssCamviaPrecio" MaxLength="39" Width="80px" onkeypress="return onlyNumberKey(event)" Style="text-align: right !important;"></asp:TextBox>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField Visible="false" ItemStyle-Width="100px">
|
|
<HeaderTemplate>
|
|
<asp:Label ID="LtlLista_13" runat="server"></asp:Label>
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:TextBox ID="TxtPrecio_13" runat="server" CssClass="CssCamviaPrecio" MaxLength="39" Width="80px" onkeypress="return onlyNumberKey(event)" Style="text-align: right !important;"></asp:TextBox>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField Visible="false" ItemStyle-Width="100px">
|
|
<HeaderTemplate>
|
|
<asp:Label ID="LtlLista_14" runat="server"></asp:Label>
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:TextBox ID="TxtPrecio_14" runat="server" CssClass="CssCamviaPrecio" MaxLength="39" Width="80px" onkeypress="return onlyNumberKey(event)" Style="text-align: right !important;"></asp:TextBox>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField Visible="false" ItemStyle-Width="100px">
|
|
<HeaderTemplate>
|
|
<asp:Label ID="LtlLista_15" runat="server"></asp:Label>
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:TextBox ID="TxtPrecio_15" runat="server" CssClass="CssCamviaPrecio" MaxLength="39" Width="80px" onkeypress="return onlyNumberKey(event)" Style="text-align: right !important;"></asp:TextBox>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField Visible="false" ItemStyle-Width="100px">
|
|
<HeaderTemplate>
|
|
<asp:Label ID="LtlLista_16" runat="server"></asp:Label>
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:TextBox ID="TxtPrecio_16" runat="server" CssClass="CssCamviaPrecio" MaxLength="39" Width="80px" onkeypress="return onlyNumberKey(event)" Style="text-align: right !important;"></asp:TextBox>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField Visible="false" ItemStyle-Width="100px">
|
|
<HeaderTemplate>
|
|
<asp:Label ID="LtlLista_17" runat="server"></asp:Label>
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:TextBox ID="TxtPrecio_17" runat="server" CssClass="CssCamviaPrecio" MaxLength="39" Width="80px" onkeypress="return onlyNumberKey(event)" Style="text-align: right !important;"></asp:TextBox>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField Visible="false" ItemStyle-Width="100px">
|
|
<HeaderTemplate>
|
|
<asp:Label ID="LtlLista_18" runat="server"></asp:Label>
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:TextBox ID="TxtPrecio_18" runat="server" CssClass="CssCamviaPrecio" MaxLength="39" Width="80px" onkeypress="return onlyNumberKey(event)" Style="text-align: right !important;"></asp:TextBox>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField Visible="false" ItemStyle-Width="100px">
|
|
<HeaderTemplate>
|
|
<asp:Label ID="LtlLista_19" runat="server"></asp:Label>
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:TextBox ID="TxtPrecio_19" runat="server" CssClass="CssCamviaPrecio" MaxLength="39" Width="80px" onkeypress="return onlyNumberKey(event)" Style="text-align: right !important;"></asp:TextBox>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField Visible="false" ItemStyle-Width="100px">
|
|
<HeaderTemplate>
|
|
<asp:Label ID="LtlLista_20" runat="server"></asp:Label>
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:TextBox ID="TxtPrecio_20" runat="server" CssClass="CssCamviaPrecio" MaxLength="39" Width="80px" onkeypress="return onlyNumberKey(event)" Style="text-align: right !important;"></asp:TextBox>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField Visible="false" ItemStyle-Width="100px">
|
|
<HeaderTemplate>
|
|
<asp:Label ID="LtlLista_21" runat="server"></asp:Label>
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:TextBox ID="TxtPrecio_21" runat="server" CssClass="CssCamviaPrecio" MaxLength="39" Width="80px" onkeypress="return onlyNumberKey(event)" Style="text-align: right !important;"></asp:TextBox>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField Visible="false" ItemStyle-Width="100px">
|
|
<HeaderTemplate>
|
|
<asp:Label ID="LtlLista_22" runat="server"></asp:Label>
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:TextBox ID="TxtPrecio_22" runat="server" CssClass="CssCamviaPrecio" MaxLength="39" Width="80px" onkeypress="return onlyNumberKey(event)" Style="text-align: right !important;"></asp:TextBox>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField Visible="false" ItemStyle-Width="100px">
|
|
<HeaderTemplate>
|
|
<asp:Label ID="LtlLista_23" runat="server"></asp:Label>
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:TextBox ID="TxtPrecio_23" runat="server" CssClass="CssCamviaPrecio" MaxLength="39" Width="80px" onkeypress="return onlyNumberKey(event)" Style="text-align: right !important;"></asp:TextBox>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField Visible="false" ItemStyle-Width="100px">
|
|
<HeaderTemplate>
|
|
<asp:Label ID="LtlLista_24" runat="server"></asp:Label>
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:TextBox ID="TxtPrecio_24" runat="server" CssClass="CssCamviaPrecio" MaxLength="39" Width="80px" onkeypress="return onlyNumberKey(event)" Style="text-align: right !important;"></asp:TextBox>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField Visible="false" ItemStyle-Width="100px">
|
|
<HeaderTemplate>
|
|
<asp:Label ID="LtlLista_25" runat="server"></asp:Label>
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:TextBox ID="TxtPrecio_25" runat="server" CssClass="CssCamviaPrecio" MaxLength="39" Width="80px" onkeypress="return onlyNumberKey(event)" Style="text-align: right !important;"></asp:TextBox>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField Visible="false" ItemStyle-Width="100px">
|
|
<HeaderTemplate>
|
|
<asp:Label ID="LtlLista_26" runat="server"></asp:Label>
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:TextBox ID="TxtPrecio_26" runat="server" CssClass="CssCamviaPrecio" MaxLength="39" Width="80px" onkeypress="return onlyNumberKey(event)" Style="text-align: right !important;"></asp:TextBox>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField Visible="false" ItemStyle-Width="100px">
|
|
<HeaderTemplate>
|
|
<asp:Label ID="LtlLista_27" runat="server"></asp:Label>
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:TextBox ID="TxtPrecio_27" runat="server" CssClass="CssCamviaPrecio" MaxLength="39" Width="80px" onkeypress="return onlyNumberKey(event)" Style="text-align: right !important;"></asp:TextBox>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField Visible="false" ItemStyle-Width="100px">
|
|
<HeaderTemplate>
|
|
<asp:Label ID="LtlLista_28" runat="server"></asp:Label>
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:TextBox ID="TxtPrecio_28" runat="server" CssClass="CssCamviaPrecio" MaxLength="39" Width="80px" onkeypress="return onlyNumberKey(event)" Style="text-align: right !important;"></asp:TextBox>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField Visible="false" ItemStyle-Width="100px">
|
|
<HeaderTemplate>
|
|
<asp:Label ID="LtlLista_29" runat="server"></asp:Label>
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:TextBox ID="TxtPrecio_29" runat="server" CssClass="CssCamviaPrecio" MaxLength="39" Width="80px" onkeypress="return onlyNumberKey(event)" Style="text-align: right !important;"></asp:TextBox>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField Visible="false" ItemStyle-Width="100px">
|
|
<HeaderTemplate>
|
|
<asp:Label ID="LtlLista_30" runat="server"></asp:Label>
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:TextBox ID="TxtPrecio_30" runat="server" CssClass="CssCamviaPrecio" MaxLength="39" Width="80px" onkeypress="return onlyNumberKey(event)" Style="text-align: right !important;"></asp:TextBox>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField Visible="false" ItemStyle-Width="100px">
|
|
<HeaderTemplate>
|
|
<asp:Label ID="LtlLista_31" runat="server"></asp:Label>
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:TextBox ID="TxtPrecio_31" runat="server" CssClass="CssCamviaPrecio" MaxLength="39" Width="80px" onkeypress="return onlyNumberKey(event)" Style="text-align: right !important;"></asp:TextBox>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField Visible="false" ItemStyle-Width="100px">
|
|
<HeaderTemplate>
|
|
<asp:Label ID="LtlLista_32" runat="server"></asp:Label>
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:TextBox ID="TxtPrecio_32" runat="server" CssClass="CssCamviaPrecio" MaxLength="39" Width="80px" onkeypress="return onlyNumberKey(event)" Style="text-align: right !important;"></asp:TextBox>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField Visible="false" ItemStyle-Width="100px">
|
|
<HeaderTemplate>
|
|
<asp:Label ID="LtlLista_33" runat="server"></asp:Label>
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:TextBox ID="TxtPrecio_33" runat="server" CssClass="CssCamviaPrecio" MaxLength="39" Width="80px" onkeypress="return onlyNumberKey(event)" Style="text-align: right !important;"></asp:TextBox>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField Visible="false" ItemStyle-Width="100px">
|
|
<HeaderTemplate>
|
|
<asp:Label ID="LtlLista_34" runat="server"></asp:Label>
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:TextBox ID="TxtPrecio_34" runat="server" CssClass="CssCamviaPrecio" MaxLength="39" Width="80px" onkeypress="return onlyNumberKey(event)" Style="text-align: right !important;"></asp:TextBox>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField Visible="false" ItemStyle-Width="100px">
|
|
<HeaderTemplate>
|
|
<asp:Label ID="LtlLista_35" runat="server"></asp:Label>
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:TextBox ID="TxtPrecio_35" runat="server" CssClass="CssCamviaPrecio" MaxLength="39" Width="80px" onkeypress="return onlyNumberKey(event)" Style="text-align: right !important;"></asp:TextBox>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField Visible="false" ItemStyle-Width="100px">
|
|
<HeaderTemplate>
|
|
<asp:Label ID="LtlLista_36" runat="server"></asp:Label>
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:TextBox ID="TxtPrecio_36" runat="server" CssClass="CssCamviaPrecio" MaxLength="39" Width="80px" onkeypress="return onlyNumberKey(event)" Style="text-align: right !important;"></asp:TextBox>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField Visible="false" ItemStyle-Width="100px">
|
|
<HeaderTemplate>
|
|
<asp:Label ID="LtlLista_37" runat="server"></asp:Label>
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:TextBox ID="TxtPrecio_37" runat="server" CssClass="CssCamviaPrecio" MaxLength="39" Width="80px" onkeypress="return onlyNumberKey(event)" Style="text-align: right !important;"></asp:TextBox>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField Visible="false" ItemStyle-Width="100px">
|
|
<HeaderTemplate>
|
|
<asp:Label ID="LtlLista_38" runat="server"></asp:Label>
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:TextBox ID="TxtPrecio_38" runat="server" CssClass="CssCamviaPrecio" MaxLength="39" Width="80px" onkeypress="return onlyNumberKey(event)" Style="text-align: right !important;"></asp:TextBox>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField Visible="false" ItemStyle-Width="100px">
|
|
<HeaderTemplate>
|
|
<asp:Label ID="LtlLista_39" runat="server"></asp:Label>
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:TextBox ID="TxtPrecio_39" runat="server" CssClass="CssCamviaPrecio" MaxLength="39" Width="80px" onkeypress="return onlyNumberKey(event)" Style="text-align: right !important;"></asp:TextBox>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField Visible="false" ItemStyle-Width="100px">
|
|
<HeaderTemplate>
|
|
<asp:Label ID="LtlLista_40" runat="server"></asp:Label>
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:TextBox ID="TxtPrecio_40" runat="server" CssClass="CssCamviaPrecio" MaxLength="39" Width="80px" onkeypress="return onlyNumberKey(event)" Style="text-align: right !important;"></asp:TextBox>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
</asp:GridView>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
<div id="ModalActualizaPrecios" class="modal ADS fade" role="dialog">
|
|
<div class="modal-dialog" style="width: 900px; margin: auto;">
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header ">
|
|
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
<h4 class="modal-title">
|
|
<asp:UpdatePanel ID="UpModalTitulo" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<asp:Literal ID="LtlModalTitleUpModalTitulo" runat="server">Codigo </asp:Literal>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</h4>
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
<asp:UpdatePanel runat="server" ID="UpModalActualizaPrecios" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div class="col-md-12">
|
|
<div class="col-md-3" style="text-align: left">
|
|
<input id="ChkSeleccionarTodos" type="checkbox" title="Seleccionar Todos" onclick="SeleccionarTodosChkGvSucursa()" />
|
|
Seleccionar Todos
|
|
|
|
</div>
|
|
<div class="col-md-9" style="text-align: right">
|
|
<label>Aplicar precio mínimo</label>
|
|
<asp:TextBox ID="TxtAplicarPrecio" runat="server" Width="60px" MaxLength="39"></asp:TextBox>
|
|
<ajax:FilteredTextBoxExtender ID="FilTxtAplicarPrecio" TargetControlID="TxtAplicarPrecio" runat="server" FilterType="Numbers,Custom" ValidChars="." InvalidChars="-+" />
|
|
<a id="lnkAplicarPrecioSucursales" runat="server" class="btn btn-default" onclick="CambiaPrecioModal();">Aplicar</a>
|
|
</div>
|
|
</div>
|
|
<asp:GridView ID="gvSucursal" runat="server" AutoGenerateColumns="False" DataKeyNames="CveSubProyecto" EmptyDataText="No se encontraron Sucursales" ToolTip="Sucursales habilitadas para Productos o Servicios"
|
|
CssClass="table table-striped table-smallpadding table-advance table-hover Widthall" OnRowDataBound="gvSucursal_RowDataBound" Style="text-align: center;" GridLines="None">
|
|
<Columns>
|
|
<asp:TemplateField>
|
|
<ItemTemplate>
|
|
<asp:CheckBox ID="chkSucursal" runat="server" Checked="false" CssClass="CsMCheckGvSucursal" />
|
|
<asp:HiddenField ID="hdnEnBD" runat="server" Value='<%# If(IsDBNull(Eval("CvePS")), 0, 1) %>' />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Sucursal" ItemStyle-Width="30%">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlSucursal" runat="server" Text='<%# Eval("SubProyecto", "{0}") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Left" />
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Precio Mínimo">
|
|
<ItemTemplate>
|
|
<asp:TextBox ID="TxtPrecioMinimo" Style="text-align: right" runat="server" CausesValidation="true" MaxLength="39" Text='<%# Eval("PrecioMinimo", "{0:0.######}")%>' ValidationGroup="GrpEditGuardarO" Width="90px" CssClass="CssMCamviaPrecio"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVTxtPrecioMinimo" runat="server" ControlToValidate="TxtPrecioMinimo" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Importe''</b> es necesario, por favor ingréselo." ValidationGroup="GrpEditGuardarS"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCOTxtPrecioMinimo" runat="server" HighlightCssClass="vco" TargetControlID="RFVTxtPrecioMinimo" Width="100px"></ajax:ValidatorCalloutExtender>
|
|
<ajax:FilteredTextBoxExtender ID="FilTxtPrecioMinimo" runat="server" TargetControlID="TxtPrecioMinimo" FilterType="Numbers,Custom" ValidChars="." InvalidChars=",-+" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Mínimo" Visible="false">
|
|
<ItemTemplate>
|
|
<asp:TextBox ID="TxtMinimo" Style="text-align: right" runat="server" CausesValidation="true" MaxLength="50" Text='<%# Eval("Minimo") %>' ValidationGroup="GrpEditGuardarO" Width="100px"></asp:TextBox>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Máximo" Visible="false">
|
|
<ItemTemplate>
|
|
<asp:TextBox ID="TxtMaximo" Style="text-align: right" runat="server" CausesValidation="true" MaxLength="50" Text='<%# Eval("Maximo")%>' ValidationGroup="GrpEditGuardarO" Width="100px"></asp:TextBox>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:BoundField HeaderText="Precio Mínimo Anterior" DataField="PrecioMinimoAnterior" DataFormatString="{0:N2}" />
|
|
<asp:BoundField HeaderText="Usuario Modificó" DataField="Usuario" />
|
|
<asp:BoundField HeaderText="Fecha Modificación" DataField="FechaModificacion" DataFormatString="{0:dd/MM/yyyy hh:mm:ss}" />
|
|
</Columns>
|
|
<RowStyle CssClass="Texto" />
|
|
<AlternatingRowStyle CssClass="TextoAlterno" />
|
|
</asp:GridView>
|
|
|
|
|
|
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<asp:UpdatePanel runat="server" ID="UpModalBotonesCodigos" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
|
|
<asp:LinkButton ID="LnkModalGuardarPreciosMinimos" runat="server" Text="Guardar" CssClass="btn btn-primary" OnClick="LnkModalGuardarPreciosMinimos_Click"></asp:LinkButton>
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Cerrar</button>
|
|
|
|
</ContentTemplate>
|
|
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<%--CARGA EXCEL--%>
|
|
<div id="DivCargaExcel" class="modal ADS fade" role="dialog">
|
|
<div class="modal-dialog">
|
|
<!-- Modal content-->
|
|
<div class="modal-content">
|
|
<div class="modal-header ">
|
|
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
<h4 class="modal-title">Agregar Excel</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<div class="row v-center">
|
|
<div class="col-md-6 v-center">
|
|
<label class="col-md-6 v-center truncate">Precio de Lista:</label>
|
|
<div class="col-md-6 v-center">
|
|
<asp:DropDownList ID="DdlPrecioListaCarga" runat="server" AppendDataBoundItems="true" Width="100%" CssClass="select2me" DataValueField="CvePrecioLista" DataTextField="PrecioLista"></asp:DropDownList>
|
|
<asp:RequiredFieldValidator ID="RFVPrecioListaCarga" runat="server" ControlToValidate="DdlPrecioListaCarga" InitialValue="-1" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Precio Lista''</b> es necesario, por favor selecionarlo." ValidationGroup="GrpCargarExcel"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCEPrecioListaCarga" runat="server" HighlightCssClass="vco" TargetControlID="RFVPrecioListaCarga" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<h3>Arraste o haga click para subir el archivo Excel</h3>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-11" style="margin-left: 30px; margin-right: 30px;">
|
|
<asp:TextBox ID="TxtExcel" CssClass="ADSdropzone hidden" Text="" data-maxFile="1" runat="server"></asp:TextBox>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<div class="row">
|
|
<div class="col-md-2" style="text-align: left">
|
|
<asp:UpdatePanel ID="UpDescargar" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<asp:Button ID="BtnDescargarFormato" runat="server" CssClass="btn btn-warning" Text="Descargar Formato" />
|
|
</ContentTemplate>
|
|
<Triggers>
|
|
<asp:PostBackTrigger ControlID="BtnDescargarFormato" />
|
|
</Triggers>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
<div class="col-md-10" style="text-align: right">
|
|
<asp:Button ID="BtnCargaExcel" runat="server" CssClass="btn btn-success" Text="Aceptar" ValidationGroup="GrpCargarExcel"></asp:Button>
|
|
<button type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</asp:Content>
|
|
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
|
<script src="/Scripts/PrintJS/print.min.js"></script>
|
|
<script>
|
|
function impresionBase64(pdfBase64) {
|
|
printJS({ printable: pdfBase64, type: 'pdf', showModal: true, base64: true });
|
|
}
|
|
|
|
function convertirTabla() {
|
|
let json = tableToJson($('#GvMultiple').get(0));
|
|
}
|
|
|
|
function tableToJson(table) {
|
|
var data = [];
|
|
|
|
// first row needs to be headers
|
|
var headers = [];
|
|
for (var i = 0; i < table.rows[0].cells.length; i++) {
|
|
if (table.rows[0].cells[i].innerHTML != "") {
|
|
headers[i] = table.rows[0].cells[i].innerText.toLowerCase().replace(/ /gi, '');
|
|
}
|
|
}
|
|
// go through cells
|
|
for (var i = 1; i < table.rows.length; i++) {
|
|
var tableRow = table.rows[i];
|
|
var rowData = {};
|
|
for (var j = 1; j < tableRow.cells.length; j++) {
|
|
rowData[headers[j]] = tableRow.cells[j].innerText;
|
|
}
|
|
data.push(rowData);
|
|
}
|
|
return data;
|
|
}
|
|
|
|
function onlyNumberKey(evt) {
|
|
|
|
// Only ASCII character in that range allowed
|
|
var ASCIICode = (evt.which) ? evt.which : evt.keyCode
|
|
if (ASCIICode > 31 && (ASCIICode < 48 || ASCIICode > 57)) {
|
|
if (ASCIICode == 46) {
|
|
return true
|
|
} else {
|
|
return false;
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
|
|
function CambiaImporte() {
|
|
var topLevelElem = document.getElementById("form1");
|
|
var checks = topLevelElem.getElementsByTagName("input");
|
|
var idd = '';
|
|
|
|
var valor = $('#<%= TxtImporte.ClientID %>').val();
|
|
|
|
for (var i = 0; i < checks.length; i++) {
|
|
if (checks[i].type == "checkbox") {
|
|
debugger;
|
|
|
|
if (checks[i].checked) {
|
|
idd = checks[i].id.replace('C_GVPrecios_chkPS_', '')
|
|
if ($get('C_GVPrecios_TxtPrecio_' + idd) != null) {
|
|
$get('C_GVPrecios_TxtPrecio_' + idd).value = FormatoNumero(ToDouble(valor), 2);
|
|
}
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
function CambiaPrecio() {
|
|
var topLevelElem = document.getElementById("form1");
|
|
var checks = topLevelElem.getElementsByTagName("input");
|
|
var idd = '';
|
|
|
|
var valor = $('#<%= TxtPrecio.ClientID %>').val();
|
|
|
|
//if (!isNaN(valor) && valor.length > 0) {
|
|
// $('.CssCamviaPrecio').val(valor);
|
|
//}
|
|
|
|
for (var i = 0; i < checks.length; i++) {
|
|
if (checks[i].type == "checkbox") {
|
|
debugger;
|
|
|
|
if (checks[i].checked) {
|
|
idd = checks[i].id.replace('C_GVPrecios_chkPS_', '')
|
|
if ($get('C_GVPrecios_TxtPrecioMinimo_' + idd) != null) {
|
|
$get('C_GVPrecios_TxtPrecioMinimo_' + idd).value = FormatoNumero(ToDouble(valor), 2);
|
|
}
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
function CambiaPrecioModal() {
|
|
|
|
var ChecksGv = $('.CsMCheckGvSucursal').find('input[type=checkbox]');
|
|
|
|
var valor = $('#<%= TxtAplicarPrecio.ClientID %>').val();
|
|
if (!isNaN(valor) && valor.length > 0) {
|
|
$(".CssMCamviaPrecio").each(function (index) {
|
|
if ($($(ChecksGv).get(index)).attr('checked')) {
|
|
|
|
$(this).val(valor);
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
function SeleccionarTodosChkGvSucursa() {
|
|
if ($('#ChkSeleccionarTodos').attr('checked')) {
|
|
$('.CsMCheckGvSucursal').find('input[type=checkbox]').prop('checked', true);
|
|
} else {
|
|
$('.CsMCheckGvSucursal').find('input[type=checkbox]').prop('checked', false);
|
|
}
|
|
}
|
|
function FncSeleccionaChk(chk) {
|
|
chk.checked = true;
|
|
}
|
|
|
|
|
|
|
|
</script>
|
|
</asp:Content>
|
|
|