123 lines
8.5 KiB
Plaintext
123 lines
8.5 KiB
Plaintext
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="CatVentasDeducciones.aspx.vb" Inherits="Ventas_CatVentasDeducciones" %>
|
|
|
|
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
|
</asp:Content>
|
|
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
|
<style type="text/css">
|
|
.auto-style1 {
|
|
text-align: left;
|
|
}
|
|
</style>
|
|
</asp:Content>
|
|
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
|
Ventas Deducciones
|
|
</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">
|
|
|
|
<%--CATPROYECTOS--%>
|
|
|
|
|
|
<div class="row" style="margin-left: 0px; margin-right: 0px;">
|
|
<div class="col-md-8">
|
|
<asp:UpdatePanel ID="UpGVPorcentajes" UpdateMode="Conditional" runat="server">
|
|
<ContentTemplate>
|
|
|
|
<table class="Widthall">
|
|
<tr class="Titulos">
|
|
<td style="width:100px" class="auto-style1">
|
|
<b>Deducción</b>
|
|
</td>
|
|
<td style="width:90px" class="auto-style1">
|
|
<b>Porcentaje</b>
|
|
</td>
|
|
<td style="width:100px" class="auto-style1">
|
|
<b>Comandos</b>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<asp:TextBox ID="TxtDeduccion" runat="server" Width="300px"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVDeduccion" runat="server" Display="None" ControlToValidate="TxtDeduccion" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Deducción''</b> es necesario, por favor ingréselo." ValidationGroup="GrpObligatorio"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCEDeduccion" runat="server" HighlightCssClass="vco" TargetControlID="RFVDeduccion" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</td>
|
|
<td>
|
|
<asp:TextBox ID="TxtPorcentaje" type="number" step="0.01" runat="server" Width="90px"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVPorcentaje" runat="server" Display="None" ControlToValidate="TxtPorcentaje" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Porcentaje'</b> es necesario, por favor ingréselo." ValidationGroup="GrpObligatorio"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCOPorcentaje" runat="server" HighlightCssClass="vco" TargetControlID="RFVPorcentaje" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</td>
|
|
<td>
|
|
<asp:Button ID="AgregarGVPorcentajes" runat="server" Text="Agregar" CssClass=" btn btn-primary " ValidationGroup="GrpObligatorio" Width="100px" />
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<table class="Widthall">
|
|
<tr class="Titulos">
|
|
<td></td>
|
|
</tr>
|
|
<asp:GridView ID="GvDeducciones" ShowHeader="false" runat="server" GridLines="None" DataKeyNames="CveVentaDeduccion" CssClass="table table-striped table-hover Widthall" AutoGenerateColumns="False" EmptyDataText="No se encontraron registros" ToolTip="Listado de Deducciones">
|
|
<Columns>
|
|
|
|
<asp:TemplateField HeaderText="Deduccion" ItemStyle-Width="300px">
|
|
<EditItemTemplate>
|
|
<asp:TextBox ID="TxtVentaDeduccion" runat="server" CausesValidation="true" MaxLength="50" Text='<%# Eval("VentaDeduccion") %>' Width="300px"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVVentaDeduccion" runat="server" ControlToValidate="TxtVentaDeduccion" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Deduccion''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGV"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCOVentaDeduccion" runat="server" HighlightCssClass="vco" TargetControlID="RFVVentaDeduccion" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</EditItemTemplate>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtDeduccion" runat="server" Text='<%# Eval("VentaDeduccion")%>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
|
|
<asp:TemplateField HeaderText="Porcentaje" ItemStyle-Width="90px" ItemStyle-HorizontalAlign="Right">
|
|
<EditItemTemplate>
|
|
<asp:TextBox ID="TxtVentaPorcentaje" runat="server" type="number" step="0.01" CausesValidation="true" MaxLength="50" Text='<%# Eval("Porcentaje") %>' ValidationGroup="GrpGV" Width="90px"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVVentaPorcentaje" runat="server" ControlToValidate="TxtVentaPorcentaje" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Porcentaje''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGV"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCOVentaPorcentaje" runat="server" HighlightCssClass="vco" TargetControlID="RFVVentaPorcentaje" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</EditItemTemplate>
|
|
<ItemTemplate>
|
|
|
|
<asp:Literal ID="LtPorcentaje" runat="server" Text='<%# Eval("Porcentaje", "{0:N2}%") %>'></asp:Literal>
|
|
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
|
|
|
|
<asp:TemplateField HeaderText="Editar" ItemStyle-Width="70px">
|
|
<EditItemTemplate>
|
|
<asp:LinkButton ID="imgU" runat="server" AlternateText="Actualizar" CausesValidation="True" CommandName="Update"
|
|
CssClass="btn btn-circle btn-sm green" Text="<i class='fa fa-check'></i>" ValidationGroup="GrpEditarCuentaBanco" />
|
|
<asp:LinkButton ID="imgC" runat="server" AlternateText="Cancelar" CausesValidation="False" CommandName="Cancel"
|
|
CssClass="btn btn-circle btn-sm red" Text="<i class='fa fa-times'></i>" />
|
|
</EditItemTemplate>
|
|
<ItemTemplate>
|
|
<asp:LinkButton ID="imgE" runat="server" AlternateText="Editar" CausesValidation="False" CommandName="Edit"
|
|
CssClass="btn btn-circle btn-sm green" Text="<i class='fa fa-pencil'></i>" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Elim." ItemStyle-Width="5px">
|
|
<ItemTemplate>
|
|
<asp:LinkButton ID="imgD" runat="server" AlternateText="Eliminar" CausesValidation="False" CommandName="Delete"
|
|
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>
|
|
</div>
|
|
</asp:Content>
|
|
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
|
</asp:Content>
|
|
|