-
This commit is contained in:
@@ -193,7 +193,7 @@ Public Class ClsContabilidad
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function AddPrePolizas(Modulo As String, CvePlantillaPoliza As Integer, Cargos As Double, Abonos As Double, CveMoneda As Integer, Fecha As Date, Concepto As String, CveUsuario As Integer, CveEmpresa As Integer, Optional FolioFijo As Integer = 0, Optional ReglaFolioPoliza As String = "", Optional CveTipoPoliza As Integer = -1,
|
Public Function AddPrePolizas(Modulo As String, CvePlantillaPoliza As Integer, Cargos As Double, Abonos As Double, CveMoneda As Integer, Fecha As Date, Concepto As String, CveUsuario As Integer, CveEmpresa As Integer, Optional FolioFijo As Integer = 0, Optional ReglaFolioPoliza As String = "", Optional CveTipoPoliza As Integer = -1,
|
||||||
Optional AgregarFolio As Boolean = False) As Integer
|
Optional AgregarFolio As Boolean = False, Optional TipoContable As Integer = -1) As Integer
|
||||||
FolioPoliza = -1
|
FolioPoliza = -1
|
||||||
Dim Retorno As Integer = -1
|
Dim Retorno As Integer = -1
|
||||||
|
|
||||||
@@ -215,6 +215,7 @@ Public Class ClsContabilidad
|
|||||||
.Add("@FolioPoliza", SqlDbType.Int).Direction = ParameterDirection.Output
|
.Add("@FolioPoliza", SqlDbType.Int).Direction = ParameterDirection.Output
|
||||||
.Add("@ReglaFolioPoliza", SqlDbType.VarChar).Value = ReglaFolioPoliza
|
.Add("@ReglaFolioPoliza", SqlDbType.VarChar).Value = ReglaFolioPoliza
|
||||||
.Add("@AgregarFolio", SqlDbType.Bit).Value = AgregarFolio
|
.Add("@AgregarFolio", SqlDbType.Bit).Value = AgregarFolio
|
||||||
|
.Add("@TipoContable", SqlDbType.Int).Value = TipoContable
|
||||||
End With
|
End With
|
||||||
|
|
||||||
Try
|
Try
|
||||||
|
|||||||
@@ -59,6 +59,10 @@ Public Class ClsOS
|
|||||||
Public Property CveSubProyecto As Integer
|
Public Property CveSubProyecto As Integer
|
||||||
Public Property CveOSDetalle As Integer
|
Public Property CveOSDetalle As Integer
|
||||||
Public Property CveOSTipo As Integer
|
Public Property CveOSTipo As Integer
|
||||||
|
Public Property Telefono As String = ""
|
||||||
|
Public Property CveModeloAuto As Integer = -1
|
||||||
|
Public Property Año As String = ""
|
||||||
|
|
||||||
Private Class Especificaciones
|
Private Class Especificaciones
|
||||||
Public CveValor As Integer
|
Public CveValor As Integer
|
||||||
Public CvePSCaracteristica As Integer
|
Public CvePSCaracteristica As Integer
|
||||||
@@ -516,6 +520,10 @@ Public Class ClsOS
|
|||||||
Me.UsuarioEntrego = Data.Rows(0)("UsuarioEntrego").ToString
|
Me.UsuarioEntrego = Data.Rows(0)("UsuarioEntrego").ToString
|
||||||
Me.CveSubProyecto = Data.Rows(0)("CveSubproyecto").ToString
|
Me.CveSubProyecto = Data.Rows(0)("CveSubproyecto").ToString
|
||||||
Me.CveOSTipo = Data.Rows(0)("CveOrdenServicioTipo").ToString.ToEntero
|
Me.CveOSTipo = Data.Rows(0)("CveOrdenServicioTipo").ToString.ToEntero
|
||||||
|
|
||||||
|
Me.Telefono = Data.Rows(0)("TelefonoContacto").ToString
|
||||||
|
Me.CveModeloAuto = Data.Rows(0)("CveModeloAuto").ToString.ToEntero
|
||||||
|
Me.Año = Data.Rows(0)("Año").ToString
|
||||||
End If
|
End If
|
||||||
Retorno = True
|
Retorno = True
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
@@ -569,7 +577,7 @@ Public Class ClsOS
|
|||||||
End Function
|
End Function
|
||||||
Public Function AddOrdenesServicios(CveCliente As Integer, CveSubProyecto As Integer, PersonaSolicito As String, FechaRecepcion As Date, Descripcion As String, CveUsuarioRecibio As Integer, CveEstatusOrdenServicio As Integer,
|
Public Function AddOrdenesServicios(CveCliente As Integer, CveSubProyecto As Integer, PersonaSolicito As String, FechaRecepcion As Date, Descripcion As String, CveUsuarioRecibio As Integer, CveEstatusOrdenServicio As Integer,
|
||||||
CveUsuario As Integer, CveEmpresa As Integer, CveCotizacion As Integer, CveVenta As Integer, CveOSPadre As Integer, CveOSTipo As Integer, Optional CveClienteSucursal As Integer = -1,
|
CveUsuario As Integer, CveEmpresa As Integer, CveCotizacion As Integer, CveVenta As Integer, CveOSPadre As Integer, CveOSTipo As Integer, Optional CveClienteSucursal As Integer = -1,
|
||||||
Optional Direccion As String = "-1") As Boolean
|
Optional Direccion As String = "-1", Optional Telefono As String = "", Optional CveModeloAuto As Integer = -1, Optional Año As String = "-1") As Boolean
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_OS_OrdenesServiciosAdd")
|
DataAdapter("PA_OS_OrdenesServiciosAdd")
|
||||||
@@ -591,6 +599,10 @@ Public Class ClsOS
|
|||||||
.Add("@CveClienteSucursal", SqlDbType.Int).Value = CveClienteSucursal
|
.Add("@CveClienteSucursal", SqlDbType.Int).Value = CveClienteSucursal
|
||||||
.Add("@Direccion", SqlDbType.VarChar).Value = Direccion
|
.Add("@Direccion", SqlDbType.VarChar).Value = Direccion
|
||||||
|
|
||||||
|
.Add("@Telefono", SqlDbType.VarChar).Value = Telefono
|
||||||
|
.Add("@CveModeloAuto", SqlDbType.Int).Value = CveModeloAuto
|
||||||
|
.Add("@Año", SqlDbType.VarChar).Value = Año
|
||||||
|
|
||||||
.Add("@CveOS", SqlDbType.Int).Direction = ParameterDirection.Output
|
.Add("@CveOS", SqlDbType.Int).Direction = ParameterDirection.Output
|
||||||
.Add("@vFolio", SqlDbType.Int).Direction = ParameterDirection.Output
|
.Add("@vFolio", SqlDbType.Int).Direction = ParameterDirection.Output
|
||||||
End With
|
End With
|
||||||
@@ -633,7 +645,8 @@ Public Class ClsOS
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
Public Function UpdateOrdenesServicios(PersonaSolicito As String, FechaRecepcion As String, Descripcion As String, CveUsuarioRecibio As Integer, CveEstatusOrdenServicio As Integer, CveOS As Integer, CveUsuarioModifico As Integer,
|
Public Function UpdateOrdenesServicios(PersonaSolicito As String, FechaRecepcion As String, Descripcion As String, CveUsuarioRecibio As Integer, CveEstatusOrdenServicio As Integer, CveOS As Integer, CveUsuarioModifico As Integer,
|
||||||
CveOSTipo As Integer, Optional CveClienteSucursal As Integer = -1, Optional Direccion As String = "-1") As Boolean
|
CveOSTipo As Integer, Optional CveClienteSucursal As Integer = -1, Optional Direccion As String = "-1",
|
||||||
|
Optional Telefono As String = "", Optional CveModeloAuto As Integer = -1, Optional Año As String = "-1") As Boolean
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_OS_OrdenesServiciosUpdate")
|
DataAdapter("PA_OS_OrdenesServiciosUpdate")
|
||||||
@@ -649,6 +662,11 @@ Public Class ClsOS
|
|||||||
.Add("@CveOS", SqlDbType.Int).Value = CveOS
|
.Add("@CveOS", SqlDbType.Int).Value = CveOS
|
||||||
.Add("@CveClienteSucursal", SqlDbType.Int).Value = CveClienteSucursal
|
.Add("@CveClienteSucursal", SqlDbType.Int).Value = CveClienteSucursal
|
||||||
.Add("@Direccion", SqlDbType.VarChar).Value = Direccion
|
.Add("@Direccion", SqlDbType.VarChar).Value = Direccion
|
||||||
|
|
||||||
|
.Add("@Telefono", SqlDbType.VarChar).Value = Telefono
|
||||||
|
.Add("@CveModeloAuto", SqlDbType.Int).Value = CveModeloAuto
|
||||||
|
.Add("@Año", SqlDbType.VarChar).Value = Año
|
||||||
|
|
||||||
End With
|
End With
|
||||||
|
|
||||||
Try
|
Try
|
||||||
|
|||||||
@@ -5910,6 +5910,16 @@ Public Class ClsPaginas
|
|||||||
lrds.Add(rds)
|
lrds.Add(rds)
|
||||||
ImprimirPDF(RutaReporte, lrds, Parametros, NombreArchivo, Formato, MR, Content_Disposition)
|
ImprimirPDF(RutaReporte, lrds, Parametros, NombreArchivo, Formato, MR, Content_Disposition)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Public Sub ImprimirPDFStimulsoft(RutaReporte As String, DtDatos As DataTable, Parametros As List(Of ReportParameter), Optional NombreArchivo As String = "Reporte", Optional Formato As String = "PDF", Optional RDSName As String = "Datos", Optional Content_Disposition As String = "attachment")
|
||||||
|
Dim lrds As New List(Of ReportDataSource)
|
||||||
|
Dim rds As New ReportDataSource
|
||||||
|
rds.Name = RDSName
|
||||||
|
rds.Value = DtDatos
|
||||||
|
lrds.Add(rds)
|
||||||
|
|
||||||
|
ImprimirbytesPDF(StreamBytesStimulsoft("Facturas", RutaReporte, lrds, Parametros, NombreArchivo:=NombreArchivo, Formato:="PDF"), NombreArchivo, Formato, Content_Disposition:=Content_Disposition)
|
||||||
|
End Sub
|
||||||
Public Sub ImprimirPDFMultiDS(RutaReporte As String, lrds As List(Of ReportDataSource), Parametros As List(Of ReportParameter), Optional NombreArchivo As String = "Reporte", Optional Formato As String = "PDF", Optional RDSName As String = "DataSet1", Optional MR As ReportViewer = Nothing)
|
Public Sub ImprimirPDFMultiDS(RutaReporte As String, lrds As List(Of ReportDataSource), Parametros As List(Of ReportParameter), Optional NombreArchivo As String = "Reporte", Optional Formato As String = "PDF", Optional RDSName As String = "DataSet1", Optional MR As ReportViewer = Nothing)
|
||||||
ImprimirPDF(RutaReporte, lrds, Parametros, NombreArchivo, Formato, MR)
|
ImprimirPDF(RutaReporte, lrds, Parametros, NombreArchivo, Formato, MR)
|
||||||
End Sub
|
End Sub
|
||||||
@@ -8081,7 +8091,7 @@ Public Class ClsPaginas
|
|||||||
Return retorno
|
Return retorno
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Protected Function StreamBytesStimulsoft(Opcion As String, RutaReporte As String, DataSource As List(Of ReportDataSource), Parametros As List(Of ReportParameter), Optional NombreArchivo As String = "Reporte", Optional Formato As String = "PDF") As Byte()
|
Protected Function StreamBytesStimulsoft(Opcion As String, RutaReporte As String, DataSource As List(Of ReportDataSource), Parametros As List(Of ReportParameter), Optional NombreArchivo As String = "Reporte", Optional Formato As String = "PDF", Optional NombreDataSource As String = "Datos") As Byte()
|
||||||
'limpio ReportViwer
|
'limpio ReportViwer
|
||||||
Dim sw As New System.Diagnostics.Stopwatch()
|
Dim sw As New System.Diagnostics.Stopwatch()
|
||||||
sw.Start()
|
sw.Start()
|
||||||
@@ -8150,6 +8160,7 @@ Public Class ClsPaginas
|
|||||||
Dim payload As New JObject(
|
Dim payload As New JObject(
|
||||||
New JProperty("formato", Formato),
|
New JProperty("formato", Formato),
|
||||||
New JProperty("ruta", RutaReporte),
|
New JProperty("ruta", RutaReporte),
|
||||||
|
New JProperty("nombreDataSource", NombreDataSource),
|
||||||
New JProperty("UsarFormatoCompilado", False),
|
New JProperty("UsarFormatoCompilado", False),
|
||||||
New JProperty("parametros", paramsArray),
|
New JProperty("parametros", paramsArray),
|
||||||
New JProperty("dataSource", dataSourceArray)
|
New JProperty("dataSource", dataSourceArray)
|
||||||
|
|||||||
@@ -2470,8 +2470,13 @@ Namespace Modelos
|
|||||||
End If
|
End If
|
||||||
IdCtaContableCliente = IdCtaContable
|
IdCtaContableCliente = IdCtaContable
|
||||||
|
|
||||||
If ObjConta.AddPrePolizasDetalle(ObjFactura.CvePrePoliza, TipoMovimiento, importeMovimiento, Referencia, 190, Concepto, FechaMovimiento, IdCtaContable, -1, CveVenta:=ObjFactura.CveVenta, CveCliente:=ObjFactura.CveCliente, CveIE:=CveIE, ImporteMX:=importeMX, ImporteME:=If(tipoCambio = 1, 0, importeMovimiento), Contabilizable:=False, CveSubProyecto:=CveSubProyectoContabilizar) Then
|
Dim ContabilizableRem As Boolean = False
|
||||||
If Not ObjConta.AddPrePolizasDetalle(ObjFactura.CvePrePoliza, Not TipoMovimiento, importeMovimiento, Referencia, 193, Concepto, FechaMovimiento, IdCtaContable, -1, CveVenta:=ObjFactura.CveVenta, CveCliente:=ObjFactura.CveCliente, CveIE:=CveIE, ImporteMX:=importeMX, ImporteME:=If(tipoCambio = 1, 0, importeMovimiento), Contabilizable:=False, CveSubProyecto:=CveSubProyectoContabilizar) Then
|
If ObjFactura.TipoContable <> -1 Then
|
||||||
|
ContabilizableRem = True
|
||||||
|
End If
|
||||||
|
|
||||||
|
If ObjConta.AddPrePolizasDetalle(ObjFactura.CvePrePoliza, TipoMovimiento, importeMovimiento, Referencia, 190, Concepto, FechaMovimiento, IdCtaContable, -1, CveVenta:=ObjFactura.CveVenta, CveCliente:=ObjFactura.CveCliente, CveIE:=CveIE, ImporteMX:=importeMX, ImporteME:=If(tipoCambio = 1, 0, importeMovimiento), Contabilizable:=ContabilizableRem, CveSubProyecto:=CveSubProyectoContabilizar) Then
|
||||||
|
If Not ObjConta.AddPrePolizasDetalle(ObjFactura.CvePrePoliza, Not TipoMovimiento, importeMovimiento, Referencia, 193, Concepto, FechaMovimiento, IdCtaContable, -1, CveVenta:=ObjFactura.CveVenta, CveCliente:=ObjFactura.CveCliente, CveIE:=CveIE, ImporteMX:=importeMX, ImporteME:=If(tipoCambio = 1, 0, importeMovimiento), Contabilizable:=ContabilizableRem, CveSubProyecto:=CveSubProyectoContabilizar) Then
|
||||||
ErrorPrepoliza = True
|
ErrorPrepoliza = True
|
||||||
End If
|
End If
|
||||||
Else
|
Else
|
||||||
@@ -5249,7 +5254,7 @@ Namespace Modelos
|
|||||||
If Not AplicaRefacturacionConPagos AndAlso ((((ObjFactura.Saldo > 0 AndAlso (CveEstatus > 0 AndAlso Not CveEstatus.Contiene(20, 23))) OrElse (ObjFactura.Total = 0 AndAlso UsuarioActual.CveEmpresa.Contiene(72) AndAlso ObjFactura.TipoDocto.Contiene("Ing"))) AndAlso CveEstatus.Contiene(4, 5)) OrElse (CvePlantillaPoliza = 7 AndAlso (CveEstatus > 0 AndAlso Not CveEstatus.Contiene(20, 23)))) Then
|
If Not AplicaRefacturacionConPagos AndAlso ((((ObjFactura.Saldo > 0 AndAlso (CveEstatus > 0 AndAlso Not CveEstatus.Contiene(20, 23))) OrElse (ObjFactura.Total = 0 AndAlso UsuarioActual.CveEmpresa.Contiene(72) AndAlso ObjFactura.TipoDocto.Contiene("Ing"))) AndAlso CveEstatus.Contiene(4, 5)) OrElse (CvePlantillaPoliza = 7 AndAlso (CveEstatus > 0 AndAlso Not CveEstatus.Contiene(20, 23)))) Then
|
||||||
|
|
||||||
'CUANDO SE CANCELA, LA PÓLIZA DEBE DE SER DE DIARIO
|
'CUANDO SE CANCELA, LA PÓLIZA DEBE DE SER DE DIARIO
|
||||||
CvePrePoliza = ObjConta.AddPrePolizas("Modelos/CancelarDocumento", CvePlantillaPoliza, ObjFactura.Total, ObjFactura.Total, ObjFactura.CveMoneda, CancelacionFecha, ObjFactura.Cliente.Nombre, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveTipoPoliza:=3)
|
CvePrePoliza = ObjConta.AddPrePolizas("Modelos/CancelarDocumento", CvePlantillaPoliza, ObjFactura.Total, ObjFactura.Total, ObjFactura.CveMoneda, CancelacionFecha, ObjFactura.Cliente.Nombre, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveTipoPoliza:=3, TipoContable:=ObjFactura.TipoContable)
|
||||||
ObjFactura.CvePrePoliza = CvePrePoliza
|
ObjFactura.CvePrePoliza = CvePrePoliza
|
||||||
|
|
||||||
If ObjFactura.CvePrePoliza <= 0 Then
|
If ObjFactura.CvePrePoliza <= 0 Then
|
||||||
@@ -7285,6 +7290,8 @@ Namespace Modelos
|
|||||||
|
|
||||||
Public Property MotivoCancelacion As String = ""
|
Public Property MotivoCancelacion As String = ""
|
||||||
|
|
||||||
|
Public Property TipoContable As Integer = -1
|
||||||
|
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<%@ WebHandler Language="VB" Class="SIGFacturacion" %>
|
<%@ WebHandler Language="VB" Class="SIGFacturacion" %>
|
||||||
|
|
||||||
Imports System
|
Imports System
|
||||||
Imports System.Web
|
Imports System.Web
|
||||||
Imports System.Net.Http
|
Imports System.Net.Http
|
||||||
@@ -11,62 +11,62 @@ Imports Extensiones
|
|||||||
Imports System.IO
|
Imports System.IO
|
||||||
Imports Modelos
|
Imports Modelos
|
||||||
|
|
||||||
Public Class SIGFacturacion : Implements IHttpHandler, IRequiresSessionState
|
Public Class SIGFacturacion : Implements IHttpHandler, IRequiresSessionState
|
||||||
|
|
||||||
Private Property CveEmpresaFacturar As Integer = 143
|
Private Property CveEmpresaFacturar As Integer = 143
|
||||||
|
|
||||||
Public Sub ProcessRequest(ByVal context As HttpContext) Implements IHttpHandler.ProcessRequest
|
Public Sub ProcessRequest(ByVal context As HttpContext) Implements IHttpHandler.ProcessRequest
|
||||||
context.Response.ContentType = "text/plain"
|
context.Response.ContentType = "text/plain"
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
Try
|
Try
|
||||||
'If context.Request.InputStream IsNot Nothing Then
|
'If context.Request.InputStream IsNot Nothing Then
|
||||||
' Using reader As New StreamReader(context.Request.InputStream)
|
' Using reader As New StreamReader(context.Request.InputStream)
|
||||||
' Dim json = reader.ReadToEnd
|
' Dim json = reader.ReadToEnd
|
||||||
|
|
||||||
' If Not String.IsNullOrEmpty(json) Then
|
' If Not String.IsNullOrEmpty(json) Then
|
||||||
' Dim JsonRequest As JObject = JObject.Parse(json)
|
' Dim JsonRequest As JObject = JObject.Parse(json)
|
||||||
' If JsonRequest IsNot Nothing Then
|
' If JsonRequest IsNot Nothing Then
|
||||||
' Dim Metodo = JsonRequest("Metodo").ToString()
|
' Dim Metodo = JsonRequest("Metodo").ToString()
|
||||||
' If Metodo = "FactMasivaRemisiones" Then
|
' If Metodo = "FactMasivaRemisiones" Then
|
||||||
' Dim pCveEmpresa = JsonRequest("CveEmpresa").ToString()
|
' Dim pCveEmpresa = JsonRequest("CveEmpresa").ToString()
|
||||||
' Dim pFechaI As String = ""
|
' Dim pFechaI As String = ""
|
||||||
' Dim pFechaF As String = ""
|
' Dim pFechaF As String = ""
|
||||||
|
|
||||||
' If JsonRequest("FechaI") IsNot Nothing AndAlso JsonRequest("FechaF") IsNot Nothing Then
|
' If JsonRequest("FechaI") IsNot Nothing AndAlso JsonRequest("FechaF") IsNot Nothing Then
|
||||||
' pFechaI = JsonRequest("FechaI")
|
' pFechaI = JsonRequest("FechaI")
|
||||||
' pFechaF = JsonRequest("FechaF")
|
' pFechaF = JsonRequest("FechaF")
|
||||||
' End If
|
' End If
|
||||||
|
|
||||||
' IniciaFacturacionMasiva(context, CveEmpresaFacturar, pFechaI, pFechaF)
|
' IniciaFacturacionMasiva(context, CveEmpresaFacturar, pFechaI, pFechaF)
|
||||||
' End If
|
' End If
|
||||||
' End If
|
' End If
|
||||||
' End If
|
' End If
|
||||||
|
|
||||||
' End Using
|
' End Using
|
||||||
'End If
|
'End If
|
||||||
|
|
||||||
Dim Metodo = If(context.Request("Metodo") = Nothing, "", context.Request("Metodo").ToString())
|
Dim Metodo = If(context.Request("Metodo") = Nothing, "", context.Request("Metodo").ToString())
|
||||||
If Metodo = "FactMasivaRemisiones" Then
|
If Metodo = "FactMasivaRemisiones" Then
|
||||||
Dim pFechaI As String = ""
|
Dim pFechaI As String = ""
|
||||||
Dim pFechaF As String = ""
|
Dim pFechaF As String = ""
|
||||||
|
|
||||||
If context.Request("FechaI") IsNot Nothing AndAlso context.Request("FechaF") IsNot Nothing Then
|
If context.Request("FechaI") IsNot Nothing AndAlso context.Request("FechaF") IsNot Nothing Then
|
||||||
pFechaI = context.Request("FechaI")
|
pFechaI = context.Request("FechaI")
|
||||||
pFechaF = context.Request("FechaF")
|
pFechaF = context.Request("FechaF")
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Retorno = IniciaFacturacionMasiva(CveEmpresaFacturar, pFechaI, pFechaF)
|
Retorno = IniciaFacturacionMasiva(CveEmpresaFacturar, pFechaI, pFechaF)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
ex.GuardaLog(ex.Message)
|
ex.GuardaLog(ex.Message)
|
||||||
End Try
|
End Try
|
||||||
|
|
||||||
If Retorno Then
|
If Retorno Then
|
||||||
context.Response.Write("True")
|
context.Response.Write("True")
|
||||||
Else
|
Else
|
||||||
context.Response.Write("False")
|
context.Response.Write("False")
|
||||||
End If
|
End If
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
@@ -77,7 +77,7 @@ Public Class SIGFacturacion : Implements IHttpHandler, IRequiresSessionState
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
Private Function IniciaFacturacionMasiva(pCveEmpresa As String, pFechaI As String, pFechaF As String) As Boolean
|
Private Function IniciaFacturacionMasiva(pCveEmpresa As String, pFechaI As String, pFechaF As String) As Boolean
|
||||||
Dim Retorno As Boolean = True
|
Dim Retorno As Boolean = True
|
||||||
Dim JsonRetorno As New JObject()
|
Dim JsonRetorno As New JObject()
|
||||||
Dim CveEmpresa As Integer = pCveEmpresa.ToEntero()
|
Dim CveEmpresa As Integer = pCveEmpresa.ToEntero()
|
||||||
@@ -96,9 +96,9 @@ Public Class SIGFacturacion : Implements IHttpHandler, IRequiresSessionState
|
|||||||
FechaI = New DateTime(DomingoAnterior.Year, DomingoAnterior.Month, DomingoAnterior.Day, 0, 0, 0)
|
FechaI = New DateTime(DomingoAnterior.Year, DomingoAnterior.Month, DomingoAnterior.Day, 0, 0, 0)
|
||||||
FechaF = New DateTime(Sabado.Year, Sabado.Month, Sabado.Day, 23, 59, 59)
|
FechaF = New DateTime(Sabado.Year, Sabado.Month, Sabado.Day, 23, 59, 59)
|
||||||
|
|
||||||
JsonRetorno = EjecutarFacturacionMasiva(Usuario, FechaI, FechaF, Usuario.Empresa.FacturaProduccion)
|
JsonRetorno = EjecutarFacturacionMasiva(Usuario, FechaI, FechaF, Usuario.Empresa.FacturaProduccion)
|
||||||
Else
|
Else
|
||||||
Retorno = False
|
Retorno = False
|
||||||
GuardaLogFacturacion("Ejecución no permitida, no es el dia permitido para ejecucion o no se espeficaron las fechas")
|
GuardaLogFacturacion("Ejecución no permitida, no es el dia permitido para ejecucion o no se espeficaron las fechas")
|
||||||
End If
|
End If
|
||||||
Else
|
Else
|
||||||
@@ -107,11 +107,11 @@ Public Class SIGFacturacion : Implements IHttpHandler, IRequiresSessionState
|
|||||||
|
|
||||||
JsonRetorno = EjecutarFacturacionMasiva(Usuario, FechaI, FechaF, Usuario.Empresa.FacturaProduccion)
|
JsonRetorno = EjecutarFacturacionMasiva(Usuario, FechaI, FechaF, Usuario.Empresa.FacturaProduccion)
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
GuardaLogFacturacion("Ejecución Exitosa, se generaron las siguientes facturas:")
|
GuardaLogFacturacion("Ejecución Exitosa, se generaron las siguientes facturas:")
|
||||||
GuardaLogFacturacion(JsonRetorno.ToString())
|
GuardaLogFacturacion(JsonRetorno.ToString())
|
||||||
|
|
||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
@@ -242,8 +242,8 @@ Public Class SIGFacturacion : Implements IHttpHandler, IRequiresSessionState
|
|||||||
json.Add(New JProperty("Almacen", ObsInv.ToString()))
|
json.Add(New JProperty("Almacen", ObsInv.ToString()))
|
||||||
|
|
||||||
Return json
|
Return json
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
#Region "V A L I D A - D A T O S"
|
#Region "V A L I D A - D A T O S"
|
||||||
Private Function ValidaUsuarioSistema(CveEmpresa As Integer) As Usuario
|
Private Function ValidaUsuarioSistema(CveEmpresa As Integer) As Usuario
|
||||||
Dim UsuarioActual As Usuario = Nothing
|
Dim UsuarioActual As Usuario = Nothing
|
||||||
@@ -277,8 +277,8 @@ Public Class SIGFacturacion : Implements IHttpHandler, IRequiresSessionState
|
|||||||
UsuarioActual.Empresa = ObjEmpresa.Empresa
|
UsuarioActual.Empresa = ObjEmpresa.Empresa
|
||||||
End If
|
End If
|
||||||
ObjEmpresa.Dispose()
|
ObjEmpresa.Dispose()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#End Region
|
#End Region
|
||||||
#Region "D E F I N I R - O B J E T O S"
|
#Region "D E F I N I R - O B J E T O S"
|
||||||
Private Function CreaFactura(Resp As Modelos.Factura.MMensajeFactura, UsuarioActual As Usuario, DTRemisionesPS As DataTable, CveCliente As Integer, CveSubProyecto As Integer, CveMoneda As Integer, DatosRemisiones As JObject, FechaI As DateTime, FechaF As DateTime) As Modelos.Factura
|
Private Function CreaFactura(Resp As Modelos.Factura.MMensajeFactura, UsuarioActual As Usuario, DTRemisionesPS As DataTable, CveCliente As Integer, CveSubProyecto As Integer, CveMoneda As Integer, DatosRemisiones As JObject, FechaI As DateTime, FechaF As DateTime) As Modelos.Factura
|
||||||
@@ -780,7 +780,7 @@ Public Class SIGFacturacion : Implements IHttpHandler, IRequiresSessionState
|
|||||||
|
|
||||||
'RECARGAR GV
|
'RECARGAR GV
|
||||||
Return Row
|
Return Row
|
||||||
End Function
|
End Function
|
||||||
#End Region
|
#End Region
|
||||||
#Region "E N V I O - C O R R E O"
|
#Region "E N V I O - C O R R E O"
|
||||||
Private Sub EnviarCorreo(Objfactura As Modelos.Factura, UsuarioActual As Usuario)
|
Private Sub EnviarCorreo(Objfactura As Modelos.Factura, UsuarioActual As Usuario)
|
||||||
@@ -924,9 +924,9 @@ Public Class SIGFacturacion : Implements IHttpHandler, IRequiresSessionState
|
|||||||
End If
|
End If
|
||||||
End Try
|
End Try
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
Public Sub GuardaLogFacturacion(Str As String)
|
Public Sub GuardaLogFacturacion(Str As String)
|
||||||
Dim ArchivoW As StreamWriter
|
Dim ArchivoW As StreamWriter
|
||||||
Dim strLineaTMP As String
|
Dim strLineaTMP As String
|
||||||
@@ -949,8 +949,8 @@ Public Class SIGFacturacion : Implements IHttpHandler, IRequiresSessionState
|
|||||||
|
|
||||||
ArchivoW.Close()
|
ArchivoW.Close()
|
||||||
ArchivoW.Dispose()
|
ArchivoW.Dispose()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#Region "G L O B A L - D T"
|
#Region "G L O B A L - D T"
|
||||||
Public Property GlobalTipoCambio(Optional Fecha As Date = MinFecha) As Double
|
Public Property GlobalTipoCambio(Optional Fecha As Date = MinFecha) As Double
|
||||||
Get
|
Get
|
||||||
@@ -1135,10 +1135,10 @@ Public Class SIGFacturacion : Implements IHttpHandler, IRequiresSessionState
|
|||||||
Set(value As DataTable)
|
Set(value As DataTable)
|
||||||
HttpContext.Current.Application("GlobalDTPSATPS") = value
|
HttpContext.Current.Application("GlobalDTPSATPS") = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
#Region "GLOBALES DE SAT COMERCIO EXTERIOR"
|
#Region "GLOBALES DE SAT COMERCIO EXTERIOR"
|
||||||
|
|
||||||
Property GlobalDTClavePedimento() As DataTable
|
Property GlobalDTClavePedimento() As DataTable
|
||||||
Get
|
Get
|
||||||
GlobalDTClavePedimento = DirectCast(HttpContext.Current.Application("GlobalDTClavePedimento"), DataTable)
|
GlobalDTClavePedimento = DirectCast(HttpContext.Current.Application("GlobalDTClavePedimento"), DataTable)
|
||||||
@@ -1248,10 +1248,10 @@ Public Class SIGFacturacion : Implements IHttpHandler, IRequiresSessionState
|
|||||||
Set(value As DataTable)
|
Set(value As DataTable)
|
||||||
HttpContext.Current.Application("GlobalDTColonia") = value
|
HttpContext.Current.Application("GlobalDTColonia") = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
Property GlobalDTPSATUM() As DataTable
|
Property GlobalDTPSATUM() As DataTable
|
||||||
Get
|
Get
|
||||||
GlobalDTPSATUM = DirectCast(HttpContext.Current.Application("GlobalDTPSATUM"), DataTable)
|
GlobalDTPSATUM = DirectCast(HttpContext.Current.Application("GlobalDTPSATUM"), DataTable)
|
||||||
@@ -1635,8 +1635,8 @@ Public Class SIGFacturacion : Implements IHttpHandler, IRequiresSessionState
|
|||||||
Set(value As DataTable)
|
Set(value As DataTable)
|
||||||
HttpContext.Current.Application("GlobalDTLeyendasFiscales") = value
|
HttpContext.Current.Application("GlobalDTLeyendasFiscales") = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
Property GlobalDTEstatusFactura() As DataTable
|
Property GlobalDTEstatusFactura() As DataTable
|
||||||
Get
|
Get
|
||||||
GlobalDTEstatusFactura = DirectCast(HttpContext.Current.Application("GlobalDTEstatusFactura"), DataTable)
|
GlobalDTEstatusFactura = DirectCast(HttpContext.Current.Application("GlobalDTEstatusFactura"), DataTable)
|
||||||
@@ -1680,37 +1680,37 @@ Public Class SIGFacturacion : Implements IHttpHandler, IRequiresSessionState
|
|||||||
HttpContext.Current.Application("GlobalDTProyectos") = value
|
HttpContext.Current.Application("GlobalDTProyectos") = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
Public Property GlobalDTSubProyectos(CveProyecto As Integer, Optional CveSubProyecto As Integer = -1, Optional CveEmpresa As Integer = -1, Optional Estatus As Integer = 1) As DataTable
|
Public Property GlobalDTSubProyectos(CveProyecto As Integer, Optional CveSubProyecto As Integer = -1, Optional CveEmpresa As Integer = -1, Optional Estatus As Integer = 1) As DataTable
|
||||||
Get
|
Get
|
||||||
Dim AppNombre As String = String.Format("GlobalDTSubProyectos-{0}", CveEmpresa)
|
Dim AppNombre As String = String.Format("GlobalDTSubProyectos-{0}", CveEmpresa)
|
||||||
'sino existe, recarga los datos
|
'sino existe, recarga los datos
|
||||||
If DirectCast(HttpContext.Current.Application(AppNombre), DataTable) Is Nothing Or (DirectCast(HttpContext.Current.Application(AppNombre), DataTable) IsNot Nothing AndAlso DirectCast(HttpContext.Current.Application(AppNombre), DataTable).Rows.Count = 0) Then
|
If DirectCast(HttpContext.Current.Application(AppNombre), DataTable) Is Nothing Or (DirectCast(HttpContext.Current.Application(AppNombre), DataTable) IsNot Nothing AndAlso DirectCast(HttpContext.Current.Application(AppNombre), DataTable).Rows.Count = 0) Then
|
||||||
Dim P As New ClsSubProyectos
|
Dim P As New ClsSubProyectos
|
||||||
If P.GetSubProyectos(CveEmpresa:=CveEmpresa) Then HttpContext.Current.Application(AppNombre) = P.DtResultados
|
If P.GetSubProyectos(CveEmpresa:=CveEmpresa) Then HttpContext.Current.Application(AppNombre) = P.DtResultados
|
||||||
P.Dispose()
|
P.Dispose()
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If CveProyecto <> -1 OrElse CveSubProyecto <> -1 OrElse CveEmpresa <> -1 OrElse Estatus <> -1 Then
|
If CveProyecto <> -1 OrElse CveSubProyecto <> -1 OrElse CveEmpresa <> -1 OrElse Estatus <> -1 Then
|
||||||
Dim StrSQL As New StringBuilder
|
Dim StrSQL As New StringBuilder
|
||||||
If CveProyecto <> -1 Then StrSQL.AppendFormat(" AND CveProyecto = {0}", CveProyecto)
|
If CveProyecto <> -1 Then StrSQL.AppendFormat(" AND CveProyecto = {0}", CveProyecto)
|
||||||
If CveSubProyecto <> -1 Then StrSQL.AppendFormat(" AND CveSubProyecto = {0}", CveSubProyecto)
|
If CveSubProyecto <> -1 Then StrSQL.AppendFormat(" AND CveSubProyecto = {0}", CveSubProyecto)
|
||||||
If Estatus <> -1 Then StrSQL.AppendFormat(" AND CveEstatus = {0}", Estatus)
|
If Estatus <> -1 Then StrSQL.AppendFormat(" AND CveEstatus = {0}", Estatus)
|
||||||
If CveEmpresa <> -1 Then StrSQL.AppendFormat(" AND CveEmpresa = {0}", CveEmpresa)
|
If CveEmpresa <> -1 Then StrSQL.AppendFormat(" AND CveEmpresa = {0}", CveEmpresa)
|
||||||
|
|
||||||
Dim Dv As New DataView(DirectCast(HttpContext.Current.Application(AppNombre), DataTable), StrSQL.ToString.Trim.TrimStart("A"c, "N"c, "D"c), "", DataViewRowState.CurrentRows)
|
Dim Dv As New DataView(DirectCast(HttpContext.Current.Application(AppNombre), DataTable), StrSQL.ToString.Trim.TrimStart("A"c, "N"c, "D"c), "", DataViewRowState.CurrentRows)
|
||||||
GlobalDTSubProyectos = Dv.ToTable
|
GlobalDTSubProyectos = Dv.ToTable
|
||||||
Dv.Dispose()
|
Dv.Dispose()
|
||||||
|
|
||||||
Else
|
Else
|
||||||
GlobalDTSubProyectos = DirectCast(HttpContext.Current.Application(AppNombre), DataTable)
|
GlobalDTSubProyectos = DirectCast(HttpContext.Current.Application(AppNombre), DataTable)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
End Get
|
End Get
|
||||||
Set(ByVal value As DataTable)
|
Set(ByVal value As DataTable)
|
||||||
Dim AppNombre As String = String.Format("GlobalDTSubProyectos-{0}", CveEmpresa)
|
Dim AppNombre As String = String.Format("GlobalDTSubProyectos-{0}", CveEmpresa)
|
||||||
HttpContext.Current.Application(AppNombre) = value
|
HttpContext.Current.Application(AppNombre) = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
Property GlobalDTSubProyectosUsuarios(CveUsuario As Integer, CveProyecto As Integer, CveEmpresa As Integer, Optional CveSubProyecto As Integer = -1, Optional CveEstatus As Integer = -1) As DataTable
|
Property GlobalDTSubProyectosUsuarios(CveUsuario As Integer, CveProyecto As Integer, CveEmpresa As Integer, Optional CveSubProyecto As Integer = -1, Optional CveEstatus As Integer = -1) As DataTable
|
||||||
Get
|
Get
|
||||||
@@ -2305,44 +2305,44 @@ Public Class SIGFacturacion : Implements IHttpHandler, IRequiresSessionState
|
|||||||
HttpContext.Current.Application("GlobalDTAlmacen") = value
|
HttpContext.Current.Application("GlobalDTAlmacen") = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
Property GlobalDTAlmacenUsuarios(CveUsuario As Integer, CveEmpresa As Integer, Optional CveTipoAlmacen As Integer = 1) As DataTable
|
Property GlobalDTAlmacenUsuarios(CveUsuario As Integer, CveEmpresa As Integer, Optional CveTipoAlmacen As Integer = 1) As DataTable
|
||||||
Get
|
Get
|
||||||
Dim AppNombre As String = String.Format("GlobalDTAlmacenUsuarios-{0}", CveEmpresa)
|
Dim AppNombre As String = String.Format("GlobalDTAlmacenUsuarios-{0}", CveEmpresa)
|
||||||
'sino existe, recarga los datos
|
'sino existe, recarga los datos
|
||||||
If HttpContext.Current.Application(AppNombre) Is Nothing Then
|
If HttpContext.Current.Application(AppNombre) Is Nothing Then
|
||||||
Dim ObjUsr As New ClsSisUsuarios
|
Dim ObjUsr As New ClsSisUsuarios
|
||||||
If ObjUsr.GetAlmacen(-1, CveEmpresa) Then HttpContext.Current.Application(AppNombre) = ObjUsr.DtResultados
|
If ObjUsr.GetAlmacen(-1, CveEmpresa) Then HttpContext.Current.Application(AppNombre) = ObjUsr.DtResultados
|
||||||
ObjUsr.Dispose()
|
ObjUsr.Dispose()
|
||||||
End If
|
End If
|
||||||
Dim Str As New StringBuilder
|
Dim Str As New StringBuilder
|
||||||
Str.AppendFormat("CveUsuario = {0} AND CveEmpresa = {1} ", CveUsuario, CveEmpresa)
|
Str.AppendFormat("CveUsuario = {0} AND CveEmpresa = {1} ", CveUsuario, CveEmpresa)
|
||||||
If CveTipoAlmacen > 0 Then Str.AppendFormat("AND CveTipoAlmacen = {0}", CveTipoAlmacen)
|
If CveTipoAlmacen > 0 Then Str.AppendFormat("AND CveTipoAlmacen = {0}", CveTipoAlmacen)
|
||||||
|
|
||||||
Dim Dv As New DataView(DirectCast(HttpContext.Current.Application(AppNombre), DataTable), Str.ToString, "", DataViewRowState.CurrentRows)
|
Dim Dv As New DataView(DirectCast(HttpContext.Current.Application(AppNombre), DataTable), Str.ToString, "", DataViewRowState.CurrentRows)
|
||||||
GlobalDTAlmacenUsuarios = Dv.ToTable
|
GlobalDTAlmacenUsuarios = Dv.ToTable
|
||||||
Dv.Dispose()
|
Dv.Dispose()
|
||||||
End Get
|
End Get
|
||||||
Set(value As DataTable)
|
Set(value As DataTable)
|
||||||
Dim AppNombre As String = String.Format("GlobalDTAlmacenUsuarios-{0}", CveEmpresa)
|
Dim AppNombre As String = String.Format("GlobalDTAlmacenUsuarios-{0}", CveEmpresa)
|
||||||
HttpContext.Current.Application(AppNombre) = value
|
HttpContext.Current.Application(AppNombre) = value
|
||||||
End Set
|
End Set
|
||||||
'Get
|
'Get
|
||||||
' If CveEmpresa <> -1 Then
|
' If CveEmpresa <> -1 Then
|
||||||
' Dim Str As New StringBuilder
|
' Dim Str As New StringBuilder
|
||||||
' Str.AppendFormat("CveUsuario = {0} AND CveEmpresa = {1} ", CveUsuario, CveEmpresa)
|
' Str.AppendFormat("CveUsuario = {0} AND CveEmpresa = {1} ", CveUsuario, CveEmpresa)
|
||||||
' If CveTipoAlmacen > 0 Then Str.AppendFormat("AND CveTipoAlmacen = {0}", CveTipoAlmacen)
|
' If CveTipoAlmacen > 0 Then Str.AppendFormat("AND CveTipoAlmacen = {0}", CveTipoAlmacen)
|
||||||
|
|
||||||
' Dim Dv As New DataView(DirectCast(HttpContext.Current.Application("GlobalDTAlmacenUsuarios"), DataTable), Str.ToString, "", DataViewRowState.CurrentRows)
|
' Dim Dv As New DataView(DirectCast(HttpContext.Current.Application("GlobalDTAlmacenUsuarios"), DataTable), Str.ToString, "", DataViewRowState.CurrentRows)
|
||||||
' GlobalDTAlmacenUsuarios = Dv.ToTable
|
' GlobalDTAlmacenUsuarios = Dv.ToTable
|
||||||
' Dv.Dispose()
|
' Dv.Dispose()
|
||||||
' Else
|
' Else
|
||||||
' GlobalDTAlmacenUsuarios = DirectCast(HttpContext.Current.Application("GlobalDTAlmacenUsuarios"), DataTable)
|
' GlobalDTAlmacenUsuarios = DirectCast(HttpContext.Current.Application("GlobalDTAlmacenUsuarios"), DataTable)
|
||||||
' End If
|
' End If
|
||||||
|
|
||||||
'End Get
|
'End Get
|
||||||
'Set(value As DataTable)
|
'Set(value As DataTable)
|
||||||
' HttpContext.Current.Application("GlobalDTAlmacenUsuarios") = value
|
' HttpContext.Current.Application("GlobalDTAlmacenUsuarios") = value
|
||||||
'End Set
|
'End Set
|
||||||
End Property
|
End Property
|
||||||
Property GlobalDTNom_Periodos() As DataTable
|
Property GlobalDTNom_Periodos() As DataTable
|
||||||
Get
|
Get
|
||||||
@@ -2397,9 +2397,9 @@ Public Class SIGFacturacion : Implements IHttpHandler, IRequiresSessionState
|
|||||||
Set(value As DataTable)
|
Set(value As DataTable)
|
||||||
HttpContext.Current.Application("GlobalDTVtaCobranzaEstatus") = value
|
HttpContext.Current.Application("GlobalDTVtaCobranzaEstatus") = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
|
||||||
#Region "***********************************************************************DT EVENTOS****************************************************************************************"
|
#Region "***********************************************************************DT EVENTOS****************************************************************************************"
|
||||||
Property GlobalDTTiposEventos() As DataTable
|
Property GlobalDTTiposEventos() As DataTable
|
||||||
Get
|
Get
|
||||||
@@ -2435,9 +2435,9 @@ Public Class SIGFacturacion : Implements IHttpHandler, IRequiresSessionState
|
|||||||
Set(value As DataTable)
|
Set(value As DataTable)
|
||||||
HttpContext.Current.Application("GlobalDTOIEstatusEventos") = value
|
HttpContext.Current.Application("GlobalDTOIEstatusEventos") = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
#Region " **********************************************************************DT PROSPECTOS*************************************************************************************"
|
#Region " **********************************************************************DT PROSPECTOS*************************************************************************************"
|
||||||
Property GlobalDTProspectosCaracteristicasClasificaciones() As DataTable
|
Property GlobalDTProspectosCaracteristicasClasificaciones() As DataTable
|
||||||
Get
|
Get
|
||||||
@@ -2478,9 +2478,9 @@ Public Class SIGFacturacion : Implements IHttpHandler, IRequiresSessionState
|
|||||||
Set(value As DataTable)
|
Set(value As DataTable)
|
||||||
HttpContext.Current.Application("GlobalDTProspectosCaracteristicasOpciones") = value
|
HttpContext.Current.Application("GlobalDTProspectosCaracteristicasOpciones") = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
#Region "***********************************************************************DT ACTIVOS FIJOS**********************************************************************************"
|
#Region "***********************************************************************DT ACTIVOS FIJOS**********************************************************************************"
|
||||||
Property GlobalDTActivoFijos(CveEmpresa As Integer, Optional CveSubTipoActivoFijo As Integer = -1, Optional CveActivoFijo As Integer = -1) As DataTable
|
Property GlobalDTActivoFijos(CveEmpresa As Integer, Optional CveSubTipoActivoFijo As Integer = -1, Optional CveActivoFijo As Integer = -1) As DataTable
|
||||||
Get
|
Get
|
||||||
@@ -2573,10 +2573,10 @@ Public Class SIGFacturacion : Implements IHttpHandler, IRequiresSessionState
|
|||||||
Set(value As DataTable)
|
Set(value As DataTable)
|
||||||
HttpContext.Current.Application("GlobalDTTipoActivoFijo") = value
|
HttpContext.Current.Application("GlobalDTTipoActivoFijo") = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
#Region "***********************************************************************DT GENERALES**************************************************************************************"
|
#Region "***********************************************************************DT GENERALES**************************************************************************************"
|
||||||
Property GlobalDTGralPaises() As DataTable
|
Property GlobalDTGralPaises() As DataTable
|
||||||
Get
|
Get
|
||||||
@@ -2664,10 +2664,10 @@ Public Class SIGFacturacion : Implements IHttpHandler, IRequiresSessionState
|
|||||||
Set(value As DataTable)
|
Set(value As DataTable)
|
||||||
HttpContext.Current.Application("GlobalDTGralColectivas") = value
|
HttpContext.Current.Application("GlobalDTGralColectivas") = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
#Region "***********************************************************************DT PROSPECTOS*************************************************************************************"
|
#Region "***********************************************************************DT PROSPECTOS*************************************************************************************"
|
||||||
Property GlobalDTProspectosSupervisores(CveEmpresa As Integer) As DataTable
|
Property GlobalDTProspectosSupervisores(CveEmpresa As Integer) As DataTable
|
||||||
Get
|
Get
|
||||||
@@ -2876,8 +2876,8 @@ Public Class SIGFacturacion : Implements IHttpHandler, IRequiresSessionState
|
|||||||
Set(value As DataTable)
|
Set(value As DataTable)
|
||||||
HttpContext.Current.Application("GlobalDTProspectosTipos") = value
|
HttpContext.Current.Application("GlobalDTProspectosTipos") = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
#Region " DT PROSPECTOS SOLICITUDES"
|
#Region " DT PROSPECTOS SOLICITUDES"
|
||||||
Property GlobalDTProspectosSolicitudes(CveEmpresa As Integer) As DataTable
|
Property GlobalDTProspectosSolicitudes(CveEmpresa As Integer) As DataTable
|
||||||
Get
|
Get
|
||||||
@@ -2944,15 +2944,15 @@ Public Class SIGFacturacion : Implements IHttpHandler, IRequiresSessionState
|
|||||||
Set(value As DataTable)
|
Set(value As DataTable)
|
||||||
HttpContext.Current.Application("GlobalDTProspectosSolicitudesApoyos") = value
|
HttpContext.Current.Application("GlobalDTProspectosSolicitudesApoyos") = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
#End Region
|
#End Region
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
#Region "**********************************************DT AMORTIZACIÓN CONTABLE PLAN DE DESARROLLO********************************************************************************"
|
#Region "**********************************************DT AMORTIZACIÓN CONTABLE PLAN DE DESARROLLO********************************************************************************"
|
||||||
|
|
||||||
#Region "***********************************************************************DT AMORTIZACIÓN CONTABLE*********************************************************************************************"
|
#Region "***********************************************************************DT AMORTIZACIÓN CONTABLE*********************************************************************************************"
|
||||||
|
|
||||||
Property GlobalDTAC_RubrosIngreso() As DataTable
|
Property GlobalDTAC_RubrosIngreso() As DataTable
|
||||||
Get
|
Get
|
||||||
GlobalDTAC_RubrosIngreso = DirectCast(HttpContext.Current.Application("GlobalDTAC_RubrosIngreso"), DataTable)
|
GlobalDTAC_RubrosIngreso = DirectCast(HttpContext.Current.Application("GlobalDTAC_RubrosIngreso"), DataTable)
|
||||||
@@ -3208,11 +3208,11 @@ Public Class SIGFacturacion : Implements IHttpHandler, IRequiresSessionState
|
|||||||
Set(value As DataTable)
|
Set(value As DataTable)
|
||||||
HttpContext.Current.Application("GlobalDTAC_MatrizEgresos") = value
|
HttpContext.Current.Application("GlobalDTAC_MatrizEgresos") = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
Property GlobalDTAC_PD_EjeRector(CveEmpresa As Integer) As DataTable
|
Property GlobalDTAC_PD_EjeRector(CveEmpresa As Integer) As DataTable
|
||||||
Get
|
Get
|
||||||
If CveEmpresa <> -1 Then
|
If CveEmpresa <> -1 Then
|
||||||
@@ -3291,9 +3291,9 @@ Public Class SIGFacturacion : Implements IHttpHandler, IRequiresSessionState
|
|||||||
Set(value As DataTable)
|
Set(value As DataTable)
|
||||||
HttpContext.Current.Application("GlobalDTAC_PD_Metas") = value
|
HttpContext.Current.Application("GlobalDTAC_PD_Metas") = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
#Region "***********************************************************************GLOBAL DT ORDENES DE COMPRA***********************************************************************"
|
#Region "***********************************************************************GLOBAL DT ORDENES DE COMPRA***********************************************************************"
|
||||||
Property GlobalDTOCEstatus(CveEmpresa As Integer) As DataTable
|
Property GlobalDTOCEstatus(CveEmpresa As Integer) As DataTable
|
||||||
Get
|
Get
|
||||||
@@ -3308,75 +3308,75 @@ Public Class SIGFacturacion : Implements IHttpHandler, IRequiresSessionState
|
|||||||
Set(value As DataTable)
|
Set(value As DataTable)
|
||||||
HttpContext.Current.Application("GlobalDTOCEstatus") = value
|
HttpContext.Current.Application("GlobalDTOCEstatus") = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
Property GlobalDTOCEstatusUsuarios(CveEmpresa As Integer, Optional CveUsuario As Integer = -1, Optional Tipo As String = "") As DataTable
|
Property GlobalDTOCEstatusUsuarios(CveEmpresa As Integer, Optional CveUsuario As Integer = -1, Optional Tipo As String = "") As DataTable
|
||||||
Get
|
Get
|
||||||
|
|
||||||
Dim AppNombre As String = String.Format("GlobalDTOCEstatusUsuarios-{0}", CveEmpresa)
|
Dim AppNombre As String = String.Format("GlobalDTOCEstatusUsuarios-{0}", CveEmpresa)
|
||||||
'sino existe, recarga los datos
|
'sino existe, recarga los datos
|
||||||
If DirectCast(HttpContext.Current.Application(AppNombre), DataTable) Is Nothing Then
|
If DirectCast(HttpContext.Current.Application(AppNombre), DataTable) Is Nothing Then
|
||||||
|
|
||||||
Dim ObjOC As New ClsOC
|
Dim ObjOC As New ClsOC
|
||||||
If ObjOC.GetEstatusUsuarios(-1, -1, -1, -1, CveEmpresa) Then
|
If ObjOC.GetEstatusUsuarios(-1, -1, -1, -1, CveEmpresa) Then
|
||||||
HttpContext.Current.Application(AppNombre) = ObjOC.DtResultados
|
HttpContext.Current.Application(AppNombre) = ObjOC.DtResultados
|
||||||
Else
|
Else
|
||||||
HttpContext.Current.Application(AppNombre) = Nothing
|
HttpContext.Current.Application(AppNombre) = Nothing
|
||||||
End If
|
End If
|
||||||
|
|
||||||
ObjOC.Dispose()
|
ObjOC.Dispose()
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Dim filtro As New StringBuilder
|
Dim filtro As New StringBuilder
|
||||||
filtro.AppendFormat("CveEmpresa = {0} ", CveEmpresa)
|
filtro.AppendFormat("CveEmpresa = {0} ", CveEmpresa)
|
||||||
If CveUsuario > 0 Then
|
If CveUsuario > 0 Then
|
||||||
filtro.AppendFormat(" AND CveUsuario={0} ", CveUsuario)
|
filtro.AppendFormat(" AND CveUsuario={0} ", CveUsuario)
|
||||||
End If
|
End If
|
||||||
If Tipo <> "" Then
|
If Tipo <> "" Then
|
||||||
filtro.AppendFormat(" AND Tipo='{0}'", Tipo)
|
filtro.AppendFormat(" AND Tipo='{0}'", Tipo)
|
||||||
End If
|
End If
|
||||||
Dim Dv As New DataView(DirectCast(HttpContext.Current.Application(AppNombre), DataTable), filtro.ToString, "", DataViewRowState.CurrentRows)
|
Dim Dv As New DataView(DirectCast(HttpContext.Current.Application(AppNombre), DataTable), filtro.ToString, "", DataViewRowState.CurrentRows)
|
||||||
GlobalDTOCEstatusUsuarios = Dv.ToTable
|
GlobalDTOCEstatusUsuarios = Dv.ToTable
|
||||||
Dv.Dispose()
|
Dv.Dispose()
|
||||||
|
|
||||||
End Get
|
End Get
|
||||||
Set(value As DataTable)
|
Set(value As DataTable)
|
||||||
Dim AppNombre As String = String.Format("GlobalDTOCEstatusUsuarios-{0}", CveEmpresa)
|
Dim AppNombre As String = String.Format("GlobalDTOCEstatusUsuarios-{0}", CveEmpresa)
|
||||||
HttpContext.Current.Application(AppNombre) = value
|
HttpContext.Current.Application(AppNombre) = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
'Property GlobalDTOCEstatusUsuarios(CveEmpresa As Integer, Optional CveUsuario As Integer = -1, Optional Tipo As String = "") As DataTable
|
'Property GlobalDTOCEstatusUsuarios(CveEmpresa As Integer, Optional CveUsuario As Integer = -1, Optional Tipo As String = "") As DataTable
|
||||||
' Get
|
' Get
|
||||||
' If CveEmpresa <> -1 Then
|
' If CveEmpresa <> -1 Then
|
||||||
' Dim filtro As New StringBuilder
|
' Dim filtro As New StringBuilder
|
||||||
' filtro.AppendFormat("CveEmpresa = {0} ", CveEmpresa)
|
' filtro.AppendFormat("CveEmpresa = {0} ", CveEmpresa)
|
||||||
' If CveUsuario > 0 Then
|
' If CveUsuario > 0 Then
|
||||||
' filtro.AppendFormat(" AND CveUsuario={0} ", CveUsuario)
|
' filtro.AppendFormat(" AND CveUsuario={0} ", CveUsuario)
|
||||||
' End If
|
' End If
|
||||||
' If Tipo <> "" Then
|
' If Tipo <> "" Then
|
||||||
' filtro.AppendFormat(" AND Tipo='{0}'", Tipo)
|
' filtro.AppendFormat(" AND Tipo='{0}'", Tipo)
|
||||||
' End If
|
' End If
|
||||||
' Dim Dv As New DataView(DirectCast(HttpContext.Current.Application("GlobalDTOCEstatusUsuarios"), DataTable), filtro.ToString, "", DataViewRowState.CurrentRows)
|
' Dim Dv As New DataView(DirectCast(HttpContext.Current.Application("GlobalDTOCEstatusUsuarios"), DataTable), filtro.ToString, "", DataViewRowState.CurrentRows)
|
||||||
' GlobalDTOCEstatusUsuarios = Dv.ToTable
|
' GlobalDTOCEstatusUsuarios = Dv.ToTable
|
||||||
' Dv.Dispose()
|
' Dv.Dispose()
|
||||||
' Else
|
' Else
|
||||||
' GlobalDTOCEstatusUsuarios = DirectCast(HttpContext.Current.Application("GlobalDTOCEstatusUsuarios"), DataTable)
|
' GlobalDTOCEstatusUsuarios = DirectCast(HttpContext.Current.Application("GlobalDTOCEstatusUsuarios"), DataTable)
|
||||||
' End If
|
' End If
|
||||||
' End Get
|
' End Get
|
||||||
' Set(value As DataTable)
|
' Set(value As DataTable)
|
||||||
' HttpContext.Current.Application("GlobalDTOCEstatusUsuarios") = value
|
' HttpContext.Current.Application("GlobalDTOCEstatusUsuarios") = value
|
||||||
' End Set
|
' End Set
|
||||||
'End Property
|
'End Property
|
||||||
|
|
||||||
|
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
#Region "F I N A N Z A S "
|
#Region "F I N A N Z A S "
|
||||||
Property GlobalDTFinan_RazonesFinancieras() As DataTable
|
Property GlobalDTFinan_RazonesFinancieras() As DataTable
|
||||||
Get
|
Get
|
||||||
@@ -3385,10 +3385,10 @@ Public Class SIGFacturacion : Implements IHttpHandler, IRequiresSessionState
|
|||||||
Set(value As DataTable)
|
Set(value As DataTable)
|
||||||
HttpContext.Current.Application("GlobalDTFinan_RazonesFinancieras") = value
|
HttpContext.Current.Application("GlobalDTFinan_RazonesFinancieras") = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
|
|
||||||
#Region "***********************************************************************GLOBAL DT CONTABILIDAD****************************************************************************"
|
#Region "***********************************************************************GLOBAL DT CONTABILIDAD****************************************************************************"
|
||||||
Property GlobalDTContaPlantillasPolizas(CveEmpresa As Integer, Optional TipoPlantilla As Integer = -1) As DataTable
|
Property GlobalDTContaPlantillasPolizas(CveEmpresa As Integer, Optional TipoPlantilla As Integer = -1) As DataTable
|
||||||
Get
|
Get
|
||||||
@@ -3442,9 +3442,9 @@ Public Class SIGFacturacion : Implements IHttpHandler, IRequiresSessionState
|
|||||||
Set(value As DataTable)
|
Set(value As DataTable)
|
||||||
HttpContext.Current.Application("GlobalDTContaConceptosContables") = value
|
HttpContext.Current.Application("GlobalDTContaConceptosContables") = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
#Region "**********************************************************************GLOBAL DT RH (RECURSOS HUMANOS)********************************************************************"
|
#Region "**********************************************************************GLOBAL DT RH (RECURSOS HUMANOS)********************************************************************"
|
||||||
Property GlobalDTAsistenciaDetalle() As DataTable
|
Property GlobalDTAsistenciaDetalle() As DataTable
|
||||||
Get
|
Get
|
||||||
@@ -3596,13 +3596,13 @@ Public Class SIGFacturacion : Implements IHttpHandler, IRequiresSessionState
|
|||||||
Set(value As DataTable)
|
Set(value As DataTable)
|
||||||
HttpContext.Current.Application("GlobalDTTipoBuzon") = value
|
HttpContext.Current.Application("GlobalDTTipoBuzon") = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
#Region "*********** D T - C O M B U S T I B L E S ***********"
|
#Region "*********** D T - C O M B U S T I B L E S ***********"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Property GlobalDTCombustibles(CveEmpresa As Integer) As DataTable
|
Property GlobalDTCombustibles(CveEmpresa As Integer) As DataTable
|
||||||
Get
|
Get
|
||||||
If CveEmpresa <> -1 Then
|
If CveEmpresa <> -1 Then
|
||||||
@@ -3641,11 +3641,11 @@ Public Class SIGFacturacion : Implements IHttpHandler, IRequiresSessionState
|
|||||||
Set(ByVal value As DataTable)
|
Set(ByVal value As DataTable)
|
||||||
HttpContext.Current.Application("GlobalDTCombustiblesTipos") = value
|
HttpContext.Current.Application("GlobalDTCombustiblesTipos") = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
#Region "*********** D T - M A N T E N I M I E N T O S ***********"
|
#Region "*********** D T - M A N T E N I M I E N T O S ***********"
|
||||||
|
|
||||||
Property GlobalDTMantenimientosTipos() As DataTable
|
Property GlobalDTMantenimientosTipos() As DataTable
|
||||||
Get
|
Get
|
||||||
GlobalDTMantenimientosTipos = DirectCast(HttpContext.Current.Application("GlobalDTMantenimientosTipos"), DataTable)
|
GlobalDTMantenimientosTipos = DirectCast(HttpContext.Current.Application("GlobalDTMantenimientosTipos"), DataTable)
|
||||||
@@ -3684,13 +3684,13 @@ Public Class SIGFacturacion : Implements IHttpHandler, IRequiresSessionState
|
|||||||
|
|
||||||
HttpContext.Current.Application("GlobalDTMantenimientosTipos") = value
|
HttpContext.Current.Application("GlobalDTMantenimientosTipos") = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
|
|
||||||
#Region "*********** D T - T A L L E R E S ***********"
|
#Region "*********** D T - T A L L E R E S ***********"
|
||||||
|
|
||||||
Property GlobalDTTalleresTipos() As DataTable
|
Property GlobalDTTalleresTipos() As DataTable
|
||||||
Get
|
Get
|
||||||
GlobalDTTalleresTipos = DirectCast(HttpContext.Current.Application("GlobalDTTalleresTipos"), DataTable)
|
GlobalDTTalleresTipos = DirectCast(HttpContext.Current.Application("GlobalDTTalleresTipos"), DataTable)
|
||||||
@@ -3707,12 +3707,12 @@ Public Class SIGFacturacion : Implements IHttpHandler, IRequiresSessionState
|
|||||||
Set(value As DataTable)
|
Set(value As DataTable)
|
||||||
HttpContext.Current.Application("GlobalDTTalleres") = value
|
HttpContext.Current.Application("GlobalDTTalleres") = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
#Region "*********** D T - D I S T R I B U I D O R E S ***********"
|
#Region "*********** D T - D I S T R I B U I D O R E S ***********"
|
||||||
|
|
||||||
Property GlobalDTDistribuidoresTipos() As DataTable
|
Property GlobalDTDistribuidoresTipos() As DataTable
|
||||||
Get
|
Get
|
||||||
GlobalDTDistribuidoresTipos = DirectCast(HttpContext.Current.Application("GlobalDTDistribuidoresTipos"), DataTable)
|
GlobalDTDistribuidoresTipos = DirectCast(HttpContext.Current.Application("GlobalDTDistribuidoresTipos"), DataTable)
|
||||||
@@ -3729,11 +3729,11 @@ Public Class SIGFacturacion : Implements IHttpHandler, IRequiresSessionState
|
|||||||
Set(value As DataTable)
|
Set(value As DataTable)
|
||||||
HttpContext.Current.Application("GlobalDTDistribuidores") = value
|
HttpContext.Current.Application("GlobalDTDistribuidores") = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
|
|
||||||
Property GlobalDTOIRevision(CveEmpresa As Integer) As DataTable
|
Property GlobalDTOIRevision(CveEmpresa As Integer) As DataTable
|
||||||
Get
|
Get
|
||||||
If CveEmpresa <> -1 Then
|
If CveEmpresa <> -1 Then
|
||||||
@@ -3824,8 +3824,8 @@ Public Class SIGFacturacion : Implements IHttpHandler, IRequiresSessionState
|
|||||||
Set(value As DataTable)
|
Set(value As DataTable)
|
||||||
HttpContext.Current.Application("GlobalDTPaqueterias") = value
|
HttpContext.Current.Application("GlobalDTPaqueterias") = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
@@ -2,26 +2,26 @@
|
|||||||
'Option Explicit On
|
'Option Explicit On
|
||||||
'Option Strict On
|
'Option Strict On
|
||||||
|
|
||||||
Imports System
|
Imports System
|
||||||
Imports System.Web
|
Imports System.Web
|
||||||
Imports System.Data
|
Imports System.Data
|
||||||
Imports Newtonsoft.Json.Linq
|
Imports Newtonsoft.Json.Linq
|
||||||
Imports Extensiones
|
Imports Extensiones
|
||||||
Imports System.IO
|
Imports System.IO
|
||||||
Imports Microsoft.AspNet.SignalR
|
Imports Microsoft.AspNet.SignalR
|
||||||
|
|
||||||
Public Class SIGFacturacionCiclica : Implements IHttpHandler, IRequiresSessionState
|
Public Class SIGFacturacionCiclica : Implements IHttpHandler, IRequiresSessionState
|
||||||
Public Sub ProcessRequest(ByVal context As HttpContext) Implements IHttpHandler.ProcessRequest
|
Public Sub ProcessRequest(ByVal context As HttpContext) Implements IHttpHandler.ProcessRequest
|
||||||
context.Response.ContentType = "text/plain"
|
context.Response.ContentType = "text/plain"
|
||||||
Dim retorno = False
|
Dim retorno = False
|
||||||
Try
|
Try
|
||||||
If context.Request("Metodo") IsNot Nothing Then
|
If context.Request("Metodo") IsNot Nothing Then
|
||||||
Select Case context.Request("Metodo")
|
Select Case context.Request("Metodo")
|
||||||
Case "EjecutaServicio"
|
Case "EjecutaServicio"
|
||||||
ModExtensiones.GuardaLogAD("Servicio Ejecutado...........", "LogFacturacionCiclica")
|
ModExtensiones.GuardaLogAD("Servicio Ejecutado...........", "LogFacturacionCiclica")
|
||||||
retorno = IniciaFacturacionMasiva()
|
retorno = IniciaFacturacionMasiva()
|
||||||
End Select
|
End Select
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
@@ -32,65 +32,65 @@ Public Class SIGFacturacionCiclica : Implements IHttpHandler, IRequiresSessionSt
|
|||||||
context.Response.Write("True")
|
context.Response.Write("True")
|
||||||
Else
|
Else
|
||||||
context.Response.Write("False")
|
context.Response.Write("False")
|
||||||
End If
|
End If
|
||||||
End Sub
|
|
||||||
|
|
||||||
Public ReadOnly Property IsReusable() As Boolean Implements IHttpHandler.IsReusable
|
|
||||||
Get
|
|
||||||
Return False
|
|
||||||
End Get
|
|
||||||
End Property
|
|
||||||
|
|
||||||
Private Function Parametros(Cadena As String) As Hashtable
|
|
||||||
Dim P1() As String = Cadena.Split("&"c)
|
|
||||||
Dim Tmp As String
|
|
||||||
Dim P2() As String
|
|
||||||
|
|
||||||
Dim URLParametros As New Hashtable
|
|
||||||
|
|
||||||
For Each Tmp In P1
|
|
||||||
P2 = Tmp.Replace("%26%", "&").Split("="c)
|
|
||||||
URLParametros.Add(P2(0).ToString.ToUpper, P2(1))
|
|
||||||
Next
|
|
||||||
Return URLParametros
|
|
||||||
End Function
|
|
||||||
|
|
||||||
#Region "V A L I D A - D A T O S"
|
|
||||||
Private Function ValidaUsuarioSistema(CveEmpresa As Integer) As Usuario
|
|
||||||
Dim UsuarioActual As Usuario = Nothing
|
|
||||||
Dim ObjUsuarios As New ClsSisUsuarios
|
|
||||||
If ObjUsuarios.GetUsuarios(100) Then
|
|
||||||
If ObjUsuarios.DtResultados.Rows.Count > 0 Then
|
|
||||||
Dim Usuario = ObjUsuarios.DtResultados.Rows(0)("Usuario").ToString()
|
|
||||||
Dim Contrasenia = ObjUsuarios.DtResultados.Rows(0)("Contraseña").ToString()
|
|
||||||
UsuarioActual = ObjUsuarios.ValidaUsuario(Usuario, Contrasenia, IMEI, CveEmpresa)
|
|
||||||
UsuarioActual.CveEmpresa = CveEmpresa
|
|
||||||
CreaObjetoEmpresa(UsuarioActual)
|
|
||||||
End If
|
|
||||||
End If
|
|
||||||
ObjUsuarios.Dispose()
|
|
||||||
Return UsuarioActual
|
|
||||||
End Function
|
|
||||||
Private Sub CreaObjetoEmpresa(ByRef UsuarioActual As Usuario)
|
|
||||||
|
|
||||||
Dim ObjEmpresa As New ClsSisEmpresas()
|
|
||||||
If ObjEmpresa.GetEmpresas(UsuarioActual.CveEmpresa, "-1", "-1", "-1", "-1") Then
|
|
||||||
If ObjEmpresa.GetEmpresasFuncionalidades(UsuarioActual.CveEmpresa) Then
|
|
||||||
Dim dttmp As Data.DataTable = ObjEmpresa.DtResultados
|
|
||||||
|
|
||||||
Dim EmpresasFuncionalidades As New HybridDictionary
|
|
||||||
For Each Row As Data.DataRow In dttmp.Rows
|
|
||||||
EmpresasFuncionalidades.Add(Convert.ToInt32(Row("CveFuncionalidad")), Row("Valor").ToString)
|
|
||||||
Next
|
|
||||||
ObjEmpresa.Empresa.SetFuncionalidades(EmpresasFuncionalidades)
|
|
||||||
End If
|
|
||||||
|
|
||||||
UsuarioActual.Empresa = ObjEmpresa.Empresa
|
|
||||||
End If
|
|
||||||
ObjEmpresa.Dispose()
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#End Region
|
Public ReadOnly Property IsReusable() As Boolean Implements IHttpHandler.IsReusable
|
||||||
|
Get
|
||||||
|
Return False
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Private Function Parametros(Cadena As String) As Hashtable
|
||||||
|
Dim P1() As String = Cadena.Split("&"c)
|
||||||
|
Dim Tmp As String
|
||||||
|
Dim P2() As String
|
||||||
|
|
||||||
|
Dim URLParametros As New Hashtable
|
||||||
|
|
||||||
|
For Each Tmp In P1
|
||||||
|
P2 = Tmp.Replace("%26%", "&").Split("="c)
|
||||||
|
URLParametros.Add(P2(0).ToString.ToUpper, P2(1))
|
||||||
|
Next
|
||||||
|
Return URLParametros
|
||||||
|
End Function
|
||||||
|
|
||||||
|
#Region "V A L I D A - D A T O S"
|
||||||
|
Private Function ValidaUsuarioSistema(CveEmpresa As Integer) As Usuario
|
||||||
|
Dim UsuarioActual As Usuario = Nothing
|
||||||
|
Dim ObjUsuarios As New ClsSisUsuarios
|
||||||
|
If ObjUsuarios.GetUsuarios(100) Then
|
||||||
|
If ObjUsuarios.DtResultados.Rows.Count > 0 Then
|
||||||
|
Dim Usuario = ObjUsuarios.DtResultados.Rows(0)("Usuario").ToString()
|
||||||
|
Dim Contrasenia = ObjUsuarios.DtResultados.Rows(0)("Contraseña").ToString()
|
||||||
|
UsuarioActual = ObjUsuarios.ValidaUsuario(Usuario, Contrasenia, IMEI, CveEmpresa)
|
||||||
|
UsuarioActual.CveEmpresa = CveEmpresa
|
||||||
|
CreaObjetoEmpresa(UsuarioActual)
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
ObjUsuarios.Dispose()
|
||||||
|
Return UsuarioActual
|
||||||
|
End Function
|
||||||
|
Private Sub CreaObjetoEmpresa(ByRef UsuarioActual As Usuario)
|
||||||
|
|
||||||
|
Dim ObjEmpresa As New ClsSisEmpresas()
|
||||||
|
If ObjEmpresa.GetEmpresas(UsuarioActual.CveEmpresa, "-1", "-1", "-1", "-1") Then
|
||||||
|
If ObjEmpresa.GetEmpresasFuncionalidades(UsuarioActual.CveEmpresa) Then
|
||||||
|
Dim dttmp As Data.DataTable = ObjEmpresa.DtResultados
|
||||||
|
|
||||||
|
Dim EmpresasFuncionalidades As New HybridDictionary
|
||||||
|
For Each Row As Data.DataRow In dttmp.Rows
|
||||||
|
EmpresasFuncionalidades.Add(Convert.ToInt32(Row("CveFuncionalidad")), Row("Valor").ToString)
|
||||||
|
Next
|
||||||
|
ObjEmpresa.Empresa.SetFuncionalidades(EmpresasFuncionalidades)
|
||||||
|
End If
|
||||||
|
|
||||||
|
UsuarioActual.Empresa = ObjEmpresa.Empresa
|
||||||
|
End If
|
||||||
|
ObjEmpresa.Dispose()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
#End Region
|
||||||
|
|
||||||
Private Function IniciaFacturacionMasiva() As Boolean
|
Private Function IniciaFacturacionMasiva() As Boolean
|
||||||
Dim Retorno As Boolean = True
|
Dim Retorno As Boolean = True
|
||||||
@@ -101,8 +101,8 @@ Public Class SIGFacturacionCiclica : Implements IHttpHandler, IRequiresSessionSt
|
|||||||
If ObjContratos.CicloComercialGet(-1, -1, -1, -1, FechaRef, FechaRef, -1) Then
|
If ObjContratos.CicloComercialGet(-1, -1, -1, -1, FechaRef, FechaRef, -1) Then
|
||||||
DTCicloComercial = ObjContratos.DtResultados.FiltraParametros("FueFacturado = 0 AND FacturacionCiclicaAutomatico = 1")
|
DTCicloComercial = ObjContratos.DtResultados.FiltraParametros("FueFacturado = 0 AND FacturacionCiclicaAutomatico = 1")
|
||||||
End If
|
End If
|
||||||
End Using
|
End Using
|
||||||
|
|
||||||
If DTCicloComercial IsNot Nothing Then
|
If DTCicloComercial IsNot Nothing Then
|
||||||
For Each RowEmpresa As DataRow In DTCicloComercial.FiltraParametros("", DistinctColumns:={"CveEmpresa"}).Rows
|
For Each RowEmpresa As DataRow In DTCicloComercial.FiltraParametros("", DistinctColumns:={"CveEmpresa"}).Rows
|
||||||
Dim CveEmpresa As Integer = RowEmpresa("CveEmpresa").ToString().ToEntero()
|
Dim CveEmpresa As Integer = RowEmpresa("CveEmpresa").ToString().ToEntero()
|
||||||
@@ -113,12 +113,12 @@ Public Class SIGFacturacionCiclica : Implements IHttpHandler, IRequiresSessionSt
|
|||||||
Next
|
Next
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Private Function EjecutarFacturacionMasiva(UsuarioActual As Usuario, DTCicloComercial As DataTable) As Boolean
|
Private Function EjecutarFacturacionMasiva(UsuarioActual As Usuario, DTCicloComercial As DataTable) As Boolean
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
If DTCicloComercial IsNot Nothing Then
|
If DTCicloComercial IsNot Nothing Then
|
||||||
For Each Row As DataRow In DTCicloComercial.Rows
|
For Each Row As DataRow In DTCicloComercial.Rows
|
||||||
|
|
||||||
@@ -152,36 +152,36 @@ Public Class SIGFacturacionCiclica : Implements IHttpHandler, IRequiresSessionSt
|
|||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Private Function EmitirImprimir(UsuarioActual As Usuario, RowCiclo As DataRow) As Modelos.Factura.MMensajeFactura
|
Private Function EmitirImprimir(UsuarioActual As Usuario, RowCiclo As DataRow) As Modelos.Factura.MMensajeFactura
|
||||||
Dim Resp As New Modelos.Factura.MMensajeFactura
|
Dim Resp As New Modelos.Factura.MMensajeFactura
|
||||||
|
|
||||||
Dim ObjFactura = CreaObjetosVenta(UsuarioActual, RowCiclo)
|
Dim ObjFactura = CreaObjetosVenta(UsuarioActual, RowCiclo)
|
||||||
|
|
||||||
If ObjFactura Is Nothing Then
|
If ObjFactura Is Nothing Then
|
||||||
Resp.Mensajes.Add("Ocurrió un error al procesar los datos de la Venta ")
|
Resp.Mensajes.Add("Ocurrió un error al procesar los datos de la Venta ")
|
||||||
ObjFactura = Nothing
|
ObjFactura = Nothing
|
||||||
Return Resp
|
Return Resp
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If ObjFactura.CveCliente > 0 Then
|
If ObjFactura.CveCliente > 0 Then
|
||||||
If ObjFactura.DtDetalle.Rows.Count > 0 Then
|
If ObjFactura.DtDetalle.Rows.Count > 0 Then
|
||||||
Resp = ObjFactura.EmitirFactura()
|
Resp = ObjFactura.EmitirFactura()
|
||||||
Else
|
Else
|
||||||
Resp.Mensajes.Add("No se pudo completar facturación por que no se encontraron partidas ")
|
Resp.Mensajes.Add("No se pudo completar facturación por que no se encontraron partidas ")
|
||||||
End If
|
End If
|
||||||
Else
|
Else
|
||||||
Resp.Mensajes.Add("No se pudo completar facturación por que no se encontraro el cliente ")
|
Resp.Mensajes.Add("No se pudo completar facturación por que no se encontraro el cliente ")
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Return Resp
|
Return Resp
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
#Region "P R E P A R A - V E N T A"
|
#Region "P R E P A R A - V E N T A"
|
||||||
Private Function CreaDTVentas() As DataTable
|
Private Function CreaDTVentas() As DataTable
|
||||||
Dim TmpDT = New DataTable
|
Dim TmpDT = New DataTable
|
||||||
TmpDT.Columns.Add("CveVenta", GetType(Integer))
|
TmpDT.Columns.Add("CveVenta", GetType(Integer))
|
||||||
TmpDT.Columns.Add("Consec", GetType(Integer))
|
TmpDT.Columns.Add("Consec", GetType(Integer))
|
||||||
TmpDT.Columns.Add("Cantidad", GetType(Decimal))
|
TmpDT.Columns.Add("Cantidad", GetType(Decimal))
|
||||||
@@ -268,8 +268,8 @@ Public Class SIGFacturacionCiclica : Implements IHttpHandler, IRequiresSessionSt
|
|||||||
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))
|
||||||
|
|
||||||
Return TmpDT
|
Return TmpDT
|
||||||
End Function
|
End Function
|
||||||
Private Function CreaObjetosVenta(UsuarioActual As Usuario, DR As DataRow) As Modelos.Factura
|
Private Function CreaObjetosVenta(UsuarioActual As Usuario, DR As DataRow) As Modelos.Factura
|
||||||
Dim ObjFactura = New Modelos.Factura(UsuarioActual)
|
Dim ObjFactura = New Modelos.Factura(UsuarioActual)
|
||||||
Try
|
Try
|
||||||
@@ -453,134 +453,134 @@ Public Class SIGFacturacionCiclica : Implements IHttpHandler, IRequiresSessionSt
|
|||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
ObjFactura = Nothing
|
ObjFactura = Nothing
|
||||||
OnError("Ocurrió un error al generar la factura", ex)
|
OnError("Ocurrió un error al generar la factura", ex)
|
||||||
End Try
|
End Try
|
||||||
|
|
||||||
|
|
||||||
Return ObjFactura
|
Return ObjFactura
|
||||||
|
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Private Function PreParaTimbre(Obj As Modelos.Factura, UsuarioActual As Usuario) As CFDITimbre
|
Private Function PreParaTimbre(Obj As Modelos.Factura, UsuarioActual As Usuario) As CFDITimbre
|
||||||
Dim Timbre As New CFDITimbre
|
Dim Timbre As New CFDITimbre
|
||||||
Timbre.Comprobante.TipoComprobante = If(Obj.TipoDocto.Contiene("Ing", "Ant"), "I", If(Obj.TipoDocto.Contiene("Egs", "Dev"), "E", ""))
|
Timbre.Comprobante.TipoComprobante = If(Obj.TipoDocto.Contiene("Ing", "Ant"), "I", If(Obj.TipoDocto.Contiene("Egs", "Dev"), "E", ""))
|
||||||
Timbre.Comprobante.Folio = Obj.Folio.ToString
|
Timbre.Comprobante.Folio = Obj.Folio.ToString
|
||||||
Timbre.Comprobante.Serie = Obj.Serie
|
Timbre.Comprobante.Serie = Obj.Serie
|
||||||
Timbre.Comprobante.Fecha = Obj.FechaCP
|
Timbre.Comprobante.Fecha = Obj.FechaCP
|
||||||
Timbre.Comprobante.FormadePago = Obj.FormaPagoSAT33
|
Timbre.Comprobante.FormadePago = Obj.FormaPagoSAT33
|
||||||
Timbre.Comprobante.CondicionesdePago = Obj.FormaPago33
|
Timbre.Comprobante.CondicionesdePago = Obj.FormaPago33
|
||||||
Timbre.Comprobante.MetodoPago = Obj.ClaveMetodoPagoSAT
|
Timbre.Comprobante.MetodoPago = Obj.ClaveMetodoPagoSAT
|
||||||
Timbre.Comprobante.Subtotal = Obj.SubTotal
|
Timbre.Comprobante.Subtotal = Obj.SubTotal
|
||||||
Timbre.Comprobante.Descuentos = Obj.Descuento
|
Timbre.Comprobante.Descuentos = Obj.Descuento
|
||||||
Timbre.Comprobante.Moneda = Obj.MonedaSAT
|
Timbre.Comprobante.Moneda = Obj.MonedaSAT
|
||||||
Timbre.Comprobante.TipoCambio = If(Obj.CveMoneda = 1, "1", Obj.TipoCambio.ToString)
|
Timbre.Comprobante.TipoCambio = If(Obj.CveMoneda = 1, "1", Obj.TipoCambio.ToString)
|
||||||
Timbre.Comprobante.Total = Obj.Total
|
Timbre.Comprobante.Total = Obj.Total
|
||||||
|
|
||||||
Timbre.Comprobante.LugarExpedicion = Obj.SubProyecto.CP
|
Timbre.Comprobante.LugarExpedicion = Obj.SubProyecto.CP
|
||||||
Timbre.Comprobante.Confirmacion = ""
|
Timbre.Comprobante.Confirmacion = ""
|
||||||
|
|
||||||
Timbre.Receptor.RFC = Obj.Cliente.RFC
|
Timbre.Receptor.RFC = Obj.Cliente.RFC
|
||||||
Timbre.Receptor.Nombre = Obj.Cliente.Nombre
|
Timbre.Receptor.Nombre = Obj.Cliente.Nombre
|
||||||
Timbre.Receptor.ResidenciaFiscal = ""
|
Timbre.Receptor.ResidenciaFiscal = ""
|
||||||
Timbre.Receptor.NumeroRegistroTributario = ""
|
Timbre.Receptor.NumeroRegistroTributario = ""
|
||||||
Timbre.Receptor.UsoCFDI = Obj.ClaveUsoCFDI
|
Timbre.Receptor.UsoCFDI = Obj.ClaveUsoCFDI
|
||||||
|
|
||||||
|
|
||||||
If Obj.CveTipoRelacion > 0 Then
|
If Obj.CveTipoRelacion > 0 Then
|
||||||
Select Case Obj.CveTipoRelacion
|
Select Case Obj.CveTipoRelacion
|
||||||
Case 1
|
Case 1
|
||||||
Timbre.CFDIRelacionados.TipoRelacion = "01"
|
Timbre.CFDIRelacionados.TipoRelacion = "01"
|
||||||
Timbre.CFDIRelacionados.TipoRelacionTexto = "01-Nota de Crédito aplicada a Ingreso"
|
Timbre.CFDIRelacionados.TipoRelacionTexto = "01-Nota de Crédito aplicada a Ingreso"
|
||||||
Case 2
|
Case 2
|
||||||
Timbre.CFDIRelacionados.TipoRelacion = "02"
|
Timbre.CFDIRelacionados.TipoRelacion = "02"
|
||||||
Timbre.CFDIRelacionados.TipoRelacionTexto = "02-Nota de débito de los documentos relacionados"
|
Timbre.CFDIRelacionados.TipoRelacionTexto = "02-Nota de débito de los documentos relacionados"
|
||||||
Case 3
|
Case 3
|
||||||
Timbre.CFDIRelacionados.TipoRelacion = "03"
|
Timbre.CFDIRelacionados.TipoRelacion = "03"
|
||||||
Timbre.CFDIRelacionados.TipoRelacionTexto = "03-Devolución aplicada a Ingreso"
|
Timbre.CFDIRelacionados.TipoRelacionTexto = "03-Devolución aplicada a Ingreso"
|
||||||
Case 4
|
Case 4
|
||||||
Timbre.CFDIRelacionados.TipoRelacion = "04"
|
Timbre.CFDIRelacionados.TipoRelacion = "04"
|
||||||
Timbre.CFDIRelacionados.TipoRelacionTexto = "04-Refacturación de Ingreso"
|
Timbre.CFDIRelacionados.TipoRelacionTexto = "04-Refacturación de Ingreso"
|
||||||
Case 7
|
Case 7
|
||||||
Timbre.CFDIRelacionados.TipoRelacion = "07"
|
Timbre.CFDIRelacionados.TipoRelacion = "07"
|
||||||
Timbre.CFDIRelacionados.TipoRelacionTexto = "07-CFDI por aplicación de anticipo"
|
Timbre.CFDIRelacionados.TipoRelacionTexto = "07-CFDI por aplicación de anticipo"
|
||||||
Case 8
|
Case 8
|
||||||
Timbre.CFDIRelacionados.TipoRelacion = "08"
|
Timbre.CFDIRelacionados.TipoRelacion = "08"
|
||||||
Timbre.CFDIRelacionados.TipoRelacionTexto = "08-Factura generada por pagos en parcialidades "
|
Timbre.CFDIRelacionados.TipoRelacionTexto = "08-Factura generada por pagos en parcialidades "
|
||||||
Case 9
|
Case 9
|
||||||
Timbre.CFDIRelacionados.TipoRelacion = "09"
|
Timbre.CFDIRelacionados.TipoRelacion = "09"
|
||||||
Timbre.CFDIRelacionados.TipoRelacionTexto = "09-Factura generada por pagos diferidos"
|
Timbre.CFDIRelacionados.TipoRelacionTexto = "09-Factura generada por pagos diferidos"
|
||||||
|
|
||||||
End Select
|
End Select
|
||||||
|
|
||||||
'If DtVentasNC IsNot Nothing AndAlso DtVentasNC.Rows.Count > 0 Then
|
'If DtVentasNC IsNot Nothing AndAlso DtVentasNC.Rows.Count > 0 Then
|
||||||
' For Each Dr As DataRow In DtVentasNC.Rows
|
' For Each Dr As DataRow In DtVentasNC.Rows
|
||||||
' Timbre.CFDIRelacionados.UUID.Add(Dr("FolioFiscal").ToString)
|
' Timbre.CFDIRelacionados.UUID.Add(Dr("FolioFiscal").ToString)
|
||||||
' Next
|
' Next
|
||||||
'Else
|
'Else
|
||||||
' Timbre.CFDIRelacionados.UUID.Add(HdnFolioFiscalNC.Value)
|
' Timbre.CFDIRelacionados.UUID.Add(HdnFolioFiscalNC.Value)
|
||||||
'End If
|
'End If
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
Dim totSubTotal As Decimal = Obj.SubTotal
|
Dim totSubTotal As Decimal = Obj.SubTotal
|
||||||
Dim totIVA As Decimal = Obj.IVA
|
Dim totIVA As Decimal = Obj.IVA
|
||||||
Dim totRetIVA As Decimal = Obj.RetIVA
|
Dim totRetIVA As Decimal = Obj.RetIVA
|
||||||
Dim totRetISR As Decimal = Obj.RetISR
|
Dim totRetISR As Decimal = Obj.RetISR
|
||||||
Dim i As Integer = 1
|
Dim i As Integer = 1
|
||||||
|
|
||||||
'detalles
|
'detalles
|
||||||
Dim tPS As String = ""
|
Dim tPS As String = ""
|
||||||
|
|
||||||
For Each drr As DataRow In Obj.DtDetalle.Rows
|
For Each drr As DataRow In Obj.DtDetalle.Rows
|
||||||
If drr("PS").ToString.Length = 1 Then
|
If drr("PS").ToString.Length = 1 Then
|
||||||
tPS = drr("Obs").ToString
|
tPS = drr("Obs").ToString
|
||||||
Else
|
Else
|
||||||
If drr("PS").ToString.Length = 0 Then
|
If drr("PS").ToString.Length = 0 Then
|
||||||
tPS = ""
|
tPS = ""
|
||||||
Else
|
Else
|
||||||
tPS = String.Format("{0} {1}", drr("PS"), drr("Obs"))
|
tPS = String.Format("{0} {1}", drr("PS"), drr("Obs"))
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
'condicionante, especial
|
'condicionante, especial
|
||||||
If UsuarioActual.CveEmpresa = 15 Then drr("UM") = "" ' les comentan que no debe de ir la etiqueta de "unidad" en el producto
|
If UsuarioActual.CveEmpresa = 15 Then drr("UM") = "" ' les comentan que no debe de ir la etiqueta de "unidad" en el producto
|
||||||
|
|
||||||
Dim concepto As New CFDIConceptos With {.Cantidad = drr("Cantidad").ToString.ToDecimal,
|
Dim concepto As New CFDIConceptos With {.Cantidad = drr("Cantidad").ToString.ToDecimal,
|
||||||
.Descripcion = tPS,
|
.Descripcion = tPS,
|
||||||
.ValorUnitario = drr("PU").ToString.ToDecimal,
|
.ValorUnitario = drr("PU").ToString.ToDecimal,
|
||||||
.Importe = drr("TotalImporte").ToString.ToDecimal,
|
.Importe = drr("TotalImporte").ToString.ToDecimal,
|
||||||
.Descuento = drr("Descuento").ToString.ToDecimal,
|
.Descuento = drr("Descuento").ToString.ToDecimal,
|
||||||
.Unidad = drr("UM").ToString,
|
.Unidad = drr("UM").ToString,
|
||||||
.ClaveUnidad = drr("SATClaveUM").ToString,
|
.ClaveUnidad = drr("SATClaveUM").ToString,
|
||||||
.ClaveProdServ = drr("SATClaveProdServ").ToString,
|
.ClaveProdServ = drr("SATClaveProdServ").ToString,
|
||||||
.Noidentificacion = drr("Noidentificacion").ToString,
|
.Noidentificacion = drr("Noidentificacion").ToString,
|
||||||
.CuentaPredial = drr("CuentaPredial").ToString}
|
.CuentaPredial = drr("CuentaPredial").ToString}
|
||||||
'verifica suma subtotales
|
'verifica suma subtotales
|
||||||
If i = Obj.DtDetalle.Rows.Count AndAlso totSubTotal <> concepto.Importe Then 'proceso de ajusta de decimales
|
If i = Obj.DtDetalle.Rows.Count AndAlso totSubTotal <> concepto.Importe Then 'proceso de ajusta de decimales
|
||||||
concepto.Importe = totSubTotal
|
concepto.Importe = totSubTotal
|
||||||
End If
|
End If
|
||||||
totSubTotal = totSubTotal - concepto.Importe
|
totSubTotal = totSubTotal - concepto.Importe
|
||||||
|
|
||||||
'siempre estaremos agregando el iva, auqnue sea en importe cero o tasa cero, para que se emita la factura
|
'siempre estaremos agregando el iva, auqnue sea en importe cero o tasa cero, para que se emita la factura
|
||||||
' If drr("ImporteIVA").ToString.ToDouble > 0 Then
|
' If drr("ImporteIVA").ToString.ToDouble > 0 Then
|
||||||
concepto.Impuestos.Add(New CFDIConceptosImpuestos With {.TrasladooRetencion = "T", .Base = concepto.Importe - concepto.Descuento, .TasaOCuota = drr("PorcentajeIVA").ToString.ToDecimal, .Impuesto = "002", .Importe = drr("ImporteIVA").ToString.ToDecimal})
|
concepto.Impuestos.Add(New CFDIConceptosImpuestos With {.TrasladooRetencion = "T", .Base = concepto.Importe - concepto.Descuento, .TasaOCuota = drr("PorcentajeIVA").ToString.ToDecimal, .Impuesto = "002", .Importe = drr("ImporteIVA").ToString.ToDecimal})
|
||||||
' End If
|
' End If
|
||||||
|
|
||||||
If drr("ImporteIEPS").ToString.ToDouble > 0 Then
|
If drr("ImporteIEPS").ToString.ToDouble > 0 Then
|
||||||
concepto.Impuestos.Add(New CFDIConceptosImpuestos With {.TrasladooRetencion = "T", .Base = concepto.Importe - concepto.Descuento, .TasaOCuota = drr("PorcentajeIEPS").ToString.ToDecimal, .Impuesto = "003", .Importe = drr("ImporteIEPS").ToString.ToDecimal})
|
concepto.Impuestos.Add(New CFDIConceptosImpuestos With {.TrasladooRetencion = "T", .Base = concepto.Importe - concepto.Descuento, .TasaOCuota = drr("PorcentajeIEPS").ToString.ToDecimal, .Impuesto = "003", .Importe = drr("ImporteIEPS").ToString.ToDecimal})
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If drr("ImporteRetIVA").ToString.ToDouble > 0 Then 'si hay retenciones
|
If drr("ImporteRetIVA").ToString.ToDouble > 0 Then 'si hay retenciones
|
||||||
concepto.Impuestos.Add(New CFDIConceptosImpuestos With {.TrasladooRetencion = "R", .Base = concepto.Importe - concepto.Descuento, .TasaOCuota = drr("PorcentajeRetIVA").ToString.ToDecimal, .Impuesto = "002", .Importe = drr("ImporteRetIVA").ToString.ToDecimal})
|
concepto.Impuestos.Add(New CFDIConceptosImpuestos With {.TrasladooRetencion = "R", .Base = concepto.Importe - concepto.Descuento, .TasaOCuota = drr("PorcentajeRetIVA").ToString.ToDecimal, .Impuesto = "002", .Importe = drr("ImporteRetIVA").ToString.ToDecimal})
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If drr("ImporteRetISR").ToString.ToDouble > 0 Then 'retención de ISR
|
If drr("ImporteRetISR").ToString.ToDouble > 0 Then 'retención de ISR
|
||||||
concepto.Impuestos.Add(New CFDIConceptosImpuestos With {.TrasladooRetencion = "R", .Base = concepto.Importe - concepto.Descuento, .TasaOCuota = drr("PorcentajeRetISR").ToString.ToDecimal, .Impuesto = "001", .Importe = drr("ImporteRetISR").ToString.ToDecimal})
|
concepto.Impuestos.Add(New CFDIConceptosImpuestos With {.TrasladooRetencion = "R", .Base = concepto.Importe - concepto.Descuento, .TasaOCuota = drr("PorcentajeRetISR").ToString.ToDecimal, .Impuesto = "001", .Importe = drr("ImporteRetISR").ToString.ToDecimal})
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Timbre.Conceptos.Add(concepto)
|
Timbre.Conceptos.Add(concepto)
|
||||||
i += 1
|
i += 1
|
||||||
Next
|
Next
|
||||||
Return Timbre
|
Return Timbre
|
||||||
End Function
|
End Function
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
|
|||||||
@@ -551,8 +551,9 @@ Partial Class Bancos_ConciliacionesBancariasaspx
|
|||||||
End Sub
|
End Sub
|
||||||
Protected Sub GeneraPDF(Formato As String)
|
Protected Sub GeneraPDF(Formato As String)
|
||||||
Dim params As List(Of ReportParameter) = New List(Of ReportParameter)()
|
Dim params As List(Of ReportParameter) = New List(Of ReportParameter)()
|
||||||
|
|
||||||
Dim Imagen As System.IO.FileInfo = New System.IO.FileInfo(String.Format("{0}/Logo.png", UsuarioActual.Empresa.Ruta))
|
Dim Imagen As System.IO.FileInfo = New System.IO.FileInfo(String.Format("{0}/Logo.png", UsuarioActual.Empresa.Ruta))
|
||||||
Dim logouri = String.Format("{0}://{1}:{2}/Empresas/{3}/Logo.png", Request.Url.Scheme, Request.Url.Host, Request.Url.Port, UsuarioActual.CveEmpresa)
|
|
||||||
params.Add(New ReportParameter("NombreEmpresa", UsuarioActual.Empresa.Empresa))
|
params.Add(New ReportParameter("NombreEmpresa", UsuarioActual.Empresa.Empresa))
|
||||||
params.Add(New ReportParameter("UsuarioImprimio", UsuarioActual.Nombre))
|
params.Add(New ReportParameter("UsuarioImprimio", UsuarioActual.Nombre))
|
||||||
params.Add(New ReportParameter("FechaImpresion", DateTime.Now.ToString()))
|
params.Add(New ReportParameter("FechaImpresion", DateTime.Now.ToString()))
|
||||||
@@ -662,7 +663,7 @@ Partial Class Bancos_ConciliacionesBancariasaspx
|
|||||||
params.Add(New ReportParameter("Filtros", Filtros))
|
params.Add(New ReportParameter("Filtros", Filtros))
|
||||||
|
|
||||||
If Imagen.Exists Then
|
If Imagen.Exists Then
|
||||||
params.Add(New ReportParameter("LogoPath", logouri))
|
params.Add(New ReportParameter("LogoPath", $"file://{Imagen.FullName}"))
|
||||||
Else
|
Else
|
||||||
params.Add(New ReportParameter("LogoPath", ""))
|
params.Add(New ReportParameter("LogoPath", ""))
|
||||||
End If
|
End If
|
||||||
|
|||||||
@@ -1594,6 +1594,8 @@ Partial Class Compras_Compras
|
|||||||
NCSeleccionFacturasRelacionadas(UUIDSList)
|
NCSeleccionFacturasRelacionadas(UUIDSList)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
'SE OCUPAN AFUERA DEL POSTBACK ??
|
'SE OCUPAN AFUERA DEL POSTBACK ??
|
||||||
@@ -10766,6 +10768,19 @@ Partial Class Compras_Compras
|
|||||||
'e.Row.FCDropDownList("ddlEAlmacen").SelectedValue = If(e.Row.DBCampo("CveAlmacen").ToEntero <= 0, "-1", e.Row.DBCampo("CveAlmacen"))
|
'e.Row.FCDropDownList("ddlEAlmacen").SelectedValue = If(e.Row.DBCampo("CveAlmacen").ToEntero <= 0, "-1", e.Row.DBCampo("CveAlmacen"))
|
||||||
If UsuarioActual.Empresa.UsaAC Then e.Row.FCDropDownList("ddlEAlmacen").Enabled = False
|
If UsuarioActual.Empresa.UsaAC Then e.Row.FCDropDownList("ddlEAlmacen").Enabled = False
|
||||||
|
|
||||||
|
|
||||||
|
If UsuarioActual.Empresa.Funcionalidad(567) = "1" Then
|
||||||
|
If e.Row.FCDropDownList("ddlEAlmacen").Items.Count > 1 Then
|
||||||
|
|
||||||
|
e.Row.FCDropDownList("ddlEAlmacen").SelectedIndex = 1
|
||||||
|
e.Row.FCCheckBox("cbInv").Checked = True
|
||||||
|
|
||||||
|
ddlAlmacenConsignacion_SelectedIndexChanged(e.Row.FCDropDownList("ddlEAlmacen"), Nothing)
|
||||||
|
CambiaTotalDevengar(Nothing, Nothing)
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
If Not e.Row.DBCampo("CveMetodoInventario").ToString = "5" Then
|
If Not e.Row.DBCampo("CveMetodoInventario").ToString = "5" Then
|
||||||
e.Row.FCTextBox("TbCantidad").Attributes.Add("onblur", String.Format("ValidarCantidad(this,{0})", If(e.Row.DBCampo("CantidadF").ToString.ToDecimal > e.Row.DBCampo("Cantidad").ToString.ToDecimal, e.Row.DBCampo("Cantidad"), e.Row.DBCampo("CantidadF"))))
|
e.Row.FCTextBox("TbCantidad").Attributes.Add("onblur", String.Format("ValidarCantidad(this,{0})", If(e.Row.DBCampo("CantidadF").ToString.ToDecimal > e.Row.DBCampo("Cantidad").ToString.ToDecimal, e.Row.DBCampo("Cantidad"), e.Row.DBCampo("CantidadF"))))
|
||||||
e.Row.FCTextBox("TbCantidad").Text = If(e.Row.DBCampo("CantidadF").ToString.ToDecimal > e.Row.DBCampo("Cantidad").ToString.ToDecimal, e.Row.DBCampo("Cantidad"), e.Row.DBCampo("CantidadF"))
|
e.Row.FCTextBox("TbCantidad").Text = If(e.Row.DBCampo("CantidadF").ToString.ToDecimal > e.Row.DBCampo("Cantidad").ToString.ToDecimal, e.Row.DBCampo("Cantidad"), e.Row.DBCampo("CantidadF"))
|
||||||
|
|||||||
@@ -3580,7 +3580,13 @@ Partial Class PopUpVerFactura
|
|||||||
If (UsuarioActual.CveEmpresa = 72) Then
|
If (UsuarioActual.CveEmpresa = 72) Then
|
||||||
params.Add(New ReportParameter("DomicilioFiscal", DomicilioFiscalCompu))
|
params.Add(New ReportParameter("DomicilioFiscal", DomicilioFiscalCompu))
|
||||||
End If
|
End If
|
||||||
ImprimirPDF("Empresas/Grales/Formatos/EntradaSalida.rdlc", DtMovimientos, params, String.Format("Entrada de Almacen - {0}", Folio.ToString), RDSName:="DsInventarios")
|
|
||||||
|
If UsuarioActual.CveEmpresa.Contiene(172, 173) Then
|
||||||
|
ImprimirPDFStimulsoft("Empresas/Grales/Formatos/EntradaSalida.mrt", DtMovimientos, params, String.Format("Entrada de Almacen - {0}", Folio.ToString))
|
||||||
|
Else
|
||||||
|
ImprimirPDF("Empresas/Grales/Formatos/EntradaSalida.rdlc", DtMovimientos, params, String.Format("Entrada de Almacen - {0}", Folio.ToString), RDSName:="DsInventarios")
|
||||||
|
End If
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Case 3, 16, 37, 40 ' S A L I D A S
|
Case 3, 16, 37, 40 ' S A L I D A S
|
||||||
@@ -3843,7 +3849,11 @@ Partial Class PopUpVerFactura
|
|||||||
If A.Exists Then
|
If A.Exists Then
|
||||||
ImprimirPDF(UsuarioActual.Empresa.Ruta & "Formatos/EntradaSalida.rdlc", DtMovimientos, params, String.Format("Salida de Almacen - {0}", Folio.ToString), RDSName:="DsInventarios")
|
ImprimirPDF(UsuarioActual.Empresa.Ruta & "Formatos/EntradaSalida.rdlc", DtMovimientos, params, String.Format("Salida de Almacen - {0}", Folio.ToString), RDSName:="DsInventarios")
|
||||||
Else
|
Else
|
||||||
ImprimirPDF("Empresas/Grales/Formatos/EntradaSalida.rdlc", DtMovimientos, params, String.Format("Salida de Almacen - {0}", Folio.ToString), RDSName:="DsInventarios")
|
If UsuarioActual.CveEmpresa.Contiene(172, 173) Then
|
||||||
|
ImprimirPDFStimulsoft("Empresas/Grales/Formatos/EntradaSalida.mrt", DtMovimientos, params, String.Format("Salida de Almacen - {0}", Folio.ToString))
|
||||||
|
Else
|
||||||
|
ImprimirPDF("Empresas/Grales/Formatos/EntradaSalida.rdlc", DtMovimientos, params, String.Format("Salida de Almacen - {0}", Folio.ToString), RDSName:="DsInventarios")
|
||||||
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|||||||
@@ -1,220 +1,213 @@
|
|||||||
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="RepAnexoCatalogo.aspx.vb" Inherits="AC2_RepAnexoCatalogo" EnableEventValidation="false" %>
|
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="RepAnexoCatalogo.aspx.vb" Inherits="AC2_RepAnexoCatalogo" EnableEventValidation="false" %>
|
||||||
|
|
||||||
<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-VH {
|
.table-VH {
|
||||||
padding-top: 58px;
|
padding-top: 58px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content3" ContentPlaceHolderID="HB" runat="Server">
|
<asp:Content ID="Content3" ContentPlaceHolderID="HB" runat="Server">
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content4" ContentPlaceHolderID="E" runat="Server">
|
<asp:Content ID="Content4" ContentPlaceHolderID="E" runat="Server">
|
||||||
<asp:Label runat="server" ID="LbTitulo" Text="Anexo del Catálogo"></asp:Label>
|
<asp:Label runat="server" ID="LbTitulo" Text="Anexo del Catálogo"></asp:Label>
|
||||||
</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="LnkExcel" runat="server"><i class="fa fa-file-excel-o" style="font-weight:bold;"></i> Excel</asp:LinkButton>
|
<asp:LinkButton ID="LnkExcel" runat="server"><i class="fa fa-file-excel-o" style="font-weight:bold;"></i> Excel</asp:LinkButton>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<asp:LinkButton ID="LnkImprimir" runat="server"><i class="fa fa-file-pdf-o" style="font-weight:bold;"></i> PDF</asp:LinkButton>
|
<asp:LinkButton ID="LnkImprimir" runat="server"><i class="fa fa-file-pdf-o" style="font-weight:bold;"></i> PDF</asp:LinkButton>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content6" ContentPlaceHolderID="C" runat="Server">
|
<asp:Content ID="Content6" ContentPlaceHolderID="C" runat="Server">
|
||||||
|
|
||||||
<asp:UpdatePanel ID="UPFiltros" runat="server" UpdateMode="Conditional">
|
<asp:UpdatePanel ID="UPFiltros" runat="server" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<div class="portlet solid grey-cascade portlet-filter">
|
<div class="portlet solid grey-cascade portlet-filter">
|
||||||
<div class="portlet-title portlet-filterT smalltitle magindate">
|
<div class="portlet-title portlet-filterT smalltitle">
|
||||||
<div class="tools">
|
<div class="tools">
|
||||||
<asp:Button ID="BtnConsultar" runat="server" Text="Consultar" CssClass="btn btn-default" OnClick="BtnConsultar_Click" ValidationGroup="GrpConsulta" />
|
<asp:Button ID="BtnConsultar" runat="server" Text="Consultar" CssClass="btn btn-default" OnClick="BtnConsultar_Click" ValidationGroup="Valida" />
|
||||||
<a href="javascript:;" data-idchekbox="<%= chkexpand.ClientID%>" class=" <%= IIf(chkexpand.Checked = True, "collapse", "expand")%>"></a><%--class="expand"--%>
|
<a href="javascript:;" data-idchekbox="<%= chkexpand.ClientID%>" class=" <%= IIf(chkexpand.Checked = True, "collapse", "expand")%>"></a><%--class="expand"--%>
|
||||||
<asp:CheckBox ID="chkexpand" CssClass="hidden" runat="server" />
|
<asp:CheckBox ID="chkexpand" CssClass="hidden" runat="server" />
|
||||||
</div>
|
</div>
|
||||||
<div class="titlefiltros caption ">
|
<div class="titlefiltros caption ">
|
||||||
<%--<div class="row">--%>
|
<%--<div class="row">--%>
|
||||||
<ul class="list-inline text-size-12">
|
<div class="row">
|
||||||
<li>F. I.</li>
|
<div class="col-md-1 truncate">
|
||||||
<li style="margin-right: 30px">
|
Cuenta
|
||||||
|
</div>
|
||||||
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 80px !important; padding: 0px;">
|
<div class="col-md-2">
|
||||||
<asp:TextBox ID="TxtFechaDel" runat="server" CssClass="form-control" Width="99%" CausesValidation="true" MaxLength="10" Height="24px"></asp:TextBox>
|
<asp:DropDownList ID="DdlCuentas" runat="server" AppendDataBoundItems="true" DataTextField="CtaCodigo" DataValueField="CveCuenta" CssClass="form-control input-sm select2me" Enabled="true" Width="100%">
|
||||||
<span class="input-group-btn ">
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||||||
<asp:LinkButton ID="ImgCalendarioDel" class="btn default " Text="<i class='fa fa-calendar'></i>" Height="24px" runat="server"></asp:LinkButton>
|
</asp:DropDownList>
|
||||||
</span>
|
|
||||||
<ajax:MaskedEditExtender ID="MEEFechaDel" runat="server" TargetControlID="TxtFechaDel" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
<asp:RequiredFieldValidator ID="RFVDdlCuentas" runat="server" InitialValue="-1" ControlToValidate="DdlCuentas" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Cuenta''</b> es necesario, por favor ingréselo." ValidationGroup="GrpConsulta"></asp:RequiredFieldValidator>
|
||||||
<ajax:CalendarExtender ID="CalendarioDel" runat="server" TargetControlID="TxtFechaDel" PopupButtonID="ImgCalendarioDel" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
<ajax:ValidatorCalloutExtender ID="CERFVDdlCuentas" runat="server" HighlightCssClass="vco" TargetControlID="RFVDdlCuentas" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||||
|
</div>
|
||||||
<asp:CompareValidator ID="CVTxtFechaDel" runat="server" ControlToValidate="TxtFechaDel" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha Inicio''</b> no tiene el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="GrpConsulta"></asp:CompareValidator>
|
<div class="col-md-1 truncate">
|
||||||
<ajax:ValidatorCalloutExtender ID="CECVTxtFechaDel" runat="server" HighlightCssClass="vco" TargetControlID="CVTxtFechaDel" Width="350px"></ajax:ValidatorCalloutExtender>
|
Tipo Movto
|
||||||
|
</div>
|
||||||
</div>
|
<div class="col-md-2 truncate">
|
||||||
|
<asp:DropDownList ID="DdlCuenta" runat="server" DataTextField="Cuenta" DataValueField="CveCuenta" TabIndex="4" CssClass="form-control input-sm select2me" Width="100%">
|
||||||
</li>
|
<asp:ListItem Text="Todos" Value="-1"></asp:ListItem>
|
||||||
<li>F. F. </li>
|
<asp:ListItem Text="Con movimientos" Value="1"></asp:ListItem>
|
||||||
<li style="margin-right: 30px">
|
<asp:ListItem Text="Saldo actual no igual a cero" Value="2"></asp:ListItem>
|
||||||
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 80px !important; padding: 0px;">
|
<asp:ListItem Text="Con movimientos y saldo no igual a cero" Value="3"></asp:ListItem>
|
||||||
<asp:TextBox ID="TxtFechaAl" runat="server" CssClass="form-control" Width="99%" CausesValidation="true" MaxLength="10" Height="24px"></asp:TextBox>
|
<asp:ListItem Text="Con movimientos o saldo no igual a cero" Value="4"></asp:ListItem>
|
||||||
<span class="input-group-btn ">
|
</asp:DropDownList>
|
||||||
<asp:LinkButton ID="ImgCalendarioAl" class="btn default " Text="<i class='fa fa-calendar'></i>" Height="24px" runat="server"></asp:LinkButton>
|
</div>
|
||||||
</span>
|
<div class="col-md-1 truncate">
|
||||||
<ajax:MaskedEditExtender ID="MEEFechaAl" runat="server" TargetControlID="TxtFechaAl" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
Fecha Inicio:
|
||||||
<ajax:CalendarExtender ID="CalendarioAl" runat="server" TargetControlID="TxtFechaAl" PopupButtonID="ImgCalendarioAl" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
</div>
|
||||||
|
<div class="col-md-1" style="min-width: 115px">
|
||||||
|
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 100px !important; padding: 0px;">
|
||||||
<asp:CompareValidator ID="CVTxtFechaAl" runat="server" ControlToValidate="TxtFechaAl" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha Fin''</b> no tiene el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="GrpConsulta"></asp:CompareValidator>
|
<asp:TextBox Width="80px" ID="txtFechaI" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
||||||
<ajax:ValidatorCalloutExtender ID="CECVTxtFechaAl" runat="server" HighlightCssClass="vco" TargetControlID="CVTxtFechaAl" Width="350px"></ajax:ValidatorCalloutExtender>
|
<span class="input-group-btn ">
|
||||||
|
<asp:LinkButton ID="imgCalendario" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
||||||
</div>
|
</span>
|
||||||
</li>
|
</div>
|
||||||
|
<ajax:MaskedEditExtender ID="MEEFechaI" runat="server" TargetControlID="txtFechaI" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||||||
<li>Cuenta:
|
<ajax:CalendarExtender runat="server" ID="Calendario" TargetControlID="txtFechaI" PopupButtonID="ImgCalendario" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||||||
</li>
|
<asp:RequiredFieldValidator ID="rfvFechaI" runat="server" ControlToValidate="txtFechaI" Display="None" ErrorMessage="El campo <b>''Fecha Inicial''</b> es requerido por la aplicación, por favor ingrese una fecha." ValidationGroup="Valida"></asp:RequiredFieldValidator>
|
||||||
<li>
|
<asp:CompareValidator ID="cvFechaI" runat="server" ControlToValidate="txtFechaI" Display="None" ErrorMessage="El campo <b>''Fecha Inicial''</b> no tienes el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="Valida"></asp:CompareValidator>
|
||||||
<asp:DropDownList ID="DdlCuentas" runat="server" AppendDataBoundItems="true" DataTextField="CtaCodigo" DataValueField="CveCuenta" CssClass="form-control input-sm select2me" Enabled="true" Width="350px">
|
<ajax:ValidatorCalloutExtender ID="vcoFfvFI" runat="server" HighlightCssClass="vco" TargetControlID="rfvFechaI" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||||
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
<ajax:ValidatorCalloutExtender ID="vcoCvFI" runat="server" HighlightCssClass="vco" TargetControlID="cvFechaI" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||||
</asp:DropDownList>
|
</div>
|
||||||
|
<div class="col-md-1 truncate">
|
||||||
<asp:RequiredFieldValidator ID="RFVDdlCuentas" runat="server" InitialValue="-1" ControlToValidate="DdlCuentas" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Cuenta''</b> es necesario, por favor ingréselo." ValidationGroup="GrpConsulta"></asp:RequiredFieldValidator>
|
Fecha Fin:
|
||||||
<ajax:ValidatorCalloutExtender ID="CERFVDdlCuentas" runat="server" HighlightCssClass="vco" TargetControlID="RFVDdlCuentas" Width="350px"></ajax:ValidatorCalloutExtender>
|
</div>
|
||||||
|
<div class="col-md-1" style="min-width: 115px">
|
||||||
|
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 100px !important; padding: 0px;">
|
||||||
</li>
|
<asp:TextBox Width="80px" ID="txtFechaF" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
||||||
|
<span class="input-group-btn ">
|
||||||
|
<asp:LinkButton ID="imgCalendarioF" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
||||||
</ul>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<ajax:MaskedEditExtender ID="MEEFechaF" runat="server" TargetControlID="txtFechaF" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||||||
<div class="portlet-body" <%= IIf(chkexpand.Checked = True, "", "style=""display:none;""")%>>
|
<ajax:CalendarExtender runat="server" ID="Calendario2" TargetControlID="txtFechaF" PopupButtonID="imgCalendarioF" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||||||
|
<asp:RequiredFieldValidator ID="rfvFechaF" runat="server" ControlToValidate="txtFechaF" Display="None" ErrorMessage="El campo <b>''Fecha Final''</b> es requerido por la aplicación, por favor ingrese una fecha." ValidationGroup="Valida"></asp:RequiredFieldValidator>
|
||||||
<ul class="list-inline text-size-12">
|
<asp:CompareValidator ID="cvFechaF" runat="server" ControlToValidate="txtFechaF" Display="None" ErrorMessage="El campo <b>''Fecha Final''</b> no tienes el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="Valida"></asp:CompareValidator>
|
||||||
<li>
|
<ajax:ValidatorCalloutExtender ID="vcoRfvFF" runat="server" HighlightCssClass="vco" TargetControlID="rfvFechaF" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||||
Tipo Movto:
|
<ajax:ValidatorCalloutExtender ID="vcoCvFF" runat="server" HighlightCssClass="vco" TargetControlID="cvFechaF" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||||
</li>
|
</div>
|
||||||
<li>
|
</div>
|
||||||
<asp:DropDownList CssClass="form-control input-sm" ID="DdlCuenta" runat="server" DataTextField="Cuenta" DataValueField="CveCuenta" TabIndex="4">
|
</div>
|
||||||
<asp:ListItem Text="Todos" Value="-1"></asp:ListItem>
|
</div>
|
||||||
<asp:ListItem Text="Con movimientos" Value="1"></asp:ListItem>
|
<div class="portlet-body" <%= IIf(chkexpand.Checked = True, "", "style=""display:none;""")%>>
|
||||||
<asp:ListItem Text="Saldo actual no igual a cero" Value="2"></asp:ListItem>
|
<div class="row">
|
||||||
<asp:ListItem Text="Con movimientos y saldo no igual a cero" Value="3"></asp:ListItem>
|
<div class="col-md-1 truncate" id="tdTipoReporte" visible="true">
|
||||||
<asp:ListItem Text="Con movimientos o saldo no igual a cero" Value="4"></asp:ListItem>
|
Tipo
|
||||||
</asp:DropDownList>
|
</div>
|
||||||
</li>
|
<div class="col-md-2" id="tdTipoReporte2" visible="true">
|
||||||
<li>
|
<asp:DropDownList ID="DdlTipoReporte" CssClass="form-control input-sm select2me" runat="server" Width="100%">
|
||||||
SubProyecto:
|
<asp:ListItem Text="Contable" Value="1"></asp:ListItem>
|
||||||
</li>
|
<asp:ListItem Text="Contable y Complementario" Value="3"></asp:ListItem>
|
||||||
<li>
|
<asp:ListItem Text="Complementario" Value="2"></asp:ListItem>
|
||||||
<asp:DropDownList ID="DdlSubproyecto" runat="server" Width="100%" AppendDataBoundItems="true" DataTextField="SubProyecto" DataValueField="CveSubProyecto" CssClass="form-control input-sm select2me">
|
</asp:DropDownList>
|
||||||
<asp:ListItem Selected="True" Text="Todas" Value="-1"></asp:ListItem>
|
</div>
|
||||||
</asp:DropDownList>
|
<div class="col-md-1 truncate">
|
||||||
</li>
|
SubProyecto
|
||||||
<li runat="server" id="tdTipoReporte" visible="true">Tipo:
|
</div>
|
||||||
</li>
|
<div class="col-md-2">
|
||||||
|
<asp:DropDownList ID="DdlSubproyecto" runat="server" Width="100%" AppendDataBoundItems="true" DataTextField="SubProyecto" DataValueField="CveSubProyecto" CssClass="form-control input-sm select2me">
|
||||||
<li runat="server" id="tdTipoReporte2" visible="true">
|
<asp:ListItem Selected="True" Text="Todas" Value="-1"></asp:ListItem>
|
||||||
<asp:DropDownList ID="DdlTipoReporte" CssClass="form-control input-sm" runat="server" Width="150px">
|
</asp:DropDownList>
|
||||||
<asp:ListItem Text="Contable" Value="1"></asp:ListItem>
|
</div>
|
||||||
<asp:ListItem Text="Contable y Complementario" Value="3"></asp:ListItem>
|
<div class="col-md-2">
|
||||||
<asp:ListItem Text="Complementario" Value="2"></asp:ListItem>
|
<asp:DropDownList Visible="false" CssClass="form-control input-sm" Width="150px" ID="DdlTipoCuentas" ClientIDMode="Static" runat="server" DataTextField="Nombre" DataValueField="CveCuenta" TabIndex="4" AutoPostBack="true">
|
||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
</li>
|
</div>
|
||||||
|
</div>
|
||||||
<li>
|
</div>
|
||||||
<asp:DropDownList Visible="false" CssClass="form-control input-sm" Width="150px" ID="DdlTipoCuentas" ClientIDMode="Static" runat="server" DataTextField="Nombre" DataValueField="CveCuenta" TabIndex="4" AutoPostBack="true">
|
</div>
|
||||||
</asp:DropDownList>
|
</ContentTemplate>
|
||||||
</li>
|
</asp:UpdatePanel>
|
||||||
|
|
||||||
</ul>
|
<br />
|
||||||
|
|
||||||
</div>
|
<asp:UpdatePanel ID="UpDatos" UpdateMode="Conditional" runat="server">
|
||||||
</div>
|
<ContentTemplate>
|
||||||
</ContentTemplate>
|
|
||||||
</asp:UpdatePanel>
|
<asp:GridView ID="GvDatos" runat="server" GridLines="None" CssClass="ScrollAD table table-smallpadding Widthall" data-heighterror="375" data-freezecols="0" data-freezerows="-1"
|
||||||
|
ShowHeader="True" ShowHeaderWhenEmpty="true" AllowPaging="False" ShowFooter="False" EmptyDataText="No se encontraron cuentas con los parametros establecidos." AutoGenerateColumns="False" OnRowDataBound="GvIngresos_RowDataBound">
|
||||||
<br />
|
<Columns>
|
||||||
|
<asp:TemplateField HeaderText="Cuenta" HeaderStyle-HorizontalAlign="Left">
|
||||||
<asp:UpdatePanel ID="UpDatos" UpdateMode="Conditional" runat="server">
|
<ItemTemplate>
|
||||||
<ContentTemplate>
|
<asp:Label ID="LbCodigo" runat="server" Text='<%# Eval("Codigo")%>'></asp:Label>
|
||||||
|
</ItemTemplate>
|
||||||
<asp:GridView ID="GvDatos" runat="server" GridLines="None" CssClass="ScrollAD table table-smallpadding Widthall" data-heighterror="375" data-freezecols="0" data-freezerows="-1"
|
<ItemStyle HorizontalAlign="Left" Width="180" />
|
||||||
ShowHeader="True" ShowHeaderWhenEmpty="true" AllowPaging="False" ShowFooter="False" EmptyDataText="No se encontraron cuentas con los parametros establecidos." AutoGenerateColumns="False" OnRowDataBound="GvIngresos_RowDataBound">
|
</asp:TemplateField>
|
||||||
<Columns>
|
<asp:TemplateField HeaderText="Nombre" HeaderStyle-HorizontalAlign="Left">
|
||||||
<asp:TemplateField HeaderText="Cuenta" HeaderStyle-HorizontalAlign="Left">
|
<ItemTemplate>
|
||||||
<ItemTemplate>
|
<asp:Label ID="LbNombre" runat="server" Text='<%# Eval("Nombre")%>'></asp:Label>
|
||||||
<asp:Label ID="LbCodigo" runat="server" Text='<%# Eval("Codigo")%>'></asp:Label>
|
</ItemTemplate>
|
||||||
</ItemTemplate>
|
<ItemStyle HorizontalAlign="Left" Width="320" />
|
||||||
<ItemStyle HorizontalAlign="Left" Width="180" />
|
</asp:TemplateField>
|
||||||
</asp:TemplateField>
|
<asp:TemplateField HeaderText="Saldos Iniciales">
|
||||||
<asp:TemplateField HeaderText="Nombre" HeaderStyle-HorizontalAlign="Left">
|
<HeaderTemplate>
|
||||||
<ItemTemplate>
|
<table width="100%">
|
||||||
<asp:Label ID="LbNombre" runat="server" Text='<%# Eval("Nombre")%>'></asp:Label>
|
<tr>
|
||||||
</ItemTemplate>
|
<td colspan="2">Saldos Iniciales</td>
|
||||||
<ItemStyle HorizontalAlign="Left" Width="320" />
|
</tr>
|
||||||
</asp:TemplateField>
|
<tr>
|
||||||
<asp:TemplateField HeaderText="Saldos Iniciales">
|
<td>Deudor</td>
|
||||||
<HeaderTemplate>
|
<td>Acreedor</td>
|
||||||
<table width="100%">
|
</tr>
|
||||||
<tr>
|
</table>
|
||||||
<td colspan="2">Saldos Iniciales</td>
|
</HeaderTemplate>
|
||||||
</tr>
|
<ItemTemplate>
|
||||||
<tr>
|
<asp:Label ID="LbSaldoInicial" runat="server" Text='<%# Eval("SaldoInicial", "{0:N2}")%>'></asp:Label>
|
||||||
<td>Deudor</td>
|
<asp:Label ID="LbSaldoInicial2" runat="server" Width="30px" Visible="false"></asp:Label>
|
||||||
<td>Acreedor</td>
|
</ItemTemplate>
|
||||||
</tr>
|
<ItemStyle Width="145" HorizontalAlign="Right" />
|
||||||
</table>
|
</asp:TemplateField>
|
||||||
</HeaderTemplate>
|
<asp:TemplateField HeaderText="Cargos">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Label ID="LbSaldoInicial" runat="server" Text='<%# Eval("SaldoInicial", "{0:N2}")%>'></asp:Label>
|
<asp:Label ID="LbCargos" runat="server" Text='<%# Eval("Cargos", "{0:N2}")%>'></asp:Label>
|
||||||
<asp:Label ID="LbSaldoInicial2" runat="server" Width="30px" Visible="false"></asp:Label>
|
</ItemTemplate>
|
||||||
</ItemTemplate>
|
<ItemStyle Width="145" HorizontalAlign="Right" />
|
||||||
<ItemStyle Width="145" HorizontalAlign="Right" />
|
</asp:TemplateField>
|
||||||
</asp:TemplateField>
|
<asp:TemplateField HeaderText="Abonos">
|
||||||
<asp:TemplateField HeaderText="Cargos">
|
<ItemTemplate>
|
||||||
<ItemTemplate>
|
<asp:Label ID="LbAbonos" runat="server" Text='<%# Eval("Abonos", "{0:N2}")%>'></asp:Label>
|
||||||
<asp:Label ID="LbCargos" runat="server" Text='<%# Eval("Cargos", "{0:N2}")%>'></asp:Label>
|
</ItemTemplate>
|
||||||
</ItemTemplate>
|
<ItemStyle Width="145" HorizontalAlign="Right" />
|
||||||
<ItemStyle Width="145" HorizontalAlign="Right" />
|
</asp:TemplateField>
|
||||||
</asp:TemplateField>
|
<asp:TemplateField HeaderText="Saldos Actuales">
|
||||||
<asp:TemplateField HeaderText="Abonos">
|
<HeaderTemplate>
|
||||||
<ItemTemplate>
|
<table width="100%">
|
||||||
<asp:Label ID="LbAbonos" runat="server" Text='<%# Eval("Abonos", "{0:N2}")%>'></asp:Label>
|
<tr>
|
||||||
</ItemTemplate>
|
<td colspan="2">Saldos Actuales</td>
|
||||||
<ItemStyle Width="145" HorizontalAlign="Right" />
|
</tr>
|
||||||
</asp:TemplateField>
|
<tr>
|
||||||
<asp:TemplateField HeaderText="Saldos Actuales">
|
<td>Deudor</td>
|
||||||
<HeaderTemplate>
|
<td>Acreedor</td>
|
||||||
<table width="100%">
|
</tr>
|
||||||
<tr>
|
</table>
|
||||||
<td colspan="2">Saldos Actuales</td>
|
</HeaderTemplate>
|
||||||
</tr>
|
<ItemTemplate>
|
||||||
<tr>
|
<asp:HyperLink ID="HLSaldoActual" runat="server" Text='<%# Eval("SaldoActual", "{0:N2}")%>' CssClass="Texto" Target="_blank"></asp:HyperLink>
|
||||||
<td>Deudor</td>
|
<%--<asp:Label ID="LbSaldoActual" runat="server" Text='<%# Eval("SaldoActual", "{0:N2}")%>'></asp:Label>--%>
|
||||||
<td>Acreedor</td>
|
<asp:Label ID="LbSaldoActual" runat="server" Width="30px" Visible="false"></asp:Label>
|
||||||
</tr>
|
</ItemTemplate>
|
||||||
</table>
|
<ItemStyle Width="145" HorizontalAlign="Right" />
|
||||||
</HeaderTemplate>
|
</asp:TemplateField>
|
||||||
<ItemTemplate>
|
</Columns>
|
||||||
<asp:HyperLink ID="HLSaldoActual" runat="server" Text='<%# Eval("SaldoActual", "{0:N2}")%>' CssClass="Texto" Target="_blank"></asp:HyperLink>
|
<HeaderStyle Font-Bold="true" HorizontalAlign="Center" />
|
||||||
<%--<asp:Label ID="LbSaldoActual" runat="server" Text='<%# Eval("SaldoActual", "{0:N2}")%>'></asp:Label>--%>
|
</asp:GridView>
|
||||||
<asp:Label ID="LbSaldoActual" runat="server" Width="30px" Visible="false"></asp:Label>
|
|
||||||
</ItemTemplate>
|
</ContentTemplate>
|
||||||
<ItemStyle Width="145" HorizontalAlign="Right" />
|
</asp:UpdatePanel>
|
||||||
</asp:TemplateField>
|
|
||||||
</Columns>
|
|
||||||
<HeaderStyle Font-Bold="true" HorizontalAlign="Center" />
|
</asp:Content>
|
||||||
</asp:GridView>
|
|
||||||
|
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
||||||
</ContentTemplate>
|
|
||||||
</asp:UpdatePanel>
|
|
||||||
|
|
||||||
|
|
||||||
</asp:Content>
|
|
||||||
|
|
||||||
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
||||||
<%-- function pageLoad(sender, args) {
|
<%-- function pageLoad(sender, args) {
|
||||||
@@ -285,7 +278,7 @@
|
|||||||
|
|
||||||
}--%>
|
}--%>
|
||||||
|
|
||||||
function Enable() {
|
function Enable() {
|
||||||
var Producto = $get("DdlTipoCuentas").value;
|
var Producto = $get("DdlTipoCuentas").value;
|
||||||
if (Producto == "-2") {
|
if (Producto == "-2") {
|
||||||
//document.getElementById("TxtCuenta").disabled = false;
|
//document.getElementById("TxtCuenta").disabled = false;
|
||||||
@@ -297,19 +290,19 @@
|
|||||||
//document.getElementById("TxtCuenta").value = " ";
|
//document.getElementById("TxtCuenta").value = " ";
|
||||||
//document.getElementById("TxtCuenta").disabled = true;
|
//document.getElementById("TxtCuenta").disabled = true;
|
||||||
$get("C_DdlCuentas").value = "-1";
|
$get("C_DdlCuentas").value = "-1";
|
||||||
document.getElementById("C_DdlCuentas").disabled = true;
|
document.getElementById("C_DdlCuentas").disabled = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function Scroll() {
|
function Scroll() {
|
||||||
var Tam = TamañoVentana();
|
var Tam = TamañoVentana();
|
||||||
var Alto = Tam.height - 360;
|
var Alto = Tam.height - 360;
|
||||||
if (Alto < 100) {
|
if (Alto < 100) {
|
||||||
Alto = 100;
|
Alto = 100;
|
||||||
}
|
}
|
||||||
$('#<%=GvDatos.ClientID%>').ADScroll({
|
$('#<%=GvDatos.ClientID%>').ADScroll({
|
||||||
height: Alto
|
height: Alto
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
|
|||||||
@@ -138,8 +138,8 @@ Partial Class AC2_RepAnexoCatalogo
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
TxtFechaDel.Text = FechaInicio.ToShortDateString
|
txtFechaI.Text = FechaInicio.ToShortDateString
|
||||||
TxtFechaAl.Text = FechaFin.ToShortDateString
|
txtFechaF.Text = FechaFin.ToShortDateString
|
||||||
|
|
||||||
If Not ErrorParametros Then
|
If Not ErrorParametros Then
|
||||||
CargaDatos()
|
CargaDatos()
|
||||||
@@ -308,8 +308,8 @@ Partial Class AC2_RepAnexoCatalogo
|
|||||||
If DdlTipoCuentas.SelectedValue.ToEntero = -2 AndAlso DdlCuentas.SelectedValue.ToEntero = -1 Then
|
If DdlTipoCuentas.SelectedValue.ToEntero = -2 AndAlso DdlCuentas.SelectedValue.ToEntero = -1 Then
|
||||||
Alert("El campo Cuenta es obligatorio.", TipoMensaje.MsgError)
|
Alert("El campo Cuenta es obligatorio.", TipoMensaje.MsgError)
|
||||||
Else
|
Else
|
||||||
FechaInicio = If(TxtFechaDel.Text = "" Or TxtFechaDel.Text = "__/__/____", Date.Now, TxtFechaDel.Text.ToDate)
|
FechaInicio = If(txtFechaI.Text = "" Or txtFechaI.Text = "__/__/____", Date.Now, txtFechaI.Text.ToDate)
|
||||||
FechaFin = If(TxtFechaAl.Text = "" Or TxtFechaAl.Text = "__/__/____", Date.Now, TxtFechaAl.Text.ToDate)
|
FechaFin = If(txtFechaF.Text = "" Or txtFechaF.Text = "__/__/____", Date.Now, txtFechaF.Text.ToDate)
|
||||||
IdCuenta = If(DdlTipoCuentas.SelectedValue.ToEntero = -2, DdlCuentas.SelectedValue.ToEntero, DdlTipoCuentas.SelectedValue.ToEntero)
|
IdCuenta = If(DdlTipoCuentas.SelectedValue.ToEntero = -2, DdlCuentas.SelectedValue.ToEntero, DdlTipoCuentas.SelectedValue.ToEntero)
|
||||||
|
|
||||||
CargaDatos()
|
CargaDatos()
|
||||||
|
|||||||
@@ -1,259 +1,248 @@
|
|||||||
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="RepMovimientosAuxiliaresCatalogo.aspx.vb" Inherits="Conta_RepMovimientosAuxiliaresCatalogo" EnableEventValidation="false" %>
|
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="RepMovimientosAuxiliaresCatalogo.aspx.vb" Inherits="Conta_RepMovimientosAuxiliaresCatalogo" EnableEventValidation="false" %>
|
||||||
|
|
||||||
<asp:Content ContentPlaceHolderID="Css" runat="server">
|
<asp:Content ContentPlaceHolderID="Css" runat="server">
|
||||||
<style>
|
<style>
|
||||||
.truncate {
|
.truncate {
|
||||||
width: 300px;
|
width: 300px;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
|
|
||||||
table{
|
table {
|
||||||
border:none!important;
|
border: none !important;
|
||||||
}
|
}
|
||||||
tr{
|
|
||||||
border:none!important;
|
tr {
|
||||||
}
|
border: none !important;
|
||||||
|
}
|
||||||
td{
|
|
||||||
border:none!important;
|
td {
|
||||||
}
|
border: none !important;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content1" ContentPlaceHolderID="H" runat="Server">
|
<asp:Content ID="Content1" ContentPlaceHolderID="H" runat="Server">
|
||||||
|
|
||||||
<li>
|
<li>
|
||||||
<asp:LinkButton ID="ImgExcel" runat="server"><i class="fa fa-ad-excel"></i> Generar EXCEL</asp:LinkButton>
|
<asp:LinkButton ID="ImgExcel" runat="server"><i class="fa fa-ad-excel"></i> Generar EXCEL</asp:LinkButton>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<asp:LinkButton ID="Imprimir" runat="server"><i class="fa fa-print"></i> Imprimir</asp:LinkButton>
|
<asp:LinkButton ID="Imprimir" runat="server"><i class="fa fa-print"></i> Imprimir</asp:LinkButton>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content2" ContentPlaceHolderID="E" runat="Server">
|
<asp:Content ID="Content2" ContentPlaceHolderID="E" runat="Server">
|
||||||
Movimientos Auxiliares del Catálogo
|
Movimientos Auxiliares del Catálogo
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content3" ContentPlaceHolderID="C" runat="Server">
|
<asp:Content ID="Content3" ContentPlaceHolderID="C" runat="Server">
|
||||||
|
|
||||||
|
|
||||||
<asp:UpdatePanel ID="UPFiltros" runat="server" UpdateMode="Conditional">
|
<asp:UpdatePanel ID="UPFiltros" runat="server" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
|
|
||||||
<div class="portlet solid grey-cascade portlet-filter">
|
<div class="portlet solid grey-cascade portlet-filter">
|
||||||
<div class="portlet-title portlet-filterT smalltitle">
|
<div class="portlet-title portlet-filterT smalltitle">
|
||||||
<div class="tools">
|
<div class="tools">
|
||||||
<asp:Button ID="BtnConsultar" runat="server" CssClass="btn btn-default" Text="Consultar" Width="100px" OnClick="BtnConsultar_Click" ValidationGroup="GrpConsulta" />
|
<asp:Button ID="BtnConsultar" runat="server" CssClass="btn btn-default" Text="Consultar" Width="100px" OnClick="BtnConsultar_Click" ValidationGroup="GrpConsulta" />
|
||||||
<a href="javascript:;" class="expand"></a>
|
<a href="javascript:;" class="expand"></a>
|
||||||
</div>
|
</div>
|
||||||
<div class="titlefiltros caption ">
|
<div class="titlefiltros caption ">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<label class="col-md-1" style="width: 80px; padding-right: 2px;">Fecha Inicio:</label>
|
<div class="col-md-1">
|
||||||
<div class="col-md-2" style="width: 110px;">
|
Fecha Inicio:
|
||||||
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 80px !important; padding: 0px;">
|
</div>
|
||||||
<asp:TextBox ID="TxtFechaDel" runat="server" CssClass="form-control" Width="99%" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
<div class="col-md-1" style="min-width: 115px">
|
||||||
<span class="input-group-btn ">
|
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 100px !important; padding: 0px;">
|
||||||
<asp:LinkButton ID="ImgCalendarioDel" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
<asp:TextBox Width="80px" ID="txtFechaI" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
||||||
</span>
|
<span class="input-group-btn ">
|
||||||
<ajax:MaskedEditExtender ID="MEEFechaDel" runat="server" TargetControlID="TxtFechaDel" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
<asp:LinkButton ID="imgCalendario" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
||||||
<ajax:CalendarExtender ID="CalendarioDel" runat="server" TargetControlID="TxtFechaDel" PopupButtonID="ImgCalendarioDel" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
</span>
|
||||||
|
</div>
|
||||||
<asp:CompareValidator ID="CVTxtFechaDel" runat="server" ControlToValidate="TxtFechaDel" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha Inicio''</b> no tiene el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="GrpConsulta"></asp:CompareValidator>
|
<ajax:MaskedEditExtender ID="MEEFechaI" runat="server" TargetControlID="txtFechaI" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||||||
<ajax:ValidatorCalloutExtender ID="CECVTxtFechaDel" runat="server" HighlightCssClass="vco" TargetControlID="CVTxtFechaDel" Width="350px"></ajax:ValidatorCalloutExtender>
|
<ajax:CalendarExtender runat="server" ID="Calendario" TargetControlID="txtFechaI" PopupButtonID="ImgCalendario" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||||||
|
<asp:RequiredFieldValidator ID="rfvFechaI" runat="server" ControlToValidate="txtFechaI" Display="None" ErrorMessage="El campo <b>''Fecha Inicial''</b> es requerido por la aplicación, por favor ingrese una fecha." ValidationGroup="GrpConsulta"></asp:RequiredFieldValidator>
|
||||||
</div>
|
<asp:CompareValidator ID="cvFechaI" runat="server" ControlToValidate="txtFechaI" Display="None" ErrorMessage="El campo <b>''Fecha Inicial''</b> no tienes el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="GrpConsulta"></asp:CompareValidator>
|
||||||
</div>
|
<ajax:ValidatorCalloutExtender ID="vcoFfvFI" runat="server" HighlightCssClass="vco" TargetControlID="rfvFechaI" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||||
<label class="col-md-1" style="width: 75px; padding-right: 2px;">Fecha Fin:</label>
|
<ajax:ValidatorCalloutExtender ID="vcoCvFI" runat="server" HighlightCssClass="vco" TargetControlID="cvFechaI" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||||
<div class="col-md-2" style="width: 110px;">
|
</div>
|
||||||
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 80px !important; padding: 0px;">
|
<div class="col-md-1">
|
||||||
<asp:TextBox ID="TxtFechaAl" runat="server" CssClass="form-control" Width="99%" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
Fecha Fin:
|
||||||
<span class="input-group-btn ">
|
</div>
|
||||||
<asp:LinkButton ID="ImgCalendarioAl" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
<div class="col-md-1" style="min-width: 115px">
|
||||||
</span>
|
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 100% !important; padding: 0px;">
|
||||||
<ajax:MaskedEditExtender ID="MEEFechaAl" runat="server" TargetControlID="TxtFechaAl" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
<asp:TextBox Width="80px" ID="txtFechaF" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
||||||
<ajax:CalendarExtender ID="CalendarioAl" runat="server" TargetControlID="TxtFechaAl" PopupButtonID="ImgCalendarioAl" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
<span class="input-group-btn ">
|
||||||
|
<asp:LinkButton ID="imgCalendarioF" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
||||||
<asp:CompareValidator ID="CVTxtFechaAl" runat="server" ControlToValidate="TxtFechaAl" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha Fin''</b> no tiene el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="GrpConsulta"></asp:CompareValidator>
|
</span>
|
||||||
<ajax:ValidatorCalloutExtender ID="CECVTxtFechaAl" runat="server" HighlightCssClass="vco" TargetControlID="CVTxtFechaAl" Width="350px"></ajax:ValidatorCalloutExtender>
|
</div>
|
||||||
|
<ajax:MaskedEditExtender ID="MEEFechaF" runat="server" TargetControlID="txtFechaF" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||||||
</div>
|
<ajax:CalendarExtender runat="server" ID="Calendario2" TargetControlID="txtFechaF" PopupButtonID="imgCalendarioF" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||||||
</div>
|
<asp:RequiredFieldValidator ID="rfvFechaF" runat="server" ControlToValidate="txtFechaF" Display="None" ErrorMessage="El campo <b>''Fecha Final''</b> es requerido por la aplicación, por favor ingrese una fecha." ValidationGroup="GrpConsulta"></asp:RequiredFieldValidator>
|
||||||
<label class="col-md-1" style="display:none;">Tipo de Cuentas:</label>
|
<asp:CompareValidator ID="cvFechaF" runat="server" ControlToValidate="txtFechaF" Display="None" ErrorMessage="El campo <b>''Fecha Final''</b> no tienes el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="GrpConsulta"></asp:CompareValidator>
|
||||||
<div class="col-md-1" style="display:none;">
|
<ajax:ValidatorCalloutExtender ID="vcoRfvFF" runat="server" HighlightCssClass="vco" TargetControlID="rfvFechaF" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||||
<asp:DropDownList ID="DdlTipoCuentas" CssClass="form-control input-sm" runat="server" DataTextField="Nombre" DataValueField="CveCuenta" TabIndex="4" AutoPostBack="true" ClientIDMode="Static">
|
<ajax:ValidatorCalloutExtender ID="vcoCvFF" runat="server" HighlightCssClass="vco" TargetControlID="cvFechaF" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||||
</asp:DropDownList>
|
</div>
|
||||||
</div>
|
<label class="col-md-1" style="display: none;">Tipo de Cuentas:</label>
|
||||||
<label class="col-md-1" style="width: 60px;">Cuenta:</label>
|
<div class="col-md-2" style="display: none;">
|
||||||
<div class="col-md-4">
|
<asp:DropDownList ID="DdlTipoCuentas" CssClass="form-control input-sm" runat="server" DataTextField="Nombre" DataValueField="CveCuenta" TabIndex="4" AutoPostBack="true" ClientIDMode="Static">
|
||||||
<%-- <asp:HiddenField ID="HdnCveCuenta" runat="server" ClientIDMode="Static" />
|
</asp:DropDownList>
|
||||||
<asp:TextBox ID="TxtCuenta" CssClass="form-control-input" runat="server" ClientIDMode="Static" Enabled="false" TabIndex="5" onclick="this.setSelectionRange(0, this.value.length)" Width="100"></asp:TextBox>--%>
|
</div>
|
||||||
<asp:DropDownList ID="DdlCuentas" runat="server" AppendDataBoundItems="true" DataTextField="CtaCodigo" DataValueField="CveCuenta" CssClass="form-control input-sm select2me" Enabled="false">
|
<div class="col-md-1">
|
||||||
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
Cuenta:
|
||||||
</asp:DropDownList>
|
</div>
|
||||||
|
<div class="col-md-2">
|
||||||
<asp:RequiredFieldValidator ID="RFVDdlCuentas" runat="server" InitialValue="-1" ControlToValidate="DdlCuentas" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Cuenta''</b> es necesario, por favor ingréselo." ValidationGroup="GrpConsulta"></asp:RequiredFieldValidator>
|
<asp:DropDownList ID="DdlCuentas" runat="server" AppendDataBoundItems="true" DataTextField="CtaCodigo" DataValueField="CveCuenta" CssClass="form-control input-sm select2me" Enabled="false">
|
||||||
<ajax:ValidatorCalloutExtender ID="CERFVDdlCuentas" runat="server" HighlightCssClass="vco" TargetControlID="RFVDdlCuentas" Width="350px"></ajax:ValidatorCalloutExtender>
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||||||
|
</asp:DropDownList>
|
||||||
</div>
|
<asp:RequiredFieldValidator ID="RFVDdlCuentas" runat="server" InitialValue="-1" ControlToValidate="DdlCuentas" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Cuenta''</b> es necesario, por favor ingréselo." ValidationGroup="GrpConsulta"></asp:RequiredFieldValidator>
|
||||||
|
<ajax:ValidatorCalloutExtender ID="CERFVDdlCuentas" runat="server" HighlightCssClass="vco" TargetControlID="RFVDdlCuentas" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
<div class="portlet-body" style="display: none">
|
||||||
<div class="portlet-body" style="display: none">
|
<div class="row">
|
||||||
<div class="row">
|
<label class="col-md-1">Moneda:</label>
|
||||||
<label class="col-md-1">Moneda:</label>
|
<div class="col-md-1">
|
||||||
<div class="col-md-1">
|
<asp:DropDownList ID="DdlMoneda" CssClass="form-control input-sm select2me" runat="server" DataTextField="Moneda" DataValueField="CveMoneda" TabIndex="5" ClientIDMode="Static" Width="100%">
|
||||||
<asp:DropDownList ID="DdlMoneda" CssClass="form-control input-sm" runat="server" DataTextField="Moneda" DataValueField="CveMoneda" TabIndex="5" ClientIDMode="Static" Width="70px">
|
</asp:DropDownList>
|
||||||
</asp:DropDownList>
|
</div>
|
||||||
</div>
|
<label class="col-md-2" style="width: 80px;">SubProyecto: </label>
|
||||||
<label class="col-md-2" style="width: 80px;">SubProyecto: </label>
|
<div class="col-md-2 ">
|
||||||
<div class="col-md-2 ">
|
<asp:DropDownList ID="DdlSubproyecto" runat="server" AppendDataBoundItems="true" DataTextField="SubProyecto" DataValueField="CveSubProyecto" CssClass="form-control input-sm select2me" Width="100%">
|
||||||
<asp:DropDownList ID="DdlSubproyecto" runat="server" AppendDataBoundItems="true" DataTextField="SubProyecto" DataValueField="CveSubProyecto" CssClass="form-control input-sm select2me" Width="100px">
|
<asp:ListItem Selected="True" Text="Todas" Value="-1"></asp:ListItem>
|
||||||
<asp:ListItem Selected="True" Text="Todas" Value="-1"></asp:ListItem>
|
</asp:DropDownList>
|
||||||
</asp:DropDownList>
|
</div>
|
||||||
</div>
|
<div class="col-md-2" runat="server" id="tdTipoReporte" visible="true">
|
||||||
<div class="col-md-2" runat="server" id="tdTipoReporte" visible="true">
|
<div class="row">
|
||||||
<div class="row">
|
<label class="col-md-3">Tipo:</label>
|
||||||
<label class="col-md-3">Tipo:</label>
|
<div class="col-md-6">
|
||||||
<div class="col-md-6">
|
<asp:DropDownList ID="DdlTipoReporte" CssClass="form-control input-sm select2me" runat="server" Width="100%">
|
||||||
<asp:DropDownList ID="DdlTipoReporte" CssClass="form-control input-sm" runat="server" Width="100px">
|
<asp:ListItem Text="Contable" Value="1"></asp:ListItem>
|
||||||
<asp:ListItem Text="Contable" Value="1"></asp:ListItem>
|
<asp:ListItem Text="Contable y Complementarias" Value="2"></asp:ListItem>
|
||||||
<asp:ListItem Text="Contable y Complementarias" Value="2"></asp:ListItem>
|
<asp:ListItem Text="Complementarias" Value="3"></asp:ListItem>
|
||||||
<asp:ListItem Text="Complementarias" Value="3"></asp:ListItem>
|
</asp:DropDownList>
|
||||||
</asp:DropDownList>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</ContentTemplate>
|
||||||
|
</asp:UpdatePanel>
|
||||||
</ContentTemplate>
|
|
||||||
</asp:UpdatePanel>
|
<br />
|
||||||
|
|
||||||
<br />
|
<div class="row" style="margin-right: 10px; margin-top: 18px;" align="right">
|
||||||
<%-- <div class="text-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>--%>
|
|
||||||
|
|
||||||
|
<asp:UpdatePanel ID="UpDatos" UpdateMode="Conditional" runat="server">
|
||||||
<div class="row" style="margin-right: 10px; margin-top: 18px;" align="right">
|
<ContentTemplate>
|
||||||
<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>
|
<asp:GridView ID="GvDatos" runat="server"
|
||||||
</div>
|
CssClass="table table-striped table-advance table-hover Widthall ScrollAD mysmallbtn" AutoGenerateColumns="False"
|
||||||
|
EmptyDataText="No se encontrarios movimientos."
|
||||||
|
DataKeyNames="" OnRowDataBound="GvDatos_RowDataBound">
|
||||||
<asp:UpdatePanel ID="UpDatos" UpdateMode="Conditional" runat="server" >
|
<Columns>
|
||||||
<ContentTemplate>
|
<asp:TemplateField ControlStyle-CssClass="Widthall">
|
||||||
|
<HeaderTemplate>
|
||||||
<asp:GridView ID="GvDatos" runat="server"
|
<table width="100%" style="border: none">
|
||||||
CssClass="table table-striped table-advance table-hover Widthall ScrollAD mysmallbtn" AutoGenerateColumns="False"
|
<tr>
|
||||||
EmptyDataText="No se encontrarios movimientos."
|
<td colspan="3"><font size="2">Cuenta</font></td>
|
||||||
DataKeyNames="" OnRowDataBound="GvDatos_RowDataBound">
|
<td colspan="1"><font size="2">Nombre</font></td>
|
||||||
<Columns>
|
<td colspan="4"></td>
|
||||||
<asp:TemplateField ControlStyle-CssClass="Widthall">
|
<td><font size="2">Saldo Inicial</font></td>
|
||||||
<HeaderTemplate>
|
</tr>
|
||||||
<table width="100%" style="border:none">
|
<tr>
|
||||||
<tr>
|
<td width="60px" align="center">Fecha</td>
|
||||||
<td colspan="3"><font size="2">Cuenta</font></td>
|
<td width="60px" align="center">Tipo</td>
|
||||||
<td colspan="1"><font size="2">Nombre</font></td>
|
<td width="60px" align="center">Número</td>
|
||||||
<td colspan="4"></td>
|
<td width="300px" align="left">Concepto</td>
|
||||||
<td><font size="2">Saldo Inicial</font></td>
|
<td width="100px" align="center">Referencia</td>
|
||||||
</tr>
|
<td width="100px" align="center">Referencia Movto</td>
|
||||||
<tr>
|
<td width="100px" align="center">SubProyecto</td>
|
||||||
<td width="60px" align="center">Fecha</td>
|
<td width="100px" align="center">Cargos</td>
|
||||||
<td width="60px" align="center">Tipo</td>
|
<td width="100px" align="center">Abonos</td>
|
||||||
<td width="60px" align="center">Número</td>
|
<td width="100px" align="center">Saldo</td>
|
||||||
<td width="300px" align="left">Concepto</td>
|
</tr>
|
||||||
<td width="100px" align="center">Referencia</td>
|
</table>
|
||||||
<td width="100px" align="center">Referencia Movto</td>
|
</HeaderTemplate>
|
||||||
<td width="100px" align="center">SubProyecto</td>
|
<ItemTemplate>
|
||||||
<td width="100px" align="center">Cargos</td>
|
<table width="100%" style="border: none">
|
||||||
<td width="100px" align="center">Abonos</td>
|
<tr runat="server" id="tr1">
|
||||||
<td width="100px" align="center">Saldo</td>
|
<td colspan="3" align="left" width="180px">
|
||||||
</tr>
|
<asp:Label ID="LbCuenta" runat="server" Text='<%# Eval("Codigo")%>'></asp:Label>
|
||||||
</table>
|
</td>
|
||||||
<%--<hr />--%>
|
<td colspan="1" align="left" width="300px">
|
||||||
</HeaderTemplate>
|
<asp:Label ID="LbNombre" runat="server" Text='<%# Eval("Nombre")%>'></asp:Label>
|
||||||
<%-- <HeaderStyle />--%>
|
</td>
|
||||||
<ItemTemplate>
|
<td colspan="2" width="200px"></td>
|
||||||
<table width="100%" " style="border:none">
|
|
||||||
<tr runat="server" id="tr1">
|
|
||||||
<td colspan="3" align="left" width="180px">
|
|
||||||
<asp:Label ID="LbCuenta" runat="server" Text='<%# Eval("Codigo")%>'></asp:Label>
|
|
||||||
</td>
|
|
||||||
<td colspan="1" align="left" width="300px">
|
|
||||||
<asp:Label ID="LbNombre" runat="server" Text='<%# Eval("Nombre")%>'></asp:Label>
|
|
||||||
</td>
|
|
||||||
<td colspan="2" width="200px"></td>
|
|
||||||
<td style="font-weight: normal;" align="right" width="100px">Saldo Inicial:
|
<td style="font-weight: normal;" align="right" width="100px">Saldo Inicial:
|
||||||
</td>
|
</td>
|
||||||
<td style="font-weight: normal;" align="right" width="100px">
|
<td style="font-weight: normal;" align="right" width="100px">
|
||||||
<asp:Label ID="LbSaldoInicial" runat="server" Text='<%# Eval("SaldoInicial", "{0:N2}")%>'></asp:Label>
|
<asp:Label ID="LbSaldoInicial" runat="server" Text='<%# Eval("SaldoInicial", "{0:N2}")%>'></asp:Label>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr runat="server" id="tr2">
|
<tr runat="server" id="tr2">
|
||||||
<td width="60px" style="border: 0px;" align="center">
|
<td width="60px" style="border: 0px;" align="center">
|
||||||
<asp:Literal ID="LbFecha" runat="server" Text='<%# Eval("Fecha", "{0:d}")%>'></asp:Literal>
|
<asp:Literal ID="LbFecha" runat="server" Text='<%# Eval("Fecha", "{0:d}")%>'></asp:Literal>
|
||||||
</td>
|
</td>
|
||||||
<td width="60px" style="border: 0px;" align="center">
|
<td width="60px" style="border: 0px;" align="center">
|
||||||
<asp:Literal ID="LbTipo" runat="server" Text='<%# Eval("TipoPoliza")%>'></asp:Literal>
|
<asp:Literal ID="LbTipo" runat="server" Text='<%# Eval("TipoPoliza")%>'></asp:Literal>
|
||||||
</td>
|
</td>
|
||||||
<td width="60px" style="border: 0px;" align="center">
|
<td width="60px" style="border: 0px;" align="center">
|
||||||
<asp:HyperLink ID="HLPoliza" runat="server" Text='<%# Eval("Folio")%>' CssClass="Texto" Target="_blank"></asp:HyperLink>
|
<asp:HyperLink ID="HLPoliza" runat="server" Text='<%# Eval("Folio")%>' CssClass="Texto" Target="_blank"></asp:HyperLink>
|
||||||
<%--<asp:Label ID="LbNumero" runat="server" Text='<%# Eval("Folio")%>'></asp:Label>--%>
|
</td>
|
||||||
</td>
|
|
||||||
|
<td width="300px" align="left">
|
||||||
<td width="300px" align="left">
|
<div class="truncate" style="width: 300px;">
|
||||||
<div class="truncate" style="width: 300px;">
|
<asp:Label ID="LbConcepto" runat="server" CssClass="truncate" Text='<%# Eval("Concepto")%>' title='<%# Eval("Concepto")%>'></asp:Label>
|
||||||
<asp:Label ID="LbConcepto" runat="server" CssClass="truncate" Text='<%# Eval("Concepto")%>' title='<%# Eval("Concepto")%>' ></asp:Label>
|
</div>
|
||||||
</div>
|
</td>
|
||||||
</td>
|
<td width="100px">
|
||||||
<td width="100px">
|
<asp:Label ID="LbReferencia" runat="server" Text='<%# Eval("Referencia")%>'></asp:Label>
|
||||||
<asp:Label ID="LbReferencia" runat="server" Text='<%# Eval("Referencia")%>'></asp:Label>
|
</td>
|
||||||
</td>
|
<td width="60px" style="border: 0px;" align="center">
|
||||||
<td width="60px" style="border: 0px;" align="center">
|
<asp:Literal ID="LtlRefMovto" runat="server" Text='<%# Eval("ReferenciaAdmin")%>'></asp:Literal>
|
||||||
<asp:Literal ID="LtlRefMovto" runat="server" Text='<%# Eval("ReferenciaAdmin")%>'></asp:Literal>
|
</td>
|
||||||
<%--<asp:Label ID="LbNumero" runat="server" Text='<%# Eval("Folio")%>'></asp:Label>--%>
|
<td width="100px">
|
||||||
</td>
|
<asp:Label ID="LblSubProyecto" runat="server" Text='<%# Eval("SubProyecto")%>'></asp:Label>
|
||||||
<td width="100px">
|
</td>
|
||||||
<asp:Label ID="LblSubProyecto" runat="server" Text='<%# Eval("SubProyecto")%>'></asp:Label>
|
<td width="100px" align="right">
|
||||||
</td>
|
<asp:Label ID="LbCargos" runat="server"></asp:Label>
|
||||||
<td width="100px" align="right">
|
</td>
|
||||||
<asp:Label ID="LbCargos" runat="server"></asp:Label>
|
<td width="100px" align="right">
|
||||||
</td>
|
<asp:Label ID="LbAbonos" runat="server"></asp:Label>
|
||||||
<td width="100px" align="right">
|
</td>
|
||||||
<asp:Label ID="LbAbonos" runat="server"></asp:Label>
|
<td width="100px" align="right">
|
||||||
</td>
|
<asp:Label ID="LbSaldo" runat="server"></asp:Label>
|
||||||
<td width="100px" align="right">
|
</td>
|
||||||
<asp:Label ID="LbSaldo" runat="server"></asp:Label>
|
</tr>
|
||||||
</td>
|
</table>
|
||||||
</tr>
|
</ItemTemplate>
|
||||||
</table>
|
<ItemStyle />
|
||||||
</ItemTemplate>
|
</asp:TemplateField>
|
||||||
<ItemStyle />
|
</Columns>
|
||||||
</asp:TemplateField>
|
</asp:GridView>
|
||||||
</Columns>
|
|
||||||
</asp:GridView>
|
</ContentTemplate>
|
||||||
|
</asp:UpdatePanel>
|
||||||
</ContentTemplate>
|
|
||||||
</asp:UpdatePanel>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</asp:Content>
|
||||||
|
|
||||||
</asp:Content>
|
<asp:Content ID="Content4" ContentPlaceHolderID="JS" runat="Server">
|
||||||
|
|
||||||
<asp:Content ID="Content4" ContentPlaceHolderID="JS" runat="Server">
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
|
|||||||
@@ -108,8 +108,8 @@ Partial Class Conta_RepMovimientosAuxiliaresCatalogo
|
|||||||
DdlMoneda.DataSource = GlobalDTMonedas
|
DdlMoneda.DataSource = GlobalDTMonedas
|
||||||
'DdlMoneda.Dispose()
|
'DdlMoneda.Dispose()
|
||||||
DdlMoneda.DataBind()
|
DdlMoneda.DataBind()
|
||||||
TxtFechaDel.Text = Now.FirstDayOfMonth.ToShortDateString
|
txtFechaI.Text = Now.FirstDayOfMonth.ToShortDateString
|
||||||
TxtFechaAl.Text = Now.LastDayOfMonth.ToShortDateString
|
txtFechaF.Text = Now.LastDayOfMonth.ToShortDateString
|
||||||
|
|
||||||
|
|
||||||
If Request("CveCuenta") IsNot Nothing AndAlso IsNumeric(Request("CveCuenta")) AndAlso Request("CveCuenta").ToEntero > 0 Then
|
If Request("CveCuenta") IsNot Nothing AndAlso IsNumeric(Request("CveCuenta")) AndAlso Request("CveCuenta").ToEntero > 0 Then
|
||||||
@@ -119,7 +119,7 @@ Partial Class Conta_RepMovimientosAuxiliaresCatalogo
|
|||||||
'HdnCveCuenta.Value = IdCuenta.ToString
|
'HdnCveCuenta.Value = IdCuenta.ToString
|
||||||
|
|
||||||
FechaFin = Request("FF").ToDate
|
FechaFin = Request("FF").ToDate
|
||||||
TxtFechaAl.Text = FechaFin.ToShortDateString
|
txtFechaF.Text = FechaFin.ToShortDateString
|
||||||
|
|
||||||
DdlCuentas.SelectedValueExist(IdCuenta)
|
DdlCuentas.SelectedValueExist(IdCuenta)
|
||||||
If DdlCuentas.SelectedValue.ToEntero <> -1 Then
|
If DdlCuentas.SelectedValue.ToEntero <> -1 Then
|
||||||
@@ -129,10 +129,10 @@ Partial Class Conta_RepMovimientosAuxiliaresCatalogo
|
|||||||
|
|
||||||
If Request("FI") IsNot Nothing AndAlso Request("FI").ToString.Length = 10 AndAlso Request("FI").ToDate > "01/01/1000".ToDate Then
|
If Request("FI") IsNot Nothing AndAlso Request("FI").ToString.Length = 10 AndAlso Request("FI").ToDate > "01/01/1000".ToDate Then
|
||||||
FechaInicio = Request("FI").ToDate
|
FechaInicio = Request("FI").ToDate
|
||||||
TxtFechaDel.Text = FechaInicio.ToShortDateString
|
txtFechaI.Text = FechaInicio.ToShortDateString
|
||||||
Else
|
Else
|
||||||
FechaInicio = DateSerial(Year(FechaFin), Month(FechaFin), 1)
|
FechaInicio = DateSerial(Year(FechaFin), Month(FechaFin), 1)
|
||||||
TxtFechaDel.Text = FechaInicio.ToShortDateString
|
TxtFechaF.Text = FechaInicio.ToShortDateString
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If Request("CveSubProyecto") IsNot Nothing Then
|
If Request("CveSubProyecto") IsNot Nothing Then
|
||||||
@@ -179,8 +179,8 @@ Partial Class Conta_RepMovimientosAuxiliaresCatalogo
|
|||||||
If DdlTipoCuentas.SelectedValue.ToEntero = -2 AndAlso DdlCuentas.SelectedValue.ToEntero = -1 Then
|
If DdlTipoCuentas.SelectedValue.ToEntero = -2 AndAlso DdlCuentas.SelectedValue.ToEntero = -1 Then
|
||||||
Alert("El campo Cuenta es obligatorio.", TipoMensaje.MsgError)
|
Alert("El campo Cuenta es obligatorio.", TipoMensaje.MsgError)
|
||||||
Else
|
Else
|
||||||
FechaInicio = If(TxtFechaDel.Text = "" Or TxtFechaDel.Text = "__/__/____", Date.Now, TxtFechaDel.Text.ToDate)
|
FechaInicio = If(txtFechaI.Text = "" Or txtFechaI.Text = "__/__/____", Date.Now, txtFechaI.Text.ToDate)
|
||||||
FechaFin = If(TxtFechaAl.Text = "" Or TxtFechaAl.Text = "__/__/____", Date.Now, TxtFechaAl.Text.ToDate)
|
FechaFin = If(txtFechaF.Text = "" Or txtFechaF.Text = "__/__/____", Date.Now, txtFechaF.Text.ToDate)
|
||||||
IdCuenta = If(DdlTipoCuentas.SelectedValue.ToEntero = -2, DdlCuentas.SelectedValue.ToEntero, DdlTipoCuentas.SelectedValue.ToEntero)
|
IdCuenta = If(DdlTipoCuentas.SelectedValue.ToEntero = -2, DdlCuentas.SelectedValue.ToEntero, DdlTipoCuentas.SelectedValue.ToEntero)
|
||||||
|
|
||||||
CargaDatos()
|
CargaDatos()
|
||||||
@@ -412,8 +412,8 @@ Partial Class Conta_RepMovimientosAuxiliaresCatalogo
|
|||||||
If DdlTipoCuentas.SelectedValue.ToEntero = -2 AndAlso DdlCuentas.SelectedValue.ToEntero = -1 Then
|
If DdlTipoCuentas.SelectedValue.ToEntero = -2 AndAlso DdlCuentas.SelectedValue.ToEntero = -1 Then
|
||||||
Alert("El campo Cuenta es obligatorio.", TipoMensaje.MsgError)
|
Alert("El campo Cuenta es obligatorio.", TipoMensaje.MsgError)
|
||||||
Else
|
Else
|
||||||
FechaInicio = If(TxtFechaDel.Text = "" Or TxtFechaDel.Text = "__/__/____", Date.Now, TxtFechaDel.Text.ToDate)
|
FechaInicio = If(txtFechaI.Text = "" Or txtFechaI.Text = "__/__/____", Date.Now, txtFechaI.Text.ToDate)
|
||||||
FechaFin = If(TxtFechaAl.Text = "" Or TxtFechaAl.Text = "__/__/____", Date.Now, TxtFechaAl.Text.ToDate)
|
FechaFin = If(txtFechaF.Text = "" Or txtFechaF.Text = "__/__/____", Date.Now, txtFechaF.Text.ToDate)
|
||||||
IdCuenta = If(DdlTipoCuentas.SelectedValue.ToEntero = -2, DdlCuentas.SelectedValue.ToEntero, DdlTipoCuentas.SelectedValue.ToEntero)
|
IdCuenta = If(DdlTipoCuentas.SelectedValue.ToEntero = -2, DdlCuentas.SelectedValue.ToEntero, DdlTipoCuentas.SelectedValue.ToEntero)
|
||||||
|
|
||||||
'Dim ObjConta As New ClsContPAQi(UsuarioActual.Empresa)
|
'Dim ObjConta As New ClsContPAQi(UsuarioActual.Empresa)
|
||||||
|
|||||||
@@ -1,116 +1,112 @@
|
|||||||
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="RepSituacionFinanciera.aspx.vb" Inherits="AC2_SituacionFinanciera" %>
|
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="RepSituacionFinanciera.aspx.vb" Inherits="AC2_SituacionFinanciera" %>
|
||||||
|
|
||||||
<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">
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content3" ContentPlaceHolderID="HB" runat="Server">
|
<asp:Content ID="Content3" ContentPlaceHolderID="HB" runat="Server">
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content4" ContentPlaceHolderID="E" runat="Server">
|
<asp:Content ID="Content4" ContentPlaceHolderID="E" runat="Server">
|
||||||
<asp:Literal ID="LtTitulo" Text="Estado de Situación Financiera" runat="server" />
|
<asp:Literal ID="LtTitulo" Text="Estado de Situación Financiera" runat="server" />
|
||||||
</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="ImgExcel" runat="server"><i class="fa fa-ad-excel"></i> Exporta Excel</asp:LinkButton>
|
<asp:LinkButton ID="ImgExcel" runat="server"><i class="fa fa-ad-excel"></i> Exporta Excel</asp:LinkButton>
|
||||||
<%--<asp:ImageButton ID="ImgExcel" runat="server" ImageUrl="/Imagenes/IconoExcel.gif" Width="20px" Height="20px" /> --%>
|
<%--<asp:ImageButton ID="ImgExcel" runat="server" ImageUrl="/Imagenes/IconoExcel.gif" Width="20px" Height="20px" /> --%>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<asp:LinkButton ID="Imprimir" runat="server"><i class="fa fa-print"></i> Imprimir</asp:LinkButton>
|
<asp:LinkButton ID="Imprimir" runat="server"><i class="fa fa-print"></i> Imprimir</asp:LinkButton>
|
||||||
<%--<asp:ImageButton ID="Imprimir" runat="server" alt="Imprimir" src="/Imagenes/btnImprimir.gif" Style="cursor: pointer; height: 20px" /> --%>
|
<%--<asp:ImageButton ID="Imprimir" runat="server" alt="Imprimir" src="/Imagenes/btnImprimir.gif" Style="cursor: pointer; height: 20px" /> --%>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<asp:LinkButton ID="LnkCerrar" runat="server" visible="false"><i class="fa-solid fa-shield" ></i> Cerrar Ejercicio</asp:LinkButton>
|
<asp:LinkButton ID="LnkCerrar" runat="server" Visible="false"><i class="fa-solid fa-shield" ></i> Cerrar Ejercicio</asp:LinkButton>
|
||||||
</li>
|
</li>
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content6" ContentPlaceHolderID="C" runat="Server">
|
<asp:Content ID="Content6" ContentPlaceHolderID="C" runat="Server">
|
||||||
<asp:UpdatePanel runat="server" ID="UpFiltros" UpdateMode="Conditional">
|
<asp:UpdatePanel runat="server" ID="UpFiltros" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<div class="portlet solid grey-cascade portlet-filter">
|
<div class="portlet solid grey-cascade portlet-filter">
|
||||||
<div class="portlet-title portlet-filterT smalltitle">
|
<div class="portlet-title portlet-filterT smalltitle">
|
||||||
<div class="tools">
|
<div class="tools">
|
||||||
<asp:Button ID="BtnConsultar" CssClass="btn btn-default" Text="Consultar" runat="server" OnClick="BtnConsultar_Click" />
|
<asp:Button ID="BtnConsultar" CssClass="btn btn-default" Text="Consultar" runat="server" OnClick="BtnConsultar_Click" />
|
||||||
<a href="javascript:;" data-idchekbox="<%= chkexpand.ClientID%>" class=" <%= IIf(chkexpand.Checked = True, "collapse", "expand")%>"></a><%--class="expand"--%>
|
<a href="javascript:;" data-idchekbox="<%= chkexpand.ClientID%>" class=" <%= IIf(chkexpand.Checked = True, "collapse", "expand")%>"></a><%--class="expand"--%>
|
||||||
<asp:CheckBox ID="chkexpand" CssClass="hidden" runat="server" />
|
<asp:CheckBox ID="chkexpand" CssClass="hidden" runat="server" />
|
||||||
</div>
|
</div>
|
||||||
<div class="titlefiltros caption ">
|
<div class="titlefiltros caption ">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<label class="col-md-1 truncate" style="width: 90px;">Ejercicio:</label>
|
<label class="col-md-1 truncate">Ejercicio:</label>
|
||||||
<div class="col-md-2" style="width: 125px;">
|
<div class="col-md-2">
|
||||||
<asp:DropDownList ID="DdlEjercicio" runat="server" CssClass="select2me" DataTextField="Ejercicio" DataValueField="Ejercicio" Width="100px">
|
<asp:DropDownList ID="DdlEjercicio" runat="server" CssClass="select2me" DataTextField="Ejercicio" DataValueField="Ejercicio" Width="100%">
|
||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
</div>
|
</div>
|
||||||
<label class="col-md-1 truncate" style="width: 90px;">Periodo:</label>
|
<label class="col-md-1 truncate">Periodo:</label>
|
||||||
<div class="col-md-2" style="width: 130px;">
|
<div class="col-md-2">
|
||||||
<asp:DropDownList ID="DdlPeriodo" runat="server" Width="100px" CssClass="select2me">
|
<asp:DropDownList ID="DdlPeriodo" runat="server" Width="100%" CssClass="select2me">
|
||||||
<asp:ListItem Text="Enero" Value="1"></asp:ListItem>
|
<asp:ListItem Text="Enero" Value="1"></asp:ListItem>
|
||||||
<asp:ListItem Text="Febrero" Value="2"></asp:ListItem>
|
<asp:ListItem Text="Febrero" Value="2"></asp:ListItem>
|
||||||
<asp:ListItem Text="Marzo" Value="3"></asp:ListItem>
|
<asp:ListItem Text="Marzo" Value="3"></asp:ListItem>
|
||||||
<asp:ListItem Text="Abril" Value="4"></asp:ListItem>
|
<asp:ListItem Text="Abril" Value="4"></asp:ListItem>
|
||||||
<asp:ListItem Text="Mayo" Value="5"></asp:ListItem>
|
<asp:ListItem Text="Mayo" Value="5"></asp:ListItem>
|
||||||
<asp:ListItem Text="Junio" Value="6"></asp:ListItem>
|
<asp:ListItem Text="Junio" Value="6"></asp:ListItem>
|
||||||
<asp:ListItem Text="Julio" Value="7"></asp:ListItem>
|
<asp:ListItem Text="Julio" Value="7"></asp:ListItem>
|
||||||
<asp:ListItem Text="Agosto" Value="8"></asp:ListItem>
|
<asp:ListItem Text="Agosto" Value="8"></asp:ListItem>
|
||||||
<asp:ListItem Text="Septiembre" Value="9"></asp:ListItem>
|
<asp:ListItem Text="Septiembre" Value="9"></asp:ListItem>
|
||||||
<asp:ListItem Text="Octubre" Value="10"></asp:ListItem>
|
<asp:ListItem Text="Octubre" Value="10"></asp:ListItem>
|
||||||
<asp:ListItem Text="Noviembre" Value="11"></asp:ListItem>
|
<asp:ListItem Text="Noviembre" Value="11"></asp:ListItem>
|
||||||
<asp:ListItem Text="Diciembre" Value="12"></asp:ListItem>
|
<asp:ListItem Text="Diciembre" Value="12"></asp:ListItem>
|
||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
</div>
|
</div>
|
||||||
<label class="col-md-2" style="width: 80px; display:none;">SubProyecto: </label>
|
<label class="col-md-1" style="display: none;">SubProyecto: </label>
|
||||||
<div class="col-md-2" style=" display:none;">
|
<div class="col-md-2" style="display: none;">
|
||||||
<asp:DropDownList ID="DdlSubproyecto" runat="server" Width="150px" AppendDataBoundItems="true" DataTextField="SubProyecto" DataValueField="CveSubProyecto" CssClass="form-control input-sm select2me" >
|
<asp:DropDownList ID="DdlSubproyecto" runat="server" Width="150px" AppendDataBoundItems="true" DataTextField="SubProyecto" DataValueField="CveSubProyecto" CssClass="form-control input-sm select2me">
|
||||||
<asp:ListItem Selected="True" Text="Todas" Value="-1"></asp:ListItem>
|
<asp:ListItem Selected="True" Text="Todas" Value="-1"></asp:ListItem>
|
||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="portlet-body" <%= IIf(chkexpand.Checked = True, "", "style=""display:none;""")%>>
|
||||||
</div>
|
<div class="row">
|
||||||
<div class="portlet-body" <%= IIf(chkexpand.Checked = True, "", "style=""display:none;""")%>>
|
<div class="col-md-3" runat="server" id="tdTipoReporte" visible="true">
|
||||||
|
<div class="row">
|
||||||
<div class="row">
|
<label class="col-md-4 truncate" >Tipo:</label>
|
||||||
<div class="col-md-3" runat="server" id="tdTipoReporte" visible="true">
|
<div class="col-md-8">
|
||||||
|
<asp:DropDownList ID="DdlTipoReporte" runat="server" CssClass="select2me" Width="100%">
|
||||||
<label class="col-md-1 truncate">Tipo:</label>
|
<asp:ListItem Text="Contable" Value="1"></asp:ListItem>
|
||||||
<div class="col-md-2">
|
<asp:ListItem Text="Contable y Complementario" Value="2"></asp:ListItem>
|
||||||
<asp:DropDownList ID="DdlTipoReporte" runat="server" Width="130px" CssClass="form-control input-sm">
|
<asp:ListItem Text="Complementario" Value="3"></asp:ListItem>
|
||||||
<asp:ListItem Text="Contable" Value="1"></asp:ListItem>
|
</asp:DropDownList>
|
||||||
<asp:ListItem Text="Contable y Complementario" Value="2"></asp:ListItem>
|
</div>
|
||||||
<asp:ListItem Text="Complementario" Value="3"></asp:ListItem>
|
</div>
|
||||||
</asp:DropDownList>
|
</div>
|
||||||
</div>
|
<label class="col-md-1 truncate">Con Firma:</label>
|
||||||
|
<div class="col-md-2">
|
||||||
</div>
|
<asp:CheckBox ID="ChkFirma" CssClass="make-switchsd" data-size="small" runat="server" />
|
||||||
<label class="col-md-1 truncate">Con Firma:</label>
|
</div>
|
||||||
<div class="col-md-1">
|
<label class="col-md-1 truncate">Nivel 2:</label>
|
||||||
<asp:CheckBox ID="ChkFirma" CssClass="make-switchsd" data-size="small" runat="server" />
|
<div class="col-md-2">
|
||||||
</div>
|
<asp:CheckBox ID="ChkNivel" CssClass="make-switchsd" data-size="small" runat="server" />
|
||||||
<label class="col-md-1 truncate">Nivel 2:</label>
|
</div>
|
||||||
<div class="col-md-1">
|
</div>
|
||||||
<asp:CheckBox ID="ChkNivel" CssClass="make-switchsd" data-size="small" runat="server" />
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</ContentTemplate>
|
||||||
|
</asp:UpdatePanel>
|
||||||
</div>
|
<br />
|
||||||
</div>
|
|
||||||
</ContentTemplate>
|
<rvweb:ReportViewer ID="rvReporteador" Visible="false" runat="server" Width="100%" Height="600"></rvweb:ReportViewer>
|
||||||
</asp:UpdatePanel>
|
|
||||||
<br />
|
|
||||||
|
<asp:UpdatePanel runat="server">
|
||||||
<rvweb:ReportViewer ID="rvReporteador" Visible="false" runat="server" Width="100%" Height="600"></rvweb:ReportViewer>
|
<ContentTemplate>
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
<asp:UpdatePanel runat="server">
|
|
||||||
<ContentTemplate>
|
<div class="col-md-6">
|
||||||
|
<table style="width: 100%; float: left; margin-right: 20px;">
|
||||||
<div class="row">
|
<tr>
|
||||||
|
<td width="100%" padding="0">
|
||||||
<div class="col-md-6">
|
|
||||||
<table style="width: 100%; float: left; margin-right: 20px;">
|
|
||||||
<tr>
|
|
||||||
<td width="100%" padding="0">
|
|
||||||
<center>
|
<center>
|
||||||
<h3>ACTIVO</h3>
|
<h3>ACTIVO</h3>
|
||||||
|
|
||||||
@@ -217,16 +213,16 @@
|
|||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
|
|
||||||
</center>
|
</center>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<table style="width: 100%; float: left;">
|
<table style="width: 100%; float: left;">
|
||||||
<tr>
|
<tr>
|
||||||
<td width="100%">
|
<td width="100%">
|
||||||
<center>
|
<center>
|
||||||
<h3>PASIVO</h3>
|
<h3>PASIVO</h3>
|
||||||
<asp:UpdatePanel ID="UpPasivo" UpdateMode="Conditional" runat="server">
|
<asp:UpdatePanel ID="UpPasivo" UpdateMode="Conditional" runat="server">
|
||||||
@@ -332,34 +328,34 @@
|
|||||||
|
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</center>
|
</center>
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<asp:UpdatePanel runat="server">
|
<asp:UpdatePanel runat="server">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<table style="max-width: 550px; width: 90%;">
|
<table style="max-width: 550px; width: 90%;">
|
||||||
<tr>
|
<tr>
|
||||||
<td width="275px" align="center">
|
<td width="275px" align="center">
|
||||||
<h4>Total del Pasivo:</h4>
|
<h4>Total del Pasivo:</h4>
|
||||||
</td>
|
</td>
|
||||||
<td width="100px" align="right">
|
<td width="100px" align="right">
|
||||||
<asp:Label Font-Bold="true" runat="server" ID="LbTotalPasivoActual"></asp:Label>
|
<asp:Label Font-Bold="true" runat="server" ID="LbTotalPasivoActual"></asp:Label>
|
||||||
</td>
|
</td>
|
||||||
<td runat="server" id="TdTotalPasivo" width="100px" align="right" visible="false">
|
<td runat="server" id="TdTotalPasivo" width="100px" align="right" visible="false">
|
||||||
<asp:Label Font-Bold="true" runat="server" ID="LbTotalPasivoAnterior"></asp:Label>
|
<asp:Label Font-Bold="true" runat="server" ID="LbTotalPasivoAnterior"></asp:Label>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
|
|
||||||
<center>
|
<center>
|
||||||
<h3>
|
<h3>
|
||||||
<asp:Literal Text="CAPITAL" ID="LtlTituloHacienda" runat="server" />
|
<asp:Literal Text="CAPITAL" ID="LtlTituloHacienda" runat="server" />
|
||||||
@@ -495,46 +491,46 @@
|
|||||||
|
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</center>
|
</center>
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<asp:UpdatePanel runat="server">
|
<asp:UpdatePanel runat="server">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<table style="max-width: 550px; width: 90%;">
|
<table style="max-width: 550px; width: 90%;">
|
||||||
<tr>
|
<tr>
|
||||||
<td width="50%" style="text-align: center;">
|
<td width="50%" style="text-align: center;">
|
||||||
<h4>
|
<h4>
|
||||||
<asp:Literal ID="LtlTotalHacienda" Text="Total Capital:" runat="server" />
|
<asp:Literal ID="LtlTotalHacienda" Text="Total Capital:" runat="server" />
|
||||||
</h4>
|
</h4>
|
||||||
</td>
|
</td>
|
||||||
<td width="25%" align="right">
|
<td width="25%" align="right">
|
||||||
<asp:Label Font-Bold="true" runat="server" ID="LbTotalPatrimonioActual"></asp:Label>
|
<asp:Label Font-Bold="true" runat="server" ID="LbTotalPatrimonioActual"></asp:Label>
|
||||||
</td>
|
</td>
|
||||||
<td runat="server" id="TdTotalPatrimonio" width="25%" align="right" visible="false">
|
<td runat="server" id="TdTotalPatrimonio" width="25%" align="right" visible="false">
|
||||||
<asp:Label Font-Bold="true" runat="server" ID="LbTotalPatrimonioAnterior"></asp:Label>
|
<asp:Label Font-Bold="true" runat="server" ID="LbTotalPatrimonioAnterior"></asp:Label>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<br />
|
<br />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<asp:UpdatePanel runat="server">
|
<asp:UpdatePanel runat="server">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<center>
|
<center>
|
||||||
<table style="max-width: 550px; width: 90%;">
|
<table style="max-width: 550px; width: 90%;">
|
||||||
<tr>
|
<tr>
|
||||||
@@ -549,14 +545,14 @@
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</center>
|
</center>
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<asp:UpdatePanel runat="server">
|
<asp:UpdatePanel runat="server">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<center>
|
<center>
|
||||||
<table style="max-width: 550px; width: 90%;">
|
<table style="max-width: 550px; width: 90%;">
|
||||||
<tr>
|
<tr>
|
||||||
@@ -573,54 +569,54 @@
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</center>
|
</center>
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<asp:Label runat="server" ID="LbDescuadre" ForeColor="Red" Font-Bold="false" Font-Size="Small"></asp:Label>
|
<asp:Label runat="server" ID="LbDescuadre" ForeColor="Red" Font-Bold="false" Font-Size="Small"></asp:Label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="ModalCierre" class="modal ADS fade" role="dialog">
|
<div id="ModalCierre" class="modal ADS fade" role="dialog">
|
||||||
<asp:UpdatePanel class="modal-dialog" runat="server" ID="UpModalEditarFecha" UpdateMode="Conditional" RenderMode="Inline">
|
<asp:UpdatePanel class="modal-dialog" runat="server" ID="UpModalEditarFecha" UpdateMode="Conditional" RenderMode="Inline">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<div class="modal-header ">
|
<div class="modal-header ">
|
||||||
<h4 class="modal-title">
|
<h4 class="modal-title">
|
||||||
<asp:Literal ID="LtlCierre" Text="Cierre de Ejercicio" runat="server"> </asp:Literal></h4>
|
<asp:Literal ID="LtlCierre" Text="Cierre de Ejercicio" runat="server"> </asp:Literal></h4>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<label class="col-md-1 truncate" style="width: 90px;">Ejercicio:</label>
|
<label class="col-md-1 truncate" style="width: 90px;">Ejercicio:</label>
|
||||||
<div class="col-md-2" style="width: 125px;">
|
<div class="col-md-2" style="width: 125px;">
|
||||||
<asp:DropDownList ID="DdlEjercicioCierre" runat="server" CssClass="select2me" DataTextField="Ejercicio" DataValueField="Ejercicio" Width="100px">
|
<asp:DropDownList ID="DdlEjercicioCierre" runat="server" CssClass="select2me" DataTextField="Ejercicio" DataValueField="Ejercicio" Width="100px">
|
||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
</div>
|
</div>
|
||||||
<label class="col-md-1 truncate" style="width: 90px;">Cuentas:</label>
|
<label class="col-md-1 truncate" style="width: 90px;">Cuentas:</label>
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
<asp:DropDownList ID="DdlCuentas" runat="server" CssClass="select2me" DataTextField="CtaCodigo" DataValueField="CveCuenta" Width="100%">
|
<asp:DropDownList ID="DdlCuentas" runat="server" CssClass="select2me" DataTextField="CtaCodigo" DataValueField="CveCuenta" Width="100%">
|
||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<asp:Button ID="BtnCierre" runat="server" Text="Guardar" CssClass="btn btn-primary" ValidationGroup="VgmEditarFecha" />
|
<asp:Button ID="BtnCierre" runat="server" Text="Guardar" CssClass="btn btn-primary" ValidationGroup="VgmEditarFecha" />
|
||||||
<button type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
|
<button type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</div>
|
</div>
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
|
|
||||||
|
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
|
|||||||
@@ -926,7 +926,7 @@
|
|||||||
</Style>
|
</Style>
|
||||||
</TextRun>
|
</TextRun>
|
||||||
<TextRun>
|
<TextRun>
|
||||||
<Value xml:space="preserve"> </Value>
|
<Value xml:space="preserve"> </Value>
|
||||||
<Style>
|
<Style>
|
||||||
<FontStyle>Normal</FontStyle>
|
<FontStyle>Normal</FontStyle>
|
||||||
<FontFamily>calibri</FontFamily>
|
<FontFamily>calibri</FontFamily>
|
||||||
@@ -980,6 +980,9 @@
|
|||||||
<Left>0.01938in</Left>
|
<Left>0.01938in</Left>
|
||||||
<Height>0.64213in</Height>
|
<Height>0.64213in</Height>
|
||||||
<Width>7.82181in</Width>
|
<Width>7.82181in</Width>
|
||||||
|
<Visibility>
|
||||||
|
<Hidden>true</Hidden>
|
||||||
|
</Visibility>
|
||||||
<Style>
|
<Style>
|
||||||
<Border>
|
<Border>
|
||||||
<Style>None</Style>
|
<Style>None</Style>
|
||||||
@@ -1394,7 +1397,7 @@
|
|||||||
<Width>20.06179cm</Width>
|
<Width>20.06179cm</Width>
|
||||||
<ZIndex>10</ZIndex>
|
<ZIndex>10</ZIndex>
|
||||||
<Visibility>
|
<Visibility>
|
||||||
<Hidden>= (Parameters!AplicaPagare.Value="0" OrElse Parameters!AplicaPagare.Value="")</Hidden>
|
<Hidden>true</Hidden>
|
||||||
</Visibility>
|
</Visibility>
|
||||||
<Style>
|
<Style>
|
||||||
<Border>
|
<Border>
|
||||||
@@ -3259,7 +3262,7 @@
|
|||||||
<Paragraph>
|
<Paragraph>
|
||||||
<TextRuns>
|
<TextRuns>
|
||||||
<TextRun>
|
<TextRun>
|
||||||
<Value>Éste documento es una representacion impresa de un CFDi</Value>
|
<Value>Éste documento es una representacion impresa de un CFDi </Value>
|
||||||
<Style>
|
<Style>
|
||||||
<FontSize>9pt</FontSize>
|
<FontSize>9pt</FontSize>
|
||||||
</Style>
|
</Style>
|
||||||
|
|||||||
@@ -682,6 +682,7 @@
|
|||||||
</TablixMembers>
|
</TablixMembers>
|
||||||
</TablixRowHierarchy>
|
</TablixRowHierarchy>
|
||||||
<DataSetName>DsOC</DataSetName>
|
<DataSetName>DsOC</DataSetName>
|
||||||
|
<Top>0cm</Top>
|
||||||
<Left>0.04788in</Left>
|
<Left>0.04788in</Left>
|
||||||
<Height>0.36752in</Height>
|
<Height>0.36752in</Height>
|
||||||
<Width>8.15357in</Width>
|
<Width>8.15357in</Width>
|
||||||
@@ -1702,7 +1703,7 @@
|
|||||||
<Paragraph>
|
<Paragraph>
|
||||||
<TextRuns>
|
<TextRuns>
|
||||||
<TextRun>
|
<TextRun>
|
||||||
<Value> Citrus Game, S.A. de C.V.</Value>
|
<Value>CITRUS GAME S.A.P.I. DE C.V.</Value>
|
||||||
<Style>
|
<Style>
|
||||||
<FontFamily>Myriad Pro</FontFamily>
|
<FontFamily>Myriad Pro</FontFamily>
|
||||||
<FontSize>8.5pt</FontSize>
|
<FontSize>8.5pt</FontSize>
|
||||||
|
|||||||
@@ -650,7 +650,7 @@ Partial Class General_SaldosIniciales
|
|||||||
If UsuarioActual.Empresa.TipoContabilizacion = 1 Then
|
If UsuarioActual.Empresa.TipoContabilizacion = 1 Then
|
||||||
|
|
||||||
Dim ObjConta As New ClsContabilidad
|
Dim ObjConta As New ClsContabilidad
|
||||||
If ObjConta.GetCuentas(-1, "-1", 1, UsuarioActual.CveEmpresa) Then
|
If ObjConta.GetCuentas(-1, "-1", -1, UsuarioActual.CveEmpresa) Then
|
||||||
DTCuentasContables = ObjConta.DtResultados
|
DTCuentasContables = ObjConta.DtResultados
|
||||||
End If
|
End If
|
||||||
ObjConta.Dispose()
|
ObjConta.Dispose()
|
||||||
@@ -1502,8 +1502,8 @@ Partial Class General_SaldosIniciales
|
|||||||
Dim CveProveedorSucursal As Integer = Row("CveProveedorSucursal").ToString.ToEntero
|
Dim CveProveedorSucursal As Integer = Row("CveProveedorSucursal").ToString.ToEntero
|
||||||
Dim PorcentajeIVA As String = Row("PorcentajeIVA").ToString
|
Dim PorcentajeIVA As String = Row("PorcentajeIVA").ToString
|
||||||
Dim ImpuestosLocales As Decimal = If(dt.Columns.Contains("ImpuestosLocales"), Row("ImpuestosLocales").ToString, "0").ToDecimal
|
Dim ImpuestosLocales As Decimal = If(dt.Columns.Contains("ImpuestosLocales"), Row("ImpuestosLocales").ToString, "0").ToDecimal
|
||||||
|
Dim RetIVAPorcentaje As Decimal = Row("RetIVAPorcentaje").ToString.ToDecimal
|
||||||
|
Dim RetISRPorcentaje As Decimal = Row("RetISRPorcentaje").ToString.ToDecimal
|
||||||
|
|
||||||
|
|
||||||
If Not CvePS > 0 Then Alert(String.Format("No se encontró el Producto Servicio"), TipoMensaje.MsgError) : ErrorCompras = True
|
If Not CvePS > 0 Then Alert(String.Format("No se encontró el Producto Servicio"), TipoMensaje.MsgError) : ErrorCompras = True
|
||||||
@@ -1514,6 +1514,7 @@ Partial Class General_SaldosIniciales
|
|||||||
TipoDocto = IIf(TipoDocto.ToUpper.Contiene("INGRESOS", "INGRESO", "ING", "FACTURA"), "Fac", "NC").ToString
|
TipoDocto = IIf(TipoDocto.ToUpper.Contiene("INGRESOS", "INGRESO", "ING", "FACTURA"), "Fac", "NC").ToString
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
'Temporalmente SE BORRARA
|
'Temporalmente SE BORRARA
|
||||||
Dim Transaccion As String = "" 'Row("Transaccion2").ToString
|
Dim Transaccion As String = "" 'Row("Transaccion2").ToString
|
||||||
Dim Folio2 As String = "" 'Row("Folio2").ToString
|
Dim Folio2 As String = "" 'Row("Folio2").ToString
|
||||||
@@ -1550,7 +1551,7 @@ Partial Class General_SaldosIniciales
|
|||||||
CveCompra = ObjCompras.CveCompra
|
CveCompra = ObjCompras.CveCompra
|
||||||
|
|
||||||
'Compra Detalle
|
'Compra Detalle
|
||||||
If Not ObjCompras.AddCompraDetalle(CveCompra, CveUnidadMedida, CvePS, Sucursal.ToEntero, -1, 0, 1, SubTotal, PorcentajeIVA.ToDecimal, SubTotal, 0, "Carga Inicial", -1) Then
|
If Not ObjCompras.AddCompraDetalle(CveCompra, CveUnidadMedida, CvePS, Sucursal.ToEntero, -1, 0, 1, SubTotal, 0.16D, SubTotal, 0, "Carga Inicial", -1, IVAPorcentaje:=PorcentajeIVA.ToDecimal, RetIVAPorcentaje:=RetIVAPorcentaje, RetISRPorcentaje:=RetISRPorcentaje) Then
|
||||||
ErrorCompras = True
|
ErrorCompras = True
|
||||||
Exit For
|
Exit For
|
||||||
End If
|
End If
|
||||||
@@ -1560,7 +1561,13 @@ Partial Class General_SaldosIniciales
|
|||||||
'PrePólizaDetalle
|
'PrePólizaDetalle
|
||||||
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, True, Total, Folio, IIf(TipoDocto = "Fac", 5, 18).ToString.ToEntero, String.Format("{0}-{1}", Serie, Folio), Fecha, -1, -1, CveCompra:=CveCompra, CveProveedor:=CveProveedor, ImporteMX:=Total, CveSubProyecto:=Sucursal.ToEntero) Then ErrorCompras = True : Exit For
|
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, True, Total, Folio, IIf(TipoDocto = "Fac", 5, 18).ToString.ToEntero, String.Format("{0}-{1}", Serie, Folio), Fecha, -1, -1, CveCompra:=CveCompra, CveProveedor:=CveProveedor, ImporteMX:=Total, CveSubProyecto:=Sucursal.ToEntero) Then ErrorCompras = True : Exit For
|
||||||
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, False, SubTotal, Folio, 6, String.Format("{0}-{1}", Serie, Folio), Fecha, -1, -1, CveCompra:=CveCompra, CveProveedor:=CveProveedor, ImporteMX:=SubTotal, CveClasificacion:=CveClasificacion, CveSubProyecto:=Sucursal.ToEntero) Then ErrorCompras = True : Exit For
|
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, False, SubTotal, Folio, 6, String.Format("{0}-{1}", Serie, Folio), Fecha, -1, -1, CveCompra:=CveCompra, CveProveedor:=CveProveedor, ImporteMX:=SubTotal, CveClasificacion:=CveClasificacion, CveSubProyecto:=Sucursal.ToEntero) Then ErrorCompras = True : Exit For
|
||||||
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, False, IVA, Folio, 14, String.Format("{0}-{1}", Serie, Folio), Fecha, -1, -1, CveCompra:=CveCompra, CveProveedor:=CveProveedor, ImporteMX:=IVA, CveSubProyecto:=Sucursal.ToEntero, PorcentajeImpuesto:=PorcentajeIVA.ToDecimal) Then ErrorCompras = True : Exit For
|
|
||||||
|
If IVA > 0 Then
|
||||||
|
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, False, IVA, Folio, 14, String.Format("{0}-{1}", Serie, Folio), Fecha, -1, -1, CveCompra:=CveCompra, CveProveedor:=CveProveedor, ImporteMX:=IVA, CveSubProyecto:=Sucursal.ToEntero, CveClasificacion:=CveClasificacion, PorcentajeImpuesto:=PorcentajeIVA.ToDecimal) Then ErrorCompras = True : Exit For
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
If IEPS > 0 Then If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, False, IEPS, Folio, 25, String.Format("{0}-{1}", Serie, Folio), Fecha, -1, -1, CveCompra:=CveCompra, CveProveedor:=CveProveedor, ImporteMX:=IEPS, CveSubProyecto:=Sucursal.ToEntero) Then ErrorCompras = True : Exit For
|
If IEPS > 0 Then If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, False, IEPS, Folio, 25, String.Format("{0}-{1}", Serie, Folio), Fecha, -1, -1, CveCompra:=CveCompra, CveProveedor:=CveProveedor, ImporteMX:=IEPS, CveSubProyecto:=Sucursal.ToEntero) Then ErrorCompras = True : Exit For
|
||||||
|
|
||||||
If RetIVA > 0 Then If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, True, RetIVA, Folio, 15, String.Format("{0}-{1}", Serie, Folio), Fecha, -1, -1, CveCompra:=CveCompra, CveProveedor:=CveProveedor, ImporteMX:=RetIVA, CveSubProyecto:=Sucursal.ToEntero) Then ErrorCompras = True : Exit For
|
If RetIVA > 0 Then If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, True, RetIVA, Folio, 15, String.Format("{0}-{1}", Serie, Folio), Fecha, -1, -1, CveCompra:=CveCompra, CveProveedor:=CveProveedor, ImporteMX:=RetIVA, CveSubProyecto:=Sucursal.ToEntero) Then ErrorCompras = True : Exit For
|
||||||
@@ -1569,8 +1576,8 @@ Partial Class General_SaldosIniciales
|
|||||||
|
|
||||||
'Saldo
|
'Saldo
|
||||||
If Saldo < Total Then
|
If Saldo < Total Then
|
||||||
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, False, Total - Saldo, Folio, 17, Folio, Fecha, -1, -1, CveCompra:=CveCompra, CveProveedor:=CveProveedor, ImporteMX:=Total - Saldo) Then ErrorCompras = True : Exit For
|
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, False, Total - Saldo, $"{Folio} SALDO INICIAL", 17, Folio, Fecha, -1, -1, CveCompra:=CveCompra, CveProveedor:=CveProveedor, ImporteMX:=Total - Saldo) Then ErrorCompras = True : Exit For
|
||||||
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, True, Total - Saldo, Folio, 95, Folio, Fecha, -1, -1, CveCompra:=CveCompra, CveProveedor:=CveProveedor, ImporteMX:=Total - Saldo) Then ErrorCompras = True : Exit For
|
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, True, Total - Saldo, $"{Folio} SALDO INICIAL", 95, Folio, Fecha, -1, -1, CveCompra:=CveCompra, CveProveedor:=CveProveedor, ImporteMX:=Total - Saldo) Then ErrorCompras = True : Exit For
|
||||||
End If
|
End If
|
||||||
Encontrados = Encontrados + 1
|
Encontrados = Encontrados + 1
|
||||||
|
|
||||||
@@ -2364,8 +2371,8 @@ Partial Class General_SaldosIniciales
|
|||||||
Dim Clasificacion As String = dRow("Clasificacion").ToString.Trim
|
Dim Clasificacion As String = dRow("Clasificacion").ToString.Trim
|
||||||
Dim Categoria As String = dRow("Categoria").ToString.Trim
|
Dim Categoria As String = dRow("Categoria").ToString.Trim
|
||||||
Dim UsoClasificacion As String = dRow("UsoClasificacion").ToString.Trim.ToUpper
|
Dim UsoClasificacion As String = dRow("UsoClasificacion").ToString.Trim.ToUpper
|
||||||
Dim CuentaContableIngreso As String = dRow("CuentaContableIngreso").ToString.Trim
|
Dim CuentaContableIngreso As String = dRow("CuentaContableIngreso").ToString.Trim.Replace("-", "")
|
||||||
Dim CuentaContableGasto As String = dRow("CuentaContableGasto").ToString.Trim
|
Dim CuentaContableGasto As String = dRow("CuentaContableGasto").ToString.Trim.Replace("-", "")
|
||||||
|
|
||||||
Dim CveClasificacion As Integer = -1
|
Dim CveClasificacion As Integer = -1
|
||||||
Dim CveUsoClasificacion As Integer = -1
|
Dim CveUsoClasificacion As Integer = -1
|
||||||
|
|||||||
@@ -157,16 +157,44 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row" >
|
||||||
|
|
||||||
<div class="col-md-2">
|
<div class="col-md-2" style="margin-top: 5px" >
|
||||||
<b>Drección:</b>
|
<b>Dirección:</b>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-4">
|
<div class="col-md-4" style="margin-top: 5px" >
|
||||||
<asp:TextBox ID="TxtDireccion" runat="server" MaxLength="300" CssClass="form-control" />
|
<asp:TextBox ID="TxtDireccion" runat="server" MaxLength="300" CssClass="form-control" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="col-md-2" style="margin-top: 5px" id="DVDatosAdicionalesAcum1" runat="server" visible="false" >
|
||||||
|
<b>Telefono:</b>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4" style="margin-top: 5px" id="DVDatosAdicionalesAcum3" runat="server" visible="false" >
|
||||||
|
<asp:TextBox ID="TxtTelefono" CssClass="form-control" runat="server" MaxLength="10"></asp:TextBox>
|
||||||
|
<ajax:MaskedEditExtender ID="MaskedEditExtender4" runat="server" TargetControlID="TxtTelefono" ClearMaskOnLostFocus="false" MaskType="None" Mask="(999) 999-9999" MessageValidatorTip="true" InputDirection="LeftToRight" ErrorTooltipEnabled="True"></ajax:MaskedEditExtender>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="row" id="DVDatosAdicionalesAcum2" runat="server" visible="false">
|
||||||
|
<div class="col-md-2" style="margin-top: 5px" >
|
||||||
|
<b>Modelo:</b>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4" style="margin-top: 5px;text-align:left">
|
||||||
|
<asp:DropDownList ID="DdlModeloAuto" CssClass="form-control input-sm select2me" runat="server" AppendDataBoundItems="true" CausesValidation="true" DataTextField="ModeloMarca" DataValueField="CveModeloAuto"> </asp:DropDownList>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-2" style="margin-top: 5px" >
|
||||||
|
<b>Año:</b>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4" style="margin-top: 5px" >
|
||||||
|
<asp:TextBox ID="TxtAnio" CssClass="form-control" runat="server" MaxLength="4"></asp:TextBox>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ Imports Extensiones
|
|||||||
Imports System.IO
|
Imports System.IO
|
||||||
Imports System.Data
|
Imports System.Data
|
||||||
Imports Microsoft.Reporting.WebForms
|
Imports Microsoft.Reporting.WebForms
|
||||||
|
Imports ADSNetLibrary.SIGAPI.Models.Sistema
|
||||||
|
|
||||||
'Imports msExcel = Microsoft.Office.Interop.Excel
|
'Imports msExcel = Microsoft.Office.Interop.Excel
|
||||||
'Imports VBIDE
|
'Imports VBIDE
|
||||||
@@ -291,6 +292,7 @@ Partial Class OS_OrdenesServicios
|
|||||||
CargaPSCaracteristicasOpciones()
|
CargaPSCaracteristicasOpciones()
|
||||||
CargaCuentasCaracteristicas()
|
CargaCuentasCaracteristicas()
|
||||||
CargaAlmacen()
|
CargaAlmacen()
|
||||||
|
CargaModelos()
|
||||||
|
|
||||||
CreaDT()
|
CreaDT()
|
||||||
CreaDTPS()
|
CreaDTPS()
|
||||||
@@ -362,6 +364,10 @@ Partial Class OS_OrdenesServicios
|
|||||||
|
|
||||||
|
|
||||||
If UsuarioActual.Empresa.Funcionalidad(531) = "1" Then
|
If UsuarioActual.Empresa.Funcionalidad(531) = "1" Then
|
||||||
|
DVDatosAdicionalesAcum1.Visible = True
|
||||||
|
DVDatosAdicionalesAcum2.Visible = True
|
||||||
|
DVDatosAdicionalesAcum3.Visible = True
|
||||||
|
Else
|
||||||
LblCuentaEquipoTH.Visible = False
|
LblCuentaEquipoTH.Visible = False
|
||||||
DdlCuentaEquipo.Visible = False
|
DdlCuentaEquipo.Visible = False
|
||||||
End If
|
End If
|
||||||
@@ -538,6 +544,12 @@ Partial Class OS_OrdenesServicios
|
|||||||
DivMateriales.Visible = True
|
DivMateriales.Visible = True
|
||||||
ImgImprimir.Visible = True
|
ImgImprimir.Visible = True
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
TxtTelefono.Text = ObjOS.Telefono
|
||||||
|
DdlModeloAuto.SelectedValueExist(ObjOS.CveModeloAuto)
|
||||||
|
TxtAnio.Text = ObjOS.Año
|
||||||
|
|
||||||
CargaEventoBitacora()
|
CargaEventoBitacora()
|
||||||
CargaHistorial()
|
CargaHistorial()
|
||||||
Else
|
Else
|
||||||
@@ -1032,7 +1044,9 @@ Partial Class OS_OrdenesServicios
|
|||||||
|
|
||||||
If Not CveOS > 0 Then
|
If Not CveOS > 0 Then
|
||||||
Dim bandera As Integer = DdlEstatusOS.SelectedValue.ToEntero
|
Dim bandera As Integer = DdlEstatusOS.SelectedValue.ToEntero
|
||||||
If Not ObjOrdenServicio.AddOrdenesServicios(CveCliente, DdlSubProyecto.SelectedValue.ToEntero, TxtSolicito.Text, TxtFechaRecibido.Text.ToDateTime, TxtDescripcion.Text, UsuarioActual.CveUsuario, EstatusOrdenServicio, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveCotizacion, -1, -1, DdlTipoOrdenOS.SelectedValue.ToEntero, CveClienteSucursal:=DdlSucursalCliente.SelectedValue.ToEntero, Direccion:=TxtDireccion.Text) Then
|
If Not ObjOrdenServicio.AddOrdenesServicios(CveCliente, DdlSubProyecto.SelectedValue.ToEntero, TxtSolicito.Text, TxtFechaRecibido.Text.ToDateTime, TxtDescripcion.Text, UsuarioActual.CveUsuario, EstatusOrdenServicio,
|
||||||
|
UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveCotizacion, -1, -1, DdlTipoOrdenOS.SelectedValue.ToEntero, CveClienteSucursal:=DdlSucursalCliente.SelectedValue.ToEntero,
|
||||||
|
Direccion:=TxtDireccion.Text, Telefono:=TxtTelefono.Text, CveModeloAuto:=DdlModeloAuto.SelectedValue.ToEntero, Año:=TxtAnio.Text) Then
|
||||||
Errores = True
|
Errores = True
|
||||||
End If
|
End If
|
||||||
CargaCliente(CveCliente)
|
CargaCliente(CveCliente)
|
||||||
@@ -1129,7 +1143,9 @@ Partial Class OS_OrdenesServicios
|
|||||||
|
|
||||||
Else
|
Else
|
||||||
If CveTecnico = UsuarioActual.CveUsuario Then
|
If CveTecnico = UsuarioActual.CveUsuario Then
|
||||||
If ObjOrdenServicio.UpdateOrdenesServicios(TxtSolicito.Text, TxtFechaRecibido.Text, TxtDescripcion.Text, UsuarioActual.CveUsuario, DdlEstatusOS.SelectedValue.ToEntero, CveOS, UsuarioActual.CveUsuario, DdlTipoOrdenOS.SelectedValue.ToEntero, CveClienteSucursal:=DdlSucursalCliente.SelectedValue.ToEntero, Direccion:=TxtDireccion.Text) Then
|
If ObjOrdenServicio.UpdateOrdenesServicios(TxtSolicito.Text, TxtFechaRecibido.Text, TxtDescripcion.Text, UsuarioActual.CveUsuario, DdlEstatusOS.SelectedValue.ToEntero, CveOS, UsuarioActual.CveUsuario,
|
||||||
|
DdlTipoOrdenOS.SelectedValue.ToEntero, CveClienteSucursal:=DdlSucursalCliente.SelectedValue.ToEntero, Direccion:=TxtDireccion.Text, Telefono:=TxtTelefono.Text,
|
||||||
|
CveModeloAuto:=DdlModeloAuto.SelectedValue.ToEntero, Año:=TxtAnio.Text) Then
|
||||||
For Each Row As DataRow In TmpDT.Rows
|
For Each Row As DataRow In TmpDT.Rows
|
||||||
If Not Errores Then
|
If Not Errores Then
|
||||||
Dim CvePS As Integer = Row("CvePS").ToString.ToEntero
|
Dim CvePS As Integer = Row("CvePS").ToString.ToEntero
|
||||||
@@ -2536,6 +2552,16 @@ Partial Class OS_OrdenesServicios
|
|||||||
DdlAlmacenDestino.DataBind()
|
DdlAlmacenDestino.DataBind()
|
||||||
DdlAlmacenDestino.Items.Insert(0, New ListItem("Seleccione", "-1"))
|
DdlAlmacenDestino.Items.Insert(0, New ListItem("Seleccione", "-1"))
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
|
Private Sub CargaModelos()
|
||||||
|
Dim ObjGral As New ClsGenerales
|
||||||
|
If ObjGral.ModelosAutosGet(1, UsuarioActual.CveEmpresa) Then
|
||||||
|
DdlModeloAuto.DataSource = ObjGral.DtResultados
|
||||||
|
End If
|
||||||
|
DdlModeloAuto.DataBind()
|
||||||
|
DdlModeloAuto.Items.Insert(0, New ListItem("Sin Asignar", "-1"))
|
||||||
|
End Sub
|
||||||
Public Sub ShowDivSolicitarMaterial_Click(sender As Object, e As EventArgs)
|
Public Sub ShowDivSolicitarMaterial_Click(sender As Object, e As EventArgs)
|
||||||
RegistraScript("ShowDivGvSolicitarMaterial();")
|
RegistraScript("ShowDivGvSolicitarMaterial();")
|
||||||
End Sub
|
End Sub
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
<%@ Page Title="Reporte Servicio a Domicilio" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="RepServicioDomicilio.aspx.vb" Inherits="OS_RepServicioDomicilio" %>
|
<%@ Page Title="Reporte Servicio a Domicilio" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="RepServicioDomicilio.aspx.vb" Inherits="OS_RepServicioDomicilio" %>
|
||||||
|
|
||||||
|
<%@ Register Assembly="TimePicker" Namespace="MKB.TimePicker" TagPrefix="cc1" %>
|
||||||
|
|
||||||
|
|
||||||
<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">
|
||||||
@@ -87,19 +90,6 @@
|
|||||||
height: 150px !important;
|
height: 150px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*#overlay a:hover {
|
|
||||||
position: fixed;
|
|
||||||
display: none;
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
top: 0;
|
|
||||||
left: 0;
|
|
||||||
right: 0;
|
|
||||||
bottom: 0;
|
|
||||||
background-color: rgba(0,0,0,0.5);
|
|
||||||
z-index: 2;
|
|
||||||
cursor: pointer;
|
|
||||||
}*/
|
|
||||||
|
|
||||||
|
|
||||||
#moopio a {
|
#moopio a {
|
||||||
@@ -137,8 +127,6 @@
|
|||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content6" ContentPlaceHolderID="C" runat="Server">
|
<asp:Content ID="Content6" ContentPlaceHolderID="C" runat="Server">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<asp:UpdatePanel ID="UPFiltros" runat="server" UpdateMode="Conditional">
|
<asp:UpdatePanel ID="UPFiltros" runat="server" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<div class="portlet solid grey-cascade portlet-filter">
|
<div class="portlet solid grey-cascade portlet-filter">
|
||||||
@@ -159,9 +147,7 @@
|
|||||||
|
|
||||||
<div class="col-md-2">
|
<div class="col-md-2">
|
||||||
<asp:DropDownList ID="DdlSubProyecto" ClientIDMode="Static" DataValueField="CveSubProyecto" DataTextField="SubProyecto" runat="server" CssClass="form-control select2me" Width="150px" AppendDataBoundItems="true"></asp:DropDownList>
|
<asp:DropDownList ID="DdlSubProyecto" ClientIDMode="Static" DataValueField="CveSubProyecto" DataTextField="SubProyecto" runat="server" CssClass="form-control select2me" Width="150px" AppendDataBoundItems="true"></asp:DropDownList>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -177,6 +163,24 @@
|
|||||||
<br />
|
<br />
|
||||||
|
|
||||||
|
|
||||||
|
<asp:UpdatePanel runat="server" ID="UpOrdenesSinAsignar" UpdateMode="Conditional" >
|
||||||
|
<ContentTemplate>
|
||||||
|
<div class="row" runat="server" id="DVOSPendientes" visible="false">
|
||||||
|
<div class="col-md-1">
|
||||||
|
Orden de Servicio:
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4">
|
||||||
|
<asp:DropDownList runat="server" ID="DdlOrdenesSinAsignar" CssClass="select2me" DataValueField="CveOSDetalle" DataTextField="ConceptoDdl" Width="100%"></asp:DropDownList>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-2">
|
||||||
|
<asp:LinkButton runat="server" ID="LnkOrdenesSinAsignarMostarModal" CssClass="Texto" OnClick="LnkOrdenesSinAsignarMostarModal_Click">Asignar</asp:LinkButton>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</ContentTemplate>
|
||||||
|
</asp:UpdatePanel>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12 col-sm-12">
|
<div class="col-md-12 col-sm-12">
|
||||||
|
|
||||||
@@ -411,6 +415,99 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div id="DVModalOSAsginar" class="modal ADS fade" role="dialog">
|
||||||
|
<asp:UpdatePanel class="modal-dialog" runat="server" ID="UpModalOSAsginar" UpdateMode="Conditional">
|
||||||
|
<ContentTemplate>
|
||||||
|
<div class="modal-content">
|
||||||
|
<div class="modal-header ">
|
||||||
|
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||||
|
<h4 class="modal-title">Asignar Orden de Servicio</h4>
|
||||||
|
</div>
|
||||||
|
<div class="modal-body" >
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-12">
|
||||||
|
<div class="form-group form-md-line-input">
|
||||||
|
<asp:Label runat="server" ID="LblModalCliente" Text="" CssClass="form-control"></asp:Label>
|
||||||
|
<label for="<%= LblModalCliente.ClientID.ToString()%>">Cliente: </label>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-12">
|
||||||
|
<div class="form-group form-md-line-input">
|
||||||
|
<asp:Label runat="server" ID="LblModalConcepto" Text="" CssClass="form-control"></asp:Label>
|
||||||
|
<label for="<%= LblModalConcepto.ClientID.ToString()%>">Concepto: </label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-12">
|
||||||
|
<div class="form-group form-md-line-input">
|
||||||
|
<asp:Label runat="server" ID="LblModalSubProyecto" Text="" CssClass="form-control"></asp:Label>
|
||||||
|
<label for="<%= LblModalSubProyecto.ClientID.ToString()%>"><asp:Label runat="server" ID="LblModalSubProyectoLabel"></asp:Label>: </label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="form-group form-md-line-input">
|
||||||
|
<asp:DropDownList ID="DdlTecnicoAsignar" Width="100%" runat="server" CssClass="form-control select2me" DataTextField="Nombre" Visible="true" DataValueField="CveUsuario">
|
||||||
|
</asp:DropDownList>
|
||||||
|
|
||||||
|
<asp:RequiredFieldValidator ID="RfvDdlTecnicoAsignar" InitialValue="-1" runat="server" ControlToValidate="DdlTecnicoAsignar" Display="None"
|
||||||
|
ErrorMessage="El campo <b>''Técnico''</b> es requerido por la aplicación" ValidationGroup="GrpAsignar"></asp:RequiredFieldValidator>
|
||||||
|
<ajax:ValidatorCalloutExtender ID="VCERfvDdlTecnicoAsignar" runat="server" HighlightCssClass="vco" TargetControlID="RfvDdlTecnicoAsignar" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||||
|
|
||||||
|
<label for="<%= DdlTecnicoAsignar.ClientID.ToString()%>">Técnico: </label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="form-group form-md-line-input input-iconright date date-picker date date-picker" style="width:150px">
|
||||||
|
<asp:TextBox ID="TxtModalFechaOS" CssClass="form-control" runat="server" Width="150px"></asp:TextBox>
|
||||||
|
<span class="input-group-btn " style="position: absolute; right: 41px; top: 9px;">
|
||||||
|
<asp:LinkButton ID="LnkTxtModalFechaOS" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
||||||
|
</span>
|
||||||
|
<ajax:MaskedEditExtender ID="METxtModalFechaOS" runat="server" TargetControlID="TxtModalFechaOS" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||||||
|
<ajax:CalendarExtender runat="server" ID="CETxtModalFechaOS" TargetControlID="TxtModalFechaOS" PopupButtonID="LnkTxtModalFechaOS" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||||||
|
|
||||||
|
<asp:RequiredFieldValidator ID="RfvTxtModalFechaOS" runat="server" ControlToValidate="TxtModalFechaOS" Display="None"
|
||||||
|
ErrorMessage="El campo <b>''Fecha''</b> es requerido por la aplicación" ValidationGroup="GrpAsignar"></asp:RequiredFieldValidator>
|
||||||
|
<ajax:ValidatorCalloutExtender ID="VceRfvTxtModalFechaOS" runat="server" HighlightCssClass="vco" TargetControlID="RfvTxtModalFechaOS" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||||
|
|
||||||
|
<label for="<%= TxtModalFechaOS.ClientID.ToString()%>">Fecha: </label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="form-group form-md-line-input">
|
||||||
|
<cc1:TimeSelector ID="TSTimeSelector" runat="server" DisplaySeconds="false" DisplayButtons="false" Visible="true" CssClass="form-control" Font-Size="13pt"></cc1:TimeSelector>
|
||||||
|
<label for="<%= TSTimeSelector.ClientID.ToString()%>">Hora Servicio: </label>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="modal-footer">
|
||||||
|
<asp:LinkButton runat="server" ID="LnkModalAsignar" CssClass="btn btn-success" Text="Asignar" OnClick="LnkModalAsignar_Click" ValidationGroup="GrpAsignar" ></asp:LinkButton>
|
||||||
|
<button type="button" class="btn btn-default" data-dismiss="modal">Cerrar</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</ContentTemplate>
|
||||||
|
</asp:UpdatePanel>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
||||||
@@ -454,10 +551,7 @@
|
|||||||
|
|
||||||
function selectDate(start, end, allDay) {
|
function selectDate(start, end, allDay) {
|
||||||
$('#ModalAgenda').modal('show');
|
$('#ModalAgenda').modal('show');
|
||||||
$("#SpanTituloAgenda").html("Agregar Evento");;
|
$("#SpanTituloAgenda").html("Agregar Evento");
|
||||||
|
|
||||||
//$("#< %=BtnGuardar.ClientID%>").val('Guardar');
|
|
||||||
//$("#< %=BtnEliminar.ClientID%>").css("display", "none");
|
|
||||||
|
|
||||||
$("#HdnCveEvento").val(-1);
|
$("#HdnCveEvento").val(-1);
|
||||||
|
|
||||||
@@ -490,9 +584,7 @@
|
|||||||
|
|
||||||
function updateEvent(event, element) {
|
function updateEvent(event, element) {
|
||||||
$('#ModalAgenda').modal('show');
|
$('#ModalAgenda').modal('show');
|
||||||
//$("#SpanTituloAgenda").html("Actualizar Evento");;
|
|
||||||
//$("#< %=BtnGuardar.ClientID%>").val('Actualizar');
|
|
||||||
//$("#< %=BtnEliminar.ClientID%>").css("display", "");
|
|
||||||
|
|
||||||
$("#DivDescripcionUpdate").css("display", "block");
|
$("#DivDescripcionUpdate").css("display", "block");
|
||||||
$("#<%=TxtDescripcionAgenda.ClientID%>").css("display", "none");
|
$("#<%=TxtDescripcionAgenda.ClientID%>").css("display", "none");
|
||||||
@@ -520,8 +612,7 @@
|
|||||||
$("#TxtFechaFinAgenda").val("" + event.end.format("DD/MM/YYYY HH:mm"));
|
$("#TxtFechaFinAgenda").val("" + event.end.format("DD/MM/YYYY HH:mm"));
|
||||||
|
|
||||||
//Identifica el tipo de Fecha Termino de la Recurrencia
|
//Identifica el tipo de Fecha Termino de la Recurrencia
|
||||||
if (event.recurrenciafin == 0) {
|
if (event.recurrenciafin == 0) {
|
||||||
//$("#RBSinFechaFinUpdate").prop('checked', true);
|
|
||||||
$("#TxtFrecuencia").val('0');
|
$("#TxtFrecuencia").val('0');
|
||||||
} else if (!isNaN(event.recurrenciafin)) {
|
} else if (!isNaN(event.recurrenciafin)) {
|
||||||
$("#RBNumeroOcurrencias").prop('checked', true);
|
$("#RBNumeroOcurrencias").prop('checked', true);
|
||||||
@@ -619,7 +710,8 @@
|
|||||||
// if addresult is -1, means event was not added
|
// if addresult is -1, means event was not added
|
||||||
// alert("added key: " + addResult);
|
// alert("added key: " + addResult);
|
||||||
|
|
||||||
if (addResult != -1) {
|
if (addResult != -1) {
|
||||||
|
|
||||||
$('#calendar').fullCalendar('renderEvent',
|
$('#calendar').fullCalendar('renderEvent',
|
||||||
{
|
{
|
||||||
title: $("#addEventName").val(),
|
title: $("#addEventName").val(),
|
||||||
@@ -632,8 +724,12 @@
|
|||||||
true // make the event "stick"
|
true // make the event "stick"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$('#calendar').fullCalendar('option', 'minTime', '06:00:00');
|
||||||
|
$('#calendar').fullCalendar('option', 'maxTime', '17:00:00');
|
||||||
|
|
||||||
$('#calendar').fullCalendar('unselect');
|
$('#calendar').fullCalendar('unselect');
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -770,6 +866,8 @@
|
|||||||
selectHelper: true,
|
selectHelper: true,
|
||||||
select: selectDate,
|
select: selectDate,
|
||||||
editable: true,
|
editable: true,
|
||||||
|
minTime: "08:00:00",
|
||||||
|
maxTime: "19:00:00",
|
||||||
events: {
|
events: {
|
||||||
url: '/Ashx/CargaEventos.ashx',
|
url: '/Ashx/CargaEventos.ashx',
|
||||||
type: 'GET',
|
type: 'GET',
|
||||||
|
|||||||
@@ -5,6 +5,8 @@ Imports Extensiones
|
|||||||
Imports System.Data
|
Imports System.Data
|
||||||
Imports Microsoft.Reporting.WebForms
|
Imports Microsoft.Reporting.WebForms
|
||||||
Imports System.Web.Services
|
Imports System.Web.Services
|
||||||
|
Imports Telerik.Web.UI
|
||||||
|
Imports APP_Code_CSharp
|
||||||
|
|
||||||
Partial Class OS_RepServicioDomicilio
|
Partial Class OS_RepServicioDomicilio
|
||||||
Inherits ClsPaginas
|
Inherits ClsPaginas
|
||||||
@@ -59,6 +61,126 @@ Partial Class OS_RepServicioDomicilio
|
|||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
|
||||||
|
Private Property DT_OSSubProyectos As DataTable
|
||||||
|
Get
|
||||||
|
If ViewState("DT_OSSubProyectos") Is Nothing Then
|
||||||
|
ViewState("DT_OSSubProyectos") = New DataTable
|
||||||
|
End If
|
||||||
|
Return DirectCast(ViewState("DT_OSSubProyectos"), DataTable)
|
||||||
|
|
||||||
|
End Get
|
||||||
|
|
||||||
|
Set(value As DataTable)
|
||||||
|
ViewState("DT_OSSubProyectos") = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Private Property DT_OSNoAsignadas As DataTable
|
||||||
|
Get
|
||||||
|
If ViewState("DT_OSNoAsignadas") Is Nothing Then
|
||||||
|
ViewState("DT_OSNoAsignadas") = New DataTable
|
||||||
|
End If
|
||||||
|
Return DirectCast(ViewState("DT_OSNoAsignadas"), DataTable)
|
||||||
|
|
||||||
|
End Get
|
||||||
|
|
||||||
|
Set(value As DataTable)
|
||||||
|
ViewState("DT_OSNoAsignadas") = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Private Property CveOSDetalleAsignar As Integer
|
||||||
|
Get
|
||||||
|
If ViewState("CveOSDetalleAsignar") Is Nothing Then
|
||||||
|
ViewState("CveOSDetalleAsignar") = -1
|
||||||
|
End If
|
||||||
|
Return ViewState("CveOSDetalleAsignar").ToString.ToEntero
|
||||||
|
End Get
|
||||||
|
Set(value As Integer)
|
||||||
|
ViewState("CveOSDetalleAsignar") = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Private Property CveSubProyectoAsignar As Integer
|
||||||
|
Get
|
||||||
|
If ViewState("CveSubProyectoAsignar") Is Nothing Then
|
||||||
|
ViewState("CveSubProyectoAsignar") = -1
|
||||||
|
End If
|
||||||
|
Return ViewState("CveSubProyectoAsignar").ToString.ToEntero
|
||||||
|
End Get
|
||||||
|
Set(value As Integer)
|
||||||
|
ViewState("CveSubProyectoAsignar") = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Private Property CveOSAsignar As Integer
|
||||||
|
Get
|
||||||
|
If ViewState("CveOSAsignar") Is Nothing Then
|
||||||
|
ViewState("CveOSAsignar") = -1
|
||||||
|
End If
|
||||||
|
Return ViewState("CveOSAsignar").ToString.ToEntero
|
||||||
|
End Get
|
||||||
|
Set(value As Integer)
|
||||||
|
ViewState("CveOSAsignar") = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
|
||||||
|
Private Property FolioAsignar As String
|
||||||
|
Get
|
||||||
|
If ViewState("FolioAsignar") Is Nothing Then
|
||||||
|
ViewState("FolioAsignar") = ""
|
||||||
|
End If
|
||||||
|
Return ViewState("FolioAsignar").ToString
|
||||||
|
End Get
|
||||||
|
Set(value As String)
|
||||||
|
ViewState("FolioAsignar") = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
|
||||||
|
Private Property ConceptoAsignar As String
|
||||||
|
Get
|
||||||
|
If ViewState("ConceptoAsignar") Is Nothing Then
|
||||||
|
ViewState("ConceptoAsignar") = ""
|
||||||
|
End If
|
||||||
|
Return ViewState("ConceptoAsignar").ToString
|
||||||
|
End Get
|
||||||
|
Set(value As String)
|
||||||
|
ViewState("ConceptoAsignar") = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
Private Property ClienteAsignar As String
|
||||||
|
Get
|
||||||
|
If ViewState("ClienteAsignar") Is Nothing Then
|
||||||
|
ViewState("ClienteAsignar") = ""
|
||||||
|
End If
|
||||||
|
Return ViewState("ClienteAsignar").ToString
|
||||||
|
End Get
|
||||||
|
Set(value As String)
|
||||||
|
ViewState("ClienteAsignar") = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
Private Property SubProyectoAsignar As String
|
||||||
|
Get
|
||||||
|
If ViewState("SubProyectoAsignar") Is Nothing Then
|
||||||
|
ViewState("SubProyectoAsignar") = ""
|
||||||
|
End If
|
||||||
|
Return ViewState("SubProyectoAsignar").ToString
|
||||||
|
End Get
|
||||||
|
Set(value As String)
|
||||||
|
ViewState("SubProyectoAsignar") = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
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
|
||||||
@@ -66,12 +188,14 @@ Partial Class OS_RepServicioDomicilio
|
|||||||
|
|
||||||
CargarCentrosDeCosto(Nothing, DdlSubProyecto, Nothing, LblSubProyectoEtiqueta)
|
CargarCentrosDeCosto(Nothing, DdlSubProyecto, Nothing, LblSubProyectoEtiqueta)
|
||||||
LblSubProyectoFiltro.Text = LblSubProyectoEtiqueta.Text
|
LblSubProyectoFiltro.Text = LblSubProyectoEtiqueta.Text
|
||||||
|
LblModalSubProyectoLabel.Text = LblSubProyectoEtiqueta.Text
|
||||||
DdlTecnico.DataSource = GlobalDTUsuarios(CveEmpresa:=UsuarioActual.CveEmpresa)
|
CargaTecnicos()
|
||||||
DdlTecnico.DataBind()
|
ConsultaOrdenesServiciosNoAsignadas()
|
||||||
DdlTecnico.Items.Insert(0, New ListItem("Todos", "-1"))
|
CargaOrdenesServiciosNoAsignadas()
|
||||||
|
CargaTecnicosAsignar()
|
||||||
|
|
||||||
InicializaCalendar()
|
InicializaCalendar()
|
||||||
|
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -115,6 +239,46 @@ Partial Class OS_RepServicioDomicilio
|
|||||||
|
|
||||||
ObjEventos.Dispose()
|
ObjEventos.Dispose()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Private Sub CargaTecnicos()
|
||||||
|
DdlTecnico.DataSource = GlobalDTUsuarios(CveEmpresa:=UsuarioActual.CveEmpresa)
|
||||||
|
DdlTecnico.DataBind()
|
||||||
|
DdlTecnico.Items.Insert(0, New ListItem("Todos", "-1"))
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub CargaTecnicosAsignar()
|
||||||
|
|
||||||
|
|
||||||
|
Dim ObjOS As New ClsOS
|
||||||
|
Dim TecnicosSubProyectos As New DataTable
|
||||||
|
Dim TecnicosResultado As New DataTable
|
||||||
|
|
||||||
|
If ObjOS.GetSubProyectosEstatusInicial(-1, 3, UsuarioActual.CveEmpresa) Then
|
||||||
|
TecnicosSubProyectos = ObjOS.DtResultados
|
||||||
|
End If
|
||||||
|
|
||||||
|
For Each SubProyecto As DataRow In DT_OSSubProyectos.Rows
|
||||||
|
Dim TecnicosSubProyectoAux As DataTable = TecnicosSubProyectos.FiltraParametros(String.Format("SubProyecto = '{0}'", SubProyecto.Item("SubProyecto")))
|
||||||
|
If TecnicosSubProyectoAux.Rows.Count > 0 Then
|
||||||
|
Dim EstatusDeTipoProcesoMenor As Integer = TecnicosSubProyectoAux.Rows(0).Item("CveEstatusOrdenServicio").ToString.ToEntero
|
||||||
|
Dim dtAuxiliar As New DataTable
|
||||||
|
dtAuxiliar = TecnicosSubProyectos.FiltraParametros(String.Format("SubProyecto = '{0}' AND CveEstatusOrdenServicio = {1}", SubProyecto.Item("SubProyecto"), EstatusDeTipoProcesoMenor), "", {"CveUsuario", "Nombre"})
|
||||||
|
TecnicosResultado.Merge(dtAuxiliar)
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
'DtTecnicosSubProyectos = TecnicosResultado
|
||||||
|
|
||||||
|
ObjOS.Dispose()
|
||||||
|
|
||||||
|
DdlTecnicoAsignar.DataSource = TecnicosResultado
|
||||||
|
DdlTecnicoAsignar.DataBind()
|
||||||
|
DdlTecnicoAsignar.Items.Insert(0, New ListItem("Seleccione uno", "-1"))
|
||||||
|
|
||||||
|
UpModalOSAsginar.Update()
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
Protected Sub BtnGuardar_Click(sender As Object, e As EventArgs)
|
Protected Sub BtnGuardar_Click(sender As Object, e As EventArgs)
|
||||||
Dim ObjEventos As New ClsOIEventos
|
Dim ObjEventos As New ClsOIEventos
|
||||||
|
|
||||||
@@ -281,4 +445,325 @@ Partial Class OS_RepServicioDomicilio
|
|||||||
Protected Sub BtnConsultar_Click(sender As Object, e As EventArgs)
|
Protected Sub BtnConsultar_Click(sender As Object, e As EventArgs)
|
||||||
RegistraScript("Calendario();")
|
RegistraScript("Calendario();")
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
|
Private Sub CargaOrdenesServiciosNoAsignadas()
|
||||||
|
|
||||||
|
DdlOrdenesSinAsignar.DataSource = DT_OSNoAsignadas
|
||||||
|
DdlOrdenesSinAsignar.DataBind()
|
||||||
|
UpOrdenesSinAsignar.Update()
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
|
Private Sub ConsultaOrdenesServiciosNoAsignadas()
|
||||||
|
|
||||||
|
Dim CveEstatusOrdenServicio As Integer = GlobalDTEstatusOrdenServicios(UsuarioActual.CveEmpresa).FiltroPrimeroValor("CveEstatusOrdenServicio", "TipoEstatus=1").ToEntero
|
||||||
|
|
||||||
|
If CveEstatusOrdenServicio = 0 Then
|
||||||
|
Alert("No se pudo carga el estatus", TipoMensaje.MsgAdvertencia)
|
||||||
|
Exit Sub
|
||||||
|
End If
|
||||||
|
|
||||||
|
Dim ObjOS As New ClsOS
|
||||||
|
|
||||||
|
If ObjOS.GetOrdenesServiciosNoAsignadas(-1, -1, CveEstatusOrdenServicio, UsuarioActual.CveEmpresa, "-1", "-1") Then
|
||||||
|
DT_OSSubProyectos = ObjOS.DtResultados.FiltraParametros("", "", {"CveSubProyecto", "SubProyecto"})
|
||||||
|
DT_OSNoAsignadas = ObjOS.DtResultados
|
||||||
|
Else
|
||||||
|
|
||||||
|
DT_OSSubProyectos = New DataTable
|
||||||
|
DT_OSNoAsignadas = New DataTable
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
ObjOS.Dispose()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
If DT_OSNoAsignadas.Rows.Count > 0 Then
|
||||||
|
DVOSPendientes.Visible = True
|
||||||
|
Else
|
||||||
|
DVOSPendientes.Visible = False
|
||||||
|
End If
|
||||||
|
UpOrdenesSinAsignar.Update()
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Protected Sub LnkOrdenesSinAsignarMostarModal_Click(sender As Object, e As EventArgs)
|
||||||
|
|
||||||
|
CveOSDetalleAsignar = -1
|
||||||
|
CveOSAsignar = -1
|
||||||
|
CveSubProyectoAsignar = -1
|
||||||
|
Dim DTable As DataTable = DT_OSNoAsignadas.FiltraParametros($"CveOSDetalle={DdlOrdenesSinAsignar.SelectedValue}")
|
||||||
|
|
||||||
|
|
||||||
|
If DTable.Rows.Count = 1 Then
|
||||||
|
|
||||||
|
CveOSDetalleAsignar = DTable.Rows(0)("CveOSDetalle").ToString.ToEntero
|
||||||
|
CveSubProyectoAsignar = DTable.Rows(0)("CveSubProyecto").ToString.ToEntero
|
||||||
|
CveOSAsignar = DTable.Rows(0)("CveOS").ToString.ToEntero
|
||||||
|
FolioAsignar = DTable.Rows(0)("Folio").ToString
|
||||||
|
|
||||||
|
LblModalConcepto.Text = DTable.Rows(0)("Concepto").ToString
|
||||||
|
LblModalCliente.Text = DTable.Rows(0)("Nombre").ToString
|
||||||
|
LblModalSubProyecto.Text = DTable.Rows(0)("SubProyecto").ToString
|
||||||
|
|
||||||
|
|
||||||
|
UpModalOSAsginar.Update()
|
||||||
|
RegistraScript("$('#DVModalOSAsginar').modal('show');")
|
||||||
|
Else
|
||||||
|
Alert("Error al cargar datos.")
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Protected Sub LnkModalAsignar_Click(sender As Object, e As EventArgs)
|
||||||
|
|
||||||
|
Dim TieneError As Boolean = False
|
||||||
|
Dim CveEstatusOS = GlobalDTEstatusOrdenServicios(UsuarioActual.CveEmpresa).FiltroPrimeroValor("CveEstatusOrdenServicio", "TipoEstatus = 2", "CveEstatusOrdenServicio ASC").ToEntero
|
||||||
|
|
||||||
|
Dim CorreoAsignado As String = ""
|
||||||
|
|
||||||
|
Dim picker As MKB.TimePicker.TimeSelector = TSTimeSelector
|
||||||
|
Dim time As DateTime
|
||||||
|
time = DateTime.Parse(String.Format("{0} {1}:{2} {3}", TxtModalFechaOS.Text, picker.Hour, picker.Minute, picker.AmPm))
|
||||||
|
|
||||||
|
|
||||||
|
Dim ObjOS As New ClsOS
|
||||||
|
ObjOS.IniciaTransacSQL()
|
||||||
|
|
||||||
|
If ObjOS.GetSubProyectosEstatusInicial(DdlTecnicoAsignar.SelectedValue.ToEntero, 3, UsuarioActual.CveEmpresa) Then
|
||||||
|
Dim subProyectoDelTecnico As DataTable
|
||||||
|
subProyectoDelTecnico = ObjOS.DtResultados.FiltraParametros($"CveSubProyecto = {CveSubProyectoAsignar}")
|
||||||
|
If subProyectoDelTecnico.Rows.Count > 0 Then
|
||||||
|
If Not ObjOS.UpdateOrdenesServiciosAsignadas(CveOSDetalleAsignar, DdlTecnicoAsignar.SelectedValue.ToEntero, TxtModalFechaOS.Text.ToDate, time, UsuarioActual.CveEmpresa) Then
|
||||||
|
TieneError = True
|
||||||
|
End If
|
||||||
|
Else
|
||||||
|
Alert("El técnico y la Orden de Servicio deben pertenecer al mismo subProyecto", TipoMensaje.MsgAdvertencia)
|
||||||
|
TieneError = True
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
|
If Not TieneError Then
|
||||||
|
|
||||||
|
If Not ObjOS.UpdateOrdenesServiciosEstatus(CveEstatusOS, UsuarioActual.CveUsuario, CveOSAsignar) Then
|
||||||
|
TieneError = True
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
If Not TieneError Then
|
||||||
|
|
||||||
|
Dim RecurrenciaTipo = 0, Frecuencia = -1, DiasSemana = "-1", Dias = -1, Mes = -1, RecurrenciaFin = "-1"
|
||||||
|
Dim OIDescripcion As String = $"{DdlTecnicoAsignar.SelectedItem.Text} <b><a href='/OS/OrdenesServicios.aspx?CveOS={CveOSAsignar}' target='_blank' class='Texto' >Orden de servicio {FolioAsignar} </a></b>"
|
||||||
|
|
||||||
|
Dim ObjEventos As New ClsOIEventos(ObjOS.IniciaTransacSQL())
|
||||||
|
If Not ObjEventos.AddEventoAgenda(2, DdlTecnicoAsignar.SelectedItem.Text, OIDescripcion, 2, time, time.AddHours(1), UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa,
|
||||||
|
RecurrenciaTipo:=RecurrenciaTipo, Frecuencia:=Frecuencia, DiasSemana:=DiasSemana, Dia:=Dias, Mes:=Mes, RecurrenciaFin:=RecurrenciaFin, CveTipoEvento:=2,
|
||||||
|
Importe:=0, CveOS:=CveOSAsignar, CveSubProyecto:=CveSubProyectoAsignar) Then
|
||||||
|
TieneError = True
|
||||||
|
End If
|
||||||
|
|
||||||
|
End If
|
||||||
|
|
||||||
|
CorreoAsignado = GlobalDTUsuarios(DdlTecnicoAsignar.SelectedValue.ToEntero).Rows(0)("Correo").ToString
|
||||||
|
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
If Not TieneError Then
|
||||||
|
ObjOS.Commit()
|
||||||
|
Else
|
||||||
|
ObjOS.RollBack()
|
||||||
|
End If
|
||||||
|
|
||||||
|
ObjOS.Dispose()
|
||||||
|
|
||||||
|
If Not TieneError And CorreoAsignado.Trim.Length > 0 Then
|
||||||
|
MandaCorreOS(CveOSAsignar, CorreoAsignado)
|
||||||
|
End If
|
||||||
|
|
||||||
|
If Not TieneError Then
|
||||||
|
ConsultaOrdenesServiciosNoAsignadas()
|
||||||
|
Alert("Orden asignada correctamente.")
|
||||||
|
RegistraScript("$('#DVModalOSAsginar').modal('hide');Calendario();")
|
||||||
|
|
||||||
|
End If
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
|
Private Sub MandaCorreOS(CveOS As Integer, CorreoUsuarioAsignado As String)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Dim ObjOS As New ClsOS()
|
||||||
|
Dim params As New List(Of ReportParameter)
|
||||||
|
Dim CveFolio = ""
|
||||||
|
|
||||||
|
Dim TmpDTOS = New DataTable
|
||||||
|
TmpDTOS.Columns.Add("CveOSDetalle", GetType(Integer))
|
||||||
|
|
||||||
|
TmpDTOS.Columns.Add("CveClasificacion", GetType(Integer))
|
||||||
|
TmpDTOS.Columns.Add("Clasificacion", GetType(String))
|
||||||
|
TmpDTOS.Columns.Add("CvePS", GetType(Integer))
|
||||||
|
TmpDTOS.Columns.Add("CveUM", GetType(Integer))
|
||||||
|
TmpDTOS.Columns.Add("UM", GetType(String))
|
||||||
|
TmpDTOS.Columns.Add("Cantidad", GetType(Integer))
|
||||||
|
TmpDTOS.Columns.Add("PS", GetType(String))
|
||||||
|
TmpDTOS.Columns.Add("Especificaciones", GetType(String))
|
||||||
|
TmpDTOS.Columns.Add("Materiales", GetType(String))
|
||||||
|
TmpDTOS.Columns.Add("CveCuentaEquipo", GetType(Integer))
|
||||||
|
TmpDTOS.Columns.Add("Observaciones", GetType(String))
|
||||||
|
TmpDTOS.Columns.Add("FechaAtencion", GetType(String))
|
||||||
|
TmpDTOS.Columns.Add("CveUsuarioAtendio", GetType(Integer))
|
||||||
|
TmpDTOS.Columns.Add("UsuarioAtendio", GetType(String))
|
||||||
|
TmpDTOS.Columns.Add("FechaTermino", GetType(String))
|
||||||
|
TmpDTOS.Columns.Add("FechaEntrega", GetType(String))
|
||||||
|
TmpDTOS.Columns.Add("CveUsuarioEntrego", GetType(Integer))
|
||||||
|
TmpDTOS.Columns.Add("UsuarioEntrego", GetType(String))
|
||||||
|
TmpDTOS.Columns.Add("SeFacturara", GetType(String))
|
||||||
|
TmpDTOS.Columns.Add("SeSuperviso", GetType(String))
|
||||||
|
TmpDTOS.Columns.Add("Estatus", GetType(String))
|
||||||
|
TmpDTOS.Columns.Add("Archivo", GetType(String))
|
||||||
|
TmpDTOS.Columns.Add("ComentarioTecnico", GetType(String))
|
||||||
|
|
||||||
|
|
||||||
|
Dim TmpDTMaterialesOS = New DataTable
|
||||||
|
TmpDTMaterialesOS.Columns.Add("CveOSDetalle", GetType(Integer))
|
||||||
|
TmpDTMaterialesOS.Columns.Add("CveConsecutivo", GetType(Integer))
|
||||||
|
TmpDTMaterialesOS.Columns.Add("CveConsecutivoDetalle", GetType(Integer))
|
||||||
|
TmpDTMaterialesOS.Columns.Add("CveMaterial", GetType(Integer))
|
||||||
|
TmpDTMaterialesOS.Columns.Add("Cantidad", GetType(Integer))
|
||||||
|
TmpDTMaterialesOS.Columns.Add("CveClasificacion", GetType(Integer))
|
||||||
|
TmpDTMaterialesOS.Columns.Add("CvePS", GetType(String))
|
||||||
|
TmpDTMaterialesOS.Columns.Add("CveUM", GetType(String))
|
||||||
|
TmpDTMaterialesOS.Columns.Add("Clasificacion", GetType(String))
|
||||||
|
TmpDTMaterialesOS.Columns.Add("PS", GetType(String))
|
||||||
|
TmpDTMaterialesOS.Columns.Add("UM", GetType(String))
|
||||||
|
|
||||||
|
Dim FolioOS As String = ""
|
||||||
|
|
||||||
|
Dim RutaReporte As New System.IO.FileInfo(String.Format("{0}Formatos/OrdenServicio.rdlc", UsuarioActual.Empresa.Ruta))
|
||||||
|
|
||||||
|
If ObjOS.GetOrdenesServicios(CveOS, -1, -1, -1, -1, UsuarioActual.CveEmpresa) Then
|
||||||
|
If ObjOS.DtResultados.Rows.Count > 0 Then
|
||||||
|
|
||||||
|
Dim dtOS As DataTable = ObjOS.DtResultados
|
||||||
|
Dim dr As DataRow = dtOS.Rows(0)
|
||||||
|
params.Add(New ReportParameter("Cliente", dr("Cliente").ToString))
|
||||||
|
params.Add(New ReportParameter("Solicito", dr("PersonaSolicito").ToString))
|
||||||
|
params.Add(New ReportParameter("Descripcion", dr("Descripcion").ToString))
|
||||||
|
params.Add(New ReportParameter("Recibio", UsuarioActual.Nombre))
|
||||||
|
params.Add(New ReportParameter("FechaRecibido", dr("FechaRecepcion").ToString))
|
||||||
|
params.Add(New ReportParameter("FolioOS", dr("Folio").ToString))
|
||||||
|
FolioOS = dr("Folio").ToString
|
||||||
|
params.Add(New ReportParameter("ClienteTelefono", dr("Telefono").ToString))
|
||||||
|
params.Add(New ReportParameter("ClienteCalle", dr("Direccion").ToString))
|
||||||
|
params.Add(New ReportParameter("ClienteColonia", dr("Colonia").ToString))
|
||||||
|
params.Add(New ReportParameter("ClienteCiudad", dr("Ciudad").ToString))
|
||||||
|
params.Add(New ReportParameter("ClienteEstado", dr("Estado").ToString))
|
||||||
|
CveFolio = dr("Folio").ToString
|
||||||
|
|
||||||
|
If RutaReporte.Exists Then
|
||||||
|
params.Add(New ReportParameter("NoDeCliente", dr("CveCliente").ToString))
|
||||||
|
params.Add(New ReportParameter("RFC", dr("RFC").ToString))
|
||||||
|
params.Add(New ReportParameter("Vendedor", " "))
|
||||||
|
params.Add(New ReportParameter("Correo", dr("Correo").ToString))
|
||||||
|
params.Add(New ReportParameter("CodigoDeServicio", dr("CveOS").ToString))
|
||||||
|
params.Add(New ReportParameter("Sucursal", dr("SubProyecto").ToString))
|
||||||
|
params.Add(New ReportParameter("TipoServicio", dr("TipoServicio").ToString))
|
||||||
|
params.Add(New ReportParameter("TipoEquipo", dr("TipoEquipo").ToString))
|
||||||
|
params.Add(New ReportParameter("Descripcion", dr("Descripcion").ToString))
|
||||||
|
params.Add(New ReportParameter("Copia", "Copia: Original"))
|
||||||
|
params.Add(New ReportParameter("Equipo", dr("Equipo").ToString))
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
|
Dim Imagen As New System.IO.FileInfo(String.Format("{0}/Logo.png", UsuarioActual.Empresa.Ruta))
|
||||||
|
|
||||||
|
If Not RutaReporte.Exists Then
|
||||||
|
|
||||||
|
RutaReporte = New System.IO.FileInfo(String.Format("{0}Empresas\Grales\Formatos\OrdenServicio.rdlc", ModExtensiones.DirectorioBaseEmpresas))
|
||||||
|
|
||||||
|
params.Add(New ReportParameter("NombreEmpresa", UsuarioActual.Empresa.Empresa))
|
||||||
|
params.Add(New ReportParameter("UsuarioImprimio", UsuarioActual.Nombre))
|
||||||
|
params.Add(New ReportParameter("FechaImpresion", Now.ToDateTime.ToShortDateString))
|
||||||
|
|
||||||
|
If Imagen.Exists Then
|
||||||
|
params.Add(New ReportParameter("LogoPath", $"file://{Imagen.FullName}"))
|
||||||
|
Else
|
||||||
|
params.Add(New ReportParameter("LogoPath", ""))
|
||||||
|
End If
|
||||||
|
|
||||||
|
End If
|
||||||
|
|
||||||
|
If ObjOS.GetOrdenesServiciosDetalle(CveOS) Then
|
||||||
|
TmpDTOS = ObjOS.DtResultados
|
||||||
|
End If
|
||||||
|
|
||||||
|
If ObjOS.GetDetalleMateriales(-1, CveOS) Then
|
||||||
|
TmpDTMaterialesOS = ObjOS.DtResultados
|
||||||
|
End If
|
||||||
|
Dim lrds As New List(Of ReportDataSource)
|
||||||
|
Dim rds As New ReportDataSource With {.Name = "DataSet2", .Value = TmpDTMaterialesOS}
|
||||||
|
Dim rds2 As New ReportDataSource With {.Name = "DataSet1", .Value = TmpDTOS}
|
||||||
|
|
||||||
|
lrds.Add(rds)
|
||||||
|
lrds.Add(rds2)
|
||||||
|
ObjOS.Dispose()
|
||||||
|
|
||||||
|
Dim ReporteByte As Byte() = StreamPDF(RutaReporte.FullName, lrds, params, NombreArchivo:=String.Format("OrdenServicio-{0}", CveFolio))
|
||||||
|
|
||||||
|
If ReporteByte IsNot Nothing Then
|
||||||
|
Try
|
||||||
|
ViewState("Para") = CorreoUsuarioAsignado
|
||||||
|
ViewState("ArrayCC") = ""
|
||||||
|
ViewState("Asunto") = "Asinación Orden de Servicio"
|
||||||
|
ViewState("FolioOSMail") = FolioOS
|
||||||
|
ViewState("Body") = "Asinación Orden de Servicio"
|
||||||
|
|
||||||
|
|
||||||
|
ViewState("bytesOS") = ReporteByte
|
||||||
|
Dim Hilo As New Threading.Thread(AddressOf SendmailOS)
|
||||||
|
Hilo.Start()
|
||||||
|
Catch ex As Exception
|
||||||
|
GuardaLogAD($"Error al enviar correo de OS {ex.StackTrace}")
|
||||||
|
End Try
|
||||||
|
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub SendmailOS()
|
||||||
|
|
||||||
|
Dim Asunto, Para, ArrayCC, Body As String
|
||||||
|
Asunto = If(IsNothing(ViewState("Asunto")), "", ViewState("Asunto").ToString)
|
||||||
|
Para = If(IsNothing(ViewState("Para")), "", ViewState("Para").ToString)
|
||||||
|
ArrayCC = If(IsNothing(ViewState("ArrayCC")), "", ViewState("ArrayCC").ToString)
|
||||||
|
|
||||||
|
Body = If(IsNothing(ViewState("Body")), "", ViewState("Body").ToString)
|
||||||
|
|
||||||
|
|
||||||
|
Dim Mail As New ClsSisMail()
|
||||||
|
Dim LSRutasMail As New List(Of ClsSisMail.ArchivoMail)
|
||||||
|
LSRutasMail.Add(New ClsSisMail.ArchivoMail With {.NombreArchivo = $"OS_{ViewState("FolioOSMail") }.pdf", .ArchivoBinario = DirectCast(ViewState("bytesOS"), Byte())})
|
||||||
|
Mail.SendMail(ClsPaginas.EmpresaNotificaciones, Para, Asunto, Body, ArrayCC, LSRutasMail)
|
||||||
|
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ Partial Class Sistemas_CatSesiones
|
|||||||
|
|
||||||
Protected Sub BtnCargar_Click(sender As Object, e As EventArgs) Handles BtnCargar.Click
|
Protected Sub BtnCargar_Click(sender As Object, e As EventArgs) Handles BtnCargar.Click
|
||||||
If DdlVariable.SelectedItem.Value = "GlobalDTUsuarios" Then
|
If DdlVariable.SelectedItem.Value = "GlobalDTUsuarios" Then
|
||||||
CargaUsuarios()
|
CargaUsuarios()
|
||||||
ElseIf DdlVariable.SelectedItem.Value = "GlobalDTUsuarioResponsable" Then
|
ElseIf DdlVariable.SelectedItem.Value = "GlobalDTUsuarioResponsable" Then
|
||||||
CargaUsuariosResponsable()
|
CargaUsuariosResponsable()
|
||||||
ElseIf DdlVariable.SelectedItem.Value = "GlobalDTAlmacenUsuarios" Then
|
ElseIf DdlVariable.SelectedItem.Value = "GlobalDTAlmacenUsuarios" Then
|
||||||
@@ -35,7 +35,7 @@ Partial Class Sistemas_CatSesiones
|
|||||||
ElseIf DdlVariable.SelectedItem.Value = "GlobalDTGralPaises" Then
|
ElseIf DdlVariable.SelectedItem.Value = "GlobalDTGralPaises" Then
|
||||||
CargaPaises()
|
CargaPaises()
|
||||||
ElseIf DdlVariable.SelectedItem.Value = "GlobalDTGralEstados" Then
|
ElseIf DdlVariable.SelectedItem.Value = "GlobalDTGralEstados" Then
|
||||||
CargaEstados()
|
CargaEstados()
|
||||||
ElseIf DdlVariable.SelectedItem.Value = "GlobalDTGralColonias" Then
|
ElseIf DdlVariable.SelectedItem.Value = "GlobalDTGralColonias" Then
|
||||||
CargaColonias()
|
CargaColonias()
|
||||||
ElseIf DdlVariable.SelectedItem.Value = "GlobalDTGralMunicipios" Then
|
ElseIf DdlVariable.SelectedItem.Value = "GlobalDTGralMunicipios" Then
|
||||||
@@ -92,29 +92,29 @@ Partial Class Sistemas_CatSesiones
|
|||||||
ElseIf DdlVariable.SelectedItem.Value = "GlobalDTSATMotivoTraslado" Then
|
ElseIf DdlVariable.SelectedItem.Value = "GlobalDTSATMotivoTraslado" Then
|
||||||
CargaSATMotivoTraslado()
|
CargaSATMotivoTraslado()
|
||||||
ElseIf DdlVariable.SelectedItem.Value = "GlobalDTConceptosContables" Then
|
ElseIf DdlVariable.SelectedItem.Value = "GlobalDTConceptosContables" Then
|
||||||
CargaConceptosContables()
|
CargaConceptosContables()
|
||||||
ElseIf DdlVariable.SelectedItem.Value = "GlobalDTClasificacionPorcentaje" Then
|
ElseIf DdlVariable.SelectedItem.Value = "GlobalDTClasificacionPorcentaje" Then
|
||||||
CargaDTClasificacionPorcentaje()
|
CargaDTClasificacionPorcentaje()
|
||||||
ElseIf DdlVariable.SelectedItem.Value = "GlobalDTInvPSSeccionesAlmacen" Then
|
ElseIf DdlVariable.SelectedItem.Value = "GlobalDTInvPSSeccionesAlmacen" Then
|
||||||
CargaDTInvPSSeccionesAlmacen()
|
CargaDTInvPSSeccionesAlmacen()
|
||||||
ElseIf DdlVariable.SelectedItem.Value = "GlobalDTTipoTransacciones" Then
|
ElseIf DdlVariable.SelectedItem.Value = "GlobalDTTipoTransacciones" Then
|
||||||
CargaGlobalDTTipoTransacciones()
|
CargaGlobalDTTipoTransacciones()
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
Private Sub CargaGlobalDTTipoTransacciones()
|
Private Sub CargaGlobalDTTipoTransacciones()
|
||||||
Using ObjBancos As New ClsBancos
|
Using ObjBancos As New ClsBancos
|
||||||
If ObjBancos.GetBancos_TiposTransaccion(-1) Then Application("GlobalDTTipoTransacciones") = ObjBancos.DtResultados Else Application("GlobalDTTipoTransacciones") = Nothing
|
If ObjBancos.GetBancos_TiposTransaccion(-1) Then Application("GlobalDTTipoTransacciones") = ObjBancos.DtResultados Else Application("GlobalDTTipoTransacciones") = Nothing
|
||||||
If ObjBancos.GetBancos_EstatusIE() Then Application("GlobalDTBancosEstatusIE") = ObjBancos.DtResultados Else Application("GlobalDTBancosEstatusIE") = Nothing
|
If ObjBancos.GetBancos_EstatusIE() Then Application("GlobalDTBancosEstatusIE") = ObjBancos.DtResultados Else Application("GlobalDTBancosEstatusIE") = Nothing
|
||||||
If ObjBancos.GetBancos() Then Application("GlobalDTBancos") = ObjBancos.DtResultados Else Application("GlobalDTBancos") = Nothing
|
If ObjBancos.GetBancos() Then Application("GlobalDTBancos") = ObjBancos.DtResultados Else Application("GlobalDTBancos") = Nothing
|
||||||
If ObjBancos.GetBancos_TiposCuenta() Then Application("GlobalDTTipoCuenta") = ObjBancos.DtResultados Else Application("GlobalDTTipoCuenta") = Nothing
|
If ObjBancos.GetBancos_TiposCuenta() Then Application("GlobalDTTipoCuenta") = ObjBancos.DtResultados Else Application("GlobalDTTipoCuenta") = Nothing
|
||||||
End Using
|
End Using
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
Private Sub CargaConceptosContables()
|
Private Sub CargaConceptosContables()
|
||||||
Dim ObjContabilidad As New ClsContabilidad
|
Dim ObjContabilidad As New ClsContabilidad
|
||||||
If ObjContabilidad.GetConta_ConceptosContables() Then Application("GlobalDTContaConceptosContables") = ObjContabilidad.DtResultados Else Application("GlobalDTContaConceptosContables") = Nothing
|
If ObjContabilidad.GetConta_ConceptosContables() Then Application("GlobalDTContaConceptosContables") = ObjContabilidad.DtResultados Else Application("GlobalDTContaConceptosContables") = Nothing
|
||||||
@@ -130,8 +130,8 @@ Partial Class Sistemas_CatSesiones
|
|||||||
Private Sub CargaContratos()
|
Private Sub CargaContratos()
|
||||||
Dim ObjContratos As New ClsContratos
|
Dim ObjContratos As New ClsContratos
|
||||||
If ObjContratos.GetContratos(-1, UsuarioActual.CveEmpresa) Then Application("GlobalDTContratos") = ObjContratos.DtResultados Else Application("GlobalDTContratos") = Nothing
|
If ObjContratos.GetContratos(-1, UsuarioActual.CveEmpresa) Then Application("GlobalDTContratos") = ObjContratos.DtResultados Else Application("GlobalDTContratos") = Nothing
|
||||||
If ObjContratos.GetSecciones() Then Application("GlobalDTContratosSecciones") = ObjContratos.DtResultados Else Application("GlobalDTContratosSecciones") = Nothing
|
If ObjContratos.GetSecciones() Then Application("GlobalDTContratosSecciones") = ObjContratos.DtResultados Else Application("GlobalDTContratosSecciones") = Nothing
|
||||||
' If ObjContratos.GetContratosTipos(UsuarioActual.CveEmpresa) Then Application("GlobalDTContratosTipos") = ObjContratos.DtResultados Else Application("GlobalDTContratosTipos") = Nothing
|
' If ObjContratos.GetContratosTipos(UsuarioActual.CveEmpresa) Then Application("GlobalDTContratosTipos") = ObjContratos.DtResultados Else Application("GlobalDTContratosTipos") = Nothing
|
||||||
ObjContratos.Dispose()
|
ObjContratos.Dispose()
|
||||||
GlobalDTContratosTipos(UsuarioActual.CveEmpresa) = Nothing
|
GlobalDTContratosTipos(UsuarioActual.CveEmpresa) = Nothing
|
||||||
End Sub
|
End Sub
|
||||||
@@ -216,7 +216,7 @@ Partial Class Sistemas_CatSesiones
|
|||||||
|
|
||||||
Private Sub CargaVenta()
|
Private Sub CargaVenta()
|
||||||
Dim ObjVentas As New ClsVentas
|
Dim ObjVentas As New ClsVentas
|
||||||
If ObjVentas.GetMesas Then Application("GlobalDTMesas") = ObjVentas.DtResultados Else Application("GlobalDTMesas") = Nothing
|
'If ObjVentas.GetMesas Then Application("GlobalDTMesas") = ObjVentas.DtResultados Else Application("GlobalDTMesas") = Nothing
|
||||||
If ObjVentas.GetPrecioListas Then Application("GlobalDTPrecioListas") = ObjVentas.DtResultados Else Application("GlobalDTPrecioListas") = Nothing
|
If ObjVentas.GetPrecioListas Then Application("GlobalDTPrecioListas") = ObjVentas.DtResultados Else Application("GlobalDTPrecioListas") = Nothing
|
||||||
If ObjVentas.GetCondicionesEntrega(-1) Then Application("GlobalDTVtaCondicionesEntrega") = ObjVentas.DtResultados Else Application("GlobalDTVtaCondicionesEntrega") = Nothing
|
If ObjVentas.GetCondicionesEntrega(-1) Then Application("GlobalDTVtaCondicionesEntrega") = ObjVentas.DtResultados Else Application("GlobalDTVtaCondicionesEntrega") = Nothing
|
||||||
|
|
||||||
@@ -232,11 +232,11 @@ Partial Class Sistemas_CatSesiones
|
|||||||
If ObjPS.GetMetodosInv() Then Application("GlobalDTInvMetodosInventario") = ObjPS.DtResultados Else Application("GlobalDTInvMetodosInventario") = Nothing
|
If ObjPS.GetMetodosInv() Then Application("GlobalDTInvMetodosInventario") = ObjPS.DtResultados Else Application("GlobalDTInvMetodosInventario") = Nothing
|
||||||
'If ObjPS.GetPSSimplificado(-1) Then Application("GlobalDTPSSimplificado") = ObjPS.DtResultados.AsEnumerable() Else Application("GlobalDTPSSimplificado") = Nothing
|
'If ObjPS.GetPSSimplificado(-1) Then Application("GlobalDTPSSimplificado") = ObjPS.DtResultados.AsEnumerable() Else Application("GlobalDTPSSimplificado") = Nothing
|
||||||
ObjPS.Dispose()
|
ObjPS.Dispose()
|
||||||
GlobalDTPSSimplificado(UsuarioActual.CveEmpresa) = Nothing
|
GlobalDTPSSimplificado(UsuarioActual.CveEmpresa) = Nothing
|
||||||
Using ObjVenta As New ClsVentas
|
Using ObjVenta As New ClsVentas
|
||||||
If ObjVenta.GetClasificacionDetalle(-1, CveClasificacion:=-1) Then
|
If ObjVenta.GetClasificacionDetalle(-1, CveClasificacion:=-1) Then
|
||||||
Application("GlobalDTClasificacionesDetalle") = ObjVenta.DtResultados
|
Application("GlobalDTClasificacionesDetalle") = ObjVenta.DtResultados
|
||||||
End If
|
End If
|
||||||
End Using
|
End Using
|
||||||
|
|
||||||
'Fin Carga Usuarios
|
'Fin Carga Usuarios
|
||||||
@@ -290,9 +290,9 @@ Partial Class Sistemas_CatSesiones
|
|||||||
Application("GlobalDTUsuarioResponsable") = ObjUsuarios.DtResultados
|
Application("GlobalDTUsuarioResponsable") = ObjUsuarios.DtResultados
|
||||||
Else
|
Else
|
||||||
Application("GlobalDTUsuarios") = Nothing
|
Application("GlobalDTUsuarios") = Nothing
|
||||||
End If
|
End If
|
||||||
GlobalDTAlmacenUsuarios(-1, UsuarioActual.CveEmpresa) = Nothing
|
GlobalDTAlmacenUsuarios(-1, UsuarioActual.CveEmpresa) = Nothing
|
||||||
'If ObjUsuarios.GetAlmacen(-1) Then Application("GlobalDTAlmacenUsuarios") = ObjUsuarios.DtResultados Else Application("GlobalDTAlmacenUsuarios") = Nothing
|
'If ObjUsuarios.GetAlmacen(-1) Then Application("GlobalDTAlmacenUsuarios") = ObjUsuarios.DtResultados Else Application("GlobalDTAlmacenUsuarios") = Nothing
|
||||||
ObjUsuarios.Dispose()
|
ObjUsuarios.Dispose()
|
||||||
'Fin Carga Usuarios
|
'Fin Carga Usuarios
|
||||||
End Sub
|
End Sub
|
||||||
@@ -300,12 +300,12 @@ Partial Class Sistemas_CatSesiones
|
|||||||
Private Sub CargaUsuariosResponsable()
|
Private Sub CargaUsuariosResponsable()
|
||||||
'Carga Usuarios
|
'Carga Usuarios
|
||||||
Dim ObjUsuarios As New ClsSisUsuarios
|
Dim ObjUsuarios As New ClsSisUsuarios
|
||||||
If ObjUsuarios.GetUsuariosEmpresas(-1) Then
|
If ObjUsuarios.GetUsuariosEmpresas(-1) Then
|
||||||
Alert(ObjUsuarios.DtResultados.Rows.Count.ToString)
|
Alert(ObjUsuarios.DtResultados.Rows.Count.ToString)
|
||||||
Application("GlobalDTUsuarioResponsable") = ObjUsuarios.DtResultados
|
Application("GlobalDTUsuarioResponsable") = ObjUsuarios.DtResultados
|
||||||
Else
|
Else
|
||||||
Application("GlobalDTUsuarioResponsable") = Nothing
|
Application("GlobalDTUsuarioResponsable") = Nothing
|
||||||
End If
|
End If
|
||||||
ObjUsuarios.Dispose()
|
ObjUsuarios.Dispose()
|
||||||
'Fin Carga Usuarios
|
'Fin Carga Usuarios
|
||||||
End Sub
|
End Sub
|
||||||
@@ -402,25 +402,25 @@ Partial Class Sistemas_CatSesiones
|
|||||||
|
|
||||||
Private Sub CargaPaises()
|
Private Sub CargaPaises()
|
||||||
Dim Gral As New ClsGenerales
|
Dim Gral As New ClsGenerales
|
||||||
GlobalDTGralPaises = Nothing
|
GlobalDTGralPaises = Nothing
|
||||||
'If Gral.GetGralPaises Then Application("GlobalDTGralPaises") = Gral.DtResultados Else Application("GlobalDTGralPaises") = Nothing
|
'If Gral.GetGralPaises Then Application("GlobalDTGralPaises") = Gral.DtResultados Else Application("GlobalDTGralPaises") = Nothing
|
||||||
If Gral.GetClasificacionPorcentaje(-1, -1, -1, -1, 1) Then Application("GlobalDTClasificacionPorcentaje") = Gral.DtResultados Else Application("GlobalDTClasificacionPorcentaje") = Nothing
|
If Gral.GetClasificacionPorcentaje(-1, -1, -1, -1, 1) Then Application("GlobalDTClasificacionPorcentaje") = Gral.DtResultados Else Application("GlobalDTClasificacionPorcentaje") = Nothing
|
||||||
|
|
||||||
Gral.Dispose()
|
Gral.Dispose()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub CargaEstados()
|
Private Sub CargaEstados()
|
||||||
GlobalDTGralEstados("") = Nothing
|
GlobalDTGralEstados("") = Nothing
|
||||||
'Dim Gral As New ClsGenerales
|
'Dim Gral As New ClsGenerales
|
||||||
'If Gral.GetGralEstados Then Application("GlobalDTGralEstados") = Gral.DtResultados Else Application("GlobalDTGralEstados") = Nothing
|
'If Gral.GetGralEstados Then Application("GlobalDTGralEstados") = Gral.DtResultados Else Application("GlobalDTGralEstados") = Nothing
|
||||||
'Gral.Dispose()
|
'Gral.Dispose()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub CargaColonias()
|
Private Sub CargaColonias()
|
||||||
GlobalDTGralColonias("", "", "") = Nothing
|
GlobalDTGralColonias("", "", "") = Nothing
|
||||||
'Dim Gral As New ClsGenerales
|
'Dim Gral As New ClsGenerales
|
||||||
'If Gral.GetGralEstados Then Application("GlobalDTGralEstados") = Gral.DtResultados Else Application("GlobalDTGralEstados") = Nothing
|
'If Gral.GetGralEstados Then Application("GlobalDTGralEstados") = Gral.DtResultados Else Application("GlobalDTGralEstados") = Nothing
|
||||||
'Gral.Dispose()
|
'Gral.Dispose()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
@@ -482,10 +482,10 @@ Partial Class Sistemas_CatSesiones
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
'Compras
|
'Compras
|
||||||
Private Sub CargaProveedores()
|
Private Sub CargaProveedores()
|
||||||
GlobalDTCompProveedores(UsuarioActual.CveEmpresa) = Nothing
|
GlobalDTCompProveedores(UsuarioActual.CveEmpresa) = Nothing
|
||||||
|
|
||||||
|
|
||||||
Dim ObjProveedores As New ClsCompProveedores
|
Dim ObjProveedores As New ClsCompProveedores
|
||||||
'If ObjProveedores.GetProveedores(ClsCompProveedores.TipoConsulta.ParaGlobalDT, -1, "-1", "-1", "-1", "-1", "-1", "-1", "-1", -1, -1) Then Application("GlobalDTCompProveedores") = ObjProveedores.DtResultados Else Application("GlobalDTCompProveedores") = Nothing
|
'If ObjProveedores.GetProveedores(ClsCompProveedores.TipoConsulta.ParaGlobalDT, -1, "-1", "-1", "-1", "-1", "-1", "-1", "-1", -1, -1) Then Application("GlobalDTCompProveedores") = ObjProveedores.DtResultados Else Application("GlobalDTCompProveedores") = Nothing
|
||||||
If ObjProveedores.GetClasificacionProveedores Then Application("GlobalDTProveedorClasificacion") = ObjProveedores.DtResultados Else Application("GlobalDTProveedorClasificacion") = Nothing
|
If ObjProveedores.GetClasificacionProveedores Then Application("GlobalDTProveedorClasificacion") = ObjProveedores.DtResultados Else Application("GlobalDTProveedorClasificacion") = Nothing
|
||||||
@@ -570,7 +570,7 @@ Partial Class Sistemas_CatSesiones
|
|||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
ObjGral.Dispose()
|
ObjGral.Dispose()
|
||||||
Application("TipoCambioActual") = Nothing
|
Application("TipoCambioActual") = Nothing
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub CargarEquivalencias()
|
Private Sub CargarEquivalencias()
|
||||||
@@ -606,19 +606,19 @@ Partial Class Sistemas_CatSesiones
|
|||||||
' Response.Redirect(dominio)
|
' Response.Redirect(dominio)
|
||||||
'End If
|
'End If
|
||||||
LblTotal.Text = dominio
|
LblTotal.Text = dominio
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub CargaDTClasificacionPorcentaje()
|
Private Sub CargaDTClasificacionPorcentaje()
|
||||||
|
|
||||||
Dim ObjGenerales As New ClsGenerales
|
Dim ObjGenerales As New ClsGenerales
|
||||||
If ObjGenerales.GetClasificacionPorcentaje(-1) Then Application("GlobalDTClasificacionPorcentaje") = ObjGenerales.DtResultados Else Application("GlobalDTClasificacionPorcentaje") = Nothing
|
If ObjGenerales.GetClasificacionPorcentaje(-1) Then Application("GlobalDTClasificacionPorcentaje") = ObjGenerales.DtResultados Else Application("GlobalDTClasificacionPorcentaje") = Nothing
|
||||||
ObjGenerales.Dispose()
|
ObjGenerales.Dispose()
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub CargaDTInvPSSeccionesAlmacen()
|
Private Sub CargaDTInvPSSeccionesAlmacen()
|
||||||
GlobalDTInvPSSeccionesAlmacen(UsuarioActual.CveEmpresa, -1, -1) = Nothing
|
GlobalDTInvPSSeccionesAlmacen(UsuarioActual.CveEmpresa, -1, -1) = Nothing
|
||||||
GlobalDTSeccionAlmacen(UsuarioActual.CveEmpresa, -1) = Nothing
|
GlobalDTSeccionAlmacen(UsuarioActual.CveEmpresa, -1) = Nothing
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
||||||
Listado de reportes de Stimulsoft
|
Listado de formatos de impresión
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content4" ContentPlaceHolderID="HB" runat="Server">
|
<asp:Content ID="Content4" ContentPlaceHolderID="HB" runat="Server">
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
@@ -21,7 +21,7 @@
|
|||||||
<div class="portlet light smmallpadding traspasorow bordered">
|
<div class="portlet light smmallpadding traspasorow bordered">
|
||||||
<div class="portlet-title">
|
<div class="portlet-title">
|
||||||
<div class="caption font-green">
|
<div class="caption font-green">
|
||||||
<span class="caption-subject bold uppercase" style="line-height: 1;">Listado de formatos</span>
|
<span class="caption-subject bold uppercase" style="line-height: 1;">Listado de formatos de la empresa</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="actions">
|
<div class="actions">
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
@@ -51,6 +51,40 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="col-md-4" id="DivGenerales" runat="server" visible="false">
|
||||||
|
<div class="portlet light smmallpadding traspasorow bordered">
|
||||||
|
<div class="portlet-title">
|
||||||
|
<div class="caption font-green">
|
||||||
|
<span class="caption-subject bold uppercase" style="line-height: 1;">Listado de formatos generales</span>
|
||||||
|
</div>
|
||||||
|
<div class="actions">
|
||||||
|
<div class="btn-group">
|
||||||
|
<div class="row" style="margin-left: 0px; text-align: right" align="left">
|
||||||
|
<div style="margin-right: 15px">
|
||||||
|
<input type="text" id="TxtBusqueda1" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusqueda1','{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>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="portlet-body rowpadding">
|
||||||
|
<asp:GridView ID="GvGenerales" runat="server" AutoGenerateColumns="false" EmptyDataText="No se encontraron formatos" DataKeyNames="RutaReporte"
|
||||||
|
CssClass="table table-striped table-advance table-hover Widthall ScrollAD mysmallbtn" data-sort="true" GridLines="None" Width="100%">
|
||||||
|
<Columns>
|
||||||
|
<asp:BoundField HeaderText="Formato" DataField="Reporte" ItemStyle-Width="80%" />
|
||||||
|
<asp:TemplateField HeaderText="Editar" ItemStyle-Width="20%" ItemStyle-HorizontalAlign="Center">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:LinkButton runat="server" ID="BtnEditar" OnClick="BtnEditar_Click" CssClass="btn btn-circle btn-sm green" Text="<i class='fa fa-pencil'></i>" data-toggle="confirmation" data-popout="true" data-original-title="¿Está seguro que desea editar el formato?" data-btn-ok-label="si"></asp:LinkButton>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
</Columns>
|
||||||
|
<RowStyle CssClass="Texto" />
|
||||||
|
<HeaderStyle CssClass="Titulos" />
|
||||||
|
</asp:GridView>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
|
|||||||
@@ -21,12 +21,27 @@ public partial class Sistemas_ListadoReportes : ClsPaginas
|
|||||||
{
|
{
|
||||||
string RutaReportes = string.Format("{0}/Formatos", UsuarioActual.Empresa.Ruta);
|
string RutaReportes = string.Format("{0}/Formatos", UsuarioActual.Empresa.Ruta);
|
||||||
|
|
||||||
string[] allfiles = Directory.GetFiles(RutaReportes, "*.mrt", SearchOption.AllDirectories);
|
string[] allfiles = Directory.GetFiles(RutaReportes, "*.mrt", SearchOption.TopDirectoryOnly);
|
||||||
|
|
||||||
GvDatos.DataSource = (from Reporte in allfiles
|
GvDatos.DataSource = (from Reporte in allfiles
|
||||||
let file = new FileInfo(Reporte)
|
let file = new FileInfo(Reporte)
|
||||||
select new { RutaReporte = file.FullName, Reporte = file.Name.Replace(".mrt","") }).QueryToDataTable(true);
|
select new { RutaReporte = file.FullName, Reporte = file.Name.Replace(".mrt","") }).QueryToDataTable(true);
|
||||||
GvDatos.DataBind();
|
GvDatos.DataBind();
|
||||||
|
|
||||||
|
//EN LA EMPRESA DE JULIAN SE PUEDEN EDITAR LOS GENERALES
|
||||||
|
if (UsuarioActual.CveEmpresa == 2 )
|
||||||
|
{
|
||||||
|
DivGenerales.Visible = true;
|
||||||
|
string RutaGenerales = string.Format("{0}/Grales/Formatos", Extensiones.ModExtensiones.DirectorioEmpresas);
|
||||||
|
|
||||||
|
string[] allFormatosGenerales = Directory.GetFiles(RutaGenerales, "*.mrt", SearchOption.TopDirectoryOnly);
|
||||||
|
|
||||||
|
GvGenerales.DataSource = (from Reporte in allFormatosGenerales
|
||||||
|
let file = new FileInfo(Reporte)
|
||||||
|
select new { RutaReporte = file.FullName, Reporte = file.Name.Replace(".mrt", "") }).QueryToDataTable(true);
|
||||||
|
GvGenerales.DataBind();
|
||||||
|
}
|
||||||
|
|
||||||
UPDatos.Update();
|
UPDatos.Update();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -34,8 +49,8 @@ public partial class Sistemas_ListadoReportes : ClsPaginas
|
|||||||
{
|
{
|
||||||
GridViewRow GvRow = (GridViewRow)(((LinkButton)sender).NamingContainer);
|
GridViewRow GvRow = (GridViewRow)(((LinkButton)sender).NamingContainer);
|
||||||
var RutaReporteEncriptada = Encripta(GvRow.DataKey("RutaReporte"));
|
var RutaReporteEncriptada = Encripta(GvRow.DataKey("RutaReporte"));
|
||||||
var hostURL = "https://localhost:7162";
|
var hostURL = "http://localhost:2202";
|
||||||
if (UsuarioActual.Empresa.FacturaProduccion)
|
if (EsProduccion)
|
||||||
{
|
{
|
||||||
hostURL = "http://sig.adssistemas.mx:6599";
|
hostURL = "http://sig.adssistemas.mx:6599";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
||||||
Catálogo de Clasificaciones de Clientes
|
Catálogo de giros de clientes
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content4" ContentPlaceHolderID="HB" runat="Server">
|
<asp:Content ID="Content4" ContentPlaceHolderID="HB" runat="Server">
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
@@ -34,7 +34,7 @@
|
|||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<asp:GridView ID="GvClasificacion" runat="server" AutoGenerateColumns="False" DataKeyNames="CveClienteClasificacion" EmptyDataText="No se encontraron Clasificaciones." ToolTip="Listado de Clasificacaiones" CssClass="table table-striped table-advance table-hover Widthall ScrollAD" data-sort="true" BorderWidth="1" BorderColor="#D3D3D3" CellSpacing="0" GridLines="None">
|
<asp:GridView ID="GvClasificacion" runat="server" AutoGenerateColumns="False" DataKeyNames="CveClienteClasificacion" EmptyDataText="No se encontraron Clasificaciones." ToolTip="Listado de Clasificacaiones" CssClass="table table-striped table-advance table-hover Widthall ScrollAD" data-sort="true" BorderWidth="1" BorderColor="#D3D3D3" CellSpacing="0" GridLines="None">
|
||||||
<Columns>
|
<Columns>
|
||||||
<asp:BoundField DataField="ClienteClasificacion" ItemStyle-Width="30%" HeaderText="Clasificación" ItemStyle-HorizontalAlign="left" />
|
<asp:BoundField DataField="ClienteClasificacion" ItemStyle-Width="30%" HeaderText="Giro" ItemStyle-HorizontalAlign="left" />
|
||||||
<asp:BoundField DataField="FechaIng" DataFormatString="{0:dd/MM/yyyy}" ItemStyle-Width="30%" HeaderText="Fecha Ingreso" ItemStyle-HorizontalAlign="left" />
|
<asp:BoundField DataField="FechaIng" DataFormatString="{0:dd/MM/yyyy}" ItemStyle-Width="30%" HeaderText="Fecha Ingreso" ItemStyle-HorizontalAlign="left" />
|
||||||
<asp:BoundField DataField="Usuario" ItemStyle-Width="30%" HeaderText="Usuario" ItemStyle-HorizontalAlign="left" />
|
<asp:BoundField DataField="Usuario" ItemStyle-Width="30%" HeaderText="Usuario" ItemStyle-HorizontalAlign="left" />
|
||||||
<asp:TemplateField HeaderText="Editar" ItemStyle-Width="5%" ItemStyle-HorizontalAlign="Right">
|
<asp:TemplateField HeaderText="Editar" ItemStyle-Width="5%" ItemStyle-HorizontalAlign="Right">
|
||||||
|
|||||||
@@ -286,7 +286,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<label title="Clasificación Cliente" data-toggle="tooltip" data-placement="top" class="col-md-1 ">Clasif. Cli.:</label>
|
<label title="Giro del Cliente" data-toggle="tooltip" data-placement="top" class="col-md-1 ">Giro Cli.:</label>
|
||||||
<div class="col-md-2">
|
<div class="col-md-2">
|
||||||
<asp:DropDownList ID="DdlClienteClasificacion" AutoPostBack="true" OnSelectedIndexChanged="DdlClienteClasificacion_SelectedIndexChanged" runat="server" AppendDataBoundItems="true" CssClass="table-group-action-input form-control input-inline input-small input-sm select2me" DataTextField="ClienteClasificacion" DataValueField="CveClienteClasificacion" Style="width: 100%;" ></asp:DropDownList>
|
<asp:DropDownList ID="DdlClienteClasificacion" AutoPostBack="true" OnSelectedIndexChanged="DdlClienteClasificacion_SelectedIndexChanged" runat="server" AppendDataBoundItems="true" CssClass="table-group-action-input form-control input-inline input-small input-sm select2me" DataTextField="ClienteClasificacion" DataValueField="CveClienteClasificacion" Style="width: 100%;" ></asp:DropDownList>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -287,7 +287,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<label title="Clasificación Cliente" data-toggle="tooltip" data-placement="top" class="col-md-1 ">Clasif.Cliente:</label>
|
<label title="Giro del Cliente" data-toggle="tooltip" data-placement="top" class="col-md-1 ">Giro Cliente:</label>
|
||||||
<div class="col-md-2">
|
<div class="col-md-2">
|
||||||
<asp:DropDownList ID="DdlClienteClasificacion" AutoPostBack="true" OnSelectedIndexChanged="DdlClienteClasificacion_SelectedIndexChanged" runat="server" AppendDataBoundItems="true" CssClass="table-group-action-input form-control input-inline input-small input-sm select2me" DataTextField="ClienteClasificacion" DataValueField="CveClienteClasificacion" Style="width: 100%"></asp:DropDownList>
|
<asp:DropDownList ID="DdlClienteClasificacion" AutoPostBack="true" OnSelectedIndexChanged="DdlClienteClasificacion_SelectedIndexChanged" runat="server" AppendDataBoundItems="true" CssClass="table-group-action-input form-control input-inline input-small input-sm select2me" DataTextField="ClienteClasificacion" DataValueField="CveClienteClasificacion" Style="width: 100%"></asp:DropDownList>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -279,7 +279,7 @@
|
|||||||
<asp:ListItem Selected="True" Text="Todos" Value="-1"></asp:ListItem>
|
<asp:ListItem Selected="True" Text="Todos" Value="-1"></asp:ListItem>
|
||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
</div>
|
</div>
|
||||||
<label title="Clasificación Cliente" data-toggle="tooltip" data-placement="top" class="col-md-1 ">Clasif. Cli.:</label>
|
<label title="Giro del Cliente" data-toggle="tooltip" data-placement="top" class="col-md-1 ">Giro Cli.:</label>
|
||||||
<div class="col-md-2">
|
<div class="col-md-2">
|
||||||
<asp:DropDownList ID="DdlClienteClasificacion" AutoPostBack="true" OnSelectedIndexChanged="DdlClienteClasificacion_SelectedIndexChanged" runat="server" AppendDataBoundItems="true" CssClass="table-group-action-input form-control input-inline input-small input-sm select2me" DataTextField="ClienteClasificacion" DataValueField="CveClienteClasificacion"></asp:DropDownList>
|
<asp:DropDownList ID="DdlClienteClasificacion" AutoPostBack="true" OnSelectedIndexChanged="DdlClienteClasificacion_SelectedIndexChanged" runat="server" AppendDataBoundItems="true" CssClass="table-group-action-input form-control input-inline input-small input-sm select2me" DataTextField="ClienteClasificacion" DataValueField="CveClienteClasificacion"></asp:DropDownList>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -285,7 +285,7 @@
|
|||||||
<asp:ListItem Selected="True" Text="Todos" Value="-1"></asp:ListItem>
|
<asp:ListItem Selected="True" Text="Todos" Value="-1"></asp:ListItem>
|
||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
</div>
|
</div>
|
||||||
<label title="Clasificación Cliente" data-toggle="tooltip" data-placement="top" class="col-md-1 ">Clasif. Cli.:</label>
|
<label title="Giro del Cliente" data-toggle="tooltip" data-placement="top" class="col-md-1 ">Giro Cli.:</label>
|
||||||
<div class="col-md-2">
|
<div class="col-md-2">
|
||||||
<asp:DropDownList ID="DdlClienteClasificacion" AutoPostBack="true" OnSelectedIndexChanged="DdlClienteClasificacion_SelectedIndexChanged" runat="server" AppendDataBoundItems="true" CssClass="table-group-action-input form-control input-inline input-small input-sm select2me" DataTextField="ClienteClasificacion" DataValueField="CveClienteClasificacion"></asp:DropDownList>
|
<asp:DropDownList ID="DdlClienteClasificacion" AutoPostBack="true" OnSelectedIndexChanged="DdlClienteClasificacion_SelectedIndexChanged" runat="server" AppendDataBoundItems="true" CssClass="table-group-action-input form-control input-inline input-small input-sm select2me" DataTextField="ClienteClasificacion" DataValueField="CveClienteClasificacion"></asp:DropDownList>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -784,6 +784,18 @@
|
|||||||
<td>activado
|
<td>activado
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr align="left" id="TrTipoContable" runat="server" visible="False">
|
||||||
|
<td><b>Tipo Contable:</b> </td>
|
||||||
|
<td>
|
||||||
|
<asp:DropDownList ID="DdlTipoContable" runat="server" CssClass="form-control input-sm select2me" Width="80%">
|
||||||
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||||||
|
<asp:ListItem Text="Contable" Value="1"></asp:ListItem>
|
||||||
|
<asp:ListItem Text="Complementaria" Value="0"></asp:ListItem>
|
||||||
|
</asp:DropDownList>
|
||||||
|
<asp:RequiredFieldValidator ID="RFVTipoContable" runat="server" ControlToValidate="DdlTipoContable" InitialValue="-1" ErrorMessage="Debe Seleccionarse un tipo contable" ValidationGroup="GrpEmitirImprimir"></asp:RequiredFieldValidator>
|
||||||
|
<ajax:ValidatorCalloutExtender ID="VCETipoContable" runat="server" HighlightCssClass="vco" TargetControlID="RFVTipoContable" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
|
|||||||
@@ -5568,6 +5568,17 @@ Partial Class Ventas
|
|||||||
LBFacturarAnticipo.Visible = UsuarioActual.TienePermisoProceso(274)
|
LBFacturarAnticipo.Visible = UsuarioActual.TienePermisoProceso(274)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
'SI ES COMPLEMENTARIA, NO DEBE PERMITIR FACTURAR
|
||||||
|
If UsuarioActual.Empresa.Funcionalidad(706) = "1" AndAlso DbRowVenta("TipoContable").ToString() <> "-1" Then
|
||||||
|
If DbRowVenta("TipoContable").ToString() = "0" Then
|
||||||
|
BtnsFacturar.Visible = False
|
||||||
|
End If
|
||||||
|
|
||||||
|
TrTipoContable.Visible = True
|
||||||
|
DdlTipoContable.SelectedValueExist(DbRowVenta("TipoContable").ToString())
|
||||||
|
DdlTipoContable.Enabled = False
|
||||||
|
End If
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If DbRowVenta("TipoDocto").ToString().Contiene("Cot", "Pd2") Then
|
If DbRowVenta("TipoDocto").ToString().Contiene("Cot", "Pd2") Then
|
||||||
@@ -9115,10 +9126,13 @@ Partial Class Ventas
|
|||||||
Dim Archivo As New System.IO.FileInfo(String.Format("{0}Formatos/Factura.rdlc", UsuarioActual.Empresa.Ruta))
|
Dim Archivo As New System.IO.FileInfo(String.Format("{0}Formatos/Factura.rdlc", UsuarioActual.Empresa.Ruta))
|
||||||
Dim Archivo2 As New System.IO.FileInfo(String.Format("{0}Formatos/Remision.rdlc", UsuarioActual.Empresa.Ruta))
|
Dim Archivo2 As New System.IO.FileInfo(String.Format("{0}Formatos/Remision.rdlc", UsuarioActual.Empresa.Ruta))
|
||||||
|
|
||||||
|
Dim ArchivoSti As New System.IO.FileInfo(String.Format("{0}Formatos/Factura.mrt", UsuarioActual.Empresa.Ruta))
|
||||||
|
Dim ArchivoSti2 As New System.IO.FileInfo(String.Format("{0}Formatos/Remision.mrt", UsuarioActual.Empresa.Ruta))
|
||||||
|
|
||||||
LnkImprimir.Visible = False
|
LnkImprimir.Visible = False
|
||||||
|
|
||||||
'If (UsuarioActual.CveEmpresa.Contiene(1, 4, 5, 7, 11, 12, 72, 80, 81, 83) And UsuarioActual.CveUsuario = 100) Or UsuarioActual.CveEmpresa.Contiene(80, 83) Or UsuarioActual.CveUsuario = 100 Then
|
'If (UsuarioActual.CveEmpresa.Contiene(1, 4, 5, 7, 11, 12, 72, 80, 81, 83) And UsuarioActual.CveUsuario = 100) Or UsuarioActual.CveEmpresa.Contiene(80, 83) Or UsuarioActual.CveUsuario = 100 Then
|
||||||
If (Archivo.Exists Or Archivo2.Exists) And IfNull(CveVenta, 0).ToString().ToEntero() > 0 Then
|
If (Archivo.Exists Or Archivo2.Exists Or ArchivoSti.Exists Or ArchivoSti2.Exists) And IfNull(CveVenta, 0).ToString().ToEntero() > 0 Then
|
||||||
HplDownPDF.Visible = True
|
HplDownPDF.Visible = True
|
||||||
HplDownPDF.NavigateUrl = String.Format("/Compras/PopUpVerFactura.aspx?P={0}", Encripta(String.Format("OP=VTA&CVEVENTA={0}&PAG=1&GUARDAR=1", CveVenta)))
|
HplDownPDF.NavigateUrl = String.Format("/Compras/PopUpVerFactura.aspx?P={0}", Encripta(String.Format("OP=VTA&CVEVENTA={0}&PAG=1&GUARDAR=1", CveVenta)))
|
||||||
If UsuarioActual.CveRol = 1 Then
|
If UsuarioActual.CveRol = 1 Then
|
||||||
@@ -12640,7 +12654,13 @@ Partial Class Ventas
|
|||||||
tCveTipoPoliza = 1 ' que sea siempre ingreso.
|
tCveTipoPoliza = 1 ' que sea siempre ingreso.
|
||||||
End If
|
End If
|
||||||
|
|
||||||
factura.CvePrePoliza = ObjConta.AddPrePolizas("Ventas/GuardarVenta", factura.CvePlantillaPoliza, factura.Total, factura.Total, factura.CveMoneda, factura.Fecha, If(CveEmpresaCRM > 0, LblEmpresaCRM.Text, factura.Cliente.Nombre), factura.CveUsuario, factura.CveEmpresa, CveTipoPoliza:=tCveTipoPoliza)
|
Dim TipoContable As Integer = -1
|
||||||
|
If UsuarioActual.Empresa.Funcionalidad(706) = "1" AndAlso factura.TipoDocto = "Rem" Then
|
||||||
|
'1-Contable, 0-Complementaria
|
||||||
|
TipoContable = DdlTipoContable.SelectedValue.ToEntero()
|
||||||
|
End If
|
||||||
|
|
||||||
|
factura.CvePrePoliza = ObjConta.AddPrePolizas("Ventas/GuardarVenta", factura.CvePlantillaPoliza, factura.Total, factura.Total, factura.CveMoneda, factura.Fecha, If(CveEmpresaCRM > 0, LblEmpresaCRM.Text, factura.Cliente.Nombre), factura.CveUsuario, factura.CveEmpresa, CveTipoPoliza:=tCveTipoPoliza, TipoContable:=TipoContable)
|
||||||
|
|
||||||
Dim RFCReceptor As String = ""
|
Dim RFCReceptor As String = ""
|
||||||
|
|
||||||
@@ -13126,7 +13146,7 @@ Partial Class Ventas
|
|||||||
|
|
||||||
If ErrorList.Count = 0 Then
|
If ErrorList.Count = 0 Then
|
||||||
'prepoliza
|
'prepoliza
|
||||||
GuardarVentaPrePolizas(ObjConta, factura, TmpDTDetalle, CveNCaVincular, objContPaqi, ObjBancos, ObjVentas, ObjEventos:=ObjEventos, EsNCAmortizacion:=EsNCAmortizacion, NCDescuento:=NCDescuento, ListaNCDescuento:=ListaNCDescuento, ObjInventario:=ObjInventario)
|
GuardarVentaPrePolizas(ObjConta, factura, TmpDTDetalle, CveNCaVincular, objContPaqi, ObjBancos, ObjVentas, ObjEventos:=ObjEventos, EsNCAmortizacion:=EsNCAmortizacion, NCDescuento:=NCDescuento, ListaNCDescuento:=ListaNCDescuento, ObjInventario:=ObjInventario, TipoContable:=TipoContable)
|
||||||
If ErrorList.Count = 0 Then
|
If ErrorList.Count = 0 Then
|
||||||
|
|
||||||
'INVENTARIOS
|
'INVENTARIOS
|
||||||
@@ -13161,7 +13181,7 @@ Partial Class Ventas
|
|||||||
Private Sub GuardarVentaPrePolizas(ByRef ObjConta As ClsContabilidad, factura As Modelos.Factura, TmpDTDetalleMovimientos As DataTable, CveNCaVincular As Integer,
|
Private Sub GuardarVentaPrePolizas(ByRef ObjConta As ClsContabilidad, factura As Modelos.Factura, TmpDTDetalleMovimientos As DataTable, CveNCaVincular As Integer,
|
||||||
ByRef objContPaqi As ClsContPAQi, Optional ByRef ObjBancos As ClsBancos = Nothing, ByRef Optional ObjVentas As ClsVentas = Nothing,
|
ByRef objContPaqi As ClsContPAQi, Optional ByRef ObjBancos As ClsBancos = Nothing, ByRef Optional ObjVentas As ClsVentas = Nothing,
|
||||||
ByRef Optional ObjEventos As ClsOIEventos = Nothing, Optional EsNCAmortizacion As Boolean = False, Optional NCDescuento As Boolean = False,
|
ByRef Optional ObjEventos As ClsOIEventos = Nothing, Optional EsNCAmortizacion As Boolean = False, Optional NCDescuento As Boolean = False,
|
||||||
Optional ValorMultiplicador As Integer = 1, Optional ListaNCDescuento As List(Of Modelos.Factura) = Nothing, Optional ObjInventario As ClsInventarios = Nothing)
|
Optional ValorMultiplicador As Integer = 1, Optional ListaNCDescuento As List(Of Modelos.Factura) = Nothing, Optional ObjInventario As ClsInventarios = Nothing, Optional TipoContable As Integer = -1)
|
||||||
|
|
||||||
Dim CveIE As Integer = -1
|
Dim CveIE As Integer = -1
|
||||||
Dim DT As DataTable = Nothing
|
Dim DT As DataTable = Nothing
|
||||||
@@ -13180,7 +13200,7 @@ Partial Class Ventas
|
|||||||
If DdlTipoComprobante.SelectedValue <> "Cot" Then
|
If DdlTipoComprobante.SelectedValue <> "Cot" Then
|
||||||
If factura.CvePrePoliza > 0 Then
|
If factura.CvePrePoliza > 0 Then
|
||||||
|
|
||||||
If ProcesoPrepolizas(ObjConta, factura, CveIE, TmpDTDetalleMovimientos, objContPaqi, ValorMultiplicador, ObjBancos, ObjVentas, ObjEventos:=ObjEventos, EsNCAmortizacion:=EsNCAmortizacion, NCDescuento:=NCDescuento, ListaNCDescuento:=ListaNCDescuento, ObjInventario:=ObjInventario) Then
|
If ProcesoPrepolizas(ObjConta, factura, CveIE, TmpDTDetalleMovimientos, objContPaqi, ValorMultiplicador, ObjBancos, ObjVentas, ObjEventos:=ObjEventos, EsNCAmortizacion:=EsNCAmortizacion, NCDescuento:=NCDescuento, ListaNCDescuento:=ListaNCDescuento, ObjInventario:=ObjInventario, TipoContable:=TipoContable) Then
|
||||||
ErrorList.Add("Ocurrió un error al agregar los Movimientos de la prepoliza.<br />Revise su factura y cualquier detalle comuníquese a Soporte Técnico")
|
ErrorList.Add("Ocurrió un error al agregar los Movimientos de la prepoliza.<br />Revise su factura y cualquier detalle comuníquese a Soporte Técnico")
|
||||||
End If
|
End If
|
||||||
|
|
||||||
@@ -13192,7 +13212,7 @@ Partial Class Ventas
|
|||||||
Private Function ProcesoPrepolizas(ByRef ObjConta As ClsContabilidad, ObjFactura As Modelos.Factura, CveIE As Integer, TmpDTDetalle As DataTable, ByRef objContPaqi As ClsContPAQi,
|
Private Function ProcesoPrepolizas(ByRef ObjConta As ClsContabilidad, ObjFactura As Modelos.Factura, CveIE As Integer, TmpDTDetalle As DataTable, ByRef objContPaqi As ClsContPAQi,
|
||||||
Optional ValorMultiplicador As Integer = 1, ByRef Optional ObjBancos As ClsBancos = Nothing, ByRef Optional ObjVentas As ClsVentas = Nothing,
|
Optional ValorMultiplicador As Integer = 1, ByRef Optional ObjBancos As ClsBancos = Nothing, ByRef Optional ObjVentas As ClsVentas = Nothing,
|
||||||
ByRef Optional ObjEventos As ClsOIEventos = Nothing, Optional EsNCAmortizacion As Boolean = False, Optional NCDescuento As Boolean = False,
|
ByRef Optional ObjEventos As ClsOIEventos = Nothing, Optional EsNCAmortizacion As Boolean = False, Optional NCDescuento As Boolean = False,
|
||||||
Optional ListaNCDescuento As List(Of Modelos.Factura) = Nothing, Optional ObjInventario As ClsInventarios = Nothing) As Boolean
|
Optional ListaNCDescuento As List(Of Modelos.Factura) = Nothing, Optional ObjInventario As ClsInventarios = Nothing, Optional TipoContable As Integer = -1) As Boolean
|
||||||
Try
|
Try
|
||||||
Dim DT As DataTable
|
Dim DT As DataTable
|
||||||
Dim CvePlantilaPoliza As Integer
|
Dim CvePlantilaPoliza As Integer
|
||||||
@@ -13343,8 +13363,13 @@ Partial Class Ventas
|
|||||||
End If
|
End If
|
||||||
IdCtaContableCliente = IdCtaContable
|
IdCtaContableCliente = IdCtaContable
|
||||||
|
|
||||||
If ObjConta.AddPrePolizasDetalle(ObjFactura.CvePrePoliza, TipoMovimiento, importeMovimiento, Referencia, 190, Concepto, FechaMovimiento, IdCtaContable, -1, CveVenta:=ObjFactura.CveVenta, CveCliente:=ObjFactura.CveCliente, CveIE:=CveIE, ImporteMX:=importeMX, ImporteME:=If(tipoCambio = 1, 0, importeMovimiento), Contabilizable:=False, CveSubProyecto:=CveSubProyectoContabilizar) Then
|
Dim ContabilizableRem As Boolean = False
|
||||||
If Not ObjConta.AddPrePolizasDetalle(ObjFactura.CvePrePoliza, Not TipoMovimiento, importeMovimiento, Referencia, 193, Concepto, FechaMovimiento, IdCtaContable, -1, CveVenta:=ObjFactura.CveVenta, CveCliente:=ObjFactura.CveCliente, CveIE:=CveIE, ImporteMX:=importeMX, ImporteME:=If(tipoCambio = 1, 0, importeMovimiento), Contabilizable:=False, CveSubProyecto:=CveSubProyectoContabilizar) Then
|
If TipoContable <> -1 Then
|
||||||
|
ContabilizableRem = True
|
||||||
|
End If
|
||||||
|
|
||||||
|
If ObjConta.AddPrePolizasDetalle(ObjFactura.CvePrePoliza, TipoMovimiento, importeMovimiento, Referencia, 190, Concepto, FechaMovimiento, IdCtaContable, -1, CveVenta:=ObjFactura.CveVenta, CveCliente:=ObjFactura.CveCliente, CveIE:=CveIE, ImporteMX:=importeMX, ImporteME:=If(tipoCambio = 1, 0, importeMovimiento), Contabilizable:=ContabilizableRem, CveSubProyecto:=CveSubProyectoContabilizar) Then
|
||||||
|
If Not ObjConta.AddPrePolizasDetalle(ObjFactura.CvePrePoliza, Not TipoMovimiento, importeMovimiento, Referencia, 193, Concepto, FechaMovimiento, IdCtaContable, -1, CveVenta:=ObjFactura.CveVenta, CveCliente:=ObjFactura.CveCliente, CveIE:=CveIE, ImporteMX:=importeMX, ImporteME:=If(tipoCambio = 1, 0, importeMovimiento), Contabilizable:=ContabilizableRem, CveSubProyecto:=CveSubProyectoContabilizar) Then
|
||||||
ErrorPrepoliza = True
|
ErrorPrepoliza = True
|
||||||
End If
|
End If
|
||||||
Else
|
Else
|
||||||
@@ -16523,189 +16548,194 @@ Partial Class Ventas
|
|||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
#Region "I M A G E - B U T T O N S"
|
#Region "I M A G E - B U T T O N S"
|
||||||
Protected Function CancelarFactura(ByRef ObjVentas As ClsVentas, ByRef ObjConta As ClsContabilidad, ByRef ObjAC As ClsContPAQi, ByRef ObjBancos As ClsBancos) As Boolean
|
'Protected Function CancelarFactura(ByRef ObjVentas As ClsVentas, ByRef ObjConta As ClsContabilidad, ByRef ObjAC As ClsContPAQi, ByRef ObjBancos As ClsBancos) As Boolean
|
||||||
Dim IDPoliza As Integer = -1
|
' Dim IDPoliza As Integer = -1
|
||||||
Dim CvePrePoliza As Integer
|
' Dim CvePrePoliza As Integer
|
||||||
Dim CvePlantillaPoliza As Integer
|
' Dim CvePlantillaPoliza As Integer
|
||||||
|
|
||||||
Dim ErrorCancelar As Boolean = False
|
' Dim ErrorCancelar As Boolean = False
|
||||||
Dim Mensaje As String = ""
|
' Dim Mensaje As String = ""
|
||||||
|
|
||||||
Try
|
' Try
|
||||||
ObjFacturaDevolucion.TipoDocto = ObjFactura.TipoDocto
|
' ObjFacturaDevolucion.TipoDocto = ObjFactura.TipoDocto
|
||||||
|
|
||||||
If ObjFacturaDevolucion.TipoDocto.Contiene("Egs", "Dev") Then
|
' Dim TipoContable As Integer = -1
|
||||||
CvePlantillaPoliza = 7
|
' If ObjFacturaDevolucion.TipoDocto.Contiene("Egs", "Dev") Then
|
||||||
ElseIf ObjFacturaDevolucion.TipoDocto.Contiene("Ing", "Rem", "Ant") Then
|
' CvePlantillaPoliza = 7
|
||||||
CvePlantillaPoliza = 4
|
' ElseIf ObjFacturaDevolucion.TipoDocto.Contiene("Ing", "Rem", "Ant") Then
|
||||||
End If
|
' CvePlantillaPoliza = 4
|
||||||
|
' End If
|
||||||
|
|
||||||
|
' If UsuarioActual.Empresa.Funcionalidad(706) = "1" AndAlso Then
|
||||||
|
|
||||||
|
' End If
|
||||||
|
|
||||||
|
|
||||||
CvePrePoliza = ObjConta.AddPrePolizas("Ventas/GuardaEstatus", CvePlantillaPoliza, TxtTotal.Text.ToDouble, TxtTotal.Text.Replace(",", "").ToDouble, DdlMoneda.SelectedValue.ToEntero(), Now, NombreCliente, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa)
|
' CvePrePoliza = ObjConta.AddPrePolizas("Ventas/GuardaEstatus", CvePlantillaPoliza, TxtTotal.Text.ToDouble, TxtTotal.Text.Replace(",", "").ToDouble, DdlMoneda.SelectedValue.ToEntero(), Now, NombreCliente, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa)
|
||||||
ObjFacturaDevolucion.CveVenta = CveVenta
|
' ObjFacturaDevolucion.CveVenta = CveVenta
|
||||||
ObjFacturaDevolucion.CvePrePoliza = CvePrePoliza
|
' ObjFacturaDevolucion.CvePrePoliza = CvePrePoliza
|
||||||
|
|
||||||
|
|
||||||
If NuevaFactura = 1 AndAlso UsuarioActual.TienePermisoProceso(222) Then
|
' If NuevaFactura = 1 AndAlso UsuarioActual.TienePermisoProceso(222) Then
|
||||||
If ObjVentas.GetVentaDetalle(ObjFacturaDevolucion.CveVenta) Then
|
' If ObjVentas.GetVentaDetalle(ObjFacturaDevolucion.CveVenta) Then
|
||||||
TmpDT = ObjVentas.DtResultados
|
' TmpDT = ObjVentas.DtResultados
|
||||||
TmpDT.Columns.Add("CveVentaDetalleRNC", GetType(Integer))
|
' TmpDT.Columns.Add("CveVentaDetalleRNC", GetType(Integer))
|
||||||
TmpDT.Columns.Add("TieneProntoPago", GetType(String))
|
' TmpDT.Columns.Add("TieneProntoPago", GetType(String))
|
||||||
TmpDT.Columns.Add("ImporteProntoPago", GetType(Decimal))
|
' TmpDT.Columns.Add("ImporteProntoPago", GetType(Decimal))
|
||||||
End If
|
' End If
|
||||||
ErrorCancelar = ProcesoPrepolizas(ObjConta, ObjFacturaDevolucion, -1, TmpDT, ObjAC, -1, ObjBancos, ObjVentas)
|
' ErrorCancelar = ProcesoPrepolizas(ObjConta, ObjFacturaDevolucion, -1, TmpDT, ObjAC, -1, ObjBancos, ObjVentas)
|
||||||
Else
|
' Else
|
||||||
ErrorCancelar = ProcesoPrepolizas(ObjConta, ObjFacturaDevolucion, -1, TmpDT, ObjAC, -1, ObjBancos, ObjVentas)
|
' ErrorCancelar = ProcesoPrepolizas(ObjConta, ObjFacturaDevolucion, -1, TmpDT, ObjAC, -1, ObjBancos, ObjVentas)
|
||||||
End If
|
' End If
|
||||||
|
|
||||||
If Not ErrorCancelar Then
|
' If Not ErrorCancelar Then
|
||||||
ErrorCancelar = GuardarVentaImpuestosLocales(ObjVentas, ObjConta, ObjFacturaDevolucion, -1)
|
' ErrorCancelar = GuardarVentaImpuestosLocales(ObjVentas, ObjConta, ObjFacturaDevolucion, -1)
|
||||||
End If
|
' End If
|
||||||
|
|
||||||
If CveEstatus = 4 Then
|
' If CveEstatus = 4 Then
|
||||||
|
|
||||||
If ObjVentas.UpdateEstatusFactura(CveEstatus, FolioFiscal, "", Now, CveVenta, IDPoliza) Then
|
' If ObjVentas.UpdateEstatusFactura(CveEstatus, FolioFiscal, "", Now, CveVenta, IDPoliza) Then
|
||||||
Mensaje = "El nuevo estatus se guardó correctamente"
|
' Mensaje = "El nuevo estatus se guardó correctamente"
|
||||||
Else
|
' Else
|
||||||
ErrorCancelar = True
|
' ErrorCancelar = True
|
||||||
End If
|
' End If
|
||||||
|
|
||||||
'Si se está mandando a Cancelada SAT
|
' 'Si se está mandando a Cancelada SAT
|
||||||
ElseIf CveEstatus = 5 Then
|
' ElseIf CveEstatus = 5 Then
|
||||||
|
|
||||||
Dim DT As DataTable = Nothing
|
' Dim DT As DataTable = Nothing
|
||||||
|
|
||||||
If FolioFiscal = "" Then
|
' If FolioFiscal = "" Then
|
||||||
Dim XmlDoc As New XmlDocument
|
' Dim XmlDoc As New XmlDocument
|
||||||
XmlDoc.Load(Ruta & "XML\" & DdlTipoComprobante.SelectedValue & "\" & VentaFolio & ".xml")
|
' XmlDoc.Load(Ruta & "XML\" & DdlTipoComprobante.SelectedValue & "\" & VentaFolio & ".xml")
|
||||||
ViewState("FolioFiscal") = XmlDoc.DocumentElement("cfdi:Complemento").FirstChild.Attributes("UUID").InnerText
|
' ViewState("FolioFiscal") = XmlDoc.DocumentElement("cfdi:Complemento").FirstChild.Attributes("UUID").InnerText
|
||||||
End If
|
' End If
|
||||||
|
|
||||||
Dim ObjCancelacion As New Timbrado
|
' Dim ObjCancelacion As New Timbrado
|
||||||
|
|
||||||
Dim Total As Decimal = TxtTotal.Text.ToDecimal
|
' Dim Total As Decimal = TxtTotal.Text.ToDecimal
|
||||||
Dim RFCReceptor As String = HdnRFCVenta.Value
|
' Dim RFCReceptor As String = HdnRFCVenta.Value
|
||||||
|
|
||||||
If Not ObjVentas.UpdateEstatusFactura(13, FolioFiscal, "", Now, CveVenta, IDPoliza) Then 'Marcamos la factura como refacturada, si no se cancelo en el SAT el estatus nos dejara cancelarla despues
|
' If Not ObjVentas.UpdateEstatusFactura(13, FolioFiscal, "", Now, CveVenta, IDPoliza) Then 'Marcamos la factura como refacturada, si no se cancelo en el SAT el estatus nos dejara cancelarla despues
|
||||||
ErrorCancelar = True
|
' ErrorCancelar = True
|
||||||
End If
|
' End If
|
||||||
Dim RespCancelacion = ObjCancelacion.CFDICancelar(UsuarioActual.Empresa, FolioFiscal, Total, RFCReceptor, UsuarioActual.Empresa.RFC)
|
' Dim RespCancelacion = ObjCancelacion.CFDICancelar(UsuarioActual.Empresa, FolioFiscal, Total, RFCReceptor, UsuarioActual.Empresa.RFC)
|
||||||
If RespCancelacion.Verificado Then
|
' If RespCancelacion.Verificado Then
|
||||||
'falta verificar traer el acuse y reenviarlo
|
' 'falta verificar traer el acuse y reenviarlo
|
||||||
|
|
||||||
If UsuarioActual.Empresa.TipoContabilidad = 2 AndAlso UsuarioActual.Empresa.UsaAC Then
|
' If UsuarioActual.Empresa.TipoContabilidad = 2 AndAlso UsuarioActual.Empresa.UsaAC Then
|
||||||
Dim IDMPoliza As Modelos.RetornoPolizaConta = GenerarPolizaAC(ObjAC, ObjFacturaDevolucion, True)
|
' Dim IDMPoliza As Modelos.RetornoPolizaConta = GenerarPolizaAC(ObjAC, ObjFacturaDevolucion, True)
|
||||||
IDPoliza = IDMPoliza.IdPoliza
|
' IDPoliza = IDMPoliza.IdPoliza
|
||||||
If IDMPoliza.IdPoliza <= 0 Then
|
' If IDMPoliza.IdPoliza <= 0 Then
|
||||||
Mensaje = "No se pudo generar la poliza"
|
' Mensaje = "No se pudo generar la poliza"
|
||||||
ErrorCancelar = True
|
' ErrorCancelar = True
|
||||||
End If
|
' End If
|
||||||
End If
|
' End If
|
||||||
|
|
||||||
If Not ErrorCancelar Then
|
' If Not ErrorCancelar Then
|
||||||
If ObjVentas.UpdateEstatusFactura(CveEstatus, FolioFiscal, ObjCancelacion.CancelacionAcuse, Now, CveVenta, IDPoliza, CvePAC:=UsuarioActual.Empresa.CvePAC) Then
|
' If ObjVentas.UpdateEstatusFactura(CveEstatus, FolioFiscal, ObjCancelacion.CancelacionAcuse, Now, CveVenta, IDPoliza, CvePAC:=UsuarioActual.Empresa.CvePAC) Then
|
||||||
Mensaje = "El nuevo estatus se guardó correctamente"
|
' Mensaje = "El nuevo estatus se guardó correctamente"
|
||||||
Else
|
' Else
|
||||||
ErrorCancelar = True
|
' ErrorCancelar = True
|
||||||
End If
|
' End If
|
||||||
End If
|
' End If
|
||||||
Else
|
' Else
|
||||||
ErrorCancelar = True
|
' ErrorCancelar = True
|
||||||
End If
|
' End If
|
||||||
|
|
||||||
ObjCancelacion = Nothing
|
' ObjCancelacion = Nothing
|
||||||
|
|
||||||
End If
|
' End If
|
||||||
Catch ex As Exception
|
' Catch ex As Exception
|
||||||
GuardaLog("CancelF." & ex.ToString())
|
' GuardaLog("CancelF." & ex.ToString())
|
||||||
ErrorCancelar = True
|
' ErrorCancelar = True
|
||||||
End Try
|
' End Try
|
||||||
|
|
||||||
Return Not ErrorCancelar
|
' Return Not ErrorCancelar
|
||||||
End Function
|
'End Function
|
||||||
Protected Function CancelarFactura2(ObjVentas As ClsVentas, ObjConta As ClsContabilidad, ObjAC As ClsContPAQi, ObjBancos As ClsBancos) As Boolean
|
'Protected Function CancelarFactura2(ObjVentas As ClsVentas, ObjConta As ClsContabilidad, ObjAC As ClsContPAQi, ObjBancos As ClsBancos) As Boolean
|
||||||
|
|
||||||
Dim IDPoliza As Integer = -1
|
' Dim IDPoliza As Integer = -1
|
||||||
Dim CvePrePoliza As Integer
|
' Dim CvePrePoliza As Integer
|
||||||
Dim CvePlantillaPoliza As Integer
|
' Dim CvePlantillaPoliza As Integer
|
||||||
|
|
||||||
Dim ErrorCancelar As Boolean = False
|
' Dim ErrorCancelar As Boolean = False
|
||||||
Dim Mensaje As String = ""
|
' Dim Mensaje As String = ""
|
||||||
|
|
||||||
CreaObjetosVenta()
|
' CreaObjetosVenta()
|
||||||
|
|
||||||
If ObjFactura.TipoDocto.Contiene("Egs", "Dev") Then
|
' If ObjFactura.TipoDocto.Contiene("Egs", "Dev") Then
|
||||||
CvePlantillaPoliza = 7
|
' CvePlantillaPoliza = 7
|
||||||
ElseIf ObjFactura.TipoDocto.Contiene("Ing", "Rem") Then
|
' ElseIf ObjFactura.TipoDocto.Contiene("Ing", "Rem") Then
|
||||||
CvePlantillaPoliza = 4
|
' CvePlantillaPoliza = 4
|
||||||
End If
|
' End If
|
||||||
|
|
||||||
|
|
||||||
CvePrePoliza = ObjConta.AddPrePolizas("Ventas/GuardaEstatus", CvePlantillaPoliza, TxtTotal.Text.ToDouble, TxtTotal.Text.Replace(",", "").ToDouble, DdlMoneda.SelectedValue.ToEntero(), Now, NombreCliente, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa)
|
' CvePrePoliza = ObjConta.AddPrePolizas("Ventas/GuardaEstatus", CvePlantillaPoliza, TxtTotal.Text.ToDouble, TxtTotal.Text.Replace(",", "").ToDouble, DdlMoneda.SelectedValue.ToEntero(), Now, NombreCliente, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa)
|
||||||
ObjFactura.CveVenta = CveVenta
|
' ObjFactura.CveVenta = CveVenta
|
||||||
ObjFactura.CvePrePoliza = CvePrePoliza
|
' ObjFactura.CvePrePoliza = CvePrePoliza
|
||||||
|
|
||||||
If HplSaldoAuxiliar.Text.ToDecimal > 0 Then
|
' If HplSaldoAuxiliar.Text.ToDecimal > 0 Then
|
||||||
ErrorCancelar = ProcesoPrepolizas(ObjConta, ObjFactura, -1, TmpDT, ObjAC, -1, ObjBancos, ObjVentas)
|
' ErrorCancelar = ProcesoPrepolizas(ObjConta, ObjFactura, -1, TmpDT, ObjAC, -1, ObjBancos, ObjVentas)
|
||||||
End If
|
' End If
|
||||||
|
|
||||||
If Not ErrorCancelar Then
|
' If Not ErrorCancelar Then
|
||||||
ErrorCancelar = GuardarVentaImpuestosLocales(ObjVentas, ObjConta, ObjFactura, -1)
|
' ErrorCancelar = GuardarVentaImpuestosLocales(ObjVentas, ObjConta, ObjFactura, -1)
|
||||||
End If
|
' End If
|
||||||
|
|
||||||
If CveEstatus = 4 Then
|
' If CveEstatus = 4 Then
|
||||||
|
|
||||||
If ObjVentas.UpdateEstatusFactura(CveEstatus, FolioFiscal, "", Now, CveVenta, IDPoliza) Then
|
' If ObjVentas.UpdateEstatusFactura(CveEstatus, FolioFiscal, "", Now, CveVenta, IDPoliza) Then
|
||||||
Mensaje = "El nuevo estatus se guardó correctamente"
|
' Mensaje = "El nuevo estatus se guardó correctamente"
|
||||||
Else
|
' Else
|
||||||
ErrorCancelar = True
|
' ErrorCancelar = True
|
||||||
End If
|
' End If
|
||||||
|
|
||||||
'Si se está mandando a Cancelada SAT
|
' 'Si se está mandando a Cancelada SAT
|
||||||
ElseIf CveEstatus = 5 Then
|
' ElseIf CveEstatus = 5 Then
|
||||||
|
|
||||||
Dim DT As DataTable = Nothing
|
' Dim DT As DataTable = Nothing
|
||||||
|
|
||||||
If FolioFiscal = "" Then
|
' If FolioFiscal = "" Then
|
||||||
Dim XmlDoc As New XmlDocument
|
' Dim XmlDoc As New XmlDocument
|
||||||
XmlDoc.Load(Ruta & "XML\" & DdlTipoComprobante.SelectedValue & "\" & VentaFolio & ".xml")
|
' XmlDoc.Load(Ruta & "XML\" & DdlTipoComprobante.SelectedValue & "\" & VentaFolio & ".xml")
|
||||||
ViewState("FolioFiscal") = XmlDoc.DocumentElement("cfdi:Complemento").FirstChild.Attributes("UUID").InnerText
|
' ViewState("FolioFiscal") = XmlDoc.DocumentElement("cfdi:Complemento").FirstChild.Attributes("UUID").InnerText
|
||||||
End If
|
' End If
|
||||||
|
|
||||||
'Si es cancelar en el SAT:
|
' 'Si es cancelar en el SAT:
|
||||||
Dim CFDi As New ClbNegBICFDv3_2.ClsNegEDI
|
' Dim CFDi As New ClbNegBICFDv3_2.ClsNegEDI
|
||||||
Dim Respuesta As New ClbNegBICFDv3_2.ClsNegRespuesta
|
' Dim Respuesta As New ClbNegBICFDv3_2.ClsNegRespuesta
|
||||||
Respuesta = CFDi.CancelaCFdi(UsuarioActual.Empresa.BIUsuario, UsuarioActual.Empresa.BIContraseña, Ruta & "Certificados\" & UsuarioActual.Empresa.ArchivoPfx, UsuarioActual.Empresa.ContraseñaKey, UsuarioActual.Empresa.RFC, FolioFiscal, "http://208.43.160.178/srvCFDi/service1.asmx")
|
' Respuesta = CFDi.CancelaCFdi(UsuarioActual.Empresa.BIUsuario, UsuarioActual.Empresa.BIContraseña, Ruta & "Certificados\" & UsuarioActual.Empresa.ArchivoPfx, UsuarioActual.Empresa.ContraseñaKey, UsuarioActual.Empresa.RFC, FolioFiscal, "http://208.43.160.178/srvCFDi/service1.asmx")
|
||||||
|
|
||||||
If Respuesta Is Nothing Then
|
' If Respuesta Is Nothing Then
|
||||||
'Alert("La factura no se pudo cancelar. <br />Posbiles causas:<br /> - Los servicios del SAT están ocupados.<br /> - El Folio Fiscal no ha quedado registrado.", TipoMensaje.MsgError)
|
' 'Alert("La factura no se pudo cancelar. <br />Posbiles causas:<br /> - Los servicios del SAT están ocupados.<br /> - El Folio Fiscal no ha quedado registrado.", TipoMensaje.MsgError)
|
||||||
Me.GuardaLog(CFDi.MsgError)
|
' Me.GuardaLog(CFDi.MsgError)
|
||||||
ErrorCancelar = True
|
' ErrorCancelar = True
|
||||||
Mensaje = "La factura no se pudo cancelar. <br />Posbiles causas:<br /> - Los servicios del SAT están ocupados.<br /> - El Folio Fiscal no ha quedado registrado."
|
' Mensaje = "La factura no se pudo cancelar. <br />Posbiles causas:<br /> - Los servicios del SAT están ocupados.<br /> - El Folio Fiscal no ha quedado registrado."
|
||||||
ElseIf Respuesta.NoCertificadoSAT <> String.Empty Then
|
' ElseIf Respuesta.NoCertificadoSAT <> String.Empty Then
|
||||||
|
|
||||||
If UsuarioActual.Empresa.TipoContabilidad = 2 AndAlso UsuarioActual.Empresa.UsaAC Then
|
' If UsuarioActual.Empresa.TipoContabilidad = 2 AndAlso UsuarioActual.Empresa.UsaAC Then
|
||||||
Dim IDMPoliza As Modelos.RetornoPolizaConta = GenerarPolizaAC(ObjAC, ObjFacturaDevolucion, True)
|
' Dim IDMPoliza As Modelos.RetornoPolizaConta = GenerarPolizaAC(ObjAC, ObjFacturaDevolucion, True)
|
||||||
IDPoliza = IDMPoliza.IdPoliza
|
' IDPoliza = IDMPoliza.IdPoliza
|
||||||
If IDMPoliza.IdPoliza <= 0 Then
|
' If IDMPoliza.IdPoliza <= 0 Then
|
||||||
Mensaje = "No se pudo generar la poliza"
|
' Mensaje = "No se pudo generar la poliza"
|
||||||
ErrorCancelar = True
|
' ErrorCancelar = True
|
||||||
End If
|
' End If
|
||||||
End If
|
' End If
|
||||||
|
|
||||||
If Not ErrorCancelar Then
|
' If Not ErrorCancelar Then
|
||||||
If ObjVentas.UpdateEstatusFactura(CveEstatus, FolioFiscal, Respuesta.NoCertificadoSAT, Respuesta.FechaTimbrado, CveVenta, IDPoliza) Then
|
' If ObjVentas.UpdateEstatusFactura(CveEstatus, FolioFiscal, Respuesta.NoCertificadoSAT, Respuesta.FechaTimbrado, CveVenta, IDPoliza) Then
|
||||||
Mensaje = "El nuevo estatus se guardó correctamente"
|
' Mensaje = "El nuevo estatus se guardó correctamente"
|
||||||
Else
|
' Else
|
||||||
ErrorCancelar = True
|
' ErrorCancelar = True
|
||||||
End If
|
' End If
|
||||||
End If
|
' End If
|
||||||
End If
|
' End If
|
||||||
|
|
||||||
End If
|
' End If
|
||||||
|
|
||||||
Return Not ErrorCancelar
|
' Return Not ErrorCancelar
|
||||||
End Function
|
'End Function
|
||||||
|
|
||||||
Protected Sub ImgBtnAddC_Click(sender As Object, e As ImageClickEventArgs) Handles ImgBtnAddC.Click
|
Protected Sub ImgBtnAddC_Click(sender As Object, e As ImageClickEventArgs) Handles ImgBtnAddC.Click
|
||||||
Dim Row As DataRow = Nothing
|
Dim Row As DataRow = Nothing
|
||||||
@@ -17120,6 +17150,10 @@ Partial Class Ventas
|
|||||||
tdFechaVigencia.Visible = DdlTipoComprobante.SelectedValue.Contiene("Cot")
|
tdFechaVigencia.Visible = DdlTipoComprobante.SelectedValue.Contiene("Cot")
|
||||||
|
|
||||||
|
|
||||||
|
If UsuarioActual.Empresa.Funcionalidad(706) = "1" AndAlso (CveVenta <= 0 OrElse EsCreaApartirDe) AndAlso DdlTipoComprobante.SelectedValue.Contiene("Rem") Then
|
||||||
|
TrTipoContable.Visible = True
|
||||||
|
End If
|
||||||
|
|
||||||
Updatetabs.Update()
|
Updatetabs.Update()
|
||||||
UPCondicionesPago.Update()
|
UPCondicionesPago.Update()
|
||||||
UpCliente.Update()
|
UpCliente.Update()
|
||||||
@@ -19818,6 +19852,7 @@ Partial Class Ventas
|
|||||||
If Not OcurrioError AndAlso RemisionesLista.Count > 0 AndAlso DtRemConceptosSurtidos IsNot Nothing Then
|
If Not OcurrioError AndAlso RemisionesLista.Count > 0 AndAlso DtRemConceptosSurtidos IsNot Nothing Then
|
||||||
If DtRemConceptosSurtidos.SUMD("Surtido") <> DtRemConceptosSurtidos.SUMD("Cantidad") Then
|
If DtRemConceptosSurtidos.SUMD("Surtido") <> DtRemConceptosSurtidos.SUMD("Cantidad") Then
|
||||||
OcurrioError = True
|
OcurrioError = True
|
||||||
|
Alert("Lo facturado no coincide con lo surtido en inventario", TipoMensaje.MsgAdvertencia)
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user