Merge branch 'master' of http://192.168.10.111:8383/SIG
This commit is contained in:
@@ -96,7 +96,7 @@
|
||||
<div id="DivDatosBancarios" runat="server" class="chequesie1">
|
||||
<div class="row">
|
||||
<label class="col-md-2">Movimiento:</label>
|
||||
<div class="col-md-4">
|
||||
<div class="col-md-5">
|
||||
<asp:DropDownList ID="DdlTipoTransaccion" CssClass="form-control input-sm select2me" runat="server" AppendDataBoundItems="true" AutoPostBack="true" DataTextField="TipoTransaccion" DataValueField="CveTipoTransaccion" ValidationGroup="GrpGuardar">
|
||||
</asp:DropDownList>
|
||||
<asp:RequiredFieldValidator ID="RFVTipoTransaccion" runat="server" ControlToValidate="DdlTipoTransaccion" InitialValue="-1" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Tipo Movimiento''</b> es necesario, por favor seleccione uno." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||||
@@ -114,10 +114,7 @@
|
||||
<ajax:ValidatorCalloutExtender ID="VCOCuenta" runat="server" HighlightCssClass="vco" TargetControlID="RFVCuenta" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="col-md-5" runat="server" id="DivTCDolaresDolares" visible="false">
|
||||
T.C:
|
||||
<asp:TextBox ID="TxtTCDolaresDolares" runat="server" placeholder="Tipo de Cambio" CssClass="form-control input-sm" MaxLength="12" Width="70px" ClientIDMode="Static" Style="text-align: right; display: inline-block;" />
|
||||
@@ -216,22 +213,22 @@
|
||||
<div class="col-md-3">
|
||||
<asp:TextBox ID="TxtAnticipo" runat="server" Width ="100px" ClientIDMode="Static" />
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-2" runat="server" id="Div3" visible="false">Liquidación:</div>
|
||||
<div class="col-md-2" runat="server" id="Div3" visible="false"> </div>
|
||||
<div class="col-md-3" runat="server" id="Div4" visible="false">
|
||||
<asp:CheckBox ID="CheckBox2" OnCheckedChanged="ChkLiquidacion_CheckedChanged" runat="server" AutoPostBack="true" />
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="row" id="divPrestamo" runat="server" visible="false" >
|
||||
<div class="col-md-2" >Préstamo:</div>
|
||||
<div class="col-md-3">
|
||||
<asp:TextBox ID="TxtPrestamo" runat="server" Width ="100px" ClientIDMode="Static" />
|
||||
<asp:TextBox ID="TxtPrestamoImporte" runat="server" Width="100px" ClientIDMode="Static"></asp:TextBox>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<asp:DropDownList ID="DdlPrestamo" runat="server" Width="40px" DataTextField="RazonSocial" DataValueField="CveIE"></asp:DropDownList>
|
||||
<asp:DropDownList ID="DdlPrestamo" runat="server" Width="100%" DataTextField="TextoDocumento" DataValueField="CveIE"></asp:DropDownList>
|
||||
</div>
|
||||
<div class="col-md-3" >Intereses:
|
||||
<asp:TextBox ID="TxtPrestamoIntereses" runat="server" Width="80px" ClientIDMode="Static"></asp:TextBox>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<asp:UpdatePanel ID="UpCuentaDeposito" UpdateMode="Conditional" runat="server">
|
||||
@@ -820,6 +817,24 @@
|
||||
Importe = Importe + ToDouble($get('TxtAnticipo').value);
|
||||
}
|
||||
}
|
||||
if ($get('TxtPrestamoImporte') != null) {
|
||||
|
||||
if ($get('TxtPrestamoImporte').value == '') {
|
||||
$get('TxtPrestamoImporte').value = 0.00;
|
||||
}
|
||||
else {
|
||||
Importe = Importe - ToDouble($get('TxtPrestamoImporte').value);
|
||||
}
|
||||
}
|
||||
if ($get('TxtPrestamoIntereses') != null) {
|
||||
|
||||
if ($get('TxtPrestamoIntereses').value == '') {
|
||||
$get('TxtPrestamoIntereses').value = 0.00;
|
||||
}
|
||||
else {
|
||||
Importe = Importe - ToDouble($get('TxtPrestamoIntereses').value);
|
||||
}
|
||||
}
|
||||
|
||||
if ($get('TxtOtrosImportes') != null) {
|
||||
if (pagoMultiple != 0) {
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -16,7 +16,7 @@
|
||||
<asp:Content ID="Content4" ContentPlaceHolderID="HB" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
||||
<%-- <li>
|
||||
<%-- <li>
|
||||
<asp:HyperLink NavigateUrl="javascript:;" data-toggle="modal" data-target="#DivTipoCambio" ID="ImgTipoCambio" runat="server"> <i class="fa fa-money"></i> Ver Dlls en pesos</asp:HyperLink>
|
||||
</li>
|
||||
<asp:UpdatePanel ID="UpAcciones" runat="server" UpdateMode="Conditional">
|
||||
@@ -25,13 +25,13 @@
|
||||
<asp:LinkButton ID="LnkVerGrafica" OnClick="LnkVerGrafica_Click" runat="server"><i class="fa fa-signal"></i> Ver Grafica</asp:LinkButton>
|
||||
</li>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</asp:UpdatePanel>--%>
|
||||
<li>
|
||||
<asp:LinkButton ID="LnkPdf" OnClick="LnkPdf_Click" runat="server"> <i class="fa fa-file-pdf-o" style="font-weight:bold;"></i> PDF</asp:LinkButton>
|
||||
<asp:LinkButton ID="LnkPdf" OnClick="LnkPdf_Click" runat="server"> <i class="fa fa-file-pdf-o" style="font-weight:bold;"></i>Generar PDF</asp:LinkButton>
|
||||
</li>
|
||||
<li>
|
||||
<asp:LinkButton ID="LnkExcel" OnClick="LnkExcel_Click" runat="server"><i class="fa fa-file-excel-o" style="font-weight:bold;"></i> Excel</asp:LinkButton>
|
||||
</li>--%>
|
||||
<asp:LinkButton ID="LnkExcel" OnClick="LnkExcel_Click" runat="server"><i class="fa fa-file-excel-o" style="font-weight:bold;"></i>Exportar Excel</asp:LinkButton>
|
||||
</li>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content6" ContentPlaceHolderID="HA" runat="Server">
|
||||
</asp:Content>
|
||||
|
||||
@@ -12,12 +12,42 @@ public partial class Ventas_RepVentasAutorizaciones : ClsPaginas
|
||||
|
||||
public partial class Ventas_RepVentasAutorizaciones : ClsPaginas
|
||||
{
|
||||
#region PROPIEDADES
|
||||
|
||||
private DataTable DtDatos
|
||||
{
|
||||
get { return DtDatos = (DataTable)ViewState["DtDatos"]; }
|
||||
|
||||
private DataTable DtDatos
|
||||
set { ViewState["DtDatos"] = value; }
|
||||
}
|
||||
private bool Consultado {
|
||||
get { return Consultado = (bool)ViewState["Consultado"]; }
|
||||
set { ViewState["Consultado"] = value; }
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
protected void LnkExcel_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (Consultado)
|
||||
{
|
||||
GvDatos.ExportToExcelG("RepVentasAutorizaciones" + DateTime.Now, "Reporte de Autorizaciones de Ventas", UsuarioActual);
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert("Por favor realice una consulta primero.");
|
||||
}
|
||||
}
|
||||
|
||||
protected void LnkPdf_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (Consultado) {
|
||||
GvDatos.GenerarReportePDF("Reporte de Autorizaciones de Ventas");
|
||||
} else {
|
||||
Alert("Por favor realice una consulta primero.");
|
||||
}
|
||||
}
|
||||
public override void VerifyRenderingInServerForm(System.Web.UI.Control control)
|
||||
{
|
||||
}
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
@@ -45,6 +75,7 @@ public partial class Ventas_RepVentasAutorizaciones : ClsPaginas
|
||||
DdlClientes.setEsWebService(true);
|
||||
|
||||
|
||||
txtFechaI.Text = DateTime.Now.ToShortDateString();
|
||||
txtFechaF.Text = DateTime.Now.ToShortDateString();
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user