Merge branch 'master' of http://192.168.10.111:8383/SIG
This commit is contained in:
@@ -15,11 +15,11 @@
|
|||||||
|
|
||||||
<asp:UpdatePanel ID="UpDatos" UpdateMode="Conditional" runat="server">
|
<asp:UpdatePanel ID="UpDatos" UpdateMode="Conditional" runat="server">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<div class="row col-md-12" align="right">
|
<div class="" align="right">
|
||||||
<input type="text" id="TxtBusqueda" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GvDatos.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
<input type="text" id="TxtBusqueda" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GvDatos.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
||||||
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GvDatos.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GvDatos.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||||||
</div>
|
</div>
|
||||||
<div class="row col-md-12">
|
<div class="">
|
||||||
<asp:GridView CssClass="table table-hover table-advance Widthall ScrollAD" ID="GvDatos" runat="server" GridLines="None" EmptyDataText="No se encontrarios movimientos." OnRowDataBound="GvDatos_RowDataBound" AutoGenerateColumns="False" DataKeyNames="" ShowHeaderWhenEmpty="true">
|
<asp:GridView CssClass="table table-hover table-advance Widthall ScrollAD" ID="GvDatos" runat="server" GridLines="None" EmptyDataText="No se encontrarios movimientos." OnRowDataBound="GvDatos_RowDataBound" AutoGenerateColumns="False" DataKeyNames="" ShowHeaderWhenEmpty="true">
|
||||||
<Columns>
|
<Columns>
|
||||||
<asp:BoundField HeaderText="Fecha" DataField="Fecha" DataFormatString="{0:d}" ItemStyle-Width="60px" ItemStyle-HorizontalAlign="Center" />
|
<asp:BoundField HeaderText="Fecha" DataField="Fecha" DataFormatString="{0:d}" ItemStyle-Width="60px" ItemStyle-HorizontalAlign="Center" />
|
||||||
|
|||||||
@@ -149,11 +149,11 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row col-md-12" align="right">
|
<div class="" align="right">
|
||||||
<input type="text" id="TxtBusqueda" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GvDatos.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
<input type="text" id="TxtBusqueda" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GvDatos.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
||||||
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GvDatos.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GvDatos.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||||||
</div>
|
</div>
|
||||||
<div class="row col-md-12">
|
<div class="">
|
||||||
<asp:GridView ID="GvCaracteristicas" runat="server" GridLines="None" AutoGenerateColumns="False" DataKeyNames="CveCaracteristicaClasificacion,CveCaracteristica,TipoCampo,Requerida" ShowHeaderWhenEmpty="true" CssClass="table table-hover table-advance Widthall ScrollAD">
|
<asp:GridView ID="GvCaracteristicas" runat="server" GridLines="None" AutoGenerateColumns="False" DataKeyNames="CveCaracteristicaClasificacion,CveCaracteristica,TipoCampo,Requerida" ShowHeaderWhenEmpty="true" CssClass="table table-hover table-advance Widthall ScrollAD">
|
||||||
<Columns>
|
<Columns>
|
||||||
<asp:TemplateField ItemStyle-Width="132px">
|
<asp:TemplateField ItemStyle-Width="132px">
|
||||||
|
|||||||
@@ -926,7 +926,7 @@ Public Class ClsAcumuladores
|
|||||||
|
|
||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
Public Function DistribuidorMovtosGet(CveCliente As Integer, CveEmpresa As Integer, Optional FechaI As Date = MinFecha, Optional FechaF As Date = MaxFecha) As Boolean
|
Public Function DistribuidorMovtosGet(CveCliente As Integer, CveEmpresa As Integer, Optional FechaI As Date = MinFecha, Optional FechaF As Date = MaxFecha, Optional CveVentaRNCCargo As Integer = -1) As Boolean
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
'Data = New DataTable
|
'Data = New DataTable
|
||||||
|
|
||||||
@@ -937,6 +937,7 @@ Public Class ClsAcumuladores
|
|||||||
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
||||||
.Add("@FechaI", SqlDbType.Date).Value = FechaI
|
.Add("@FechaI", SqlDbType.Date).Value = FechaI
|
||||||
.Add("@FechaF", SqlDbType.Date).Value = FechaF
|
.Add("@FechaF", SqlDbType.Date).Value = FechaF
|
||||||
|
.Add("@CveVentaRNCCargo", SqlDbType.Int).Value = CveVentaRNCCargo
|
||||||
End With
|
End With
|
||||||
|
|
||||||
Try
|
Try
|
||||||
|
|||||||
@@ -5612,6 +5612,7 @@ Namespace Modelos
|
|||||||
Public Property RefacturacionGeneroNC As Boolean = False
|
Public Property RefacturacionGeneroNC As Boolean = False
|
||||||
Public Property Pagado As Decimal
|
Public Property Pagado As Decimal
|
||||||
Public Property DescuentoProntoPago As Decimal
|
Public Property DescuentoProntoPago As Decimal
|
||||||
|
Public Property CveVentaRNCCargo As Integer
|
||||||
'Public Property Sucursal As SucursalModel
|
'Public Property Sucursal As SucursalModel
|
||||||
Public Property SubProyecto As Modelos.SubProyectoModel
|
Public Property SubProyecto As Modelos.SubProyectoModel
|
||||||
|
|
||||||
|
|||||||
@@ -43,18 +43,56 @@ Public Class SIGWeb : Implements IHttpHandler, IRequiresSessionState
|
|||||||
ActualizaPrePoliza(context)
|
ActualizaPrePoliza(context)
|
||||||
Case "getpersonal"
|
Case "getpersonal"
|
||||||
getpersonal(context)
|
getpersonal(context)
|
||||||
|
Case "getcontratos"
|
||||||
|
GetContratos(context)
|
||||||
Case "GettingCURP"
|
Case "GettingCURP"
|
||||||
context.Response.Write(GettingCURP(context.Request("Curp").ToString(), context.Request("year").ToString().ToEntero()))
|
context.Response.Write(GettingCURP(context.Request("Curp").ToString(), context.Request("year").ToString().ToEntero()))
|
||||||
Case "ValidaCURP"
|
Case "ValidaCURP"
|
||||||
context.Response.Write(ValidaCURP(context.Request("Curp").ToString()))
|
context.Response.Write(ValidaCURP(context.Request("Curp").ToString()))
|
||||||
Case "sendMail"
|
Case "sendMail"
|
||||||
context.Response.Write(sendMail(context))
|
context.Response.Write(sendMail(context))
|
||||||
|
Case "sendMailLPM"
|
||||||
|
context.Response.Write(sendMail(context))
|
||||||
|
|
||||||
End Select
|
End Select
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
ex.GuardaLog(ex.Message)
|
ex.GuardaLog(ex.Message)
|
||||||
End Try
|
End Try
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Private Function sendMailLPM(context As HttpContext) As String
|
||||||
|
Dim retorno As String = "true"
|
||||||
|
Dim nombre As String = ""
|
||||||
|
Dim correo As String = ""
|
||||||
|
Dim asunto As String = ""
|
||||||
|
Dim cuerpo As String = ""
|
||||||
|
Dim obj = context.Request("Nombre") 'Nombre=' + $('#Nombre').val() +'Correo=' + $('#Correo').val() +'Sitio=' + $('#Sitio').val() +'Cuerpo=' + $('#Cuerpo').val() +
|
||||||
|
If Not IsNothing(obj) Then
|
||||||
|
nombre = obj.ToString()
|
||||||
|
End If
|
||||||
|
obj = context.Request("Correo")
|
||||||
|
If Not IsNothing(obj) Then
|
||||||
|
correo = obj.ToString()
|
||||||
|
End If
|
||||||
|
obj = context.Request("Asunto")
|
||||||
|
If Not IsNothing(obj) Then
|
||||||
|
asunto = obj.ToString()
|
||||||
|
End If
|
||||||
|
obj = context.Request("Cuerpo")
|
||||||
|
If Not IsNothing(obj) Then
|
||||||
|
cuerpo = obj.ToString().Replace("< ", "<")
|
||||||
|
End If
|
||||||
|
Dim Body As String = String.Format("Prospecto : {0}<br/>Correo : {1}<br/>Asunto : {2}<br/><br/>{3}", nombre, correo, asunto, cuerpo)
|
||||||
|
Dim para As String = "contacto@localizacionprecisa.com;caudillo.90d@gmail.com;"
|
||||||
|
'para = ""
|
||||||
|
Dim Mail As New ClsSisMail()
|
||||||
|
If Mail.SendMail(ClsPaginas.EmpresaNotificaciones, para, "NotificaciónProspecto", Body) Then
|
||||||
|
retorno = "true"
|
||||||
|
Else
|
||||||
|
retorno = "false"
|
||||||
|
End If
|
||||||
|
Return retorno
|
||||||
|
End Function
|
||||||
Private Function sendMail(context As HttpContext) As String
|
Private Function sendMail(context As HttpContext) As String
|
||||||
Dim retorno As String = "true"
|
Dim retorno As String = "true"
|
||||||
Dim nombre As String = ""
|
Dim nombre As String = ""
|
||||||
@@ -1080,4 +1118,38 @@ Public Class SIGWeb : Implements IHttpHandler, IRequiresSessionState
|
|||||||
Return retorno
|
Return retorno
|
||||||
End Function
|
End Function
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
|
#Region "Get Contratos"
|
||||||
|
Private Function GetContratos(ByVal context As HttpContext) As String
|
||||||
|
Dim retorno As String = ""
|
||||||
|
Dim DtRetorno As DataTable = Nothing
|
||||||
|
|
||||||
|
Dim usuario As Usuario = UsuarioActual(context)
|
||||||
|
Dim CveEmpresa As String
|
||||||
|
If IsNothing(usuario) Then
|
||||||
|
context.Response.Write("")
|
||||||
|
Else
|
||||||
|
CveEmpresa = usuario.CveEmpresa
|
||||||
|
Dim Name = IfNull(context.Request("Name"), "-1").ToString
|
||||||
|
|
||||||
|
Dim dt As DataTable = DirectCast(context.Application("GlobalDTContratos"), DataTable).FiltraParametros(String.Format("CveEmpresa = {0}", CveEmpresa))
|
||||||
|
If dt IsNot Nothing AndAlso dt.Rows.Count > 0 Then
|
||||||
|
DtRetorno = dt.FiltraParametros(String.Format("NumeroContrato like '%{0}%'", Name))
|
||||||
|
End If
|
||||||
|
dt.Dispose()
|
||||||
|
End If
|
||||||
|
|
||||||
|
If DtRetorno IsNot Nothing AndAlso DtRetorno.Rows.Count > 0 Then
|
||||||
|
DtRetorno.Columns("CveContrato").ColumnName = "id"
|
||||||
|
DtRetorno.Columns("NumeroContrato").ColumnName = "text"
|
||||||
|
retorno = JsonConvert.SerializeObject(DtRetorno).ToString
|
||||||
|
context.Response.Write(retorno)
|
||||||
|
Else
|
||||||
|
context.Response.Write("[]")
|
||||||
|
End If
|
||||||
|
|
||||||
|
DtRetorno.Dispose()
|
||||||
|
Return retorno
|
||||||
|
End Function
|
||||||
|
#End Region
|
||||||
End Class
|
End Class
|
||||||
@@ -100,7 +100,7 @@
|
|||||||
<br />
|
<br />
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
<div class="row col-md-12" align="right">
|
<div class="" align="right">
|
||||||
<input type="text" id="TxtBusqueda" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GvDatos.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
<input type="text" id="TxtBusqueda" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GvDatos.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
||||||
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GvDatos.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GvDatos.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -2186,7 +2186,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="portlet-body">
|
<div class="portlet-body">
|
||||||
<div class="row col-md-12" align="right">
|
<div class="" align="right">
|
||||||
<input type="text" id="TxtBusquedaPagosNoBancarios" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusquedaPagosNoBancarios','{0}')", GvPagosNoBancarios.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
<input type="text" id="TxtBusquedaPagosNoBancarios" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusquedaPagosNoBancarios','{0}')", GvPagosNoBancarios.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
||||||
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusquedaPagosNoBancarios','{0}')", GvPagosNoBancarios.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusquedaPagosNoBancarios','{0}')", GvPagosNoBancarios.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -142,12 +142,12 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row col-md-12" align="right">
|
<div class="" align="right">
|
||||||
<input type="text" id="TxtBusqueda" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", "v") %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
<input type="text" id="TxtBusqueda" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", "v") %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
||||||
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", "tablita") %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", "tablita") %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class=" col-md-12">
|
<div class="">
|
||||||
|
|
||||||
<asp:UpdatePanel runat="server" ID="UpDatos" UpdateMode="Conditional">
|
<asp:UpdatePanel runat="server" ID="UpDatos" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
|
|||||||
@@ -129,15 +129,15 @@
|
|||||||
<asp:UpdatePanel ID="UpGvDatos" runat="server" UpdateMode="Conditional">
|
<asp:UpdatePanel ID="UpGvDatos" runat="server" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
|
|
||||||
<div class="row col-md-12" style="text-align: right!important; margin-top: 20px!important; margin-bottom: 2px!important">
|
<div class="" style="text-align: right!important; margin-top: 20px!important; margin-bottom: 2px!important">
|
||||||
<input type="text" id="TxtBusquedaFam" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusquedaFam','{0}')", GvDocumentos.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
<input type="text" id="TxtBusquedaFam" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusquedaFam','{0}')", GvDocumentos.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
||||||
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusquedaFam','{0}')", GvDocumentos.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusquedaFam','{0}')", GvDocumentos.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
<div class="col-md-12">
|
||||||
<asp:UpdatePanel ID="UPGvDocumentos" runat="server" UpdateMode="Conditional">
|
<asp:UpdatePanel ID="UPGvDocumentos" runat="server" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<div class="col-md-12">
|
|
||||||
|
|
||||||
<asp:GridView ID="GvDocumentos" runat="server" AutoGenerateColumns="False"
|
<asp:GridView ID="GvDocumentos" runat="server" AutoGenerateColumns="False"
|
||||||
DataKeyNames="CveProveedor,CveDocumentacion,Documentacion,Orden,CveDocumentacionElectronica,Adjunto,Estatus,Observacion,Fecha,FechaIng,Usuario,FechaLimite,FechaVigencia,DiasLimite,AplicaDiasLimite,AplicaFechaVencimiento,ContactoMail"
|
DataKeyNames="CveProveedor,CveDocumentacion,Documentacion,Orden,CveDocumentacionElectronica,Adjunto,Estatus,Observacion,Fecha,FechaIng,Usuario,FechaLimite,FechaVigencia,DiasLimite,AplicaDiasLimite,AplicaFechaVencimiento,ContactoMail"
|
||||||
@@ -263,11 +263,11 @@
|
|||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
</Columns>
|
</Columns>
|
||||||
</asp:GridView>
|
</asp:GridView>
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,15 +1,15 @@
|
|||||||
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="RepEvaluacionProveedor.aspx.vb" Inherits="RepEvaluacionProveedor" %>
|
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="RepEvaluacionProveedor.aspx.vb" Inherits="RepEvaluacionProveedor" %>
|
||||||
|
|
||||||
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
||||||
|
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
||||||
<style>
|
<style>
|
||||||
.table-scrollable{
|
.table-scrollable {
|
||||||
margin-top:0px!important;
|
margin-top: 0px !important;
|
||||||
margin-bottom:0px!important;
|
margin-bottom: 0px !important;
|
||||||
}
|
}
|
||||||
.dataTables_scrollHeadInner {
|
|
||||||
|
.dataTables_scrollHeadInner {
|
||||||
width: 100% !important;
|
width: 100% !important;
|
||||||
background-color: #dddddd;
|
background-color: #dddddd;
|
||||||
padding-left: 0px !important;
|
padding-left: 0px !important;
|
||||||
@@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
.dataTables_scrollFoot {
|
.dataTables_scrollFoot {
|
||||||
display: none;
|
display: none;
|
||||||
position:static;
|
position: static;
|
||||||
}
|
}
|
||||||
|
|
||||||
.table-scrollable {
|
.table-scrollable {
|
||||||
@@ -37,7 +37,6 @@
|
|||||||
padding-right: 4px !important;
|
padding-right: 4px !important;
|
||||||
padding-left: 4px !important;
|
padding-left: 4px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content3" ContentPlaceHolderID="HB" runat="Server">
|
<asp:Content ID="Content3" ContentPlaceHolderID="HB" runat="Server">
|
||||||
@@ -46,7 +45,7 @@
|
|||||||
Reporte Evaluación de Proveedor
|
Reporte Evaluación de Proveedor
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
||||||
<li>
|
<li>
|
||||||
<asp:LinkButton ID="LnkExportar" runat="server"><i class="fa fa-file-excel-o" style="font-weight:bold;"></i> Excel</asp:LinkButton>
|
<asp:LinkButton ID="LnkExportar" runat="server"><i class="fa fa-file-excel-o" style="font-weight:bold;"></i> Excel</asp:LinkButton>
|
||||||
</li>
|
</li>
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
@@ -62,13 +61,15 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="titlefiltros caption magindate">
|
<div class="titlefiltros caption magindate">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
||||||
<div class="col-md-1 truncate">Proveedor</div>
|
<div class="col-md-1 truncate">Proveedor</div>
|
||||||
<div class="col-md-2">
|
<div class="col-md-2">
|
||||||
<asp:DropDownList ID="DdlProveedor" runat="server" CssClass="form-control input-sm select2me" Width="250" DataValueField="CveProveedor" DataTextField="RazonSocial"></asp:DropDownList>
|
<asp:DropDownList ID="DdlProveedor" runat="server" CssClass="form-control input-sm select2me" Width="250" DataValueField="CveProveedor" DataTextField="RazonSocial"></asp:DropDownList>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-1 ">Clasificación</div>
|
<div class="col-md-1 ">Clasificación</div>
|
||||||
<div class="col-md-2"><asp:DropDownList ID="DdlCveClasificacionProveedor" CssClass="form-control select2me input-sm" runat="server" AppendDataBoundItems="true" DataTextField="ProveedorClasificacion" DataValueField="CveProveedorClasificacion" Width="206px"></asp:DropDownList> </div>
|
<div class="col-md-2">
|
||||||
|
<asp:DropDownList ID="DdlCveClasificacionProveedor" CssClass="form-control select2me input-sm" runat="server" AppendDataBoundItems="true" DataTextField="ProveedorClasificacion" DataValueField="CveProveedorClasificacion" Width="206px"></asp:DropDownList>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="col-md-1 truncate">Fecha Inicio</div>
|
<div class="col-md-1 truncate">Fecha Inicio</div>
|
||||||
<div class="col-md-2 col-sm-2">
|
<div class="col-md-2 col-sm-2">
|
||||||
@@ -102,7 +103,6 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div id="DivFamiliaSubFamilia" class="row" runat="server" visible="false">
|
<div id="DivFamiliaSubFamilia" class="row" runat="server" visible="false">
|
||||||
</div>
|
</div>
|
||||||
@@ -111,27 +111,38 @@
|
|||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
<div id="dvCuerpo" style ="width:100% ">
|
<div id="dvCuerpo" style="width: 100%">
|
||||||
|
|
||||||
<div class="row col-md-12">
|
<div class="row ">
|
||||||
<div class="col-sm-6" style="text-align: left!important">Número de registros encontrados: <asp:UpdatePanel ID="upContador" runat="server" RenderMode="Inline" UpdateMode="Conditional"><ContentTemplate> <asp:Literal ID="LtlTotalRegistros" runat="server"></asp:Literal></ContentTemplate></asp:UpdatePanel><b></b> </div>
|
<div class="col-sm-6" style="text-align: left!important">
|
||||||
<div class="col-sm-6" style="text-align: right!important">
|
Número de registros encontrados:
|
||||||
|
<b>
|
||||||
|
<asp:UpdatePanel ID="upContador" runat="server" RenderMode="Inline" UpdateMode="Conditional">
|
||||||
|
<ContentTemplate>
|
||||||
|
<asp:Literal ID="LtlTotalRegistros" runat="server"></asp:Literal>
|
||||||
|
</ContentTemplate>
|
||||||
|
</asp:UpdatePanel>
|
||||||
|
</b>
|
||||||
|
</div>
|
||||||
|
<div class="col-sm-6" style="text-align: right!important">
|
||||||
|
|
||||||
<input type="text" id="TxtBusqueda" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GV.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
<input type="text" id="TxtBusqueda" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GV.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
||||||
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GV.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GV.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
<div id="dvCa" style="width: 100%; visibility: hidden; top: 40px">
|
||||||
<div id="dvCa" style="width:100%;visibility:hidden;top:40px">
|
<table id="dTable" class="correcto table">
|
||||||
<table id="dTable" class="correcto table"><tr>
|
<tr>
|
||||||
<td id="dvPro" class="alert alert-success" style="text-align:center!important"> <strong>Proveedor</strong> </td>
|
<td id="dvPro" class="alert alert-success" style="text-align: center!important"><strong>Proveedor</strong> </td>
|
||||||
<td id="dvReq" class="alert alert-warning" style="text-align:center!important"> <strong>Requisición</strong> </td>
|
<td id="dvReq" class="alert alert-warning" style="text-align: center!important"><strong>Requisición</strong> </td>
|
||||||
<td id="dvOc" class="alert alert-info" style="text-align:center!important"><strong>Orden de Compra</strong></td>
|
<td id="dvOc" class="alert alert-info" style="text-align: center!important"><strong>Orden de Compra</strong></td>
|
||||||
<td id="dvCo" class="alert alert-success" style="text-align:center!important"><strong>Compra</strong></td>
|
<td id="dvCo" class="alert alert-success" style="text-align: center!important"><strong>Compra</strong></td>
|
||||||
</tr></table>
|
</tr>
|
||||||
</div>
|
</table>
|
||||||
|
</div>
|
||||||
|
|
||||||
<asp:UpdatePanel ID="UPDatos" runat="server" RenderMode="Inline" UpdateMode="Conditional">
|
<asp:UpdatePanel ID="UPDatos" runat="server" RenderMode="Inline" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
|
|
||||||
@@ -207,23 +218,23 @@
|
|||||||
</asp:GridView>
|
</asp:GridView>
|
||||||
|
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
||||||
<script src="/Metronic/assets/global/scripts/datatable.js"></script>
|
<script src="/Metronic/assets/global/scripts/datatable.js"></script>
|
||||||
<script src="/Metronic/assets/global/plugins/datatables/all.min.js"></script>
|
<script src="/Metronic/assets/global/plugins/datatables/all.min.js"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
function IrC(v) {
|
function IrC(v) {
|
||||||
|
|
||||||
window.open('../Compras/Compras.aspx?CveCompra=' + v, '_blank');
|
window.open('../Compras/Compras.aspx?CveCompra=' + v, '_blank');
|
||||||
}
|
}
|
||||||
function IrO(v) {
|
function IrO(v) {
|
||||||
|
|
||||||
window.open('../OC/OC.aspx?OC=' + v, '_blank');
|
window.open('../OC/OC.aspx?OC=' + v, '_blank');
|
||||||
}
|
}
|
||||||
function IrP(v) {
|
function IrP(v) {
|
||||||
window.open('../Compras/Proveedores.aspx?CveProveedor=' + v, '_blank');
|
window.open('../Compras/Proveedores.aspx?CveProveedor=' + v, '_blank');
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -235,10 +246,10 @@
|
|||||||
Alto = 100;
|
Alto = 100;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
var rows = false;
|
var rows = false;
|
||||||
var cont = 0;
|
var cont = 0;
|
||||||
|
|
||||||
$("#<%=GV.ClientID %> tr").each(function () {
|
$("#<%=GV.ClientID %> tr").each(function () {
|
||||||
|
|
||||||
cont++;
|
cont++;
|
||||||
@@ -254,66 +265,66 @@
|
|||||||
subHeaders();
|
subHeaders();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$(window).resize(function () {
|
$(window).resize(function () {
|
||||||
|
|
||||||
subHeaders();
|
|
||||||
dTable.columns.adjust().draw();
|
|
||||||
});
|
|
||||||
|
|
||||||
function subHeaders() {
|
subHeaders();
|
||||||
$('#dvCa').css('visibility', 'hidden');
|
dTable.columns.adjust().draw();
|
||||||
$("#<%=GV.ClientID %> tr").each(function() {
|
});
|
||||||
if (!this.rowIndex) return;
|
|
||||||
var celdas = [];
|
|
||||||
|
|
||||||
$(this).find('td').each(function (column, td) {
|
function subHeaders() {
|
||||||
//scrollWidth
|
$('#dvCa').css('visibility', 'hidden');
|
||||||
//celdas.push($(td).width());
|
$("#<%=GV.ClientID %> tr").each(function () {
|
||||||
var scrollWidt =0;
|
if (!this.rowIndex) return;
|
||||||
scrollWidt = $(td).prop('scrollWidth')
|
var celdas = [];
|
||||||
celdas.push($(td).prop('scrollWidth'));
|
|
||||||
//console.log('this ' + $(this).width());
|
|
||||||
//console.log('td ' + $(td).width());
|
|
||||||
});
|
|
||||||
|
|
||||||
var ancho = 0
|
$(this).find('td').each(function (column, td) {
|
||||||
ancho += celdas[0];
|
//scrollWidth
|
||||||
//console.log('ancho pro ' + ancho);
|
//celdas.push($(td).width());
|
||||||
$('#dvPro').width(ancho);
|
var scrollWidt = 0;
|
||||||
ancho = 0;
|
scrollWidt = $(td).prop('scrollWidth')
|
||||||
|
celdas.push($(td).prop('scrollWidth'));
|
||||||
ancho += celdas[1];
|
//console.log('this ' + $(this).width());
|
||||||
ancho += celdas[2];
|
//console.log('td ' + $(td).width());
|
||||||
ancho += celdas[3];
|
|
||||||
ancho += celdas[4];
|
|
||||||
// console.log('ancho req ' + ancho);
|
|
||||||
$('#dvReq').width(ancho);
|
|
||||||
ancho = 0;
|
|
||||||
|
|
||||||
ancho += celdas[5];
|
|
||||||
ancho += celdas[6];
|
|
||||||
ancho += celdas[7];
|
|
||||||
|
|
||||||
// console.log('ancho req ' + ancho);
|
|
||||||
$('#dvOc').width(ancho);
|
|
||||||
ancho = 0;
|
|
||||||
|
|
||||||
ancho += celdas[8];
|
|
||||||
ancho += celdas[9];
|
|
||||||
ancho += celdas[10];
|
|
||||||
|
|
||||||
// console.log('ancho req ' + ancho);
|
|
||||||
$('#dvCo').width(ancho);
|
|
||||||
ancho = 0;
|
|
||||||
|
|
||||||
$('#dvCa').css('visibility', 'visible');
|
|
||||||
|
|
||||||
return false;
|
|
||||||
});
|
});
|
||||||
}
|
|
||||||
|
|
||||||
</script>
|
var ancho = 0
|
||||||
|
ancho += celdas[0];
|
||||||
|
//console.log('ancho pro ' + ancho);
|
||||||
|
$('#dvPro').width(ancho);
|
||||||
|
ancho = 0;
|
||||||
|
|
||||||
|
ancho += celdas[1];
|
||||||
|
ancho += celdas[2];
|
||||||
|
ancho += celdas[3];
|
||||||
|
ancho += celdas[4];
|
||||||
|
// console.log('ancho req ' + ancho);
|
||||||
|
$('#dvReq').width(ancho);
|
||||||
|
ancho = 0;
|
||||||
|
|
||||||
|
ancho += celdas[5];
|
||||||
|
ancho += celdas[6];
|
||||||
|
ancho += celdas[7];
|
||||||
|
|
||||||
|
// console.log('ancho req ' + ancho);
|
||||||
|
$('#dvOc').width(ancho);
|
||||||
|
ancho = 0;
|
||||||
|
|
||||||
|
ancho += celdas[8];
|
||||||
|
ancho += celdas[9];
|
||||||
|
ancho += celdas[10];
|
||||||
|
|
||||||
|
// console.log('ancho req ' + ancho);
|
||||||
|
$('#dvCo').width(ancho);
|
||||||
|
ancho = 0;
|
||||||
|
|
||||||
|
$('#dvCa').css('visibility', 'visible');
|
||||||
|
|
||||||
|
return false;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
</script>
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -1199,13 +1199,16 @@ Partial Class Contratos_Default
|
|||||||
GvFianzas.DataBind()
|
GvFianzas.DataBind()
|
||||||
UpGvFianzas.Update()
|
UpGvFianzas.Update()
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
#Region " GUARDAR "
|
#Region " GUARDAR "
|
||||||
Protected Sub BtnGuardar_Click(sender As Object, e As EventArgs) Handles BtnGuardar.Click
|
Protected Sub BtnGuardar_Click(sender As Object, e As EventArgs) Handles BtnGuardar.Click
|
||||||
Dim ObjContratos As New ClsContratos
|
|
||||||
Dim ObjInventarios As New ClsInventarios(ObjContratos.IniciaTransacSQL)
|
If DdlContratista.SelectedValue.ToEntero = -1 And DdlCliente.SelectedValue.ToEntero = -1 Then
|
||||||
|
Alert("Debe seleccionar con quién está haciendo el contrato. Proveedor o Cliente", TipoMensaje.MsgAdvertencia)
|
||||||
|
Exit Sub
|
||||||
|
End If
|
||||||
|
|
||||||
Dim TieneError = False
|
Dim TieneError = False
|
||||||
Dim Modificado = False
|
Dim Modificado = False
|
||||||
@@ -1221,21 +1224,30 @@ Partial Class Contratos_Default
|
|||||||
Maximo = txtMaximo.Text.ToDouble
|
Maximo = txtMaximo.Text.ToDouble
|
||||||
Total = TxtTotal.Text.ToDouble
|
Total = TxtTotal.Text.ToDouble
|
||||||
|
|
||||||
|
If DdlTipoContrato.SelectedValue = "25" AndAlso DdlPeriodo.SelectedValue.ToEntero() <= 0 Then
|
||||||
|
Alert("Debe seleccionar el periodo de facturación.", TipoMensaje.MsgAdvertencia)
|
||||||
|
Exit Sub
|
||||||
|
End If
|
||||||
|
|
||||||
If DdlMoneda.SelectedIndex > 0 Then
|
If DdlMoneda.SelectedIndex > 0 Then
|
||||||
If TxtTipoCambio.Text.Trim.Length = 0 Or TxtTipoCambio.Text.Trim.ToDouble = 0.0 Then
|
If TxtTipoCambio.Text.Trim.Length = 0 Or TxtTipoCambio.Text.Trim.ToDouble = 0.0 Then
|
||||||
Alert("Cuando seleccione una moneda diferente a peso debe especificar el tipo de cambio.", TipoMensaje.MsgAdvertencia)
|
Alert("Cuando seleccione una moneda diferente a peso debe especificar el tipo de cambio.", TipoMensaje.MsgAdvertencia)
|
||||||
Exit Sub
|
Exit Sub
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
If CveContrato > 0 Then
|
||||||
'Crear Contrato
|
|
||||||
If Not CveContrato > 0 Then
|
|
||||||
If DdlContratista.SelectedValue.ToEntero = -1 And DdlCliente.SelectedValue.ToEntero = -1 Then
|
If DdlContratista.SelectedValue.ToEntero = -1 And DdlCliente.SelectedValue.ToEntero = -1 Then
|
||||||
Alert("Debe seleccionar con quién está haciendo el contrato. Proveedor o Cliente", TipoMensaje.MsgAdvertencia)
|
Alert("Debe seleccionar con quién está haciendo el contrato. Proveedor o Cliente", TipoMensaje.MsgAdvertencia)
|
||||||
Exit Sub
|
Exit Sub
|
||||||
End If
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
|
Dim ObjContratos As New ClsContratos
|
||||||
|
Dim ObjInventarios As New ClsInventarios(ObjContratos.IniciaTransacSQL)
|
||||||
|
|
||||||
|
'Crear Contrato
|
||||||
|
If Not CveContrato > 0 Then
|
||||||
|
|
||||||
CveContrato = ObjContratos.AddContratos(TxtNumeroContrato.Text, TxtDescripcionContrato.Text, TxtNumeroLicitacion.Text.Trim, DdlContratista.SelectedValue.ToEntero, DdlCliente.SelectedValue.ToEntero, -1, TxtFechaInicial.Text.ToDate, TxtFechaFinal.Text.ToDate,
|
CveContrato = ObjContratos.AddContratos(TxtNumeroContrato.Text, TxtDescripcionContrato.Text, TxtNumeroLicitacion.Text.Trim, DdlContratista.SelectedValue.ToEntero, DdlCliente.SelectedValue.ToEntero, -1, TxtFechaInicial.Text.ToDate, TxtFechaFinal.Text.ToDate,
|
||||||
TxtUbicacion.Text, TxtResponsable.Text, DdlSubProyectoContrato.SelectedValue.ToEntero, TxtPorIVA.Text.ToDouble, TxtPorAnticipo.Text.ToDouble, TxtPorAmortizacionAnticipo.Text.ToDouble,
|
TxtUbicacion.Text, TxtResponsable.Text, DdlSubProyectoContrato.SelectedValue.ToEntero, TxtPorIVA.Text.ToDouble, TxtPorAnticipo.Text.ToDouble, TxtPorAmortizacionAnticipo.Text.ToDouble,
|
||||||
@@ -1323,18 +1335,9 @@ Partial Class Contratos_Default
|
|||||||
TieneError = True
|
TieneError = True
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Else
|
Else
|
||||||
Modificado = True
|
Modificado = True
|
||||||
If DdlContratista.SelectedValue.ToEntero = -1 And DdlCliente.SelectedValue.ToEntero = -1 Then
|
|
||||||
Alert("Debe seleccionar con quién está haciendo el contrato. Proveedor o Cliente", TipoMensaje.MsgAdvertencia)
|
|
||||||
Exit Sub
|
|
||||||
End If
|
|
||||||
Dim ArchivoUpdate As String = "-1"
|
Dim ArchivoUpdate As String = "-1"
|
||||||
|
|
||||||
If Session("FileExtension").ToString <> "" Then
|
If Session("FileExtension").ToString <> "" Then
|
||||||
@@ -1433,16 +1436,8 @@ Partial Class Contratos_Default
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
'If Not TieneError Then
|
|
||||||
' TieneError = GuardarAlmacen(ObjInventarios)
|
|
||||||
'End If
|
|
||||||
|
|
||||||
If TieneError Then
|
If TieneError Then
|
||||||
ObjContratos.RollBack()
|
ObjContratos.RollBack()
|
||||||
Else
|
Else
|
||||||
@@ -1461,12 +1456,11 @@ Partial Class Contratos_Default
|
|||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
UpGral.Update()
|
UpGral.Update()
|
||||||
ObjContratos.Dispose()
|
ObjContratos.Dispose()
|
||||||
End Sub
|
End Sub
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
#Region " ELIMINAR "
|
#Region " ELIMINAR "
|
||||||
Protected Sub BtnEliminar_Click(sender As Object, e As EventArgs) Handles BtnEliminar.Click
|
Protected Sub BtnEliminar_Click(sender As Object, e As EventArgs) Handles BtnEliminar.Click
|
||||||
Dim objContratos As New ClsContratos
|
Dim objContratos As New ClsContratos
|
||||||
|
|||||||
@@ -34,14 +34,11 @@
|
|||||||
<div class="titlefiltros caption ">
|
<div class="titlefiltros caption ">
|
||||||
<ul class="list-inline" style="font-size: 12px;">
|
<ul class="list-inline" style="font-size: 12px;">
|
||||||
<li>Cliente:
|
<li>Cliente:
|
||||||
<asp:DropDownList ID="DdlCliente" runat="server" AppendDataBoundItems="true" DataTextField="NombreComercial" DataValueField="CveCliente" CssClass="form-control input-sm select2me" Style="width: 250px !important;">
|
<ADS:Dropdownlost ID="DdlCliente" runat="server" Width="230px" CssStyle="width: 100%;" UsaWebService="true" AppendDataBoundItems="true" CssClass="select2me" data-metodo="getcliente" DataTextField="NombreComercial" DataValueField="CveCliente"></ADS:Dropdownlost>
|
||||||
<asp:ListItem Selected="True" Text="Todos" Value="-1"></asp:ListItem>
|
|
||||||
</asp:DropDownList>
|
|
||||||
</li>
|
</li>
|
||||||
<li>Contrato:
|
<li>Contrato:
|
||||||
<asp:DropDownList ID="DdlContrato" Width="230px" AppendDataBoundItems="true" runat="server" DataTextField="NumeroContrato" DataValueField="CveContrato" CssClass="form-control input-sm select2me">
|
<ADS:Dropdownlost ID="DdlContrato" runat="server" Width="230px" CssStyle="width: 100%;" UsaWebService="true" AppendDataBoundItems="true" CssClass="select2me" data-metodo="getcontratos" DataTextField="NumeroContrato" DataValueField="CveContrato">
|
||||||
<asp:ListItem Selected="True" Text="Todos" Value="-1"></asp:ListItem>
|
</ADS:Dropdownlost>
|
||||||
</asp:DropDownList>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
Sucursal:
|
Sucursal:
|
||||||
|
|||||||
@@ -111,8 +111,9 @@ Partial Class Contratos_FacturacionMasiva
|
|||||||
If Not IsPostBack Then
|
If Not IsPostBack Then
|
||||||
FolioVigentes = False
|
FolioVigentes = False
|
||||||
CargaCombos()
|
CargaCombos()
|
||||||
txtFechaI.Text = DateTime.Today.ToString("d")
|
Dim FechaRef = DateTime.Now
|
||||||
txtFechaF.Text = DateTime.Today.ToString("d")
|
txtFechaI.Text = $"01/{FechaRef.Month}/{FechaRef.Year}"
|
||||||
|
txtFechaF.Text = txtFechaI.Text.ToDate().AddMonths(1).ToString("dd/MM/yyyy")
|
||||||
CargaDatos(-1, -1)
|
CargaDatos(-1, -1)
|
||||||
CreaDTVentas()
|
CreaDTVentas()
|
||||||
Mensaje = ""
|
Mensaje = ""
|
||||||
@@ -131,11 +132,44 @@ Partial Class Contratos_FacturacionMasiva
|
|||||||
ValidaFolio()
|
ValidaFolio()
|
||||||
|
|
||||||
Dim ObjContratos As New ClsContratos
|
Dim ObjContratos As New ClsContratos
|
||||||
If ObjContratos.CicloComercialGet(CveContrato, CveCliente, -1, UsuarioActual.CveEmpresa, txtFechaI.Text.ToDateTime, txtFechaF.Text.ToDateTime, DdlSucursal.SelectedValue.ToEntero) Then
|
Try
|
||||||
DTCicloComercial = ObjContratos.DtResultados().FiltraParametros($"FueFacturado = 0")
|
If ObjContratos.CicloComercialGet(CveContrato, CveCliente, -1, UsuarioActual.CveEmpresa, txtFechaI.Text.ToDateTime, txtFechaF.Text.ToDateTime, DdlSucursal.SelectedValue.ToEntero) Then
|
||||||
GvCiclosComerciales.DataSource = DTCicloComercial
|
DTCicloComercial = ObjContratos.DtResultados.Clone
|
||||||
End If
|
|
||||||
ObjContratos.Dispose()
|
For Each Row As DataRow In ObjContratos.DtResultados().FiltraParametros($"FueFacturado = 0").Rows
|
||||||
|
|
||||||
|
If Row("Observaciones").ToString().Contains("{DIA}") Then
|
||||||
|
Row("Observaciones") = Row("Observaciones").ToString().Replace("{DIA}", DateTime.Now.Day.ToString())
|
||||||
|
End If
|
||||||
|
|
||||||
|
If Row("Observaciones").ToString().Contains("{MES}") Then
|
||||||
|
Dim fecha As DateTime = DateTime.Now
|
||||||
|
Dim formatoFecha = Globalization.CultureInfo.CurrentCulture.DateTimeFormat
|
||||||
|
Dim nombreMes = formatoFecha.GetMonthName(fecha.Month).ToUpper()
|
||||||
|
|
||||||
|
Row("Observaciones") = Row("Observaciones").ToString().Replace("{MES}", nombreMes)
|
||||||
|
End If
|
||||||
|
|
||||||
|
If Row("Observaciones").ToString().Contains("{AÑO}") Then
|
||||||
|
Row("Observaciones") = Row("Observaciones").ToString().Replace("{AÑO}", DateTime.Now.Year.ToString())
|
||||||
|
End If
|
||||||
|
|
||||||
|
If Row("Observaciones").ToString().Contains("{TC}") Then
|
||||||
|
Row("Observaciones") = Row("Observaciones").ToString().Replace("{TC}", GlobalTipoCambio(Now).FormatoNumero)
|
||||||
|
End If
|
||||||
|
|
||||||
|
DTCicloComercial.Rows.Add(Row.ItemArray)
|
||||||
|
Next
|
||||||
|
|
||||||
|
|
||||||
|
End If
|
||||||
|
Catch ex As Exception
|
||||||
|
DTCicloComercial = Nothing
|
||||||
|
OnError("Ocurrió un error al obtener las facturas a realizar", ex)
|
||||||
|
End Try
|
||||||
|
ObjContratos.Dispose()
|
||||||
|
|
||||||
|
GvCiclosComerciales.DataSource = DTCicloComercial
|
||||||
GvCiclosComerciales.DataBind()
|
GvCiclosComerciales.DataBind()
|
||||||
UpGv.Update()
|
UpGv.Update()
|
||||||
End Sub
|
End Sub
|
||||||
@@ -174,14 +208,9 @@ Partial Class Contratos_FacturacionMasiva
|
|||||||
Dim sb As New StringBuilder()
|
Dim sb As New StringBuilder()
|
||||||
|
|
||||||
For Each row As GridViewRow In GvCiclosComerciales.Rows
|
For Each row As GridViewRow In GvCiclosComerciales.Rows
|
||||||
If row.FCCheckBox("chkDis").Checked Then
|
If row.FCCheckBox("chkDis").Checked Then
|
||||||
Dim fecha As DateTime = DateTime.Now ', row.DataKey("FechaVenc").ToString.ToDateTime()
|
|
||||||
Dim formatoFecha = Globalization.CultureInfo.CurrentCulture.DateTimeFormat
|
|
||||||
Dim nombreMes = formatoFecha.GetMonthName(fecha.Month).ToUpper()
|
|
||||||
|
|
||||||
Dim Etiqueta As String = String.Format("{0} - {1}", nombreMes, fecha.Year)
|
Dim Resp = EmitirImprimir(row.DataKey("CveCicloComercial").ToString.ToEntero)
|
||||||
|
|
||||||
Dim Resp = EmitirImprimir(row.DataKey("CveCicloComercial").ToString.ToEntero, Etiqueta)
|
|
||||||
|
|
||||||
For Each Msg In Resp.Mensajes
|
For Each Msg In Resp.Mensajes
|
||||||
sb.AppendFormat("{0}</br></br>", Msg)
|
sb.AppendFormat("{0}</br></br>", Msg)
|
||||||
@@ -212,10 +241,10 @@ Partial Class Contratos_FacturacionMasiva
|
|||||||
EjecutarFacturacion()
|
EjecutarFacturacion()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Function EmitirImprimir(pCveCicloComercial As Integer, Etiqueta As String) As Modelos.Factura.MMensajeFactura
|
Private Function EmitirImprimir(pCveCicloComercial As Integer) As Modelos.Factura.MMensajeFactura
|
||||||
Dim Resp As New Modelos.Factura.MMensajeFactura
|
Dim Resp As New Modelos.Factura.MMensajeFactura
|
||||||
ViewState("CveCicloComercial") = pCveCicloComercial
|
ViewState("CveCicloComercial") = pCveCicloComercial
|
||||||
CreaObjetosVenta(Etiqueta)
|
CreaObjetosVenta()
|
||||||
If ObjFactura Is Nothing Or ObjFactura.Cliente Is Nothing Then
|
If ObjFactura Is Nothing Or ObjFactura.Cliente Is Nothing Then
|
||||||
Alert("Ocurrió un error al procesar los datos de la Venta.", TipoMensaje.MsgError)
|
Alert("Ocurrió un error al procesar los datos de la Venta.", TipoMensaje.MsgError)
|
||||||
ObjFactura = Nothing
|
ObjFactura = Nothing
|
||||||
@@ -438,7 +467,7 @@ Partial Class Contratos_FacturacionMasiva
|
|||||||
TmpDT.Columns.Add("CveTamaño", GetType(Integer))
|
TmpDT.Columns.Add("CveTamaño", GetType(Integer))
|
||||||
TmpDT.Columns.Add("EsCargo", GetType(Boolean))
|
TmpDT.Columns.Add("EsCargo", GetType(Boolean))
|
||||||
End Sub
|
End Sub
|
||||||
Private Sub CreaObjetosVenta(Etiqueta As String, Optional VistaPrevia As Boolean = False)
|
Private Sub CreaObjetosVenta(Optional VistaPrevia As Boolean = False)
|
||||||
Dim ObjFolios As New ClsGralFolios()
|
Dim ObjFolios As New ClsGralFolios()
|
||||||
Dim Folio As String = ""
|
Dim Folio As String = ""
|
||||||
Dim Serie As String = ""
|
Dim Serie As String = ""
|
||||||
@@ -472,7 +501,7 @@ Partial Class Contratos_FacturacionMasiva
|
|||||||
ObjFactura.MetodoPago = "Efectivo"
|
ObjFactura.MetodoPago = "Efectivo"
|
||||||
ObjFactura.FechaPago = DateTime.Today
|
ObjFactura.FechaPago = DateTime.Today
|
||||||
ObjFactura.MotivoDescuento = ""
|
ObjFactura.MotivoDescuento = ""
|
||||||
ObjFactura.Observaciones = Etiqueta + " " + TxtObservaciones.Text + " " + DR("Observaciones").ToString
|
ObjFactura.Observaciones = TxtObservaciones.Text + " " + DR("Observaciones").ToString
|
||||||
ObjFactura.FechaEjecucion = DateTime.Today
|
ObjFactura.FechaEjecucion = DateTime.Today
|
||||||
'ObjFactura.ClaveMetodoPagoSAT = GlobalDTMetodosPago.FiltroPrimeroValor("ClaveSAT", $"CveMetodoPago = {1}")
|
'ObjFactura.ClaveMetodoPagoSAT = GlobalDTMetodosPago.FiltroPrimeroValor("ClaveSAT", $"CveMetodoPago = {1}")
|
||||||
ObjFactura.UsuarioCreo = UsuarioActual.Usuario
|
ObjFactura.UsuarioCreo = UsuarioActual.Usuario
|
||||||
@@ -553,9 +582,9 @@ Partial Class Contratos_FacturacionMasiva
|
|||||||
DtR("CodigoPS") = row("CodigoPS")
|
DtR("CodigoPS") = row("CodigoPS")
|
||||||
DtR("SATClaveProdServ") = row("SATClaveProdServ")
|
DtR("SATClaveProdServ") = row("SATClaveProdServ")
|
||||||
DtR("NoIdentificacion") = row("NoIdentificacion")
|
DtR("NoIdentificacion") = row("NoIdentificacion")
|
||||||
DtR("CveTipoPS") = DrPS("CveTipoPS")
|
DtR("CveTipoPS") = drPS("CveTipoPS")
|
||||||
DtR("CveTipoInvPS") = DrPS("Inv_CveMetodoInventario")
|
DtR("CveTipoInvPS") = drPS("Inv_CveMetodoInventario")
|
||||||
DtR("Obs") = Etiqueta + " " + TxtObservaciones.Text + " " + row("Observacion").ToString
|
DtR("Obs") = TxtObservaciones.Text + " " + row("Observacion").ToString
|
||||||
DtR("PU") = row("PU")
|
DtR("PU") = row("PU")
|
||||||
DtR("IVA") = row("PorcentajeIVA")
|
DtR("IVA") = row("PorcentajeIVA")
|
||||||
DtR("PorcentajeIVA") = row("PorcentajeIVA")
|
DtR("PorcentajeIVA") = row("PorcentajeIVA")
|
||||||
|
|||||||
@@ -2962,4 +2962,7 @@ select.select2-offscreen, select.select2-offscreen:focus {
|
|||||||
.ADScroller > div > table.table.table-smallpadding > tbody > tr > td:nth-last-child(1) span, table.ScrollAD.table.table-smallpadding > tbody > tr > td:nth-last-child(1) span,
|
.ADScroller > div > table.table.table-smallpadding > tbody > tr > td:nth-last-child(1) span, table.ScrollAD.table.table-smallpadding > tbody > tr > td:nth-last-child(1) span,
|
||||||
.ADScroller > div > table.table.table-smallpadding > tbody > tr > th:nth-last-child(1) span, table.ScrollAD.table.table-smallpadding > tbody > tr > th:nth-last-child(1) span{
|
.ADScroller > div > table.table.table-smallpadding > tbody > tr > th:nth-last-child(1) span, table.ScrollAD.table.table-smallpadding > tbody > tr > th:nth-last-child(1) span{
|
||||||
padding-right: 7px;
|
padding-right: 7px;
|
||||||
|
}
|
||||||
|
div.mypaste * {
|
||||||
|
display: none;
|
||||||
}
|
}
|
||||||
@@ -3466,6 +3466,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
if (continuar)
|
if (continuar)
|
||||||
{
|
{
|
||||||
objNomina.Commit();
|
objNomina.Commit();
|
||||||
|
Alert("La nomina se autorizó correctamente.");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -3473,9 +3474,15 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if(dtr != null){
|
||||||
dtr.Dispose();
|
dtr.Dispose();
|
||||||
dtconp.Dispose();
|
|
||||||
Alert("Termine");
|
}
|
||||||
|
if (dtconp != null)
|
||||||
|
{
|
||||||
|
dtconp.Dispose();
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void LnkCargaAsistenciaMasiva_Click(object sender, EventArgs e)
|
protected void LnkCargaAsistenciaMasiva_Click(object sender, EventArgs e)
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content6" ContentPlaceHolderID="C" runat="Server">
|
<asp:Content ID="Content6" ContentPlaceHolderID="C" runat="Server">
|
||||||
|
|
||||||
<div class="row col-md-12" style="text-align:right!important;margin-top:20px!important;margin-bottom:2px!important">
|
<div class="" style="text-align:right!important;margin-top:20px!important;margin-bottom:2px!important">
|
||||||
<input type="text" id="TxtBusqueda" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GvPuestos.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
<input type="text" id="TxtBusqueda" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GvPuestos.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
||||||
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GvPuestos.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GvPuestos.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||||||
</div>
|
</div>
|
||||||
@@ -34,7 +34,7 @@
|
|||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<asp:GridView ID="GvPuestos" runat="server" AutoGenerateColumns="False" ShowHeader="true"
|
<asp:GridView ID="GvPuestos" runat="server" AutoGenerateColumns="False" ShowHeader="true"
|
||||||
DataKeyNames="CvePuesto,Puesto,CveOcupacion,Estatus" EmptyDataText="No se encontraron Subtemas"
|
DataKeyNames="CvePuesto,Puesto,CveOcupacion,Estatus" EmptyDataText="No se encontraron Subtemas"
|
||||||
ToolTip="Listado de Puestos" CssClass="ADSCROLLER2 table table-striped table-advance table-hover Widthall" GridLines="None" data-cols="0" data-heighmenos="500">
|
ToolTip="Listado de Puestos" CssClass="ScrollAD table table-striped table-advance table-hover Widthall" GridLines="None" data-cols="0" data-heighterror="280">
|
||||||
<Columns>
|
<Columns>
|
||||||
<asp:TemplateField HeaderText="Puesto" ItemStyle-HorizontalAlign ="Left">
|
<asp:TemplateField HeaderText="Puesto" ItemStyle-HorizontalAlign ="Left">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
|
|||||||
@@ -675,13 +675,24 @@
|
|||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</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="100%">
|
||||||
|
<%--<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>
|
||||||
<tr align="left" id="TrAlmacenAsignado" runat="server" visible="False">
|
<tr align="left" id="TrAlmacenAsignado" runat="server" visible="False">
|
||||||
<td>
|
<td>
|
||||||
<asp:Label runat="server" ToolTip="Almacen Asignado" Font-Bold="true" Text="Almacen A:"></asp:Label>
|
<asp:Label runat="server" ToolTip="Almacen Asignado" Font-Bold="true" Text="Almacen A:"></asp:Label>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<asp:DropDownList ID="DdlAlmacenAsignado" runat="server" CssClass="form-control input-sm select2me" AppendDataBoundItems="true" DataTextField="Almacen" DataValueField="CveAlmacen" Width="130px">
|
<asp:DropDownList ID="DdlAlmacenAsignado" runat="server" CssClass="form-control input-sm select2me" AppendDataBoundItems="true" DataTextField="Almacen" DataValueField="CveAlmacen" Width="100%">
|
||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
<asp:RequiredFieldValidator ID="RFVAlmacenAsignado" runat="server" ControlToValidate="DdlAlmacenAsignado" InitialValue="" ErrorMessage="Debe Seleccionarse un Almacen" ValidationGroup="GrpEmitirImprimir"></asp:RequiredFieldValidator>
|
<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>
|
<ajax:ValidatorCalloutExtender ID="VCEAlmacenAsignado" runat="server" HighlightCssClass="vco" TargetControlID="RFVAlmacenAsignado" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||||
@@ -692,7 +703,7 @@
|
|||||||
<asp:Label runat="server" ToolTip="Tipo de Pedido" Font-Bold="true" Text="Tipo Pedido:"></asp:Label>
|
<asp:Label runat="server" ToolTip="Tipo de Pedido" Font-Bold="true" Text="Tipo Pedido:"></asp:Label>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<asp:DropDownList ID="DdlTipoPedido" runat="server" CssClass="form-control input-sm select2me" Width="130px">
|
<asp:DropDownList ID="DdlTipoPedido" runat="server" CssClass="form-control input-sm select2me" Width="100%">
|
||||||
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||||||
<asp:ListItem Text="Interno" Value="1"></asp:ListItem>
|
<asp:ListItem Text="Interno" Value="1"></asp:ListItem>
|
||||||
<asp:ListItem Text="Externo" Value="0"></asp:ListItem>
|
<asp:ListItem Text="Externo" Value="0"></asp:ListItem>
|
||||||
@@ -701,18 +712,6 @@
|
|||||||
<ajax:ValidatorCalloutExtender ID="VCETipoPedido" runat="server" HighlightCssClass="vco" TargetControlID="RFVTipoPedido" Width="300px"></ajax:ValidatorCalloutExtender>
|
<ajax:ValidatorCalloutExtender ID="VCETipoPedido" runat="server" HighlightCssClass="vco" TargetControlID="RFVTipoPedido" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</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>
|
|
||||||
<tr align="left" id="TrAntEspecial" runat="server" visible="false">
|
<tr align="left" id="TrAntEspecial" runat="server" visible="false">
|
||||||
<td><b>Anticipo Especial:</b> </td>
|
<td><b>Anticipo Especial:</b> </td>
|
||||||
<td>
|
<td>
|
||||||
@@ -3016,7 +3015,7 @@
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</ajax:TabPanel>
|
</ajax:TabPanel>
|
||||||
</ajax:TabContainer>
|
</ajax:TabContainer>
|
||||||
@@ -6210,47 +6209,170 @@
|
|||||||
<h4 class="modal-title">Aplicar Remisiones de Nota de Crédito</h4>
|
<h4 class="modal-title">Aplicar Remisiones de Nota de Crédito</h4>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<div class="row" style="margin-right: 10px; margin-top: 18px;" align="right">
|
<div class="row">
|
||||||
<input type="text" id="TxtBusquedaRemNC" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusquedaRemNC','{0}')", GvRemisionesNC.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
<div class="col-md-9">
|
||||||
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusquedaRemNC','{0}')", GvRemisionesNC.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
<div class="row" id="DivVentasUsados" runat="server" visible="false">
|
||||||
|
<div class="col-md-2">
|
||||||
|
Factura:
|
||||||
|
</div>
|
||||||
|
<div class="col-md-10">
|
||||||
|
<asp:DropDownList ID="DdlVentaUsado" runat="server" AutoPostBack="true" AppendDataBoundItems="true" DataTextField="Folio" DataValueField="CveVenta" Width="100%" CssClass="select2me" OnSelectedIndexChanged="DdlVentaUsado_SelectedIndexChanged"></asp:DropDownList>
|
||||||
|
<asp:RequiredFieldValidator ID="RFVVentaUsado" runat="server" InitialValue="-1" ControlToValidate="DdlVentaUsado" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Factura''</b> es necesario, por favor ingréselo." ValidationGroup="VGAplicarRNC"></asp:RequiredFieldValidator>
|
||||||
|
<ajax:ValidatorCalloutExtender ID="VCEVentaUsado" runat="server" HighlightCssClass="vco" TargetControlID="RFVVentaUsado" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-3">
|
||||||
|
<div class="row" style="margin-right: 10px; margin-top: 18px;" align="right">
|
||||||
|
<input type="text" id="TxtBusquedaRemNC" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusquedaRemNC','{0}')", GvRemisionesNC.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
||||||
|
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusquedaRemNC','{0}')", GvRemisionesNC.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row" style="max-height: 10px">
|
<div class="row">
|
||||||
<div class="col-md-12" style="height: 440px; overflow: auto">
|
<div class="col-md-12">
|
||||||
<asp:GridView ID="GvRemisionesNC" runat="server" AutoGenerateColumns="False"
|
<div class="portlet light xspadding bordered">
|
||||||
DataKeyNames="CveVenta" CssClass="table table-striped table-advance table-hover Widthall mysmallbtn" GridLines="None">
|
<div class="portlet-title">
|
||||||
<Columns>
|
<div class="caption font-green">
|
||||||
<asp:TemplateField>
|
<i class="icon-pin font-green"></i>
|
||||||
<ItemTemplate>
|
<span class="caption-subject bold uppercase">Cargos</span>
|
||||||
<asp:CheckBox ID="ChkAplicar" runat="server" />
|
</div>
|
||||||
</ItemTemplate>
|
<div class="actions">
|
||||||
</asp:TemplateField>
|
<div class="btn-group">
|
||||||
<asp:HyperLinkField DataNavigateUrlFields="CveVenta" Target="_blank" DataNavigateUrlFormatString="/Ventas/Ventas.aspx?CveVenta={0}" DataTextField="Folio" HeaderText="Folio" ItemStyle-Width="150px" ItemStyle-HorizontalAlign="Left" />
|
</div>
|
||||||
<asp:BoundField HeaderText="Observaciones" DataField="Observaciones" />
|
</div>
|
||||||
<asp:BoundField HeaderText="Fecha" DataField="Fecha" DataFormatString="{0:d}" ItemStyle-HorizontalAlign="Center" />
|
<div class="tools">
|
||||||
<asp:TemplateField HeaderText="Total" ItemStyle-HorizontalAlign="Right">
|
<a href="javascript:;" class="collapse"></a>
|
||||||
<ItemTemplate>
|
</div>
|
||||||
<asp:Literal ID="LtlTotal" runat="server" Text='<%# Eval("Original", "{0:N2}") %>'></asp:Literal>
|
</div>
|
||||||
<asp:Literal ID="LtlAbrev" runat="server" Text='<%# Eval("Abreviatura") %>'></asp:Literal>
|
<div class="portlet-body form-horizontal form-row-sepe formnombottom">
|
||||||
</ItemTemplate>
|
<div class="row" style="margin-right: 10px;" align="right">
|
||||||
</asp:TemplateField>
|
<input type="text" id="TxtBusquedaRNCCargos" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusquedaRNCCargos','{0}')", GvRemisionesNC.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
||||||
<asp:TemplateField HeaderText="Saldo" ItemStyle-HorizontalAlign="Right">
|
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusquedaRNCCargos','{0}')", GvRemisionesNC.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||||||
<ItemTemplate>
|
</div>
|
||||||
<asp:Literal ID="LtlSaldo" runat="server" Text='<%# Eval("Saldo", "{0:N2}") %>'></asp:Literal>
|
<div class="row">
|
||||||
</ItemTemplate>
|
<div class="col-md-12" style="max-height: 440px; overflow: auto">
|
||||||
</asp:TemplateField>
|
<asp:GridView ID="GvRemisionesNC" runat="server" AutoGenerateColumns="False"
|
||||||
<asp:TemplateField>
|
DataKeyNames="CveVenta" CssClass="table table-striped table-advance table-hover Widthall mysmallbtn" GridLines="None">
|
||||||
<ItemTemplate>
|
<Columns>
|
||||||
<asp:TextBox ID="TxtImporte" CssClass="myvalue" runat="server" Width="75px" />
|
<asp:TemplateField>
|
||||||
</ItemTemplate>
|
<ItemTemplate>
|
||||||
</asp:TemplateField>
|
<asp:CheckBox ID="ChkAplicar" runat="server" AutoPostBack="true" OnCheckedChanged="ChkAplicarNCBon_CheckedChanged" />
|
||||||
</Columns>
|
</ItemTemplate>
|
||||||
</asp:GridView>
|
</asp:TemplateField>
|
||||||
|
<asp:HyperLinkField DataNavigateUrlFields="CveVenta" Target="_blank" DataNavigateUrlFormatString="/Ventas/Ventas.aspx?CveVenta={0}" DataTextField="Folio" HeaderText="Folio" ItemStyle-Width="150px" ItemStyle-HorizontalAlign="Left" />
|
||||||
|
<asp:BoundField HeaderText="Fecha" DataField="Fecha" DataFormatString="{0:d}" ItemStyle-HorizontalAlign="Center" />
|
||||||
|
<asp:TemplateField HeaderText="Total" ItemStyle-HorizontalAlign="Right">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Literal ID="LtlTotal" runat="server" Text='<%# Eval("Original", "{0:N2}") %>'></asp:Literal>
|
||||||
|
<asp:Literal ID="LtlAbrev" runat="server" Text='<%# Eval("Abreviatura") %>'></asp:Literal>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField HeaderText="Saldo" ItemStyle-HorizontalAlign="Right">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Literal ID="LtlSaldo" runat="server" Text='<%# Eval("Saldo", "{0:N2}") %>'></asp:Literal>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField>
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:TextBox ID="TxtImporte" CssClass="myvalue" runat="server" Width="75px" />
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
</Columns>
|
||||||
|
</asp:GridView>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-12">
|
||||||
|
<table border="0" rules="none" class="well TextTab" style="float: right;" runat="server">
|
||||||
|
<tr align="right">
|
||||||
|
<td style="border: 1px none white"><b>Saldo Maximo Utilizable.:</b></td>
|
||||||
|
<td>
|
||||||
|
<asp:Label ID="LtlSMU" ClientIDMode="Static" runat="server" Style="text-align: right;" Text="0.00"></asp:Label></td>
|
||||||
|
<td align="right">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row" id="DivRNCBon" runat="server" visible="false">
|
||||||
|
<div 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">Bonificaciones</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">
|
||||||
|
<div class="row" style="margin-right: 10px;" align="right">
|
||||||
|
<input type="text" id="TxtBusquedaNCBon" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusquedaNCBon','{0}')", GvRemisionesNCBon.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
||||||
|
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusquedaNCBon','{0}')", GvRemisionesNCBon.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-12" style="max-height: 440px; overflow: auto">
|
||||||
|
<asp:GridView ID="GvRemisionesNCBon" runat="server" AutoGenerateColumns="False"
|
||||||
|
DataKeyNames="CveVenta,CveVentaRNCCargo" CssClass="table table-striped table-advance table-hover Widthall mysmallbtn" GridLines="None">
|
||||||
|
<Columns>
|
||||||
|
<asp:TemplateField>
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:CheckBox ID="ChkAplicar" runat="server" />
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:HyperLinkField DataNavigateUrlFields="CveVenta" Target="_blank" DataNavigateUrlFormatString="/Ventas/Ventas.aspx?CveVenta={0}" DataTextField="Folio" HeaderText="Folio" ItemStyle-Width="150px" ItemStyle-HorizontalAlign="Left" />
|
||||||
|
<asp:BoundField HeaderText="Fecha" DataField="Fecha" DataFormatString="{0:d}" ItemStyle-HorizontalAlign="Center" />
|
||||||
|
<asp:TemplateField HeaderText="Total" ItemStyle-HorizontalAlign="Right">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Literal ID="LtlTotal" runat="server" Text='<%# Eval("Original", "{0:N2}") %>'></asp:Literal>
|
||||||
|
<asp:Literal ID="LtlAbrev" runat="server" Text='<%# Eval("Abreviatura") %>'></asp:Literal>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField HeaderText="Saldo" ItemStyle-HorizontalAlign="Right">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Literal ID="LtlSaldo" runat="server" Text='<%# Eval("Saldo", "{0:N2}") %>'></asp:Literal>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField>
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:TextBox ID="TxtImporte" CssClass="myvalue" runat="server" Width="75px" />
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
</Columns>
|
||||||
|
</asp:GridView>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-12">
|
||||||
|
<table border="0" rules="none" class="well TextTab" style="float: right;" runat="server">
|
||||||
|
<tr align="right">
|
||||||
|
<td style="border: 1px none white"><b>Saldo Maximo Utilizable.:</b></td>
|
||||||
|
<td>
|
||||||
|
<asp:Label ID="LtlSMUBon" ClientIDMode="Static" runat="server" Style="text-align: right;" Text="0.00"></asp:Label></td>
|
||||||
|
<td align="right">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<button id="CancelarAplicarRemNC" type="button" class="btn btn-default" data-dismiss="modal">Cerrar</button>
|
<button id="CancelarAplicarRemNC" type="button" class="btn btn-default" data-dismiss="modal">Cerrar</button>
|
||||||
<asp:Button Text="Aplicar Remisiones" ID="BtnAplicarRemisionNC" OnClick="BtnAplicarRemisionNC_Click" CssClass="btn btn-primary" runat="server" />
|
<asp:Button Text="Aplicar Remisiones" ID="BtnAplicarRemisionNC" OnClick="BtnAplicarRemisionNC_Click" CssClass="btn btn-primary" runat="server" ValidationGroup="VGAplicarRNC" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
@@ -6609,40 +6731,144 @@
|
|||||||
<h4 class="modal-title">Aplicar Remisiones de Nota de Crédito</h4>
|
<h4 class="modal-title">Aplicar Remisiones de Nota de Crédito</h4>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<div class="row" style="margin-right: 10px; margin-top: 18px;" align="right">
|
<div class="row">
|
||||||
<input type="text" id="TxtBusquedaDescC" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusquedaDescC','{0}')", GvDescNC.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
<div class="col-md-12">
|
||||||
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusquedaDescC','{0}')", GvDescNC.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
<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">Cargos</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">
|
||||||
|
<div class="row" style="margin-right: 10px;" align="right">
|
||||||
|
<input type="text" id="TxtBusquedaNCCargos" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusquedaNCCargos','{0}')", GvDescNCCargos.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
||||||
|
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusquedaNCCargos','{0}')", GvDescNCCargos.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-12" style="max-height: 440px; overflow: auto">
|
||||||
|
<asp:GridView ID="GvDescNCCargos" runat="server" AutoGenerateColumns="False"
|
||||||
|
DataKeyNames="CveVenta" CssClass="table table-striped table-advance table-hover Widthall mysmallbtn" GridLines="None">
|
||||||
|
<Columns>
|
||||||
|
<asp:TemplateField>
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:CheckBox ID="ChkAplicar" runat="server" AutoPostBack="true" OnCheckedChanged="ChkAplicarRNC_CheckedChanged" />
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:HyperLinkField DataNavigateUrlFields="CveVenta" Target="_blank" DataNavigateUrlFormatString="/Ventas/Ventas.aspx?CveVenta={0}" DataTextField="Folio" HeaderText="Folio" ItemStyle-Width="150px" ItemStyle-HorizontalAlign="Left" />
|
||||||
|
<asp:BoundField HeaderText="Fecha" DataField="Fecha" DataFormatString="{0:d}" ItemStyle-HorizontalAlign="Center" />
|
||||||
|
<asp:TemplateField HeaderText="Total" ItemStyle-HorizontalAlign="Right">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Literal ID="LtlTotal" runat="server" Text='<%# Eval("Original", "{0:N2}") %>'></asp:Literal>
|
||||||
|
<asp:Literal ID="LtlAbrev" runat="server" Text='<%# Eval("Abreviatura") %>'></asp:Literal>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField HeaderText="Saldo" ItemStyle-HorizontalAlign="Right">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Literal ID="LtlSaldo" runat="server" Text='<%# Eval("Saldo", "{0:N2}") %>'></asp:Literal>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField>
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:TextBox ID="TxtImporte" CssClass="myvalue" runat="server" Width="75px" />
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
</Columns>
|
||||||
|
</asp:GridView>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-12">
|
||||||
|
<table border="0" rules="none" class="well TextTab" style="float: right;" runat="server">
|
||||||
|
<tr align="right">
|
||||||
|
<td style="border: 1px none white"><b>Saldo Maximo Utilizable.:</b></td>
|
||||||
|
<td>
|
||||||
|
<asp:Label ID="LblSaldoMaximoUsados" ClientIDMode="Static" runat="server" Style="text-align: right;" Text="0.00"></asp:Label></td>
|
||||||
|
<td align="right">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row" style="max-height: 10px">
|
<div class="row" id="DivRNCBonificaciones" runat="server" visible="false">
|
||||||
<div class="col-md-12" style="height: 440px; overflow: auto">
|
<div class="col-md-12">
|
||||||
<asp:GridView ID="GvDescNC" runat="server" AutoGenerateColumns="False"
|
<div class="portlet light xspadding bordered">
|
||||||
DataKeyNames="CveVenta" CssClass="table table-striped table-advance table-hover Widthall mysmallbtn" GridLines="None">
|
<div class="portlet-title">
|
||||||
<Columns>
|
<div class="caption font-green">
|
||||||
<asp:TemplateField>
|
<i class="icon-pin font-green"></i>
|
||||||
<ItemTemplate>
|
<span class="caption-subject bold uppercase">Bonificaciones</span>
|
||||||
<asp:CheckBox ID="ChkAplicar" runat="server" />
|
</div>
|
||||||
</ItemTemplate>
|
<div class="actions">
|
||||||
</asp:TemplateField>
|
<div class="btn-group">
|
||||||
<asp:HyperLinkField DataNavigateUrlFields="CveVenta" Target="_blank" DataNavigateUrlFormatString="/Ventas/Ventas.aspx?CveVenta={0}" DataTextField="Folio" HeaderText="Folio" ItemStyle-Width="150px" ItemStyle-HorizontalAlign="Left" />
|
</div>
|
||||||
<asp:BoundField HeaderText="Fecha" DataField="Fecha" DataFormatString="{0:d}" ItemStyle-HorizontalAlign="Center" />
|
</div>
|
||||||
<asp:TemplateField HeaderText="Total" ItemStyle-HorizontalAlign="Right">
|
<div class="tools">
|
||||||
<ItemTemplate>
|
<a href="javascript:;" class="collapse"></a>
|
||||||
<asp:Literal ID="LtlTotal" runat="server" Text='<%# Eval("Original", "{0:N2}") %>'></asp:Literal>
|
</div>
|
||||||
<asp:Literal ID="LtlAbrev" runat="server" Text='<%# Eval("Abreviatura") %>'></asp:Literal>
|
</div>
|
||||||
</ItemTemplate>
|
<div class="portlet-body form-horizontal form-row-sepe formnombottom">
|
||||||
</asp:TemplateField>
|
<div class="row" style="margin-right: 10px;" align="right">
|
||||||
<asp:TemplateField HeaderText="Saldo" ItemStyle-HorizontalAlign="Right">
|
<input type="text" id="TxtBusquedaNCBonificaciones" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusquedaNCBonificaciones','{0}')", GvDescNCBonificaciones.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
||||||
<ItemTemplate>
|
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusquedaNCBonificaciones','{0}')", GvDescNCBonificaciones.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||||||
<asp:Literal ID="LtlSaldo" runat="server" Text='<%# Eval("Saldo", "{0:N2}") %>'></asp:Literal>
|
</div>
|
||||||
</ItemTemplate>
|
<div class="row">
|
||||||
</asp:TemplateField>
|
<div class="col-md-12" style="max-height: 440px; overflow: auto">
|
||||||
<asp:TemplateField>
|
<asp:GridView ID="GvDescNCBonificaciones" runat="server" AutoGenerateColumns="False"
|
||||||
<ItemTemplate>
|
DataKeyNames="CveVenta,CveVentaRNCCargo" CssClass="table table-striped table-advance table-hover Widthall mysmallbtn" GridLines="None">
|
||||||
<asp:TextBox ID="TxtImporte" CssClass="myvalue" runat="server" Width="75px" />
|
<Columns>
|
||||||
</ItemTemplate>
|
<asp:TemplateField>
|
||||||
</asp:TemplateField>
|
<ItemTemplate>
|
||||||
</Columns>
|
<asp:CheckBox ID="ChkAplicar" runat="server" />
|
||||||
</asp:GridView>
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:HyperLinkField DataNavigateUrlFields="CveVenta" Target="_blank" DataNavigateUrlFormatString="/Ventas/Ventas.aspx?CveVenta={0}" DataTextField="Folio" HeaderText="Folio" ItemStyle-Width="150px" ItemStyle-HorizontalAlign="Left" />
|
||||||
|
<asp:BoundField HeaderText="Fecha" DataField="Fecha" DataFormatString="{0:d}" ItemStyle-HorizontalAlign="Center" />
|
||||||
|
<asp:TemplateField HeaderText="Total" ItemStyle-HorizontalAlign="Right">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Literal ID="LtlTotal" runat="server" Text='<%# Eval("Original", "{0:N2}") %>'></asp:Literal>
|
||||||
|
<asp:Literal ID="LtlAbrev" runat="server" Text='<%# Eval("Abreviatura") %>'></asp:Literal>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField HeaderText="Saldo" ItemStyle-HorizontalAlign="Right">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Literal ID="LtlSaldo" runat="server" Text='<%# Eval("Saldo", "{0:N2}") %>'></asp:Literal>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField>
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:TextBox ID="TxtImporte" CssClass="myvalue" runat="server" Width="75px" />
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
</Columns>
|
||||||
|
</asp:GridView>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-12">
|
||||||
|
<table border="0" rules="none" class="well TextTab" style="float: right;" runat="server">
|
||||||
|
<tr align="right">
|
||||||
|
<td style="border: 1px none white"><b>Saldo Maximo Utilizable.:</b></td>
|
||||||
|
<td>
|
||||||
|
<asp:Label ID="LblSaldoMaximoBonificacion" ClientIDMode="Static" runat="server" Style="text-align: right;" Text="0.00"></asp:Label></td>
|
||||||
|
<td align="right">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -6661,7 +6887,6 @@
|
|||||||
|
|
||||||
//FUNCIONES PARA COMERCIO EXTERIOR
|
//FUNCIONES PARA COMERCIO EXTERIOR
|
||||||
function CalculaTotalUSD(TotalUSD, ValorUnitario, TxtCantidad) {
|
function CalculaTotalUSD(TotalUSD, ValorUnitario, TxtCantidad) {
|
||||||
; debugger
|
|
||||||
TotalUSD.innerText = FormatoNumero(ToDouble(ValorUnitario.value) * ToDouble(TxtCantidad.value), 2);
|
TotalUSD.innerText = FormatoNumero(ToDouble(ValorUnitario.value) * ToDouble(TxtCantidad.value), 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -7465,129 +7690,129 @@
|
|||||||
|
|
||||||
var Total = ToDouble($get('TxtSubTotal').value);
|
var Total = ToDouble($get('TxtSubTotal').value);
|
||||||
let TipoAnticipo = $('#<%= DdlTipoAmortizacionAnticipo.ClientID %>').val();
|
let TipoAnticipo = $('#<%= DdlTipoAmortizacionAnticipo.ClientID %>').val();
|
||||||
let importeTxt = parseFloat(txt.value.replace(/,/g, ''));
|
let importeTxt = parseFloat(txt.value.replace(/,/g, ''));
|
||||||
|
|
||||||
if (isNaN(importeTxt)) {
|
if (isNaN(importeTxt)) {
|
||||||
importeTxt = 0;
|
importeTxt = 0;
|
||||||
} else {
|
} else {
|
||||||
if (importeTxt <= 0) {
|
if (importeTxt <= 0) {
|
||||||
importeTxt = 0;
|
importeTxt = 0;
|
||||||
chk.checked = false;
|
chk.checked = false;
|
||||||
return;
|
return;
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
saldo = (importeTxt > saldo) ? saldo : importeTxt;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
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");
|
|
||||||
}
|
|
||||||
|
|
||||||
$("#LblTotalAnticipos").text(FormatoNumero(FnSumaValoresAnt(), 2));
|
|
||||||
|
|
||||||
|
|
||||||
$get('HdnVentaSaldo').value = Total - FnSumaValoresAnt();
|
|
||||||
}
|
|
||||||
|
|
||||||
function FnSumaValoresAnt() {
|
|
||||||
debugger;
|
|
||||||
var totalPoints = 0;
|
|
||||||
var t = '';
|
|
||||||
|
|
||||||
|
|
||||||
$('input[name*=TxtAnticipo]').each(function () {
|
|
||||||
totalPoints += ToDouble($(this).val());
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
return Math.round(totalPoints * 100) / 100;
|
|
||||||
}
|
|
||||||
|
|
||||||
function LimpiaModal() {
|
|
||||||
$('#<%= TxtDireccion.ClientID %>').val('');
|
|
||||||
$('#<%= TxtColonia.ClientID %>').val('');
|
|
||||||
$('#<%= TxtCiudad.ClientID %>').val('');
|
|
||||||
$('#<%= TxtEstado.ClientID %>').val('');
|
|
||||||
$('#<%= TxtCP.ClientID %>').val('');
|
|
||||||
}
|
|
||||||
|
|
||||||
function BtnMateriales() {
|
|
||||||
$('#BtnMateriales').click();
|
|
||||||
}
|
|
||||||
|
|
||||||
function BtnEnviarMailCancelacion() {
|
|
||||||
$('#BtnEnviarMailCancelacion').click();
|
|
||||||
}
|
|
||||||
function BtnRefacturacionConfirmar() {
|
|
||||||
$('#BtnRefacturacionConfirmar').click();
|
|
||||||
}
|
|
||||||
function BtnRefacturacionConfirmarAceptacion(Liga) {
|
|
||||||
$('#BtnRefacturacionConfirmarAceptacion').click();
|
|
||||||
}
|
|
||||||
function BtnRefrescarPagina() {
|
|
||||||
$('#BtnRefrescarPagina').click();
|
|
||||||
}
|
|
||||||
function Recargar() {
|
|
||||||
$('#BtnRefrescarPagina').click();
|
|
||||||
}
|
|
||||||
function BtnAplicaNuevaNC() {
|
|
||||||
$('#BtnAplicaNuevaNC').click();
|
|
||||||
}
|
|
||||||
|
|
||||||
$('.DdlPS').on("select2:open", function (e) { $('.select2-container.select2-container--default .select2-dropdown .select2anothertable').remove(); });
|
|
||||||
$('.DdlPSPyME').on("select2:open", function (e) { $('.select2-container.select2-container--default .select2-dropdown .select2anothertable').remove(); });
|
|
||||||
|
|
||||||
$("body").on("mouseenter", ".select2-container.select2-container--default.select2-container--open .select2-dropdown li", function (event) {
|
|
||||||
var $this = $(this);
|
|
||||||
var ind = $this.index();
|
|
||||||
$(".select2-container.select2-container--default.select2-container--open .select2-dropdown .select2anothertable tr.active").removeClass('active');
|
|
||||||
$(".select2-container.select2-container--default.select2-container--open .select2-dropdown .select2anothertable tr:nth-child(" + (ind + 2) + ")").addClass('active');
|
|
||||||
//log($this);
|
|
||||||
});
|
|
||||||
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" style=" max-width: 950px; overflow-x: auto;"></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 id="TExistencias" ></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;
|
saldo = (importeTxt > saldo) ? saldo : importeTxt;
|
||||||
for (var key in item) {
|
|
||||||
if (!(key == "text" || key == "id")) {
|
|
||||||
if ((item[key] > 0)) {
|
|
||||||
td = $('<td style = "font-weight:bold;" >' + item[key] + '</td>'); tr.append(td);
|
var SaldoCompra = (Total - FnSumaValoresAnt() + ToDouble(txt.value)).toFixed(2); // le agrego lo del valor actual para validarlo //parseFloat(parseFloat($get('HdnVentaSaldo').value).toFixed(2));
|
||||||
} else {
|
if (SaldoCompra < 0) txt.value = SaldoCompra - txt.value;
|
||||||
if ('<%= UsuarioActual.Empresa.Funcionalidad(566) %>' == '1') {
|
//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");
|
||||||
|
}
|
||||||
|
|
||||||
|
$("#LblTotalAnticipos").text(FormatoNumero(FnSumaValoresAnt(), 2));
|
||||||
|
|
||||||
|
|
||||||
|
$get('HdnVentaSaldo').value = Total - FnSumaValoresAnt();
|
||||||
|
}
|
||||||
|
|
||||||
|
function FnSumaValoresAnt() {
|
||||||
|
debugger;
|
||||||
|
var totalPoints = 0;
|
||||||
|
var t = '';
|
||||||
|
|
||||||
|
|
||||||
|
$('input[name*=TxtAnticipo]').each(function () {
|
||||||
|
totalPoints += ToDouble($(this).val());
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
return Math.round(totalPoints * 100) / 100;
|
||||||
|
}
|
||||||
|
|
||||||
|
function LimpiaModal() {
|
||||||
|
$('#<%= TxtDireccion.ClientID %>').val('');
|
||||||
|
$('#<%= TxtColonia.ClientID %>').val('');
|
||||||
|
$('#<%= TxtCiudad.ClientID %>').val('');
|
||||||
|
$('#<%= TxtEstado.ClientID %>').val('');
|
||||||
|
$('#<%= TxtCP.ClientID %>').val('');
|
||||||
|
}
|
||||||
|
|
||||||
|
function BtnMateriales() {
|
||||||
|
$('#BtnMateriales').click();
|
||||||
|
}
|
||||||
|
|
||||||
|
function BtnEnviarMailCancelacion() {
|
||||||
|
$('#BtnEnviarMailCancelacion').click();
|
||||||
|
}
|
||||||
|
function BtnRefacturacionConfirmar() {
|
||||||
|
$('#BtnRefacturacionConfirmar').click();
|
||||||
|
}
|
||||||
|
function BtnRefacturacionConfirmarAceptacion(Liga) {
|
||||||
|
$('#BtnRefacturacionConfirmarAceptacion').click();
|
||||||
|
}
|
||||||
|
function BtnRefrescarPagina() {
|
||||||
|
$('#BtnRefrescarPagina').click();
|
||||||
|
}
|
||||||
|
function Recargar() {
|
||||||
|
$('#BtnRefrescarPagina').click();
|
||||||
|
}
|
||||||
|
function BtnAplicaNuevaNC() {
|
||||||
|
$('#BtnAplicaNuevaNC').click();
|
||||||
|
}
|
||||||
|
|
||||||
|
$('.DdlPS').on("select2:open", function (e) { $('.select2-container.select2-container--default .select2-dropdown .select2anothertable').remove(); });
|
||||||
|
$('.DdlPSPyME').on("select2:open", function (e) { $('.select2-container.select2-container--default .select2-dropdown .select2anothertable').remove(); });
|
||||||
|
|
||||||
|
$("body").on("mouseenter", ".select2-container.select2-container--default.select2-container--open .select2-dropdown li", function (event) {
|
||||||
|
var $this = $(this);
|
||||||
|
var ind = $this.index();
|
||||||
|
$(".select2-container.select2-container--default.select2-container--open .select2-dropdown .select2anothertable tr.active").removeClass('active');
|
||||||
|
$(".select2-container.select2-container--default.select2-container--open .select2-dropdown .select2anothertable tr:nth-child(" + (ind + 2) + ")").addClass('active');
|
||||||
|
//log($this);
|
||||||
|
});
|
||||||
|
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" style=" max-width: 950px; overflow-x: auto;"></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 id="TExistencias" ></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")) {
|
||||||
|
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 + "');"
|
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 {
|
} else {
|
||||||
@@ -7857,5 +8082,21 @@
|
|||||||
$('#ModalAplicarRemisionesNC').modal('hide');
|
$('#ModalAplicarRemisionesNC').modal('hide');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var verficaRNC = function () {
|
||||||
|
var total = 0;
|
||||||
|
if ('<%= UsuarioActual.CveEmpresa %>' == '140') {
|
||||||
|
$(".ChkAplicaRNC > input").each(function () {
|
||||||
|
if (this.checked) {
|
||||||
|
total = total + 1;
|
||||||
|
}
|
||||||
|
if (total == 2) {
|
||||||
|
alert("No se puede seleccionar mas de una remisión de nota de crédito.");
|
||||||
|
this.checked = false;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user