3689 lines
290 KiB
Plaintext
3689 lines
290 KiB
Plaintext
<%@ Page Title="Ventas - Facturación" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="PV.aspx.vb" Inherits="PV" EnableEventValidation="false"%>
|
|
|
|
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
|
|
<%--Necesario para el modal que no se cierra--%>
|
|
|
|
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
|
|
|
<style>
|
|
.nolineheight {
|
|
line-height: 1;
|
|
}
|
|
|
|
.claseesconder {
|
|
display: none;
|
|
}
|
|
|
|
.myventasbutton {
|
|
margin: 5px;
|
|
width: 170px;
|
|
}
|
|
|
|
body.dragging, body.dragging * {
|
|
cursor: move !important;
|
|
}
|
|
|
|
.dragged {
|
|
position: absolute;
|
|
opacity: 0.5;
|
|
z-index: 2000;
|
|
}
|
|
|
|
table.Sortable tr.placeholder {
|
|
display: block;
|
|
background: red;
|
|
position: relative;
|
|
margin: 0;
|
|
padding: 0;
|
|
border: none;
|
|
}
|
|
|
|
.Sortable th.placeholder {
|
|
display: block;
|
|
background: red;
|
|
position: relative;
|
|
width: 0;
|
|
height: 0;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.Sortable th.placeholder:before {
|
|
content: "";
|
|
position: absolute;
|
|
width: 0;
|
|
height: 0;
|
|
border: 5px solid transparent;
|
|
border-top-color: red;
|
|
top: -6px;
|
|
margin-left: -5px;
|
|
border-bottom: none;
|
|
}
|
|
|
|
table.Sortable tr.placeholder:before {
|
|
content: "";
|
|
position: absolute;
|
|
width: 0;
|
|
height: 0;
|
|
border: 5px solid transparent;
|
|
border-left-color: red;
|
|
margin-top: -5px;
|
|
left: -5px;
|
|
border-right: none;
|
|
}
|
|
|
|
.GvEst > tbody > tr > td:nth-child(2) {
|
|
padding-left: 36px;
|
|
}
|
|
|
|
.GvEst > tbody > tr.Totales > td:nth-child(2) {
|
|
padding-left: 4px;
|
|
}
|
|
|
|
.GvEst > tbody > tr.SubTotales > td:nth-child(2) {
|
|
padding-left: 12px;
|
|
}
|
|
|
|
.GvEst > tbody > tr.SubTotales2 > td:nth-child(2) {
|
|
padding-left: 20px;
|
|
}
|
|
|
|
.GvEst > tbody > tr.SubTotales3 > td:nth-child(2) {
|
|
padding-left: 28px;
|
|
}
|
|
|
|
|
|
.GVAnticipos input {
|
|
text-align: right;
|
|
}
|
|
|
|
.modalBackground {
|
|
background-color: Black;
|
|
filter: alpha(opacity=90);
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.modalPopup {
|
|
background-color: #FFFFFF;
|
|
padding-bottom: 10px;
|
|
}
|
|
|
|
.rbl input[type="radio"] {
|
|
margin-left: 10px;
|
|
margin-right: 1px;
|
|
}
|
|
|
|
a.mylkbutton:link, a.mylkbutton:hover, a.mylkbutton:active {
|
|
color: black;
|
|
}
|
|
|
|
.arrow {
|
|
left: 20%;
|
|
}
|
|
|
|
.popover {
|
|
width: 500px !important;
|
|
max-width: 500px !important;
|
|
}
|
|
|
|
.popover .popover-title {
|
|
margin: 0 !important;
|
|
text-align: center;
|
|
}
|
|
|
|
.select2anothertable {
|
|
position: absolute;
|
|
left: 100%;
|
|
background-color: white;
|
|
/*top: 50px;*/ top: 21px;
|
|
/*max-height: 200px;*/ max-height: 229px;
|
|
/*background-color: #dcdcdc;*/
|
|
overflow: hidden;
|
|
}
|
|
|
|
.select2anothertable > table > tbody > tr > td:nth-of-type(odd) {
|
|
background-color: rgba(220, 220, 220, 0.45);
|
|
}
|
|
|
|
.select2anothertable > table > tbody > tr > td {
|
|
line-height: 21px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.select2anothertable > table > tbody > tr.active {
|
|
background-color: #5897fb;
|
|
}
|
|
|
|
a.disabled {
|
|
pointer-events: none;
|
|
cursor: default;
|
|
}
|
|
|
|
/*Bootstrap text-uppercase =)*/
|
|
.Mayuscula {
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.no-padding {
|
|
padding: 0 !important;
|
|
}
|
|
</style>
|
|
</asp:Content>
|
|
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
|
</asp:Content>
|
|
<asp:Content ID="Content3" ContentPlaceHolderID="HB" runat="Server">
|
|
|
|
<asp:UpdatePanel ID="UpnTools" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<li>
|
|
<asp:LinkButton ID="LkbEstadodeCaja" runat="server" Visible="false"> <i class="fa fa-ad-excel"></i> Estado de Caja</asp:LinkButton>
|
|
</li>
|
|
<li>
|
|
<asp:LinkButton ID="LkbIngreso" OnClick="LkbIngreso_Click" runat="server" Visible="false"> <i class="fa fa-ad-excel"></i> Ingreso de Efectivo</asp:LinkButton>
|
|
</li>
|
|
<li>
|
|
<asp:LinkButton ID="LkbRetiro" OnClick="LkbRetiro_Click" runat="server" Visible="false"> <i class="fa fa-ad-excel"></i> Retiro de Efectivo</asp:LinkButton>
|
|
</li>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
|
|
</asp:Content>
|
|
<asp:Content ID="Content4" ContentPlaceHolderID="E" runat="Server">
|
|
Registro de Ventas
|
|
</asp:Content>
|
|
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
|
</asp:Content>
|
|
<asp:Content ID="Content6" ContentPlaceHolderID="C" runat="Server">
|
|
<div style="display: table; margin-bottom: -15px;">
|
|
<asp:UpdatePanel ID="UpCliente" runat="server" UpdateMode="Conditional" class="portlet light xspadding bordered whitoutcol" style="width: 473px;">
|
|
<ContentTemplate>
|
|
<div class="portlet-title">
|
|
<div class="caption font-green">
|
|
|
|
<i class="icon-pin font-green"></i>
|
|
<span class="caption-subject bold uppercase"><a id="HlCliente" href="javascript:void(0);" runat="server" class="Texto" onclick="javascript:AbrirVentana('/Ventas/PopUpBuscarClientes.aspx?Opt=Fact&TipoCliente=-1', 800, 547, 'N', 'PopUpBuscar')">Cliente: </a></span>
|
|
<asp:LinkButton ID="LnkAgregarCliente" runat="server" AlternateText="Agregar Cliente" Text="<i class='fa fa-plus-square'></i>" />
|
|
<asp:TextBox ID="TxtCodigo" runat="server" AutoPostBack="true" BorderStyle="None" Width="65px"></asp:TextBox>
|
|
<asp:HiddenField ID="HdnCveCliente" runat="server" ClientIDMode="Static" Value="-1" />
|
|
<asp:HiddenField ID="HdnIndices" runat="server" ClientIDMode="Static" Value="-1" />
|
|
<asp:Button ID="BtnBuscarCliente" runat="server" ClientIDMode="Static" Text="Buscar Cliente" Style="display: none;" class="btn btn-primary" />
|
|
</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 form-horizontal form-row-sepe formnombottom" style="padding-top: 0px; margin-top: -5px;">
|
|
<div class="form-body">
|
|
|
|
<table border="0" width="463px">
|
|
<tr align="left">
|
|
<td width="110px"><b>Nombre:</b> </td>
|
|
<td width="200px">
|
|
<asp:Label ID="LblCliente" runat="server" Text="Cliente"></asp:Label></td>
|
|
<td width="85px" runat="server" id="LblEnviarMail"><b>Enviar Mail:</b></td>
|
|
<td width="135px">
|
|
<asp:CheckBox ID="ChkEnviarFactura" runat="server" /></td>
|
|
</tr>
|
|
<tr runat="server" id="trsucursalciente" visible="false">
|
|
<td><b>Sucursal :</b></td>
|
|
<td colspan="3">
|
|
<asp:DropDownList ID="DdlSucursalCliente" runat="server" AutoPostBack="true" CssClass="form-control input-sm select2me" AppendDataBoundItems="true" DataTextField="SucursalCliente" DataValueField="CveClienteSucursal" Width="150px">
|
|
<asp:ListItem Selected="true" Text="Matriz" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</td>
|
|
</tr>
|
|
<tr align="left" runat="server" id="TrDireccion">
|
|
<td><b>Dirección:</b> </td>
|
|
<td>
|
|
<asp:Label ID="LblDireccion" runat="server" Text="Dirección"></asp:Label></td>
|
|
<td><b>Colonia:</b></td>
|
|
<td>
|
|
<asp:Label ID="LblColonia" runat="server" Text="Colonia"></asp:Label></td>
|
|
</tr>
|
|
<tr align="left" runat="server" id="TrCiudad">
|
|
<td><b>Ciudad, Edo:</b> </td>
|
|
<td>
|
|
<asp:Label ID="LblCiudad" runat="server" Text="Ciudad"></asp:Label>, <asp:Label ID="LblEstado" runat="server" Text="Estado"></asp:Label></td>
|
|
<td><b>C.P.:</b></td>
|
|
<td>
|
|
<asp:Label ID="LblCP" runat="server" Text="00000"></asp:Label></td>
|
|
</tr>
|
|
<tr align="left" runat="server" id="TrRFC">
|
|
<td><b>RFC:</b> </td>
|
|
<td>
|
|
<asp:Label ID="LblRFC" runat="server" Text="AAA010101AAA"></asp:Label></td>
|
|
<td><b>Teléfono:</b></td>
|
|
<td>
|
|
<asp:Label ID="LblTelefono" runat="server" Text="9999999999"></asp:Label></td>
|
|
</tr>
|
|
<tr runat="server" id="trDireccionEnvio" visible="false">
|
|
<td><b>Enviar a otra dirección:</b></td>
|
|
<td colspan="3">
|
|
<table>
|
|
<asp:CheckBox ID="ChkDireccionEnvio" runat="server" AutoPostBack="true" />
|
|
<span style="margin-left: 1px;">
|
|
<asp:DropDownList ID="DdlDireccionEnvio" runat="server" AutoPostBack="true" CssClass="form-control input-sm select2me" AppendDataBoundItems="true" DataTextField="SucursalClienteVentaDireccion" DataValueField="CveDireccionEnvio" Width="180px" Visible="false">
|
|
<asp:ListItem Selected="true" Text="Seleccione" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</span>
|
|
|
|
<asp:LinkButton ID="LnkOtraDireccion" runat="server" Text="Otra dirección?" Visible="false"></asp:LinkButton>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
<tr runat="server" id="TrAtencionA" visible="false">
|
|
<td><b>Atención A:</b></td>
|
|
<td>
|
|
<asp:TextBox ID="TxtAtencionA" Width="150px" runat="server" />
|
|
</td>
|
|
<td id="tdTelefonoGen" runat="server"><b>Telefono:</b></td>
|
|
<td id="tdTxtTelefonoGen" runat="server">
|
|
<asp:TextBox ID="TxtTelefonoGenerico" type="number" Width="120px" runat="server" />
|
|
</td>
|
|
<td id="tdVigencia" runat="server"><b>Vigencia:</b></td>
|
|
<td id="tdFechaVigencia" runat="server">
|
|
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 117px !important; padding: 0px;">
|
|
<asp:TextBox ID="TxtFechaVencimientoCotizacion" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
|
<span class="input-group-btn ">
|
|
<asp:LinkButton ID="LkFechaChotizacion" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
|
</span>
|
|
<ajax:MaskedEditExtender ID="MaskedEditExtender1" runat="server" TargetControlID="TxtFechaVencimientoCotizacion" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
|
<ajax:CalendarExtender runat="server" ID="CalendarExtender1" TargetControlID="TxtFechaVencimientoCotizacion" PopupButtonID="LkFechaChotizacion" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
|
<asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server" ControlToValidate="TxtFechaVencimientoCotizacion" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha''</b> es necesario, por favor ingréselo." ValidationGroup="GrpEmitirImprimir"></asp:RequiredFieldValidator>
|
|
<asp:CompareValidator ID="CompareValidator1" runat="server" ControlToValidate="TxtFechaVencimientoCotizacion" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha''</b> no tiene el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="GrpVencimientoCot"></asp:CompareValidator>
|
|
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender3" runat="server" HighlightCssClass="vco" TargetControlID="RequiredFieldValidator2" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender7" runat="server" HighlightCssClass="vco" TargetControlID="CompareValidator1" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr align="left" style="border: 4px solid red" runat="server" id="TrEsDistribuidor" visible="false">
|
|
<td><b style="color: red;">Es Distribuidor</b></td>
|
|
<td></td>
|
|
<td><b style="color: red">Vendedor:</b></td>
|
|
<td>
|
|
<asp:Label ID="LbVendedor" runat="server" Text=""></asp:Label></td>
|
|
</tr>
|
|
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
<asp:UpdatePanel ID="UpParametros" runat="server" UpdateMode="Conditional" class="portlet light xspadding .nolineheight bordered whitoutcol" style="width: 310px;">
|
|
<ContentTemplate>
|
|
<div class="portlet-title">
|
|
<div class="caption font-green">
|
|
<i class="icon-pin font-green"></i>
|
|
<span class="caption-subject bold uppercase">DATOS DE EMISIÓN</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 form-horizontal form-row-sepe formnombottom" style="padding-top: 0px; margin-top: -5px;">
|
|
<table border="0" width="300px">
|
|
<tr align="left" id="TrTipo" runat="server">
|
|
<td style="min-width: 90px;"><b>Tipo:</b></td>
|
|
<td>
|
|
<table border="0" cellpadding="0" cellspacing="0">
|
|
<tr>
|
|
<td>
|
|
<asp:DropDownList CssClass="form-control input-sm" ID="DdlTipoComprobante" DataValueField="CveTipoDocumento" DataTextField="TipoDocumento" runat="server" AppendDataBoundItems="true" AutoPostBack="true" Width="100px">
|
|
<asp:ListItem Value="Ing" Text="Ingresos" Selected="True"></asp:ListItem>
|
|
<asp:ListItem Value="Ant" Text="Anticipos"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</td>
|
|
<%--<td id="TdReferencia" runat="server" style="display: none;"> Ref: <asp:TextBox ID="TxtDocto" runat="server" ToolTip="Referencia (Número de factura original)" Width="40px"></asp:TextBox></td>--%>
|
|
<td runat="server" id="TdOrdenPago" visible="false">
|
|
<asp:DropDownList CssClass="form-control input-sm" ID="DdlOrdenPago" runat="server" Width="80px">
|
|
<asp:ListItem Selected="True" Text="Isssteson" Value="1"></asp:ListItem>
|
|
<asp:ListItem Text="ISTP" Value="2"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
<tr align="left" runat="server" id="trNCFactura" visible="false">
|
|
<td><b>Factura:</b></td>
|
|
<td>
|
|
<asp:DropDownList ID="DdlNCFactura" AutoPostBack="true" runat="server" CssClass="form-control input-sm select2me " DataTextField="Factura" DataValueField="CveVenta" Width="100%">
|
|
</asp:DropDownList>
|
|
<asp:Label ID="LblSerieFolioPadre" runat="server" Visible="false"></asp:Label>
|
|
<asp:HiddenField ID="HdnFolioFiscalNC" runat="server" />
|
|
</td>
|
|
</tr>
|
|
<tr align="left">
|
|
<td><b>Sucursal:</b></td>
|
|
<td>
|
|
<asp:DropDownList ID="DdlSubProyectoDatos" AutoPostBack="True" runat="server" CssClass="form-control input-sm " DataTextField="SubProyecto" DataValueField="CveSubProyecto" Width="100px"></asp:DropDownList></td>
|
|
</tr>
|
|
<tr align="left">
|
|
<td><b>Serie - Folio:</b></td>
|
|
<td>
|
|
<asp:Label ID="LblSerie" runat="server"></asp:Label>-
|
|
<asp:TextBox ID="TxtFolio" runat="server" BorderStyle="None" Text="000" MaxLength="7" Width="60px" ValidationGroup="GrpEmitirImprimir" Style="text-align: left"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVFolio" runat="server" ControlToValidate="TxtFolio" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Folio''</b> es necesario, por favor ingréselo." ValidationGroup="GrpEmitirImprimir"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender10" runat="server" HighlightCssClass="vco" TargetControlID="RFVFolio" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
<asp:CompareValidator ID="CVFolio" runat="server" ControlToValidate="TxtFolio" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Folio''</b> no tiene el formato correcto, solo formato numérico." Operator="DataTypeCheck" Type="Integer" ValidationGroup="GrpEmitirImprimir"></asp:CompareValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCOFolio" runat="server" HighlightCssClass="vco" TargetControlID="CVFolio" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
</td>
|
|
</tr>
|
|
<tr align="left" id="TrFolioFiscal" runat="server" visible="false">
|
|
<td><b>Folio Fiscal:</b></td>
|
|
<td>
|
|
<asp:Label ID="LblFolioFiscal" runat="server" Font-Size="Smaller"></asp:Label>
|
|
</td>
|
|
</tr>
|
|
<tr align="left">
|
|
<td><b>Fecha:</b></td>
|
|
<td>
|
|
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 117px !important; padding: 0px;">
|
|
<asp:TextBox ID="TxtFecha" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
|
<span class="input-group-btn ">
|
|
<asp:LinkButton ID="ImgFecha" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
|
</span>
|
|
<ajax:MaskedEditExtender ID="MEEFecha" runat="server" TargetControlID="TxtFecha" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
|
<ajax:CalendarExtender runat="server" ID="CEFecha" TargetControlID="TxtFecha" PopupButtonID="ImgFecha" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
|
<asp:RequiredFieldValidator ID="RFVFecha" runat="server" ControlToValidate="TxtFecha" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha''</b> es necesario, por favor ingréselo." ValidationGroup="GrpEmitirImprimir"></asp:RequiredFieldValidator>
|
|
<asp:CompareValidator ID="CVFecha" runat="server" ControlToValidate="TxtFecha" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha''</b> no tiene el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="GrpEmitirImprimir"></asp:CompareValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCOFecha1" runat="server" HighlightCssClass="vco" TargetControlID="RFVFecha" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
<ajax:ValidatorCalloutExtender ID="VCOFecha2" runat="server" HighlightCssClass="vco" TargetControlID="CVFecha" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
</td>
|
|
<%--<td><asp:Label ID="LblFecha" runat="server"></asp:Label></td>--%>
|
|
</tr>
|
|
<tr align="left">
|
|
<td><b>Vendedor:</b> </td>
|
|
<td>
|
|
<asp:UpdatePanel ID="UPPVentas" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<asp:DropDownList ID="DropDownList1" runat="server" CssClass="form-control input-sm select2me" AppendDataBoundItems="true" DataTextField="Vendedor" DataValueField="CveVendedor" Width="100%">
|
|
<asp:ListItem Selected="true" Text="Sin asignar" Value="0"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</td>
|
|
</tr>
|
|
<tr align="left" id="TrCreditoDisponible" runat="server" visible="False">
|
|
<td><b>Crédito Disponible:</b> </td>
|
|
<td>
|
|
<asp:UpdatePanel ID="UPPCreditoDisponible" runat="server" UpdateMode="Conditional" style="width: 250px;">
|
|
<ContentTemplate>
|
|
<asp:Label ID="LblCreditoDisponible" runat="server" Text=""></asp:Label>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</td>
|
|
</tr>
|
|
<tr align="left" id="TrPorcentajeCredito" runat="server" visible="False">
|
|
<td><b>Limite Al:</b> </td>
|
|
<td>
|
|
<asp:UpdatePanel ID="UpPorcenctajeCredito" runat="server" UpdateMode="Conditional" style="width: 250px;">
|
|
<ContentTemplate>
|
|
<asp:Label ID="LblPorcentajeCredito" runat="server" Text=""></asp:Label>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</td>
|
|
</tr>
|
|
<%--<tr align="left" id="TrExistencia" runat="server" visible="False">
|
|
<td><b>Existencia:</b>
|
|
</td>
|
|
<td>
|
|
<asp:CheckBox ID="ChkExistencia" runat="server" Checked="true" />
|
|
</td>
|
|
</tr>--%>
|
|
<tr align="left" id="TrAlmacenAsignado" runat="server" visible="False">
|
|
<td>
|
|
<asp:Label runat="server" ToolTip="Almacen Asignado" Font-Bold="true" Text="Almacen A:"></asp:Label>
|
|
</td>
|
|
<td>
|
|
<asp:DropDownList ID="DdlAlmacenAsignado" runat="server" CssClass="form-control input-sm select2me" AppendDataBoundItems="true" DataTextField="Almacen" DataValueField="CveAlmacen" Width="130px">
|
|
</asp:DropDownList>
|
|
<asp:RequiredFieldValidator ID="RFVAlmacenAsignado" runat="server" ControlToValidate="DdlAlmacenAsignado" InitialValue="" ErrorMessage="Debe Seleccionarse un Almacen" ValidationGroup="GrpEmitirImprimir"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCEAlmacenAsignado" runat="server" HighlightCssClass="vco" TargetControlID="RFVAlmacenAsignado" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</td>
|
|
</tr>
|
|
<tr align="left" id="TrTipoPedido" runat="server" visible="False">
|
|
<td>
|
|
<asp:Label runat="server" ToolTip="Tipo de Pedido" Font-Bold="true" Text="Tipo Pedido:"></asp:Label>
|
|
</td>
|
|
<td>
|
|
<asp:DropDownList ID="DdlTipoPedido" runat="server" CssClass="form-control input-sm select2me" Width="130px">
|
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
|
<asp:ListItem Text="Interno" Value="1"></asp:ListItem>
|
|
<asp:ListItem Text="Externo" Value="0"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
<asp:RequiredFieldValidator ID="RFVTipoPedido" runat="server" ControlToValidate="DdlTipoPedido" InitialValue="-1" ErrorMessage="Debe Seleccionarse un Tipo de pedido" ValidationGroup="GrpEmitirImprimir"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCETipoPedido" runat="server" HighlightCssClass="vco" TargetControlID="RFVTipoPedido" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</td>
|
|
</tr>
|
|
<tr align="left" id="TrAlmacenOrigen" runat="server" visible="False">
|
|
<td>
|
|
<asp:Label runat="server" ToolTip="Almacen Asignado" Font-Bold="true" Text="Almacen O:"></asp:Label>
|
|
</td>
|
|
<td>
|
|
<asp:DropDownList ID="DdlAlmacenOrigen" runat="server" Enabled="false" CssClass="form-control input-sm select2me" DataTextField="Almacen" DataValueField="CveAlmacen" Width="130px">
|
|
<asp:ListItem Selected="true" Text="Productos Financieros Disponibles" Value="88"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
<asp:RequiredFieldValidator ID="RFVAlmacenOrigen" runat="server" ControlToValidate="DdlAlmacenOrigen" InitialValue="" ErrorMessage="Debe Seleccionarse un Almacen" ValidationGroup="GrpEmitirImprimir"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCEAlmacenOrigen" runat="server" HighlightCssClass="vco" TargetControlID="RFVAlmacenOrigen" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
<asp:UpdatePanel ID="UpEstatus" Visible="false" runat="server" UpdateMode="Conditional" class="portlet light xspadding bordered whitoutcol">
|
|
<ContentTemplate>
|
|
<div class="portlet-title">
|
|
<div class="caption font-green">
|
|
<i class="icon-pin font-green"></i>
|
|
<span class="caption-subject bold uppercase">Estatus: </span>
|
|
|
|
</div>
|
|
<div class="actions">
|
|
<div class="btn-group">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="tools">
|
|
<a href="javascript:;" class="expand"></a>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body form-horizontal form-row-sepe formnombottom" style="padding-top: 0px; margin-top: -5px;">
|
|
|
|
<table border="0" width="240px">
|
|
<tr align="left" id="TrEstatusCaja" visible="false" runat="server">
|
|
<td><b>Corte:</b> </td>
|
|
<td>
|
|
<asp:Label ID="LblEstatusCaja" runat="server"></asp:Label>
|
|
</td>
|
|
</tr>
|
|
<tr align="left" id="Trsaldo" visible="false" runat="server">
|
|
<td><b>Saldo:</b> </td>
|
|
<td>
|
|
<asp:Label ID="LblSaldoVenta" runat="server"></asp:Label> <asp:HyperLink ID="HplSaldoAuxiliar" CssClass="Texto thickbox" runat="server" Text="Ir"></asp:HyperLink>
|
|
<asp:HiddenField ID="HdnPagado" runat="server" />
|
|
</td>
|
|
</tr>
|
|
<tr align="left">
|
|
<td><b>Estatus:</b> </td>
|
|
<td>
|
|
<asp:DropDownList ID="DdlEstatus" runat="server" CssClass="form-control input-sm select2me" DataTextField="EstatusFactura" DataValueField="CveEstatusFactura" Width="128px">
|
|
</asp:DropDownList>
|
|
<a class="btn default" style="display: none;" data-toggle="modal" href="#Aceptar">Aceptada</a>
|
|
<asp:ImageButton ID="ImgGuardaEstatus" runat="server" ClientIDMode="Static" ImageUrl="/Imagenes/accept.png" Style="display: none;" />
|
|
</td>
|
|
</tr>
|
|
<tr align="left" id="trContabilizada" runat="server" visible="False">
|
|
<td><b>Contabilizada:</b></td>
|
|
<td>
|
|
<asp:HyperLink ID="HLContabilizada" Target="_blank" runat="server" Text="No"></asp:HyperLink>
|
|
<asp:HyperLink ID="HPLContaCancelacion" Target="_blank" runat="server" Text=""></asp:HyperLink>
|
|
<%-- <asp:Button ID="BtnContabilizar" runat="server" Text="Contabilizar" Visible="false" CssClass="btn btn-success" />--%>
|
|
<%--<asp:Button ID="BtnDescontabilizar" data-toggle="confirmation" data-popout="true" data-original-title="¿Seguro que desea eliminar la poliza?" data-btn-ok-label="si" Text="Descontabilizar" runat="server" OnClick="BtnDescontabilizar_Click" CssClass="btn btn-default" Style="margin-left: 20px;" Visible="false" />--%>
|
|
</td>
|
|
</tr>
|
|
<tr align="left">
|
|
<td><b>Se timbró:</b> </td>
|
|
<td>
|
|
<asp:Label ID="LblSeTimbro" runat="server" Text="No"></asp:Label></td>
|
|
</tr>
|
|
<tr align="left">
|
|
<td><b>Envió Mail:</b> </td>
|
|
<td>
|
|
<asp:Label ID="LblMail" runat="server" Text="No"></asp:Label></td>
|
|
</tr>
|
|
<tr align="left">
|
|
<td><b class="truncate">Usuario creó:</b> </td>
|
|
<td>
|
|
<asp:Label ID="LblUsuario" runat="server"></asp:Label></td>
|
|
</tr>
|
|
<tr align="left">
|
|
<td><b>Vendedor:</b> </td>
|
|
<td>
|
|
<asp:DropDownList ID="DdlVendedor" runat="server" CssClass="form-control input-sm select2me" AppendDataBoundItems="true" DataTextField="Vendedor" DataValueField="CveVendedor" Width="150px">
|
|
<asp:ListItem Selected="true" Text="Sin asignar" Value="0"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</td>
|
|
</tr>
|
|
<tr runat="server" id="trPresupuesto" visible="false">
|
|
<td colspan="2">
|
|
<asp:HyperLink runat="server" ID="HplPresupuesto" Target="_blank" Text="Ir a Presupuesto"></asp:HyperLink>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
|
|
<div>
|
|
<br />
|
|
</div>
|
|
|
|
<asp:UpdatePanel ID="Updatetabs" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<ajax:TabContainer ID="Tab" runat="server" ActiveTabIndex="0" Width="100%" CssClass="tabBodyOverride">
|
|
|
|
<ajax:TabPanel ID="TabGenerales" runat="server" HeaderText="Generales">
|
|
<ContentTemplate>
|
|
<div class="divtab">
|
|
<asp:UpdatePanel ID="UpPS" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div style="overflow-x: auto; width: 100%;">
|
|
<div class="btn-group pull-right">
|
|
<asp:Button ID="LbAgregar" CssClass="btn green-haze btn-outline btn-circle btn-sm" OnClick="LbAgregar_Click" runat="server" Text="Agregar" />
|
|
</div>
|
|
<br />
|
|
<br />
|
|
<table border="0" style="min-width: 980px;" id="tbps" class="table table-striped Widthall">
|
|
<tr class="Titulos TextTab">
|
|
<th>#</th>
|
|
<th>Cant</th>
|
|
<th>Unidad</th>
|
|
<th>
|
|
<div id="DIVClasificacion" runat="server">
|
|
Clasificación<br />
|
|
Producto o Servicio
|
|
<asp:LinkButton ID="BtnModalAddPS" runat="server" CssClass="btn btn-default btn-circle btn-xs " data-toggle="tooltip" title="Registrar Producto / Servicio"><i class='fa fa-plus' style="color:black" ></i></asp:LinkButton>
|
|
</div>
|
|
<div id="DIVCodBarras" visible="false" runat="server">
|
|
Código de Barras<br />
|
|
</div>
|
|
<asp:CheckBox ID="ChkClasificacion" Text=" " OnCheckedChanged="ChkClasificacion_CheckedChanged" AutoPostBack="true" CssClass="yt-uix-checkbox-on-off" runat="server" />
|
|
</th>
|
|
<th id="TrObs" runat="server">Observación</th>
|
|
<th>P.U.</th>
|
|
<th id="thEncDesc1" runat="server" visible="true">Desc
|
|
</th>
|
|
<th id="thEncIVA1" runat="server" visible="true">IVA
|
|
</th>
|
|
<th id="thEncIEPS1" runat="server" visible="false">IEPS
|
|
</th>
|
|
<th>Total <%--;<asp:LinkButton ID="ImgDescConcepto" runat="server" Text="<i class='fa fa-comment-o'></i>" Style="cursor: pointer;" AlternateText="Agregar Descuento" /></th>--%><th style="width: 100px;" colspan="3">Comandos</th>
|
|
<th></th>
|
|
<th runat="server" visible="false" id="nomostrar2"></th>
|
|
</tr>
|
|
</table>
|
|
<asp:GridView ID="GvPS" GridLines="None" runat="server" data-tableheader="#tbps" ShowHeader="true" AutoGenerateColumns="False"
|
|
DataKeyNames="CveVentaDetalle,Consec,CvePS,Total, IEPS, CveClasificacion,CveUM,CveProyecto,CveSubProyecto,TipoDocto,PS,Obs,Cantidad,PU,Descuento,IVA,CantidadInventario,CantidadFacturadaRem,EsCargo" CssClass="table table-striped table-advance table-hover Widthall Sortable mysmallbtn ScrollAD" Style="min-width: 980px;">
|
|
<Columns>
|
|
<%--0--%>
|
|
<asp:TemplateField ItemStyle-Font-Size="6pt">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlConsecutivo" runat="server" Text='<%# Eval("Consec", "{0:N0}") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<%--1--%>
|
|
<asp:TemplateField>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlCantidad" runat="server" Text='<%# Eval("Cantidad", "{0:#,###.####}") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<%--2--%>
|
|
<asp:TemplateField>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlUnidadMedida" runat="server" Text='<%# Eval("UM") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<%--3--%>
|
|
<asp:TemplateField>
|
|
<ItemTemplate>
|
|
<span style="min-width: 220px; border-bottom: 1px solid gray;">
|
|
<asp:Label ID="LblClasificacion" runat="server" Text='<%# Eval("Clasificacion") %>'></asp:Label>
|
|
</span>
|
|
<br />
|
|
<asp:Label ID="LblPS" runat="server" Text='<%# Eval("CodigoPS") %>'></asp:Label>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<%--4--%>
|
|
<asp:TemplateField>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlObsPS" runat="server" Text='<%# Eval("Obs") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<%--5--%>
|
|
<asp:TemplateField ItemStyle-HorizontalAlign="Right">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlPU" runat="server" Text='<%# Eval("PU", "{0:N2}") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<%--6--%>
|
|
<asp:TemplateField ItemStyle-HorizontalAlign="Right" HeaderText="">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlDesc" runat="server" Text='<%# Eval("Descuento", "{0:N2}") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<%--7--%>
|
|
<asp:TemplateField ItemStyle-HorizontalAlign="Right">
|
|
<ItemTemplate>
|
|
<asp:Label ID="LblIVA" runat="server" Text='<%# Eval("ImporteIVA", "{0:#,##0.00##}") %>'></asp:Label><br />
|
|
<asp:Label ID="LblIVAPorcentaje" runat="server" Text='<%# String.Format("{0} {1}", (CDbl(Eval("PorcentajeIVA").ToString) * 100).ToString("#####"), If(CDbl(Eval("PorcentajeIVA").ToString) * 100 > 0, "%", "")) %>'></asp:Label>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<%--<asp:BoundField DataField="ImporteIVA" HeaderText="" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ReadOnly="true" />--%>
|
|
<%--8--%>
|
|
<asp:TemplateField ItemStyle-HorizontalAlign="Right">
|
|
<ItemTemplate>
|
|
<asp:Label ID="LblIEPS" runat="server" Text='<%# Eval("ImporteIEPS", "{0:#,##0.00##}") %>'></asp:Label><br />
|
|
<asp:Label ID="LblIEPSPorcentaje" runat="server" Text='<%# String.Format("{0} {1}", (CDbl(Eval("PorcentajeIEPS").ToString) * 100).ToString("#####"), If(CDbl(Eval("PorcentajeIEPS").ToString) * 100 > 0, "%", "")) %>'></asp:Label>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<%--<asp:BoundField DataField="ImporteIEPS" HeaderText="" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ReadOnly="true" Visible="false" />--%>
|
|
<%--9--%>
|
|
<asp:BoundField DataField="ImporteRetIVA" HeaderText="Ret IVA" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ReadOnly="true" Visible="false" />
|
|
<%--10--%>
|
|
<asp:BoundField DataField="ImporteRetISR" HeaderText="Ret ISR" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ReadOnly="true" Visible="false" />
|
|
<%--11--%>
|
|
<asp:TemplateField ItemStyle-HorizontalAlign="Right">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlTotal" runat="server" Text='<%# Eval("TotalImporte", "{0:#,##0.00##}") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<%--12--%>
|
|
<asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderText="Editar">
|
|
<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>" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<%--13--%>
|
|
<asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderText="Eliminar">
|
|
<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>
|
|
<RowStyle CssClass="Texto" />
|
|
<AlternatingRowStyle CssClass="TextoAlterno" />
|
|
<HeaderStyle CssClass="TextTab1" />
|
|
</asp:GridView>
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-6">
|
|
<%-- <asp:UpdatePanel ID="UpAntNC" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<asp:GridView ID="GvAntNC" runat="server" CssClass="table table-striped table-hover Widthall" AutoGenerateColumns="False" ClientIDMode="Static" EmptyDataText="" Caption="Anticipos/NC Vinculados" GridLines="None">
|
|
<Columns>
|
|
<asp:TemplateField ItemStyle-HorizontalAlign="Center">
|
|
<HeaderTemplate>Factura</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:HyperLink ID="HplFactura" runat="server" Target="_blank" CssClass="Texto" Text='<%# Eval("SerieFolio") %>' NavigateUrl='<%# Eval("CveVenta", "/Ventas/Ventas.aspx?CveVenta={0}")%>'></asp:HyperLink>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:BoundField HeaderText="Fecha" DataField="Fecha" DataFormatString="{0:d}" ItemStyle-HorizontalAlign="Center" />
|
|
<asp:BoundField HeaderText="Total" DataField="SubTotal" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
|
<asp:BoundField HeaderText="Anticipo/NC/IxC" DataField="Importe" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
|
<asp:BoundField HeaderText="Mon" DataField="Moneda" ItemStyle-HorizontalAlign="Center" />
|
|
</Columns>
|
|
</asp:GridView>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>--%>
|
|
</div>
|
|
|
|
<div class="col-md-6 ">
|
|
<table border="0" rules="none" class="well TextTab" style="float: right;">
|
|
<tr align="right">
|
|
<td style="width: 150px;"><b>SubTotal:</b></td>
|
|
<td width="82px">
|
|
<asp:TextBox ID="TxtSubTotal" ClientIDMode="Static" runat="server" BorderStyle="None" Style="text-align: right;" Text="0.00" Width="78px"></asp:TextBox></td>
|
|
<td align="right">
|
|
<asp:LinkButton ID="ImgOtrosConceptos" Visible="false" CssClass="btn btn-circle btn-xs blue" ToolTip="Desglose de Conceptos" Text="<i class='fa fa-list'></i>" runat="server"></asp:LinkButton>
|
|
</td>
|
|
</tr>
|
|
<tr align="right">
|
|
<td><b>Descuentos:</b></td>
|
|
<td>
|
|
<asp:Label ID="LblDescuentos" ClientIDMode="Static" runat="server" Style="text-align: right;" Text="0.00" Width="78px"></asp:Label></td>
|
|
<td align="right"> <asp:LinkButton ID="ImgDescTotal" runat="server" Text="<i class='fa fa-comment-o'></i>" Style="cursor: pointer;" AlternateText="Agregar Descuento" /></td>
|
|
</tr>
|
|
<tr align="right">
|
|
<td style="border: 1px none white"><b>Amort. Ant.:</b></td>
|
|
<td>
|
|
<asp:Label ID="LblAmortizacion" ClientIDMode="Static" runat="server" Style="text-align: right;" Text="0.00" Width="78px"></asp:Label></td>
|
|
</tr>
|
|
<tr align="right">
|
|
<td style="border: 1px none white"><b>SubTotal 2:</b></td>
|
|
<td>
|
|
<asp:TextBox ID="TxtSubTotal2" ClientIDMode="Static" runat="server" BorderStyle="None" Style="text-align: right;" Text="0.00" Width="78px"></asp:TextBox></td>
|
|
<td>
|
|
<asp:LinkButton ID="LkbAgregarComplementos" Visible="false" runat="server" CssClass="btn btn-circle btn-xs gray" Text="<i class='fa fa-bell '></i>"></asp:LinkButton></td>
|
|
</tr>
|
|
<tr align="right">
|
|
<td style="border: 1px none white"><b>IVA:</b></td>
|
|
<td>
|
|
<asp:TextBox ID="TxtIVA" ClientIDMode="Static" Enabled="false" runat="server" BorderStyle="None" Style="text-align: right;" Text="0.00" Width="78px"></asp:TextBox></td>
|
|
<asp:HiddenField ID="HdnIVAOriginal" runat="server" ClientIDMode="Static" Value="0" />
|
|
<asp:HiddenField ID="HdnIVACalculado" runat="server" ClientIDMode="Static" Value="0" />
|
|
<td> </td>
|
|
</tr>
|
|
<tr id="TrRetIVA" runat="server" align="right" style="display: none;">
|
|
<td style="border: 1px none white"><b>Ret. IVA:</b></td>
|
|
<td>
|
|
<asp:TextBox ID="TxtRetIVA" ClientIDMode="Static" runat="server" BorderStyle="None" Style="text-align: right;" Text="0.00" Width="78px"></asp:TextBox></td>
|
|
<td>
|
|
<asp:Label ID="LblRetIVA" runat="server" BorderStyle="None" Text="0.00"></asp:Label> (%)</td>
|
|
</tr>
|
|
<tr id="TrRetISR" runat="server" align="right" style="display: none;">
|
|
<td><b>Ret ISR:</b></td>
|
|
<td>
|
|
<asp:TextBox ID="TxtRetISR" ClientIDMode="Static" runat="server" BorderStyle="None" Style="text-align: right;" Text="0.00" Width="78px"></asp:TextBox></td>
|
|
<td>
|
|
<asp:Label ID="LblRetISR" runat="server" BorderStyle="None" Text="0.00"></asp:Label> (%)</td>
|
|
</tr>
|
|
<tr id="TrIEPS" runat="server" align="right" visible="false">
|
|
<td><b>IEPS:</b></td>
|
|
<td>
|
|
<asp:TextBox ID="TxtIEPS" ClientIDMode="Static" runat="server" BorderStyle="None" Style="text-align: right;" Text="0.00" Width="78px"></asp:TextBox></td>
|
|
<td></td>
|
|
</tr>
|
|
<tr id="TrOtros" runat="server">
|
|
<td colspan="2">
|
|
<asp:UpdatePanel ID="UpImpuestos" runat="server" UpdateMode="Conditional" RenderMode="Inline">
|
|
<ContentTemplate>
|
|
<asp:GridView ID="GvImpuestosLocales2" BorderWidth="0px" ShowHeader="False" runat="server" horizontal-align="Right" GridLines="None" ShowHeaderWhenEmpty="False" DataKeyNames="CveImpuestoLocal,ImpuestoLocal,Porcentaje,TipoImpuesto,IdCtaContable" AutoGenerateColumns="False" EmptyDataText="">
|
|
<Columns>
|
|
<asp:BoundField DataField="ImpuestoLocal" DataFormatString="{0}:" ItemStyle-Font-Bold="true" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="150px" />
|
|
<asp:TemplateField ItemStyle-HorizontalAlign="Right" ItemStyle-Width="82px">
|
|
<ItemTemplate>
|
|
<asp:TextBox ID="TxtImpuestoLocalPS" runat="server" BorderStyle="None" Style="text-align: right;" Text='<%# Eval("Importe", "{0:N2}") %>' Width="78px"></asp:TextBox>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
</asp:GridView>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</td>
|
|
<td></td>
|
|
</tr>
|
|
<tr align="right">
|
|
<td><b>Total:</b></td>
|
|
<td>
|
|
<asp:UpdatePanel runat="server">
|
|
<ContentTemplate>
|
|
<asp:TextBox ID="TxtTotal" runat="server" ClientIDMode="Static" BorderStyle="None" Style="text-align: right;" Text="0.00" Width="78px"></asp:TextBox>
|
|
<asp:HiddenField ID="HdnVentaSaldo" runat="server" ClientIDMode="Static" Value="0" />
|
|
<asp:HiddenField ID="HdnTotalVenta" runat="server" ClientIDMode="Static" Value="0" />
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</td>
|
|
<td><b>Moneda:</b></td>
|
|
<td>
|
|
<asp:DropDownList ID="DdlMoneda" CssClass="form-control input-sm" runat="server" DataTextField="Moneda" AutoPostBack="true" DataValueField="CveMoneda" Width="70px"></asp:DropDownList>
|
|
</td>
|
|
</tr>
|
|
<tr id="TrConversionPesosTexto" align="right" style="display: none;">
|
|
<td><b>MXN:</b></td>
|
|
<td class="font-blue-sharp">
|
|
<asp:Label ID="LtlTotalConvertido" runat="Server" ClientIDMode="Static" Style="text-align: right;"></asp:Label>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr id="TrConversionTipoCambio" runat="server" visible="false" align="right">
|
|
<td>
|
|
<asp:CheckBox ID="ChkConvertirDoctoPesos" data-size="small" runat="server" ToolTip="Las cantidades se definen en moneda extranjera, pero el documento se empresa a pesos (Se multiplica por el Tipo de Cambio)" onclick="ConvertirPesos(this);" /></td>
|
|
<td>
|
|
<b>Conv. Pesos:</b>
|
|
</td>
|
|
<td><b>T.C.:</b></td>
|
|
<td>
|
|
<asp:TextBox ID="TxtTipoCambio" onkeyup="ConvertirDllsPesos();" runat="server" CssClass="form-control input-sm" MaxLength="7" Text="1" Enabled="true" Width="70px" ClientIDMode="Static"></asp:TextBox>
|
|
<asp:CompareValidator ID="CVTipoCambio" runat="server" ControlToValidate="TxtTipoCambio" Display="None" ErrorMessage="El campo <b>''Tipo de Cambio''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico)." Operator="DataTypeCheck" Type="Double" ValidationGroup="GrpEmitirImprimir"></asp:CompareValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCOTipoCambio" runat="server" HighlightCssClass="vco" TargetControlID="CVTipoCambio" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr id="TrConversionDolaresTexto" align="right" style="display: none;">
|
|
<td><b>DLLS:</b></td>
|
|
<td class="font-blue-sharp">
|
|
<asp:Label ID="LblDolaresConvertidos" runat="Server" ClientIDMode="Static" Style="text-align: right;"></asp:Label>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr id="TrConversionDolares" runat="server" visible="false" align="right">
|
|
<td>
|
|
<asp:CheckBox ID="ChkConvertirDolares" data-size="small" runat="server" onclick="ConvertirDolares(this);" /></td>
|
|
<td>
|
|
<b>Conv. Dlls:</b>
|
|
</td>
|
|
<td><b>T.C.:</b></td>
|
|
<td>
|
|
<asp:TextBox ID="TxtTipoCambioDlls" onkeyup="ConvertirPesosDlls();" runat="server" CssClass="form-control input-sm" MaxLength="7" Text="1" Enabled="true" Width="70px" ClientIDMode="Static"></asp:TextBox>
|
|
<asp:CompareValidator ID="CvTipoCambioDolares" runat="server" ControlToValidate="TxtTipoCambioDlls" Display="None" ErrorMessage="El campo <b>''Tipo de Cambio''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico)." Operator="DataTypeCheck" Type="Double" ValidationGroup="GrpEmitirImprimir"></asp:CompareValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCEOTipoCambioDlls" runat="server" HighlightCssClass="vco" TargetControlID="CvTipoCambioDolares" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</td>
|
|
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</ContentTemplate>
|
|
</ajax:TabPanel>
|
|
|
|
<ajax:TabPanel ID="TabAlmacen" runat="server" HeaderText="Almacén">
|
|
<ContentTemplate>
|
|
|
|
<asp:UpdatePanel ID="UpINV" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div class="portlet box purpleAlmacen" id="DivSalidaAlmacen" runat="server">
|
|
<div class="portlet-title">
|
|
<div class="caption">
|
|
<i class="fa fa-dropbox"></i>Salida Almacen
|
|
</div>
|
|
<div class="tools">
|
|
<a href="javascript:;" class="collapse"></a>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body ">
|
|
<div class="row">
|
|
<div id="DivAlmacen" runat="server" class=" col-sm-4">
|
|
Almacén:
|
|
<asp:DropDownList ID="ddlAlmacen" AppendDataBoundItems="true" runat="server" DataTextField="Almacen" DataValueField="CveAlmacen" CssClass="select2me" Width="200px"></asp:DropDownList>
|
|
</div>
|
|
<div class=" col-sm-8">
|
|
<div class="Widthall" style="overflow-x: auto;">
|
|
<asp:GridView ID="GvInv" runat="server" AutoGenerateColumns="false" DataKeyNames="Origen,CvePS" EmptyDataText="Aun no hay registros." ShowHeaderWhenEmpty="True" Width="100%" HeaderStyle-CssClass="Titulos" CssClass="table table-striped table-hover" Style="text-align: center;" GridLines="None">
|
|
<Columns>
|
|
<asp:TemplateField>
|
|
<ItemTemplate>
|
|
<asp:CheckBox ID="cbInv" runat="server" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Cantidad" ItemStyle-Width="60px">
|
|
<ItemTemplate>
|
|
<asp:Label ID="lbCantidad" runat="server" Width="50px" ClientIDMode="Static" Text='<%# Eval("Cantidad", "{0:#,###.####}")%>'>
|
|
</asp:Label>
|
|
</ItemTemplate>
|
|
<ItemStyle></ItemStyle>
|
|
<HeaderStyle CssClass="Titulos" />
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Unidad">
|
|
<ItemTemplate>
|
|
<asp:Label ID="lbUnidad" runat="server" Width="50px" ClientIDMode="Static" Text='<%# Eval("UM")%>'>
|
|
</asp:Label>
|
|
</ItemTemplate>
|
|
<ItemStyle Width="70px"></ItemStyle>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<HeaderTemplate>Producto</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlPS" runat="server" Text='<%# Eval("CodigoPS") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Serie">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlSerie" Text='<%# Eval("SerieLote") %>' Visible="false" runat="server" />
|
|
<asp:TextBox ID="TxtSerie" AutoPostBack="false" Text='<%# Eval("SerieLote") %>' Visible="false" runat="server" />
|
|
<asp:Button Text="" ID="BtnSerie" Style="display: none;" OnClick="BtnSerie_Click" runat="server" />
|
|
<asp:HiddenField runat="server" Value='<%# Eval("SerieLote") %>' ID="HdnSerie" />
|
|
|
|
<%--<asp:HiddenField runat="server" ID="HdnSerieLote" Value='<%# Eval("SerieLote")%>' />--%>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:BoundField DataField="Lote" HeaderText="Lote" />
|
|
<asp:BoundField DataField="FechaCaducidad" HeaderText="FechaCaducidad" />
|
|
</Columns>
|
|
</asp:GridView>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
</ContentTemplate>
|
|
</ajax:TabPanel>
|
|
|
|
</ajax:TabContainer>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
|
|
<hr style="width: 100%;" />
|
|
|
|
<div class="row">
|
|
<div class="col-md-5">
|
|
<div id="divcondicionespago" runat="server">
|
|
|
|
<asp:UpdatePanel ID="UPCondicionesPago" runat="server" class="portlet light xspadding bordered " align="left" style="width: 400px;" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div class="portlet-title" style="margin-bottom: 0px;">
|
|
<div class="caption font-green">
|
|
<i class="icon-pin font-green"></i>
|
|
<span class="caption-subject bold uppercase">Condiciones de Pago </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 formnombottom">
|
|
<table border="0" width="100%">
|
|
<tr id="TrFormaEntrega" runat="server" visible="false">
|
|
<td align="left">Forma de entrega:</td>
|
|
<td align="left">
|
|
<asp:DropDownList ID="DdlFormaEntrega" DataTextField="CondicionEntrega" DataValueField="CveCondicionEntrega" CssClass=" form-control input-sm select2me" runat="server" Width="200px">
|
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</td>
|
|
</tr>
|
|
|
|
<div runat="server" id="Tr32" visible="true">
|
|
<tr>
|
|
<td align="left">Forma de Pago:</td>
|
|
<td align="left">
|
|
<asp:DropDownList ID="DdlFormaPago" CssClass=" form-control input-sm select2me" runat="server" AppendDataBoundItems="true" CausesValidation="true" DataTextField="FormaPagoSAT" DataValueField="CveFormaPago" ValidationGroup="GrpEmitirImprimir" Width="200px">
|
|
<asp:ListItem Selected="True" Text="PAGO EN UNA SOLA EXHIBICION" Value="0"></asp:ListItem>
|
|
<asp:ListItem Text="PAGO EN PARCIALIDADES" Value="1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left">Método de Pago:</td>
|
|
<td align="left">
|
|
<asp:DropDownList ID="DdlMetodoPago" runat="server" CssClass=" form-control input-sm select2me" AppendDataBoundItems="true" CausesValidation="true" DataTextField="MetodoPago" DataValueField="CveMetodoPago" Width="200px">
|
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
<%-- <asp:RequiredFieldValidator ID="RFVMetodoPago" runat="server" ControlToValidate="DdlMetodoPago" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Método de Pago''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpEmitirImprimir"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCOMetodoPago" runat="server" HighlightCssClass="VCO" TargetControlID="RFVMetodoPago" Width="300px"></ajax:ValidatorCalloutExtender>--%>
|
|
</td>
|
|
</tr>
|
|
</div>
|
|
|
|
<div runat="server" id="Tr33" visible="true">
|
|
<tr>
|
|
<td align="left">Uso CFDI:</td>
|
|
<td align="left">
|
|
<asp:DropDownList ID="DdlUsoCFDI" CssClass=" form-control input-sm select2me" runat="server" AppendDataBoundItems="true" CausesValidation="true" DataTextField="UsoCFDIDescripcion" DataValueField="CveUsoCFDI" ValidationGroup="GrpEmitirImprimir" Width="200px">
|
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
<asp:RequiredFieldValidator ID="RFVUsoCFDi" runat="server" ControlToValidate="DdlUsoCFDI" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Uso CFDi''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpEmitirImprimir"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCEUsoCFDI" runat="server" HighlightCssClass="VCO" TargetControlID="RFVUsoCFDi" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
|
|
</td>
|
|
</tr>
|
|
<div runat="server" id="Tr34" visible="true">
|
|
<tr>
|
|
<td align="left">Método de Pago:</td>
|
|
<td align="left">
|
|
<asp:DropDownList ID="DdlMetodoPago33" runat="server" CssClass=" form-control input-sm select2me" AppendDataBoundItems="true" CausesValidation="true" DataTextField="MetodoPagoSAT" DataValueField="CveMetodoPago" Width="200px" AutoPostBack="true">
|
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
<asp:RequiredFieldValidator ID="RFVMetodoPago33" runat="server" ControlToValidate="DdlMetodoPago33" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Método de Pago''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpEmitirImprimir"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCEMetodoPago33" runat="server" HighlightCssClass="VCO" TargetControlID="RFVMetodoPago33" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left">Forma de Pago:</td>
|
|
<td align="left">
|
|
<asp:DropDownList ID="DdlFormaPago33" CssClass=" form-control input-sm select2me" runat="server" AppendDataBoundItems="true" CausesValidation="true" DataTextField="FormaPagoSAT" DataValueField="CveFormaPago" ValidationGroup="GrpEmitirImprimir" Width="200px">
|
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
<asp:RequiredFieldValidator ID="RFVFormaPago33" runat="server" ControlToValidate="DdlFormaPago33" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Forma de Pago''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpEmitirImprimir"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCEFormaPago33" runat="server" HighlightCssClass="VCO" TargetControlID="RFVFormaPago33" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
|
|
</td>
|
|
</tr>
|
|
</div>
|
|
<tr runat="server" id="TrTipoRelacion" visible="false">
|
|
<td align="left">Tipo Relación</td>
|
|
<td>
|
|
<asp:DropDownList ID="DdlTiposRelacion" CssClass=" form-control input-sm select2me" runat="server" Width="200px" DataTextField="SATTipoRelacion" DataValueField="CveTipoRelacion">
|
|
<asp:ListItem Text="-" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2">
|
|
<hr style="margin: 0;" />
|
|
</td>
|
|
</tr>
|
|
</div>
|
|
<%--<tr>
|
|
<td align="left">Num. Cta. Pago:</td>
|
|
<td align="left">
|
|
<asp:TextBox ID="TxtNumCtaPago" runat="server" Width="65px" CssClass="form-control input-sm input-small"></asp:TextBox>
|
|
</td>
|
|
</tr>--%>
|
|
<tr>
|
|
<td align="left">Fecha de Pago:</td>
|
|
<td align="left">
|
|
<div class="input-group input-small input-sm date date-picker" data-date-format="dd/mm/yyyy" style="padding: 0px;">
|
|
<asp:TextBox ID="TxtFechaPago" runat="server" CssClass="form-control input-sm input-small" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
|
<span class="input-group-btn ">
|
|
<asp:LinkButton ID="imgCalendario" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
|
</span>
|
|
<ajax:MaskedEditExtender ID="MEEFechaC" runat="server" TargetControlID="TxtFechaPago" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
|
<ajax:CalendarExtender ID="Calendario" runat="server" TargetControlID="TxtFechaPago" PopupButtonID="ImgCalendario" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
|
<asp:RequiredFieldValidator ID="RFVFechaC" runat="server" ControlToValidate="TxtFechaPago" Display="None" ErrorMessage="El campo <b>''Fecha de Pago''</b> es necesario, por favor ingréselo." ValidationGroup="GrpEmitirImprimir"></asp:RequiredFieldValidator>
|
|
<asp:CompareValidator ID="CVFechaC" runat="server" ControlToValidate="TxtFechaPago" Display="None" ErrorMessage="El campo <b>''Fecha de Pago''</b> no tiene el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="GrpEmitirImprimir"></asp:CompareValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCERFVFC" runat="server" HighlightCssClass="vco" TargetControlID="RFVFechaC" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
<ajax:ValidatorCalloutExtender ID="VCECVFC" runat="server" HighlightCssClass="vco" TargetControlID="CVFechaC" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td colspan="2">
|
|
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<asp:RadioButtonList ID="RBLPago" CssClass="iradio_square-blue" runat="server" RepeatDirection="Horizontal" Width="100%" AutoPostBack="true">
|
|
<asp:ListItem Value="1" Enabled="false">Crédito</asp:ListItem>
|
|
<asp:ListItem Value="2" Selected="True">Contado</asp:ListItem>
|
|
<asp:ListItem Value="3">Terminal</asp:ListItem>
|
|
</asp:RadioButtonList>
|
|
</div>
|
|
</div>
|
|
|
|
<%-- ******************** Punto de Venta *****************************************************************************************************************************--%>
|
|
<asp:UpdatePanel runat="server" ID="UpContado" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
|
|
<div runat="server" id="DivContado" class="row" visible="false">
|
|
|
|
<asp:Panel runat="server" ID="PnlContado" DefaultButton="BtnAgregarPago">
|
|
<div runat="server" id="DivContadoBancos" class="row" visible="True">
|
|
<div class="col-md-12">
|
|
<div class="chequesie1">
|
|
<div class="row">
|
|
<label class="col-md-2">Efectivo:</label>
|
|
<div class="col-md-4 input-icon">
|
|
<i style="margin: 0px;">$</i>
|
|
<asp:TextBox ID="TxtImporteEfectivo" CssClass="form-control input-sm " runat="server" MaxLength="12" Width="100px" ClientIDMode="Static" Style="text-align: right;"></asp:TextBox>
|
|
<ajax:FilteredTextBoxExtender ID="FTBEImporteEfectivo" runat="server" TargetControlID="TxtImporteEfectivo" FilterType="Custom, Numbers" ValidChars=".," />
|
|
</div>
|
|
<div class="col-md-6">
|
|
<asp:DropDownList ID="DdlCuentaEfectivo" runat="server" CssClass="form-control input-sm select2me" AppendDataBoundItems="true" AutoPostBack="true" DataTextField="NumCuentaMoneda" DataValueField="CveCuenta" Width="100%"></asp:DropDownList>
|
|
<asp:RequiredFieldValidator ID="RFVCuenta" runat="server" ControlToValidate="DdlCuentaEfectivo" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Cuenta''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpAgregarPago"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCOCuenta" runat="server" HighlightCssClass="vco" TargetControlID="RFVCuenta" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="chequesie1">
|
|
<div class="row">
|
|
<label class="col-md-2">Credito:</label>
|
|
<div class="col-md-4 input-icon">
|
|
<i style="margin: 0px;">$</i>
|
|
<asp:TextBox ID="TxtImporteCredito" CssClass="form-control input-sm " runat="server" MaxLength="12" Width="100px" ClientIDMode="Static" Style="text-align: right;"></asp:TextBox>
|
|
<ajax:FilteredTextBoxExtender ID="FBEImporteCredito" runat="server" TargetControlID="TxtImporteCredito" FilterType="Custom, Numbers" ValidChars=".," />
|
|
</div>
|
|
<div class="col-md-6">
|
|
<asp:DropDownList ID="DdlCuentaTarjetaCredito" runat="server" CssClass="form-control input-sm select2me" AppendDataBoundItems="true" AutoPostBack="true" DataTextField="NumCuentaMoneda" DataValueField="CveCuenta" Width="100%"></asp:DropDownList>
|
|
<asp:RequiredFieldValidator ID="RFVTarjetaCredito" runat="server" ControlToValidate="DdlCuentaTarjetaCredito" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Cuenta''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpAgregarPago"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCETarjetaCredito" runat="server" HighlightCssClass="vco" TargetControlID="RFVTarjetaCredito" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="chequesie1">
|
|
<div class="row">
|
|
<label class="col-md-2">Debito:</label>
|
|
<div class="col-md-4 input-icon">
|
|
<i style="margin: 0px;">$</i>
|
|
<asp:TextBox ID="TxtImporteDebito" CssClass="form-control input-sm " runat="server" MaxLength="12" Width="100px" ClientIDMode="Static" Style="text-align: right;"></asp:TextBox>
|
|
<ajax:FilteredTextBoxExtender ID="FBEImporteDebito" runat="server" TargetControlID="TxtImporteDebito" FilterType="Custom, Numbers" ValidChars=".," />
|
|
</div>
|
|
<div class="col-md-6">
|
|
<asp:DropDownList ID="DdlCuentaTarjetaDebito" runat="server" CssClass="form-control input-sm select2me" AppendDataBoundItems="true" AutoPostBack="true" DataTextField="NumCuentaMoneda" DataValueField="CveCuenta" Width="100%"></asp:DropDownList>
|
|
<asp:RequiredFieldValidator ID="RFVTarjetaDebito" runat="server" ControlToValidate="DdlCuentaTarjetaDebito" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Cuenta''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpAgregarPago"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCETarjetaDebito" runat="server" HighlightCssClass="vco" TargetControlID="RFVTarjetaDebito" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="chequesie1">
|
|
<div class="row">
|
|
<label class="col-md-2">Cheque:</label>
|
|
<div class="col-md-4 input-icon">
|
|
<i style="margin: 0px;">$</i>
|
|
<asp:TextBox ID="TxtImporteCheque" CssClass="form-control input-sm " runat="server" MaxLength="12" Width="100px" ClientIDMode="Static" Style="text-align: right;"></asp:TextBox>
|
|
<ajax:FilteredTextBoxExtender ID="FTBECheque" runat="server" TargetControlID="TxtImporteCheque" FilterType="Custom, Numbers" ValidChars=".," />
|
|
</div>
|
|
<div class="col-md-6">
|
|
<asp:DropDownList ID="DdlCuentaCheque" runat="server" CssClass="form-control input-sm select2me" AppendDataBoundItems="true" AutoPostBack="true" DataTextField="NumCuentaMoneda" DataValueField="CveCuenta" Width="100%"></asp:DropDownList>
|
|
<asp:RequiredFieldValidator ID="RFVCuentaCheque" runat="server" ControlToValidate="DdlCuentaCheque" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Cuenta''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpAgregarPago"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCECuentaCheque" runat="server" HighlightCssClass="vco" TargetControlID="RFVCuentaCheque" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="chequesie1">
|
|
<div class="row">
|
|
<label class="col-md-2">Transf.:</label>
|
|
<div class="col-md-4 input-icon">
|
|
<i style="margin: 0px;">$</i>
|
|
<asp:TextBox ID="TxtImporteTransferencia" CssClass="form-control input-sm " runat="server" MaxLength="12" Width="100px" ClientIDMode="Static" Style="text-align: right;"></asp:TextBox>
|
|
<ajax:FilteredTextBoxExtender ID="FTBETransferencia" runat="server" TargetControlID="TxtImporteTransferencia" FilterType="Custom, Numbers" ValidChars=".," />
|
|
</div>
|
|
<div class="col-md-6">
|
|
<asp:DropDownList ID="DdlCuentaTransferencia" runat="server" CssClass="form-control input-sm select2me" AppendDataBoundItems="true" AutoPostBack="true" DataTextField="NumCuentaMoneda" DataValueField="CveCuenta" Width="100%"></asp:DropDownList>
|
|
<asp:RequiredFieldValidator ID="RFVTransferencia" runat="server" ControlToValidate="DdlCuentaTransferencia" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Cuenta''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpAgregarPago"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCETransferencia" runat="server" HighlightCssClass="vco" TargetControlID="RFVTransferencia" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="chequesie2">
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
</div>
|
|
<label class="col-md-2">Total:</label>
|
|
<div class="col-md-4 input-icon">
|
|
<i style="margin: 0px;">$</i>
|
|
<asp:TextBox ID="TxtImporteContado" CssClass="form-control input-sm " runat="server" MaxLength="12" Width="100px" ClientIDMode="Static" Style="text-align: right;"></asp:TextBox>
|
|
<ajax:FilteredTextBoxExtender ID="FBEImporteContado" runat="server" TargetControlID="TxtImporteContado" FilterType="Custom, Numbers" ValidChars=".," />
|
|
|
|
|
|
<%--<asp:CompareValidator ID="CVImporteContado" runat="server" ControlToValidate="TxtImporteContado" Display="None" ErrorMessage="Importe excedido." Operator="LessThanEqual" Type="Double" ValidationGroup="GrpAgregarPago"></asp:CompareValidator>--%>
|
|
<%--<ajax:ValidatorCalloutExtender ID="VCEImporteContado" runat="server" HighlightCssClass="vco" TargetControlID="CVImporteContado" Width="300px"></ajax:ValidatorCalloutExtender>--%>
|
|
<br></br>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
</div>
|
|
<label class="col-md-2">Cambio:</label>
|
|
<div class="col-md-4 input-icon">
|
|
<i style="margin: 0px;">$</i>
|
|
<asp:TextBox ID="TxtCambio" CssClass="form-control input-sm " Enabled="false" runat="server" MaxLength="12" Width="100px" ClientIDMode="Static" Style="text-align: right;"></asp:TextBox>
|
|
<ajax:FilteredTextBoxExtender ID="FTBECambio" runat="server" TargetControlID="TxtCambio" FilterType="Custom, Numbers" ValidChars=".," />
|
|
<br></br>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<br />
|
|
|
|
<div class="row">
|
|
<div class="col-md-12 text-right">
|
|
<asp:Button ID="BtnAgregarPago" Text="Agregar" CssClass="btn btn-primary" runat="server" ValidationGroup="GrpAgregarPago" />
|
|
</div>
|
|
</div>
|
|
|
|
<br />
|
|
|
|
<div runat="server" id="DivGvPagos" class="row" visible="True">
|
|
<div class="col-md-12">
|
|
|
|
<asp:GridView ID="GvPagos" runat="server" AutoGenerateColumns="false" EmptyDataText="No se encontraron datos" CssClass="table table-striped table-hover Widthall" GridLines="None">
|
|
<Columns>
|
|
<asp:BoundField DataField="Tipo" HeaderText="Tipo" />
|
|
<asp:BoundField DataField="Cuenta" HeaderText="Cuenta" />
|
|
<asp:BoundField DataField="Importe" HeaderText="Importe" ItemStyle-HorizontalAlign="Right" />
|
|
<asp:TemplateField>
|
|
<ItemTemplate>
|
|
<asp:ImageButton ID="imgD" runat="server" AlternateText="Eliminar" CausesValidation="False" CommandName="Delete" ImageUrl="/Imagenes/Btn_Delete.png" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
</asp:GridView>
|
|
|
|
</div>
|
|
</div>
|
|
</asp:Panel>
|
|
</div>
|
|
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
<%-- **************************************************************************************************************************************************************** --%>
|
|
|
|
<%-- Terminal --%>
|
|
<asp:UpdatePanel ID="UPTarjetaTermminal" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div class="row" runat="server" id="DivTerminal" visible="false">
|
|
<div class="col-md-12">
|
|
<asp:DropDownList ID="DdlCuentasTerminal" CssClass="form-control select2me" Width="100%" runat="server" AppendDataBoundItems="true" DataTextField="NumCuentaMoneda" DataValueField="CveCuenta">
|
|
<%--<asp:ListItem Selected="True" Text="Seleccione una Cuenta" Value="-2"></asp:ListItem>--%>
|
|
</asp:DropDownList>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
<%-- --%>
|
|
|
|
</td>
|
|
</tr>
|
|
<tr id="TrTipoRelacion2" runat="server" visible="false">
|
|
<td style="text-align: left">Tipo Relación:</td>
|
|
<td style="text-align: left">
|
|
<asp:Label ID="LblTipoRelacion" runat="server"></asp:Label></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-3">
|
|
<asp:UpdatePanel ID="UPObservaciones" runat="server" class="portlet light smmallpadding bordered whitoutcol" style="width: 300px;" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div class="portlet-title">
|
|
<div class="caption font-green">
|
|
<i class="icon-pin font-green"></i>
|
|
<span class="caption-subject bold uppercase">Observaciones </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 formnombottom">
|
|
<table border="0" width="250px">
|
|
<tr align="left">
|
|
<td><b>Observaciones Generales:</b> </td>
|
|
</tr>
|
|
<tr align="left">
|
|
<td>
|
|
<asp:TextBox ID="TxtObsFact" runat="server" Rows="3" TextMode="MultiLine" Width="250px"></asp:TextBox></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
<div class="col-md-4" align="right">
|
|
<asp:UpdatePanel ID="UpFacturar" runat="server" class="portlet light smmallpadding bordered whitoutcol" style="width: 300px;" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
|
|
<div class="portlet-title">
|
|
<div class="caption font-green">
|
|
<i class="icon-pin font-green"></i>
|
|
<span class="caption-subject bold uppercase">Acciones </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 formnombottom">
|
|
<table border="0" align="center">
|
|
<tr id="TrEmitir" runat="server">
|
|
<td>
|
|
<asp:Button ID="BtnEmitirImprimir" runat="server" Text="Emitir e Imprimir" Style="width: 170px; padding-right: 30px;" CssClass="btn btn-primary" ValidationGroup="GrpEmitirImprimir" />
|
|
<i class=" fa-print fa " style="margin-left: -30px; margin-top: 10px; color: white;"></i>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<asp:Button ID="BtnEditarRemision" runat="server" Text="Actualizar Remision" CssClass="btn myventasbutton btn-primary" Visible="false" />
|
|
<asp:Button ID="BtnPermisoEditarRemision" runat="server" Text="Editar Remision" CssClass="btn myventasbutton btn-primary" Visible="false" />
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
|
|
<%--MODAL ADD PS --%>
|
|
<div id="DivAddPS" class="modal ADS fade" role="dialog">
|
|
<div class="modal-dialog">
|
|
<asp:UpdatePanel ID="UpAddPS" class="modal-content rowpadding" tabindex="-1" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<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="myModalLabelPS">Registrar Producto / Servicio</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<asp:UpdatePanel ID="UpAddPSBody" UpdateMode="Conditional" runat="server">
|
|
<ContentTemplate>
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:TextBox ID="TxtCodigoPS" runat="server" CssClass="form-control" CausesValidation="true"></asp:TextBox>
|
|
<%--<asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtCodigoPS" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Codigo''</b> es necesario, por favor ingréselo." ValidationGroup="GrpAddPS"></asp:RequiredFieldValidator>--%>
|
|
<label for="<%= TxtCodigoPS.ClientID.ToString()%>">Número de Parte / Código:</label>
|
|
</div>
|
|
|
|
<div class="form-group form-md-line-input input-iconright" div="DivCodigoBarras" runat="server">
|
|
<asp:TextBox ID="TxtCodigoBarrasPS" runat="server" CssClass="form-control" CausesValidation="true"></asp:TextBox>
|
|
<%--<asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtCodigoBarrasPS" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Colonia''</b> es necesario, por favor ingréselo." ValidationGroup="GrpObligatorio"></asp:RequiredFieldValidator>--%>
|
|
<label for="<%= TxtCodigoBarrasPS.ClientID.ToString()%>">Código de barras:</label>
|
|
</div>
|
|
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:TextBox ID="TxtPS" runat="server" Width="100%" CssClass="form-control Mayuscula" CausesValidation="true"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RequiredFieldValidator14" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtPS" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Producto / Servicio''</b> es necesario, por favor ingréselo." ValidationGroup="GrpAddPS"></asp:RequiredFieldValidator>
|
|
<label for="<%= TxtPS.ClientID.ToString()%>">Descripción del Productos / Servicio:</label>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-4">
|
|
<div class="form-group form-md-line-input input-iconright" id="DivDdlTipo" runat="server" visible="false">
|
|
<asp:DropDownList ID="DdlTipo" CssClass="form-control input-sm select2me " Width="70%" runat="server" AppendDataBoundItems="true" AutoPostBack="false" CausesValidation="true" DataTextField="ClasificacionDetalle" DataValueField="CveClasificacionDetalle" Enabled="true">
|
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
<asp:LinkButton ID="BtnAddClasificacionDetalle" runat="server" OnClick="BtnAddClasificacionDetalle_Click" CssClass="btn btn-default btn-circle btn-xs " data-toggle="tooltip" title="Registrar un Tipo"><i class='fa fa-plus' style="color:black" ></i></asp:LinkButton>
|
|
<label for="<%= DdlTipo.ClientID.ToString()%>">Tipo:</label>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-4">
|
|
<div class="form-group form-md-line-input input-iconright" id="DivMarcaPSDes" runat="server" visible="false">
|
|
<asp:DropDownList ID="DdlMarcaPSDes" CssClass="form-control input-sm select2me" runat="server" DataTextField="Marca" DataValueField="CveMarca" Width="100%"></asp:DropDownList>
|
|
<label for="<%= DdlMarcaPSDes.ClientID.ToString()%>">Marca:</label>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-2">
|
|
<div class="form-group form-md-line-input input-iconright" id="DivTxtModelo" runat="server" visible="false">
|
|
<asp:TextBox ID="TxtModelo" runat="server" Width="100%" CssClass="form-control" CausesValidation="true"></asp:TextBox>
|
|
<label for="<%= TxtModelo.ClientID.ToString()%>">Modelo:</label>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-2">
|
|
<div class="form-group form-md-line-input input-iconright" id="DivTxtAdicional" runat="server" visible="false">
|
|
<asp:TextBox ID="TxtAdicional" runat="server" Width="100%" CssClass="form-control" CausesValidation="true"></asp:TextBox>
|
|
<label for="<%= TxtAdicional.ClientID.ToString()%>">Adicional:</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:DropDownList ID="DdlTipoPS" CssClass="form-control input-sm select2me" Width="100%" runat="server">
|
|
<asp:ListItem Text="Seleccione" Value="-1"></asp:ListItem>
|
|
<asp:ListItem Text="Producto" Value="2"></asp:ListItem>
|
|
<asp:ListItem Text="Servicio" Value="1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
<asp:RequiredFieldValidator ID="RFVTipoPS" runat="server" ControlToValidate="DdlTipoPS" CssClass="help-block errorimput" ErrorMessage="El campo <b>''Tipo''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpAddPS"></asp:RequiredFieldValidator>
|
|
<label for="<%= DdlTipoPS.ClientID.ToString()%>">Tipo PS:</label>
|
|
</div>
|
|
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:DropDownList ID="DdlUnidadMedidaPS" CssClass="form-control input-sm select2me " Width="100%" runat="server" AppendDataBoundItems="true" AutoPostBack="false" CausesValidation="true" DataTextField="UnidadMedida" DataValueField="CveUnidadMedida">
|
|
</asp:DropDownList>
|
|
<asp:RequiredFieldValidator ID="RequiredFieldValidator15" runat="server" ControlToValidate="DdlUnidadMedidaPS" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Unidad de Medida''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpAddPS"></asp:RequiredFieldValidator>
|
|
<label for="<%= DdlUnidadMedidaPS.ClientID.ToString()%>">Unidad de Medida:</label>
|
|
</div>
|
|
|
|
<div class="form-group form-md-line-input input-iconright" id="DivDdlClasificacion" runat="server">
|
|
<asp:DropDownList ID="DdlClasificacionPS" CssClass="form-control input-sm select2me " OnSelectedIndexChanged="DdlClasificacionPS_SelectedIndexChanged" Width="100%" runat="server" AppendDataBoundItems="true" AutoPostBack="true" CausesValidation="true" DataTextField="Clasificacion" DataValueField="CveClasificacion" Enabled="true">
|
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
<asp:RequiredFieldValidator ID="RFVClasificacion" runat="server" ControlToValidate="DdlClasificacionPS" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Clasificación''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpAddPS"></asp:RequiredFieldValidator>
|
|
<label for="<%= DdlClasificacionPS.ClientID.ToString()%>">Clasificación Contable:</label>
|
|
</div>
|
|
|
|
<div class="form-group form-md-line-input input-iconright" id="DivMarca" runat="server" visible="false">
|
|
<asp:DropDownList ID="DdlMarca" CssClass="form-control input-sm select2me" runat="server" DataTextField="Marca" DataValueField="CveMarca" Width="100%"></asp:DropDownList>
|
|
<label for="<%= DdlMarca.ClientID.ToString()%>">Marca:</label>
|
|
</div>
|
|
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:CheckBox ID="ChkRequiereSerie" runat="server" />
|
|
<label for="<%= ChkRequiereSerie.ClientID.ToString()%>">Requiere Serie:</label>
|
|
</div>
|
|
|
|
<%--<div class="form-group form-md-line-input input-iconright" id="DivDdlMetodoInv" runat="server">
|
|
<asp:DropDownList CssClass="form-control input-sm select2me " ID="DdlMetodoInv" Width="100%" runat="server" DataTextField="MetodoInventario" DataValueField="CveMetodoInventario"></asp:DropDownList>
|
|
<asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="DdlMetodoInv" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Metodo Inventario''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpAddPS"></asp:RequiredFieldValidator>
|
|
<label for="<%= DdlMetodoInv.ClientID.ToString()%>">Metodo Inventario:</label>
|
|
</div> --%>
|
|
|
|
<div class="form-group form-md-line-input input-iconright" id="DivPSSAT" runat="server" visible="false">
|
|
<ADS:Dropdownlost runat="server" ID="DdlSATPS" CssStyle="width: 100%;" CssClass="form-control input-sm select2me" DataTextField="Descripcion" DataValueField="CveSATPS" />
|
|
<label for="<%= DdlSATPS.ClientID.ToString()%>">Producto SAT:</label>
|
|
</div>
|
|
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
<div class="modal-footer">
|
|
<asp:UpdatePanel ID="UpAddPSFooter" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<asp:LinkButton ID="LbAddPS" runat="server" CssClass="btn btn-success" Text="Agregar" ValidationGroup="GrpAddPS"></asp:LinkButton>
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
<%--FIN MODAL ADD PS --%>
|
|
|
|
<div id="DModalClasificacion" class="modal ADS fade" role="dialog">
|
|
<asp:UpdatePanel class="modal-dialog" runat="server" ID="UpModal" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div class="modal-content">
|
|
<div class="modal-header ">
|
|
<h4 class="modal-title">
|
|
<asp:Literal ID="ltlMotititulo" Text="Tipo" runat="server"> </asp:Literal></h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:TextBox ID="TxtClasificacionDetalle" CssClass="form-control" runat="server" MaxLength="200"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVClasificacionDetalle" runat="server" ControlToValidate="TxtClasificacionDetalle" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Tipo''</b> es necesario, por favor ingréselo." ValidationGroup="VGMGuardar"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCOClasificacionDetalle" runat="server" HighlightCssClass="vco" TargetControlID="RFVClasificacionDetalle"></ajax:ValidatorCalloutExtender>
|
|
<label for="<%= TxtClasificacionDetalle.ClientID.ToString()%>">Tipo:</label>
|
|
</div>
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:DropDownList ID="DdlClasificacionModal" CssClass="form-control input-sm select2me" runat="server" AppendDataBoundItems="true" CausesValidation="true" DataTextField="Clasificacion" DataValueField="CveClasificacion" Width="50%">
|
|
</asp:DropDownList>
|
|
<asp:RequiredFieldValidator ID="RfvClasificacionModal" runat="server" ControlToValidate="DdlClasificacionModal" InitialValue="-1" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Clasificacion''</b> es necesario, por favor ingréselo." ValidationGroup="VGMGuardar"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCOClasificacionModal" runat="server" HighlightCssClass="vco" TargetControlID="RfvClasificacionModal"></ajax:ValidatorCalloutExtender>
|
|
<label for="<%= DdlClasificacionModal.ClientID.ToString()%>">Clasificación:</label>
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<asp:Button ID="BtnAddClasificacionDetalleModal" OnClick="BtnAddClasificacionDetalleModal_Click" runat="server" Text="Agregar" CssClass="btn btn-primary" ValidationGroup="VGMGuardar" />
|
|
<button type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
|
|
<div id="DModalRecepcionUsados" class="modal ADS fade" role="dialog">
|
|
<asp:UpdatePanel class="modal-dialog" runat="server" ID="UpRecepcionUsados" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div class="modal-content">
|
|
<div class="modal-header ">
|
|
<h4 class="modal-title">
|
|
<asp:Literal ID="LtlRecepcionUsados" Text="Recepcion Usados" runat="server"> </asp:Literal></h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<asp:GridView ID="GvRecepcionUsadosModal" runat="server" GridLines="None" ShowHeaderWhenEmpty="true" CssClass="table table-hover table-striped ScrollAD mysmallbtn" Width="100%" data-sort="true" AutoGenerateColumns="False"
|
|
DataKeyNames="CvePSCargo,CveUM,Cargo">
|
|
<Columns>
|
|
<asp:BoundField DataField="CodigoPS" HeaderText="Producto/Servicio" ItemStyle-HorizontalAlign="Left" />
|
|
<asp:TemplateField HeaderText="Cantidad" ItemStyle-HorizontalAlign="Center">
|
|
<ItemTemplate>
|
|
<asp:TextBox ID="TxtCantidad" runat="server" Width="76px"></asp:TextBox>
|
|
<ajax:FilteredTextBoxExtender ID="FTBECantidad" runat="server" TargetControlID="TxtCantidad" FilterType="Custom, Numbers" ValidChars="." />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
</asp:GridView>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<asp:Button ID="BtnRecepcionUsados" OnClick="BtnRecepcionUsados_Click" runat="server" Text="Guardar" CssClass="btn btn-primary" ValidationGroup="VGMRecepcionUsados" />
|
|
<button type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
|
|
<div id="ModalDescuento" class="modal ADS fade" role="dialog" style="z-index: 1500">
|
|
<div class="modal-dialog">
|
|
<asp:UpdatePanel class="modal-content" runat="server" ID="UPPDescuento" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div class="modal-header ">
|
|
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
<h4 class="modal-title">
|
|
<asp:Label ID="LblTitulo1" runat="server" ClientIDMode="Static" Text="Descuento:" Style="display: none;"></asp:Label>
|
|
<asp:Label ID="LblTitulo2" runat="server" ClientIDMode="Static" Text="Amortización de Anticipos:" Style="display: none;"></asp:Label></h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<asp:HiddenField ID="HdnDescuento" runat="server" ClientIDMode="Static" Value="0" />
|
|
<asp:HiddenField ID="HdnDescuentoGeneral" runat="server" ClientIDMode="Static" Value="-1" />
|
|
<asp:HiddenField ID="HdnTipoDescuento" runat="server" ClientIDMode="Static" Value="-1" />
|
|
<table>
|
|
<tr>
|
|
<td>Monto Inicial</td>
|
|
<td>
|
|
<asp:Label ID="LblPrecio1" runat="server" ClientIDMode="Static" Text="0.00" Style="display: none;"></asp:Label>
|
|
<asp:Label ID="LblTotalPS1" runat="server" ClientIDMode="Static" Text="0.00" Style="display: none;"></asp:Label>
|
|
<asp:Label ID="LblSubTotal1" runat="server" ClientIDMode="Static" Text="0.00" Style="display: none;"></asp:Label>
|
|
<asp:Label ID="LblAmort" runat="server" ClientIDMode="Static" Text="0.00" Style="display: none;"></asp:Label>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Por Porcentaje</td>
|
|
<td>
|
|
<asp:TextBox ID="TxtPorDescP" runat="server" CausesValidation="true" ClientIDMode="Static" MaxLength="12" Text="0" ValidationGroup="GrpDescuentoP" Width="72px"></asp:TextBox>
|
|
<asp:CompareValidator ID="CVPorDescP" runat="server" ControlToValidate="TxtPorDescP" Display="None" ErrorMessage="El campo <b>''Descuento por Porcentaje''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico)." Operator="DataTypeCheck" Type="Currency" ValidationGroup="GrpDescuentoP"></asp:CompareValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCOPorDesP" runat="server" HighlightCssClass="vco" TargetControlID="CVPorDescP" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
<asp:RangeValidator ID="RVPorDesc" runat="server" Type="Double" MinimumValue="0" MaximumValue="999999999" ControlToValidate="TxtPorDescP" Display="None" ValidationGroup="GrpDescuentoP"></asp:RangeValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCEPorDesc" runat="server" HighlightCssClass="vco" TargetControlID="RVPorDesc" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
(%)
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Por Monto</td>
|
|
<td>
|
|
<asp:TextBox ID="TxtDescP" runat="server" CausesValidation="true" ClientIDMode="Static" MaxLength="12" Text="0" ValidationGroup="GrpDescuentoP" Width="72px"></asp:TextBox>
|
|
<asp:CompareValidator ID="CVDescP" runat="server" ControlToValidate="TxtDescP" Display="None" ErrorMessage="El campo <b>''Descuento por Monto''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico)." Operator="DataTypeCheck" Type="Currency" ValidationGroup="GrpDescuentoP"></asp:CompareValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCODesP" runat="server" HighlightCssClass="vco" TargetControlID="CVDescP" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
($)
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<b>
|
|
<asp:Label ID="LblTituloTipo1" runat="server" ClientIDMode="Static" Text="Descuento" Style="display: none;"></asp:Label>
|
|
<asp:Label ID="LblTituloTipo2" runat="server" ClientIDMode="Static" Text="Amortización" Style="display: none;"></asp:Label>
|
|
</b>
|
|
</td>
|
|
<td><b>
|
|
<asp:Label ID="LblDescuento" runat="server" ClientIDMode="Static" Text="0.00"></asp:Label></b></td>
|
|
</tr>
|
|
<tr>
|
|
<td>Monto Final</td>
|
|
<td>
|
|
<asp:Label ID="LblPrecioFinal" runat="server" ClientIDMode="Static" Text="0.00"></asp:Label>
|
|
</td>
|
|
</tr>
|
|
<tr id="TrMotivoDescuento" style="display: none;">
|
|
<td>Motivo</td>
|
|
<td>
|
|
<asp:TextBox ID="TxtMotivoDescuento" runat="server" TextMode="MultiLine"></asp:TextBox>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<asp:UpdatePanel runat="server">
|
|
<ContentTemplate>
|
|
<asp:Button ID="BtnAplicarDescP" runat="server" ClientIDMode="Static" OnClientClick="$('#ModalDescuento').modal('hide'); event.preventDefault();" Text="Aplicar" ValidationGroup="GrpDescuentoP" Style="display: none;" CssClass="btn btn-primary" />
|
|
<asp:Button ID="BtnAplicarDescG" runat="server" ClientIDMode="Static" Text="Aplicar" ValidationGroup="GrpDescuentoP" CssClass="btn btn-primary" />
|
|
<button type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="DivAnticipos" style="display: none; z-index: 5000;">
|
|
|
|
<table border="0" width="420px" cellpadding="0" cellspacing="1" style="border: solid 1px black; color: Black; background-color: White; width: 420px;">
|
|
<tr class="Titulos">
|
|
<td>Anticipos del Cliente: <asp:Literal ID="LtlCliente" runat="server"></asp:Literal>
|
|
</td>
|
|
<td width="28px" valign="bottom" style="height: 16px">
|
|
<asp:Image ID="ImgCerrar" runat="server" ImageUrl="/Imagenes/cerrarX.jpg" AlternateText=" " Style="cursor: pointer;" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2"> </td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2" style="text-align: center;">
|
|
|
|
<asp:UpdatePanel ID="UpAnticipos" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<asp:HiddenField ID="HdnAnticipos" runat="server" ClientIDMode="Static" Value="0" />
|
|
<asp:GridView ID="GVAnticipos" runat="server" AutoGenerateColumns="False" ClientIDMode="Static" EmptyDataText="No se encontraron Anticipos del Cliente"
|
|
ToolTip="Listado de Anticipos" CssClass="GVAnticipos table table-striped table-hover ScrollAD Widthall" data-height="300" Style="text-align: center;" GridLines="None"
|
|
DataKeyNames="ISTotal,Saldo,CveIE,Folio,Tipo,CveVenta,CveConceptoContable,CveConceptoContableAmor, TotalAnticipo, SubTotalAnticipo, IVAAnticipo, SubTotalAmortizacion">
|
|
<Columns>
|
|
<asp:TemplateField>
|
|
<ItemTemplate>
|
|
<asp:CheckBox ID="Chk" runat="server" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<HeaderTemplate>Folio</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlFactura" runat="server"></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<HeaderTemplate>Fecha</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlFecha" runat="server" Text='<%# Eval("Fecha", "{0:d}") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<HeaderTemplate>Saldo</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlAnticipos" runat="server" Text='<%# Eval("Saldo", "{0:N2}") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<HeaderTemplate>Auxiliar</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlAux" runat="server"></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<HeaderTemplate>Amort. Ant.</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:Label ID="LblTotalAnticipos" runat="server" ClientIDMode="Static" Text="0.00" Visible="false"></asp:Label>
|
|
<asp:TextBox ID="TxtAnticipo" runat="server" CausesValidation="true" MaxLength="12" Width="76px"></asp:TextBox>
|
|
<asp:CompareValidator ID="CVAmortAnti" runat="server" ControlToValidate="TxtAnticipo" Display="None" ErrorMessage="El campo <b>''Amortización de Anticipos''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico)." Operator="DataTypeCheck" Type="Currency"></asp:CompareValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCOAmortAnti" runat="server" HighlightCssClass="vco" TargetControlID="CVAmortAnti" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
<RowStyle CssClass="TextoAlterno" />
|
|
<AlternatingRowStyle CssClass="TextoAlterno" />
|
|
<HeaderStyle CssClass="Titulos" />
|
|
</asp:GridView>
|
|
<asp:Button ID="BtnAceptarAnticipos" runat="server" Text="Aceptar" OnClientClick="javascript:$('#DivAnticipos').hide();" class="btn btn-primary" />
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
<div id="ModalOtrosConceptos" class="modal ADS fade" role="dialog">
|
|
<div class="modal-dialog">
|
|
|
|
<div class="modal-content">
|
|
<div class="modal-header ">
|
|
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
<h4 class="modal-title">
|
|
<asp:Label runat="server" Text="Conceptos Especiales"></asp:Label>
|
|
</h4>
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
<asp:UpdatePanel runat="server" ID="UpOtrosConceptos" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<asp:GridView ID="GVOtrosConceptos" runat="server" AutoGenerateColumns="False" ClientIDMode="Static" EmptyDataText="No se encontraron Otros Conceptos" DataKeyNames="CveConceptoContable, IdCtaContable, TipoMovto"
|
|
ToolTip="Listado de Anticipos" CssClass="GVAnticipos table table-striped table-hover ScrollAD Widthall" data-height="300" Style="text-align: center;" GridLines="None">
|
|
<Columns>
|
|
<asp:TemplateField>
|
|
<HeaderTemplate>Concepto</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlConcepto" runat="server" Text='<%# Eval("ConceptoContable") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<HeaderTemplate>Cantidad</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:TextBox ID="TxtCantidadConcepto" runat="server" CausesValidation="true" ClientIDMode="Static" MaxLength="12" Text='<%# Eval("Importe", "{0:N2}") %>' ValidationGroup="GrpDescuentoP" Width="72px"></asp:TextBox>
|
|
<asp:CompareValidator ID="CPFG" runat="server" ControlToValidate="TxtCantidadConcepto" Display="None" ErrorMessage="El campo <b>''Fondo de Garantía''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico)." Operator="DataTypeCheck" Type="Currency" ValidationGroup="GrpDescuentoP"></asp:CompareValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCEFG" runat="server" HighlightCssClass="vco" TargetControlID="CPFG" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
<RowStyle CssClass="TextoAlterno" />
|
|
<AlternatingRowStyle CssClass="TextoAlterno" />
|
|
<HeaderStyle CssClass="Titulos" />
|
|
</asp:GridView>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
<asp:UpdatePanel runat="server">
|
|
<ContentTemplate>
|
|
<asp:Button ID="BtnAplicarOtrosConceptos" runat="server" ClientIDMode="Static" Text="Aplicar" ValidationGroup="GrpDescuentoP" CssClass="btn btn-primary" />
|
|
<button type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="ModalComplementos" class="modal ADS fade" role="dialog">
|
|
<div class="modal-dialog" style="width: 470px; min-width: 470px;">
|
|
|
|
<div class="modal-content">
|
|
<div class="modal-header ">
|
|
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
<h4 class="modal-title">
|
|
<asp:Label runat="server" Text="Complementos de Timbrado"></asp:Label>
|
|
</h4>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="modal-body col-md-6" style="border-right: 1px solid lightgray;">
|
|
<asp:UpdatePanel runat="server" ID="UpComplementos" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<asp:RadioButtonList ID="RblComplementos" runat="server" AutoPostBack="true" CssClass="rbl" DataValueField="CveVentaComplemento" DataTextField="VentaComplemento" RepeatLayout="Table">
|
|
</asp:RadioButtonList>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
<div class="modal-body col-md-6">
|
|
<asp:UpdatePanel runat="server" ID="UpDatosComplementos" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<table>
|
|
<tr id="trTipoCampaña" runat="Server" visible="False">
|
|
<td>Tipo Campaña:</td>
|
|
<td>
|
|
<asp:DropDownList CssClass="form-control input-sm select2me" ID="DdlTipoCampaña" runat="server">
|
|
<asp:ListItem Text="Campaña" Value="Campaña" />
|
|
<asp:ListItem Text="Precampaña" Value="Precampaña" />
|
|
</asp:DropDownList>
|
|
</td>
|
|
</tr>
|
|
<tr id="trAmbito" runat="Server" visible="False">
|
|
<td>Ambito:</td>
|
|
<td>
|
|
<asp:DropDownList CssClass="form-control input-sm select2me" ID="DdlAmbitoComplemento" runat="server">
|
|
<asp:ListItem Text="Local" Value="Local" />
|
|
<asp:ListItem Text="Federal" Value="Federal" />
|
|
</asp:DropDownList>
|
|
</td>
|
|
</tr>
|
|
<tr id="trEntidad" runat="Server" visible="False">
|
|
<td>Entidad:</td>
|
|
<td>
|
|
<asp:DropDownList CssClass="form-control input-sm select2me" ID="DdlINEEntidad" runat="server" AutoPostBack="true">
|
|
<asp:ListItem Text="AGU" Value="AGU" />
|
|
<asp:ListItem Text="BCN" Value="BCN" />
|
|
<asp:ListItem Text="BCS" Value="BCS" />
|
|
<asp:ListItem Text="CAM" Value="CAM" />
|
|
<asp:ListItem Text="CHP" Value="CHP" />
|
|
<asp:ListItem Text="CHH" Value="CHH" />
|
|
<asp:ListItem Text="COA" Value="COA" />
|
|
<asp:ListItem Text="COL" Value="COL" />
|
|
<asp:ListItem Text="DIF" Value="DIF" />
|
|
<asp:ListItem Text="DUR" Value="DUR" />
|
|
<asp:ListItem Text="GUA" Value="GUA" />
|
|
<asp:ListItem Text="GRO" Value="GRO" />
|
|
<asp:ListItem Text="HID" Value="HID" />
|
|
<asp:ListItem Text="JAL" Value="JAL" />
|
|
<asp:ListItem Text="MEX" Value="MEX" />
|
|
<asp:ListItem Text="MIC" Value="MIC" />
|
|
<asp:ListItem Text="MOR" Value="MOR" />
|
|
<asp:ListItem Text="NAY" Value="NAY" />
|
|
<asp:ListItem Text="NLE" Value="NLE" />
|
|
<asp:ListItem Text="OAX" Value="OAX" />
|
|
<asp:ListItem Text="PUE" Value="PUE" />
|
|
<asp:ListItem Text="QTO" Value="QTO" />
|
|
<asp:ListItem Text="ROO" Value="ROO" />
|
|
<asp:ListItem Text="SLP" Value="SLP" />
|
|
<asp:ListItem Text="SIN" Value="SIN" />
|
|
<asp:ListItem Text="SON" Value="SON" />
|
|
<asp:ListItem Text="TAB" Value="TAB" />
|
|
<asp:ListItem Text="TAM" Value="TAM" />
|
|
<asp:ListItem Text="TLA" Value="TLA" />
|
|
<asp:ListItem Text="VER" Value="VER" />
|
|
<asp:ListItem Text="YUC" Value="YUC" />
|
|
<asp:ListItem Text="ZAC" Value="ZAC" />
|
|
</asp:DropDownList>
|
|
</td>
|
|
</tr>
|
|
<tr id="trContaComplementos" runat="Server" visible="False">
|
|
<td>Id Conta:</td>
|
|
<td>
|
|
<asp:TextBox ID="TxtIdConta" runat="server" MaxLength="6" Width="100px"></asp:TextBox>
|
|
<asp:RegularExpressionValidator ID="REVIdConta" runat="server" ControlToValidate="TxtIdConta" Display="None" ErrorMessage="El campo <b>''Id Conta''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico)." ValidationExpression="^([1-9]{1}[\d]{0,2}(\,[\d]{3})*(\.[\d]{0,4})?|[1-9]{1}[\d]{0,}(\.[\d]{0,4})?|0(\.[\d]{0,2})?|(\.[\d]{1,4})?)$" ValidationGroup="GrpComplementosTimbrado"></asp:RegularExpressionValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCEIdConta" runat="server" HighlightCssClass="vco" TargetControlID="REVIdConta" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
<asp:UpdatePanel runat="server">
|
|
<ContentTemplate>
|
|
<asp:Button ID="AplicarComplementosTimbrado" runat="server" ClientIDMode="Static" Text="Aplicar" ValidationGroup="GrpComplementosTimbrado" CssClass="btn btn-primary" />
|
|
<asp:Button ID="CancelarComplementosTimbrado" runat="server" ClientIDMode="Static" Text="Cancelar" CssClass="btn btn-danger" />
|
|
<button type="button" class="btn btn-danger" style="display: none;" data-dismiss="modal">Cancelar</button>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<%-- ******************************************** Corte de Caja *************************************************************************************************************************************** --%>
|
|
|
|
<asp:Button ID="btnShow" runat="server" Text="Show Modal Popup" Style="visibility: hidden; display: none;" />
|
|
<asp:Button ID="btnClose" runat="server" CssClass="btn btn-danger" Style="visibility: hidden; display: none;" Text="Cancelar" />
|
|
|
|
<!-- ModalPopupExtender -->
|
|
<cc1:ModalPopupExtender ID="mp1" runat="server" PopupControlID="PanelIniciarTurno" TargetControlID="btnShow"
|
|
CancelControlID="btnClose" BackgroundCssClass="modalBackground">
|
|
</cc1:ModalPopupExtender>
|
|
|
|
<asp:Panel ID="PanelIniciarTurno" runat="server" CssClass="modalPopup" align="center" Style="display: none">
|
|
|
|
<table border="0" width="250px" cellspacing="1" style="background-color: White; padding-left: 10px;">
|
|
<tr style="background-color: #3598dc; color: #FFFFFF; font-size: 14px">
|
|
<td>Inicio de Turno </td>
|
|
<td></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="1"> </td>
|
|
<td colspan="1"> </td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="1">
|
|
<asp:Label runat="server" Text="Dinero En Caja:" Font-Bold="true" Width="120px" />
|
|
</td>
|
|
<td colspan="1">
|
|
<asp:TextBox ID="TxtDineroCaja" runat="server" Width="170px" onkeyup="javascript:this.value=Comma(this.value);" />
|
|
<asp:RegularExpressionValidator ID="REVCaja" runat="server" ControlToValidate="TxtDineroCaja" Display="None" ErrorMessage="El campo <b>''Dinero''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico)." ValidationExpression="^([1-9]{1}[\d]{0,2}(\,[\d]{3})*(\.[\d]{0,4})?|[1-9]{1}[\d]{0,}(\.[\d]{0,4})?|0(\.[\d]{0,2})?|(\.[\d]{1,4})?)$" ValidationGroup="GprIniciarTruno"></asp:RegularExpressionValidator>
|
|
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender1" runat="server" HighlightCssClass="vco" TargetControlID="REVCaja" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="1">
|
|
<asp:Label runat="server" Text="Descripción:" Font-Bold="true" Width="120px" />
|
|
</td>
|
|
<td colspan="1">
|
|
<asp:TextBox runat="server" ID="TxtDescripcionCaja" TextMode="MultiLine" Width="170px" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="1"> </td>
|
|
<td colspan="1"> </td>
|
|
</tr>
|
|
</table>
|
|
<asp:Button ID="BtnIniciarTurno" runat="server" CssClass="btn btn-success" Text="Iniciar Turno" ValidationGroup="GprIniciarTruno" />
|
|
|
|
<asp:Button ID="BtnCancelar" runat="server" CssClass="btn btn-danger" Text="Cancelar" />
|
|
|
|
</asp:Panel>
|
|
<!-- ModalPopupExtender -->
|
|
|
|
<div id="DivEstadoCaja" class="modal ADS fade" role="dialog">
|
|
<div class="modal-dialog" style="width: 470px; min-width: 470px;">
|
|
<div class="modal-content">
|
|
<div class="modal-header ">
|
|
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
<h4 class="modal-title">
|
|
<asp:Label runat="server" Text="Estado de Caja"></asp:Label>
|
|
</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<asp:UpdatePanel ID="UpDineroCaja" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<b>Dinero en Caja</b>
|
|
<asp:GridView ID="GvDineroCaja" BorderWidth="0px" ShowHeader="False" runat="server" Height="200px" horizontal-align="Right" vertical-align="Top" GridLines="None" ShowHeaderWhenEmpty="False" AutoGenerateColumns="False" EmptyDataText="">
|
|
<Columns>
|
|
<asp:BoundField ItemStyle-Font-Bold="true" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="150px" />
|
|
<asp:TemplateField ItemStyle-HorizontalAlign="Right" ItemStyle-Width="150px">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlDescripcion" runat="server" Text='<%# Eval("Descripcion") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
<Columns>
|
|
<asp:BoundField DataFormatString="{0}:" ItemStyle-Font-Bold="true" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="150px" />
|
|
<asp:TemplateField ItemStyle-HorizontalAlign="Right" ItemStyle-Width="150px">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtImporte" runat="server" Text='<%# Eval("Importe", "{0:N2}") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
</asp:GridView>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
<asp:UpdatePanel ID="UpMetodosPago" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<b>Metodos de Pago</b>
|
|
<asp:GridView ID="GvMetodosPago" BorderWidth="0px" ShowHeader="False" runat="server" Height="200px" horizontal-align="Right" vertical-align="Top" DataKeyNames="CveTipoTransaccion" GridLines="None" ShowHeaderWhenEmpty="False" AutoGenerateColumns="False" EmptyDataText="">
|
|
<Columns>
|
|
<asp:BoundField ItemStyle-Font-Bold="true" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="150px" />
|
|
<asp:TemplateField ItemStyle-HorizontalAlign="Right" ItemStyle-Width="150px">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlTipoTransaccion" runat="server" Text='<%# Eval("TipoTransaccion") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
<Columns>
|
|
<asp:BoundField DataFormatString="{0}:" ItemStyle-Font-Bold="true" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="150px" />
|
|
<asp:TemplateField ItemStyle-HorizontalAlign="Right" ItemStyle-Width="150px">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtImporte" runat="server" Text='<%# Eval("Importe", "{0:N2}") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
</asp:GridView>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
<asp:UpdatePanel ID="UpIngresos" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<b>Ingresos</b>
|
|
<asp:GridView ID="GvIngresos" BorderWidth="0px" ShowHeader="False" runat="server" horizontal-align="Right" vertical-align="Top" GridLines="None" ShowHeaderWhenEmpty="False" AutoGenerateColumns="False" EmptyDataText="">
|
|
<Columns>
|
|
<asp:BoundField ItemStyle-Font-Bold="true" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="150px" />
|
|
<asp:TemplateField ItemStyle-HorizontalAlign="Right" ItemStyle-Width="150px">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlDescripcion" runat="server" Text='<%# Eval("Descripcion") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
<Columns>
|
|
<asp:BoundField DataFormatString="{0}:" ItemStyle-Font-Bold="true" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="150px" />
|
|
<asp:TemplateField ItemStyle-HorizontalAlign="Right" ItemStyle-Width="150px">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtImporte" runat="server" Text='<%# Eval("Importe", "{0:N2}") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
</asp:GridView>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
<asp:UpdatePanel ID="UpEgresos" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<b>Retiros</b>
|
|
<asp:GridView ID="GvEgresos" BorderWidth="0px" ShowHeader="False" runat="server" horizontal-align="Right" vertical-align="Top" GridLines="None" ShowHeaderWhenEmpty="False" AutoGenerateColumns="False" EmptyDataText="">
|
|
<Columns>
|
|
<asp:BoundField ItemStyle-Font-Bold="true" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="150px" />
|
|
<asp:TemplateField ItemStyle-HorizontalAlign="Right" ItemStyle-Width="150px">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlTipoTransaccion" runat="server" Text='<%# Eval("Descripcion") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
<Columns>
|
|
<asp:BoundField DataFormatString="{0}:" ItemStyle-Font-Bold="true" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="150px" />
|
|
<asp:TemplateField ItemStyle-HorizontalAlign="Right" ItemStyle-Width="150px">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtImporte" runat="server" Text='<%# Eval("Importe", "{0:N2}") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
</asp:GridView>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<asp:UpdatePanel runat="server">
|
|
<ContentTemplate>
|
|
<asp:Button OnClick="BtnCerrarCaja_Click" ID="BtnCerrarCaja" runat="server" Text="Cerrar Turno" CssClass="btn btn-success" />
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="DivTerminarCorte" class="modal ADS fade" role="dialog">
|
|
<asp:UpdatePanel ID="UpTerminarCorte" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div class="modal-dialog" style="width: 470px; min-width: 470px;">
|
|
<div class="modal-content">
|
|
<div class="modal-header ">
|
|
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
<h4 class="modal-title">
|
|
<asp:Label runat="server" Text="Cierre de Turno"></asp:Label>
|
|
</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:Label ID="LblEfectivoEsperado" CssClass="form-control" runat="server"></asp:Label>
|
|
<label for="<%= LblEfectivoEsperado.ClientID.ToString()%>">Efectivo Esperado:</label>
|
|
</div>
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:TextBox ID="TxtEfectivoEnCaja" CssClass="form-control" runat="server" onkeyup="javascript:this.value=Comma(this.value);" />
|
|
<asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="TxtEfectivoEnCaja" Display="None" ErrorMessage="El campo <b>''Dinero''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico)." ValidationExpression="^([1-9]{1}[\d]{0,2}(\,[\d]{3})*(\.[\d]{0,4})?|[1-9]{1}[\d]{0,}(\.[\d]{0,4})?|0(\.[\d]{0,2})?|(\.[\d]{1,4})?)$" ValidationGroup="GprCorteCaja"></asp:RegularExpressionValidator>
|
|
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender4" runat="server" HighlightCssClass="vco" TargetControlID="RegularExpressionValidator2" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
<label for="<%= TxtEfectivoEnCaja.ClientID.ToString()%>">Efectivo en Caja:</label>
|
|
</div>
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<label for="<%= LblEfectivoEsperado.ClientID.ToString()%>">Diferencia:</label>
|
|
<asp:Label ID="LblDiferenciaCaja" CssClass="form-control" runat="server" TextMode="MultiLine" Width="500px"></asp:Label>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<asp:UpdatePanel runat="server">
|
|
<ContentTemplate>
|
|
<asp:Button ID="BtnCerrarTurno" runat="server" CssClass="btn btn-success" Text="Cerrar Turno" ValidationGroup="GprCorteCaja" />
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
|
|
<div id="DivIngresoEgreso" class="modal ADS fade" role="dialog">
|
|
<div class="modal-dialog" style="width: 470px; min-width: 470px;">
|
|
<div class="modal-content">
|
|
<asp:UpdatePanel ID="UpIngresoEgreso" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<asp:HiddenField ID="HdnTipoMovimiento" runat="server" ClientIDMode="Static" Value="-1" />
|
|
<div class="modal-header ">
|
|
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
<h4 class="modal-title">
|
|
<asp:Label runat="server" ID="LblTituloIE" Text="" />
|
|
</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:TextBox ID="TxtCantidadIE" CssClass="form-control" runat="server" Width="170px" />
|
|
<asp:RegularExpressionValidator ID="REVCantidadIE" runat="server" ControlToValidate="TxtCantidadIE" Display="None" ErrorMessage="El campo <b>''Dinero''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico)." ValidationExpression="^([1-9]{1}[\d]{0,2}(\,[\d]{3})*(\.[\d]{0,4})?|[1-9]{1}[\d]{0,}(\.[\d]{0,4})?|0(\.[\d]{0,2})?|(\.[\d]{1,4})?)$" ValidationGroup="GprIngresoEgreso"></asp:RegularExpressionValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCECantidadIE" runat="server" HighlightCssClass="vco" TargetControlID="REVCantidadIE" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
<label for="<%= TxtCantidadIE.ClientID.ToString()%>">Cantidad:</label>
|
|
</div>
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<label for="<%= TxtDescripcionIE.ClientID.ToString()%>">Descripcion:</label>
|
|
<asp:TextBox runat="server" ID="TxtDescripcionIE" CssClass="form-control" TextMode="MultiLine" Width="500px" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<asp:UpdatePanel runat="server">
|
|
<ContentTemplate>
|
|
<asp:Button ID="BtnAceptarIE" runat="server" CssClass="btn btn-success" Text="Aceptar" ValidationGroup="GprIngresoEgreso" />
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<%-- ************************************************************************************************************************************************************************************************* --%>
|
|
|
|
<%-- ******** Contratos ***************************************************************************************************************************************************************************** --%>
|
|
|
|
<asp:Button ID="BtnMostrarContrato" runat="server" Style="visibility: hidden; display: none;" />
|
|
<asp:Button ID="BtnCerrarContrato" runat="server" CssClass="btn btn-danger" Style="visibility: hidden; display: none;" />
|
|
|
|
<!-- ModalPopupExtender -->
|
|
<cc1:ModalPopupExtender ID="MPContrato" runat="server" PopupControlID="PanelContrato" TargetControlID="BtnMostrarContrato"
|
|
CancelControlID="BtnCerrarContrato" BackgroundCssClass="modalBackground">
|
|
</cc1:ModalPopupExtender>
|
|
<asp:Panel ID="PanelContrato" runat="server" CssClass="modalPopup" align="center" Style="display: none; padding: 10px;">
|
|
|
|
<asp:UpdatePanel ID="UpContratos" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div id="AccionContrato" runat="server">
|
|
<p>
|
|
El Cliente tiene contratos vigentes.
|
|
<br />
|
|
¿La venta esta relacionada al contrato?
|
|
</p>
|
|
|
|
<asp:RadioButtonList ID="RblOpcionContrato" runat="server" CssClass="rbl" RepeatDirection="Horizontal" RepeatLayout="Table">
|
|
<asp:ListItem Text="Si" Value="2"></asp:ListItem>
|
|
<asp:ListItem Text="No" Value="1"></asp:ListItem>
|
|
</asp:RadioButtonList>
|
|
|
|
<asp:LinkButton ID="BtnIniciarContrato" runat="server" CssClass="btn btn-success" Text="Aceptar" />
|
|
|
|
</div>
|
|
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
</asp:Panel>
|
|
|
|
<%-- MODAL Precio --%>
|
|
<div id="ModalBuscarPrecio" 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">Buscar Precio</h4>
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
<asp:UpdatePanel runat="server" ID="UpBuscarPrecio" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<%-- >--%>
|
|
<asp:Panel ID="PABP" runat="server" DefaultButton="btnBuscarPrecio">
|
|
<div class="row">
|
|
<div class="text-right">
|
|
<asp:Button ID="btnBuscarPrecio" runat="server" ClientIDMode="Static" Text="Buscar" CssClass="btn btn-primary" />
|
|
|
|
</div>
|
|
<div class="col-sm-3">Codigo</div>
|
|
<div class="col-sm-8">
|
|
<asp:TextBox ID="TxtBPCodigo" runat="server"></asp:TextBox>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-sm-3">Codigo Barras</div>
|
|
<div class="col-sm-8">
|
|
<asp:TextBox ID="TxtBPCodigoBarras" runat="server"></asp:TextBox>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-sm-3">Nombre</div>
|
|
<div class="col-sm-8">
|
|
<ADS:Dropdownlost runat="server" ID="DdlBPPS" CssStyle="width: 100%;" CssClassDdl="select2me" DataTextField="PSCodigo" DataValueField="CvePS" />
|
|
</div>
|
|
</div>
|
|
</asp:Panel>
|
|
<asp:GridView ID="GVBuscarPrecio" runat="server" AutoGenerateColumns="False" EmptyDataText="No se han Encontrado Productos y servicios" CssClass="table table-striped table-advance ScrollAD table-hover" data-height="300" Style="max-width: 600px;" GridLines="None">
|
|
<Columns>
|
|
<asp:TemplateField>
|
|
<HeaderTemplate>Producto o Servició</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<div style="width: 460px">
|
|
<asp:Literal ID="LtlFecha" runat="server" Text='<%# Eval("PS") %>'></asp:Literal>
|
|
</div>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<HeaderTemplate>Precio</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlFecha" runat="server" Text='<%# Eval("Importe", "{0:C}") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
</asp:GridView>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<asp:UpdatePanel runat="server">
|
|
<ContentTemplate>
|
|
<button type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
|
|
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<%-- FIN MODAL Precio --%>
|
|
|
|
<div class="modal fade" id="Aceptar" tabindex="-1" role="basic" aria-hidden="true">
|
|
<div class="modal-dialog">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
|
|
<h4 class="modal-title">Nombre del contrato:</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<asp:TextBox ID="TxtNombreContrato" runat="server" ClientIDMode="Static" MaxLength="50"></asp:TextBox>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn default" data-dismiss="modal">Cerrar</button>
|
|
<asp:LinkButton ID="LnkContratoAcptar" CssClass="btn blue" runat="server" Text="<i class='fa fa-check'></i>Guardar"></asp:LinkButton>
|
|
</div>
|
|
</div>
|
|
<!-- /.modal-content -->
|
|
</div>
|
|
<!-- /.modal-dialog -->
|
|
</div>
|
|
|
|
<div class="modal fade" id="DivRemisiones" role="dialog" tabindex="-1" aria-labelledby="RemisionesLabel" aria-hidden="true">
|
|
<div class="modal-dialog">
|
|
<asp:UpdatePanel ID="UpRemisionesFacturas" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
|
|
<h4 class="modal-title">Remisiones Por Facturar</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<asp:DropDownList runat="server" ID="DdlFiltroContrato" AutoPostBack="true" CssClass=" form-control input-sm select2me text-left" Width="400px" DataTextField="ContratoCompleto" DataValueField="CveContrato" />
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<asp:RadioButtonList ID="RblTipo" runat="server" RepeatDirection="Horizontal" CssClass="input-group col-md-12" CellSpacing="100">
|
|
<asp:ListItem Value="1" Class="one" Selected="True"><label><b>Total General</b></label></asp:ListItem>
|
|
<asp:ListItem Value="2" Class="one"><label><b>Total x Remisión</b></label></asp:ListItem>
|
|
<asp:ListItem Value="3" Class="one" Selected="True"><label><b>Total x Concepto</b></label></asp:ListItem>
|
|
</asp:RadioButtonList>
|
|
</div>
|
|
</div>
|
|
<div style="max-height: 300px; overflow-y: auto;">
|
|
<asp:GridView ID="GvRem" runat="server" AutoGenerateColumns="false" GridLines="None"
|
|
CssClass="table table-grid table-striped table-advance table-hover Widthall"
|
|
DataKeyNames="CveVenta, SubTotal, IVA,Total" AllowPaging="False">
|
|
<Columns>
|
|
<asp:TemplateField>
|
|
<ItemTemplate>
|
|
<asp:CheckBox ID="Chk" runat="server" Checked='<%#If(Eval("Aplicado").ToString <> "", CBool(Eval("Aplicado").ToString), False)%>' />
|
|
</ItemTemplate>
|
|
<ItemStyle Width="8px" HorizontalAlign="Center" />
|
|
<ControlStyle Width="8px" />
|
|
</asp:TemplateField>
|
|
<asp:HyperLinkField HeaderText="Folio" Target="_blank" DataNavigateUrlFields="CveVenta" DataNavigateUrlFormatString="/Ventas/Ventas.aspx?CveVenta={0}" DataTextField="Folio" ItemStyle-HorizontalAlign="Left" />
|
|
<asp:BoundField HeaderText="Fecha" DataField="Fecha" DataFormatString="{0:d}" ItemStyle-HorizontalAlign="Center" />
|
|
<asp:BoundField HeaderText="SubTotal" DataField="SubTotal" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
|
<asp:BoundField HeaderText="IVA" DataField="Iva" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
|
<asp:BoundField HeaderText="Total" DataField="Total" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
|
</Columns>
|
|
</asp:GridView>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<asp:Button ID="BtnGuardarRemisiones" runat="server" CssClass="btn btn-primary" Text="Guardar" />
|
|
<button type="button" class="btn default" data-dismiss="modal">Cerrar</button>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
|
|
<%-- Agregar un Nuevo CLiente --%>
|
|
<div id="divAgregarCliente" class="modal fade">
|
|
<div class="modal-dialog" style="max-height: 500px; max-width: 500px;">
|
|
<asp:UpdatePanel ID="UpAgregarCliente" class="modal-content rowpadding" tabindex="-1" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<fieldset>
|
|
<%--<legend><b>Descripción</b></legend>--%>
|
|
<table border="0" class="portlet light bordered">
|
|
<tr>
|
|
<div class="portlet-title">
|
|
<div class="caption font-green">
|
|
<i class="fa fa-users font-green"></i>
|
|
<span class="caption-subject bold uppercase">Datos del Cliente</span>
|
|
</div>
|
|
<div class="actions">
|
|
<div class="btn-group">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</tr>
|
|
<tr>
|
|
<div class="row" style="padding-left: 16px;">
|
|
<div class="form-group form-md-line-input input-iconright col-xs-9">
|
|
<asp:TextBox ID="TxtRFCCliente" Text="XAXX010101000" Style="text-transform: uppercase;" placeholder="Ingrese el RFC para su validación" runat="server" CssClass="form-control" MaxLength="13" CausesValidation="true"></asp:TextBox>
|
|
<asp:RegularExpressionValidator ID="REVRFCCliente" runat="server" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''RFC''</b> es incorrecto, por favor ingréselo." ValidationGroup="GrpGuardarCliente" ControlToValidate="TxtRFCCliente" ValidationExpression="^[a-zA-Z.)(/\\&-]{3,4}(\d{6})((\D|\d){2})((\D|\d){1})$"></asp:RegularExpressionValidator>
|
|
<label for="<%= TxtRFCCliente.ClientID.ToString()%>">RFC:</label>
|
|
</div>
|
|
<div class="form-group form-md-line-input input-iconright col-xs-3">
|
|
<asp:Button ID="BtnValidarRFC" runat="server" CssClass="btn btn-success" Text="Validar" />
|
|
</div>
|
|
</div>
|
|
<div id="DivNombreCliente" runat="server" visible="false" class="form-group form-md-line-input input-iconright">
|
|
<asp:TextBox ID="TxtNombreCliente" CssClass="form-control " runat="server" MaxLength="50" CausesValidation="true"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVNombreCliente" runat="server" ControlToValidate="TxtNombreCliente" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Nombre''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardarCliente"></asp:RequiredFieldValidator>
|
|
<label for="<%= TxtNombreCliente.ClientID.ToString()%>">Razón Social:</label>
|
|
</div>
|
|
<div id="DivDireccionCliente" runat="server" visible="false" class="form-group form-md-line-input input-iconright">
|
|
<asp:TextBox ID="TxtDireccionCliente" CssClass="form-control " runat="server" MaxLength="90" CausesValidation="true"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVDireccionC" runat="server" ControlToValidate="TxtDireccionCliente" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Direccion''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardarCliente"></asp:RequiredFieldValidator>
|
|
<label for="<%= TxtDireccionCliente.ClientID.ToString()%>">Dirección:</label>
|
|
</div>
|
|
<div id="DivNumeroCPCliente" runat="server" visible="false" class="row" style="padding-left: 16px;">
|
|
<div class="form-group form-md-line-input input-iconright col-xs-4">
|
|
<asp:TextBox ID="TxtCPCliente" CssClass="form-control " runat="server" MaxLength="5" CausesValidation="true"></asp:TextBox>
|
|
<label for="<%= TxtCPCliente.ClientID.ToString()%>">Código Postal:</label>
|
|
</div>
|
|
<div class="form-group form-md-line-input input-iconright col-xs-4">
|
|
<asp:TextBox ID="TxtNumExtCliente" CssClass="form-control " runat="server" MaxLength="20" CausesValidation="true"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVNoEC" runat="server" ControlToValidate="TxtNumExtCliente" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Número Exterior''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardarCliente"></asp:RequiredFieldValidator>
|
|
<label for="<%= TxtNumExtCliente.ClientID.ToString()%>">Número Exterior:</label>
|
|
</div>
|
|
<div class="form-group form-md-line-input input-iconright col-xs-4">
|
|
<asp:TextBox ID="TxtNumIntCliente" CssClass="form-control " runat="server" MaxLength="20" CausesValidation="true"></asp:TextBox>
|
|
<label for="<%= TxtNumIntCliente.ClientID.ToString()%>">Número Interior:</label>
|
|
</div>
|
|
</div>
|
|
<div id="DivColoniaTelefonoCliente" runat="server" visible="false" class="row" style="padding-left: 16px;">
|
|
<div class="form-group form-md-line-input input-iconright col-xs-6">
|
|
<asp:TextBox ID="TxtColoniaCliente" CssClass="form-control " runat="server" MaxLength="50" CausesValidation="true"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVColoniaC" runat="server" ControlToValidate="TxtColoniaCliente" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Colonia''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardarCliente"></asp:RequiredFieldValidator>
|
|
<label for="<%= TxtColoniaCliente.ClientID.ToString()%>">Colonia:</label>
|
|
</div>
|
|
<div class="form-group form-md-line-input input-iconright col-xs-6">
|
|
<asp:TextBox ID="TxtTelefonoCliente" CssClass="form-control " runat="server" MaxLength="10" CausesValidation="true"></asp:TextBox>
|
|
<label for="<%= TxtTelefonoCliente.ClientID.ToString()%>">Teléfono:</label>
|
|
</div>
|
|
</div>
|
|
<div id="DivCiudadLocalidadCliente" runat="server" visible="false" class="row" style="padding-left: 16px;">
|
|
<div class="form-group form-md-line-input input-iconright col-xs-6">
|
|
<asp:TextBox ID="TxtCiudadCliente" CssClass="form-control " runat="server" MaxLength="50" CausesValidation="true"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVCiudadC" runat="server" ControlToValidate="TxtCiudadCliente" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Ciudad''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardarCliente"></asp:RequiredFieldValidator>
|
|
<label for="<%= TxtCiudadCliente.ClientID.ToString()%>">Ciudad:</label>
|
|
</div>
|
|
<div class="form-group form-md-line-input input-iconright col-xs-6">
|
|
<asp:TextBox ID="TxtLocalidadCliente" CssClass="form-control " runat="server" MaxLength="50" CausesValidation="true"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVLocalidadC" runat="server" ControlToValidate="TxtLocalidadCliente" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Localidad''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardarCliente"></asp:RequiredFieldValidator>
|
|
<label for="<%= TxtLocalidadCliente.ClientID.ToString()%>">Localidad:</label>
|
|
</div>
|
|
</div>
|
|
<div id="DivEstadoPaisCliente" runat="server" visible="false" class="row" style="padding-left: 16px;">
|
|
<div class="form-group form-md-line-input input-iconright col-xs-6">
|
|
<asp:TextBox ID="TxtEstadoCliente" CssClass="form-control " runat="server" MaxLength="35" CausesValidation="true"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVEstadoC" runat="server" ControlToValidate="TxtEstadoCliente" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Estado''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardarCliente"></asp:RequiredFieldValidator>
|
|
<label for="<%= TxtEstadoCliente.ClientID.ToString()%>">Estado:</label>
|
|
</div>
|
|
<div class="form-group form-md-line-input input-iconright col-xs-6">
|
|
<asp:TextBox ID="TxtPaisCliente" CssClass="form-control " Text="Mexico" runat="server" MaxLength="50" CausesValidation="true"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVPaisC" runat="server" ControlToValidate="TxtPaisCliente" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''País''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardarCliente"></asp:RequiredFieldValidator>
|
|
<label for="<%= TxtPaisCliente.ClientID.ToString()%>">País:</label>
|
|
</div>
|
|
</div>
|
|
<div id="DivCorreoCuentaCliente" runat="server" visible="false" class="row" style="padding-left: 16px;">
|
|
<div class="form-group form-md-line-input input-iconright col-xs-6">
|
|
<asp:TextBox ID="TxtCorreoCliente" CssClass="form-control" runat="server" MaxLength="300" CausesValidation="true"></asp:TextBox>
|
|
<label for="<%= TxtCorreoCliente.ClientID.ToString()%>">Email: </label>
|
|
<i></i>
|
|
</div>
|
|
<div class="form-group form-md-line-input input-iconright col-xs-6">
|
|
</div>
|
|
</div>
|
|
<div id="DivFormaCliente" runat="server" visible="false" class="row" style="padding-left: 16px;">
|
|
<div class="form-group form-md-line-input input-iconright col-xs-6">
|
|
<asp:DropDownList ID="DdlMetodoCliente" runat="server" CssClass=" form-control input-sm select2me" AppendDataBoundItems="true" CausesValidation="true" DataTextField="MetodoPagoSAT" DataValueField="CveMetodoPago" Width="200px">
|
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="DdlMetodoCliente" InitialValue="-1" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Método Pago''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardarCliente"></asp:RequiredFieldValidator>
|
|
<label for="<%= DdlMetodoCliente.ClientID.ToString()%>">Método Pago:</label>
|
|
</div>
|
|
<div class="form-group form-md-line-input input-iconright col-xs-6">
|
|
<asp:DropDownList ID="DdlFormaCliente" CssClass=" form-control input-sm select2me" runat="server" AppendDataBoundItems="true" CausesValidation="true" DataTextField="FormaPagoSAT" DataValueField="CveFormaPago" Width="200px">
|
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="DdlMetodoCliente" InitialValue="-1" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Forma Pago''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardarCliente"></asp:RequiredFieldValidator>
|
|
<label for="<%= DdlFormaCliente.ClientID.ToString()%>">Forma Pago: </label>
|
|
<i></i>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</tr>
|
|
</table>
|
|
</fieldset>
|
|
<div id="DivBotonesAgregarCliente" runat="server" visible="false" class="modal-footer">
|
|
<asp:Button ID="BtnAgregarCliente" runat="server" CssClass="btn btn-primary" Text="Agregar" ValidationGroup="GrpGuardarCliente" />
|
|
<button id="BtnCancelarCliente" runat="server" type="button" class="btn default" data-dismiss="modal">Cancelar</button>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="modal fade" id="DivMetodoPago" role="dialog" tabindex="-1" aria-labelledby="MetodoPagoLabel" aria-hidden="true">
|
|
<div class="modal-dialog">
|
|
<asp:UpdatePanel ID="UpDivMetodoPago" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div class="modal-content">
|
|
<div class="modal-body magindate">
|
|
<div class="portlet light smmallpadding bordered">
|
|
<div class="portlet-title">
|
|
<div class="caption font-green">
|
|
<i class="icon-pin font-green"></i>
|
|
<span class="caption-subject bold uppercase">Forma de Pago</span>
|
|
</div>
|
|
<div class="tools">
|
|
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body nomarginleftright form-horizontal form-row-sepe formnombottom">
|
|
<div class="form-body">
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="row">
|
|
<div class="col-md-1 truncate" style="min-width: 82px"><b>Cliente:</b></div>
|
|
<div class="col-md-10">
|
|
<asp:TextBox ID="TxtMPCliente" runat="server" ReadOnly="true" CssClass="form-control input-sm"></asp:TextBox>
|
|
</div>
|
|
</div>
|
|
<br />
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<div class="row">
|
|
<div class="col-md-1 truncate" style="min-width: 82px"><b>Clave:</b></div>
|
|
<div class="col-md-8">
|
|
<asp:TextBox ID="TxtMPClave" runat="server" TextMode="Number" AutoPostBack="true" CssClass="form-control input-sm"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVClave" runat="server" ControlToValidate="TxtMPClave" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Clave''</b> es necesario, por favor ingréselo." ValidationGroup="GrpMPPagar"></asp:RequiredFieldValidator>
|
|
<asp:CompareValidator ID="CVClave" runat="server" ControlToValidate="TxtMPClave" Display="None" ErrorMessage="El campo <b>''Clave''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico)." Operator="DataTypeCheck" Type="Currency" ValidationGroup="GrpMPPagar"></asp:CompareValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCEClave" runat="server" HighlightCssClass="vco" TargetControlID="RFVClave" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<div class="row">
|
|
<div class="col-md-1 truncate" style="min-width: 82px"><b>Cuenta:</b></div>
|
|
<div class="col-md-8">
|
|
<asp:DropDownList ID="DdlMPCuentaBancaria" runat="server" CssClass="form-control input-sm select2me" AppendDataBoundItems="true" AutoPostBack="true" DataTextField="NumCuentaMoneda" DataValueField="CveCuenta" Width="100%"></asp:DropDownList>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<br />
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<div class="row">
|
|
<div class="col-md-1 truncate" style="min-width: 82px"><b>Importe:</b></div>
|
|
<div class="col-md-8">
|
|
<asp:TextBox ID="TxtMPImporte" runat="server" MaxLength="12" CssClass="form-control input-sm" ClientIDMode="Static" Style="text-align: left;" onkeyup="FormatoMoneda(this)" AutoComplete="off"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVMPImporte" runat="server" ControlToValidate="TxtMPImporte" 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="GrpMPPagar"></asp:RequiredFieldValidator>
|
|
<asp:CompareValidator ID="CVMPImporte" runat="server" ControlToValidate="TxtMPImporte" Display="None" ErrorMessage="El campo <b>''Importe''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico)." Operator="DataTypeCheck" Type="Currency" ValidationGroup="GrpMPPagar"></asp:CompareValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCEMPImporte" runat="server" HighlightCssClass="vco" TargetControlID="RFVMPImporte" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<div class="row">
|
|
<div class="col-md-1 truncate" style="min-width: 82px"><b>Total:</b></div>
|
|
<div class="col-md-8">
|
|
<asp:TextBox ID="TxtMPTotal" ReadOnly="true" runat="server" CssClass="form-control input-sm"></asp:TextBox>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<br />
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<div class="row">
|
|
<div class="col-md-1 truncate" style="min-width: 82px"><b>Pagado:</b></div>
|
|
<div class="col-md-8">
|
|
<asp:TextBox ID="TxtMPPagado" ReadOnly="true" runat="server" CssClass="form-control input-sm"></asp:TextBox>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<div class="row">
|
|
<div class="col-md-1 truncate" style="min-width: 82px"><b>Resta:</b></div>
|
|
<div class="col-md-8">
|
|
<asp:TextBox ID="TxtMPResta" ReadOnly="true" runat="server" CssClass="form-control input-sm"></asp:TextBox>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="portlet light smmallpadding bordered">
|
|
<div class="portlet-title">
|
|
<div class="caption font-green">
|
|
<i class="icon-pin font-green"></i>
|
|
<span class="caption-subject bold uppercase">Metodos de Pago</span>
|
|
</div>
|
|
<div class="tools">
|
|
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body nomarginleftright form-horizontal form-row-sepe formnombottom">
|
|
<div class="form-body">
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div style="max-height: 300px; overflow-y: auto;">
|
|
<asp:GridView ID="GvMP" runat="server" AutoGenerateColumns="false" GridLines="None"
|
|
CssClass="table table-grid table-striped table-advance table-hover Widthall"
|
|
AllowPaging="False">
|
|
<Columns>
|
|
<asp:BoundField HeaderText="Clave" DataField="CveTipoMovimiento" />
|
|
<asp:BoundField HeaderText="Metodo de Pago" DataField="TipoMovimiento" />
|
|
<asp:BoundField HeaderText="Importe" DataField="Importe" DataFormatString="{0:n}" />
|
|
</Columns>
|
|
</asp:GridView>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<asp:Button ID="BtnPagar" runat="server" CssClass="btn btn-primary" Text="Pagar" ValidationGroup="GrpMPPagar" />
|
|
<asp:Button ID="BtnCancelarPago" runat="server" CssClass="btn btn-danger" Text="Cancelar Pago" />
|
|
<asp:Button ID="TerminarPago" runat="server" CssClass="btn btn-success" Text="Terminar" />
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div id="DivAddVenta" class="modal ADS fade" role="dialog">
|
|
<asp:UpdatePanel ID="UpModalVenta" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div runat="server" id="DivModalVenta" class="modal-dialog">
|
|
<asp:UpdatePanel ID="UpVenta" class="modal-content" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<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="myModalLabelVenta">Registrar Venta</h4>
|
|
</div>
|
|
<div class="modal-body" onkeydown="return (event.keyCode!=13)">
|
|
<div class="row">
|
|
<div id="DivDatosVenta" runat="server" class="col-md-12">
|
|
<div class="portlet light xspadding bordered">
|
|
<div class="portlet-title">
|
|
<div class="caption font-green">
|
|
<i class="icon-pin font-green"></i>
|
|
<span class="caption-subject bold uppercase">Datos de Registro </span>
|
|
</div>
|
|
<div class="tools">
|
|
<a href="javascript;" class="collapse" data-original-title="" title=""></a>
|
|
</div>
|
|
</div>
|
|
<asp:UpdatePanel ID="UpAddVenta" runat="server" class="portlet-body form" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
|
|
<div class="row">
|
|
<div class="col-md-4">
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:TextBox ID="TxtCantidad" inputmode="numeric" onkeyup="Recalcula();" Text="1" runat="server" CssClass="form-control " ClientIDMode="Static" MaxLength="12" ValidationGroup="GrpAddVenta" Width="60px"></asp:TextBox>
|
|
<ajax:FilteredTextBoxExtender ID="SoloNumerosCantidad" runat="server" TargetControlID="TxtCantidad" FilterType="Custom, Numbers" ValidChars="." />
|
|
<asp:RequiredFieldValidator ID="RFVCantidad" runat="server" ControlToValidate="TxtCantidad" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Cantidad''</b> es necesario, por favor ingréselo." ValidationGroup="GrpAddVenta"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCOCantidad1" runat="server" HighlightCssClass="vco" TargetControlID="RFVCantidad" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
<asp:CustomValidator ID="CVCantidad" runat="server" ClientValidationFunction="ValidaDecimal6digits" ControlToValidate="TxtCantidad" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Cantidad''</b> no tiene el formato correcto. Por favor rectifique y vuelva a intentar." ValidateEmptyText="True" ValidationGroup="GrpAddVenta"></asp:CustomValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCECantidad" runat="server" HighlightCssClass="vco" TargetControlID="CVCantidad" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
<label for="<%= TxtCantidad.ClientID.ToString()%>">Cantidad:</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<asp:UpdatePanel runat="server" ID="UpClasificacion" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
|
|
<%--<asp:HiddenField ID="HdnUnidadMedida" runat="server" Value="-1" />--%>
|
|
<asp:HiddenField ID="HdnIVAPS" runat="server" Value="-1" />
|
|
<asp:HiddenField ID="HdnIVARetAPS" runat="server" Value="-1" />
|
|
<asp:HiddenField ID="HdnPS" runat="server" Value="-1" />
|
|
<asp:HiddenField ID="HdnCodigoPS" runat="server" Value="-1" />
|
|
<asp:HiddenField ID="HdnTipoPS" runat="server" Value="-1" />
|
|
<asp:HiddenField ID="HdnTipoInv" runat="server" Value="-1" />
|
|
<asp:HiddenField ID="HdnAsientoContable" runat="server" Value="-1" />
|
|
<asp:HiddenField ID="HdnCtaContable" runat="server" Value="-1" />
|
|
<asp:HiddenField ID="HdnAplicaParaConcepto" runat="server" Value="-1" />
|
|
<asp:HiddenField ID="HdnCodigo" runat="server" Value="-1" />
|
|
<asp:HiddenField ID="HdnAplicaIEPS" runat="server" Value="-1" />
|
|
<asp:HiddenField ID="HdnPorcentajeIEPS" runat="server" Value="-1" />
|
|
<asp:HiddenField ID="HdnCvePS" runat="server" Value="-1" />
|
|
|
|
<div class="row" runat="server" visible="false">
|
|
<div class="col-md-12">
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:DropDownList ID="DdlClasificacion" CssClass="form-control input-sm select2me" runat="server" AppendDataBoundItems="true" AutoPostBack="true" DataTextField="Clasificacion" DataValueField="CveClasificacion" Width="100%" OnSelectedIndexChanged="DdlClasificacion_SelectedIndexChanged">
|
|
<asp:ListItem Selected="True" Text="Seleccione la Clasificación (Todas)" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
<label for="<%= DdlClasificacion.ClientID.ToString()%>">Clasificación:</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<label for="<%= DdlPS.ClientID.ToString()%>">Producto/Servicio:</label>
|
|
<ADS:Dropdownlost runat="server" ID="DdlPS" CssStyle="width: 100%;" CssClass=" form-control input-sm DdlPS" IncluyeTodos="false" CssClassDdl="select2me form-control" DataTextField="PSCodigo" DataValueField="CvePS" data-onresult="CargaExistenciaAlmacenes" Onselectedindexchange="DdlPS_SelectedIndexChanged" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
<br />
|
|
<asp:UpdatePanel runat="server" ID="UpUnidadMedida" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div runat="server" visible="false" class="form-group form-md-line-input input-iconright">
|
|
<asp:DropDownList ID="DdlUnidadMedida" AppendDataBoundItems="true" CssClass="form-control input-sm select2me " runat="server" DataTextField="UnidadMedida" DataValueField="CveUnidadMedida" Style="width: 100%;"></asp:DropDownList>
|
|
<asp:RequiredFieldValidator ID="RFVUnidadMedida" runat="server" ControlToValidate="DdlUnidadMedida" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Unidad de Medida''</b> es necesario, por favor ingréselo." ValidationGroup="GrpAddVenta"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCEUnidadMedida" runat="server" HighlightCssClass="vco" TargetControlID="RFVUnidadMedida" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
<asp:RangeValidator ID="RVUM" runat="server" Type="Integer" MinimumValue="0" MaximumValue="999999999" ErrorMessage="El campo <b>''Unidad de Medida''</b> es necesario, por favor ingréselo." ControlToValidate="DdlUnidadMedida" Display="None" ValidationGroup="GrpAddVenta"></asp:RangeValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCEUM" runat="server" HighlightCssClass="vco" TargetControlID="RVUM" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
<label for="<%= DdlUnidadMedida.ClientID.ToString()%>">Unidad de Medida:</label>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
<div class="row">
|
|
<div class="col-md-7">
|
|
<label>Observación:</label>
|
|
<br />
|
|
<asp:TextBox ID="TxtObsPS" runat="server" Height="100%" Width="100%" TextMode="MultiLine" CausesValidation="true" MaxLength="500"></asp:TextBox>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="DivRecepcionUsados" runat="server">
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<label>Modelo:</label>
|
|
<br />
|
|
<asp:DropDownList ID="DdlModeloAuto" CssClass="form-control input-sm select2me" runat="server" AppendDataBoundItems="true" CausesValidation="true" DataTextField="ModeloMarca" DataValueField="CveModeloAuto">
|
|
</asp:DropDownList>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<label>Año:</label>
|
|
<br />
|
|
<asp:TextBox ID="TxtAnioVehiculo" type="number" runat="server" Height="100%" Width="100%" CssClass="form-control" CausesValidation="true"></asp:TextBox>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<label>Tipo Servicio:</label>
|
|
<br />
|
|
<asp:DropDownList ID="DdlTipoServicio" CssClass="form-control input-sm select2me" runat="server" CausesValidation="true">
|
|
<asp:ListItem Text="Seleccione" Value="-1"></asp:ListItem>
|
|
<asp:ListItem Text="Particular" Value="1" Selected="True"></asp:ListItem>
|
|
<asp:ListItem Text="Comercial" Value="2"></asp:ListItem>
|
|
<asp:ListItem Text="Taxi" Value="3"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</div>
|
|
<div class="col-md-6"></div>
|
|
</div>
|
|
|
|
<br />
|
|
|
|
<div class="row">
|
|
<div class="col-md-12" visible="false">
|
|
<asp:GridView ID="GvRecepcionUsados" runat="server" GridLines="None" ShowHeaderWhenEmpty="true" CssClass="table table-hover table-striped ScrollAD mysmallbtn"
|
|
data-sort="true" BorderWidth="1" BorderColor="#D3D3D3" CellSpacing="0" Width="100%" AutoGenerateColumns="False" data-height="100"
|
|
DataKeyNames="CvePSCargo,CveUM,Cargo,CveTamaño">
|
|
<Columns>
|
|
<asp:BoundField DataField="CodigoPS" HeaderText="Tamaño" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="35%" />
|
|
<asp:TemplateField HeaderText="Cantidad" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="20%">
|
|
<ItemTemplate>
|
|
<asp:TextBox ID="TxtCantidad" CssClass="form-control linewhitsize" runat="server" Width="90%" Height="30px"></asp:TextBox>
|
|
<ajax:FilteredTextBoxExtender ID="FTBECantidad" runat="server" TargetControlID="TxtCantidad" FilterType="Custom, Numbers" ValidChars="." />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="BCI" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="25%">
|
|
<ItemTemplate>
|
|
<asp:DropDownList ID="DdlBCIUsado" CssClass="form-control input-sm select2me" runat="server" AppendDataBoundItems="true" CausesValidation="true" DataTextField="BCI" DataValueField="CveBCIUsado" Width="90%">
|
|
</asp:DropDownList>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
</asp:GridView>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<br />
|
|
|
|
<div class="row">
|
|
<div class="col-md-3">
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:TextBox ID="TxtPrecio" inputmode="numeric" runat="server" onkeyup="Recalcula();" CausesValidation="true" lang="nb" ClientIDMode="Static" Text="0.00" MaxLength="12" ValidationGroup="GrpAddVenta" Width="76px" CssClass="form-control "></asp:TextBox>
|
|
<ajax:FilteredTextBoxExtender ID="FilteredTextBoxExtender4" runat="server" TargetControlID="TxtPrecio" FilterType="Custom, Numbers" ValidChars="." />
|
|
<asp:RequiredFieldValidator ID="RFVPrecio" runat="server" ControlToValidate="TxtPrecio" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Precio''</b> es necesario, por favor ingréselo." ValidationGroup="GrpAddVenta"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCPrecio" runat="server" HighlightCssClass="vco" TargetControlID="RFVPrecio" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
<asp:CustomValidator ID="CVPrecio" runat="server" ClientValidationFunction="ValidaDecimal6digits" ControlToValidate="TxtPrecio" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Precio''</b> no tiene el formato correcto. Por favor rectifique y vuelva a intentar." ValidateEmptyText="True" ValidationGroup="GrpAddVenta"></asp:CustomValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCEPrecio" runat="server" HighlightCssClass="vco" TargetControlID="CVPrecio" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
<label for="<%= TxtPrecio.ClientID.ToString()%>">Precio:</label>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-3">
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:TextBox ID="TxtDescuento" inputmode="numeric" runat="server" onkeyup="Recalcula();" CausesValidation="true" lang="nb" ClientIDMode="Static" Text="0.00" MaxLength="12" ValidationGroup="GrpAddVenta" Width="100px" CssClass="form-control "></asp:TextBox>
|
|
<ajax:FilteredTextBoxExtender ID="FilteredTextBoxExtender2" runat="server" TargetControlID="TxtDescuento" FilterType="Custom, Numbers" ValidChars="." />
|
|
<asp:CustomValidator ID="CVDescuento" runat="server" ClientValidationFunction="ValidaDecimal6digits" ControlToValidate="TxtDescuento" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Descuento''</b> no tiene el formato correcto. Por favor rectifique y vuelva a intentar." ValidateEmptyText="True" ValidationGroup="GrpAddVenta"></asp:CustomValidator>
|
|
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender6" runat="server" HighlightCssClass="vco" TargetControlID="CVDescuento" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
<label for="<%= TxtDescuento.ClientID.ToString()%>">Descuento:</label>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-1">
|
|
<asp:UpdatePanel ID="UpBtnDescuento" runat="server" class="portlet-body form" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<asp:LinkButton ID="ImgDescPU" runat="server" Text="<i class='fa fa-tags' style='color:dimgray;'></i>" Style="cursor: pointer;" AlternateText="Agregar Descuento" />
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<asp:Label ID="LblTot" runat="server">Total: $</asp:Label>
|
|
<asp:Label ID="LblTotalPS" runat="server" ClientIDMode="Static" Text="0.00"></asp:Label>
|
|
</div>
|
|
<div class="col-md-6" align="right" id="divagregrarotrops" runat="server">
|
|
<label>Agregar otro Producto:</label>
|
|
<asp:CheckBox ID="ChkAgregar" runat="server" Checked="true" />
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
</div>
|
|
<div class="col-md-6" align="right" id="DivChkAjuste" visible="true" runat="server">
|
|
<asp:UpdatePanel ID="UpChkAjuste" runat="server" class="portlet-body form" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<label>Ajuste:</label>
|
|
<asp:CheckBox ID="ChkAjuste" runat="server" AutoPostBack="true" OnCheckedChanged="ChkAjuste_CheckedChanged" />
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
<asp:UpdatePanel ID="UpAjuste" runat="server" class="portlet-body form" UpdateMode="Conditional">
|
|
<Triggers>
|
|
<asp:PostBackTrigger ControlID="BtnPDFHistorial" />
|
|
</Triggers>
|
|
<ContentTemplate>
|
|
<div class="col-md-1" id="DivAjuste" runat="server" visible="false">
|
|
<div class="portlet light xspadding bordered">
|
|
<div class="portlet-title">
|
|
<div class="caption font-green">
|
|
<i class="icon-pin font-green"></i>
|
|
<span class="caption-subject bold uppercase">Ajuste </span>
|
|
</div>
|
|
<div class="tools">
|
|
<asp:LinkButton ID="BtnPDFHistorial" OnClick="BtnPDFHistorial_Click" runat="server" data-toggle="tooltip" Title="PDF"><i class="fa fa-file-pdf-o" style="font-size:15px; font-weight:bold; color:dimgray;"></i></asp:LinkButton>
|
|
<a href="javascript;" class="collapse" data-original-title="" title=""></a>
|
|
</div>
|
|
</div>
|
|
<div class="row" style="display: none;">
|
|
<div class="col-md-12">
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:DropDownList ID="DdlFacturas" CssClass="form-control input-sm select2me" runat="server" AppendDataBoundItems="true" CausesValidation="true" DataTextField="SerieFolio" DataValueField="CveVenta" OnSelectedIndexChanged="DdlFacturas_SelectedIndexChanged" Width="100%" AutoPostBack="true">
|
|
</asp:DropDownList>
|
|
<label for="<%= DdlFacturas.ClientID.ToString()%>">Facturas:</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-5">
|
|
<div>
|
|
<label for="<%= DdlDistribuidor.ClientID.ToString()%>">Distribuidor:</label><br />
|
|
<ADS:Dropdownlost ID="DdlDistribuidor" data-metodo="getcliente" CssStyle="width:100%" CssClassDdl="select2me" runat="server" DataTextField="CodigoNombre" DataValueField="CveCliente" Width="300px"></ADS:Dropdownlost>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-9">
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<ADS:Dropdownlost ID="DdlPSAjuste" CssStyle="width: 100%;" CssClass=" form-control input-sm DdlPS" IncluyeTodos="false" CssClassDdl="select2me form-control" runat="server" CausesValidation="true" DataTextField="PSCodigo" DataValueField="CvePS" Onselectedindexchange="DdlPSAjuste_selectedindexchange"></ADS:Dropdownlost>
|
|
<asp:HiddenField ID="HdnPSAjusteMarca" ClientIDMode="Static" runat="server" Value="-1" />
|
|
<asp:HiddenField ID="HdnPSAjusteClasificacion" ClientIDMode="Static" runat="server" Value="-1" />
|
|
<label for="<%= DdlPSAjuste.ClientID.ToString()%>">Producto/Servicio a Recibir:</label>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-3">
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:TextBox ID="TxtPUFactura" CssClass="form-control" runat="server" MaxLength="50" Enabled="false"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVPUFactura" runat="server" ControlToValidate="TxtPUFactura" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''PU Factura''</b> es necesario, por favor ingréselo." ValidationGroup="GrpAddVenta"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCEPUFactura" runat="server" HighlightCssClass="vco" TargetControlID="RFVPUFactura"></ajax:ValidatorCalloutExtender>
|
|
<ajax:FilteredTextBoxExtender ID="FTBEPUFactura" runat="server" TargetControlID="TxtPUFactura" FilterType="Custom, Numbers" ValidChars=".," />
|
|
<label for="<%= TxtPUFactura.ClientID.ToString()%>">P.U.:</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:DropDownList ID="DdlBCIAjuste" CssClass="form-control input-sm select2me" runat="server" AppendDataBoundItems="true" CausesValidation="true" DataTextField="BCI" DataValueField="CveBCIUsado" Width="100%" AutoPostBack="true">
|
|
</asp:DropDownList>
|
|
<label for="<%= DdlBCIAjuste.ClientID.ToString()%>">BCI:</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-8">
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:DropDownList ID="DdlFolioGarantia" CssClass="form-control input-sm select2me" runat="server" AppendDataBoundItems="true" CausesValidation="true" DataTextField="FolioGarantia" DataValueField="CveFolioGarantia" Width="100%" AutoPostBack="true">
|
|
</asp:DropDownList>
|
|
<asp:RequiredFieldValidator ID="RFVFolioGarantia" runat="server" ControlToValidate="DdlFolioGarantia" InitialValue="-1" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Folio''</b> es necesario, por favor ingréselo." ValidationGroup="GrpAddVenta"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCEFolioGarantia" runat="server" HighlightCssClass="vco" TargetControlID="RFVFolioGarantia"></ajax:ValidatorCalloutExtender>
|
|
<label for="<%= DdlFolioGarantia.ClientID.ToString()%>">Folio:</label>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-4">
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:TextBox ID="TxtConsecutivoAjuste" CssClass="form-control" runat="server" MaxLength="25"></asp:TextBox>
|
|
<%--<asp:RequiredFieldValidator ID="RFVConsecutivoAjuste" runat="server" ControlToValidate="TxtConsecutivoAjuste" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Consec.''</b> es necesario, por favor ingréselo." ValidationGroup="VGMAjuste"></asp:RequiredFieldValidator>--%>
|
|
<%--<ajax:ValidatorCalloutExtender ID="VCEConsecutivoAjuste" runat="server" HighlightCssClass="vco" TargetControlID="RFVConsecutivoAjuste"></ajax:ValidatorCalloutExtender>--%>
|
|
<label for="<%= TxtConsecutivoAjuste.ClientID.ToString()%>">Consec.:</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-8">
|
|
<div id="DivCodEnsamble" runat="server" class="form-group form-md-line-input input-iconright">
|
|
<asp:TextBox ID="TxtCodEnsamble" CssClass="form-control" runat="server" MaxLength="50"></asp:TextBox>
|
|
<asp:CustomValidator ID="CVCodEnsamble" runat="server" ControlToValidate="TxtCodEnsamble" ClientValidationFunction="ValidarCodigoEnsamble" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Cod.Ensamble''</b> es incorrecto, por favor ingréselo correctamente." ValidationGroup="GrpAddVenta" />
|
|
<label for="<%= TxtCodEnsamble.ClientID.ToString()%>">Cod.Ensamble:</label>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-4">
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:DropDownList ID="DdlTipoUso" CssClass="form-control input-sm select2me" runat="server" AppendDataBoundItems="true" CausesValidation="true" DataTextField="TipoUso" DataValueField="CveTipoUso" Width="100%" AutoPostBack="true" OnSelectedIndexChanged="DdlTipoUso_SelectedIndexChanged">
|
|
</asp:DropDownList>
|
|
<asp:RequiredFieldValidator ID="RFVTipoUso" runat="server" ControlToValidate="DdlTipoUso" InitialValue="-1" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Tipo de Uso''</b> es necesario, por favor ingréselo." ValidationGroup="GrpAddVenta"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCETipoUso" runat="server" HighlightCssClass="vco" TargetControlID="RFVTipoUso"></ajax:ValidatorCalloutExtender>
|
|
<label for="<%= DdlTipoUso.ClientID.ToString()%>">Tipo de Uso:</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<br />
|
|
<div class="row">
|
|
<div class="col-md-8">
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:TextBox ID="TxtCodLinea" CssClass="form-control" runat="server" MaxLength="50"></asp:TextBox>
|
|
<asp:CustomValidator ID="CVCodLinea" runat="server" ControlToValidate="TxtCodLinea" ClientValidationFunction="ValidarCodigoLinea" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Cod.Linea''</b> es incorrecto, por favor ingréselo correctamente." ValidationGroup="GrpAddVenta" />
|
|
<label for="<%= TxtCodLinea.ClientID.ToString()%>">Cod.Linea:</label>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-4">
|
|
<label for="<%= TxtFechaAjuste.ClientID.ToString()%>">Fecha:</label>
|
|
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 120px !important; padding: 0px;">
|
|
<asp:TextBox ID="TxtFechaAjuste" CssClass="form-control input-sm ADSMaskDate" Width="100%" runat="server"></asp:TextBox>
|
|
<span class="input-group-btn ">
|
|
<asp:LinkButton ID="LnkFechaAjuste" class="btn default " Text=" <i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
|
</span>
|
|
<ajax:MaskedEditExtender ID="MEEFechaAjuste" runat="server" TargetControlID="TxtFechaAjuste" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
|
<ajax:CalendarExtender runat="server" ID="CEEFechaAjuste" TargetControlID="TxtFechaAjuste" PopupButtonID="LnkFechaAjuste" PopupPosition="BottomLeft" Enabled="True" Format="dd/MM/yyyy"></ajax:CalendarExtender>
|
|
<asp:RequiredFieldValidator ID="RFVFechaAjuste" runat="server" ControlToValidate="TxtFechaAjuste" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha''</b> es necesario, por favor ingréselo." ValidationGroup="GrpAddVenta"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCEFechaAjuste" runat="server" HighlightCssClass="vco" TargetControlID="RFVFechaAjuste"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-8">
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:TextBox ID="TxtCodInspeccion" CssClass="form-control" runat="server" MaxLength="50"></asp:TextBox>
|
|
<asp:CustomValidator ID="CVCodInspeccion" runat="server" ControlToValidate="TxtCodInspeccion" ClientValidationFunction="ValidarCodigoInspeccion" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Cod.Inspección''</b> es incorrecto, por favor ingréselo correctamente." ValidationGroup="GrpAddVenta" />
|
|
<%-- <asp:RegularExpressionValidator ID="REVCodInspeccion" runat="server" ControlToValidate="TxtCodInspeccion" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Cod. Inspección''</b> es incorrecto, por favor ingréselo correctamente." ValidationGroup="GrpAddVenta" ValidationExpression="^[A-L][0-9][1-9A-Z][A-HJ-M]$"></asp:RegularExpressionValidator>--%>
|
|
<%--<asp:RequiredFieldValidator ID="RFVCodInspeccion" runat="server" ControlToValidate="TxtCodInspeccion" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Cod. Inspeccion''</b> es necesario, por favor ingréselo." ValidationGroup="VGMAjuste"></asp:RequiredFieldValidator>--%>
|
|
<%--<ajax:ValidatorCalloutExtender ID="VCECodInspeccion" runat="server" HighlightCssClass="vco" TargetControlID="RFVCodInspeccion"></ajax:ValidatorCalloutExtender>--%>
|
|
<label for="<%= TxtCodInspeccion.ClientID.ToString()%>">Cod. Inspección:</label>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-4">
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:TextBox ID="TxtMesesUso" CssClass="form-control" runat="server" MaxLength="50" Enabled="false"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVMesesUso" runat="server" ControlToValidate="TxtMesesUso" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Meses de Uso''</b> es necesario, por favor ingréselo." ValidationGroup="GrpAddVenta"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCEMesesUso" runat="server" HighlightCssClass="vco" TargetControlID="RFVMesesUso"></ajax:ValidatorCalloutExtender>
|
|
<ajax:FilteredTextBoxExtender ID="FTBEMesesUso" runat="server" TargetControlID="TxtMesesUso" FilterType="Custom, Numbers" ValidChars="." />
|
|
<label for="<%= TxtMesesUso.ClientID.ToString()%>">Meses de Uso:</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-4">
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:DropDownList ID="DdlTipoDefecto" CssClass="form-control input-sm select2me" runat="server" AppendDataBoundItems="true" CausesValidation="true" DataTextField="TipoDefecto" DataValueField="CveTipoDefecto" Width="100%" OnSelectedIndexChanged="DdlTipoDefecto_SelectedIndexChanged" AutoPostBack="true">
|
|
</asp:DropDownList>
|
|
<asp:RequiredFieldValidator ID="RFVTipoDefecto" runat="server" ControlToValidate="DdlTipoDefecto" InitialValue="-1" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Tipo de Defecto''</b> es necesario, por favor ingréselo." ValidationGroup="GrpAddVenta"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCETipoDefecto" runat="server" HighlightCssClass="vco" TargetControlID="RFVTipoDefecto"></ajax:ValidatorCalloutExtender>
|
|
<label for="<%= DdlTipoDefecto.ClientID.ToString()%>">Tipo de Defecto:</label>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-4">
|
|
<div id="DivCodigoTD" class="form-group form-md-line-input input-iconright" runat="server" visible="false">
|
|
<asp:TextBox ID="TxtCodigoTD" CssClass="form-control" runat="server" MaxLength="11" Width="100%"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVCodigoTD" runat="server" ControlToValidate="TxtCodigoTD" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Código''</b> es necesario, por favor ingréselo." ValidationGroup="GrpAddVenta"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender2" runat="server" HighlightCssClass="vco" TargetControlID="RFVCodigoTD"></ajax:ValidatorCalloutExtender>
|
|
<ajax:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" TargetControlID="TxtCodigoTD" FilterType="Custom, Numbers, UppercaseLetters " ValidChars="." />
|
|
<label for="<%= TxtCodigoTD.ClientID.ToString()%>">Código:</label>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-4">
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:TextBox ID="TxtPorcentajeAjuste" CssClass="form-control" Enabled="false" runat="server" MaxLength="50"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVPorcentajeAjuste" runat="server" ControlToValidate="TxtPorcentajeAjuste" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''% Ajuste''</b> es necesario, por favor ingréselo." ValidationGroup="GrpAddVenta"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCEPorcentajeAjuste" runat="server" HighlightCssClass="vco" TargetControlID="RFVPorcentajeAjuste"></ajax:ValidatorCalloutExtender>
|
|
<ajax:FilteredTextBoxExtender ID="FTBEPorcentajeAjuste" runat="server" TargetControlID="TxtPorcentajeAjuste" FilterType="Custom, Numbers" ValidChars="." />
|
|
<label for="<%= TxtPorcentajeAjuste.ClientID.ToString()%>">% Ajuste:</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row" style="margin-top: 17px;">
|
|
<div class="col-md-2">
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:TextBox ID="TxtPoliza" CssClass="form-control" runat="server" MaxLength="50"></asp:TextBox>
|
|
<%--<asp:RequiredFieldValidator ID="RFVPoliza" runat="server" ControlToValidate="TxtPoliza" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Poliza''</b> es necesario, por favor ingréselo." ValidationGroup="VGMAjuste"></asp:RequiredFieldValidator>--%>
|
|
<%--<ajax:ValidatorCalloutExtender ID="VCEPoliza" runat="server" HighlightCssClass="vco" TargetControlID="RFVPoliza"></ajax:ValidatorCalloutExtender>--%>
|
|
<label for="<%= TxtPoliza.ClientID.ToString()%>">Poliza:</label>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-4">
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:TextBox ID="TxtImporteAjuste" CssClass="form-control" runat="server" Enabled="false" MaxLength="50"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVImporteAjuste" runat="server" ControlToValidate="TxtImporteAjuste" 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="GrpAddVenta"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCEImporteAjuste" runat="server" HighlightCssClass="vco" TargetControlID="RFVImporteAjuste"></ajax:ValidatorCalloutExtender>
|
|
<ajax:FilteredTextBoxExtender ID="FTBEImporteAjuste" runat="server" TargetControlID="TxtImporteAjuste" FilterType="Custom, Numbers" ValidChars="." />
|
|
<label for="<%= TxtImporteAjuste.ClientID.ToString()%>">Importe:</label>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-4">
|
|
<asp:Button ID="BtnCalcularImporteAjuste" CssClass="btn green-haze btn-outline btn-circle btn-sm" OnClick="BtnCalcularImporteAjuste_Click" runat="server" Text="Recalcular" UseSubmitBehavior="false" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<asp:UpdatePanel ID="UpAgregar" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<%-- <asp:Button ID="BtnCalculaMesesUso" Text="" OnClick="BtnCalculaMesesUso_Click" ClientIDMode="Static" Style="display: none;" runat="server" />--%>
|
|
<asp:Button ClientIDMode="Static" ID="LnkAgregarPS" OnClick="LnkAgregarPS_Click" runat="server" CssClass="btn btn-primary" Text="Agregar" ValidationGroup="GrpAddVenta" UseSubmitBehavior="false" />
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
|
|
|
|
</asp:Content>
|
|
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
|
<script type="text/javascript">
|
|
|
|
function ValidarCodigoEnsamble(source, arguments) {
|
|
let CveMarca = HdnPSAjusteMarca.value;
|
|
let CveClasificacion = HdnPSAjusteClasificacion.value;
|
|
|
|
//MARCA OPTIMA
|
|
if (CveMarca == "1086") {
|
|
let regex = new RegExp("^[0-9]+$");
|
|
arguments.IsValid = regex.test(arguments.Value);
|
|
return;
|
|
//MARCA MOTOBATERIAS
|
|
} else if ((CveMarca == "1090" || CveMarca == "1091") || CveClasificacion == "20517") {
|
|
let regex = new RegExp("^[1X]");
|
|
arguments.IsValid = regex.test(arguments.Value);
|
|
return;
|
|
//AUTOMOTRIZ-ACUMULADORES
|
|
} else {
|
|
let regex = new RegExp("^[1X]|^[0-9][A-HJ-M][0-3][0-9][A-Z][ACEN][2-5]$");
|
|
arguments.IsValid = regex.test(arguments.Value);
|
|
return;
|
|
}
|
|
}
|
|
|
|
function ValidarCodigoLinea(source, arguments) {
|
|
var regex = new RegExp("^[*]");
|
|
arguments.IsValid = regex.test(arguments.Value);
|
|
}
|
|
|
|
function ValidarCodigoInspeccion(source, arguments) {
|
|
let CveMarca = HdnPSAjusteMarca.value;
|
|
let CveClasificacion = HdnPSAjusteClasificacion.value;
|
|
|
|
//MARCA OPTIMA
|
|
if (CveMarca == "1086") {
|
|
var regex = new RegExp("^\d{4}$|^[A-L][0-9][1-9A-Z][A-HJ-M]$");
|
|
arguments.IsValid = regex.test(arguments.Value);
|
|
return;
|
|
//MARCA MOTOBATERIAS
|
|
} else if ((CveMarca == "1090" || CveMarca == "1091") || CveClasificacion == "20517") {
|
|
var regex = new RegExp("^[A-L][0-9][1-9A-Z][A-HJ-M]$");
|
|
arguments.IsValid = regex.test(arguments.Value);
|
|
return;
|
|
//AUTOMOTRIZ-ACUMULADORES
|
|
} else {
|
|
var regex = new RegExp("^[X]|^[x]|[A-L][0-9][1-9A-Z][A-HJ-M]$");
|
|
arguments.IsValid = regex.test(arguments.Value);
|
|
return;
|
|
}
|
|
}
|
|
|
|
//function CalculaMesesUso() {
|
|
// $get("BtnCalculaMesesUso").click();
|
|
//}
|
|
|
|
function ConvertirDllsPesos() {
|
|
var totalPesos = FormatoNumero(ToDouble($get('TxtTotal').value) * ToDouble($get('TxtTipoCambio').value), 2)
|
|
$('#<%= LtlTotalConvertido.ClientID %>').text(totalPesos);
|
|
$("#TrConversionPesosTexto").show();
|
|
}
|
|
|
|
function ConvertirPesos(ChkConvertirDoctoPesos) {
|
|
//LIMPIA
|
|
$('#<%= LtlTotalConvertido.ClientID %>').text('');
|
|
$("#TrConversionPesosTexto").hide();
|
|
|
|
//CALCULA
|
|
if (ChkConvertirDoctoPesos.checked) {
|
|
ConvertirDllsPesos();
|
|
}
|
|
}
|
|
|
|
function ConvertirPesosDlls() {
|
|
var totalPesos = FormatoNumero(ToDouble($get('TxtTotal').value) / ToDouble($get('TxtTipoCambioDlls').value), 2)
|
|
$('#<%= LblDolaresConvertidos.ClientID %>').text(totalPesos);
|
|
$("#TrConversionDolaresTexto").show();
|
|
}
|
|
|
|
function ConvertirDolares(ChkConvertirDolares) {
|
|
//LIMPIA
|
|
$('#<%= LblDolaresConvertidos.ClientID %>').text('');
|
|
$("#TrConversionDolaresTexto").hide();
|
|
|
|
//CALCULA
|
|
if (ChkConvertirDolares.checked) {
|
|
ConvertirPesosDlls();
|
|
}
|
|
}
|
|
|
|
var scrollfuncion = function () {
|
|
var stop = this.scrollTop;
|
|
$(".select2-container.select2-container--default.select2-container--open .select2-dropdown .select2anothertable").scrollTop(stop);
|
|
}
|
|
|
|
function CargaExistenciaAlmacenes(data, params) {
|
|
var div = $('<div class="select2anothertable"></div>');
|
|
$('.select2-container.select2-container--default.select2-container--open .select2-dropdown .select2anothertable').remove();
|
|
$('.select2-container.select2-container--default.select2-container--open .select2-dropdown').prepend(div);
|
|
var table = $('<table></table>'); div.append(table);
|
|
var tbody = $('<tbody></tbody>'); table.append(tbody);
|
|
$(".select2-container--default .select2-results>.select2-results__options").off("scroll", scrollfuncion);
|
|
$(".select2-container--default .select2-results>.select2-results__options").scroll(scrollfuncion);
|
|
var indexd = 0;
|
|
data.forEach(function (item) {
|
|
if (indexd == 0) {
|
|
var tr = $('<tr></tr>'); tbody.append(tr);
|
|
var td;
|
|
for (var key in item) {
|
|
if (!(key == "text" || key == "id")) { td = $('<td style="font-weight:bold;">' + key + '</td>'); tr.append(td); }
|
|
}
|
|
}
|
|
var tr = $('<tr></tr>'); tbody.append(tr);
|
|
|
|
var td;
|
|
for (var key in item) {
|
|
if (!(key == "text" || key == "id")) { td = $('<td ' + ((item[key] > 0) ? 'style = "font-weight:bold;"' : '') + '>' + item[key] + '</td>'); tr.append(td); }
|
|
}
|
|
indexd += 1;
|
|
});
|
|
}
|
|
|
|
function C() {
|
|
return confirm('¿Desea quitar el Producto o Servicio de la Factura?');
|
|
}
|
|
|
|
// function ActivaReferencia(Obj) {
|
|
// if (Obj) {
|
|
// if (Obj.options[Obj.selectedIndex].value == "Egs")
|
|
// $get("TdReferencia").style.display = "";
|
|
// else
|
|
// $get("TdReferencia").style.display = "none";
|
|
// }
|
|
// }
|
|
|
|
function OpenInNewTab(url) {
|
|
var win = window.open(url, '_blank');
|
|
win.focus();
|
|
}
|
|
|
|
function OpenInCurentTab(url) {
|
|
var win = window.open(url, '_self');
|
|
win.focus();
|
|
}
|
|
|
|
function CargaCliente(CveCliente) {
|
|
$get("HdnCveCliente").value = CveCliente;
|
|
$('#BtnBuscarCliente').click();
|
|
}
|
|
|
|
function Recalcula() {
|
|
var Cant = $get("TxtCantidad").value;
|
|
var PrecioFormato = $get("TxtPrecio").value;
|
|
var Precio = Number(PrecioFormato.replace(/[^0-9\.]+/g, ""));
|
|
$get("LblPrecio1").innerText = formato_numero(PrecioFormato, 2, '.', ',');
|
|
|
|
if (isNaN(Cant))
|
|
Cant = 0;
|
|
if (isNaN(Precio))
|
|
Precio = 0;
|
|
|
|
$get("LblTotalPS").innerHTML = formato_numero(parseFloat(Cant) * parseFloat(PrecioFormato), 2, '.', ',');
|
|
$get("LblTotalPS1").innerHTML = $get("LblTotalPS").innerHTML;
|
|
}
|
|
|
|
|
|
function CalculaDescuento() {
|
|
if ($get("TxtPorDescP").value != "0" && $get("TxtPorDescP").value != "") {
|
|
var Monto = 0;
|
|
var TipoDescuento = $get("HdnTipoDescuento").value;
|
|
|
|
if (TipoDescuento == 0) {
|
|
Monto = parseFloat($get("LblPrecio1").innerText.replace(",", "").replace(",", ""));
|
|
}
|
|
else if (TipoDescuento == 1) {
|
|
Monto = parseFloat($get("LblTotalPS1").innerText.replace(",", "").replace(",", ""));
|
|
}
|
|
else if (TipoDescuento == 2) {
|
|
Monto = parseFloat($get("LblSubTotal1").innerText.replace(",", "").replace(",", ""));
|
|
}
|
|
else if (TipoDescuento == 3) {
|
|
Monto = parseFloat($get("LblSubTotal1").innerText.replace(",", "").replace(",", ""));
|
|
}
|
|
|
|
var Descuento = parseFloat($get("TxtPorDescP").value);
|
|
$get("LblPrecioFinal").innerText = formato_numero(Monto - ((Monto * Descuento) / 100), 2, '.', ',');
|
|
$get("LblTotalPS").innerText = formato_numero(parseFloat($get("LblPrecioFinal").innerText.replace(",", "").replace(",", "")), 2, '.', ',');
|
|
var Total = Monto - parseFloat($get("LblPrecioFinal").innerText.replace(",", "").replace(",", ""));
|
|
$get("LblDescuento").innerText = formato_numero(Total, 2, '.', ',');
|
|
$get("TxtDescuento").value = formato_numero(Total, 2, '.', ',');
|
|
$get("TxtDescP").value = formato_numero(0, 2, '.', ',');
|
|
$get("HdnDescuento").value = Total;
|
|
if (TipoDescuento == 2) {
|
|
$get("LblDescuentos").innerText = formato_numero(Total, 2, '.', ',');
|
|
}
|
|
}
|
|
else {
|
|
$get("LblPrecioFinal").innerText = "0.00";
|
|
$get("LblDescuento").innerText = "0.00";
|
|
$get("HdnDescuento").value = "0.00";
|
|
}
|
|
|
|
}
|
|
|
|
function CalculaDescuentoMonto() {
|
|
|
|
if ($get("TxtDescP").value != "0" && $get("TxtDescP").value) {
|
|
var Monto = 0;
|
|
var TipoDescuento = $get("HdnTipoDescuento").value;
|
|
|
|
if (TipoDescuento == 0) {
|
|
Monto = parseFloat($get("LblPrecio1").innerText.replace(",", "").replace(",", ""));
|
|
}
|
|
else if (TipoDescuento == 1) {
|
|
Monto = parseFloat($get("LblTotalPS1").innerText.replace(",", "").replace(",", ""));
|
|
}
|
|
else if (TipoDescuento == 2) {
|
|
Monto = parseFloat($get("LblSubTotal1").innerText.replace(",", "").replace(",", ""));
|
|
}
|
|
else if (TipoDescuento == 3) {
|
|
Monto = parseFloat($get("LblSubTotal1").innerText.replace(",", "").replace(",", ""));
|
|
}
|
|
|
|
var Descuento = parseFloat($get("TxtDescP").value);
|
|
$get("TxtPorDescP").value = formato_numero((Descuento * 100 / Monto), 2, '.', ',');
|
|
$get("LblPrecioFinal").innerText = formato_numero(Monto - Descuento, 2, '.', ',');
|
|
$get("LblTotalPS").innerText = formato_numero(parseFloat($get("LblPrecioFinal").innerText.replace(",", "").replace(",", "")), 2, '.', ',');
|
|
var Total = Monto - parseFloat($get("LblPrecioFinal").innerText.replace(",", "").replace(",", ""));
|
|
$get("LblDescuento").innerText = formato_numero(Total, 2, '.', ',');
|
|
$get("TxtDescuento").value = formato_numero(Total, 2, '.', ',');
|
|
$get("HdnDescuento").value = Total;
|
|
if (TipoDescuento == 2) {
|
|
Monto - parseFloat($get("LblPrecioFinal").innerText.replace(",", "").replace(",", ""));
|
|
}
|
|
}
|
|
else {
|
|
$get("LblPrecioFinal").innerText = "0.00";
|
|
$get("LblDescuento").innerText = "0.00";
|
|
$get("HdnDescuento").value = "0.00";
|
|
}
|
|
}
|
|
|
|
function BorraDescuentos() {
|
|
$get("TxtPorDescP").value = "0";
|
|
$get("TxtDescP").value = "0";
|
|
$get("LblPrecioFinal").innerText = "0.00";
|
|
$get("LblDescuento").innerText = "0.00";
|
|
$get("HdnDescuento").value = 0;
|
|
$get('HdnTipoDescuento').value = '-1';
|
|
$("#LblSubTotal1").text($("#TxtSubTotal").val());
|
|
}
|
|
|
|
function formato_numero(numero, decimales, separador_decimal, separador_miles) { // v2007-08-06
|
|
numero = parseFloat(numero);
|
|
if (isNaN(numero)) {
|
|
return "";
|
|
}
|
|
|
|
if (decimales !== undefined) {
|
|
// Redondeamos
|
|
numero = numero.toFixed(decimales);
|
|
}
|
|
|
|
// Convertimos el punto en separador_decimal
|
|
numero = numero.toString().replace(".", separador_decimal !== undefined ? separador_decimal : ",");
|
|
|
|
if (separador_miles) {
|
|
// Añadimos los separadores de miles
|
|
var miles = new RegExp("(-?[0-9]+)([0-9]{3})");
|
|
while (miles.test(numero)) {
|
|
numero = numero.replace(miles, "$1" + separador_miles + "$2");
|
|
}
|
|
}
|
|
|
|
return numero;
|
|
}
|
|
|
|
function MuestraAnticipos() {
|
|
try {
|
|
$("#DivAnticipos").show();
|
|
$("#DivAnticipos").center();
|
|
}
|
|
catch (e) { alert(e); }
|
|
|
|
}
|
|
|
|
function MuestraOtrosConceptos() {
|
|
try {
|
|
$("#ModalOtrosConceptos").show();
|
|
$("#ModalOtrosConceptos").center();
|
|
}
|
|
catch (e) { alert(e); }
|
|
|
|
}
|
|
|
|
// ************************ Corte de Caja *****************************************************************************************************************************
|
|
function MuestraEstadoCaja() {
|
|
try {
|
|
$("#DivEstadoCaja").show();
|
|
$("#DivEstadoCaja").center();
|
|
}
|
|
catch (e) { alert(e); }
|
|
|
|
}
|
|
|
|
function MuestraCierreCaja() {
|
|
try {
|
|
$("#DivEstadoCaja").hide();
|
|
|
|
$("#DivTerminarCorte").show();
|
|
$("#DivTerminarCorte").center();
|
|
|
|
return false;
|
|
}
|
|
catch (e) { alert(e); }
|
|
|
|
}
|
|
|
|
function MuestraIngresoEgreso(tipo) {
|
|
try {
|
|
$("#DivIngresoEgreso").show();
|
|
$("#DivIngresoEgreso").center();
|
|
|
|
debugger;
|
|
if (tipo == 0) {
|
|
$('#C_LblTituloIE').text("Retiro de Efectivo: ");
|
|
$get("HdnTipoMovimiento").value = "0";
|
|
}
|
|
else {
|
|
$('#C_LblTituloIE').text("Ingreso de Efectivo: ");
|
|
$get("HdnTipoMovimiento").value = "1";
|
|
}
|
|
}
|
|
catch (e) { alert(e); }
|
|
|
|
}
|
|
|
|
function CalculaDiferencia() {
|
|
;
|
|
var total = 0
|
|
total = ToDouble($('#C_TxtEfectivoEnCaja').val()) - ToDouble($('#C_LblEfectivoEsperado').text());
|
|
$('#C_LblDiferenciaCaja').text(FormatoNumero(total));
|
|
}
|
|
|
|
function CalculaTotalPagoContado() {
|
|
|
|
var totalEfectivo = ToDouble($get("TxtImporteEfectivo").value);
|
|
var totalCredito = ToDouble($get("TxtImporteCredito").value);
|
|
var totalDebito = ToDouble($get("TxtImporteDebito").value);
|
|
var totalCheque = ToDouble($get("TxtImporteCheque").value);
|
|
var totalTransferencia = ToDouble($get("TxtImporteTransferencia").value);
|
|
var total = totalEfectivo + totalCredito + totalDebito + totalCheque + totalTransferencia;
|
|
|
|
|
|
var totalVenta = ToDouble($get('TxtTotal').value);
|
|
|
|
if (total > totalVenta) {
|
|
$get("TxtCambio").value = FormatoNumero(total - totalVenta);
|
|
} else {
|
|
$get("TxtCambio").value = "0.00";
|
|
}
|
|
|
|
$get("TxtImporteContado").value = total;
|
|
|
|
}
|
|
|
|
// ****************************************************************************************************************************************************************************
|
|
|
|
// ************** Contratos **************************************************************************************************************************************************
|
|
|
|
function AjustaTotales(_this) {
|
|
|
|
var pu; var cant;
|
|
if (_this.val().trim() == '') {
|
|
cant = 0;
|
|
} else {
|
|
cant = ToDouble(_this.val());
|
|
}
|
|
|
|
pu = ToDouble(_this.parent().prev().text());
|
|
_this.parent().next().html(FormatoNumero(pu * cant, 2));
|
|
//console.log(pu);
|
|
//console.log(cant);
|
|
//console.log(pu * cant);
|
|
}
|
|
|
|
function loadpage() {
|
|
$('.AjustaT').each(function () {
|
|
AjustaTotales($(this));
|
|
})
|
|
$('.AjustaT').change(function () {
|
|
AjustaTotales($(this));
|
|
});
|
|
}
|
|
jQuery(document).ready(function () {
|
|
loadpage();
|
|
Sys.Application.add_load(function (s, e) {
|
|
loadpage();
|
|
});
|
|
});
|
|
/*mover esta funcion al final*/
|
|
//function AjustarTotales() {
|
|
// $get('C_Tab_TabEstimaciones_BtnCalcularTotalesContrato').click();
|
|
//}
|
|
// ****************************************************************************************************************************************************************************
|
|
|
|
|
|
// bad implementation
|
|
function sleep(milliSeconds) {
|
|
var startTime = new Date().getTime(); // get the current time
|
|
while (new Date().getTime() < startTime + milliSeconds); // hog cpu
|
|
}
|
|
|
|
function PrendeTextBox(Chk, Obj, Saldo, Row) {
|
|
$get("HdnTipoDescuento").value = "3";
|
|
if ($("#" + Chk.id).is(":checked")) {
|
|
$get(Obj).readOnly = false;
|
|
$get(Row).style.backgroundColor = "#82b6db";
|
|
$get(Obj).focus();
|
|
var total = parseFloat($('#<%= LblSaldoVenta.ClientID%>').text().replace(',', ''));
|
|
$get(Obj).value = 0;
|
|
var suma = 0;
|
|
$('#<%= GVAnticipos.ClientID%> input[type="text"]').each(function (index) {
|
|
var currentsaldo = parseFloat($(this).val())
|
|
if (isNaN(currentsaldo)) { currentsaldo = 0 }
|
|
suma = currentsaldo + suma;
|
|
});
|
|
var txtvalue = total - suma;
|
|
if (txtvalue < 0) { txtvalue = 0; }
|
|
if (txtvalue < Saldo) { Saldo = txtvalue.toFixed(2); }
|
|
$get(Obj).value = Saldo;
|
|
$get("HdnAnticipos").value = parseFloat($get("HdnAnticipos").value) + parseFloat(Saldo);
|
|
} else {
|
|
$get(Obj).readOnly = true;
|
|
$get("HdnAnticipos").value = parseFloat($get("HdnAnticipos").value) - parseFloat($get(Obj).value);
|
|
$get(Obj).value = "";
|
|
$get(Row).style.backgroundColor = "#ffffff";
|
|
}
|
|
//if ($("input:checkbox:not(:checked)"))
|
|
SetText2($get("LblTotalAnticipos"), formato_numero($get("HdnAnticipos").value, 2, '.', ','));
|
|
}
|
|
function imprimircotizacion() {
|
|
__doPostBack('ctl00$HB$LnkImprimir', '');
|
|
}
|
|
function ValidaMontoMenor(Obj, Monto) {
|
|
debugger;
|
|
Monto = ToDouble($('#C_Tab_TabGenerales_TxtTotal').val())
|
|
|
|
var ValorTxt = Obj.value;
|
|
var suma = 0;
|
|
var total = parseFloat($('#<%= LblSaldoVenta.ClientID%>').text().replace(',', ''));
|
|
$('#<%= GVAnticipos.ClientID%> input[type="text"]').each(function (index) {
|
|
var currentsaldo = parseFloat($(this).val())
|
|
if (isNaN(currentsaldo)) { currentsaldo = 0 }
|
|
suma = currentsaldo + suma;
|
|
});
|
|
var txtvalue = (total - suma) + parseFloat(ValorTxt);
|
|
if (txtvalue < 0) { txtvalue = 0; }
|
|
if (txtvalue < Monto) { Monto = txtvalue.toFixed(2); }
|
|
|
|
if (isNaN(ValorTxt))
|
|
ValorTxt = 0;
|
|
if (isNaN(Monto))
|
|
Monto = 0;
|
|
if (parseFloat(ValorTxt) < 0) {
|
|
ValorTxt = 0;
|
|
Obj.value = 0;
|
|
}
|
|
|
|
if (parseFloat(ValorTxt) > parseFloat(Monto)) {
|
|
alert("El monto de ''Anticipo a Amortizar'' no puede ser mayor al monto del ''Anticipo''");
|
|
Obj.value = Monto;
|
|
}
|
|
|
|
|
|
// else {
|
|
// if (parseFloat(Obj.value) > parseFloat($get("HdnAnticipos").value))
|
|
// $get("HdnAnticipos").value = parseFloat($get("HdnAnticipos").value) + (parseFloat($get("HdnAnticipos").value) + parseFloat(ValorTxt));
|
|
// else if (parseFloat(Obj.value) < parseFloat($get("HdnAnticipos").value))
|
|
// $get("HdnAnticipos").value = parseFloat($get("HdnAnticipos").value) - (parseFloat($get("HdnAnticipos").value) - parseFloat(ValorTxt));
|
|
// }
|
|
// SetText2($get("LblTotalAnticipos"), formato_numero($get("HdnAnticipos").value, 2, '.', ','));
|
|
}
|
|
function ImprimirCotizacion() {
|
|
__doPostBack('ctl00$HB$LNKImprimirCotizacion', '');
|
|
}
|
|
function SetText2(ObjTo, Value) {
|
|
ObjTo.innerText = Value;
|
|
}
|
|
|
|
function ValidarCantidad(t, c) {
|
|
if (t.value > c) {
|
|
|
|
t.value = c;
|
|
}
|
|
}
|
|
|
|
function Comma(Num) { //function to add commas to textboxes
|
|
Num += '';
|
|
Num = Num.replace(',', ''); Num = Num.replace(',', ''); Num = Num.replace(',', '');
|
|
Num = Num.replace(',', ''); Num = Num.replace(',', ''); Num = Num.replace(',', '');
|
|
x = Num.split('.');
|
|
x1 = x[0];
|
|
x2 = x.length > 1 ? '.' + x[1] : '';
|
|
var rgx = /(\d+)(\d{3})/;
|
|
while (rgx.test(x1))
|
|
x1 = x1.replace(rgx, '$1' + ',' + '$2');
|
|
return x1 + x2;
|
|
}
|
|
|
|
function AddCodigoBarrasSerie(e) {
|
|
if (e.keyCode == 13 || e.which == 13) {
|
|
$('#BtnCodigoBarrasSerie').click();
|
|
}
|
|
}
|
|
|
|
//SERIE PS
|
|
function SeriePS(e, b, txt, hdn) {
|
|
debugger;
|
|
if (e.keyCode == 13 || e.which == 13) {
|
|
if (txt.value != "" && txt.value != hdn.value) {
|
|
$(b).click();
|
|
}
|
|
}
|
|
}
|
|
|
|
function SeriePSBlur(b, txt, hdn) {
|
|
debugger;
|
|
if (txt.value != "" && txt.value != hdn.value) {
|
|
$(b).click();
|
|
}
|
|
}
|
|
|
|
//SERIE-LOTE INV
|
|
var H1 = "";
|
|
var H2 = "";
|
|
var T = "";
|
|
|
|
function EnterAFEdit(event, Txt, Hdn1, Hdn2) {
|
|
if (event.which == 13 || event.keyCode == 13) {
|
|
H1 = Hdn1;
|
|
H2 = Hdn2;
|
|
T = Txt;
|
|
$get("HdnCodAFEdit").value = Txt.value;
|
|
|
|
$('#BtnVinculaAFEdit').click();
|
|
}
|
|
}
|
|
|
|
function AFBlurEdit(Txt, Hdn1, Hdn2) {
|
|
if (Txt.value.length > 0 && Txt.value != Hdn2.value) {
|
|
H1 = Hdn1;
|
|
H2 = Hdn2;
|
|
T = Txt;
|
|
$get("HdnCodAFEdit").value = Txt.value;
|
|
$('#BtnVinculaAFEdit').click();
|
|
}
|
|
}
|
|
|
|
function EnterAFEditOK(Cve, Codigo) {
|
|
$get(H1.id).value = Cve;
|
|
$get(H2.id).value = Codigo;
|
|
$get(T.id).value = (Codigo == -1) ? "" : Codigo;
|
|
|
|
}
|
|
|
|
//Suma Totales
|
|
function FnSuma() {
|
|
debugger;
|
|
|
|
$get('TxtSubTotal2').value = FormatoNumero(ToDouble($get('TxtSubTotal').value) - ToDouble($get('LblDescuentos').innerHTML) - ToDouble($get('LblAmortizacion').innerHTML), 2);
|
|
var totalVenta = ToDouble($get('TxtSubTotal2').value) + ToDouble($get('TxtIVA').value) + ToDouble($get('TxtIEPS').value) - ToDouble($get('TxtRetIVA').value) - ToDouble($get('TxtRetISR').value);
|
|
|
|
$("#<%=GvImpuestosLocales2.ClientID%> input[type='text']").each(function () {
|
|
totalVenta -= ToDouble($(this).val().toString());
|
|
});
|
|
|
|
|
|
$('#TxtTotal').attr('value', FormatoNumero(totalVenta, 2));
|
|
$get('HdnTotalVenta').value = FormatoNumero(totalVenta, 2);
|
|
|
|
|
|
}
|
|
|
|
function chkAnt(t, txt, importe) {
|
|
debugger;
|
|
$get("HdnTipoDescuento").value = "3";
|
|
var Total = ToDouble($get('TxtTotal').value);
|
|
|
|
var SaldoCompra = parseFloat(parseFloat($get('HdnVentaSaldo').value).toFixed(2));
|
|
|
|
if (t.checked) {
|
|
|
|
if (SaldoCompra > 0) {
|
|
if (SaldoCompra > importe) {
|
|
txt.value = importe.toFixed(2);
|
|
SaldoCompra = SaldoCompra - importe;
|
|
$get('HdnVentaSaldo').value = SaldoCompra;
|
|
|
|
} else {
|
|
txt.value = SaldoCompra.toFixed(2);
|
|
SaldoCompra = 0.00;
|
|
$get('HdnVentaSaldo').value = SaldoCompra;
|
|
}
|
|
|
|
} else {
|
|
t.checked = false;
|
|
}
|
|
|
|
} else {
|
|
|
|
$get('HdnVentaSaldo').value = parseFloat(SaldoCompra) + parseFloat(txt.value);
|
|
txt.value = "";
|
|
}
|
|
|
|
$("#LblTotalAnticipos").text(FormatoNumero(FnSumaValoresAnt(), 2));
|
|
|
|
|
|
}
|
|
|
|
function FnCambiaAnt(chk, txt, saldo) {
|
|
|
|
var Total = ToDouble($get('TxtTotal').value);
|
|
|
|
var SaldoCompra = (Total - FnSumaValoresAnt() + ToDouble(txt.value)).toFixed(2); // le agrego lo del valor actual para validarlo //parseFloat(parseFloat($get('HdnVentaSaldo').value).toFixed(2));
|
|
if (SaldoCompra < 0) txt.value = SaldoCompra - txt.value;
|
|
//minimo entre saldocompra y el saldoanticipo
|
|
if (SaldoCompra < saldo) saldo = SaldoCompra;
|
|
|
|
if (ToDouble(txt.value) > 0) {
|
|
chk.checked = true;
|
|
} else {
|
|
chk.checked = false;
|
|
}
|
|
|
|
if (ToDouble(txt.value) > saldo) {
|
|
txt.value = saldo;
|
|
alert("El Importe no debe de exceder a el saldo");
|
|
}
|
|
debugger;
|
|
$("#LblTotalAnticipos").text(FormatoNumero(FnSumaValoresAnt(), 2));
|
|
$get('HdnVentaSaldo').value = Total - FnSumaValoresAnt();
|
|
}
|
|
|
|
function FnSumaValoresAnt() {
|
|
var totalPoints = 0;
|
|
var t = '';
|
|
|
|
|
|
$('input[name*=TxtAnticipo]').each(function () {
|
|
totalPoints += ToDouble($(this).val());
|
|
});
|
|
|
|
|
|
return Math.round(totalPoints * 100) / 100;
|
|
}
|
|
|
|
function showDivEC() {
|
|
|
|
$('#<%= TxtNombreCliente.ClientID %>').val('');
|
|
$('#<%= TxtDireccionCliente.ClientID %>').val('');
|
|
$('#<%= TxtNumExtCliente.ClientID %>').val('');
|
|
$('#<%= TxtNumIntCliente.ClientID %>').val('');
|
|
$('#<%= TxtCPCliente.ClientID %>').val('');
|
|
$('#<%= TxtColoniaCliente.ClientID %>').val('');
|
|
$('#<%= TxtTelefonoCliente.ClientID %>').val('');
|
|
$('#<%= TxtCiudadCliente.ClientID %>').val('');
|
|
$('#<%= TxtLocalidadCliente.ClientID %>').val('');
|
|
$('#<%= TxtEstadoCliente.ClientID %>').val('');
|
|
$('#<%= TxtPaisCliente.ClientID %>').val('');
|
|
$('#<%= TxtCorreoCliente.ClientID %>').val('');
|
|
|
|
$('#divAgregarCliente').modal();
|
|
}
|
|
|
|
function hideDivEC() {
|
|
$('#divAgregarCliente').modal('hide');
|
|
}
|
|
|
|
function CambiaAjuste(txt, txtajuste) {
|
|
Recalcula();
|
|
if (txtajuste != null) {
|
|
txtajuste.value = ToDouble(txt.value)
|
|
}
|
|
}
|
|
|
|
</script>
|
|
</asp:Content>
|