Cambios para subproyecto y clasificacion
This commit is contained in:
@@ -85,19 +85,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="portlet-body" style="display: none">
|
<div class="portlet-body" style="display: none">
|
||||||
<div class="row">
|
|
||||||
<label class="col-md-1 truncate" style="width: 100px;">SubProyecto:</label>
|
|
||||||
<div class="col-md-2">
|
|
||||||
<asp:DropDownList ID="DdlSubProyectos" runat="server" AppendDataBoundItems="true" DataTextField="SubProyecto" DataValueField="CveSubProyecto" Class="table-group-action-input form-control input-inline input-small input-sm select2me" ValidationGroup="">
|
|
||||||
</asp:DropDownList>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<label class="col-md-1 truncate" style="width: 100px;">Clasificación:</label>
|
|
||||||
<div class="col-md-2">
|
|
||||||
<asp:DropDownList ID="DdlClasificacion" AutoPostBack="false" CssClass=" form-control input-sm select2me" runat="server" Width="50%" AppendDataBoundItems="true" DataTextField="Clasificacion" DataValueField="CveClasificacion">
|
|
||||||
</asp:DropDownList>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
@@ -109,11 +97,11 @@
|
|||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-5" runat="server">
|
<div class="col-md-6" runat="server" style="text-align: right;">
|
||||||
<label style="font-size:1.2em">Cuenta Deposito:</label>
|
<label style="font-size:1.2em">Cuenta Deposito:</label>
|
||||||
<asp:DropDownList ID="DdlCuentaDeposito" CssClass="form-control input-sm select2me" runat="server" AppendDataBoundItems="true" DataTextField="NumCuentaMoneda" DataValueField="CveCuenta" style="width: 300px;"></asp:DropDownList>
|
<asp:DropDownList ID="DdlCuentaDeposito" CssClass="form-control input-sm select2me" runat="server" AppendDataBoundItems="true" DataTextField="NumCuentaMoneda" DataValueField="CveCuenta" style="width: 300px;"></asp:DropDownList>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-2" runat="server">
|
<div class="col-md-3" runat="server" style="text-align: left;">
|
||||||
<div class="col-md-1" >
|
<div class="col-md-1" >
|
||||||
<label style="width:70px; font-size:1.2em;">Fecha:</label>
|
<label style="width:70px; font-size:1.2em;">Fecha:</label>
|
||||||
</div>
|
</div>
|
||||||
@@ -134,16 +122,35 @@
|
|||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-3" runat="server" ID="DivComision" Visible="false">
|
|
||||||
<label style="width: 70px; font-size:1.2em">Comisión:</label>
|
|
||||||
<asp:TextBox runat="server" ID="TxtComision"></asp:TextBox>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="col-md-2" style="text-align: right; font-size:1.2em;" runat="server" id="divLabelTotal" visible="false">
|
<div class="col-md-3" style="text-align: right; font-size:1.2em;" runat="server" id="divLabelTotal" visible="false">
|
||||||
<asp:label runat="server">Importe seleccionado: $</asp:label>
|
<asp:label runat="server">Seleccionado: $</asp:label>
|
||||||
<asp:label runat="server" ID="lblValorTotal">00.00</asp:label>
|
<asp:label runat="server" ID="lblValorTotal">00.00</asp:label>
|
||||||
|
<asp:label runat="server" ID="lblValorTotalSeleccionado" Visible="false"></asp:label>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
|
||||||
|
<div class="col-md-3" runat="server" Id="DivComision" Visible="false">
|
||||||
|
<label style="width: 70px; font-size:1.2em">Comisión:</label>
|
||||||
|
<asp:TextBox runat="server" ID="TxtComision" Class="table-group-action-input form-control input-inline input-small input-sm select2me" style="width: 70px;"></asp:TextBox>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<label class="col-md-1 truncate" style="width: 120px; font-size:1.2em; display: none" id="LblSubproyecto" >SubProyecto:</label>
|
||||||
|
<div class="col-md-2" style="display: none" id="divSubProyecton">
|
||||||
|
<asp:DropDownList ID="DdlSubProyectos" runat="server" AppendDataBoundItems="true" DataTextField="SubProyecto" DataValueField="CveSubProyecto" Class="table-group-action-input form-control input-inline input-small input-sm select2me">
|
||||||
|
</asp:DropDownList>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<label class="col-md-1 truncate" style="width: 120px; font-size:1.2em; display: none" id="LblClasificacion">Clasificación:</label>
|
||||||
|
<div class="col-md-2" style="display: none" id="divClasificacion">
|
||||||
|
<asp:DropDownList ID="DdlClasificacion" AutoPostBack="false" CssClass=" form-control input-sm select2me" runat="server" Width="50%" AppendDataBoundItems="true" DataTextField="Clasificacion" DataValueField="CveClasificacion">
|
||||||
|
</asp:DropDownList>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<br />
|
||||||
<div style="height:550px;overflow-x:scroll">
|
<div style="height:550px;overflow-x:scroll">
|
||||||
<asp:GridView ID="GvFacturas" runat="server" AutoGenerateColumns="False" DataKeyNames="CveVenta, CvePrePoliza, CveIE, TipoCambio, CveMoneda, CveCliente, IdCtaContableBancos, IdCtaContClientes, Importe, SerieFolio" CssClass="table table-striped table-advance table-hover" Style="text-align: center; float: right; width: 100%; font-size: medium;" GridLines="None">
|
<asp:GridView ID="GvFacturas" runat="server" AutoGenerateColumns="False" DataKeyNames="CveVenta, CvePrePoliza, CveIE, TipoCambio, CveMoneda, CveCliente, IdCtaContableBancos, IdCtaContClientes, Importe, SerieFolio" CssClass="table table-striped table-advance table-hover" Style="text-align: center; float: right; width: 100%; font-size: medium;" GridLines="None">
|
||||||
<Columns>
|
<Columns>
|
||||||
@@ -213,6 +220,9 @@
|
|||||||
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
||||||
<script type="text/javascript" language="javascript">
|
<script type="text/javascript" language="javascript">
|
||||||
|
|
||||||
|
var ValorTotalSeleccionado = 0
|
||||||
|
var comision = 0;
|
||||||
|
|
||||||
function FnSuma(chk, cantidad) {
|
function FnSuma(chk, cantidad) {
|
||||||
debugger;
|
debugger;
|
||||||
var saldo = ToDouble($('#C_lblValorTotal').text());
|
var saldo = ToDouble($('#C_lblValorTotal').text());
|
||||||
@@ -224,18 +234,41 @@
|
|||||||
saldo = saldo + cantidad;
|
saldo = saldo + cantidad;
|
||||||
debugger;
|
debugger;
|
||||||
$('#C_lblValorTotal').text(FormatoNumero(saldo, 2));
|
$('#C_lblValorTotal').text(FormatoNumero(saldo, 2));
|
||||||
|
$('#C_lblValorTotalSeleccionado').text(FormatoNumero(saldo, 2));
|
||||||
|
ValorTotalSeleccionado = saldo
|
||||||
|
|
||||||
debugger;
|
debugger;
|
||||||
}
|
}
|
||||||
|
|
||||||
var comision = 0;
|
|
||||||
|
|
||||||
function txtSuma(txt) {
|
function txtSuma(txt) {
|
||||||
var saldo = ToDouble($('#C_lblValorTotal').text());
|
var saldo = ToDouble($('#C_lblValorTotal').text());
|
||||||
var comision2 = ToDouble($('#C_TxtComision').val());
|
var comision2 = ToDouble($('#C_TxtComision').val());
|
||||||
comision2 = comision2 - comision
|
if (comision2 < ValorTotalSeleccionado) {
|
||||||
saldo = saldo - comision2;
|
comision2 = comision2 - comision
|
||||||
$('#C_lblValorTotal').text(FormatoNumero(saldo, 2));
|
saldo = saldo - comision2;
|
||||||
comision = ToDouble($('#C_TxtComision').val())
|
$('#C_lblValorTotal').text(FormatoNumero(saldo, 2));
|
||||||
|
comision = ToDouble($('#C_TxtComision').val())
|
||||||
|
} else {
|
||||||
|
$('#C_TxtComision').val(comision)
|
||||||
|
alert("No es posible poner una comision superior a lo seleccionado")
|
||||||
|
}
|
||||||
|
|
||||||
|
if (comision > 0) {
|
||||||
|
$('#LblSubproyecto').css("display", "block");
|
||||||
|
$('#divSubProyecton').css("display", "block");
|
||||||
|
$('#LblClasificacion').css("display", "block");
|
||||||
|
$('#divClasificacion').css("display", "block");
|
||||||
|
|
||||||
|
debugger;
|
||||||
|
|
||||||
|
} else {
|
||||||
|
$('#LblSubproyecto').css("display", "none");
|
||||||
|
$('#divSubProyecton').css("display", "none");
|
||||||
|
$('#LblClasificacion').css("display", "none");
|
||||||
|
$('#divClasificacion').css("display", "none");
|
||||||
|
debugger;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user