diff --git a/App_Code/ClsInventarios.vb b/App_Code/ClsInventarios.vb
index 1699f61e8..b46e6a56d 100644
--- a/App_Code/ClsInventarios.vb
+++ b/App_Code/ClsInventarios.vb
@@ -1045,6 +1045,7 @@ Public Class ClsInventarios
.Add("@Licencia", SqlDbType.VarChar).Value = Licencia
.Add("@Modulo", SqlDbType.VarChar).Value = Modulo
.Add("@CveOP", SqlDbType.Int).Value = CveOP
+
.Add("@CveFolioGarantia", SqlDbType.Int).Value = CveFolioGarantia
End With
diff --git a/App_Code/ClsNominas.vb b/App_Code/ClsNominas.vb
index 6d12c1f84..4ab276bd8 100644
--- a/App_Code/ClsNominas.vb
+++ b/App_Code/ClsNominas.vb
@@ -3363,9 +3363,6 @@ Public Class ClsNominas
Return retorno
End Function
- Public Sub addParameters(varsql As String, sqltipe As SqlDbType, valor As Object)
- SqlAdapter.SelectCommand.Parameters.Add(varsql, sqltipe).Value = valor
- End Sub
Public Function RunQuery(errormsg As String) As Boolean
Dim retorno As Boolean = False
Try
@@ -3684,6 +3681,43 @@ Public Class ClsNominas
Return retorno
End Function
+ Public Function ConceptosGetallnewEmpresa(CveEmpresaOrigen As Integer, CveEmpresaDestino As Integer) As Boolean
+ Dim retorno As Boolean = False
+ DataAdapter("PA_Nom_ConceptosGetallnewEmpresa", CommandType.StoredProcedure)
+ With SqlAdapter.SelectCommand.Parameters
+ .Add("@CveEmpresaOrigen", SqlDbType.Int).Value = CveEmpresaOrigen
+ .Add("@CveEmpresaDestino", SqlDbType.Int).Value = CveEmpresaDestino
+ End With
+ Try
+ SqlAdapter.Fill(Data)
+ retorno = True
+ Catch ex As Exception
+ OnError("Ocurrió un error al clonar los conceptos de nominas.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
+ End Try
+ Return retorno
+ End Function
+
+ Public Function CargaPeriodosEjercicio(ejercicio As Int32, cveTipoPeriodo As Int32, cveSubTipoPeriodo As Int32, numero As Int32, fechaInicio As String, cveEmpresa As Int32, cveUsuario As Int32) As Boolean
+ Dim retorno As Boolean = False
+ DataAdapter("PA_Nom_CargaPeriodosEjercicio", CommandType.StoredProcedure)
+ addParameters("@Ejercicio", SqlDbType.Int, ejercicio)
+ addParameters("@CveTipoPeriodo", SqlDbType.Int, cveTipoPeriodo)
+ addParameters("@CveSubTipoPeriodo", SqlDbType.Int, cveSubTipoPeriodo)
+ addParameters("@Numero", SqlDbType.Int, numero)
+ addParameters("@FechaInicio", SqlDbType.VarChar, fechaInicio)
+ addParameters("@CveEmpresa", SqlDbType.Int, cveEmpresa)
+ addParameters("@CveUsuario", SqlDbType.Int, cveUsuario)
+ retorno = RunQuery("Ocurrió un error al realizar la carga de periodos.")
+ Return retorno
+ End Function
+
+
+
+
+
+ Public Sub addParameters(varsql As String, sqltipe As SqlDbType, valor As Object)
+ SqlAdapter.SelectCommand.Parameters.Add(varsql, sqltipe).Value = valor
+ End Sub
#Region "IDisposable Support"
' IDisposable
Protected Overridable Sub Dispose(ByVal disposing As Boolean)
diff --git a/App_Code/ClsOS.vb b/App_Code/ClsOS.vb
index 64b381f1d..171d0f8bf 100644
--- a/App_Code/ClsOS.vb
+++ b/App_Code/ClsOS.vb
@@ -378,7 +378,7 @@ Public Class ClsOS
Return Retorno
End Function
- Public Function AddEstatusOrdenServicio(EstatusOrdenServicio As String, TipoEstatus As Integer, Estado As Integer, CveUsuario As Integer, CveEmpresa As Integer) As Boolean
+ Public Function AddEstatusOrdenServicio(EstatusOrdenServicio As String, TipoEstatus As Integer, Estado As Integer, CveUsuario As Integer, CveEmpresa As Integer, BackgroundColor As String) As Boolean
Dim Retorno As Boolean = False
DataAdapter("PA_OS_EstatusOrdenServicioAdd")
@@ -389,7 +389,7 @@ Public Class ClsOS
.Add("@Estado", SqlDbType.Bit).Value = Estado
.Add("@CveUsuario", SqlDbType.Int).Value = CveUsuario
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
-
+ .Add("@BackgroundColor", SqlDbType.VarChar).Value = BackgroundColor
End With
Try
@@ -407,7 +407,7 @@ Public Class ClsOS
Return Retorno
End Function
- Public Function UpdateEstatusOrdenServicio(EstatusOrdenServicio As String, TipoEstatus As Integer, Estado As Integer, CveEstatusOrdenServicio As Integer) As Boolean
+ Public Function UpdateEstatusOrdenServicio(EstatusOrdenServicio As String, TipoEstatus As Integer, Estado As Integer, CveEstatusOrdenServicio As Integer, BackgroundColor As String) As Boolean
Dim Retorno As Boolean = False
DataAdapter("PA_OS_EstatusOrdenServicioUpdate")
@@ -417,6 +417,7 @@ Public Class ClsOS
.Add("@TipoEstatus", SqlDbType.Int).Value = TipoEstatus
.Add("@Estado", SqlDbType.Bit).Value = Estado
.Add("@CveEstatusOrdenServicio", SqlDbType.Int).Value = CveEstatusOrdenServicio
+ .Add("@BackgroundColor", SqlDbType.VarChar).Value = BackgroundColor
End With
Try
diff --git a/App_Code/ClsVentas.vb b/App_Code/ClsVentas.vb
index e1eab6eec..4c1bf4982 100644
--- a/App_Code/ClsVentas.vb
+++ b/App_Code/ClsVentas.vb
@@ -419,7 +419,7 @@ Public Class ClsVentas
Optional DiasCredito As Integer = 0, Optional EsDiasCreditoFijo As Boolean = False, Optional AnticipoEspecial As Boolean = False, Optional Kilometraje As Double = 0, Optional EsAmortizacion As Boolean = False, Optional CveTipoRetencion As Integer = 0,
Optional CorreoNotificacion As String = "", Optional FormaPaqueteria As Integer = 1, Optional FacturarSucursal As Boolean = False, Optional VentaDesglosaIEPS As Boolean = False, Optional ServicioDomicilio As Boolean = False, Optional RFCReceptor As String = "", Optional Adjunto As String = "-1",
Optional DevolucionImportePagado As Decimal = 0, Optional EsGarantia As Boolean = False, Optional CveLineaAdicional As Integer = -1, Optional DescripcionVenta As String = "",
- Optional CveMedico As Integer = -1, Optional CveProcedimiento As Integer = -1, Optional CveTipoVenta As Integer = -1
+ Optional CveMedico As Integer = -1, Optional CveProcedimiento As Integer = -1, Optional CveTipoVenta As Integer = -1, Optional RequiereOS As Boolean = False
) As Boolean
Dim Retorno As Boolean = False
@@ -524,6 +524,8 @@ Public Class ClsVentas
.Add("@CveMedico", SqlDbType.Int).Value = CveMedico
.Add("@CveProcedimiento", SqlDbType.Int).Value = CveProcedimiento
.Add("@CveTipoVenta", SqlDbType.Int).Value = CveTipoVenta
+ .Add("@RequiereOS", SqlDbType.Int).Value = RequiereOS
+
.Add("@RETURN_VALUE", SqlDbType.Int).Direction = ParameterDirection.ReturnValue
End With
@@ -552,7 +554,9 @@ Public Class ClsVentas
Optional TipoDocto As String = "Cot", Optional Vigencia As Date = MinFecha, Optional CondicionesPago As Integer = -1,
Optional AtencionA As String = "-1", Optional PedidoContrato As String = "-1", Optional CveFormaPago33 As Integer = -1, Optional CveMetodoPago33 As Integer = -1,
Optional CveCliente As Integer = -1, Optional CveClienteSucursal As Integer = -1, Optional OrdenCompra As String = "-1", Optional RetIVA As Double = -1,
- Optional RetISR As Double = -1, Optional Kilometraje As Double = 0, Optional CveUsoCFDi As Integer = -1, Optional ServicioDomicilio As Boolean = False, Optional CveVendedor As Integer = -1) As Boolean
+ Optional RetISR As Double = -1, Optional Kilometraje As Double = 0, Optional CveUsoCFDi As Integer = -1, Optional ServicioDomicilio As Boolean = False, Optional CveVendedor As Integer = -1,
+ Optional RequiereOS As Boolean = False) As Boolean
+
Dim Retorno As Boolean = False
DataAdapter("PA_Vta_VentasUpdate")
@@ -586,6 +590,7 @@ Public Class ClsVentas
.Add("@CveUsoCFDi", SqlDbType.SmallInt).Value = CveUsoCFDi
.Add("@ServicioDomicilio", SqlDbType.Bit).Value = ServicioDomicilio
.Add("@CveVendedor", SqlDbType.Int).Value = CveVendedor
+ .Add("@RequiereOS", SqlDbType.Int).Value = RequiereOS
End With
Try
@@ -5989,7 +5994,8 @@ Public Class ClsVentas
- Public Function AddMedico(Medico As String, CedulaProfesional As String, FechaNacimiento As Date, Notas As String, DiasAtencion As String, Horario As String, Lugar As String, Estatus As Boolean, CveUsuario As Integer, CveEmpresa As Integer) As Boolean
+ Public Function AddMedico(Medico As String, CedulaProfesional As String, FechaNacimiento As Date, Notas As String, DiasAtencion As String, Horario As String, Lugar As String, Estatus As Boolean, CveUsuario As Integer,
+ CveEmpresa As Integer, Telefono As String, Mail As String, Especialidad As String) As Boolean
Dim Retorno As Boolean = False
DataAdapter("PA_Vta_MedicosAdd")
@@ -6005,6 +6011,11 @@ Public Class ClsVentas
.Add("@Estatus", SqlDbType.Bit).Value = Estatus
.Add("@CveUsuario", SqlDbType.Int).Value = CveUsuario
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
+ .Add("@Telefono", SqlDbType.VarChar).Value = Telefono
+ .Add("@Mail", SqlDbType.VarChar).Value = Mail
+ .Add("@Especialidad", SqlDbType.VarChar).Value = Especialidad
+
+
End With
Try
SqlAdapter.Fill(Data)
@@ -6016,7 +6027,8 @@ Public Class ClsVentas
End Function
- Public Function UpdateMedico(CveMedico As Integer, Medico As String, CedulaProfesional As String, FechaNacimiento As Date, Notas As String, DiasAtencion As String, Horario As String, Lugar As String, Estatus As Boolean, CveUsuario As Integer, CveEmpresa As Integer) As Boolean
+ Public Function UpdateMedico(CveMedico As Integer, Medico As String, CedulaProfesional As String, FechaNacimiento As Date, Notas As String, DiasAtencion As String, Horario As String, Lugar As String, Estatus As Boolean, CveUsuario As Integer,
+ CveEmpresa As Integer, Telefono As String, Mail As String, Especialidad As String) As Boolean
Dim Retorno As Boolean = False
DataAdapter("PA_Vta_MedicosUpdate")
@@ -6032,6 +6044,9 @@ Public Class ClsVentas
.Add("@Estatus", SqlDbType.Bit).Value = Estatus
.Add("@CveUsuario", SqlDbType.Int).Value = CveUsuario
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
+ .Add("@Telefono", SqlDbType.VarChar).Value = Telefono
+ .Add("@Mail", SqlDbType.VarChar).Value = Mail
+ .Add("@Especialidad", SqlDbType.VarChar).Value = Especialidad
End With
Try
SqlAdapter.Fill(Data)
diff --git a/Ashx/CargaEventos.ashx b/Ashx/CargaEventos.ashx
index 3fdd5326a..fbcce7d3e 100644
--- a/Ashx/CargaEventos.ashx
+++ b/Ashx/CargaEventos.ashx
@@ -100,6 +100,10 @@ Public Class CargaEventos : Implements IHttpHandler, IRequiresSessionState
DT_SubProyectos.Columns.Add("CveSubProyecto", GetType(Integer))
DT_SubProyectos.Columns.Add("backgroundColor")
+ Dim DT_EstatusOS = New DataTable
+ DT_EstatusOS.Columns.Add("", GetType(Integer))
+
+
'son 26
Dim Colores() As String = {"#006699", "#0099cc", "#0066cc", "#0033cc", "#0000ff", "#3333ff", "#3333ff", "#6600ff", "#9933ff", "#cc00ff", "#cc00cc", "#cc0099", "#cc3399", "#cc6699", "#cc0066", "#009933", "#00cc00", "#00cc66", "#009999", "#669900", "#99cc00", "#cccc00", "#cc9900", "#ff9900", "#006666", "#669999"}
@@ -140,6 +144,8 @@ Public Class CargaEventos : Implements IHttpHandler, IRequiresSessionState
End If
+
+
Dim EsCoordinador As Boolean = False
Dim usuarioActual_ As Usuario = UsuarioActual(context)
@@ -239,17 +245,24 @@ Public Class CargaEventos : Implements IHttpHandler, IRequiresSessionState
If usuarioActual_.Empresa.Funcionalidad(578) = "1" Then
- If dr("TipoEstatusOS").ToString.ToEntero.Contiene(1, 2, 3) Then
- cevent.backgroundColor = "#006699"
- ElseIf dr("TipoEstatusOS").ToString.ToEntero.Contiene(4) Then
- cevent.backgroundColor = "#025716"
- ElseIf dr("TipoEstatusOS").ToString.ToEntero.Contiene(5) Then
- cevent.backgroundColor = "#730505"
+ Dim colorString As String = dr("BackgroundColorOS").ToString.Trim
+
+ If colorString.Length > 0 AndAlso IsValidHtmlColor(colorString) Then
+ cevent.backgroundColor = $"#{colorString}"
Else
- cevent.backgroundColor = "#006699"
+ If dr("TipoEstatusOS").ToString.ToEntero.Contiene(1, 2, 3) Then
+ cevent.backgroundColor = "#006699"
+ ElseIf dr("TipoEstatusOS").ToString.ToEntero.Contiene(4) Then
+ cevent.backgroundColor = "#025716"
+ ElseIf dr("TipoEstatusOS").ToString.ToEntero.Contiene(5) Then
+ cevent.backgroundColor = "#730505"
+ Else
+ cevent.backgroundColor = "#006699"
+ End If
End If
+
End If
'VERIFICAMOS SI TIENE O NO RECURRENCIA
@@ -424,5 +437,16 @@ Public Class CargaEventos : Implements IHttpHandler, IRequiresSessionState
End Get
End Property
+ Private Function IsValidHtmlColor(colorString As String) As Boolean
+ Try
+ Dim color As System.Drawing.Color = System.Drawing.ColorTranslator.FromHtml(colorString)
+ ' Si no se produce una excepción, el color es válido
+ Return True
+ Catch ex As Exception
+ ' Se produce una excepción, el color no es válido
+ Return False
+ End Try
+ End Function
+
End Class
diff --git a/CRM/Acercamiento.aspx b/CRM/Acercamiento.aspx
index 47b1508a6..b726cbc25 100644
--- a/CRM/Acercamiento.aspx
+++ b/CRM/Acercamiento.aspx
@@ -454,7 +454,7 @@
<%----%>
-
+
diff --git a/CRM/EmpresaCRM.aspx b/CRM/EmpresaCRM.aspx
index 29216de65..a4e65951e 100644
--- a/CRM/EmpresaCRM.aspx
+++ b/CRM/EmpresaCRM.aspx
@@ -861,7 +861,7 @@
<%----%>
-
+
diff --git a/Compras/Compras.aspx.vb b/Compras/Compras.aspx.vb
index bbfac1dde..c6a2fd3ed 100644
--- a/Compras/Compras.aspx.vb
+++ b/Compras/Compras.aspx.vb
@@ -8598,7 +8598,9 @@ Partial Class Compras_Compras
If Not ObjCompra.UpdateCompraDetalle(Row("CvePS").ToString.ToEntero, Row("Cantidad").ToString.ToDecimal, Row("PU").ToString.ToDecimal, Row("IVA").ToString.ToDecimal, Row("Total").ToString.ToDecimal,
Row("Descuento").ToString.ToDecimal, Row("Obs").ToString, Row("CveSubProyecto").ToString.ToEntero, Row("CvePresupuestoEgreso").ToString.ToEntero, CveAF, Row("CveCompraDetalle").ToString.ToEntero, CvePersonal:=CvePersonal, CveTipoGasto:=Row("CveTipoGasto").ToString.ToEntero, AF_Medida:=Row("AFMedida").ToString.ToEntero, AF_TipoMantenimiento:=Row("AFTipoMantenimiento").ToString.ToEntero, Referencia:=Referencia,
RetIVA:=Row("RetIVA").ToString.ToDecimal, RetISR:=Row("RetISR").ToString.ToDecimal, IEPSPS:=Row("IEPSPS").ToString.ToDecimal, IEPSPSIVA:=Row("IEPSPSIVA").ToString.ToDecimal,
- IVAPorcentaje:=Row("IVAPorcentaje").ToString.ToDecimal, RetIVAPorcentaje:=Row("RetIVAPorcentaje").ToString.ToDecimal, RetISRPorcentaje:=Row("RetISRPorcentaje").ToString.ToDecimal, IEPSPSPorcentaje:=Row("IEPSPSPorcentaje").ToString.ToDecimal, IEPSPSIVAPorcentaje:=Row("IEPSPSIVAPorcentaje").ToString.ToDecimal, NoDeducible:=If((Row("NoDeducible").ToString().ToUpper().Contiene("TRUE", "1")) AndAlso ChkEsNoDeducible.Checked, True, False), CveContratoDetalle:=Row("CveContratoDetalle").ToString.ToEntero) Then
+ IVAPorcentaje:=Row("IVAPorcentaje").ToString.ToDecimal, RetIVAPorcentaje:=Row("RetIVAPorcentaje").ToString.ToDecimal, RetISRPorcentaje:=Row("RetISRPorcentaje").ToString.ToDecimal,
+ IEPSPSPorcentaje:=Row("IEPSPSPorcentaje").ToString.ToDecimal, IEPSPSIVAPorcentaje:=Row("IEPSPSIVAPorcentaje").ToString.ToDecimal, NoDeducible:=If((Row("NoDeducible").ToString().ToUpper().Contiene("TRUE", "1")) AndAlso ChkEsNoDeducible.Checked, True, False),
+ CveContratoDetalle:=Row("CveContratoDetalle").ToString.ToEntero) Then
Retorno = False
Exit For
@@ -10884,7 +10886,7 @@ Partial Class Compras_Compras
Try
- TmpDT.Rows(Index)("CveActivoFijo") = Nothing
+ TmpDT.Rows(Index)("CveActivoFijo") = -1
TmpDT.AcceptChanges()
Catch ex As Exception
diff --git a/Inventarios/EntregaAlmacen.aspx b/Inventarios/EntregaAlmacen.aspx
index 277f7e9b2..80305b09f 100644
--- a/Inventarios/EntregaAlmacen.aspx
+++ b/Inventarios/EntregaAlmacen.aspx
@@ -367,7 +367,7 @@
-
+
diff --git a/Inventarios/EntregaAlmacen.aspx.vb b/Inventarios/EntregaAlmacen.aspx.vb
index 03580d33e..9fc025498 100644
--- a/Inventarios/EntregaAlmacen.aspx.vb
+++ b/Inventarios/EntregaAlmacen.aspx.vb
@@ -106,7 +106,18 @@ Partial Class Inventarios_EntregaAlmacen
Set(value As Integer)
ViewState("CveVentaSurtir") = value
End Set
- End Property
+ End Property
+
+ Private Property CveOSSurtir As Integer
+ Get
+ Return CType(ViewState("CveOSSurtir"), Integer)
+ End Get
+ Set(value As Integer)
+ ViewState("CveOSSurtir") = value
+ End Set
+ End Property
+
+
Private Property TipoEstatus As Integer
Get
Return CType(ViewState("TipoEstatus"), Integer)
@@ -547,6 +558,10 @@ Partial Class Inventarios_EntregaAlmacen
Protected Sub BtnSurtir_Click(sender As Object, e As EventArgs)
Dim Boton As LinkButton = CType(sender, LinkButton)
+
+ Dim GvRow As GridViewRow = DirectCast((DirectCast(sender, LinkButton)).NamingContainer, GridViewRow)
+ Dim CveOS As Integer = GvRow.DataKey("CveOS").ToEntero
+
CveVentaAD = -1
If Boton.CommandArgument.ToEntero() > 0 Then
@@ -560,7 +575,7 @@ Partial Class Inventarios_EntregaAlmacen
Select Case CType(Boton.NamingContainer, GridViewRow).DataKey("TipoEntrega").ToEntero()
Case 1 ' VENTA
- CargaVentaPorSurtir(CType(sender, LinkButton).CommandArgument.ToEntero())
+ CargaVentaPorSurtir(CType(sender, LinkButton).CommandArgument.ToEntero(), CveOS:=CveOS)
Case 2 ' TRASPASO
DivTransitorio1.Visible = True
CargaTraspasoPorSurtir(CType(Boton.NamingContainer, GridViewRow).DataKey("CveTraspasoSolicitud").ToEntero())
@@ -573,15 +588,17 @@ Partial Class Inventarios_EntregaAlmacen
CveVentaAD = -2
CargaVentaPorSurtir(DdlFolio.SelectedValue.ToEntero())
End Sub
- Private Sub CargaVentaPorSurtir(CveVenta As Integer, Optional CveAlmacen As Integer = -1)
+ Private Sub CargaVentaPorSurtir(CveVenta As Integer, Optional CveAlmacen As Integer = -1, Optional CveOS As Integer = -1)
LbSurtida.Visible = False
CveContrato = -1
CveSubProyecto = -1
CveOP = -1
DtDatos = Nothing
TipoEntrega = 1
- BtnGuardar.Visible = True
-
+ BtnGuardar.Visible = True
+
+
+
Dim StrAlmacenes As String = "CveTipoAlmacen IN (1,2,26)"
If UsuarioActual.CveSubProyecto = 8804 Then
@@ -642,6 +659,7 @@ Partial Class Inventarios_EntregaAlmacen
trObsAlmacen.Visible = drE("ObservacionesAlmacen").ToString() <> ""
LbObservacionesAlmacen.Text = drE("ObservacionesAlmacen").ToString()
CveVentaSurtir = CveVenta
+ CveOSSurtir = CveOS
CveAlmacenTraspasoDestino = drE(If(EsDevolucionVenta = 1 And TipoDocto <> "Rem", "CveAlmacenTraspasoOrigen", "CveAlmacenTraspasoDestino")).ToString().ToEntero()
CveAlmacenTraspasoOrigen = drE(If(EsDevolucionVenta = 1 And TipoDocto <> "Rem", "CveAlmacenTraspasoDestino", "CveAlmacenTraspasoOrigen")).ToString().ToEntero()
CveContrato = drE("CveContrato").ToString().ToEntero()
@@ -857,6 +875,7 @@ Partial Class Inventarios_EntregaAlmacen
EsInterno = CBool(DtDatos.Rows(0)("EsInterno").ToString())
CveOP = DtDatos.Rows(0)("CveOP").ToString().ToEntero()
CveVentaSurtir = -1
+ CveOSSurtir = -1
If DtDatos.SUM("CantidadS") <= 0 Then
GvDatos.CssClass = "table table-striped table-hover Widthall ScrollAD gvInventario gvEscondeColumna"
Else
@@ -945,7 +964,7 @@ Partial Class Inventarios_EntregaAlmacen
'SugerirFecha()
If DdlAlmacen.SelectedValue.ToEntero > 0 And CveVentaSurtir > 0 Then
- CargaVentaPorSurtir(CveVentaSurtir, CveAlmacen:=DdlAlmacen.SelectedValue.ToEntero)
+ CargaVentaPorSurtir(CveVentaSurtir, CveAlmacen:=DdlAlmacen.SelectedValue.ToEntero, CveOS:=CveOSSurtir)
If CargaBitacora Then
CargaBitacoraSerie()
@@ -2002,7 +2021,7 @@ Partial Class Inventarios_EntregaAlmacen
If Not CveMovimientoSalida > 0 Then
- CveMovimientoSalida = ObjInventario.AddMovimiento(Dr2("CveAlmacen").ToString().ToEntero(), CveConceptoSalidaSinCosto, 1, TxtFecha.Text.ToDate, -1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1, CveVentaSurtir, -1, -1,
+ CveMovimientoSalida = ObjInventario.AddMovimiento(Dr2("CveAlmacen").ToString().ToEntero(), CveConceptoSalidaSinCosto, 1, TxtFecha.Text.ToDate, -1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1, CveVentaSurtir, -1, -1, CveOS:=CveOSSurtir,
Observaciones:=TxtObservaciones.Text.Trim, Guia:=TxtGuia.Text, CveContrato:=CveContrato, Modulo:="RE/GSC1")
FolioSalida = ObjInventario.Folio
@@ -2052,7 +2071,7 @@ Partial Class Inventarios_EntregaAlmacen
CveMovimientoSalida = DtTraspasos.FiltroPrimeroValor("CveMovimientoSalida", $"CveAlmacen = {Dr1("CveAlmacen")}").ToEntero()
If Not CveMovimientoSalida > 0 Then
- CveMovimientoSalida = ObjInventario.AddMovimiento(Dr1("CveAlmacen").ToString().ToEntero(), CveConceptoSalidaSinCosto, 1, TxtFecha.Text.ToDate, -1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1, CveVentaSurtir, -1, -1,
+ CveMovimientoSalida = ObjInventario.AddMovimiento(Dr1("CveAlmacen").ToString().ToEntero(), CveConceptoSalidaSinCosto, 1, TxtFecha.Text.ToDate, -1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1, CveVentaSurtir, -1, -1, CveOS:=CveOSSurtir,
Observaciones:=TxtObservaciones.Text.Trim, Guia:=TxtGuia.Text, CveContrato:=CveContrato, Modulo:="RE/GSC3")
FolioSalida = ObjInventario.Folio
@@ -2112,7 +2131,7 @@ Partial Class Inventarios_EntregaAlmacen
Dim CveAlmacenExA As Integer = GlobalDTAlmacen(UsuarioActual.CveEmpresa, CveTipoAlmacen:=10).FiltroPrimeroValor("CveAlmacen", $"CveSubProyecto={CveSubProyecto}").ToEntero()
- CveMovimientoEntradaApartado = ObjInventario.AddMovimiento(CveAlmacenExA, 9, 1, TxtFecha.Text.ToDate, -1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1, CveVentaSurtir, -1, -1,
+ CveMovimientoEntradaApartado = ObjInventario.AddMovimiento(CveAlmacenExA, 9, 1, TxtFecha.Text.ToDate, -1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1, CveVentaSurtir, -1, -1, CveOS:=CveOSSurtir,
Observaciones:=TxtObservaciones.Text.Trim, CveAlmacenDestino:=DdlAlmacen.SelectedValue.ToEntero(), CveMovimientoRelacionado:=CveMovimientoSalida,
Guia:=TxtGuia.Text, CveContrato:=CveContrato, CveVendedor:=CveVendedor, CveCliente:=CveCliente, Modulo:="RE/G4")
FolioEntrada = ObjInventario.Folio
@@ -2194,7 +2213,7 @@ Partial Class Inventarios_EntregaAlmacen
CveMovimientoSalida = DtTraspasos.FiltroPrimeroValor("CveMovimientoSalida", $"CveAlmacen = {Dr2("CveAlmacen")}").ToEntero()
If Not CveMovimientoSalida > 0 Then
- CveMovimientoSalida = ObjInventario.AddMovimiento(Dr2("CveAlmacen").ToString().ToEntero(), 8, 1, TxtFecha.Text.ToDate, -1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1, CveVentaSurtir, -1, -1,
+ CveMovimientoSalida = ObjInventario.AddMovimiento(Dr2("CveAlmacen").ToString().ToEntero(), 8, 1, TxtFecha.Text.ToDate, -1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1, CveVentaSurtir, -1, -1, CveOS:=CveOSSurtir,
Observaciones:=TxtObservaciones.Text.Trim, Guia:=TxtGuia.Text, CveContrato:=CveContrato, CveVendedor:=CveVendedor, CveCliente:=If(UsuarioActual.Empresa.Funcionalidad(146) = "1", -1, CveCliente),
CveAlmacenDestino:=DdlAlmacen.SelectedValue.ToEntero(), Modulo:="RE/G1")
FolioSalida = ObjInventario.Folio
@@ -2248,7 +2267,7 @@ Partial Class Inventarios_EntregaAlmacen
CveMovimientoSalida = DtTraspasos.FiltroPrimeroValor("CveMovimientoSalida", $"CveAlmacen = {Dr2("CveAlmacen")}").ToEntero()
If Not CveMovimientoSalida > 0 Then
- CveMovimientoSalida = ObjInventario.AddMovimiento(Dr2("CveAlmacen").ToString().ToEntero(), 8, 1, TxtFecha.Text.ToDate, -1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1, CveVentaSurtir, -1, -1, Observaciones:=TxtObservaciones.Text.Trim,
+ CveMovimientoSalida = ObjInventario.AddMovimiento(Dr2("CveAlmacen").ToString().ToEntero(), 8, 1, TxtFecha.Text.ToDate, -1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1, CveVentaSurtir, -1, -1, CveOS:=CveOSSurtir, Observaciones:=TxtObservaciones.Text.Trim,
Guia:=TxtGuia.Text, CveContrato:=CveContrato, CveVendedor:=CveVendedor, CveCliente:=If(UsuarioActual.Empresa.Funcionalidad(146) = "1", -1, CveCliente),
CveAlmacenDestino:=DdlAlmacen.SelectedValue.ToEntero(), Modulo:="RE/G2")
FolioSalida = ObjInventario.Folio
@@ -2301,7 +2320,7 @@ Partial Class Inventarios_EntregaAlmacen
If Not CveMovimientoSalida > 0 Then
- CveMovimientoSalida = ObjInventario.AddMovimiento(Dr1("CveAlmacen").ToString().ToEntero(), 8, 1, TxtFecha.Text.ToDate, -1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1, CveVentaSurtir, -1, -1,
+ CveMovimientoSalida = ObjInventario.AddMovimiento(Dr1("CveAlmacen").ToString().ToEntero(), 8, 1, TxtFecha.Text.ToDate, -1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1, CveVentaSurtir, -1, -1, CveOS:=CveOSSurtir,
Observaciones:=TxtObservaciones.Text.Trim, Guia:=TxtGuia.Text, CveContrato:=CveContrato, CveVendedor:=CveVendedor,
CveCliente:=If(UsuarioActual.Empresa.Funcionalidad(146) = "1", -1, CveCliente), CveAlmacenDestino:=DdlAlmacen.SelectedValue.ToEntero(), Modulo:="RE/G3")
FolioSalida = ObjInventario.Folio
@@ -2359,7 +2378,7 @@ Partial Class Inventarios_EntregaAlmacen
For Each Dr1 As DataRow In DtTraspasos.Select("CveTipoAlmacen = 9")
CveMovimientoSalida = Dr1("CveMovimientoSalida").ToString().ToEntero()
- CveMovimientoEntradaApartado = ObjInventario.AddMovimiento(DdlAlmacen.SelectedValue.ToEntero(), 9, 1, TxtFecha.Text.ToDate, -1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1, CveVentaSurtir, -1, -1,
+ CveMovimientoEntradaApartado = ObjInventario.AddMovimiento(DdlAlmacen.SelectedValue.ToEntero(), 9, 1, TxtFecha.Text.ToDate, -1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1, CveVentaSurtir, -1, -1, CveOS:=CveOSSurtir,
Observaciones:=TxtObservaciones.Text.Trim, CveAlmacenDestino:=DdlAlmacen.SelectedValue.ToEntero(), CveMovimientoRelacionado:=CveMovimientoSalida,
Guia:=TxtGuia.Text, CveContrato:=CveContrato, CveVendedor:=CveVendedor, CveCliente:=CveCliente, Modulo:="RE/G4")
FolioEntrada = ObjInventario.Folio
@@ -2403,7 +2422,7 @@ Partial Class Inventarios_EntregaAlmacen
End If
If DtGarantias IsNot Nothing AndAlso DtGarantias.Rows.Count > 0 AndAlso CveAlmacenGarantia > 0 Then
- CveMovimientoGarantia = ObjInventario.AddMovimiento(CveAlmacenGarantia, 14, 1, TxtFecha.Text.ToDate, -1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1, CveVentaSurtir, -1, -1, Observaciones:=TxtObservaciones.Text.Trim, Guia:=TxtGuia.Text, Modulo:="EA/G5")
+ CveMovimientoGarantia = ObjInventario.AddMovimiento(CveAlmacenGarantia, 14, 1, TxtFecha.Text.ToDate, -1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1, CveVentaSurtir, -1, -1, CveOS:=CveOSSurtir, Observaciones:=TxtObservaciones.Text.Trim, Guia:=TxtGuia.Text, Modulo:="EA/G5")
FolioGarantia = ObjInventario.Folio
For Each RowGarantia As DataRow In DtGarantias.Rows
@@ -2455,7 +2474,7 @@ Partial Class Inventarios_EntregaAlmacen
'Dim AlmacenSinCosto As String = GlobalDTAlmacen(UsuarioActual.CveEmpresa, CveTipoAlmacen:=26).FiltroPrimeroValor("Almacen", $"CveAlmacen={CveAlmacenSinCosto}").ToString()
- Dim CveMovimientoDevolucionSinCosto As Integer = ObjInventario.AddMovimiento(DdlAlmacen.SelectedValue.ToEntero(), 41, 1, TxtFecha.Text.ToDate, -1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1, CveVentaSurtir, -1, -1,
+ Dim CveMovimientoDevolucionSinCosto As Integer = ObjInventario.AddMovimiento(DdlAlmacen.SelectedValue.ToEntero(), 41, 1, TxtFecha.Text.ToDate, -1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1, CveVentaSurtir, -1, -1, CveOS:=CveOSSurtir,
Observaciones:=TxtObservaciones.Text.Trim, CveAlmacenDestino:=DdlAlmacen.SelectedValue.ToEntero(), CveMovimientoRelacionado:=CveMovimientoSalida,
Guia:=TxtGuia.Text, CveContrato:=CveContrato, CveVendedor:=CveVendedor, CveCliente:=CveCliente, Modulo:="RE/G4")
Dim FolioDevSinCosto As Integer = ObjInventario.Folio
@@ -2539,7 +2558,7 @@ Partial Class Inventarios_EntregaAlmacen
ConceptoMovimiento = 41
End If
- CveMovimiento = ObjInventario.AddMovimiento(Almacen1, ConceptoMovimiento, 1, TxtFecha.Text.ToDate, -1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1, CveVentaSurtir, -1, -1, Observaciones:=TxtObservaciones.Text.Trim, Guia:=TxtGuia.Text,
+ CveMovimiento = ObjInventario.AddMovimiento(Almacen1, ConceptoMovimiento, 1, TxtFecha.Text.ToDate, -1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1, CveVentaSurtir, -1, -1, CveOS:=CveOSSurtir, Observaciones:=TxtObservaciones.Text.Trim, Guia:=TxtGuia.Text,
CveContrato:=CveContrato, CveAlmacenDestino:=tCveAlmacenTraspasoDestino, Modulo:="RE/G7")
Folio = ObjInventario.Folio
@@ -2640,7 +2659,7 @@ Partial Class Inventarios_EntregaAlmacen
'ENTRADA POR TRASPASO CUANDO ES REMISION
If Not ErrorMovInv Then
If tCveAlmacenTraspasoDestino > 0 AndAlso Not (TipoMovimiento = 2 And TipoDocto = "Dev" And EsDevolucionVenta = 1) Then ' TRASPASO CUANDO ES REMISION
- CveMovimientoEntrada = ObjInventario.AddMovimiento(tCveAlmacenTraspasoDestino, 9, 1, TxtFecha.Text.ToDate, -1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1, CveVentaSurtir, -1, -1, Observaciones:=TxtObservaciones.Text.Trim, Guia:=TxtGuia.Text, CveContrato:=CveContrato,
+ CveMovimientoEntrada = ObjInventario.AddMovimiento(tCveAlmacenTraspasoDestino, 9, 1, TxtFecha.Text.ToDate, -1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1, CveVentaSurtir, -1, -1, CveOS:=CveOSSurtir, Observaciones:=TxtObservaciones.Text.Trim, Guia:=TxtGuia.Text, CveContrato:=CveContrato,
CveMovimientoRelacionado:=CveMovimiento, CveAlmacenDestino:=DdlAlmacen.SelectedValue.ToEntero(), Modulo:="RE/G8")
FolioEntrada = ObjInventario.Folio
Dim ImporteAlmacen As Decimal = 0
@@ -2695,7 +2714,7 @@ Partial Class Inventarios_EntregaAlmacen
For Each Dr As DataRow In DtTempApartados.Rows
If CveMovimientoSalidaApartado = -1 Or CveAlmacenApartado <> Dr("CveAlmacen").ToString().ToEntero() Then
- CveMovimientoSalidaApartado = ObjInventario.AddMovimiento(CveAlmacenOrigen, 8, 1, TxtFecha.Text.ToDate, -1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1, CveVentaSurtir, -1, -1,
+ CveMovimientoSalidaApartado = ObjInventario.AddMovimiento(CveAlmacenOrigen, 8, 1, TxtFecha.Text.ToDate, -1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1, CveVentaSurtir, -1, -1, CveOS:=CveOSSurtir,
Observaciones:=TxtObservaciones.Text.Trim, Guia:=TxtGuia.Text, CveContrato:=CveContrato, CveVendedor:=CveVendedor, CveCliente:=CveCliente,
CveAlmacenDestino:=Dr("CveAlmacen").ToString().ToEntero(), Modulo:="RE/G9")
FolioSalida = ObjInventario.Folio
@@ -2742,7 +2761,7 @@ Partial Class Inventarios_EntregaAlmacen
CveMovimientoSalida = Dr1("CveMovimientoSalida").ToString().ToEntero()
CveMovimientoEntradaApartado = ObjInventario.AddMovimiento(Dr1("CveAlmacen").ToString().ToEntero(), 9, 1, TxtFecha.Text.ToDate, -1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa,
- -1, CveVentaSurtir, -1, -1, Observaciones:=TxtObservaciones.Text.Trim, CveAlmacenDestino:=DdlAlmacen.SelectedValue.ToEntero(),
+ -1, CveVentaSurtir, -1, -1, CveOS:=CveOSSurtir, Observaciones:=TxtObservaciones.Text.Trim, CveAlmacenDestino:=DdlAlmacen.SelectedValue.ToEntero(),
CveMovimientoRelacionado:=CveMovimientoSalida, Guia:=TxtGuia.Text, CveContrato:=CveContrato, CveVendedor:=CveVendedor,
CveCliente:=CveCliente, Modulo:="RE/G10")
FolioEntrada = ObjInventario.Folio
@@ -2880,7 +2899,7 @@ Partial Class Inventarios_EntregaAlmacen
End If
If DtPSVirtual IsNot Nothing AndAlso DtPSVirtual.Rows.Count > 0 AndAlso CveAlmacenVirtual > 0 AndAlso CveConceptoMovimientoVirtual > 0 Then
- CveMovimientoVirtual = ObjInventario.AddMovimiento(CveAlmacenVirtual, CveConceptoMovimientoVirtual, 1, TxtFecha.Text.ToDate, -1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1, CveVentaSurtir, -1, -1,
+ CveMovimientoVirtual = ObjInventario.AddMovimiento(CveAlmacenVirtual, CveConceptoMovimientoVirtual, 1, TxtFecha.Text.ToDate, -1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1, CveVentaSurtir, -1, -1, CveOS:=CveOSSurtir,
Observaciones:=TxtObservaciones.Text.Trim, Guia:=TxtGuia.Text, CveMovimientoRelacionado:=CveMovimientoRelacionadoVirtual, Modulo:="RE/G6")
FolioVirtual = ObjInventario.Folio
@@ -2941,9 +2960,12 @@ Partial Class Inventarios_EntregaAlmacen
'AGREGA BITACORA A VENTA
If Not ErrorMovInv Then
Dim MensajeBitacora As String = If(TipoMovimiento = 1, "Surtida", "Devuelta")
- If Not ObjEventos.AddEventoBitacora(String.Format("Venta {2} en Folio: {1}", CveMovimiento, Folio, MensajeBitacora), "-1", UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveVenta:=CveVentaSurtir) Then
+ Dim LigaVenta As String = String.Format("Venta {2} en Folio: {1}", CveMovimiento, Folio, MensajeBitacora)
+
+ If Not ObjEventos.AddEventoBitacora(LigaVenta, "-1", UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveVenta:=CveVentaSurtir, CveOS:=CveOSSurtir) Then
ErrorMovInv = True
End If
+
End If
'Paqueterias guias
@@ -3609,7 +3631,9 @@ Partial Class Inventarios_EntregaAlmacen
CargaFolios()
'VARIABLES GENERALES
- CveVentaSurtir = -1
+ CveVentaSurtir = -1
+ CveOSSurtir = -1
+
DtDatosDetalle = Nothing
DtDatosDetalleLote = Nothing
DtDatos = Nothing
@@ -4122,27 +4146,28 @@ Partial Class Inventarios_EntregaAlmacen
DtDatos = TempDT
- End Sub
-
+ End Sub
+
#End Region
-
-
- 'Protected void LnkEditarDir_Click(Object sender, EventArgs e)
- '{
-
-
- ' int CveCliente = GvRow.DataKey("CveCliente").ToEntero();
- ' int CveDireccion = GvRow.DataKey("CveDireccionEnvio").ToEntero();
-
- ' HdnCveVenta.Value = GvRow.DataKey("CveVenta");
- ' CargaModalCombosDirecciones(CveCliente, CveDireccion);
-
- ' UpModalEditarentrega.Update();
- ' RegistraScript("$('#DivEditarEntrega').modal('show');");
- '}
-
-
-
+
+
+ 'Protected void LnkEditarDir_Click(Object sender, EventArgs e)
+ '{
+
+
+ ' int CveCliente = GvRow.DataKey("CveCliente").ToEntero();
+ ' int CveDireccion = GvRow.DataKey("CveDireccionEnvio").ToEntero();
+
+ ' HdnCveVenta.Value = GvRow.DataKey("CveVenta");
+ ' CargaModalCombosDirecciones(CveCliente, CveDireccion);
+
+
+ ' UpModalEditarentrega.Update();
+ ' RegistraScript("$('#DivEditarEntrega').modal('show');");
+ '}
+
+
+
Protected Sub LnkEditarDir_Click(sender As Object, e As EventArgs)
HdnCveVenta.Value = CveVentaSurtir.ToString
diff --git a/Nomina/CatPeriodos.aspx b/Nomina/CatPeriodos.aspx
index d465b23fd..cd697aca8 100644
--- a/Nomina/CatPeriodos.aspx
+++ b/Nomina/CatPeriodos.aspx
@@ -19,7 +19,10 @@
- Agregar
+ Agregar
+
+
+ Carga Masiva
@@ -477,6 +480,72 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Ejercicio:
+
+
+
+
+
+
+
Tipo Periodo:
+
+
+
+
Subtipo Periodo:
+
+
+
+
+
+
+
+ Numero:
+
+
+
+
+
+ Fecha Inicio:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Nomina/CatPeriodos.aspx.vb b/Nomina/CatPeriodos.aspx.vb
index de0124619..7c08c724d 100644
--- a/Nomina/CatPeriodos.aspx.vb
+++ b/Nomina/CatPeriodos.aspx.vb
@@ -60,9 +60,11 @@ Partial Class Nomina_CatPeriodos
Private Sub CargaTipoPeriodo()
DdlTipoPeriodo.DataSource = GlobalDTTipoPeriodo
DdlTipoPeriodoAdd.DataSource = GlobalDTTipoPeriodo
+ DdlTipoPeriodoCM.DataSource = GlobalDTTipoPeriodo
DdlTipoPeriodo.DataBind()
DdlTipoPeriodoAdd.DataBind()
+ DdlTipoPeriodoCM.DataBind()
End Sub
@@ -71,11 +73,14 @@ Partial Class Nomina_CatPeriodos
Dim ObjNom_Periodos As New ClsNominas
If ObjNom_Periodos.GetEjercicios(UsuarioActual.CveEmpresa) Then
DdlEjercicio.DataSource = ObjNom_Periodos.DtResultados
+ DdlEjercicioCM.DataSource = ObjNom_Periodos.DtResultados
Else
DdlEjercicio.DataSource = Nothing
+ DdlEjercicioCM.DataSource = Nothing
End If
ObjNom_Periodos.Dispose()
DdlEjercicio.DataBind()
+ DdlEjercicioCM.DataBind()
DdlEjercicio.Items.Insert(0, New ListItem("Todos", "-1"))
End Sub
@@ -368,4 +373,23 @@ Partial Class Nomina_CatPeriodos
Next
UpModalPerido.Update()
End Sub
+
+ Protected Sub LnkCargaMasiva_Click(sender As Object, e As EventArgs)
+ Dim ejercicio As Integer = DdlEjercicioCM.SelectedValue.ToEntero()
+ Dim cveTipoPeriodo As Integer = DdlTipoPeriodoCM.SelectedValue.ToEntero()
+ Dim cveSubTipoPeriodo As Integer = TxtCveSubTipoPeriodoCM.Text.ToEntero()
+ Dim numero As Integer = TxtNumeroCM.Text.ToEntero()
+ Dim fechaInicio As String = TxtFechaInicioCM.Text
+
+ Using onom As New ClsNominas
+ If onom.CargaPeriodosEjercicio(ejercicio, cveTipoPeriodo, cveSubTipoPeriodo, numero, fechaInicio, UsuarioActual.CveEmpresa, UsuarioActual.CveUsuario) Then
+ Alert("Se cargo satisfactoriamente.")
+ End If
+ End Using
+
+ End Sub
+
+ Protected Sub LnkCargaMasivaModal_Click(sender As Object, e As EventArgs)
+ RegistraScript("$('#divCargaMasiva').modal('show');")
+ End Sub
End Class
diff --git a/Nomina/Nomina.aspx b/Nomina/Nomina.aspx
index 701a78495..c209bef0c 100644
--- a/Nomina/Nomina.aspx
+++ b/Nomina/Nomina.aspx
@@ -323,7 +323,7 @@
-
+
@@ -4672,7 +4672,72 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Ejercicio:
+
+
+
+
+
+
+
Tipo Periodo:
+
+
+
+
Subtipo Periodo:
+
+
+
+
+
+
+
+ Numero:
+
+
+
+
+
+ Fecha Inicio:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Nomina/Nomina.aspx.cs b/Nomina/Nomina.aspx.cs
index a1d7eb776..0a477f5dd 100644
--- a/Nomina/Nomina.aspx.cs
+++ b/Nomina/Nomina.aspx.cs
@@ -21,7 +21,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
{
get { return 5; }
}
-
+
private DateTime FechaInicioPeriodo
{
get
@@ -448,8 +448,10 @@ public partial class Nomina_Nomina2 : ClsPaginas
}
DdlEjercicios.DataSource = dtejercicio;
DdlEjerciciosCM.DataSource = dtejercicio;
+ DdlEjercicioCM.DataSource = dtejercicio;
DdlEjercicios.DataBind();
DdlEjerciciosCM.DataBind();
+ DdlEjercicioCM.DataBind();
ListItem litem = null;
if ((dtejercicio != null) && dtejercicio.Rows.Count > 0)
{
@@ -487,6 +489,8 @@ public partial class Nomina_Nomina2 : ClsPaginas
DdlTipoPeriodo.DataSource = get_GlobalDTTipoPeriodos(UsuarioActual.CveEmpresa);
DdlTipoPeriodoCM.DataSource = DdlTipoPeriodo.DataSource;
DdlTipoPeriodoSim.DataSource = DdlTipoPeriodo.DataSource;
+ DdlTipoPeriodoCMB.DataSource = DdlTipoPeriodo.DataSource;
+ DdlTipoPeriodoCMB.DataBind();
DdlTipoPeriodoSim.DataBind();
DdlTipoPeriodoCM.DataBind();
DdlTipoPeriodo.DataBind();
@@ -507,6 +511,11 @@ public partial class Nomina_Nomina2 : ClsPaginas
{
if (objperiodos.GetPeriodos(tipoPeriodo, UsuarioActual.CveEmpresa, ejercicio, -1, -1))
{
+ if (objperiodos.DtResultados.Rows.Count == 0)
+ {
+
+ Alert("No existen periodos registrados en este año y tipo de periodo,¿desea registrarlos masivamente?",TipoMensaje.MsgConfirmacion, "$(\"#divCargaMasiva\").modal(\"show\");",TextoConfirmacion:"Aceptar",TextoSegundoBoton:"No");
+ }
dtPeriodos = objperiodos.DtResultados.FiltraParametros("Estatus IN (1,2,3,4,5)");
}
}
@@ -518,14 +527,13 @@ public partial class Nomina_Nomina2 : ClsPaginas
}
protected void DdlEjercicios_SelectedIndexChanged(object sender, EventArgs e)
- {
- cargaPeriodos();
+ {
+ cargaPeriodos();
}
protected void DdlTipoPeriodo_SelectedIndexChanged(object sender, EventArgs e)
{
- cargaPeriodos();
- DdlEjercicios.AutoPostBack = true;
+ cargaPeriodos();
}
protected void DdlPeriodo_SelectedIndexChanged(object sender, EventArgs e)
@@ -10943,4 +10951,22 @@ public partial class Nomina_Nomina2 : ClsPaginas
+
+ protected void LnkCargaMasiva_Click(object sender, EventArgs e)
+ {
+
+ int ejercicio = DdlEjercicioCM.SelectedValue.ToEntero();
+ int cveTipoPeriodo = DdlTipoPeriodoCMB.SelectedValue.ToEntero();
+ int cveSubTipoPeriodo = TxtCveSubTipoPeriodoCM.Text.ToEntero();
+ int numero = TxtNumeroCM.Text.ToEntero();
+ string fechaInicio = TxtFechaInicioCM.Text;
+
+ using (ClsNominas onom = new ClsNominas())
+ {
+ if (onom.CargaPeriodosEjercicio(ejercicio, cveTipoPeriodo, cveSubTipoPeriodo, numero, fechaInicio, UsuarioActual.CveEmpresa, UsuarioActual.CveUsuario))
+ {
+ Alert("Se cargo satisfactoriamente.");
+ }
+ }
+ }
}
\ No newline at end of file
diff --git a/OS/Asignaciones.aspx.vb b/OS/Asignaciones.aspx.vb
index 66c3de3e1..f7ad121bc 100644
--- a/OS/Asignaciones.aspx.vb
+++ b/OS/Asignaciones.aspx.vb
@@ -394,7 +394,7 @@ Partial Class OS_Asignaciones
lrds.Add(rds)
lrds.Add(rds2)
- ObjOS.Dispose()
+
Dim ReporteByte As Byte() = StreamPDF(RutaReporte.FullName, lrds, params, NombreArchivo:=String.Format("OrdenServicio-{0}", CveFolio))
diff --git a/OS/CatEstatusOrdenServicio.aspx b/OS/CatEstatusOrdenServicio.aspx
index c6f3a8e0f..44fed26a7 100644
--- a/OS/CatEstatusOrdenServicio.aspx
+++ b/OS/CatEstatusOrdenServicio.aspx
@@ -102,7 +102,7 @@
-
+
@@ -203,6 +203,15 @@
+
+
+
+
+
+
+
+
+
@@ -1522,9 +1525,12 @@
+
+ Producto Servicio:
-
+ <%----%>
+
@@ -1591,29 +1597,98 @@
+
-
-
+
-
-
+
+
+
-
Tipo de Venta
+
+
+ Tipo de Venta
+
+
-
-
-
+
+
+ <%--Tipo Venta--%>
+
+
+
+
+
+ <%--Cliente--%>
+
+
+
+ Cliente:
+
+
+
+
+
+ <%-- Requiere Os y Fecha OS --%>
+
+
+
+ Requiere Técnico::
+
+
+
+ Fecha De Orden:
+
+
+
+
+
+
+
+
+
+
+
+ <%--Medico Procedimiento--%>
+
+
+
+ Medico:
+
+ Seleccione uno
+
+
+
+ Procedimiento:
+
+ Seleccione uno
+
+
+
+
+
+
+
+
-
-
+
+
+
+
+
+
diff --git a/Ventas/VentasMedicas.aspx.vb b/Ventas/VentasMedicas.aspx.vb
index c69f6c102..36378f2aa 100644
--- a/Ventas/VentasMedicas.aspx.vb
+++ b/Ventas/VentasMedicas.aspx.vb
@@ -2414,7 +2414,7 @@ Partial Class VentasMedicas
Me.CveEstadoCancelacion = 0
- TxtFecha.Text = NowADS().ToDateTime.ToString("yyyy-MM-dd HH:mm:ss").Replace(" ", "T")
+ TxtFechaOS.Text = NowADS().ToDateTime.ToString("yyyy-MM-dd HH:mm:ss").Replace(" ", "T")
If UsuarioActual.TienePermisoProceso(177) Then
DdlTipoComprobante.Items.Insert(4, New ListItem("Pedido de Contrato", "Ped"))
@@ -2422,11 +2422,7 @@ Partial Class VentasMedicas
- 'If UsuarioActual.Empresa.Funcionalidad(595) = "1" Then
- ' ImgDescPU.Visible = False
- ' ImgDescConcepto.Visible = False
- ' DdlTipoComprobante.Items.Insert(DdlTipoComprobante.Items.Count, New ListItem("Autorización", "PA"))
- 'End If
+
If Not UsuarioActual.Empresa.Funcionalidad(558) = "1" Then
LnkAgregarCliente.Visible = False
@@ -2439,18 +2435,8 @@ Partial Class VentasMedicas
End If
-
-
-
- 'If UsuarioActual.Empresa.Funcionalidad(561).ToString() = "1" Then
- ' thPoliza.Visible = True
- ' thPoliza2.Visible = True
- 'End If
-
-
-
-
SetValues()
+
CvePresupuesto = 0
'MODALIDADES
@@ -2473,8 +2459,7 @@ Partial Class VentasMedicas
LblUsuario.Text = UsuarioActual.Usuario
LblFechaRegistro.Text = NowADS().ToShortDateString()
- 'ImgDescPU.Attributes.Add("onclick", "javascript:$('#ModalDescuento').modal(); $get('LblTitulo1').style.display = ''; $get('LblTitulo2').style.display = 'none'; $get('LblTituloTipo1').style.display = ''; $get('LblTituloTipo2').style.display = 'none'; $get('HdnTipoDescuento').value = '0'; $get('LblPrecio1').style.display = ''; $get('LblTotalPS1').style.display = 'none'; $get('LblSubTotal1').style.display = 'none'; $get('LblAmort').style.display = 'none'; $get('BtnAplicarDescP').style.display = ''; $get('BtnAplicarDescG').style.display = 'none'; $get('TrMotivoDescuento').style.display = '';")
- 'ImgDescConcepto.Attributes.Add("onclick", "javascript:$('#ModalDescuento').modal(); $get('LblTitulo1').style.display = ''; $get('LblTitulo2').style.display = 'none'; $get('LblTituloTipo1').style.display = ''; $get('LblTituloTipo2').style.display = 'none'; $get('HdnTipoDescuento').value = '1'; $get('LblPrecio1').style.display = 'none'; $get('LblTotalPS1').style.display = ''; $get('LblSubTotal1').style.display = 'none'; $get('LblAmort').style.display = 'none'; $get('BtnAplicarDescP').style.display = ''; $get('BtnAplicarDescG').style.display = 'none'; $get('TrMotivoDescuento').style.display = '';")
+
ImgDescTotal.Visible = False
ImgDescTotal.Attributes.Add("onclick", "javascript:$('#ModalDescuento').modal(); $get('LblTitulo1').style.display = ''; $get('LblTitulo2').style.display = 'none'; $get('LblTituloTipo1').style.display = ''; $get('LblTituloTipo2').style.display = 'none'; $get('HdnTipoDescuento').value = '2'; $get('LblPrecio1').style.display = 'none'; $get('LblTotalPS1').style.display = 'none'; $get('LblSubTotal1').style.display = ''; $get('LblAmort').style.display = 'none'; $get('BtnAplicarDescP').style.display = 'none'; $get('BtnAplicarDescG').style.display = ''; $get('TrMotivoDescuento').style.display = '';")
@@ -2501,6 +2486,7 @@ Partial Class VentasMedicas
CargaAgentes()
CargaProcedimientos()
CargaTiposVenta()
+ CargaDdlClientes()
@@ -2833,6 +2819,20 @@ Partial Class VentasMedicas
End Sub
+ Private Sub CargaDdlClientes()
+ If UsuarioActual.Empresa.Funcionalidad(105) = "1" Then
+ DdlClientesWS.setEsWebService(True)
+ Else
+ DdlClientesWS.setEsWebService(False)
+ If Not UsuarioActual.Empresa.Funcionalidad(105) = "1" Then
+ DdlClientesWS.ddl.Items.Clear()
+ DdlClientesWS.DataSource = GlobalDTCliente(UsuarioActual.CveEmpresa, -1)
+ DdlClientesWS.DataBind()
+ DdlClientesWS.ddl.Items.Insert(0, New ListItem("Todos", "-1"))
+ End If
+ End If
+ End Sub
+
Private Sub BloqueaClasificaciones()
If UsuarioActual.Empresa.Funcionalidad(558) = "1" AndAlso DdlTipoComprobante.SelectedValue = "Cot" Then
@@ -4337,11 +4337,18 @@ Partial Class VentasMedicas
Private Sub CargaProcedimientos()
DdlMedico.DataSource = GlobalDTMedicos(UsuarioActual.CveEmpresa).FiltraParametros("Estatus = 'True' ")
DdlMedico.DataBind()
+
+ DdlMedicoModal.DataSource = GlobalDTMedicos(UsuarioActual.CveEmpresa).FiltraParametros("Estatus = 'True' ")
+ DdlMedicoModal.DataBind()
End Sub
Private Sub CargaAgentes()
DdlProcedimiento.DataSource = GlobalDTProcedimientos(UsuarioActual.CveEmpresa).FiltraParametros("Estatus = 'True' ")
DdlProcedimiento.DataBind()
+
+ DdlProcedimientoModal.DataSource = GlobalDTProcedimientos(UsuarioActual.CveEmpresa).FiltraParametros("Estatus = 'True' ")
+ DdlProcedimientoModal.DataBind()
+
End Sub
Private Sub CargaPSRemision(CveClasificacion As Integer, Objeto As ADServerControl.Dropdownlost)
@@ -14283,29 +14290,152 @@ Partial Class VentasMedicas
CargaFormaPago(DdlMetodoPago33.SelectedValue.ToEntero())
End Sub
+ Protected Sub ChkRequiereTecnico_CheckedChanged(sender As Object, e As EventArgs)
+ TdFechaOS2.Visible = ChkRequiereTecnicoModal.Checked
+ UpCliente.Update()
+ End Sub
+
Protected Sub RBLTipoVenta_SelectedIndexChanged(sender As Object, e As EventArgs)
If RBLTipoVenta.SelectedValue.ToEntero > 0 Then
+ DvModalTipoVentaPasoTipo.Visible = False
+ DvModalTipoVentaPasoCliente.Visible = True
+ 'DvModalTipoVentaPasoRequiereOS.Visible = False
+ 'DvModalTipoVentaPasoMedicoProcedimiento.Visible = False
+ End If
+ UpDvModalTipoVenta.Update()
+ End Sub
- If RBLTipoVenta.SelectedValue.ToEntero = 2 Then
- TdRequiereTecnico1.Visible = True
- TdRequiereTecnico2.Visible = True
+ Protected Sub DdlClientesWS_selectedindexchange(sender As Object, e As EventArgs)
+
+ If DdlClientesWS.SelectedValue.ToEntero > 0 Then
+
+ DvModalTipoVentaPasoCliente.Visible = False
+ DvModalTipoVentaPasoRequiereOS.Visible = True
+
+ TxtFechaModal.Text = NowADS.ToString("yyyy-MM-dd HH:mm:ss").Replace(" ", "T")
+
+ 'si es A - Vista o ,Fuera De Linea requiere tecnico
+ If RBLTipoVenta.SelectedValue.ToEntero.Contiene(1, 3) Then
+ ChkRequiereTecnicoModal.Checked = True
+ ChkRequiereTecnicoModal.Enabled = False
+ DvModalRequiereOSFecha.Visible = True
End If
- RegistraScript("$('#DvModalTipoVenta').modal('hide');")
- UpCliente.Update()
End If
+ UpDvModalTipoVenta.Update()
+
End Sub
- Protected Sub ChkRequiereTecnico_CheckedChanged(sender As Object, e As EventArgs)
+ Protected Sub LnkDvModalTipoVentaSeuigenteRequiereTecnico_Click(sender As Object, e As EventArgs)
- TdFechaOS1.Visible = ChkRequiereTecnico.Checked
- TdFechaOS2.Visible = ChkRequiereTecnico.Checked
+ If ChkRequiereTecnicoModal.Checked Then
+ If Not IsDate(TxtFechaModal.Text.Replace(",", "")) Then
+ Alert("El campo fecha no es valido.", TipoMensaje.MsgAdvertencia)
+ Exit Sub
+ End If
+ End If
+
+ DvModalTipoVentaPasoRequiereOS.Visible = False
+ DvModalTipoVentaPasoMedicoProcedimiento.Visible = True
+
+ UpDvModalTipoVenta.Update()
+
+ End Sub
+
+ Protected Sub DdlMedicoModal_SelectedIndexChanged(sender As Object, e As EventArgs)
+ ModalValidaMedicoProcedimiento()
+ End Sub
+
+ Protected Sub DdlProcedimientoModal_SelectedIndexChanged(sender As Object, e As EventArgs)
+ ModalValidaMedicoProcedimiento()
+ End Sub
+
+ Protected Sub ModalValidaMedicoProcedimiento()
+
+ If DdlMedicoModal.SelectedValue.ToEntero > 0 AndAlso DdlProcedimientoModal.SelectedValue.ToEntero > 0 Then
+ LnkDvModalTipoVentaAceptar.Visible = True
+ Else
+ LnkDvModalTipoVentaAceptar.Visible = False
+ End If
+
+ UpDvModalTipoVenta.Update()
+
+ End Sub
+
+ Protected Sub LnkDvModalTipoVentaCancelar_Click(sender As Object, e As EventArgs)
+
+ LnkDvModalTipoVentaAceptar.Visible = False
+
+ DvModalTipoVentaPasoTipo.Visible = True
+ DvModalTipoVentaPasoCliente.Visible = False
+ DvModalTipoVentaPasoRequiereOS.Visible = False
+ DvModalTipoVentaPasoMedicoProcedimiento.Visible = False
+
+ DdlClientesWS.txtText.Value = ""
+ DdlClientesWS.txtValue.Value = ""
+ DdlClientesWS.ddl.SelectedValueExist(-1)
+
+ DvModalRequiereOSFecha.Visible = False
+ ChkRequiereTecnicoModal.Checked = False
+
+ RBLTipoVenta.SelectedValue = Nothing
+
+ DdlMedicoModal.SelectedValueExist(-1)
+ DdlProcedimientoModal.SelectedValueExist(-1)
+
+ UpDvModalTipoVenta.Update()
+
+ End Sub
+
+
+ Protected Sub LnkDvModalTipoVentaAceptar_Click(sender As Object, e As EventArgs)
+
+ ChkRequiereTecnico.Checked = ChkRequiereTecnicoModal.Checked
+ TxtFecha.Text = TxtFechaModal.Text
+
+ If ChkRequiereTecnicoModal.Checked Then
+ TdFechaOS1.Visible = True
+ TdFechaOS2.Visible = True
+ Else
+ TdFechaOS1.Visible = False
+ TdFechaOS2.Visible = False
+ End If
+
+ DdlMedico.SelectedValueExist(DdlMedicoModal.SelectedValue)
+ DdlProcedimiento.SelectedValueExist(DdlProcedimientoModal.SelectedValue)
+
+ 'si es A - Vista o ,Fuera De Linea requiere tecnico
+ If RBLTipoVenta.SelectedValue.ToEntero.Contiene(1, 3) Then
+ TdFechaOS1.Visible = True
+ TdFechaOS2.Visible = True
+ ChkRequiereTecnico.Checked = True
+ ChkRequiereTecnico.Enabled = False
+ End If
+
+ TdRequiereTecnico1.Visible = True
+ TdRequiereTecnico2.Visible = True
+
+ CargaCliente(DdlClientesWS.SelectedValue.ToEntero)
+
+ RegistraScript("$('#DvModalTipoVenta').modal('hide');")
UpCliente.Update()
+ End Sub
+
+ Protected Sub ChkRequiereTecnicoModal_CheckedChanged(sender As Object, e As EventArgs)
+
+ DvModalRequiereOSFecha.Visible = ChkRequiereTecnicoModal.Checked
+ UpDvModalTipoVenta.Update()
End Sub
+
+
+
+
+
+
End Class