Merge branch 'master' of http://jperez@192.168.10.111:8383/SIG.git
This commit is contained in:
@@ -1554,7 +1554,9 @@ Public Class ClsClientes
|
|||||||
|
|
||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
Public Function AgregarClienteNoFrecuente(Nombre As String, Direccion As String, NoExt As String, NoInt As String, Colonia As String, Localidad As String, Ciudad As String, Estado As String, Pais As String, RFC As String, CP As String, Telefono As String, Mail As String, CveSubProyecto As Integer, CveUsuario As Integer, CveEmpresa As Integer, NumCuentaPago As String, Optional CvePrecioLista As Integer = -1) As Boolean
|
Public Function AgregarClienteNoFrecuente(Nombre As String, Direccion As String, NoExt As String, NoInt As String, Colonia As String, Localidad As String, Ciudad As String, Estado As String,
|
||||||
|
Pais As String, RFC As String, CP As String, Telefono As String, Mail As String, CveSubProyecto As Integer, CveUsuario As Integer, CveEmpresa As Integer,
|
||||||
|
NumCuentaPago As String, CveMetodoPago33 As Integer, CveFormaPago33 As Integer, Optional CvePrecioLista As Integer = -1) As Boolean
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
DataAdapter("PA_ClientesNoFrecuenteAdd")
|
DataAdapter("PA_ClientesNoFrecuenteAdd")
|
||||||
|
|
||||||
@@ -1575,6 +1577,8 @@ Public Class ClsClientes
|
|||||||
.Add("@CveSubProyecto", SqlDbType.Int).Value = CveSubProyecto
|
.Add("@CveSubProyecto", SqlDbType.Int).Value = CveSubProyecto
|
||||||
.Add("@CveUsuario", SqlDbType.Int).Value = CveUsuario
|
.Add("@CveUsuario", SqlDbType.Int).Value = CveUsuario
|
||||||
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
||||||
|
.Add("@CveMetodoPago33", SqlDbType.Int).Value = CveMetodoPago33
|
||||||
|
.Add("@CveFormaPago33", SqlDbType.Int).Value = CveFormaPago33
|
||||||
.Add("@NumCuentaPago", SqlDbType.VarChar).Value = NumCuentaPago
|
.Add("@NumCuentaPago", SqlDbType.VarChar).Value = NumCuentaPago
|
||||||
.Add("@CvePrecioLista", SqlDbType.Int).Value = CvePrecioLista
|
.Add("@CvePrecioLista", SqlDbType.Int).Value = CvePrecioLista
|
||||||
|
|
||||||
|
|||||||
@@ -2677,6 +2677,45 @@ Public Class ClsVentas
|
|||||||
Return OnError
|
Return OnError
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
Public Function GetFacturasCanceladasPendientesWS(RFC As String, CveEmpresa As Integer, Optional showalert As Boolean = True) As Boolean
|
||||||
|
Dim retorno As Boolean = False
|
||||||
|
Try
|
||||||
|
|
||||||
|
Dim objServicio As Cancelacion.CancelacionSoapClient = New Cancelacion.CancelacionSoapClient()
|
||||||
|
Dim resp As Cancelacion.StructCancel = objServicio.ObtienePendientes(RFC, "UserTest", "1234567890")
|
||||||
|
If resp.Estado = 0 Then
|
||||||
|
Dim XmlPendientes As String = System.Text.Encoding.UTF8.GetString(Convert.FromBase64String(resp.Xml))
|
||||||
|
Dim theReader As IO.StringReader = New IO.StringReader(XmlPendientes)
|
||||||
|
Dim theDataSet As DataSet = New DataSet()
|
||||||
|
theDataSet.ReadXml(theReader)
|
||||||
|
|
||||||
|
If theDataSet.Tables(0).Rows(0)("Uuid").ToString() <> "null" Then
|
||||||
|
Dim sb = New StringBuilder()
|
||||||
|
|
||||||
|
For Each item As DataRow In theDataSet.Tables(0).Rows
|
||||||
|
sb.AppendFormat("{0};", item("Uuid").ToString())
|
||||||
|
Next
|
||||||
|
|
||||||
|
If GetFacturasCanceladasPendientes(sb.ToString(), CveEmpresa) Then
|
||||||
|
retorno = True
|
||||||
|
End If
|
||||||
|
|
||||||
|
Else
|
||||||
|
If showalert Then
|
||||||
|
Alert("No se encontraron cancelaciones pendientes", ModExtensiones.TipoMensaje.MsgError)
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
Else
|
||||||
|
Alert("Error al obtener cancelaciones pendientes: " & resp.Descripcion, ModExtensiones.TipoMensaje.MsgError)
|
||||||
|
End If
|
||||||
|
|
||||||
|
Catch ex As Exception
|
||||||
|
retorno = False
|
||||||
|
Me.OnError("Error al obtener cancelaciones pendientes: ", ex, "")
|
||||||
|
End Try
|
||||||
|
Return retorno
|
||||||
|
End Function
|
||||||
|
|
||||||
Public Function UpdateVentaFacturas(CveFactura As Integer, CveVenta As Integer, CveEmpresa As Integer) As Boolean
|
Public Function UpdateVentaFacturas(CveFactura As Integer, CveVenta As Integer, CveEmpresa As Integer) As Boolean
|
||||||
Dim OnError As Boolean = False
|
Dim OnError As Boolean = False
|
||||||
|
|
||||||
|
|||||||
@@ -81,6 +81,14 @@ Partial Class Bancos_RepProgramarRecursos
|
|||||||
ViewState("UsuarioProgramo") = value
|
ViewState("UsuarioProgramo") = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
Private Property CveProveedor As Integer
|
||||||
|
Get
|
||||||
|
Return ViewState("CveProveedor").ToString.ToEntero
|
||||||
|
End Get
|
||||||
|
Set(value As Integer)
|
||||||
|
ViewState("CveProveedor") = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
|
Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
|
||||||
@@ -91,7 +99,6 @@ Partial Class Bancos_RepProgramarRecursos
|
|||||||
Orden = ""
|
Orden = ""
|
||||||
Opcion = "-1"
|
Opcion = "-1"
|
||||||
HdnEmp.Value = UsuarioActual.CveEmpresa.ToString
|
HdnEmp.Value = UsuarioActual.CveEmpresa.ToString
|
||||||
|
|
||||||
If (UsuarioActual.Empresa.Funcionalidad(105) = "1" Or UsuarioActual.Empresa.Funcionalidad(141) = "1") Then
|
If (UsuarioActual.Empresa.Funcionalidad(105) = "1" Or UsuarioActual.Empresa.Funcionalidad(141) = "1") Then
|
||||||
DdlProveedores.setEsWebService(True)
|
DdlProveedores.setEsWebService(True)
|
||||||
DdlProveedores.Attributes.Add("data-metodo", "getproveedores")
|
DdlProveedores.Attributes.Add("data-metodo", "getproveedores")
|
||||||
@@ -303,7 +310,7 @@ Partial Class Bancos_RepProgramarRecursos
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub CargaDatos()
|
Private Sub CargaDatos()
|
||||||
|
CveProveedor = DdlProveedores.SelectedValue.ToEntero
|
||||||
Dim CveUsuarioProgramo As Integer = DdlUsuarioProgramo.SelectedValue.ToEntero 'UsuarioActual.CveUsuario
|
Dim CveUsuarioProgramo As Integer = DdlUsuarioProgramo.SelectedValue.ToEntero 'UsuarioActual.CveUsuario
|
||||||
If Not ChkProgramadas.Checked Then CveUsuarioProgramo = -1
|
If Not ChkProgramadas.Checked Then CveUsuarioProgramo = -1
|
||||||
If ChkProgramadas.Checked And DdlUsuarioProgramo.SelectedValue.ToEntero = -1 Then CveUsuarioProgramo = -2
|
If ChkProgramadas.Checked And DdlUsuarioProgramo.SelectedValue.ToEntero = -1 Then CveUsuarioProgramo = -2
|
||||||
@@ -803,7 +810,8 @@ Partial Class Bancos_RepProgramarRecursos
|
|||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
Private Sub Imprimir(Optional Formato As String = "PDF")
|
Private Sub Imprimir(Optional Formato As String = "PDF")
|
||||||
Dim Proveedor = If(DdlProveedores.SelectedValue = "-1", "", $" <b>Proveedor:</b> {DdlProveedores.SelectedText}")
|
|
||||||
|
Dim Proveedor = If(CveProveedor = -1, "", $" <b>Proveedor:</b> {GlobalDTCompProveedores(UsuarioActual.CveEmpresa).FiltraParametros($"CveProveedor = {CveProveedor}").Rows(0)("RazonSocial").ToString}")
|
||||||
Dim Clasificacion = If(DdlProveedoresClasificaciones.SelectedValue = "-1", "", $" <b>Clasificación:</b> {DdlProveedoresClasificaciones.SelectedItem.Text}")
|
Dim Clasificacion = If(DdlProveedoresClasificaciones.SelectedValue = "-1", "", $" <b>Clasificación:</b> {DdlProveedoresClasificaciones.SelectedItem.Text}")
|
||||||
Dim AplicaNC = If(DdlAplicaNC.SelectedValue = "-1", "", $" <b>Aplica NC:</b> {DdlAplicaNC.SelectedItem.Text}")
|
Dim AplicaNC = If(DdlAplicaNC.SelectedValue = "-1", "", $" <b>Aplica NC:</b> {DdlAplicaNC.SelectedItem.Text}")
|
||||||
Dim TipoProv = If(DdlTipoProveedor.SelectedValue = "0", "", $" <b>Tipo Prov.:</b> {DdlTipoProveedor.SelectedItem.Text}")
|
Dim TipoProv = If(DdlTipoProveedor.SelectedValue = "0", "", $" <b>Tipo Prov.:</b> {DdlTipoProveedor.SelectedItem.Text}")
|
||||||
|
|||||||
@@ -907,8 +907,10 @@
|
|||||||
<td runat="server" id="tdT5" visible="false">
|
<td runat="server" id="tdT5" visible="false">
|
||||||
<asp:Label Text="" ID="LbIVAOriginal" runat="server" />
|
<asp:Label Text="" ID="LbIVAOriginal" runat="server" />
|
||||||
</td>
|
</td>
|
||||||
<td runat="server" id="tdIVA6" visible="false">
|
<td runat="server" id="tdIVA6" visible="false" class="label label-sm label-success" style="color:white!important" >
|
||||||
<asp:LinkButton runat="server" ID="LnkActivaIva6" Text="" ToolTip="Ret IVA Servicios" OnClick="LnkActivaIva6_Click"><i class="fa fa-usd" aria-hidden="true"></i></asp:LinkButton>
|
|
||||||
|
<asp:LinkButton runat="server" ID="LnkActivaIva6" Text="" ToolTip="Ret IVA Servicios" OnClick="LnkActivaIva6_Click" style="color:white!important" >Deglose 6%</asp:LinkButton>
|
||||||
|
<%--<asp:LinkButton runat="server" ID="LnkActivaIva6" Text="" ToolTip="Ret IVA Servicios" OnClick="LnkActivaIva6_Click"><i class="fa fa-usd" aria-hidden="true"></i></asp:LinkButton>--%>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<%--<td align="left" runat="server" id="TdIVA" visible="false">
|
<%--<td align="left" runat="server" id="TdIVA" visible="false">
|
||||||
|
|||||||
@@ -1026,9 +1026,16 @@ Partial Class Compras_Compras
|
|||||||
ViewState("SubTotal2Original") = value
|
ViewState("SubTotal2Original") = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
Private Property IVAOriginal As Double
|
Private Property IVAOriginal As Double
|
||||||
Get
|
Get
|
||||||
Return ViewState("IVAOriginal").ToString.ToDouble
|
|
||||||
|
If ViewState("IVAOriginal") Is Nothing Then
|
||||||
|
Return 0
|
||||||
|
Else
|
||||||
|
Return ViewState("IVAOriginal").ToString.ToDouble
|
||||||
|
End If
|
||||||
|
|
||||||
End Get
|
End Get
|
||||||
Set(value As Double)
|
Set(value As Double)
|
||||||
ViewState("IVAOriginal") = value
|
ViewState("IVAOriginal") = value
|
||||||
@@ -2087,7 +2094,11 @@ Partial Class Compras_Compras
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
DdlRetIVAConcepto.Items.Add(New ListItem("Arrendamiento", "4"))
|
DdlRetIVAConcepto.Items.Add(New ListItem("Arrendamiento", "4"))
|
||||||
DdlRetIVAConcepto.Items.Add(New ListItem("Ret IVA Servicios", "5"))
|
|
||||||
|
If UsuarioActual.Empresa.Funcionalidad(577).ToEntero = 1 Then
|
||||||
|
DdlRetIVAConcepto.Items.Add(New ListItem("Ret IVA Servicios", "5"))
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
@@ -2237,15 +2248,15 @@ Partial Class Compras_Compras
|
|||||||
|
|
||||||
If UsuarioActual.Empresa.Funcionalidad(577).ToString = "1" Then
|
If UsuarioActual.Empresa.Funcionalidad(577).ToString = "1" Then
|
||||||
|
|
||||||
'If UsuarioActual.CveRol = 1 Then
|
|
||||||
' Alert("Ok funcionalidad 577")
|
|
||||||
'End If
|
|
||||||
|
|
||||||
|
|
||||||
If RetencionIVA = 0 And IVAOriginal > 0 Then
|
If RetencionIVA = 0 And IVAOriginal > 0 Then
|
||||||
For Each dRow As DataRow In TmpDT.Rows
|
For Each dRow As DataRow In TmpDT.Rows
|
||||||
If dRow("CveTipoPS").ToString.ToEntero = 1 Then
|
If dRow("CveTipoPS").ToString.ToEntero = 1 Then
|
||||||
tdIVA6.Visible = True
|
|
||||||
|
'comentado para reubicar el boton
|
||||||
|
'tdIVA6.Visible = True
|
||||||
|
|
||||||
|
|
||||||
Exit For
|
Exit For
|
||||||
End If
|
End If
|
||||||
Next
|
Next
|
||||||
@@ -17025,7 +17036,8 @@ Partial Class Compras_Compras
|
|||||||
If RetencionIVA = 0 And IVAOriginal > 0 Then
|
If RetencionIVA = 0 And IVAOriginal > 0 Then
|
||||||
For Each dRow As DataRow In TmpDT.Rows
|
For Each dRow As DataRow In TmpDT.Rows
|
||||||
If dRow("CveTipoPS").ToString.ToEntero = 1 Then
|
If dRow("CveTipoPS").ToString.ToEntero = 1 Then
|
||||||
tdIVA6.Visible = True
|
'Comnetado para reubicar el boton
|
||||||
|
'tdIVA6.Visible = True
|
||||||
Exit For
|
Exit For
|
||||||
End If
|
End If
|
||||||
Next
|
Next
|
||||||
@@ -19305,7 +19317,7 @@ Partial Class Compras_Compras
|
|||||||
|
|
||||||
DdlRetIVAConcepto.SelectedValueExist("5")
|
DdlRetIVAConcepto.SelectedValueExist("5")
|
||||||
|
|
||||||
LblRetIVA.Text = "0.06%"
|
LblRetIVA.Text = "6.0%"
|
||||||
|
|
||||||
RetencionIVA = TmpDT.SUMD("RetIVA")
|
RetencionIVA = TmpDT.SUMD("RetIVA")
|
||||||
TxtRetIVA.Text = RetencionIVA.ToString("###,###,###.00")
|
TxtRetIVA.Text = RetencionIVA.ToString("###,###,###.00")
|
||||||
|
|||||||
@@ -1322,7 +1322,7 @@ Partial Class PopUpVerFactura
|
|||||||
If CveConcepto = 33 Then ConceptoFormato = "ENTRADA MANUAL"
|
If CveConcepto = 33 Then ConceptoFormato = "ENTRADA MANUAL"
|
||||||
|
|
||||||
'IMPRESION ESPECIAL SALIDA DE COMPUPROVEEDORES y VSH
|
'IMPRESION ESPECIAL SALIDA DE COMPUPROVEEDORES y VSH
|
||||||
If UsuarioActual.CveEmpresa.Contiene(72, 80, 119, 4, 145) Then
|
If UsuarioActual.CveEmpresa.Contiene(72, 80, 119, 4, 145, 146) Then
|
||||||
params.Add(New ReportParameter("Empresa", UsuarioActual.Empresa.Empresa))
|
params.Add(New ReportParameter("Empresa", UsuarioActual.Empresa.Empresa))
|
||||||
params.Add(New ReportParameter("Concepto", ConceptoFormato))
|
params.Add(New ReportParameter("Concepto", ConceptoFormato))
|
||||||
params.Add(New ReportParameter("Almacen", Almacen))
|
params.Add(New ReportParameter("Almacen", Almacen))
|
||||||
|
|||||||
@@ -2815,6 +2815,9 @@ Partial Class Compras_eFacturas
|
|||||||
CveProveedor = gvRow.DataKey("CveProveedor").ToEntero
|
CveProveedor = gvRow.DataKey("CveProveedor").ToEntero
|
||||||
Dim ObjCompras As New ClsCompras
|
Dim ObjCompras As New ClsCompras
|
||||||
|
|
||||||
|
|
||||||
|
Dim TieneRegistros As Boolean = False
|
||||||
|
|
||||||
If ObjCompras.GetCompararComplementoPago(gvRow.DataKey("CveProveedor").ToEntero, Monto, nodePagos2.InnerXml.Replace("pago10:", ""), UsuarioActual.CveEmpresa) Then
|
If ObjCompras.GetCompararComplementoPago(gvRow.DataKey("CveProveedor").ToEntero, Monto, nodePagos2.InnerXml.Replace("pago10:", ""), UsuarioActual.CveEmpresa) Then
|
||||||
GvVincularPago.DataSource = ObjCompras.DtResultados
|
GvVincularPago.DataSource = ObjCompras.DtResultados
|
||||||
|
|
||||||
@@ -2822,7 +2825,7 @@ Partial Class Compras_eFacturas
|
|||||||
SerieFolioIE = ObjCompras.DtResultados.Rows(0)("SerieFolio").ToString
|
SerieFolioIE = ObjCompras.DtResultados.Rows(0)("SerieFolio").ToString
|
||||||
DivVincularPagoManualmente.Visible = False
|
DivVincularPagoManualmente.Visible = False
|
||||||
BtnVincularPago.Visible = True
|
BtnVincularPago.Visible = True
|
||||||
|
TieneRegistros = True
|
||||||
Else
|
Else
|
||||||
DivVincularPagoManualmente.Visible = True
|
DivVincularPagoManualmente.Visible = True
|
||||||
BtnVincularPago.Visible = False
|
BtnVincularPago.Visible = False
|
||||||
@@ -2835,6 +2838,7 @@ Partial Class Compras_eFacturas
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
For Each drow As DataRow In ObjCompras.DtResultados.FiltraParametros("CveIE > 0 AND FechaDocumento IS NOT NULL", "", {"FechaDocumento"}).Rows
|
For Each drow As DataRow In ObjCompras.DtResultados.FiltraParametros("CveIE > 0 AND FechaDocumento IS NOT NULL", "", {"FechaDocumento"}).Rows
|
||||||
|
|
||||||
Dim FechaDocumento As Date = drow("FechaDocumento").ToString.ToDate
|
Dim FechaDocumento As Date = drow("FechaDocumento").ToString.ToDate
|
||||||
@@ -2873,12 +2877,18 @@ Partial Class Compras_eFacturas
|
|||||||
TextoDiferenciaImporte = $"<b> - IE ${ImporteIES.FormatoNumero}</b> <div style='color:red'><strong>Diferencia { DiferenciaImportes.FormatoNumero() }</strong></div>"
|
TextoDiferenciaImporte = $"<b> - IE ${ImporteIES.FormatoNumero}</b> <div style='color:red'><strong>Diferencia { DiferenciaImportes.FormatoNumero() }</strong></div>"
|
||||||
BtnVincularPago.Visible = False
|
BtnVincularPago.Visible = False
|
||||||
MSGComplemento = MSGComplemento & $" Existe una diferencia mayor a $5.00 ({Math.Abs(DiferenciaImportes)})"
|
MSGComplemento = MSGComplemento & $" Existe una diferencia mayor a $5.00 ({Math.Abs(DiferenciaImportes)})"
|
||||||
|
|
||||||
|
If TieneRegistros AndAlso UsuarioActual.TienePermisoProceso(286) Then
|
||||||
|
DivVincularPagoManualmente.Visible = True
|
||||||
|
End If
|
||||||
|
|
||||||
Else
|
Else
|
||||||
'BtnVincularPago.Visible = True
|
'BtnVincularPago.Visible = True
|
||||||
'TextoDiferenciaImporte = ""
|
'TextoDiferenciaImporte = ""
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
LblSerieFolioPago.Text = $"{SeriePago}-{FolioPago}"
|
LblSerieFolioPago.Text = $"{SeriePago}-{FolioPago}"
|
||||||
LblImportePago.Text = Monto.ToString("###,###,###.00") 'ImportePago.FormatoNumero
|
LblImportePago.Text = Monto.ToString("###,###,###.00") 'ImportePago.FormatoNumero
|
||||||
LblPagosCantidad.Text = PagosCantidad.ToString
|
LblPagosCantidad.Text = PagosCantidad.ToString
|
||||||
@@ -2893,7 +2903,7 @@ Partial Class Compras_eFacturas
|
|||||||
Else
|
Else
|
||||||
LblMensajeComlementoError.Text = ""
|
LblMensajeComlementoError.Text = ""
|
||||||
DVMensajecomplementoError.Visible = False
|
DVMensajecomplementoError.Visible = False
|
||||||
|
DivVincularPagoManualmente.Visible = False
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -84,6 +84,14 @@ Partial Class Conta_RepMovimientosAuxiliaresCatalogo
|
|||||||
ViewState("TP") = value
|
ViewState("TP") = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
Private Property Cuenta As String
|
||||||
|
Get
|
||||||
|
Return ViewState("Cuenta").ToString
|
||||||
|
End Get
|
||||||
|
Set(value As String)
|
||||||
|
ViewState("Cuenta") = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
|
Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
|
||||||
@@ -226,6 +234,7 @@ Partial Class Conta_RepMovimientosAuxiliaresCatalogo
|
|||||||
Exit Sub
|
Exit Sub
|
||||||
End If
|
End If
|
||||||
IdCuenta = DdlCuentas.SelectedValue.ToEntero
|
IdCuenta = DdlCuentas.SelectedValue.ToEntero
|
||||||
|
Cuenta = DdlCuentas.SelectedItem.ToString
|
||||||
Dim ObjConta As New ClsContabilidad
|
Dim ObjConta As New ClsContabilidad
|
||||||
If ObjConta.GetMovimientosAuxiliaresCatalogo(IdCuenta, FechaInicio, FechaFin, DdlMoneda.SelectedValue.ToEntero, CveSubProyecto, UsuarioActual.CveEmpresa, TipoReporte) Then
|
If ObjConta.GetMovimientosAuxiliaresCatalogo(IdCuenta, FechaInicio, FechaFin, DdlMoneda.SelectedValue.ToEntero, CveSubProyecto, UsuarioActual.CveEmpresa, TipoReporte) Then
|
||||||
DtDatos = ObjConta.DtResultados
|
DtDatos = ObjConta.DtResultados
|
||||||
@@ -463,6 +472,7 @@ Partial Class Conta_RepMovimientosAuxiliaresCatalogo
|
|||||||
params.Add(New ReportParameter("pFechaFin", FechaFin.ToString("dd/MM/yyyy")))
|
params.Add(New ReportParameter("pFechaFin", FechaFin.ToString("dd/MM/yyyy")))
|
||||||
params.Add(New ReportParameter("pFechaInicio", FechaInicio.ToString("dd/MM/yyyy")))
|
params.Add(New ReportParameter("pFechaInicio", FechaInicio.ToString("dd/MM/yyyy")))
|
||||||
params.Add(New ReportParameter("CveMoneda", DdlMoneda.SelectedValue))
|
params.Add(New ReportParameter("CveMoneda", DdlMoneda.SelectedValue))
|
||||||
|
params.Add(New ReportParameter("Cuenta", Cuenta))
|
||||||
ImprimirPDF("Contabilidad2/Reportes/RepMovimientosAuxiliaresCatalogo.rdlc", DtDatos, params, "MovimientosAuxiliares", Formato)
|
ImprimirPDF("Contabilidad2/Reportes/RepMovimientosAuxiliaresCatalogo.rdlc", DtDatos, params, "MovimientosAuxiliares", Formato)
|
||||||
End Sub
|
End Sub
|
||||||
Protected Sub DdlTipoCuentas_SelectedIndexChanged(sender As Object, e As EventArgs) Handles DdlTipoCuentas.SelectedIndexChanged
|
Protected Sub DdlTipoCuentas_SelectedIndexChanged(sender As Object, e As EventArgs) Handles DdlTipoCuentas.SelectedIndexChanged
|
||||||
|
|||||||
@@ -1318,7 +1318,7 @@
|
|||||||
</TablixRowHierarchy>
|
</TablixRowHierarchy>
|
||||||
<KeepTogether>true</KeepTogether>
|
<KeepTogether>true</KeepTogether>
|
||||||
<DataSetName>DataSet1</DataSetName>
|
<DataSetName>DataSet1</DataSetName>
|
||||||
<Top>0.06346cm</Top>
|
<Top>0.06345cm</Top>
|
||||||
<Height>3cm</Height>
|
<Height>3cm</Height>
|
||||||
<Width>20.37044cm</Width>
|
<Width>20.37044cm</Width>
|
||||||
<Style>
|
<Style>
|
||||||
@@ -1438,6 +1438,40 @@
|
|||||||
<PaddingBottom>2pt</PaddingBottom>
|
<PaddingBottom>2pt</PaddingBottom>
|
||||||
</Style>
|
</Style>
|
||||||
</Textbox>
|
</Textbox>
|
||||||
|
<Textbox Name="Cuenta">
|
||||||
|
<CanGrow>true</CanGrow>
|
||||||
|
<KeepTogether>true</KeepTogether>
|
||||||
|
<Paragraphs>
|
||||||
|
<Paragraph>
|
||||||
|
<TextRuns>
|
||||||
|
<TextRun>
|
||||||
|
<Value>=Parameters!Cuenta.Value</Value>
|
||||||
|
<Style>
|
||||||
|
<FontSize>11pt</FontSize>
|
||||||
|
</Style>
|
||||||
|
</TextRun>
|
||||||
|
</TextRuns>
|
||||||
|
<Style>
|
||||||
|
<TextAlign>Center</TextAlign>
|
||||||
|
</Style>
|
||||||
|
</Paragraph>
|
||||||
|
</Paragraphs>
|
||||||
|
<rd:DefaultName>Cuenta</rd:DefaultName>
|
||||||
|
<Top>0.47708in</Top>
|
||||||
|
<Left>1.82615in</Left>
|
||||||
|
<Height>0.25in</Height>
|
||||||
|
<Width>4.42313in</Width>
|
||||||
|
<ZIndex>3</ZIndex>
|
||||||
|
<Style>
|
||||||
|
<Border>
|
||||||
|
<Style>None</Style>
|
||||||
|
</Border>
|
||||||
|
<PaddingLeft>2pt</PaddingLeft>
|
||||||
|
<PaddingRight>2pt</PaddingRight>
|
||||||
|
<PaddingTop>2pt</PaddingTop>
|
||||||
|
<PaddingBottom>2pt</PaddingBottom>
|
||||||
|
</Style>
|
||||||
|
</Textbox>
|
||||||
</ReportItems>
|
</ReportItems>
|
||||||
<Style>
|
<Style>
|
||||||
<Border>
|
<Border>
|
||||||
@@ -1470,7 +1504,7 @@
|
|||||||
</Paragraph>
|
</Paragraph>
|
||||||
</Paragraphs>
|
</Paragraphs>
|
||||||
<rd:DefaultName>Textbox3</rd:DefaultName>
|
<rd:DefaultName>Textbox3</rd:DefaultName>
|
||||||
<Top>0.07023cm</Top>
|
<Top>0.07022cm</Top>
|
||||||
<Left>15.87314cm</Left>
|
<Left>15.87314cm</Left>
|
||||||
<Height>0.6cm</Height>
|
<Height>0.6cm</Height>
|
||||||
<Width>4.4973cm</Width>
|
<Width>4.4973cm</Width>
|
||||||
@@ -1611,6 +1645,12 @@
|
|||||||
<AllowBlank>true</AllowBlank>
|
<AllowBlank>true</AllowBlank>
|
||||||
<Prompt>ReportParameter1</Prompt>
|
<Prompt>ReportParameter1</Prompt>
|
||||||
</ReportParameter>
|
</ReportParameter>
|
||||||
|
<ReportParameter Name="Cuenta">
|
||||||
|
<DataType>String</DataType>
|
||||||
|
<Nullable>true</Nullable>
|
||||||
|
<AllowBlank>true</AllowBlank>
|
||||||
|
<Prompt>ReportParameter1</Prompt>
|
||||||
|
</ReportParameter>
|
||||||
</ReportParameters>
|
</ReportParameters>
|
||||||
<Code>Dim myVal As boolean
|
<Code>Dim myVal As boolean
|
||||||
Public Function SetMyVal(ByVal temp As String) As boolean
|
Public Function SetMyVal(ByVal temp As String) As boolean
|
||||||
|
|||||||
316
Inicio.aspx
316
Inicio.aspx
@@ -605,62 +605,62 @@
|
|||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<div align="right">
|
<div align="right">
|
||||||
<input type="text" id="TxtBusq" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusq','{0}')", GvVtaPUE.ClientID) %>" style="display: inline-block; width: 150px;" />
|
<input type="text" id="TxtBusq" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusq','{0}')", GvVtaPUE.ClientID) %>" style="display: inline-block; width: 150px;" />
|
||||||
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusq','{0}')", GvVtaPUE.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('TxtBusq','{0}')", GvVtaPUE.ClientID) %>" style="margin-top: -3px; margin-left: -13px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||||||
</div>
|
</div>
|
||||||
<asp:GridView ID="GvVtaPUE" runat="server" AutoGenerateColumns="False"
|
<asp:GridView ID="GvVtaPUE" runat="server" AutoGenerateColumns="False"
|
||||||
DataKeysNames="CveVenta"
|
DataKeysNames="CveVenta"
|
||||||
EmptyDataText="No se encontraron registros" ToolTip="Listado de Temas"
|
EmptyDataText="No se encontraron registros" ToolTip="Listado de Temas"
|
||||||
CssClass="table table-striped table-advance table-hover Widthall ScrollAD"
|
CssClass="table table-striped table-advance table-hover Widthall ScrollAD"
|
||||||
data-sort="true"
|
data-sort="true"
|
||||||
data-freezerows="1"
|
data-freezerows="1"
|
||||||
GridLines="None">
|
GridLines="None">
|
||||||
<Columns>
|
<Columns>
|
||||||
<asp:TemplateField HeaderText="SerieFolio">
|
<asp:TemplateField HeaderText="SerieFolio">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:HyperLink ID="HplNum" runat="server" CssClass="Texto" Target="_blank" NavigateUrl='<%# Eval("CveVenta", "/Ventas/Ventas.aspx?CveVenta={0}") %>' Text='<%# Eval("SerieFolio") %>'></asp:HyperLink>
|
<asp:HyperLink ID="HplNum" runat="server" CssClass="Texto" Target="_blank" NavigateUrl='<%# Eval("CveVenta", "/Ventas/Ventas.aspx?CveVenta={0}") %>' Text='<%# Eval("SerieFolio") %>'></asp:HyperLink>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
|
|
||||||
<asp:TemplateField HeaderText="Fecha">
|
<asp:TemplateField HeaderText="Fecha">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Literal runat="server" Text='<%# Eval("Fecha", "{0:d}")%>'></asp:Literal>
|
<asp:Literal runat="server" Text='<%# Eval("Fecha", "{0:d}")%>'></asp:Literal>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
|
|
||||||
<asp:TemplateField HeaderText="Cliente">
|
<asp:TemplateField HeaderText="Cliente">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Literal runat="server" Text='<%# Eval("NombreComercial")%>'></asp:Literal>
|
<asp:Literal runat="server" Text='<%# Eval("NombreComercial")%>'></asp:Literal>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
|
|
||||||
<asp:TemplateField HeaderText="SubProyecto">
|
<asp:TemplateField HeaderText="SubProyecto">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Literal runat="server" Text='<%# Eval("SubProyecto") %>'></asp:Literal>
|
<asp:Literal runat="server" Text='<%# Eval("SubProyecto") %>'></asp:Literal>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
|
|
||||||
<asp:TemplateField HeaderText="Total" ItemStyle-HorizontalAlign="Right">
|
<asp:TemplateField HeaderText="Total" ItemStyle-HorizontalAlign="Right">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Literal runat="server" Text='<%# Eval("Total", "{0:N2}") %>'></asp:Literal>
|
<asp:Literal runat="server" Text='<%# Eval("Total", "{0:N2}") %>'></asp:Literal>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
|
|
||||||
<asp:TemplateField ItemStyle-Width="10px" ItemStyle-HorizontalAlign="Left">
|
<asp:TemplateField ItemStyle-Width="10px" ItemStyle-HorizontalAlign="Left">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Literal runat="server" Text='<%# Eval("Abreviatura") %>'></asp:Literal>
|
<asp:Literal runat="server" Text='<%# Eval("Abreviatura") %>'></asp:Literal>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
|
|
||||||
<asp:TemplateField HeaderText="Saldo" ItemStyle-HorizontalAlign="Right">
|
<asp:TemplateField HeaderText="Saldo" ItemStyle-HorizontalAlign="Right">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<div style="margin-right: 20px">
|
<div style="margin-right: 20px">
|
||||||
<asp:Literal runat="server" Text='<%# Eval("Saldo", "{0:N2}") %>'></asp:Literal>
|
<asp:Literal runat="server" Text='<%# Eval("Saldo", "{0:N2}") %>'></asp:Literal>
|
||||||
</div>
|
</div>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
|
|
||||||
</Columns>
|
</Columns>
|
||||||
</asp:GridView>
|
</asp:GridView>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<asp:UpdatePanel runat="server">
|
<asp:UpdatePanel runat="server">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
@@ -674,6 +674,112 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div id="ModalMitoteresat" class="modal ADS fade " role="dialog">
|
||||||
|
<div class="modal-dialog">
|
||||||
|
|
||||||
|
<!-- Modal content-->
|
||||||
|
<div class="modal-content modal-lg">
|
||||||
|
<div class="modal-header ">
|
||||||
|
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||||
|
<asp:HyperLink runat="server" NavigateUrl="/Ventas/RepConciliacionEmitidosSat.aspx?RegistroEn=4&FechaInicio=2000/01/01" CssClass="btn btn-xs btn-default" style="float:right;">Ir a Reporte</asp:HyperLink>
|
||||||
|
<h4 class="modal-title">Ventas sin registrar en SIG</h4>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="modal-body">
|
||||||
|
<div style="text-align: right">
|
||||||
|
<input type="text" id="TxtBusquedaFolioSat" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusquedaFolioSat','{0}')", GvFoliosSAT.ClientID) %>" style="display: inline-block; width: 150px;" />
|
||||||
|
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusquedaFolioSat','{0}')", GvFoliosSAT.ClientID) %>" style="margin-top: -3px; margin-left: -13px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<asp:GridView ID="GvFoliosSAT" runat="server" AutoGenerateColumns="false" EmptyDataText="No se encontraron factura canceladas pendientes"
|
||||||
|
DataKeyNames="FolioFiscal,RFC,Total"
|
||||||
|
CssClass="table table-striped table-advance table-hover Widthall ScrollAD" data-sort="true" Style="text-align: center;" GridLines="None" Width="99%">
|
||||||
|
<Columns>
|
||||||
|
<asp:TemplateField ItemStyle-HorizontalAlign="Center" ItemStyle-Width="15%" HeaderText="Folio Fiscal">
|
||||||
|
<ItemTemplate>
|
||||||
|
<div style="white-space:nowrap "><asp:Label runat="server" Text='<%# Eval("FolioFiscal")%>'> </asp:Label></div>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:BoundField HeaderText="Serie Folio" DataField="SerieFolio" ItemStyle-Width="15%" ItemStyle-HorizontalAlign="Center" />
|
||||||
|
<asp:BoundField HeaderText="Proveedor" DataField="NombreProveedor" ItemStyle-Width="20%" ItemStyle-HorizontalAlign="Center" />
|
||||||
|
<asp:BoundField HeaderText="Importe" DataField="Total" DataFormatString="{0:N2}" ItemStyle-Width="15%" ItemStyle-HorizontalAlign="Right" />
|
||||||
|
<asp:BoundField HeaderText="Fecha" DataField="Fecha" DataFormatString="{0:dd/MM/yyyy}" ItemStyle-Width="15%" ItemStyle-HorizontalAlign="Center" />
|
||||||
|
<%--<asp:TemplateField ItemStyle-HorizontalAlign="Center" ItemStyle-Width="15%" HeaderText=" ">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:LinkButton runat="server" CssClass="btn btn-circle btn-sm blue" Text="<i class='fa fa-plus'></i>" data-toggle="confirmation" data-popout="true" data-original-title="¿Está seguro que desea Agregar la factura?" data-btn-ok-label="si"></asp:LinkButton>
|
||||||
|
<asp:LinkButton runat="server" CssClass="btn btn-circle btn-sm red" Text="<i class='fa fa-remove'></i>" data-toggle="confirmation" data-popout="true" data-original-title="¿Está seguro que desea cancelacar la factura ante el sat?" data-btn-ok-label="si" />
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>--%>
|
||||||
|
</Columns>
|
||||||
|
<RowStyle CssClass="Texto" />
|
||||||
|
<HeaderStyle CssClass="Titulos" />
|
||||||
|
</asp:GridView>
|
||||||
|
</div>
|
||||||
|
<div class="modal-footer">
|
||||||
|
<button type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div id="ModalMitotereCancelaPendiente" class="modal ADS fade " role="dialog">
|
||||||
|
<div class="modal-dialog">
|
||||||
|
|
||||||
|
<!-- Modal content-->
|
||||||
|
<div class="modal-content modal-lg">
|
||||||
|
<div class="modal-header ">
|
||||||
|
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||||
|
<asp:HyperLink runat="server" NavigateUrl="/Ventas/RepCancelacionesPorAtender.aspx" CssClass="btn btn-xs btn-default" style="float:right;">Ir a Reporte</asp:HyperLink>
|
||||||
|
<h4 class="modal-title">Cancelaciones por Atender</h4>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="modal-body">
|
||||||
|
|
||||||
|
<div style="text-align: right">
|
||||||
|
<input type="text" id="TxtBusquedaCancelaPendiente" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusquedaCancelaPendiente','{0}')", gvCancelaPendiente.ClientID) %>" style="display: inline-block; width: 150px;" />
|
||||||
|
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusquedaCancelaPendiente','{0}')", gvCancelaPendiente.ClientID) %>" style="margin-top: -3px; margin-left: -13px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<asp:GridView ID="gvCancelaPendiente" runat="server" AutoGenerateColumns="false" EmptyDataText="No se encontraron factura canceladas pendientes"
|
||||||
|
DataKeyNames="FolioFiscal,RFC,Total"
|
||||||
|
CssClass="table table-striped table-advance table-hover Widthall ScrollAD" data-sort="true" Style="text-align: center;" GridLines="None" Width="99%">
|
||||||
|
<Columns>
|
||||||
|
<asp:TemplateField ItemStyle-HorizontalAlign="Center" ItemStyle-Width="15%" HeaderText="Folio Fiscal">
|
||||||
|
<ItemTemplate>
|
||||||
|
<div style="white-space:nowrap "><asp:Label runat="server" Text='<%# Eval("FolioFiscal")%>'> </asp:Label></div>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:BoundField HeaderText="Serie Folio" DataField="SerieFolio" ItemStyle-Width="15%" ItemStyle-HorizontalAlign="Center" />
|
||||||
|
<asp:BoundField HeaderText="Proveedor" DataField="NombreProveedor" ItemStyle-Width="20%" ItemStyle-HorizontalAlign="Center" />
|
||||||
|
<asp:BoundField HeaderText="Importe" DataField="Total" DataFormatString="{0:N2}" ItemStyle-Width="15%" ItemStyle-HorizontalAlign="Right" />
|
||||||
|
<asp:BoundField HeaderText="Fecha" DataField="Fecha" DataFormatString="{0:dd/MM/yyyy}" ItemStyle-Width="15%" ItemStyle-HorizontalAlign="Center" />
|
||||||
|
<%--<asp:TemplateField ItemStyle-HorizontalAlign="Center" ItemStyle-Width="15%" HeaderText=" ">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:LinkButton runat="server" CssClass="btn btn-circle btn-sm blue" Text="<i class='fa fa-plus'></i>" data-toggle="confirmation" data-popout="true" data-original-title="¿Está seguro que desea Agregar la factura?" data-btn-ok-label="si"></asp:LinkButton>
|
||||||
|
<asp:LinkButton runat="server" CssClass="btn btn-circle btn-sm red" Text="<i class='fa fa-remove'></i>" data-toggle="confirmation" data-popout="true" data-original-title="¿Está seguro que desea cancelacar la factura ante el sat?" data-btn-ok-label="si" />
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>--%>
|
||||||
|
</Columns>
|
||||||
|
<RowStyle CssClass="Texto" />
|
||||||
|
<HeaderStyle CssClass="Titulos" />
|
||||||
|
</asp:GridView>
|
||||||
|
</div>
|
||||||
|
<div class="modal-footer">
|
||||||
|
<button type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div id="ModalComprasPUE" class="modal ADS fade" role="dialog">
|
<div id="ModalComprasPUE" class="modal ADS fade" role="dialog">
|
||||||
<div class="modal-dialog">
|
<div class="modal-dialog">
|
||||||
|
|
||||||
@@ -685,64 +791,64 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<div align="right">
|
<div style="text-align:right">
|
||||||
<input type="text" id="TxtBus" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBus','{0}')", GvCompPUE.ClientID) %>" style="display: inline-block; width: 150px;" />
|
<input type="text" id="TxtBus" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBus','{0}')", GvCompPUE.ClientID) %>" style="display: inline-block; width: 150px;" />
|
||||||
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBus','{0}')", GvCompPUE.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('TxtBus','{0}')", GvCompPUE.ClientID) %>" style="margin-top: -3px; margin-left: -13px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||||||
</div>
|
</div>
|
||||||
<asp:GridView ID="GvCompPUE" runat="server" AutoGenerateColumns="False"
|
<asp:GridView ID="GvCompPUE" runat="server" AutoGenerateColumns="False"
|
||||||
DataKeysNames="CveCompra"
|
DataKeysNames="CveCompra"
|
||||||
EmptyDataText="No se encontraron registros" ToolTip="Listado de Temas"
|
EmptyDataText="No se encontraron registros" ToolTip="Listado de Temas"
|
||||||
CssClass="table table-striped table-advance table-hover Widthall ScrollAD"
|
CssClass="table table-striped table-advance table-hover Widthall ScrollAD"
|
||||||
data-sort="true"
|
data-sort="true"
|
||||||
data-freezerows="1"
|
data-freezerows="1"
|
||||||
GridLines="None">
|
GridLines="None">
|
||||||
<Columns>
|
<Columns>
|
||||||
<asp:TemplateField HeaderText="SerieFolio">
|
<asp:TemplateField HeaderText="SerieFolio">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:HyperLink ID="HplNum" runat="server" CssClass="Texto" Target="_blank" NavigateUrl='<%# Eval("CveCompra", "/Compras/Compras.aspx?CveCompra={0}") %>' Text='<%# Eval("SerieFolio") %>'></asp:HyperLink>
|
<asp:HyperLink ID="HplNum" runat="server" CssClass="Texto" Target="_blank" NavigateUrl='<%# Eval("CveCompra", "/Compras/Compras.aspx?CveCompra={0}") %>' Text='<%# Eval("SerieFolio") %>'></asp:HyperLink>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
|
|
||||||
<asp:TemplateField HeaderText="Fecha">
|
<asp:TemplateField HeaderText="Fecha">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Literal runat="server" Text='<%# Eval("Fecha", "{0:d}")%>'></asp:Literal>
|
<asp:Literal runat="server" Text='<%# Eval("Fecha", "{0:d}")%>'></asp:Literal>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
|
|
||||||
<asp:TemplateField HeaderText="Proveedor">
|
<asp:TemplateField HeaderText="Proveedor">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Literal runat="server" Text='<%# Eval("NombreComercial")%>'></asp:Literal>
|
<asp:Literal runat="server" Text='<%# Eval("NombreComercial")%>'></asp:Literal>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
|
|
||||||
<asp:TemplateField HeaderText="SubProyecto">
|
<asp:TemplateField HeaderText="SubProyecto">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Literal runat="server" Text='<%# Eval("SubProyecto") %>'></asp:Literal>
|
<asp:Literal runat="server" Text='<%# Eval("SubProyecto") %>'></asp:Literal>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
|
|
||||||
<asp:TemplateField HeaderText="Total" ItemStyle-HorizontalAlign="Right">
|
<asp:TemplateField HeaderText="Total" ItemStyle-HorizontalAlign="Right">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Literal runat="server" Text='<%# Eval("Total", "{0:N2}") %>'></asp:Literal>
|
<asp:Literal runat="server" Text='<%# Eval("Total", "{0:N2}") %>'></asp:Literal>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
|
|
||||||
<asp:TemplateField ItemStyle-Width="10px" ItemStyle-HorizontalAlign="Left">
|
<asp:TemplateField ItemStyle-Width="10px" ItemStyle-HorizontalAlign="Left">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Literal runat="server" Text='<%# Eval("Abreviatura") %>'></asp:Literal>
|
<asp:Literal runat="server" Text='<%# Eval("Abreviatura") %>'></asp:Literal>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
|
|
||||||
<asp:TemplateField HeaderText="Saldo" ItemStyle-HorizontalAlign="Right">
|
<asp:TemplateField HeaderText="Saldo" ItemStyle-HorizontalAlign="Right">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<div style="margin-right: 20px">
|
<div style="margin-right: 20px">
|
||||||
<asp:Literal runat="server" Text='<%# Eval("Saldo", "{0:N2}") %>'></asp:Literal>
|
<asp:Literal runat="server" Text='<%# Eval("Saldo", "{0:N2}") %>'></asp:Literal>
|
||||||
</div>
|
</div>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
|
|
||||||
</Columns>
|
</Columns>
|
||||||
</asp:GridView>
|
</asp:GridView>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<asp:UpdatePanel runat="server">
|
<asp:UpdatePanel runat="server">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
@@ -767,13 +873,15 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<div align="left">
|
<div class="row">
|
||||||
|
<div class="col-md-6">
|
||||||
# Inconsistencias:
|
# Inconsistencias:
|
||||||
<asp:Label ID="LblInconsistenciasNum" runat="server" Text="0" Font-Bold="true"></asp:Label>
|
<asp:Label ID="LblInconsistenciasNum" runat="server" Text="0" Font-Bold="true"></asp:Label>
|
||||||
</div>
|
</div>
|
||||||
<div align="right">
|
<div class="col-md-6" style="text-align :right">
|
||||||
<input type="text" id="TxtBusqueda" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GvIncons.ClientID) %>" style="display: inline-block; width: 150px;" />
|
<input type="text" id="TxtBusqueda" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GvIncons.ClientID) %>" style="display: inline-block; width: 150px;" />
|
||||||
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GvIncons.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}')", GvIncons.ClientID) %>" style="margin-top: -3px; margin-left: -13px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<asp:GridView ID="GvIncons" runat="server" CssClass="table table-striped table-advance table-hover Widthall ScrollAD mysmallbtn" GridLines="None">
|
<asp:GridView ID="GvIncons" runat="server" CssClass="table table-striped table-advance table-hover Widthall ScrollAD mysmallbtn" GridLines="None">
|
||||||
</asp:GridView>
|
</asp:GridView>
|
||||||
@@ -800,7 +908,15 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
# No Timbradas:
|
<div class="row">
|
||||||
|
<div class="col-md-6"># No Timbradas:</div>
|
||||||
|
<div class="col-md-6" style="text-align :right">
|
||||||
|
<input type="text" id="TxtBusquedaCentroCosto" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusquedaCentroCosto','{0}')", GvNoTimbradasCentroCosto.ClientID) %>" style="display: inline-block; width: 150px;" />
|
||||||
|
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusquedaCentroCosto','{0}')", GvNoTimbradasCentroCosto.ClientID) %>" style="margin-top: -3px; margin-left: -13px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
<asp:Label ID="LblNoTimbradas" runat="server" Text="0" Font-Bold="true"></asp:Label>
|
<asp:Label ID="LblNoTimbradas" runat="server" Text="0" Font-Bold="true"></asp:Label>
|
||||||
<asp:GridView ID="GvNoTimbradasCentroCosto" CssClass="table table-striped table-advance table-hover Widthall ScrollAD mysmallbtn" AutoGenerateColumns="false" runat="server" GridLines="None">
|
<asp:GridView ID="GvNoTimbradasCentroCosto" CssClass="table table-striped table-advance table-hover Widthall ScrollAD mysmallbtn" AutoGenerateColumns="false" runat="server" GridLines="None">
|
||||||
<Columns>
|
<Columns>
|
||||||
@@ -892,7 +1008,7 @@
|
|||||||
<h4 class="modal-title" id="myModalLabel2" runat="server">Evaluaciones Pendientes</h4>
|
<h4 class="modal-title" id="myModalLabel2" runat="server">Evaluaciones Pendientes</h4>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<div class="row" style="margin-left: 0px; margin-top: 5px; margin-bottom: 5px; text-align: right" align="left">
|
<div class="row" style="margin-left: 0px; margin-top: 5px; margin-bottom: 5px; text-align: right" >
|
||||||
<div style="margin-right: 15px">
|
<div style="margin-right: 15px">
|
||||||
<input type="text" id="TxtBusquedaEva" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusquedaEva','{0}')", GvEvaluaciones.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
<input type="text" id="TxtBusquedaEva" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusquedaEva','{0}')", GvEvaluaciones.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
||||||
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GvEvaluaciones.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}')", GvEvaluaciones.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||||||
|
|||||||
@@ -14,8 +14,68 @@ Partial Class Inicio
|
|||||||
Private Dias() As String = {"Domingo", "Lunes", "Martes", "Miércoles", "Jueves", "Viernes", "Sábado"}
|
Private Dias() As String = {"Domingo", "Lunes", "Martes", "Miércoles", "Jueves", "Viernes", "Sábado"}
|
||||||
|
|
||||||
|
|
||||||
|
Public Function GetFacturasCanceladasPendientesWS(objventas As ClsVentas, RFC As String, CveEmpresa As Integer, Optional showalert As Boolean = True) As Boolean
|
||||||
|
Dim retorno As Boolean = False
|
||||||
|
Try
|
||||||
|
|
||||||
|
Dim objServicio As Cancelacion.CancelacionSoapClient = New Cancelacion.CancelacionSoapClient()
|
||||||
|
Dim resp As Cancelacion.StructCancel = objServicio.ObtienePendientes(RFC, "UserTest", "1234567890")
|
||||||
|
If resp.Estado = 0 Then
|
||||||
|
Dim XmlPendientes As String = System.Text.Encoding.UTF8.GetString(Convert.FromBase64String(resp.Xml))
|
||||||
|
Dim theReader As IO.StringReader = New IO.StringReader(XmlPendientes)
|
||||||
|
Dim theDataSet As DataSet = New DataSet()
|
||||||
|
theDataSet.ReadXml(theReader)
|
||||||
|
|
||||||
|
If theDataSet.Tables(0).Rows(0)("Uuid").ToString() <> "null" Then
|
||||||
|
Dim sb = New StringBuilder()
|
||||||
|
|
||||||
|
For Each item As DataRow In theDataSet.Tables(0).Rows
|
||||||
|
sb.AppendFormat("{0};", item("Uuid").ToString())
|
||||||
|
Next
|
||||||
|
|
||||||
|
If objventas.GetFacturasCanceladasPendientes(sb.ToString(), CveEmpresa) Then
|
||||||
|
retorno = True
|
||||||
|
End If
|
||||||
|
|
||||||
|
Else
|
||||||
|
If showalert Then
|
||||||
|
Alert("No se encontraron cancelaciones pendientes", ModExtensiones.TipoMensaje.MsgError)
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
Else
|
||||||
|
Alert("Error al obtener cancelaciones pendientes: " & resp.Descripcion, ModExtensiones.TipoMensaje.MsgError)
|
||||||
|
End If
|
||||||
|
|
||||||
|
Catch ex As Exception
|
||||||
|
retorno = False
|
||||||
|
Me.OnError("Error al obtener cancelaciones pendientes: ", ex, "")
|
||||||
|
End Try
|
||||||
|
Return retorno
|
||||||
|
End Function
|
||||||
|
|
||||||
Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
|
Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
|
||||||
If Not IsPostBack Then
|
If Not IsPostBack Then
|
||||||
|
If UsuarioActual.CveUsuario = 100 Then
|
||||||
|
|
||||||
|
Using objgral As New ClsGenerales
|
||||||
|
objgral.RepConciliacionSatDetalleGET(UsuarioActual.CveEmpresa, "I", "", "", 10)
|
||||||
|
If objgral.DtResultados.Rows.Count > 0 Then
|
||||||
|
GvFoliosSAT.DataSource = objgral.DtResultados
|
||||||
|
RegistraScript("$('#ModalMitoteresat').modal();", "mitoterosat")
|
||||||
|
End If
|
||||||
|
|
||||||
|
End Using
|
||||||
|
GvFoliosSAT.DataBind()
|
||||||
|
End If
|
||||||
|
If UsuarioActual.CveUsuario = 100 Then
|
||||||
|
Using objventas As New ClsVentas
|
||||||
|
If (GetFacturasCanceladasPendientesWS(objventas, UsuarioActual.Empresa.RFC, UsuarioActual.CveEmpresa, False)) AndAlso objventas.DtResultados.Rows.Count > 0 Then
|
||||||
|
RegistraScript("$('#ModalMitotereCancelaPendiente').modal();", "mitoterosatCanceladasPendientesWS")
|
||||||
|
|
||||||
|
End If
|
||||||
|
End Using
|
||||||
|
End If
|
||||||
|
|
||||||
'RESTRICCION AD
|
'RESTRICCION AD
|
||||||
If Not IsNothing(Request("ADCod")) Then
|
If Not IsNothing(Request("ADCod")) Then
|
||||||
'viene el msg encriptado, para sacar el modulo
|
'viene el msg encriptado, para sacar el modulo
|
||||||
|
|||||||
@@ -655,13 +655,14 @@ function AbrirVentana(Pagina, Ancho, Alto, tmp, Titulo) {
|
|||||||
if (!(Alto)) { Alto = '601'; }
|
if (!(Alto)) { Alto = '601'; }
|
||||||
$('#ajaxidmodal #myFrame').css({ width: Ancho, height: Alto });
|
$('#ajaxidmodal #myFrame').css({ width: Ancho, height: Alto });
|
||||||
$('#ajaxidmodal ').css({ width: Ancho, height: Alto });
|
$('#ajaxidmodal ').css({ width: Ancho, height: Alto });
|
||||||
$('#ajaxidmodal #myFrame').load(function() {
|
$("#ajax").modal();
|
||||||
$('#ajaxidmodal').removeClass("hidden");
|
$('#ajaxidmodal').removeClass("hidden");
|
||||||
$("#ajax").modal();
|
$("#ajaxidmodal #myFrame").unbind("load");
|
||||||
|
$('#ajaxidmodal #myFrame').load(function () {
|
||||||
Metronic.unblockUI();
|
Metronic.unblockUI();
|
||||||
});
|
});
|
||||||
$('#ajaxidmodal #myFrame').prop('src', Pagina);
|
$('#ajaxidmodal #myFrame').prop('src', Pagina);
|
||||||
$("#ajax").modal();
|
//$("#ajax").modal();
|
||||||
}
|
}
|
||||||
|
|
||||||
function CerrarVentana() {
|
function CerrarVentana() {
|
||||||
|
|||||||
@@ -1648,10 +1648,12 @@ Partial Class PV
|
|||||||
CveMetodoPagoCliente = ObjCliente.DtResultados.Rows(0)("CveMetodoPago").ToString.ToEntero
|
CveMetodoPagoCliente = ObjCliente.DtResultados.Rows(0)("CveMetodoPago").ToString.ToEntero
|
||||||
DdlUsoCFDI.SelectedValueExist(ObjCliente.CveUsoCFDI.ToString)
|
DdlUsoCFDI.SelectedValueExist(ObjCliente.CveUsoCFDI.ToString)
|
||||||
DdlMetodoPago.SelectedValueExist(ObjCliente.CveMetodoPago.ToString)
|
DdlMetodoPago.SelectedValueExist(ObjCliente.CveMetodoPago.ToString)
|
||||||
DdlMetodoPago33.SelectedValueExist(ObjCliente.DtResultados.Rows(0)("CveMetodoPago33").ToString)
|
DdlMetodoPago33.SelectedValueExist(ObjCliente.CveMetodoPago33.ToString)
|
||||||
|
'DdlMetodoPago33.SelectedValueExist(ObjCliente.DtResultados.Rows(0)("CveMetodoPago33").ToString)
|
||||||
DdlMetodoPago33_SelectedIndexChanged(DdlMetodoPago33, EventArgs.Empty)
|
DdlMetodoPago33_SelectedIndexChanged(DdlMetodoPago33, EventArgs.Empty)
|
||||||
|
|
||||||
DdlFormaPago33.SelectedValueExist(ObjCliente.DtResultados.Rows(0)("CveFormaPago33").ToString)
|
DdlFormaPago33.SelectedValueExist(ObjCliente.CveFormaPago33.ToString)
|
||||||
|
'DdlFormaPago33.SelectedValueExist(ObjCliente.DtResultados.Rows(0)("CveFormaPago33").ToString)
|
||||||
DdlUsoCFDI.SelectedValueExist(ObjCliente.DtResultados.Rows(0)("CveUsoCFDI").ToString)
|
DdlUsoCFDI.SelectedValueExist(ObjCliente.DtResultados.Rows(0)("CveUsoCFDI").ToString)
|
||||||
End If
|
End If
|
||||||
TxtFechaPago.Text = (Now.AddDays(ObjCliente.PlazoCobranza)).ToShortDateString
|
TxtFechaPago.Text = (Now.AddDays(ObjCliente.PlazoCobranza)).ToShortDateString
|
||||||
@@ -4729,7 +4731,10 @@ Partial Class PV
|
|||||||
|
|
||||||
Dim ObjCliente As New ClsClientes
|
Dim ObjCliente As New ClsClientes
|
||||||
|
|
||||||
If ObjCliente.AgregarClienteNoFrecuente(TxtNombreCliente.Text.Trim, TxtDireccionCliente.Text.Trim, TxtNumExtCliente.Text.Trim, TxtNumIntCliente.Text.Trim, TxtColoniaCliente.Text.Trim, TxtLocalidadCliente.Text.Trim, TxtCiudadCliente.Text.Trim, TxtEstadoCliente.Text.Trim, TxtPaisCliente.Text.Trim, TxtRFCCliente.Text.Trim, TxtCPCliente.Text.Trim, TxtTelefonoCliente.Text.Trim, TxtCorreoCliente.Text.Trim, DdlSubProyectoDatos.SelectedValue.ToEntero, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, "") Then
|
If ObjCliente.AgregarClienteNoFrecuente(TxtNombreCliente.Text.Trim, TxtDireccionCliente.Text.Trim, TxtNumExtCliente.Text.Trim, TxtNumIntCliente.Text.Trim, TxtColoniaCliente.Text.Trim,
|
||||||
|
TxtLocalidadCliente.Text.Trim, TxtCiudadCliente.Text.Trim, TxtEstadoCliente.Text.Trim, TxtPaisCliente.Text.Trim, TxtRFCCliente.Text.Trim,
|
||||||
|
TxtCPCliente.Text.Trim, TxtTelefonoCliente.Text.Trim, TxtCorreoCliente.Text.Trim, DdlSubProyectoDatos.SelectedValue.ToEntero, UsuarioActual.CveUsuario,
|
||||||
|
UsuarioActual.CveEmpresa, "", DdlMetodoCliente.SelectedValue.ToEntero, DdlFormaCliente.SelectedValue.ToEntero) Then
|
||||||
If ObjCliente.DtResultados.Rows.Count > 0 Then
|
If ObjCliente.DtResultados.Rows.Count > 0 Then
|
||||||
RegistraScript("hideDivEC();")
|
RegistraScript("hideDivEC();")
|
||||||
ViewState("CveCliente") = ObjCliente.DtResultados(0)("CveCliente").ToString.ToEntero
|
ViewState("CveCliente") = ObjCliente.DtResultados(0)("CveCliente").ToString.ToEntero
|
||||||
|
|||||||
@@ -27,39 +27,49 @@ public partial class Ventas_RepCancelacionesPorAtender : ClsPaginas
|
|||||||
}
|
}
|
||||||
private void CargarPendientes()
|
private void CargarPendientes()
|
||||||
{
|
{
|
||||||
Cancelacion.CancelacionSoapClient objServicio = new Cancelacion.CancelacionSoapClient();
|
|
||||||
Cancelacion.StructCancel resp = objServicio.ObtienePendientes(UsuarioActual.Empresa.RFC, "UserTest", "1234567890");
|
//Cancelacion.CancelacionSoapClient objServicio = new Cancelacion.CancelacionSoapClient();
|
||||||
if (resp.Estado == 0)
|
//Cancelacion.StructCancel resp = objServicio.ObtienePendientes(UsuarioActual.Empresa.RFC, "UserTest", "1234567890");
|
||||||
|
//if (resp.Estado == 0)
|
||||||
|
//{
|
||||||
|
// string XmlPendientes = DecodeBase64(resp.Xml);
|
||||||
|
// StringReader theReader = new StringReader(XmlPendientes);
|
||||||
|
// DataSet theDataSet = new DataSet();
|
||||||
|
// theDataSet.ReadXml(theReader);
|
||||||
|
// if (theDataSet.Tables[0].Rows[0]["Uuid"].ToString() != "null")
|
||||||
|
// {
|
||||||
|
// var sb = new StringBuilder();
|
||||||
|
// foreach (DataRow item in theDataSet.Tables[0].Rows)
|
||||||
|
// {
|
||||||
|
// sb.AppendFormat("{0};", item["Uuid"].ToString());
|
||||||
|
// }
|
||||||
|
// var ObjVentas = new ClsVentas();
|
||||||
|
// if (ObjVentas.GetFacturasCanceladasPendientes(sb.ToString(), UsuarioActual.CveEmpresa))
|
||||||
|
// {
|
||||||
|
// GvDatos.DataSource = ObjVentas.DtResultados;
|
||||||
|
// }
|
||||||
|
// ObjVentas.Dispose();
|
||||||
|
// }
|
||||||
|
// else
|
||||||
|
// {
|
||||||
|
// GvDatos.DataSource = null;
|
||||||
|
// Alert("No se encontraron cancelaciones pendientes");
|
||||||
|
// }
|
||||||
|
//}
|
||||||
|
//else
|
||||||
|
//{
|
||||||
|
// GvDatos.DataSource = null;
|
||||||
|
// Alert("Error al obtener cancelaciones pendientes: " + resp.Descripcion, ModExtensiones.TipoMensaje.MsgError);
|
||||||
|
//}
|
||||||
|
using (ClsVentas ObjVentas = new ClsVentas())
|
||||||
{
|
{
|
||||||
string XmlPendientes = DecodeBase64(resp.Xml);
|
if (ObjVentas.GetFacturasCanceladasPendientesWS(UsuarioActual.Empresa.RFC, UsuarioActual.CveEmpresa))
|
||||||
StringReader theReader = new StringReader(XmlPendientes);
|
|
||||||
DataSet theDataSet = new DataSet();
|
|
||||||
theDataSet.ReadXml(theReader);
|
|
||||||
if (theDataSet.Tables[0].Rows[0]["Uuid"].ToString() != "null")
|
|
||||||
{
|
{
|
||||||
var sb = new StringBuilder();
|
GvDatos.DataSource = ObjVentas.DtResultados;
|
||||||
foreach (DataRow item in theDataSet.Tables[0].Rows)
|
|
||||||
{
|
|
||||||
sb.AppendFormat("{0};", item["Uuid"].ToString());
|
|
||||||
}
|
|
||||||
var ObjVentas = new ClsVentas();
|
|
||||||
if (ObjVentas.GetFacturasCanceladasPendientes(sb.ToString(), UsuarioActual.CveEmpresa))
|
|
||||||
{
|
|
||||||
GvDatos.DataSource = ObjVentas.DtResultados;
|
|
||||||
}
|
|
||||||
ObjVentas.Dispose();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
GvDatos.DataSource = null;
|
|
||||||
Alert("No se encontraron cancelaciones pendientes");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
GvDatos.DataSource = null;
|
|
||||||
Alert("Error al obtener cancelaciones pendientes: " + resp.Descripcion, ModExtensiones.TipoMensaje.MsgError);
|
|
||||||
}
|
|
||||||
GvDatos.DataBind();
|
GvDatos.DataBind();
|
||||||
UPDatos.Update();
|
UPDatos.Update();
|
||||||
}
|
}
|
||||||
@@ -154,8 +164,7 @@ public partial class Ventas_RepCancelacionesPorAtender : ClsPaginas
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
byte[] decbuff = Convert.FromBase64String(strXMLCodificado);
|
return System.Text.Encoding.UTF8.GetString(Convert.FromBase64String(strXMLCodificado));
|
||||||
return System.Text.Encoding.UTF8.GetString(decbuff);
|
|
||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -11,10 +11,12 @@ using Extensiones;
|
|||||||
using System.Data;
|
using System.Data;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using ADSistemaLibrary.SatXml;
|
using ADSistemaLibrary.SatXml;
|
||||||
|
|
||||||
//using ADS_CFDI_SAT;
|
//using ADS_CFDI_SAT;
|
||||||
|
|
||||||
public partial class Ventas_RepConciliacionEmitidosSat : ClsPaginas
|
public partial class Ventas_RepConciliacionEmitidosSat : ClsPaginas
|
||||||
{
|
{
|
||||||
|
#region "Propiedades"
|
||||||
const string rqFechaInicio = "FechaInicio";
|
const string rqFechaInicio = "FechaInicio";
|
||||||
const string rqFechaFin = "FechaFin";
|
const string rqFechaFin = "FechaFin";
|
||||||
const string rqRegistroEn = "RegistroEn";
|
const string rqRegistroEn = "RegistroEn";
|
||||||
@@ -59,10 +61,44 @@ public partial class Ventas_RepConciliacionEmitidosSat : ClsPaginas
|
|||||||
set { ViewState["RegistroEn"] = value; }
|
set { ViewState["RegistroEn"] = value; }
|
||||||
}
|
}
|
||||||
private StringBuilder strErrores;
|
private StringBuilder strErrores;
|
||||||
|
#endregion
|
||||||
protected void Page_Load(object sender, EventArgs e)
|
protected void Page_Load(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (!IsPostBack)
|
if (!IsPostBack)
|
||||||
{
|
{
|
||||||
|
string path;
|
||||||
|
if (Request["op"] != null && Request["op"].ToString().Length > 0)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
|
||||||
|
if (System.IO.File.Exists((path = string.Format("{0}\\{1}", UsuarioActual.Empresa.Ruta.Trim(), Extensiones.ModExtensiones.Decripta(Request["op"].ToString()).Trim()).Replace("/", "\\"))))
|
||||||
|
{
|
||||||
|
|
||||||
|
System.IO.FileInfo archivo = new System.IO.FileInfo(path);
|
||||||
|
|
||||||
|
HttpContext.Current.Response.Clear();
|
||||||
|
HttpContext.Current.Response.ClearContent();
|
||||||
|
HttpContext.Current.Response.ContentType = "text/plain";
|
||||||
|
HttpContext.Current.Response.AppendHeader("Content-disposition", string.Format("attachment; filename={0}", archivo.Name));
|
||||||
|
HttpContext.Current.Response.AddHeader("Content-Length", archivo.Length.ToString());
|
||||||
|
HttpContext.Current.Response.TransmitFile(path);
|
||||||
|
HttpContext.Current.Response.End();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
RegistraScript("window.close()");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
Extensiones.ModExtensiones.GuardaLog(ex.ToString());
|
||||||
|
RegistraScript("window.close()");
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
fillrequestfields();
|
fillrequestfields();
|
||||||
DdlSubProyectoDatos.DataSource = get_GlobalDTSubProyectosUsuarios(UsuarioActual.CveUsuario, -1, UsuarioActual.CveEmpresa, -1, 1).FiltraParametros("EsSucursal = True ");
|
DdlSubProyectoDatos.DataSource = get_GlobalDTSubProyectosUsuarios(UsuarioActual.CveUsuario, -1, UsuarioActual.CveEmpresa, -1, 1).FiltraParametros("EsSucursal = True ");
|
||||||
DdlSubProyectoDatos.DataBind();
|
DdlSubProyectoDatos.DataBind();
|
||||||
@@ -151,8 +187,10 @@ public partial class Ventas_RepConciliacionEmitidosSat : ClsPaginas
|
|||||||
{
|
{
|
||||||
|
|
||||||
{
|
{
|
||||||
|
string ruta = string.Format("{0}\\{1}", UsuarioActual.Empresa.Ruta.Trim(), gvrow.DataKey("RutaXml").Trim()).Replace("/", "\\"); //gvrow.DataKey("RutaXml");
|
||||||
|
//Alert(ruta);
|
||||||
|
|
||||||
string ruta = gvrow.DataKey("RutaXml");
|
//return false;
|
||||||
strErrores = new StringBuilder();
|
strErrores = new StringBuilder();
|
||||||
XmlSatCFDI objxml = null;
|
XmlSatCFDI objxml = null;
|
||||||
Modelos.Factura objfact = null;
|
Modelos.Factura objfact = null;
|
||||||
@@ -743,18 +781,18 @@ public partial class Ventas_RepConciliacionEmitidosSat : ClsPaginas
|
|||||||
if (e.Row.RowType == DataControlRowType.DataRow)
|
if (e.Row.RowType == DataControlRowType.DataRow)
|
||||||
{
|
{
|
||||||
string navurl = "";
|
string navurl = "";
|
||||||
if(e.Row.DBCampo("Tipo") == "1")
|
if (e.Row.DBCampo("Tipo") == "1")
|
||||||
{
|
{
|
||||||
string RutaXml = e.Row.DBCampo("RutaXml");
|
string RutaXml = e.Row.DBCampo("RutaXml");
|
||||||
if (RutaXml.IndexOf("Empresas")>0)
|
//if (RutaXml.IndexOf("Empresas")>0)
|
||||||
{
|
//{
|
||||||
RutaXml = RutaXml.Substring(RutaXml.IndexOf("Empresas"));
|
// RutaXml = RutaXml.Substring(RutaXml.IndexOf("Empresas"));
|
||||||
}
|
//}
|
||||||
navurl =string.Format("RepConciliacionEmitidosSat.aspx?op=", e.Row.DBCampo("RutaXml"));
|
navurl = string.Format("RepConciliacionEmitidosSat.aspx?op={0}", Extensiones.ModExtensiones.Encripta(e.Row.DataKey("RutaXml")));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
navurl = string.Format("/Compras/PopUpVerFactura.aspx?P={0}", Extensiones.ModExtensiones.Encripta(String.Format("OP=FactVta&CVEVENTA={0}&EXT={1}&SERIEFOLIO={2}&TIPODOCTO={3}", e.Row.DBCampo("CveVenta"), "XML", e.Row.DBCampo("SerieFolio"), e.Row.DBCampo("TipoDocto"))));
|
navurl = string.Format("/Compras/PopUpVerFactura.aspx?P={0}", Extensiones.ModExtensiones.Encripta(String.Format("OP=FactVta&CVEVENTA={0}&EXT={1}&SERIEFOLIO={2}&TIPODOCTO={3}", e.Row.DBCampo("CveVenta"), "XML", e.Row.DBCampo("SerieFolio"), e.Row.DBCampo("TipoDocto"))));
|
||||||
}
|
}
|
||||||
e.Row.FCHyperLink("HypXml").NavigateUrl = navurl;
|
e.Row.FCHyperLink("HypXml").NavigateUrl = navurl;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user