--buscador de productos
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<%@ Page Title="Ventas - Facturación" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="Ventas.aspx.vb" Inherits="Ventas" EnableEventValidation="false" %>
|
||||
<%@ Page Title="Ventas - Facturación" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="Ventas.aspx.vb" Inherits="Ventas" EnableEventValidation="false" %>
|
||||
|
||||
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
|
||||
<%@ Register Src="~/UserControl/AddMedico.ascx" TagPrefix="UserControl" TagName="AddMedico" %>
|
||||
@@ -391,7 +391,7 @@
|
||||
<li>
|
||||
<asp:LinkButton ID="LnkSolicitarCredito" Visible="false" runat="server"><i class="fa fa-plus"></i>Solicitar autorización de crédito</asp:LinkButton>
|
||||
</li>
|
||||
<li>
|
||||
<li>
|
||||
<asp:LinkButton ID="LnkCancelarSoloCFDI" Visible="false" runat="server" data-toggle="confirmation" data-popout="true" data-original-title="¿Seguro que desea cancelar el CFDI?" data-btn-ok-label="si" OnClick="LnkCancelarSoloCFDI_Click"><i class="fa fa-plus"></i>Cancelar solo CFDI</asp:LinkButton>
|
||||
</li>
|
||||
|
||||
@@ -614,29 +614,29 @@
|
||||
<b>Paciente:</b>
|
||||
</td>
|
||||
<td runat="server">
|
||||
<asp:TextBox ID="TxtPaciente" runat="server" Style="width: 130px" MaxLength="50"></asp:TextBox>
|
||||
<asp:TextBox ID="TxtPaciente" runat="server" Style="width: 130px" MaxLength="50"></asp:TextBox>
|
||||
</td>
|
||||
<td runat="server" id="Td9" visible="true">
|
||||
<b>Episodio:</b>
|
||||
</td>
|
||||
<td runat="server">
|
||||
<asp:TextBox ID="TxtEpisodio" runat="server" Style="width: 130px" MaxLength="20"></asp:TextBox>
|
||||
<asp:TextBox ID="TxtEpisodio" runat="server" Style="width: 130px" MaxLength="20"></asp:TextBox>
|
||||
</td>
|
||||
</tr>
|
||||
<tr runat="server" id="TrVentasMedicas4" visible="false">
|
||||
<td runat="server" id="Td8">
|
||||
<b>Folio Remisión:</b>
|
||||
</td>
|
||||
<td runat="server">
|
||||
<asp:TextBox ID="TxtFolioRemision" runat="server" Style="width: 130px" MaxLength="20" Enabled="false"></asp:TextBox>
|
||||
</td>
|
||||
<td runat="server" id="Td10">
|
||||
<b>Tipo de Venta:</b>
|
||||
</td>
|
||||
<td runat="server">
|
||||
<asp:Label runat="server" ID="LblTipoVenta"></asp:Label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr runat="server" id="TrVentasMedicas4" visible="false">
|
||||
<td runat="server" id="Td8" >
|
||||
<b>Folio Remisión:</b>
|
||||
</td>
|
||||
<td runat="server">
|
||||
<asp:TextBox ID="TxtFolioRemision" runat="server" Style="width: 130px" MaxLength="20" Enabled="false"></asp:TextBox>
|
||||
</td>
|
||||
<td runat="server" id="Td10" >
|
||||
<b>Tipo de Venta:</b>
|
||||
</td>
|
||||
<td runat="server">
|
||||
<asp:Label runat="server" ID="LblTipoVenta"></asp:Label>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
@@ -892,88 +892,88 @@
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
|
||||
<asp:UpdatePanel ID="UpEstatus" runat="server" visible="false" UpdateMode="Conditional" class="portlet light xspadding bordered whitoutcol" style="margin-left: auto">
|
||||
<asp:UpdatePanel ID="UpEstatus" runat="server" Visible="false" UpdateMode="Conditional" class="portlet light xspadding bordered whitoutcol" style="margin-left: auto">
|
||||
<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="portlet-title">
|
||||
<div class="caption font-green">
|
||||
<i class="icon-pin font-green"></i>
|
||||
<span class="caption-subject bold uppercase">Estatus</span>
|
||||
|
||||
<div class="tools">
|
||||
<a href="javascript:;" class="collapse"></a>
|
||||
</div>
|
||||
<div class="actions">
|
||||
<div class="btn-group">
|
||||
</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"></asp:HyperLink><asp:HyperLink runat="server" CssClass="Texto thickbox" Visible="false" ID="HplPagado" Text="<b>PAGADO<b>"></asp:HyperLink>
|
||||
<asp:HiddenField ID="HdnPagado" runat="server" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr align="left">
|
||||
<td><b>Estatus:</b> </td>
|
||||
<td>
|
||||
<asp:Label ID="LbEstatus" Text="" runat="server" />
|
||||
<%--<asp:DropDownList ID="DdlEstatus" AppendDataBoundItems="true" runat="server" CssClass="form-control input-sm select2me" DataTextField="EstatusFactura" DataValueField="CveEstatusFactura" Width="128px">
|
||||
<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="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"></asp:HyperLink><asp:HyperLink runat="server" CssClass="Texto thickbox" Visible="false" ID="HplPagado" Text="<b>PAGADO<b>"></asp:HyperLink>
|
||||
<asp:HiddenField ID="HdnPagado" runat="server" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr align="left">
|
||||
<td><b>Estatus:</b> </td>
|
||||
<td>
|
||||
<asp:Label ID="LbEstatus" Text="" runat="server" />
|
||||
<%--<asp:DropDownList ID="DdlEstatus" AppendDataBoundItems="true" 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 class="truncate">Fecha registró:</b> </td>
|
||||
<td>
|
||||
<asp:Label ID="LblFechaRegistro" runat="server"></asp:Label></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>
|
||||
|
||||
</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 class="truncate">Fecha registró:</b> </td>
|
||||
<td>
|
||||
<asp:Label ID="LblFechaRegistro" runat="server"></asp:Label></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>
|
||||
@@ -3491,7 +3491,7 @@
|
||||
|
||||
<div class="row" style="margin-bottom: 10px;">
|
||||
<div class="text-right col-md-offset-8 col-md-4">
|
||||
<input type="text" id="TxtBusqueda" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GvContratoDetalles.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
||||
<input type="text" id="TxtBusquedaCon" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusquedaCon','{0}')", GvContratoDetalles.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
||||
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GvContratoDetalles.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
@@ -4485,7 +4485,7 @@
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="row">
|
||||
<div class="col-md-12" style="display:flex; justify-content:center;">
|
||||
<div class="col-md-12" style="display: flex; justify-content: center;">
|
||||
<asp:RadioButtonList ID="RblTipoAutorizacionDesc" runat="server" CssClass="rbl" RepeatDirection="Horizontal" RepeatLayout="Table" OnSelectedIndexChanged="RblTipoAutorizacionDesc_SelectedIndexChanged" AutoPostBack="true">
|
||||
<asp:ListItem Text="Usuario y contraseña" Value="1"></asp:ListItem>
|
||||
<asp:ListItem Text="Código de acceso" Value="2"></asp:ListItem>
|
||||
@@ -4536,11 +4536,11 @@
|
||||
</div>
|
||||
</asp:Panel>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="DivAnticipos" class="modal ADS fade" role="dialog">
|
||||
<asp:UpdatePanel runat="server" ID="UpAnticipos" UpdateMode="Conditional" RenderMode="Inline">
|
||||
<ContentTemplate>
|
||||
<div class="modal-dialog" >
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header ">
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
@@ -4632,7 +4632,7 @@
|
||||
<asp:TemplateField>
|
||||
<ItemTemplate>
|
||||
<asp:CheckBox ID="Chk" runat="server" />
|
||||
<asp:LinkButton ID="LnkSolicitarActivarAnticipo" Visible="false" NavigateUrl="#" CssClass="btn btn-circle btn-sm blue" Text="<i class='fa fa-check'></i>" tooltip="Solicitar activar anticipo" runat="server" OnClick="LnkSolicitarActivarAnticipo_Click" />
|
||||
<asp:LinkButton ID="LnkSolicitarActivarAnticipo" Visible="false" NavigateUrl="#" CssClass="btn btn-circle btn-sm blue" Text="<i class='fa fa-check'></i>" ToolTip="Solicitar activar anticipo" runat="server" OnClick="LnkSolicitarActivarAnticipo_Click" />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField>
|
||||
@@ -4698,7 +4698,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
|
||||
@@ -10593,26 +10593,44 @@
|
||||
if (indexd == 0) {
|
||||
var tr = $('<tr></tr>'); tbody.append(tr);
|
||||
var td;
|
||||
let idxHeader = 0;
|
||||
for (var key in item) {
|
||||
if (!(key == "text" || key == "id")) { td = $('<td style="font-weight:bold;">' + key + '</td>'); tr.append(td); }
|
||||
if (idxHeader == 0 && '<%= UsuarioActual.Empresa.Funcionalidad(382) %>' == '1') {
|
||||
tr.append('<td style="font-weight:bold;"> </td>');
|
||||
}
|
||||
if (!(key == "text" || key == "id")) {
|
||||
td = $('<td style="font-weight:bold;">' + key + '</td>');
|
||||
tr.append(td);
|
||||
}
|
||||
idxHeader += 1;
|
||||
}
|
||||
}
|
||||
var tr = $('<tr></tr>'); tbody.append(tr);
|
||||
|
||||
var td;
|
||||
let idxColumn = 0;
|
||||
for (var key in item) {
|
||||
|
||||
if (idxColumn == 0 && '<%= UsuarioActual.Empresa.Funcionalidad(382) %>' == '1') {
|
||||
let tdExistencia = '<a href="javascript:void(0);" onclick="javascript:AbrirVentana(' + "'/Inventarios/PopUpExistenciasAlmacen.aspx?CvePS=" + item.id + "'" + ", 800, 547," + "'N'" + ",'PopUpBuscar');$('#C_Tab_TabGenerales_DdlPS > select').select2('close');" + '"> <i class="fa fa-eye" aria-hidden="true"></i> </a>';
|
||||
tr.append('<td>' + tdExistencia + '</td>');
|
||||
}
|
||||
|
||||
if (!(key == "text" || key == "id")) {
|
||||
if ((item[key] > 0)) {
|
||||
td = $('<td style = "font-weight:bold;" >' + item[key] + '</td>'); tr.append(td);
|
||||
} else {
|
||||
if ('<%= UsuarioActual.Empresa.Funcionalidad(566) %>' == '1') {
|
||||
var buscarAlmacenes = "CargaExistenciasSucursales(" + item.id + ",'" + item.text + "');"
|
||||
td = $('<td>' + item[key] + ' <button type="button" class="btn btn-xs btn-primary" onclick="' + buscarAlmacenes + '">Ver mas existencias</button></td>'); tr.append(td);
|
||||
td = $('<td>' + item[key] + ' <button type="button" class="btn btn-xs btn-primary" onclick="' + buscarAlmacenes + '">Ver mas existencias</button></td>');
|
||||
tr.append(td);
|
||||
} else {
|
||||
td = $('<td>' + item[key] + '</td>'); tr.append(td);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
idxColumn += 1;
|
||||
}
|
||||
indexd += 1;
|
||||
});
|
||||
|
||||
@@ -25642,7 +25642,7 @@ Partial Class Ventas
|
||||
|
||||
Dim AplicaCancelacionConPagos As Boolean = False
|
||||
|
||||
If UsuarioActual.CveRol = 1 AndAlso UsuarioActual.Empresa.Funcionalidad(109) = "1" AndAlso ObjFactura.TipoDocto.Contiene("Ing", "Rem") AndAlso Not EsRefacturacion AndAlso ObjFactura.Pagado > 0 Then
|
||||
If UsuarioActual.Empresa.Funcionalidad(109) = "1" AndAlso ObjFactura.TipoDocto.Contiene("Ing", "Rem") AndAlso Not EsRefacturacion AndAlso ObjFactura.Pagado > 0 Then
|
||||
AplicaCancelacionConPagos = True
|
||||
End If
|
||||
|
||||
@@ -38461,5 +38461,9 @@ Partial Class Ventas
|
||||
End Sub
|
||||
#End Region
|
||||
|
||||
Public Function GeneraLigaExistencias() As String
|
||||
|
||||
Return "<a href='javascript:void(0);' class='Texto' onclick=''javascript:AbrirVentana('/Ventas/PopUpBuscarClientes.aspx?Opt=Fact', 800, 547, 'N', 'PopUpBuscar')''> ver </a>"
|
||||
End Function
|
||||
End Class
|
||||
|
||||
|
||||
Reference in New Issue
Block a user