Pendientes BDH, mejoras servicion E141, mwjoras carga PS entradas/salidas,cambios en modalidad contable, favicon signals gps

This commit is contained in:
2021-04-01 00:57:04 -07:00
parent b4744cc504
commit 7349a64006
28 changed files with 663 additions and 303 deletions

View File

@@ -589,7 +589,7 @@
<asp:UpdatePanel ID="UpTurno" runat="server" UpdateMode="Conditional" class=" xspadding .nolineheight bordered whitoutcol" style="color: white;">
<ContentTemplate>
<div id="DivBloqueo" runat="server" style="width: 100%; text-align: center;" visible="false">
<asp:Button ID="BtnBloquearAcceso" CssClass="btn red-haze btn-outline btn-circle btn-sm" runat="server" Text="Bloquear Turno" OnClick="BtnBloquearAcceso_Click" />
<asp:Button ID="BtnBloquearAcceso" ClientIDMode="Static" CssClass="btn red-haze btn-outline btn-circle btn-sm" runat="server" Text="Bloquear Turno" OnClick="BtnBloquearAcceso_Click" />
</div>
</ContentTemplate>
</asp:UpdatePanel>
@@ -837,11 +837,11 @@
<td></td>
</tr>
<tr align="right">
<td><b style="font-size:18px">Total:</b></td>
<td><b style="font-size: 18px">Total:</b></td>
<td>
<asp:UpdatePanel runat="server">
<ContentTemplate>
<asp:TextBox ID="TxtTotal" runat="server" ClientIDMode="Static" BorderStyle="None" Style="text-align: right; font-weight: bold; font-size:18px" Text="0.00" Width="78px" ReadOnly="true"></asp:TextBox>
<asp:TextBox ID="TxtTotal" runat="server" ClientIDMode="Static" BorderStyle="None" Style="text-align: right; font-weight: bold; font-size: 18px" Text="0.00" Width="78px" ReadOnly="true"></asp:TextBox>
<asp:HiddenField ID="HdnVentaSaldo" runat="server" ClientIDMode="Static" Value="0" />
<asp:HiddenField ID="HdnTotalVenta" runat="server" ClientIDMode="Static" Value="0" />
</ContentTemplate>
@@ -1950,13 +1950,14 @@
<td colspan="1">
<asp:Label runat="server" Text="Código de Acceso:" Font-Bold="true" Width="120px" />
</td>
<td colspan="1" style="text-align:center">
<td colspan="1" style="text-align: center">
<asp:TextBox ID="TxtCodigoAcceso" runat="server" type="password"></asp:TextBox>
<asp:RequiredFieldValidator ID="RFVCodigoAcceso" runat="server" ControlToValidate="TxtCodigoAcceso" Display="None" ErrorMessage="<span class='has-error'><span id='username-error' class='help-block'>El campo <b>''Código de Acceso''</b> es necesario.</span></span>" ValidationGroup="GrpValidarCodigo"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td colspan="2" > <span class='has-error'><span id='username-error' class='help-block'><asp:Literal ID="LtlMensajeBloqueo" runat="server" Text=""></asp:Literal></span></span></td>
<td colspan="2"><span class='has-error'><span id='username-error' class='help-block'>
<asp:Literal ID="LtlMensajeBloqueo" runat="server" Text=""></asp:Literal></span></span></td>
</tr>
</table>
<asp:Button ID="BtnCambiar" runat="server" CssClass="btn btn-success btn-sm" Text="Desbloquear" ValidationGroup="GrpValidarCodigo" OnClick="BtnCambiar_Click" />
@@ -2861,9 +2862,9 @@
</div>
</div>
<asp:UpdatePanel ID="UpAjuste" runat="server" class="portlet-body form" UpdateMode="Conditional">
<Triggers>
<%--<Triggers>
<asp:PostBackTrigger ControlID="BtnPDFHistorial" />
</Triggers>
</Triggers>--%>
<ContentTemplate>
<div class="col-md-1" id="DivAjuste" runat="server" visible="false">
<div class="portlet light xspadding bordered">
@@ -3114,6 +3115,15 @@
</asp:Content>
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
<script type="text/javascript">
function bloquearAcceso() {
$('#BtnBloquearAcceso').click();
}
function descargarPDF(urlfactura, urlajuste) {
window.open(urlfactura, '_blank');
if (urlajuste != '') {
setTimeout(function () { window.open(urlajuste, '_blank'); }, 2000);
}
}
// Get the input field
var txtCodigoAcceso = document.getElementById("C_TxtCodigoAcceso");
@@ -3487,71 +3497,71 @@
$get("TxtCambio").value = FormatoNumero(total - totalVenta);
} else {
if ('<%= UsuarioActual.Empresa.Funcionalidad(531) %>' == '1') {
lblCambio.innerHTML = "Faltante:"
$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;
lblCambio.innerHTML = "Faltante:"
$get("TxtCambio").value = FormatoNumero(total - totalVenta);
} else {
cant = ToDouble(_this.val());
$get("TxtCambio").value = "$0.00"
}
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));
});
$get("TxtImporteContado").value = total;
}
// ****************************************************************************************************************************************************************************
// ************** Contratos **************************************************************************************************************************************************
function AjustaTotales(_this) {
var pu; var cant;
if (_this.val().trim() == '') {
cant = 0;
} else {
cant = ToDouble(_this.val());
}
jQuery(document).ready(function () {
loadpage();
Sys.Application.add_load(function (s, e) {
loadpage();
});
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));
});
/*mover esta funcion al final*/
//function AjustarTotales() {
// $get('C_Tab_TabEstimaciones_BtnCalcularTotalesContrato').click();
//}
// ****************************************************************************************************************************************************************************
}
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
}
// 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(',', ''));
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) {