336 lines
22 KiB
Plaintext
336 lines
22 KiB
Plaintext
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="Tamaños.aspx.vb" Inherits="Acumuladores_Tamaños" %>
|
||
|
||
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
||
</asp:Content>
|
||
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
||
<style>
|
||
.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;
|
||
}
|
||
</style>
|
||
</asp:Content>
|
||
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
||
Catálogo de Tamaños
|
||
</asp:Content>
|
||
<asp:Content ID="Content4" ContentPlaceHolderID="HB" runat="Server">
|
||
</asp:Content>
|
||
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
||
<asp:UpdatePanel runat="server" ID="UpAgregar">
|
||
<ContentTemplate>
|
||
<li>
|
||
<asp:LinkButton runat="server" ID="BtnAgregarTamanio" data-toggle="tooltip" data-placement="left" title="Agregar un Tamaño" Text="<i class='fa fa-plus'></i> Agregar Tamaño"></asp:LinkButton>
|
||
</li>
|
||
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</asp:Content>
|
||
<asp:Content ID="Content6" ContentPlaceHolderID="HA" runat="Server">
|
||
</asp:Content>
|
||
<asp:Content ID="Content7" ContentPlaceHolderID="C" runat="Server">
|
||
<asp:UpdatePanel ID="UpGral" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
|
||
<div class="row">
|
||
<div class="Widthall" style="text-align: right!important; margin-top: 20px!important; margin-bottom: 2px!important">
|
||
<input type="text" id="TxtBusqueda" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GvTamanios.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
||
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GvTamanios.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="row" style="margin: 10px">
|
||
<asp:UpdatePanel ID="UPGvTamanios" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
|
||
<asp:GridView ID="GvTamanios" runat="server" AutoGenerateColumns="False"
|
||
DataKeyNames="CveTamaño,Tamaño,Cargo,Bonificacion,Compra,Puntos,CveUsuario,Usuario,Fecha,CvePSCargo"
|
||
EmptyDataText="No se encontraron registros" ToolTip="Listado de Temas"
|
||
CssClass="table table-striped table-advance table-hover Widthall ScrollAD"
|
||
data-sort="true"
|
||
data-freezerows="1"
|
||
GridLines="None">
|
||
<Columns>
|
||
<asp:TemplateField HeaderText="Tamaño">
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LblTamanio" runat="server" Text='<%# Eval("Tamaño") %>'></asp:Literal>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
|
||
<asp:TemplateField HeaderText="Cargo" ItemStyle-HorizontalAlign="Right">
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LblCargo" runat="server" Text='<%# Eval("Cargo", "{0:F2}")%>'></asp:Literal>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
|
||
<asp:TemplateField HeaderText="Bonificación" ItemStyle-HorizontalAlign="Right">
|
||
<ItemTemplate>
|
||
<asp:Label ID="LblBonificacion" runat="server" Text='<%# Eval("Bonificacion", "{0:F2}") %>'></asp:Label>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
|
||
<asp:TemplateField HeaderText="Compra" ItemStyle-HorizontalAlign="Right">
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LblCompra" runat="server" Text='<%# Eval("Compra", "{0:F2}")%>'></asp:Literal>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
|
||
<asp:TemplateField HeaderText="Puntos" ItemStyle-HorizontalAlign="Right">
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LblPuntos" runat="server" Text='<%# Eval("Puntos", "{0:F2}")%>'></asp:Literal>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
|
||
<asp:TemplateField HeaderText="Producto/Servicio" ItemStyle-HorizontalAlign="Left">
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LblPS" runat="server" Text='<%# Eval("CodigoPS")%>'></asp:Literal>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
|
||
<asp:TemplateField HeaderText="Fecha Ing." ItemStyle-HorizontalAlign="Center" ItemStyle-Width="50px">
|
||
<ItemTemplate>
|
||
<asp:Literal ID="lblFecha" runat="server" Text='<%# Eval("Fecha", "{0:d}")%>'></asp:Literal>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
|
||
<asp:TemplateField ItemStyle-Width="250px" HeaderText="Usuario">
|
||
<ItemTemplate>
|
||
<asp:Literal ID="lblUsuario" runat="server" Text='<%# Eval("Usuario") %>'></asp:Literal>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
|
||
<asp:TemplateField ItemStyle-HorizontalAlign="Right" ItemStyle-Width="40px">
|
||
<ItemTemplate>
|
||
<asp:LinkButton ID="ImgE" OnClick="Edit_ClickTamanio" runat="server" AlternateText="Editar" CausesValidation="False"
|
||
CssClass="btn btn-circle btn-sm green" Text="<i class='fa fa-pencil'></i>" />
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField ItemStyle-HorizontalAlign="Left" ItemStyle-Width="40px">
|
||
<ItemTemplate>
|
||
<asp:LinkButton ID="imgD" OnClick="Remove_ClickTamanio" runat="server" AlternateText="Eliminar" 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>
|
||
|
||
|
||
<br />
|
||
<br />
|
||
|
||
<asp:UpdatePanel ID="UpGvBitacora" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div class="row">
|
||
<div class="col-md-12">
|
||
<div class="portlet light bordered xspadding">
|
||
<div class="portlet-title">
|
||
<div class="caption font-green">
|
||
<i class="icon-pin font-green"></i>
|
||
<span class="caption-subject bold uppercase">Bitácora</span>
|
||
</div>
|
||
<div class="actions">
|
||
<div class="btn-group">
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="portlet-body">
|
||
<br />
|
||
<asp:GridView ID="GvBitacora" runat="server" AutoGenerateColumns="False" Width="80%"
|
||
EmptyDataText="" data-sort="true" data-freezerows="1" GridLines="None">
|
||
<Columns>
|
||
|
||
<asp:TemplateField HeaderText="Fecha." ItemStyle-HorizontalAlign="Center" ItemStyle-Width="100px">
|
||
<ItemTemplate>
|
||
<asp:Literal ID="lblFecha" runat="server" Text='<%# Eval("Fecha", "{0:d}")%>'></asp:Literal>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="Tamaño" ItemStyle-Width="20%">
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LblTamaño" runat="server" Text='<%# Eval("Tamaño")%>'></asp:Literal>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="Descripción" ItemStyle-Width="60%">
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LblDescripcion" runat="server" Text='<%# Eval("Descripcion") %>'></asp:Literal>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="Usuario" ItemStyle-HorizontalAlign="Right">
|
||
<ItemTemplate>
|
||
<asp:Literal ID="Lblusuario" runat="server" Text='<%# Eval("Usuario", "{0:F2}")%>'></asp:Literal>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
|
||
</Columns>
|
||
</asp:GridView>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
|
||
|
||
<%-- <ajax:TabContainer ID="TabBit" runat="server" ActiveTabIndex="0" Width="100%">
|
||
<ajax:TabPanel ID="TabBitacora" runat="server" HeaderText="Bitácora">
|
||
<ContentTemplate>
|
||
|
||
<asp:UpdatePanel ID="UpGvBitacora" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<asp:GridView ID="GvBitacora" runat="server" AutoGenerateColumns="False" Width="80%"
|
||
EmptyDataText="" data-sort="true" data-freezerows="1" GridLines="None">
|
||
<Columns>
|
||
|
||
<asp:TemplateField HeaderText="Fecha." ItemStyle-HorizontalAlign="Center" ItemStyle-Width="100px">
|
||
<ItemTemplate>
|
||
<asp:Literal ID="lblFecha" runat="server" Text='<%# Eval("Fecha", "{0:d}")%>'></asp:Literal>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="Tamaño" ItemStyle-Width="20%">
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LblTamaño" runat="server" Text='<%# Eval("Tamaño")%>'></asp:Literal>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="Descripción" ItemStyle-Width="60%">
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LblDescripcion" runat="server" Text='<%# Eval("Descripcion") %>'></asp:Literal>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="Usuario" ItemStyle-HorizontalAlign="Right">
|
||
<ItemTemplate>
|
||
<asp:Literal ID="Lblusuario" runat="server" Text='<%# Eval("Usuario", "{0:F2}")%>'></asp:Literal>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
|
||
</Columns>
|
||
</asp:GridView>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
|
||
|
||
|
||
</ContentTemplate>
|
||
</ajax:TabPanel>
|
||
</ajax:TabContainer>--%>
|
||
|
||
<div id="DivAgregarTamanio" class="modal ADS fade" role="dialog">
|
||
<div class="modal-dialog" style="width: 450px;">
|
||
<asp:UpdatePanel runat="server" class="modal-content" ID="UpModalTamanio" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div class="modal-header ">
|
||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||
<h4 class="modal-title">
|
||
<asp:Literal ID="LtlTituloModalTamanio" runat="server">Agregar Tamaño</asp:Literal></h4>
|
||
</div>
|
||
<div class="modal-body">
|
||
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:TextBox ID="TxtTamanio" CssClass="form-control " runat="server" MaxLength="70" CausesValidation="true"></asp:TextBox>
|
||
<asp:RequiredFieldValidator ID="RfvTxtTamanio" runat="server" ControlToValidate="TxtTamanio" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Tamaño''</b> es necesario, por favor ingréselo." ValidationGroup="GrpTamanio"></asp:RequiredFieldValidator>
|
||
<label for="<%= TxtTamanio.ClientID.ToString()%>">Tamaño:</label>
|
||
<i></i>
|
||
</div>
|
||
|
||
<div class="form-group form-md-line-input input-iconright" style="width: 170px!important">
|
||
<asp:TextBox ID="TxtCargo" CssClass="form-control " Width="150px" runat="server" MaxLength="10" CausesValidation="true" Style="text-align: right!important; margin-right: 10px!important" OnKeyup="FormatoMoneda(this);"></asp:TextBox>
|
||
<asp:RequiredFieldValidator ID="RFVTxtCargo" runat="server" ControlToValidate="TxtCargo" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Cargo''</b> es necesario, por favor ingréselo." ValidationGroup="GrpTamanio"></asp:RequiredFieldValidator>
|
||
<label for="<%= TxtCargo.ClientID.ToString()%>">Cargo:</label>
|
||
<i></i>
|
||
</div>
|
||
|
||
<div class="form-group form-md-line-input input-iconright" style="width: 170px!important">
|
||
<asp:DropDownList ID="DdlPS" runat="server" CssClass="form-control input-sm select2me" DataValueField="CvePS" DataTextField="PSCodigo" Class="table-group-action-input form-control input-inline input-small input-sm" Width="250px" AutoPostBack="true"></asp:DropDownList>
|
||
<asp:RequiredFieldValidator ID="RFVProducto2" InitialValue="-1" runat="server" ControlToValidate="DdlPS" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Producto''</b> es necesario, por favor ingréselo." ValidationGroup="GrpTamanio"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCEProducto2" runat="server" HighlightCssClass="vco" TargetControlID="RFVProducto2" Width="300px"></ajax:ValidatorCalloutExtender>
|
||
<%--<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TxtTamanio" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Tamaño''</b> es necesario, por favor ingréselo." ValidationGroup="GrpTamanio"></asp:RequiredFieldValidator>--%>
|
||
<label for="<%= DdlPS.ClientID.ToString()%>">Producto Servicio:</label>
|
||
<i></i>
|
||
</div>
|
||
|
||
<br />
|
||
|
||
<div class="form-group form-md-line-input input-iconright" style="width: 170px!important">
|
||
<asp:TextBox ID="TxtBonificacion" CssClass="form-control " Width="150px" runat="server" MaxLength="10" CausesValidation="true" Style="text-align: right!important" OnKeyup="FormatoMoneda(this);"></asp:TextBox>
|
||
<asp:RequiredFieldValidator ID="RfvTxtBonificacion" runat="server" ControlToValidate="TxtBonificacion" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Bonificación''</b> es necesario, por favor ingréselo." ValidationGroup="GrpTamanio"></asp:RequiredFieldValidator>
|
||
<label for="<%= TxtBonificacion.ClientID.ToString()%>">Bonificación:</label>
|
||
<i></i>
|
||
</div>
|
||
|
||
<div class="form-group form-md-line-input input-iconright" style="width: 170px!important">
|
||
<asp:TextBox ID="TxtCompra" CssClass="form-control " Width="150px" runat="server" MaxLength="10" CausesValidation="true" Style="text-align: right!important" OnKeyup="FormatoMoneda(this);"></asp:TextBox>
|
||
<asp:RequiredFieldValidator ID="RfvTxtCompra" runat="server" ControlToValidate="TxtCompra" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Compra''</b> es necesario, por favor ingréselo." ValidationGroup="GrpTamanio"></asp:RequiredFieldValidator>
|
||
<label for="<%= TxtCompra.ClientID.ToString()%>">Compra:</label>
|
||
<i></i>
|
||
</div>
|
||
|
||
<div class="form-group form-md-line-input input-iconright" style="width: 170px!important">
|
||
<asp:TextBox ID="TxtPuntos" CssClass="form-control " Width="150px" runat="server" MaxLength="10" CausesValidation="true" Style="text-align: right!important" OnKeyup="FormatoMoneda(this);"></asp:TextBox>
|
||
<asp:RequiredFieldValidator ID="RfvTxtPuntos" runat="server" ControlToValidate="TxtPuntos" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Puntos''</b> es necesario, por favor ingréselo." ValidationGroup="GrpTamanio"></asp:RequiredFieldValidator>
|
||
<label for="<%= TxtPuntos.ClientID.ToString()%>">Puntos:</label>
|
||
<i></i>
|
||
</div>
|
||
|
||
|
||
|
||
</div>
|
||
|
||
<div class="modal-footer">
|
||
<asp:Button ID="BtnAgregarTamanioModal" runat="server" class="btn btn-success" Text="Agregar" ValidationGroup="GrpTamanio" />
|
||
<button id="Button3" runat="server" type="button" class="btn default" data-dismiss="modal">Cancelar</button>
|
||
</div>
|
||
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
</asp:Content>
|
||
<asp:Content ID="Content9" ContentPlaceHolderID="JS" runat="Server">
|
||
</asp:Content>
|
||
|
||
|