diff --git a/App_Code/ClsTransportes.vb b/App_Code/ClsTransportes.vb index 11b3a6b5b..22f389db4 100644 --- a/App_Code/ClsTransportes.vb +++ b/App_Code/ClsTransportes.vb @@ -135,14 +135,14 @@ Public Class ClsTransportes #End Region #Region "Boletos" - Public Function AddViajesPasajeros(CveViaje As Integer, CveDestinoOrigen As Integer, CveDestinoFinal As Integer, Importe As Decimal, Asiento As Integer, Nombre As String, Visa As String, Celular As String, Sexo As Boolean, Observacion As String, CveUsuario As Integer, CveVendedor As Integer) As Integer + Public Function AddViajesPasajeros(CveContrato As Integer, CveDestinoOrigen As Integer, CveDestinoFinal As Integer, Importe As Decimal, Asiento As Integer, Nombre As String, Visa As String, Celular As String, Sexo As Boolean, Observacion As String, CveUsuario As Integer, CveVendedor As Integer) As Integer Dim Retorno As Integer = -1 DataAdapter("PA_Trans_ViajesPasajerosAdd") With SqlAdapter.SelectCommand.Parameters .Add("@CveViajePasajero", SqlDbType.Int).Direction = ParameterDirection.Output - .Add("@CveViaje", SqlDbType.Int).Value = CveViaje + .Add("@CveContrato", SqlDbType.Int).Value = CveContrato .Add("@CveDestinoOrigen", SqlDbType.Int).Value = CveDestinoOrigen .Add("@CveDestinoFinal", SqlDbType.Int).Value = CveDestinoFinal .Add("@Importe", SqlDbType.Money).Value = Importe @@ -167,12 +167,12 @@ Public Class ClsTransportes Return Retorno End Function - Public Function GetViajesPasajeros(CveViaje As Integer, Optional CveViajePasajero As Integer = -1, Optional Estatus As Integer = -1) As Boolean + Public Function GetViajesPasajeros(CveContrato As Integer, Optional CveViajePasajero As Integer = -1, Optional Estatus As Integer = -1) As Boolean Dim Retorno As Boolean = False DataAdapter("PA_Trans_ViajesPasajerosGet") With SqlAdapter.SelectCommand.Parameters - .Add("@CveViaje", SqlDbType.Int).Value = CveViaje + .Add("@CveContrato", SqlDbType.Int).Value = CveContrato .Add("@CveViajePasajero", SqlDbType.Int).Value = CveViajePasajero .Add("@Estatus", SqlDbType.Int).Value = Estatus End With diff --git a/App_Code/Modelos.vb b/App_Code/Modelos.vb index a389e480f..4b82eabb7 100644 --- a/App_Code/Modelos.vb +++ b/App_Code/Modelos.vb @@ -1024,9 +1024,11 @@ Namespace Modelos Dim ObjTimbrado As New Timbrado 'DOCUMENTO ACTUAL If DebeTimbrar Then + Dim CvePAC As Integer = -1 If Me.EmitirCartaPorte AndAlso CveTimbreCartaPorte > 0 Then Dim RespCartaPorte As Timbres.MMensajeCartaPorte = Timbres.PreParaCartaPorteFactura(CveTimbreCartaPorte, UsuarioActual) If Not RespCartaPorte.TieneError Then + CvePAC = 4 'código temporal. para que se timbre PAC 4 Me.Timbre.Complementos.CartaPorte = RespCartaPorte.CartaPorte Else DebeTimbrar = False @@ -1034,7 +1036,7 @@ Namespace Modelos End If End If - SeTimbro = ObjTimbrado.TimbrarFactura(UsuarioActual, Me) + SeTimbro = ObjTimbrado.TimbrarFactura(UsuarioActual, Me, CvePACEspecial:=CvePAC) 'NOTA DE CREDITO - REFACTURADA - CASO ESPECIAL, TIMBRADO E IMPRESION If Not IsNothing(Obj2) AndAlso Obj2.Count > 0 Then diff --git a/Inventarios/EntradasSalidas.aspx.vb b/Inventarios/EntradasSalidas.aspx.vb index c6108e558..403b0c491 100644 --- a/Inventarios/EntradasSalidas.aspx.vb +++ b/Inventarios/EntradasSalidas.aspx.vb @@ -145,6 +145,15 @@ Partial Class Inventarios_EntradasSalidas ViewState("TieneSalida") = value End Set End Property + + Public Property CveEntregaAlmacen() As Integer + Get + Return ViewState("CveEntregaAlmacen").ToString.ToEntero + End Get + Set(value As Integer) + ViewState("CveEntregaAlmacen") = value + End Set + End Property Private Property DtBitacora As DataTable Get Return CType(ViewState("DtBitacora"), DataTable) @@ -471,7 +480,6 @@ Partial Class Inventarios_EntradasSalidas CargaDatosEntregaAlmacen(Request("CveEntregaAlmacen").ToString.ToEntero) End If - 'BLOQUEA PERMISOS BtnGuardar.Enabled = PermiteGuardar() BtnEliminar.Enabled = PermiteEliminar() @@ -507,7 +515,6 @@ Partial Class Inventarios_EntradasSalidas 'ImgFecha.Visible = True End If - If CveMovimiento > 0 And CveConcepto.Contiene(8) And UsuarioActual.Empresa.Funcionalidad(578).ToEntero = 1 Then ValidaUsaConsola() End If @@ -1238,7 +1245,7 @@ Partial Class Inventarios_EntradasSalidas End Sub - Private Sub CargaDatosEntregaAlmacen(CveEntregaAlmacen As Integer) + Private Sub CargaDatosEntregaAlmacen(tCveEntregaAlmacen As Integer) 'RECARGA ALMACENES SOLO DE recepcion de usados DdlAlmacen.Items.Clear() DdlAlmacen.DataBind() @@ -1254,8 +1261,8 @@ Partial Class Inventarios_EntradasSalidas Dim ObjGenerales As New ClsGenerales() - If (ObjGenerales.GetEntregaAlmacenRutaDetalle(CveEntregaAlmacen)) Then - + If (ObjGenerales.GetEntregaAlmacenRutaDetalle(tCveEntregaAlmacen)) Then + CveEntregaAlmacen = tCveEntregaAlmacen For Each dr As DataRow In ObjGenerales.DtResultados.Rows AddNew(dr("CvePS").ToString.ToEntero, dr("CodigoPS").ToString, dr("CveUnidadMedida").ToString.ToEntero, dr("Abreviatura").ToString, dr("Cantidad").ToString.ToDecimal, 0, "", "", "", "", "E", "", MinFecha, 0, "") @@ -1975,8 +1982,7 @@ Partial Class Inventarios_EntradasSalidas Dim CvePrePoliza As Integer = ObjConta.AddPrePolizas("Inv/ES", 53, 0, 0, 1, TxtFecha.Text.Replace(",", "").ToDate, obs, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveTipoPoliza:=3) - CveMovimiento = ObjInventario.AddMovimiento(CveAlmacen, DdlConcepto.SelectedValue.ToEntero, 1, Fecha, tFolio, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1, -1, SubProyecto, ActivoFijo, Guia:=TxtGuia.Text, Observaciones:=TxtObservaciones.Text, CvePersonal:=DdlPersonal.SelectedValue.ToEntero, Recibio:=TxtResponsable.Text.Trim, CveCliente:=CveCliente, CveClienteSucursal:=CveClienteSucursal, DepartamentoEntrega:=TxtDepartamentoEntrega.Text, PedidoContrato:=TxtPedidoContrato.Text, CveProveedor:=tCveProveedor, Modulo:="ES/1") - + CveMovimiento = ObjInventario.AddMovimiento(CveAlmacen, DdlConcepto.SelectedValue.ToEntero, 1, Fecha, tFolio, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1, -1, SubProyecto, ActivoFijo, Guia:=TxtGuia.Text, Observaciones:=TxtObservaciones.Text, CvePersonal:=DdlPersonal.SelectedValue.ToEntero, Recibio:=TxtResponsable.Text.Trim, CveCliente:=CveCliente, CveClienteSucursal:=CveClienteSucursal, DepartamentoEntrega:=TxtDepartamentoEntrega.Text, PedidoContrato:=TxtPedidoContrato.Text, CveProveedor:=tCveProveedor, Modulo:="ES/1", CveEntregaAlmacen:=CveEntregaAlmacen) If CveMovimiento <= 0 OrElse CvePrePoliza <= 0 Then Alert("No se pudo almacenar el movimiento correctamente", TipoMensaje.MsgError) diff --git a/Inventarios/RepEntregaAlmacenRuta.aspx b/Inventarios/RepEntregaAlmacenRuta.aspx index 201541830..4fe1a652b 100644 --- a/Inventarios/RepEntregaAlmacenRuta.aspx +++ b/Inventarios/RepEntregaAlmacenRuta.aspx @@ -81,10 +81,20 @@
diff --git a/Inventarios/RepEntregaAlmacenRuta.aspx.cs b/Inventarios/RepEntregaAlmacenRuta.aspx.cs index b695828f4..a55573e7a 100644 --- a/Inventarios/RepEntregaAlmacenRuta.aspx.cs +++ b/Inventarios/RepEntregaAlmacenRuta.aspx.cs @@ -345,7 +345,7 @@ public partial class General_RepEntregaAlmacenRuta : ClsPaginas { ClsGenerales ObjGeneral = new ClsGenerales(); - if (ObjGeneral.GetInvEntregaAlmacenRutaRep(DdlSucursales.SelectedValue.ToEntero(), UsuarioActual.CveEmpresa, DdlEstatus.SelectedValue.ToEntero(), TxtFechaI.Text.ToDate(), TxtFechaF.Text.ToDate(), DdlChofer.SelectedValue.ToEntero(), UsuarioActual.CveUsuario)) + if (ObjGeneral.GetInvEntregaAlmacenRutaRep(DdlSucursales.SelectedValue.ToEntero(), UsuarioActual.CveEmpresa, DdlEstatus.SelectedValue.ToEntero(), TxtFechaI.Text.ToDate(), TxtFechaF.Text.ToDate(), DdlChofer.SelectedValue.ToEntero(), UsuarioActual.CveUsuario, Tipo:DdlTipo.SelectedValue)) { DTDatos = ObjGeneral.DtResultados; GVDatos.DataSource = DTDatos; @@ -491,7 +491,8 @@ public partial class General_RepEntregaAlmacenRuta : ClsPaginas Timbres ObjTimbres = new Timbres(TimbreTipoDocto, cvetimbre, UsuarioActual); StringBuilder MensajeAlert = new StringBuilder(); MensajeAlert.AppendFormat("Folio: {0} ", ObjTimbres.ObjFactura.SerieFolio); - if (ObjTimbres.MsgError == "" && ObjTimbres.Timbrar()) + int CvePAC = 4; + if (ObjTimbres.MsgError == "" && ObjTimbres.Timbrar(CvePAC)) { MensajeAlert.AppendFormat("XML ", ModExtensiones.Encripta(String.Format("OP=DesXmlTra&CveTimbre={0}&EXT={1}&FOLIO={2}&TIPODOCTO={3}", cvetimbre, "XML", ObjTimbres.ObjFactura.SerieFolio, ObjTimbres.ObjFactura.TipoDocto))); Alert(MensajeAlert.ToString(), ModExtensiones.TipoMensaje.MsgInformacion); diff --git a/Styles/AjaxControlToolkit/Styles/Tabs.css b/Styles/AjaxControlToolkit/Styles/Tabs.css index 8151906c9..5908a0886 100644 --- a/Styles/AjaxControlToolkit/Styles/Tabs.css +++ b/Styles/AjaxControlToolkit/Styles/Tabs.css @@ -86,7 +86,7 @@ border: 1px solid #999999; border-top: 0; font-family: verdana,tahoma,helvetica; - font-size: 10pt; + font-size: 12px; padding: 8px; } diff --git a/Transportes/Boletos.aspx b/Transportes/Boletos.aspx index b9b4a0920..8010db45b 100644 --- a/Transportes/Boletos.aspx +++ b/Transportes/Boletos.aspx @@ -242,291 +242,291 @@ Visible="False">information: Los boletos están siendo apartados hasta finalizar su compra
|
- |
- ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
- |
-
- |
- - |
- |
-
- |
- ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
- |
-
- |
- - |
- |
-
- |
- ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
- |
-
- |
- - |
- |
-
- |
- ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
- |
-
- |
- - |
- |
-
- |
- ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
- |
-
- |
- - |
- |
-
- |
- ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
- |
-
- |
- - |
- |
-
- |
- ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
- |
-
- |
- - |
- |
-
- |
- ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
- |
-
- |
- - |
- |
-
- |
+ <%-- Asientos --%>
+ ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
+ |
+ ||||
|
+ |
+
+ |
+ + |
+ |
+
+ |
+
|
+ |
+
+ |
+ + |
+ |
+
+ |
+
|
+ |
+
+ |
+ + |
+ |
+
+ |
+
|
+ |
+
+ |
+ + |
+ |
+
+ |
+
|
+ |
+
+ |
+ + |
+ |
+
+ |
+
|
+ |
+
+ |
+ + |
+ |
+
+ |
+
|
+ |
+
+ |
+ + |
+ |
+
+ |
+
|
+ |
+
+ |
+ + |
+ |
+
+ |
-
|
- |
-
- |
- - |
- |
-
- |
-
|
- |
-
- |
- - |
- |
-
- |
-
|
- |
-
- |
- - |
- |
-
- |
-
|
- |
-
- |
- - |
- |
-
- |
-
|
- |
-
- |
- |||