diff --git a/App_Code/ClsPaginas.vb b/App_Code/ClsPaginas.vb index 2fe4aab5d..a7b7a4a24 100644 --- a/App_Code/ClsPaginas.vb +++ b/App_Code/ClsPaginas.vb @@ -7250,6 +7250,20 @@ Public Class ClsPaginas params.Add(New ReportParameter("Comprador", ObjOC.UsuarioAsignado)) End If + If UsuarioActual.CveEmpresa.Contiene(13, 83) Then + Dim ObjCuentasBancos As New ClsGenerales() + If ObjCuentasBancos.GetCuentasDepositos(ObjOC.CveProveedor) Then + Dim CuentasActivas As DataTable = ObjCuentasBancos.DtResultados.FiltraParametros("EstatusTexto = 'Activo'") + Dim CuentasStr As New StringBuilder("") + For Each CuentasBancarios As DataRow In CuentasActivas.Rows + Dim CuentaClabe As String = If(CuentasBancarios.Item("BancoNombre").ToString.Contains("BBVA") Or CuentasBancarios.Item("BancoNombre").ToString.Contains("BANCOMER"), CuentasBancarios.Item("Cuenta").ToString, CuentasBancarios.Item("CLABE").ToString) + Dim infoCuenta As String = String.Format("
{0} {1}: {2}", CuentasBancarios.Item("BancoNombre").ToString, CuentasBancarios.Item("Abreviatura").ToString, CuentaClabe) + CuentasStr.AppendFormat(infoCuenta) + Next + params.Add(New ReportParameter("Cuentas", CuentasStr.ToString)) + End If + ObjCuentasBancos.Dispose() + End If 'params.Add(New ReportParameter("FechaOC", ObjOC.Fecha.ToShortDateString)) Dim RutaFisicaSol As String = String.Format("Empresas\{0}\Firmas\{1}.png", EmpresaActual.CveEmpresa, CveUsuarioSol) Dim RutaVirtuaSol As String = String.Format("{0}://{1}:{2}/ashx/sigfiles.ashx?P={0}", Request.Url.Scheme, Request.Url.Host, Request.Url.Port, Encripta(RutaFisicaSol)) diff --git a/App_Code/MyHub.vb b/App_Code/MyHub.vb index 133da54e7..6a34d2eb9 100644 --- a/App_Code/MyHub.vb +++ b/App_Code/MyHub.vb @@ -69,13 +69,4 @@ Public Class MyHub Public Sub send(name As String, mensaje As String) Clients.All.broadcastMessage(name, mensaje) End Sub -End Class -Public Class MyhubUserIdProvider - Implements IUserIdProvider - - - Private Function IUserIdProvider_GetUserId(request As IRequest) As String Implements IUserIdProvider.GetUserId - Dim userId = Decripta(request.User.Identity.Name) 'MyCustomUserClass.FindUserId(request.User.Identity.Name) - Return userId.ToString() - End Function End Class \ No newline at end of file diff --git a/App_Code/Notificaciones.vb b/App_Code/Notificaciones.vb index 8efed087d..6c5d7902a 100644 --- a/App_Code/Notificaciones.vb +++ b/App_Code/Notificaciones.vb @@ -44,3 +44,12 @@ Public Class Notificaciones ' Clients.Users(Para).AlertaVentana(Titulo, Message, DirectCast(Tipo, Integer), timeoutseconds) 'End Sub End Class +Public Class MyhubUserIdProvider + Implements IUserIdProvider + + + Private Function IUserIdProvider_GetUserId(request As IRequest) As String Implements IUserIdProvider.GetUserId + Dim userId = Decripta(request.User.Identity.Name) 'MyCustomUserClass.FindUserId(request.User.Identity.Name) + Return userId.ToString() + End Function +End Class diff --git a/Contabilidad/RegPoliza.aspx.vb b/Contabilidad/RegPoliza.aspx.vb index afeb6b527..ecd4b6116 100644 --- a/Contabilidad/RegPoliza.aspx.vb +++ b/Contabilidad/RegPoliza.aspx.vb @@ -1765,13 +1765,14 @@ Partial Class RegPoliza Try Select Case Tipo Case "EXCEL" - Conexion = New Odbc.OdbcConnection("Driver={Microsoft Excel Driver (*.xls, *.xlsx, *.xlsm, *.xlsb)};DBQ=" + Ruta + FileName + ";") - Conexion.Open() - Dim cmd = Conexion.CreateCommand() - cmd.CommandType = CommandType.Text - cmd.CommandText = "Select * FROM [Hoja1$]" - Dim DataAdapter = New Odbc.OdbcDataAdapter(cmd) - DataAdapter.Fill(dt) + 'Conexion = New Odbc.OdbcConnection("Driver={Microsoft Excel Driver (*.xls, *.xlsx, *.xlsm, *.xlsb)};DBQ=" + Ruta + FileName + ";") + 'Conexion.Open() + 'Dim cmd = Conexion.CreateCommand() + 'cmd.CommandType = CommandType.Text + 'cmd.CommandText = "Select * FROM [Hoja1$]" + 'Dim DataAdapter = New Odbc.OdbcDataAdapter(cmd) + 'DataAdapter.Fill(dt) + dt = Extensiones.ModExtensiones.ReadExcelFile(String.Format("{0}{1}", Ruta, FileName), True) Case Else Alert("El archivo no tiene el formato correcto", TipoMensaje.MsgError) Exit Sub diff --git a/Default2.aspx b/Default2.aspx new file mode 100644 index 000000000..622c9e37e --- /dev/null +++ b/Default2.aspx @@ -0,0 +1,20 @@ +<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %> + + + + + + + + + + + + + + + + + + + diff --git a/Default2.aspx.cs b/Default2.aspx.cs new file mode 100644 index 000000000..030cb567b --- /dev/null +++ b/Default2.aspx.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +public partial class Default2 : System.Web.UI.Page +{ + protected void Page_Load(object sender, EventArgs e) + { + + } +} \ No newline at end of file diff --git a/Empresas/Grales/Formatos/RepFacturas.rdlc b/Empresas/Grales/Formatos/RepFacturas.rdlc index a93425a4d..63975247d 100644 --- a/Empresas/Grales/Formatos/RepFacturas.rdlc +++ b/Empresas/Grales/Formatos/RepFacturas.rdlc @@ -6,6 +6,41 @@ + + + + true + true + + + + + Tipo + + + + Textbox3 + + + + + + 2pt + 2pt + 2pt + 2pt + + + + @@ -47,16 +82,16 @@ - 3.5579cm + 2.36727cm - 7.63463cm + 7.23964cm - 2.64509cm + 2.57894cm - 2.86998cm + 2.34081cm @@ -172,7 +207,10 @@ - =Switch(Fields!FueValidado.Value = "1","Validado", Fields!FueValidado.Value = "2","Cancelada", Fields!FueValidado.Value = "3","Omitida") + =Switch(Fields!FueValidado.Value = "1","Validado", +Fields!FueValidado.Value = "2","Cancelada", +Fields!FueValidado.Value = "3","Omitida", +1=1,"No validado") @@ -378,7 +419,7 @@ @@ -389,16 +430,51 @@ 2pt - true + + + + 2.33715cm + + + true + true + + + + + =Fields!SerieFolio.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + DataSet1 0.06614cm 1.2cm - 19.04475cm + 19.0265cm @@ -805,6 +881,10 @@ /* Local Query */ + + TipoComprobante + System.String + SerieFolio System.String diff --git a/Inicio.aspx b/Inicio.aspx index b45294990..bc2192868 100644 --- a/Inicio.aspx +++ b/Inicio.aspx @@ -1144,7 +1144,7 @@
- + diff --git a/Metronic/assets/admin/layout/css/custom.css b/Metronic/assets/admin/layout/css/custom.css index 992599c9a..42984d0c5 100644 --- a/Metronic/assets/admin/layout/css/custom.css +++ b/Metronic/assets/admin/layout/css/custom.css @@ -2656,7 +2656,14 @@ select.select2-offscreen, select.select2-offscreen:focus { content: "Arrastre el archivo"; color: #808080; font-size: 30px; - margin-top: 80px; + margin-top: 15px; +} +.addropzone.dz-clickable:after { + position: absolute; + content: "o presione doble click"; + color: #808080; + font-size: 30px; + margin-top: 45px; } .mypaste { diff --git a/Nomina/Nomina2.aspx b/Nomina/Nomina2.aspx index 7ce1b7f3d..676d992db 100644 --- a/Nomina/Nomina2.aspx +++ b/Nomina/Nomina2.aspx @@ -70,26 +70,29 @@
  • - Cargar Nomina + Autorizar nómina
  • - Tablas + Carga masiva de Asistencia
  • - Autorizar + Lista de raya
  • - Carga Asistencia + Cargar masiva de conceptos
  • - Asistencia + Tablas de cálculo +
  • +
  • + Ir a asistencia
  • + + +
    -
  • - Lista de Raya -
  • @@ -209,7 +212,7 @@
    - @@ -402,10 +405,12 @@
    No. Trabajador
    -
    + +
    Días Trabajados
    -
    + +
    Afi IMSS
    @@ -414,39 +419,48 @@
    Faltas
    -
    + +
    R.F.C.
    -
    + +
    Retardos
    -
    + +
    Curp
    -
    + +
    Días Vacaciones
    -
    + +
    Tipo de Pago
    -
    + +
    Días Incapacidad
    -
    + +
    Fecha de Pago
    -
    + +
    Periodo del
    -
    + + @@ -951,6 +965,20 @@ + + + @@ -990,14 +1032,14 @@ - diff --git a/OC/RepSolicitudesAnticipo.aspx.cs b/OC/RepSolicitudesAnticipo.aspx.cs index b8cc189ea..d4c250158 100644 --- a/OC/RepSolicitudesAnticipo.aspx.cs +++ b/OC/RepSolicitudesAnticipo.aspx.cs @@ -9,7 +9,11 @@ using System.Web.UI.WebControls; using Extensiones; using Microsoft.Reporting.WebForms; using static Extensiones.ModExtensiones; - +using iTextSharp; +using iTextSharp.text; +using iTextSharp.text.pdf; +using System.IO; +using Ionic.Zip; public partial class OC_RepSolicitudesAnticipo : ClsPaginas { #region "Propiedades" @@ -75,7 +79,7 @@ public partial class OC_RepSolicitudesAnticipo : ClsPaginas { DdlProveedor.DataSource = get_GlobalDTCompProveedores(UsuarioActual.CveEmpresa); DdlProveedor.DataBind(); - DdlProveedor.Items.Insert(0, new ListItem("Todos", "-1")); + DdlProveedor.Items.Insert(0, new System.Web.UI.WebControls.ListItem("Todos", "-1")); DdlProveedor.SelectedValue = "-1"; } @@ -124,6 +128,10 @@ public partial class OC_RepSolicitudesAnticipo : ClsPaginas { GenerarPDF("PDF"); } + protected void LnkImpresionMasiva_Click(object sender,EventArgs e) + { + GenerarImpresionMasiva(); + } protected void GenerarPDF(String Opcion) { @@ -161,4 +169,44 @@ public partial class OC_RepSolicitudesAnticipo : ClsPaginas Alert("No hay datos consultados", ModExtensiones.TipoMensaje.MsgAdvertencia); } } + + private void GenerarImpresionMasiva() + { + + byte[] all; + + using (MemoryStream ms = new MemoryStream()) + { + using (Document d = new Document()) + { + using (PdfCopy copy = new PdfCopy(d,ms)) + { + d.Open(); + foreach (GridViewRow Gvr in GvSolicitudes.Rows) + { + int CveOC = Gvr.DataKey("CveOrdenCompra").ToEntero(); + byte[] reporteByte = NewGeneraBytesOC(CveOC); + PdfReader reader = new PdfReader(reporteByte); + int n = reader.NumberOfPages; + int page = 0; + while (page < n) + { + page++; + copy.AddPage(copy.GetImportedPage(reader, page)); + } + } + } + + } + all = ms.ToArray(); + } + //ImprimirbytesPDF(all, "RepSolicitudesAnticipo"); + + ZipFile zip = new ZipFile(); + zip.AddEntry("RepSolicitudesAnticipo", all); + zip.Save(Response.OutputStream); + Response.AddHeader("content-Disposition", "attachment; filename=RepSolicitudesAnticipo.zip"); + Response.ContentType = "application/zip"; + Response.End(); + } } \ No newline at end of file diff --git a/OI/ConvocatoriaDetalle.aspx.cs b/OI/ConvocatoriaDetalle.aspx.cs index d6e2055c0..388e15bd5 100644 --- a/OI/ConvocatoriaDetalle.aspx.cs +++ b/OI/ConvocatoriaDetalle.aspx.cs @@ -519,7 +519,7 @@ public partial class OI_ConvocatoriaDetalle : ClsPaginas CveEventoMinuta = CveEvento; LnkOpenModalAsistencia.Visible = true; UpAcciones.Update(); - this.Alert(string.Format("Se ha iniciado la minuta
    para ir a la minuta click aquí", CveEvento), ModExtensiones.TipoMensaje.ToastInformacion, "", 0); + this.Alert(string.Format("Se ha iniciado la minuta, si desea ir a la minuta Click Aquí.", CveEvento), ModExtensiones.TipoMensaje.ToastInformacion, "", 0); LnkOpenModalAsistencia_Click(null, null); } } @@ -561,7 +561,7 @@ public partial class OI_ConvocatoriaDetalle : ClsPaginas { if (CveEventoMinuta > 0) { - Alert(string.Format("se ingresó la asistencia correctamente.
    para ir a la minuta click aquí", CveEventoMinuta)); + Alert(string.Format("Se ingresó la asistencia correctamente, si desea ir a la minuta Click Aquí.", CveEventoMinuta)); } else { diff --git a/OI/MinutaDetalle.aspx b/OI/MinutaDetalle.aspx index b0b1d6b1d..4735927e6 100644 --- a/OI/MinutaDetalle.aspx +++ b/OI/MinutaDetalle.aspx @@ -115,7 +115,7 @@
    - +
    @@ -125,7 +125,7 @@
    -

    Moderador:

    +

    Moderador

    @@ -133,7 +133,7 @@
    -

    Participantes:

    +

    Participantes

    @@ -149,8 +149,8 @@
    Guardar - Enviar Minuta - Terminar y Enviar Minuta + Enviar minuta + Terminar y enviar minuta
    @@ -284,7 +284,7 @@
    - Agregar + Agregar <%--Agregar--%>
    @@ -355,7 +355,7 @@
    - +
    @@ -393,7 +393,7 @@ - Prioridad: + Prioridad
    @@ -402,7 +402,7 @@ - Para: + Para @@ -529,7 +529,7 @@
    - +
    @@ -593,7 +593,7 @@ - Para: + Para
    diff --git a/OI/MinutaDetalle.aspx.cs b/OI/MinutaDetalle.aspx.cs index 9d5f41357..69abb5fae 100644 --- a/OI/MinutaDetalle.aspx.cs +++ b/OI/MinutaDetalle.aspx.cs @@ -752,7 +752,7 @@ public partial class OI_MinutaDetalle : ClsPaginas objOI.IniciaTransacSQL(); - tCveSeguimiento = objOI.AddEventoComentario2(RCveEvento, "Termino Minuta", "", UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa); + tCveSeguimiento = objOI.AddEventoComentario2(RCveEvento, "Termino minuta.", "", UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa); if (tCveSeguimiento > 0) { @@ -774,7 +774,7 @@ public partial class OI_MinutaDetalle : ClsPaginas { script = string.Format("location.replace(\"/OI/ConvocatoriaDetalle.aspx?CveEventoPadre={0}\");", RCveEvento); } - Alert("La minuta se termino con exito.", ModExtensiones.TipoMensaje.MsgInformacion, script); + Alert("La minuta ha finalizado.", ModExtensiones.TipoMensaje.MsgInformacion, script); objOI.Commit(); } else @@ -800,7 +800,7 @@ public partial class OI_MinutaDetalle : ClsPaginas protected void LnkEnviarMinuta_Click(object sender, EventArgs e) { EnviarMinuta(); - Alert("La minuta se envió con exito.", ModExtensiones.TipoMensaje.MsgInformacion); + Alert("La minuta se envió por correo electronico.", ModExtensiones.TipoMensaje.MsgInformacion); } #region "enviarminuta" diff --git a/OI/RepReuniones.aspx b/OI/RepReuniones.aspx index 0a3f0b54b..714ee487c 100644 --- a/OI/RepReuniones.aspx +++ b/OI/RepReuniones.aspx @@ -20,10 +20,10 @@
  • - Nueva Convocatoria + Nueva convocatoria
  • - Nueva Minuta + Nueva minuta
  • @@ -211,7 +211,7 @@ <%----%> - +
    diff --git a/OI/RepTareas.aspx.vb b/OI/RepTareas.aspx.vb index 50d6ff229..26151b487 100644 --- a/OI/RepTareas.aspx.vb +++ b/OI/RepTareas.aspx.vb @@ -109,6 +109,7 @@ Partial Class OI_RepTareas If ObjProspectos.GetRepEventos(-1, -1, -1, "-1", "-1", -1, -1, -1, CveEventoEstatus, DdlRevision.SelectedValue.ToEntero, -1, "-1", -1, -1, -1, -1, -1, -1, -1, -1, -1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, FechaI, FechaF, TipoReporte:=TipoReporte) Then DTOIEventosTareas = ObjProspectos.DtResultados.FiltraParametros(String.Format("CveUsuarioPara = {0} AND CveTipoEvento IN (1,3)", UsuarioActual.CveUsuario)) + DTOIEventosTareas = DTOIEventosTareas.FiltraParametros(String.Format("CveEmpresa={0}", UsuarioActual.CveEmpresa)) ltlGrafMEasiginaron.Text = DTOIEventosTareas.Rows.Count.ToString() 'BURBUJITAS - BADGE If DTOIEventosTareas.FiltraParametros("EventoEstatus = 'Pendiente'").Rows.Count > 0 Then @@ -176,6 +177,7 @@ Partial Class OI_RepTareas If ObjProspectos.GetEventosUsuarioCCP(UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, 1, DdlRevision.SelectedValue.ToEntero, FechaI, FechaF, CveEventoEstatus) Then DTOIEventosTareasCCP = ObjProspectos.DtResultados.FiltraParametros(String.Format("CveUsuarioIng = {0} And CveTipoEvento In (1,3)", UsuarioActual.CveUsuario)) + DTOIEventosTareasCCP = DTOIEventosTareasCCP.FiltraParametros(String.Format("CveEmpresa={0}", UsuarioActual.CveEmpresa)) ltlgrafCcp.Text = DTOIEventosTareasCCP.Rows.Count.ToString() 'BURBUJITAS - BADGE If DTOIEventosTareasCCP.FiltraParametros("EventoEstatus = 'Pendiente'").Rows.Count > 0 Then @@ -243,6 +245,7 @@ Partial Class OI_RepTareas If ObjProspectos.GetRepEventos(-1, -1, -1, "-1", "-1", -1, -1, -1, CveEventoEstatus, DdlRevision.SelectedValue.ToEntero, -1, "-1", -1, -1, -1, -1, -1, -1, -1, -1, -1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, FechaI, FechaF, TipoReporte:=TipoReporte) Then DTOIEventosTareasAsigne = ObjProspectos.DtResultados.FiltraParametros(String.Format("CveUsuarioIng = {0} And CveTipoEvento In (1,3)", UsuarioActual.CveUsuario)) + DTOIEventosTareasAsigne = DTOIEventosTareasAsigne.FiltraParametros(String.Format("CveEmpresa={0}", UsuarioActual.CveEmpresa)) ltlgrafAsigne.Text = DTOIEventosTareasAsigne.Rows.Count.ToString() 'BURBUJITAS - BADGE If DTOIEventosTareasAsigne.FiltraParametros("EventoEstatus = 'Pendiente'").Rows.Count > 0 Then diff --git a/OI/TareaDetalle.aspx b/OI/TareaDetalle.aspx index 3bd705b2c..63d26b4d2 100644 --- a/OI/TareaDetalle.aspx +++ b/OI/TareaDetalle.aspx @@ -124,6 +124,11 @@ height: 100%; cursor: not-allowed; } + .porcentajelabel{ + color: #ed5565; + font-size: 64px; + font-weight:bold; + } @@ -361,7 +366,10 @@ Estatus: - + +
    + % +
    Avance: @@ -371,7 +379,7 @@
    - +
    @@ -744,15 +752,20 @@ Agregar relación