diff --git a/AC/CatPresupuestoEgresos.aspx.vb b/AC/CatPresupuestoEgresos.aspx.vb index 8a12fe595..7f3ada4ab 100644 --- a/AC/CatPresupuestoEgresos.aspx.vb +++ b/AC/CatPresupuestoEgresos.aspx.vb @@ -100,10 +100,17 @@ Partial Class AC_CatPresupuestoEgresos Else 'si es anteproyecto - If DtPresupuestoEgresos.Rows(0)("Bloqueado").ToString = "0" Then - 'AndAlso Ejercicio >= UsuarioActual.Empresa.EjercicioActual - BtnPresupuesto.Visible = True - End If + Dim Bloqueado As Boolean = True + For Each dbRow As DataRow In DtPresupuestoEgresos.Rows + If dbRow("Bloqueado").ToString() = "0" Then Bloqueado = False + Next + + BtnPresupuesto.Visible = True + + 'If DtPresupuestoEgresos.Rows(0)("Bloqueado").ToString = "0" Then + ' 'AndAlso Ejercicio >= UsuarioActual.Empresa.EjercicioActual + ' BtnPresupuesto.Visible = True + 'End If ' If Ejercicio = UsuarioActual.Empresa.EjercicioActual Then End If diff --git a/AC/PresupuestoEgresos.aspx.vb b/AC/PresupuestoEgresos.aspx.vb index 32ed41325..7ccb57d04 100644 --- a/AC/PresupuestoEgresos.aspx.vb +++ b/AC/PresupuestoEgresos.aspx.vb @@ -202,7 +202,7 @@ Partial Class AC_PresupuestoEgresos2 'Valida Ejercicio If objAC.GetEjerciciosPresupuestoEgresos(UsuarioActual.CveEmpresa) AndAlso objAC.DtResultados.Rows.Count > -1 Then Dim DtEjercicios = objAC.DtResultados.FiltraParametros(String.Format("Ejercicio = {0}", DdlEjercicio.SelectedValue)) - If DtEjercicios.Rows.Count > 0 AndAlso DtEjercicios.Rows(0)("Bloqueado").ToString = "1" AndAlso txtTotal.Text.ToDecimal > 0 Then + If DtEjercicios.Rows.Count > 0 AndAlso DtEjercicios.Rows(0)("Bloqueado").ToString = "1" Then Alert("El Presupuesto de Egresos del ejercicio seleccionado ya esta bloqueado, solo puede generar Presupuestos en ceros.", TipoMensaje.MsgAdvertencia) objAC.Dispose() Exit Sub @@ -234,6 +234,10 @@ Partial Class AC_PresupuestoEgresos2 Dim CveUnidadAdministrativa As Integer = CboUnidadAdministrativa.SelectedValue.ToString.ToEntero Dim CveClasificacionOG As Integer = CboClasificacionOG.SelectedValue.ToString.ToEntero + 'If txtTotal.Text.ToDecimal > 0 Then + ' Alert("El Presupuesto de Egresos del ejercicio seleccionado se generaro proyecto. Después de este proceso se tendrá que autorizar el presupuesto de esta partida.", TipoMensaje.MsgAdvertencia) + 'Else + If CvePresupuestoEgresos = 0 Then If objAC.AddPresupuestoEgresos(DdlEjercicio.SelectedValue.ToEntero, CveProgramaOperativo, CveFuenteFinanciamiento, CveTipoGasto, CveUnidadAdministrativa, CveClasificacionOG, Total, Enero, Febrero, Marzo, Abril, Mayo, Junio, Julio, Agosto, Septiembre, Octubre, Noviembre, Diciembre, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa) > 0 Then Alert("El Presupuesto de Egreso se guardo Correctamente como Anteproyecto", TipoMensaje.MsgInformacion) '"document.location.href=""/AC/CatPresupuestoEgresos.aspx""" diff --git a/AC/RegEgresosModificaciones.aspx b/AC/RegEgresosModificaciones.aspx index 92445fc60..67f0dab0e 100644 --- a/AC/RegEgresosModificaciones.aspx +++ b/AC/RegEgresosModificaciones.aspx @@ -1,4 +1,4 @@ -<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="RegEgresosModificaciones.aspx.vb" Inherits="AC_RegPEAmpRed" %> +<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" EnableEventValidation="true" CodeFile="RegEgresosModificaciones.aspx.vb" Inherits="AC_RegPEAmpRed" %> @@ -235,7 +235,7 @@ - + + + + + + + +
+
+
+ + Registro de actividades +
+
+ +
+
+ +
+ + <%--
+
Vencimiento de Licencia:
+
+
+ + + + +
+ + + + +
+
Fecha de Nacimiento:
+
+
+ + + + +
+ + + + +
+
+
+ +
+ +
--%> + + +
+
+ + + + + + + diff --git a/OI/RepTareas2.aspx.cs b/OI/RepTareas2.aspx.cs new file mode 100644 index 000000000..6662bf5e9 --- /dev/null +++ b/OI/RepTareas2.aspx.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; +using Extensiones; + +public partial class OI_RepTareas2 : System.Web.UI.Page +{ + public const string iddivAgregar = "divModalAgregarEvento"; + protected void Page_Load(object sender, EventArgs e) + { + + } + + protected void LnkAddEvento_Click(object sender, EventArgs e) + { + + this.RegistraScript(string.Format("$('#{0}').modal()", iddivAgregar)); + } +} \ No newline at end of file diff --git a/PortalCliente/PortalCliente.aspx.vb b/PortalCliente/PortalCliente.aspx.vb index ca1eda77e..dbe6c9e10 100644 --- a/PortalCliente/PortalCliente.aspx.vb +++ b/PortalCliente/PortalCliente.aspx.vb @@ -543,7 +543,7 @@ Partial Class Ventas_PortalCliente #Region " PAGO PROSEPAGO " Private Sub InicializaProsepago() - If Not UsuarioActual.CveEmpresa.Contiene(1, 4, 7, 11, 12) Then + If Not UsuarioActual.CveEmpresa.Contiene(1, 4, 7, 11, 12, 145) Then GvCxC.Columns(10).Visible = False LBPagar.Visible = False End If @@ -632,7 +632,7 @@ Partial Class Ventas_PortalCliente Dim uriString = "" Select Case UsuarioActual.CveEmpresa - Case 1, 4, 7, 11, 12 + Case 1, 4, 7, 11, 12, 145 uriString = "https://www.prosepago.com/tvirtual/tvds.aspx?ppost=1&t=123" ' VSH SEGURIDAD Case Else Alert("Sin terminal de pago configurada. Por favor comuniquese con su proveedor para verificar.", TipoMensaje.MsgAdvertencia) diff --git a/RH/Personal.aspx b/RH/Personal.aspx index 6b0fdf693..b17c251cb 100644 --- a/RH/Personal.aspx +++ b/RH/Personal.aspx @@ -28,8 +28,8 @@ - <%--
  • - PDF + <%--
  • + PDF
  • --%>
  • PDF @@ -376,11 +376,11 @@ - <%--
    - - - - + <%--
    + + + +
    --%>
    @@ -548,11 +548,11 @@ - <%--
    - - - - + <%--
    + + + +
    --%>
    @@ -797,10 +797,10 @@ CssClass="table table-hover table-advance Widthall" GridLines="None"> - <%-- - - > - + <%-- + + > + --%> @@ -813,10 +813,10 @@ - <%-- - - > - + <%-- + + > + --%> @@ -840,7 +840,7 @@
    - Cuentas Bancarias + Cuentas Bancarias
    @@ -852,61 +852,61 @@ - Banco + Banco - # Suc + # Suc - Num Cuenta + Num Cuenta - CLABE + CLABE - SWIFT + SWIFT - Plaza + Plaza - CIE + CIE - Referencia + Referencia - Credi Prov + Credi Prov - Moneda + Moneda @@ -924,8 +924,8 @@ - - + + @@ -952,7 +952,7 @@ - <%----%> + <%----%> @@ -974,12 +974,12 @@ - <%----%> + <%----%> - <%----%> + <%----%> -      +      @@ -1138,7 +1138,7 @@
    - Pagos Realizados + Pagos Realizados
    @@ -1166,28 +1166,28 @@ Cheque -   +   Monto Compra (Saldo Orig) -   +   Abonado -   +   % Pagado -   +   @@ -1538,7 +1538,7 @@
    - Registro de Nómina + Registro de Nómina
    @@ -1661,8 +1661,8 @@ <%----%> - - + + @@ -1677,28 +1677,28 @@ - - + + - - + + - - + + - - + + - - + + - - + + Comandos @@ -2070,8 +2070,8 @@
    - - Solicitar Vacaciones + + Solicitar Vacaciones
    @@ -2221,7 +2221,7 @@
    - <%--Motivo + <%--Motivo --%> @@ -2415,9 +2415,9 @@ - <%-- - - + <%-- + + --%> @@ -2557,7 +2557,7 @@ - @@ -3501,7 +3501,7 @@ @@ -3565,9 +3565,9 @@
    - <%--
    - - Agregar + <%--
    + + Agregar
    --%>
    @@ -3688,8 +3688,8 @@
    - <%--
    - + <%--
    +
    --%> @@ -3788,12 +3788,12 @@
    - <%--
    - + <%--
    +
    --%> @@ -3852,46 +3852,46 @@
    <%-- FIN MODAL SUBIR FACTURAS --%> - <%-- - -
    Saldo: $ + Saldo: $
    @@ -2585,7 +2585,7 @@ Cargo -   +   @@ -2593,7 +2593,7 @@ Abono -   +   @@ -2632,28 +2632,28 @@ Cheque -   +   Monto Compra (Saldo Orig) -   +   Abonado -   +   % Pagado -   +   @@ -2694,14 +2694,14 @@ Cargo -   +   Abono -   +   @@ -2806,35 +2806,35 @@ Importe(Saldo Orig) -   +   Comprobado -   +   % Comprobado -   +   Saldo -   +   % A Pagar -   +   @@ -2890,7 +2890,7 @@ - Factura + Factura @@ -2900,7 +2900,7 @@ - Producto + Producto @@ -2910,7 +2910,7 @@ - Unidad de medida + Unidad de medida @@ -2920,7 +2920,7 @@ - Cantidad + Cantidad @@ -2930,7 +2930,7 @@ - PU + PU @@ -2940,7 +2940,7 @@ - Total + Total @@ -3057,11 +3057,11 @@ - <%-- - - - + <%-- + + + --%> @@ -3378,7 +3378,7 @@ @@ -3464,8 +3464,8 @@ - <%-- - + <%-- + --%>
    Con copia para:
    - (Separar con: ;) + (Separar con: ;)
    - - - - - - - - - - - - - -
    Bitácora  -
    - - - - - - - -
    Bitácora/Observaciones
    - -
    -
    - - - - - - -
    - -
    - + <%-- + + + --%> @@ -4447,54 +4447,54 @@ - - diff --git a/RH/Personal.aspx.vb b/RH/Personal.aspx.vb index 6228b0e4d..4a1480b55 100644 --- a/RH/Personal.aspx.vb +++ b/RH/Personal.aspx.vb @@ -4961,6 +4961,11 @@ Partial Class RH_Personal FileExtension = IO.Path.GetExtension(String.Format("{0}Temp\{1}", AppDomain.CurrentDomain.BaseDirectory, fileItem.filename)).Replace(".", "") filemove = fileItem.filename + Dim yaExistente As String = String.Format("{0}Empresas\{1}\RH\Personal\{2}.jpg", AppDomain.CurrentDomain.BaseDirectory, UsuarioActual.CveEmpresa, CvePersonal) + If File.Exists(yaExistente) Then + File.Delete(yaExistente) + End If + If filemove <> "" Then filemove.FilesMove(CvePersonal.ToString, String.Format("Empresas\{0}\RH\Personal\", UsuarioActual.CveEmpresa)) End If diff --git a/Ventas/ClientesAbonar.aspx.vb b/Ventas/ClientesAbonar.aspx.vb index 4d726dadd..5747d66dc 100644 --- a/Ventas/ClientesAbonar.aspx.vb +++ b/Ventas/ClientesAbonar.aspx.vb @@ -863,7 +863,7 @@ Partial Class Ventas_ClientesAbonar importeMX = gvr.FCTextBox("TxtAbonar").Text.ToDecimal * tipoCambioVentaValuacion ElseIf CveMoneda = 2 AndAlso gvr.DataKey("CveMoneda").ToEntero = 1 Then ImporteMovimiento = gvr.FCTextBox("TxtAbonar").Text.ToDecimal - importeMX = gvr.FCTextBox("TxtAbonar").Text.ToDecimal * tipoCambioVentaValuacion + importeMX = gvr.FCTextBox("TxtAbonar").Text.ToDecimal ElseIf CveMoneda = 2 AndAlso gvr.DataKey("CveMoneda").ToEntero = 2 Then ImporteMovimiento = gvr.FCTextBox("TxtAbonar").Text.ToDecimal importeMX = ImporteMovimiento * tipoCambioVentaValuacion @@ -1467,6 +1467,7 @@ Partial Class Ventas_ClientesAbonar If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, ImporteMovimiento, Referencia, ConceptoContable, ConceptoMovimiento, FechaMovimiento, IdCtaContable, -1, CveIE, gvr.FCHyperLink("HplF2").Text.ToEntero, -1, CveSubProyectoContabilizar, ViewState("CveCliente").ToString.ToEntero, ImporteMX:=importeMX, CveCuenta:=CveCuenta, TipoCambio:=TipoCambioGeneral, TipoCambioPago:=tipoCambioPago, PorcentajeImpuesto:=PorcentajeImpuesto) Then MsgError = "No se pudo insertar la póliza" + Exit For End If End If @@ -1568,7 +1569,7 @@ Partial Class Ventas_ClientesAbonar End If End If - If ObjMov.ValidacionPrePolizaCuadre(CvePrePoliza, 3) Then + If MsgError = "" AndAlso ObjMov.ValidacionPrePolizaCuadre(CvePrePoliza, 3) Then If ObjMov.ValorPolizaDescuadre > 0 Then MsgError = ObjMov.MensajePolizaDescuadre + " La diferencia es de: " + ObjMov.ValorDiferencia End If diff --git a/Ventas/Ventas.aspx.vb b/Ventas/Ventas.aspx.vb index b495f0e2e..d9d67b00f 100644 --- a/Ventas/Ventas.aspx.vb +++ b/Ventas/Ventas.aspx.vb @@ -11209,8 +11209,8 @@ Partial Class Ventas End If End If - - + Else + OcurrioError = True End If factura.Inv_CveMovimiento = CveMovimientoInventario factura.Inv_ValorInventario = ValorInventario @@ -11249,11 +11249,11 @@ Partial Class Ventas If factura.TipoDocto.Contiene("Ing", "Egs", "OP", "Com") Then 'Dim ObjAC As New ClsContPAQi(UsuarioActual.Empresa) : ObjAC.IniciaTransacSQL() - Dim IDPoliza As Integer = GenerarPolizaAC(ObjAC, factura) + Dim IDPoliza As Modelos.RetornoPolizaConta = GenerarPolizaAC(ObjAC, factura) - If IDPoliza > 0 Then + If IDPoliza.IdPoliza > 0 Then - If ObjVentas.UpdateVentaPrePoliza(IDPoliza, factura.CvePrePoliza, factura.CveVenta, factura.CveEmpresa) Then + If ObjVentas.UpdateVentaPrePoliza(IDPoliza.IdPoliza, IDPoliza.FolioPoliza, factura.CvePrePoliza, factura.CveVenta, factura.CveEmpresa) Then 'Si se facturó la cotización hay que vincular la venta Msgok.AppendFormat("Abono Registrado Correctamente.

    Ver Poliza", IDPoliza) @@ -15078,8 +15078,8 @@ Partial Class Ventas End If ObjVentas.Dispose() End Sub - Private Function GenerarPolizaAC(ObjAC As ClsContPAQi, factura As Modelos.Factura, Optional CancelacionIngreso As Boolean = False) As Integer - Dim Retorno As Integer = 0 + Private Function GenerarPolizaAC(ObjAC As ClsContPAQi, factura As Modelos.Factura, Optional CancelacionIngreso As Boolean = False) As RetornoPolizaConta + Dim Retorno As New Modelos.RetornoPolizaConta Dim IDPoliza As Integer = 0 Dim ErrorAC As Boolean = False @@ -15106,7 +15106,8 @@ Partial Class Ventas ' Dim NombreCliente As String = ViewState("NombreCliente").ToString If IDPoliza > 0 Then - + Retorno.IdPoliza = IDPoliza + Retorno.FolioPoliza = ObjAC.Folio 'Orden de PAGO If factura.TipoDocto = "OP" Then @@ -15186,7 +15187,7 @@ Partial Class Ventas If Not ErrorAC Then ObjAC.AjustaPoliza(IDPoliza) - Retorno = IDPoliza + ' Retorno = IDPoliza Else Alert("Error al agregar la Póliza de AC.", TipoMensaje.MsgError) @@ -15197,6 +15198,8 @@ Partial Class Ventas Return Retorno End Function + + Private Function GenerarPolizaAC(ObjAC As ClsContPAQi, Optional CancelacionIngreso As Boolean = False) As Integer Dim Retorno As Integer = 0 Dim IDPoliza As Integer = 0 diff --git a/vwd.webinfo b/vwd.webinfo index 6b76e11e1..c9e193dc4 100644 --- a/vwd.webinfo +++ b/vwd.webinfo @@ -50,8 +50,6 @@ - -