Merge branch 'master' of http://jperez@adsistemasof.sytes.net:8383/SIG.git
This commit is contained in:
@@ -15,6 +15,7 @@ Public Enum OITipoEventos
|
|||||||
ISO = 8
|
ISO = 8
|
||||||
Soporte = 9
|
Soporte = 9
|
||||||
Gastos_Mes = 10
|
Gastos_Mes = 10
|
||||||
|
Convocatorias = 11
|
||||||
End Enum
|
End Enum
|
||||||
|
|
||||||
Public Class ObjEventosCorreo
|
Public Class ObjEventosCorreo
|
||||||
@@ -218,38 +219,218 @@ Public Class ClsOIEventos
|
|||||||
Public Property objCorreo As ObjEventosCorreo
|
Public Property objCorreo As ObjEventosCorreo
|
||||||
|
|
||||||
#End Region
|
#End Region
|
||||||
|
#Region "Trello"
|
||||||
|
Public Function GetTablero(cveTablero As Int32, cveUsuario As Int32, cveEmpresa As Int32) As Boolean
|
||||||
|
Dim retorno As Boolean = False
|
||||||
|
DataAdapter("PA_OI_GetTablero", CommandType.StoredProcedure)
|
||||||
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
|
.Add("@CveTablero", SqlDbType.Int).Value = (cveTablero)
|
||||||
|
.Add("@CveUsuario", SqlDbType.Int).Value = (cveUsuario)
|
||||||
|
.Add("@CveEmpresa", SqlDbType.Int).Value = (cveEmpresa)
|
||||||
|
End With
|
||||||
|
Try
|
||||||
|
SqlAdapter.Fill(Data)
|
||||||
|
retorno = True
|
||||||
|
Catch ex As Exception
|
||||||
|
OnError("Ocurrió un error al obtener el Tablero.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
||||||
|
End Try
|
||||||
|
Return retorno
|
||||||
|
End Function
|
||||||
|
Public Function AddTablero(tablero As String, cveUsuario As Int32, cveUsuarioIng As Int32, cveEmpresa As Int32) As Boolean
|
||||||
|
Dim retorno As Boolean = False
|
||||||
|
DataAdapter("PA_OI_AddTablero", CommandType.StoredProcedure)
|
||||||
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
|
.Add("@Tablero", SqlDbType.VarChar).Value = (tablero)
|
||||||
|
.Add("@CveUsuario", SqlDbType.Int).Value = (cveUsuario)
|
||||||
|
.Add("@CveUsuarioIng", SqlDbType.Int).Value = (cveUsuarioIng)
|
||||||
|
.Add("@CveEmpresa", SqlDbType.Int).Value = (cveEmpresa)
|
||||||
|
End With
|
||||||
|
|
||||||
|
Try
|
||||||
|
SqlAdapter.Fill(Data)
|
||||||
|
retorno = True
|
||||||
|
Catch ex As Exception
|
||||||
|
OnError("Ocurrió un error al agregar el Tablero.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
||||||
|
End Try
|
||||||
|
Return retorno
|
||||||
|
End Function
|
||||||
|
Public Function UpTablero(cveTablero As Int32, tablero As String, cveUsuario As Int32, cveEmpresa As Int32) As Boolean
|
||||||
|
Dim retorno As Boolean = False
|
||||||
|
DataAdapter("PA_OI_UpTablero", CommandType.StoredProcedure)
|
||||||
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
|
.Add("@CveTablero", SqlDbType.Int).Value = (cveTablero)
|
||||||
|
.Add("@Tablero", SqlDbType.VarChar).Value = (tablero)
|
||||||
|
.Add("@CveUsuario", SqlDbType.Int).Value = (cveUsuario)
|
||||||
|
.Add("@CveEmpresa", SqlDbType.Int).Value = (cveEmpresa)
|
||||||
|
End With
|
||||||
|
Try
|
||||||
|
SqlAdapter.Fill(Data)
|
||||||
|
retorno = True
|
||||||
|
Catch ex As Exception
|
||||||
|
OnError("Ocurrió un error al actualizar el Tablero.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
||||||
|
End Try
|
||||||
|
Return retorno
|
||||||
|
End Function
|
||||||
|
Public Function RemoveTablero(cveTablero As Int32, cveUsuario As Int32, cveEmpresa As Int32) As Boolean
|
||||||
|
Dim retorno As Boolean = False
|
||||||
|
DataAdapter("PA_OI_RemoveTablero", CommandType.StoredProcedure)
|
||||||
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
|
.Add("@CveTablero", SqlDbType.Int).Value = (cveTablero)
|
||||||
|
.Add("@CveUsuario", SqlDbType.Int).Value = (cveUsuario)
|
||||||
|
.Add("@CveEmpresa", SqlDbType.Int).Value = (cveEmpresa)
|
||||||
|
End With
|
||||||
|
Try
|
||||||
|
SqlAdapter.Fill(Data)
|
||||||
|
retorno = True
|
||||||
|
Catch ex As Exception
|
||||||
|
OnError("Ocurrió un error al eliminar el Tablero.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
||||||
|
End Try
|
||||||
|
Return retorno
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Public Function UpEventoLista(cveTableroLista As Int32, CveEvento As Integer) As Boolean
|
||||||
|
Dim retorno As Boolean = False
|
||||||
|
DataAdapter("PA_OI_EventoLista", CommandType.StoredProcedure)
|
||||||
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
|
.Add("@CveTableroLista", SqlDbType.Int).Value = (cveTableroLista)
|
||||||
|
.Add("@CveEvento", SqlDbType.Int).Value = (CveEvento)
|
||||||
|
End With
|
||||||
|
Try
|
||||||
|
SqlAdapter.Fill(Data)
|
||||||
|
retorno = True
|
||||||
|
Catch ex As Exception
|
||||||
|
OnError("Ocurrió un error al obtener la Lista.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
||||||
|
End Try
|
||||||
|
Return retorno
|
||||||
|
End Function
|
||||||
|
|
||||||
|
|
||||||
|
Public Function GetTableroListaTrello(cveTablero As Int32) As Boolean
|
||||||
|
Dim retorno As Boolean = False
|
||||||
|
DataAdapter("PA_OI_GetTableroListaTrello", CommandType.StoredProcedure)
|
||||||
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
|
.Add("@CveTablero", SqlDbType.Int).Value = (cveTablero)
|
||||||
|
End With
|
||||||
|
Try
|
||||||
|
SqlAdapter.Fill(Data)
|
||||||
|
retorno = True
|
||||||
|
Catch ex As Exception
|
||||||
|
OnError("Ocurrió un error al obtener la Lista.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
||||||
|
End Try
|
||||||
|
Return retorno
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Public Function GetTableroLista(cveTableroLista As Int32, cveTablero As Int32) As Boolean
|
||||||
|
Dim retorno As Boolean = False
|
||||||
|
DataAdapter("PA_OI_GetTableroLista", CommandType.StoredProcedure)
|
||||||
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
|
.Add("@CveTableroLista", SqlDbType.Int).Value = (cveTableroLista)
|
||||||
|
.Add("@CveTablero", SqlDbType.Int).Value = (cveTablero)
|
||||||
|
End With
|
||||||
|
Try
|
||||||
|
SqlAdapter.Fill(Data)
|
||||||
|
retorno = True
|
||||||
|
Catch ex As Exception
|
||||||
|
OnError("Ocurrió un error al obtener la Lista.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
||||||
|
End Try
|
||||||
|
Return retorno
|
||||||
|
End Function
|
||||||
|
Public Function AddTableroLista(cveTablero As Int32, lista As String, cveUsuarioIng As Int32) As Boolean
|
||||||
|
Dim retorno As Boolean = False
|
||||||
|
DataAdapter("PA_OI_AddTableroLista", CommandType.StoredProcedure)
|
||||||
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
|
.Add("@CveTablero", SqlDbType.Int).Value = cveTablero
|
||||||
|
.Add("@Lista", SqlDbType.VarChar).Value = (lista)
|
||||||
|
.Add("@CveUsuarioIng", SqlDbType.Int).Value = (cveUsuarioIng)
|
||||||
|
End With
|
||||||
|
Try
|
||||||
|
SqlAdapter.Fill(Data)
|
||||||
|
retorno = True
|
||||||
|
Catch ex As Exception
|
||||||
|
OnError("Ocurrió un error al agregar la Lista.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
||||||
|
End Try
|
||||||
|
Return retorno
|
||||||
|
End Function
|
||||||
|
Public Function UpTableroLista(cveTableroLista As Int32, lista As String) As Boolean
|
||||||
|
Dim retorno As Boolean = False
|
||||||
|
DataAdapter("PA_OI_UpTableroLista", CommandType.StoredProcedure)
|
||||||
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
|
.Add("@CveTableroLista", SqlDbType.Int).Value = (cveTableroLista)
|
||||||
|
.Add("@Lista", SqlDbType.VarChar).Value = (lista)
|
||||||
|
End With
|
||||||
|
Try
|
||||||
|
SqlAdapter.Fill(Data)
|
||||||
|
retorno = True
|
||||||
|
Catch ex As Exception
|
||||||
|
OnError("Ocurrió un error al actualizar el Tablero.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
||||||
|
End Try
|
||||||
|
Return retorno
|
||||||
|
End Function
|
||||||
|
Public Function RemoveTableroLista(cveTableroLista As Int32) As Boolean
|
||||||
|
Dim retorno As Boolean = False
|
||||||
|
DataAdapter("PA_OI_RemoveTableroLista", CommandType.StoredProcedure)
|
||||||
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
|
.Add("@CveTableroLista", SqlDbType.Int).Value = (cveTableroLista)
|
||||||
|
End With
|
||||||
|
Try
|
||||||
|
SqlAdapter.Fill(Data)
|
||||||
|
retorno = True
|
||||||
|
Catch ex As Exception
|
||||||
|
OnError("Ocurrió un error al eliminar la Lista.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
||||||
|
End Try
|
||||||
|
Return retorno
|
||||||
|
End Function
|
||||||
|
#End Region
|
||||||
#Region "oieventos2.0"
|
#Region "oieventos2.0"
|
||||||
|
|
||||||
Public Function UpEventosVinculos(cveEvento As Int32, cveActivoFijo As Int32, cveIE As Int32, cveProspecto As Int32, cveCliente As Int32, cveOS As Int32, cveOC As Int32, cvePersonal As Int32,
|
Public Function UpEventosVinculos(cveEvento As Int32, cveActivoFijo As Int32, cveIE As Int32, cveProspecto As Int32, cveCliente As Int32, cveOS As Int32, cveOC As Int32, cvePersonal As Int32,
|
||||||
cveProveedor As Int32, cveCompra As Int32, cveVenta As Int32, cveContrato As Int32, cveUsuario As Int32, cveSubProyecto As Int32, cveMovimientoAlmacen As Int32,
|
cveProveedor As Int32, cveCompra As Int32, cveVenta As Int32, cveContrato As Int32, cveSubProyecto As Int32, cveMovimientoAlmacen As Int32,
|
||||||
cveEmpresaCRM As Int32) As Boolean
|
cveEmpresaCRM As Int32) As Boolean
|
||||||
Dim retorno As Boolean = False
|
Dim retorno As Boolean = False
|
||||||
DataAdapter("PA_OI_EventosVinculosUp", CommandType.StoredProcedure)
|
DataAdapter("PA_OI_EventosVinculosUp", CommandType.StoredProcedure)
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
.Add("@CveEvento", SqlDbType.Int, cveEvento)
|
.Add("@CveEvento", SqlDbType.Int).Value = (cveEvento)
|
||||||
.Add("@CveActivoFijo", SqlDbType.Int, cveActivoFijo)
|
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
||||||
.Add("@CveIE", SqlDbType.Int, cveIE)
|
.Add("@CveActivoFijo", SqlDbType.Int).Value = (cveActivoFijo)
|
||||||
.Add("@CveProspecto", SqlDbType.Int, cveProspecto)
|
.Add("@CveIE", SqlDbType.Int).Value = (cveIE)
|
||||||
.Add("@CveCliente", SqlDbType.Int, cveCliente)
|
.Add("@CveProspecto", SqlDbType.Int).Value = (cveProspecto)
|
||||||
.Add("@CveOS", SqlDbType.Int, cveOS)
|
.Add("@CveCliente", SqlDbType.Int).Value = (cveCliente)
|
||||||
.Add("@CveOC", SqlDbType.Int, cveOC)
|
.Add("@CveOS", SqlDbType.Int).Value = (cveOS)
|
||||||
.Add("@CvePersonal", SqlDbType.Int, cvePersonal)
|
.Add("@CveOC", SqlDbType.Int).Value = (cveOC)
|
||||||
.Add("@CveProveedor", SqlDbType.Int, cveProveedor)
|
.Add("@CvePersonal", SqlDbType.Int).Value = (cvePersonal)
|
||||||
.Add("@CveCompra", SqlDbType.Int, cveCompra)
|
.Add("@CveProveedor", SqlDbType.Int).Value = (cveProveedor)
|
||||||
.Add("@CveVenta", SqlDbType.Int, cveVenta)
|
.Add("@CveCompra", SqlDbType.Int).Value = (cveCompra)
|
||||||
.Add("@CveContrato", SqlDbType.Int, cveContrato)
|
.Add("@CveVenta", SqlDbType.Int).Value = (cveVenta)
|
||||||
.Add("@CveSubProyecto", SqlDbType.Int, cveSubProyecto)
|
.Add("@CveContrato", SqlDbType.Int).Value = (cveContrato)
|
||||||
.Add("@CveMovimientoAlmacen", SqlDbType.Int, cveMovimientoAlmacen)
|
.Add("@CveSubProyecto", SqlDbType.Int).Value = (cveSubProyecto)
|
||||||
.Add("@CveEmpresaCRM", SqlDbType.Int, cveEmpresaCRM)
|
.Add("@CveMovimientoAlmacen", SqlDbType.Int).Value = (cveMovimientoAlmacen)
|
||||||
|
.Add("@CveEmpresaCRM", SqlDbType.Int).Value = (cveEmpresaCRM)
|
||||||
Try
|
|
||||||
SqlAdapter.Fill(Data)
|
|
||||||
retorno = True
|
|
||||||
Catch ex As Exception
|
|
||||||
OnError("Ocurrió un error al obtener el Catálogo de Evento Usuario.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
|
||||||
End Try
|
|
||||||
End With
|
End With
|
||||||
|
|
||||||
|
Try
|
||||||
|
SqlAdapter.Fill(Data)
|
||||||
|
retorno = True
|
||||||
|
Catch ex As Exception
|
||||||
|
OnError("Ocurrió un error al actualizar el Evento .", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
||||||
|
End Try
|
||||||
|
Return retorno
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Public Function RemoveEvento2(cveEvento As Integer, CveEmpresa As Integer, cveUsuario As Integer) As Boolean
|
||||||
|
Dim retorno As Boolean = False
|
||||||
|
DataAdapter("PA_OI_EventosRemove2", CommandType.StoredProcedure)
|
||||||
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
|
.Add("@CveEvento", SqlDbType.Int).Value = cveEvento
|
||||||
|
.Add("@cveUsuario", SqlDbType.Int).Value = cveUsuario
|
||||||
|
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
||||||
|
End With
|
||||||
|
|
||||||
|
Try
|
||||||
|
SqlAdapter.Fill(Data)
|
||||||
|
retorno = True
|
||||||
|
Catch ex As Exception
|
||||||
|
OnError("Ocurrió un error al eliminar el Evento .", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
||||||
|
End Try
|
||||||
Return retorno
|
Return retorno
|
||||||
End Function
|
End Function
|
||||||
Public Function GetEventosUsuario2(CveEvento As Integer, CveEmpresa As Integer) As Boolean
|
Public Function GetEventosUsuario2(CveEvento As Integer, CveEmpresa As Integer) As Boolean
|
||||||
@@ -286,13 +467,15 @@ Public Class ClsOIEventos
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function UpUsuarioseventosVisto(CveEvento As Integer, CveUsuario As Integer) As Boolean
|
Public Function UpUsuarioseventosVisto(CveEvento As Integer, CveUsuario As Integer, CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
DataAdapter("UPDATE OI_EventosUsuarios SET Visto=1 WHERE CveEvento =@CveEvento AND CveUsuario=@CveUsuario", CommandType.Text)
|
'DataAdapter("UPDATE OI_EventosUsuarios SET Visto=1 WHERE CveEvento =@CveEvento AND CveUsuario=@CveUsuario;IF @@ROWCOUNT >0 BEGIN INSERT INTO OI_EventosComentarios (CveEvento, EventoComentario, CveUsuario) VALUES ( @CveEvento, CONCAT('El Usuario ""',(SELECT Nombre FROM Usuarios WHERE CveUsuario=@CveUsuario),'"" a visto la tarea'), @CveUsuario); END", CommandType.Text)
|
||||||
|
DataAdapter("PA_OI_EventosUpVisto")
|
||||||
|
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
.Add("@CveEvento", SqlDbType.Int).Value = CveEvento
|
.Add("@CveEvento", SqlDbType.Int).Value = CveEvento
|
||||||
.Add("@CveUsuario", SqlDbType.Int).Value = CveUsuario
|
.Add("@CveUsuario", SqlDbType.Int).Value = CveUsuario
|
||||||
|
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
||||||
End With
|
End With
|
||||||
Try
|
Try
|
||||||
SqlAdapter.Fill(Data)
|
SqlAdapter.Fill(Data)
|
||||||
@@ -348,7 +531,7 @@ Public Class ClsOIEventos
|
|||||||
Optional CveActivoFijo As Integer = -1, Optional CveIE As Integer = -1, Optional CveProspecto As Integer = -1, Optional CveCliente As Integer = -1,
|
Optional CveActivoFijo As Integer = -1, Optional CveIE As Integer = -1, Optional CveProspecto As Integer = -1, Optional CveCliente As Integer = -1,
|
||||||
Optional CveOS As Integer = -1, Optional CveOC As Integer = -1, Optional CvePersonal As Integer = -1, Optional CveProveedor As Integer = -1,
|
Optional CveOS As Integer = -1, Optional CveOC As Integer = -1, Optional CvePersonal As Integer = -1, Optional CveProveedor As Integer = -1,
|
||||||
Optional CveCompra As Integer = -1, Optional CveVenta As Integer = -1, Optional CveContrato As Integer = -1, Optional CveSubProyecto As Integer = -1,
|
Optional CveCompra As Integer = -1, Optional CveVenta As Integer = -1, Optional CveContrato As Integer = -1, Optional CveSubProyecto As Integer = -1,
|
||||||
Optional CveMovimientoAlmacen As Integer = -1, Optional CorreoExterno As String = "") As Boolean
|
Optional CveMovimientoAlmacen As Integer = -1, Optional CorreoExterno As String = "", Optional CveTableroLista As Integer = -1, Optional Lugar As String = "") As Boolean
|
||||||
Dim retorno As Boolean = False
|
Dim retorno As Boolean = False
|
||||||
|
|
||||||
Dim xmlMiembros As System.Xml.Linq.XDocument = Nothing
|
Dim xmlMiembros As System.Xml.Linq.XDocument = Nothing
|
||||||
@@ -406,7 +589,8 @@ Public Class ClsOIEventos
|
|||||||
.Add("@CveSubProyecto", SqlDbType.Int).Value = CveSubProyecto
|
.Add("@CveSubProyecto", SqlDbType.Int).Value = CveSubProyecto
|
||||||
.Add("@CveMovimientoAlmacen", SqlDbType.Int).Value = CveMovimientoAlmacen
|
.Add("@CveMovimientoAlmacen", SqlDbType.Int).Value = CveMovimientoAlmacen
|
||||||
.Add("@CorreoExterno", SqlDbType.VarChar).Value = CorreoExterno
|
.Add("@CorreoExterno", SqlDbType.VarChar).Value = CorreoExterno
|
||||||
|
.Add("@Lugar", SqlDbType.VarChar).Value = Lugar
|
||||||
|
.Add("@CveTableroLista", SqlDbType.VarChar).Value = CveTableroLista
|
||||||
|
|
||||||
'.Add("@mailPara", SqlDbType.VarChar).Direction = ParameterDirection.Output
|
'.Add("@mailPara", SqlDbType.VarChar).Direction = ParameterDirection.Output
|
||||||
'.Add("@mailBody", SqlDbType.Xml).Direction = ParameterDirection.Output
|
'.Add("@mailBody", SqlDbType.Xml).Direction = ParameterDirection.Output
|
||||||
@@ -1630,8 +1814,10 @@ Public Class ClsOIEventos
|
|||||||
SqlAdapter.Fill(Data)
|
SqlAdapter.Fill(Data)
|
||||||
|
|
||||||
Retorno = True
|
Retorno = True
|
||||||
|
Catch ex As SqlException
|
||||||
|
OnError("Ocurrió un error al guardar Tema.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
OnError("Ocurrió un error al guardar la Revision de Eventos.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
OnError("Ocurrió un error al guardar Tema.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
||||||
End Try
|
End Try
|
||||||
|
|
||||||
Return Retorno
|
Return Retorno
|
||||||
|
|||||||
@@ -3567,6 +3567,10 @@ Public Class ClsPaginas
|
|||||||
PaginaDict.Add("/OI/Tareas.aspx".ToUpper(), -1)
|
PaginaDict.Add("/OI/Tareas.aspx".ToUpper(), -1)
|
||||||
PaginaDict.Add("/OI/RepProyectos.aspx".ToUpper(), -1)
|
PaginaDict.Add("/OI/RepProyectos.aspx".ToUpper(), -1)
|
||||||
PaginaDict.Add("/OI/Proyecto.aspx".ToUpper(), -1)
|
PaginaDict.Add("/OI/Proyecto.aspx".ToUpper(), -1)
|
||||||
|
PaginaDict.Add("/OI/Tablero.aspx".ToUpper(), -1)
|
||||||
|
PaginaDict.Add("/OI/TableroDetalle.aspx".ToUpper(), -1)
|
||||||
|
PaginaDict.Add("/OI/ConvocatoriaDetalle.aspx".ToUpper(), -1)
|
||||||
|
PaginaDict.Add("/OI/RepReuniones.aspx".ToUpper(), -1)
|
||||||
PaginaDict.Add("/AdSistemasTeam/ProcedimientosAlmacenados.aspx".ToUpper(), -1)
|
PaginaDict.Add("/AdSistemasTeam/ProcedimientosAlmacenados.aspx".ToUpper(), -1)
|
||||||
PaginaDict.Add("/OS/CatOrdenesServiciosCaracteristicas.aspx".ToUpper(), -1)
|
PaginaDict.Add("/OS/CatOrdenesServiciosCaracteristicas.aspx".ToUpper(), -1)
|
||||||
PaginaDict.Add("/OS/CatOSCaracteristicasOpciones.aspx".ToUpper(), -1)
|
PaginaDict.Add("/OS/CatOSCaracteristicasOpciones.aspx".ToUpper(), -1)
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@@ -2603,17 +2603,50 @@ Partial Class Compras_eFacturas
|
|||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
Property DT_ComprasSinIE As DataTable
|
||||||
|
Get
|
||||||
|
If ViewState("DT_ComprasSinIE") Is Nothing Then
|
||||||
|
Return New DataTable
|
||||||
|
Else
|
||||||
|
Return DirectCast(ViewState("DT_ComprasSinIE"), DataTable)
|
||||||
|
End If
|
||||||
|
End Get
|
||||||
|
Set(value As DataTable)
|
||||||
|
ViewState("DT_ComprasSinIE") = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
'Property ComplementoComprasSinIE As String
|
||||||
|
' Get
|
||||||
|
' If ViewState("ComplementoComprasSinIE") Is Nothing Then
|
||||||
|
' Return ""
|
||||||
|
' Else
|
||||||
|
' Return ViewState("ComplementoComprasSinIE").ToString
|
||||||
|
' End If
|
||||||
|
' End Get
|
||||||
|
' Set(value As String)
|
||||||
|
' ViewState("ComplementoComprasSinIE") = value
|
||||||
|
' End Set
|
||||||
|
'End Property
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#Region "V I N C U L A R P A G O"
|
#Region "V I N C U L A R P A G O"
|
||||||
|
|
||||||
Protected Sub LnkAgregarPago_Click(sender As Object, e As EventArgs)
|
Protected Sub LnkAgregarPago_Click(sender As Object, e As EventArgs)
|
||||||
|
|
||||||
|
Dim sbSinIE As New StringBuilder
|
||||||
|
|
||||||
|
HdnCveIE.Value = ""
|
||||||
MSGComplemento = ""
|
MSGComplemento = ""
|
||||||
ViculacionConPUE = False
|
ViculacionConPUE = False
|
||||||
ListaComprasPUE.Clear()
|
ListaComprasPUE.Clear()
|
||||||
ComplementoConPUE = ""
|
ComplementoConPUE = ""
|
||||||
|
|
||||||
|
DT_ComprasSinIE = New DataTable
|
||||||
|
|
||||||
|
|
||||||
Dim ListaComprasPUEInterna As New List(Of Integer)
|
Dim ListaComprasPUEInterna As New List(Of Integer)
|
||||||
|
|
||||||
@@ -2809,6 +2842,26 @@ Partial Class Compras_eFacturas
|
|||||||
End If
|
End If
|
||||||
Next
|
Next
|
||||||
|
|
||||||
|
|
||||||
|
DT_ComprasSinIE.Columns.Add("CveCompra", GetType(Integer))
|
||||||
|
DT_ComprasSinIE.Columns.Add("CveFactura", GetType(Integer))
|
||||||
|
DT_ComprasSinIE.Columns.Add("SerieFolioPago")
|
||||||
|
DT_ComprasSinIE.Columns.Add("SerieFolioCompra")
|
||||||
|
|
||||||
|
For Each dRow As DataRow In DTDocumentosRelacionados.Rows
|
||||||
|
Dim nRow As DataRow = DT_ComprasSinIE.NewRow
|
||||||
|
nRow("CveCompra") = dRow("CveCompra").ToString.ToEntero
|
||||||
|
' nRow("CveFactura") = dRow("CveFactura").ToString.ToEntero
|
||||||
|
nRow("SerieFolioPago") = $"{SeriePago}-{FolioPago}"
|
||||||
|
nRow("SerieFolioCompra") = dRow("SerieFolioCompra").ToString
|
||||||
|
|
||||||
|
DT_ComprasSinIE.Rows.Add(nRow)
|
||||||
|
|
||||||
|
|
||||||
|
Next
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Else
|
Else
|
||||||
Alert("Ocurrió un error al cargar los archivos de complementos pago", TipoMensaje.MsgError)
|
Alert("Ocurrió un error al cargar los archivos de complementos pago", TipoMensaje.MsgError)
|
||||||
End If
|
End If
|
||||||
@@ -2876,6 +2929,12 @@ Partial Class Compras_eFacturas
|
|||||||
ImporteIES = ObjCompras.DtResultados.FiltraParametros("CveIE > 0").SUM("Importe")
|
ImporteIES = ObjCompras.DtResultados.FiltraParametros("CveIE > 0").SUM("Importe")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
DiferenciaImportes = Monto - ImporteIES
|
DiferenciaImportes = Monto - ImporteIES
|
||||||
ObjCompras.Dispose()
|
ObjCompras.Dispose()
|
||||||
|
|
||||||
@@ -2962,19 +3021,25 @@ Partial Class Compras_eFacturas
|
|||||||
|
|
||||||
If ViculacionConPUE Then
|
If ViculacionConPUE Then
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
For Each CveCompraVinculada In ListaComprasPUE
|
For Each CveCompraVinculada In ListaComprasPUE
|
||||||
|
|
||||||
objEventos.AddEventoBitacora($"Complemento { ComplementoConPUE } vinculado manualmente (Compra PUE) ", "", UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveCompra:=CveCompraVinculada)
|
objEventos.AddEventoBitacora($"Complemento { ComplementoConPUE } vinculado manualmente (Compra PUE) ", "", UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveCompra:=CveCompraVinculada)
|
||||||
Next
|
Next
|
||||||
|
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
If HdnCveIE.Value.ToEntero > 0 Then
|
||||||
|
|
||||||
|
|
||||||
|
For Each dRow As DataRow In DT_ComprasSinIE.Rows
|
||||||
|
objEventos.AddEventoBitacora($"Complemento { dRow("SerieFolioPago").ToString } vinculado manualmente a compra {dRow("SerieFolioCompra").ToString}", "", UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveCompra:=dRow("CveCompra").ToString.ToEntero)
|
||||||
|
Next
|
||||||
|
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
ObjCompra.Commit()
|
ObjCompra.Commit()
|
||||||
|
|
||||||
Alert("El pago fue vinculado correctamente", TipoMensaje.MsgInformacion)
|
Alert("El pago fue vinculado correctamente", TipoMensaje.MsgInformacion)
|
||||||
|
|||||||
@@ -185,7 +185,7 @@ public partial class OI_CircularDetalleB : ClsPaginas
|
|||||||
{
|
{
|
||||||
Filename = fileItem.filename;
|
Filename = fileItem.filename;
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception )
|
||||||
{
|
{
|
||||||
ModExtensiones.OnError(this, "Ocurrió un error al obtener al archivo", ex);
|
ModExtensiones.OnError(this, "Ocurrió un error al obtener al archivo", ex);
|
||||||
Filename = "-1";
|
Filename = "-1";
|
||||||
@@ -213,7 +213,7 @@ public partial class OI_CircularDetalleB : ClsPaginas
|
|||||||
string respuesta = "";
|
string respuesta = "";
|
||||||
string FileExtension = "-1";
|
string FileExtension = "-1";
|
||||||
List<Archivo> Filesgral = TxtArchivo.getfiles().Archivos;
|
List<Archivo> Filesgral = TxtArchivo.getfiles().Archivos;
|
||||||
string Filename = "";
|
//string Filename = "";
|
||||||
|
|
||||||
foreach (Archivo fileItem in Filesgral)
|
foreach (Archivo fileItem in Filesgral)
|
||||||
{
|
{
|
||||||
@@ -279,7 +279,7 @@ public partial class OI_CircularDetalleB : ClsPaginas
|
|||||||
}
|
}
|
||||||
Alert("El correo se envió correctamente");
|
Alert("El correo se envió correctamente");
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception )
|
||||||
{
|
{
|
||||||
Alert("Error al enviar correo", ModExtensiones.TipoMensaje.MsgError);
|
Alert("Error al enviar correo", ModExtensiones.TipoMensaje.MsgError);
|
||||||
}
|
}
|
||||||
|
|||||||
600
OI/ConvocatoriaDetalle.aspx
Normal file
600
OI/ConvocatoriaDetalle.aspx
Normal file
@@ -0,0 +1,600 @@
|
|||||||
|
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="ConvocatoriaDetalle.aspx.cs" Inherits="OI_ConvocatoriaDetalle" %>
|
||||||
|
|
||||||
|
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
||||||
|
</asp:Content>
|
||||||
|
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
||||||
|
<style>
|
||||||
|
.GVVinculo a {
|
||||||
|
text-decoration: none;
|
||||||
|
color: #333;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
|
tr[hide="1"] {
|
||||||
|
display: none;
|
||||||
|
background-color: rgb(4,71,103)
|
||||||
|
}
|
||||||
|
|
||||||
|
.portlet {
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn.btnCalendar {
|
||||||
|
padding: 5px 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn.btn-circle.btn-icon-only.btnsmalli {
|
||||||
|
padding: 5px 7px 5px;
|
||||||
|
height: 27px;
|
||||||
|
width: 27px;
|
||||||
|
line-height: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn.btnsmalli > i {
|
||||||
|
font-size: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.titletable {
|
||||||
|
background-color: #e1e5ec;
|
||||||
|
}
|
||||||
|
|
||||||
|
#Gvmiembros tr > td:nth-child(2) {
|
||||||
|
width: 30px;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mypaste:before {
|
||||||
|
content: "Pegar aquí";
|
||||||
|
}
|
||||||
|
|
||||||
|
.filediv .addropzone.dz-clickable:before {
|
||||||
|
margin-top: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.filediv .addropzone {
|
||||||
|
min-height: 100px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.divArchivo {
|
||||||
|
padding: 15px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.divArchivo a {
|
||||||
|
color: #659be0;
|
||||||
|
font-size: 18px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.divArchivo a i {
|
||||||
|
font-size: 32px;
|
||||||
|
line-height: 32px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.itembaja {
|
||||||
|
color: #00CC00;
|
||||||
|
}
|
||||||
|
|
||||||
|
.itemmedia {
|
||||||
|
color: #000000;
|
||||||
|
}
|
||||||
|
|
||||||
|
.itemalta {
|
||||||
|
color: #FF0000;
|
||||||
|
}
|
||||||
|
|
||||||
|
.GVcheklist pre {
|
||||||
|
background-color: transparent;
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.GVcheklist .finished .pre {
|
||||||
|
text-decoration: line-through;
|
||||||
|
}
|
||||||
|
|
||||||
|
.GvActividades tr > td:nth-child(1) {
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.labelitem {
|
||||||
|
margin-bottom: 0;
|
||||||
|
font-size: 13px;
|
||||||
|
color: #888888;
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cssnowrap {
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.linkCorreo {
|
||||||
|
text-decoration: none;
|
||||||
|
color: #659be0;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.DivAvance {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.DivAvance .TxtAvance.aspNetDisabled ~ .Avancereadonly {
|
||||||
|
position: absolute;
|
||||||
|
top: 0px;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
cursor: not-allowed;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</asp:Content>
|
||||||
|
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
||||||
|
</asp:Content>
|
||||||
|
<asp:Content ID="Content4" ContentPlaceHolderID="HB" runat="Server">
|
||||||
|
</asp:Content>
|
||||||
|
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
||||||
|
<asp:UpdatePanel ID="UpAcciones" runat="server" UpdateMode="Conditional">
|
||||||
|
<ContentTemplate>
|
||||||
|
<li><asp:LinkButton ID="LnkUpUsuarios" OnClick="LnkUpUsuarios_Click" Visible="true" runat="server"><i class="fa fa-pencil"></i> Actualizar Participantes</asp:LinkButton></li>
|
||||||
|
|
||||||
|
</ContentTemplate>
|
||||||
|
</asp:UpdatePanel>
|
||||||
|
</asp:Content>
|
||||||
|
<asp:Content ID="Content6" ContentPlaceHolderID="HA" runat="Server">
|
||||||
|
</asp:Content>
|
||||||
|
<asp:Content ID="Content7" ContentPlaceHolderID="C" runat="Server">
|
||||||
|
<asp:UpdatePanel ID="UpContenido" runat="server">
|
||||||
|
<ContentTemplate>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-5">
|
||||||
|
<asp:Panel runat="server" ID="portletMinuta" class="portlet light smmallpadding bordered">
|
||||||
|
<div class="portlet-title">
|
||||||
|
<div class="caption font-green">
|
||||||
|
<i class="icon-pin font-green"></i>
|
||||||
|
<span class="caption-subject bold uppercase">Datos Convocatoria</span>
|
||||||
|
</div>
|
||||||
|
<div class="tools">
|
||||||
|
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="portlet-body rowpadding">
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:TextBox ID="TxtAsunto" runat="server" CssClass="form-control " CausesValidation="true"></asp:TextBox>
|
||||||
|
<asp:RequiredFieldValidator ID="RFVAsunto" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtAsunto" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Asunto''</b> es necesario, por favor ingréselo." ValidationGroup="GrpTarea"></asp:RequiredFieldValidator>
|
||||||
|
<asp:Label runat="server" Text="Asunto:" AssociatedControlID="TxtAsunto"></asp:Label>
|
||||||
|
</div>
|
||||||
|
<div class="form-group form-md-line-input">
|
||||||
|
<asp:TextBox ID="TxtDescripcion" runat="server" CssClass="form-control TxtDescripcion" CausesValidation="true" TextMode="MultiLine" Rows="2"></asp:TextBox>
|
||||||
|
<asp:RequiredFieldValidator ID="RfvDescripcion" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtDescripcion" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Descripción''</b> es necesario, por favor ingréselo." ValidationGroup="GrpTarea"></asp:RequiredFieldValidator>
|
||||||
|
<asp:Label runat="server" Text="Descripción" AssociatedControlID="TxtDescripcion"></asp:Label>
|
||||||
|
</div>
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:TextBox ID="TxtLugar" runat="server" CssClass="form-control " CausesValidation="true"></asp:TextBox>
|
||||||
|
<asp:RequiredFieldValidator ID="RfvTxtLugar" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtLugar" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Lugar''</b> es necesario, por favor ingréselo." ValidationGroup="GrpTarea"></asp:RequiredFieldValidator>
|
||||||
|
<asp:Label runat="server" Text="Lugar:" AssociatedControlID="TxtLugar"></asp:Label>
|
||||||
|
</div>
|
||||||
|
<asp:Panel ID="pnlmiembrosvista" Visible="false" runat="server">
|
||||||
|
<div class="pnlCorreo" style="margin-bottom: 5px;">
|
||||||
|
<div class="headerCorreo ">
|
||||||
|
<h3 class="panel-title ">Moderador:</h3>
|
||||||
|
</div>
|
||||||
|
<div class="bodycorreos ">
|
||||||
|
<asp:Literal ID="LtlDeUser" runat="server"></asp:Literal>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="pnlCorreo" style="margin-bottom: 5px;">
|
||||||
|
<div class="headerCorreo ">
|
||||||
|
<h3 class="panel-title ">Participantes:</h3>
|
||||||
|
</div>
|
||||||
|
<div class="bodycorreos ">
|
||||||
|
<asp:Literal ID="LtlCCPara" runat="server"></asp:Literal>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</asp:Panel>
|
||||||
|
<div class="form-group form-md-line-input">
|
||||||
|
<asp:TextBox ID="TxtCorreoExterno" runat="server" CssClass="form-control TxtCorreoExterno" CausesValidation="true" TextMode="MultiLine" Rows="2"></asp:TextBox>
|
||||||
|
<%--<asp:RequiredFieldValidator ID="RfvCorreoExterno" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtCorreoExterno" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Correo Externo''</b> es necesario, por favor ingréselo." ValidationGroup="GrpTarea"></asp:RequiredFieldValidator>--%>
|
||||||
|
<asp:Label runat="server" Text="Correos Externos" AssociatedControlID="TxtCorreoExterno"></asp:Label>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-sm-6">
|
||||||
|
<div class="input-group form-group form-md-line-input date date-picker " data-date-format="dd/mm/yyyy hh:mm" style="display: inline-block;">
|
||||||
|
<asp:TextBox ID="txtFechaI" runat="server" autocomplete="false" CssClass="form-control ADDateTimePicker" CausesValidation="true" MaxLength="18" Width="132px "></asp:TextBox>
|
||||||
|
<asp:RequiredFieldValidator ID="RFVtxtFechaI" runat="server" ControlToValidate="txtFechaI" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha Inicio''</b> es necesario, por favor seleccione uno." ValidationGroup="GrpTarea"></asp:RequiredFieldValidator>
|
||||||
|
<asp:Label AssociatedControlID="txtFechaI" runat="server" Text="Fecha Inicio"></asp:Label>
|
||||||
|
<%--<ajax:MaskedEditExtender ID="MEEFechaI" runat="server" TargetControlID="txtFechaI" Mask="99/99/9999 99:99" MaskType="DateTime" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>--%>
|
||||||
|
<ajax:ValidatorCalloutExtender ID="VcoFechaI" runat="server" HighlightCssClass="vco" TargetControlID="RFVtxtFechaI" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-sm-6">
|
||||||
|
<div class="input-group form-group form-md-line-input date date-picker " data-date-format="dd/mm/yyyy hh:mm" style="display: inline-block;">
|
||||||
|
<asp:TextBox ID="txtFechaF" runat="server" autocomplete="false" CssClass="form-control ADDateTimePicker" CausesValidation="true" MaxLength="18" Width="132px " placeholder=""></asp:TextBox>
|
||||||
|
<asp:RequiredFieldValidator ID="RFVtxtFechaF" runat="server" ControlToValidate="txtFechaF" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha Fin''</b> es necesario, por favor seleccione uno." ValidationGroup="GrpTarea"></asp:RequiredFieldValidator>
|
||||||
|
<asp:Label AssociatedControlID="txtFechaF" runat="server" Text="Fecha Fin"></asp:Label>
|
||||||
|
<%--<ajax:MaskedEditExtender ID="MEEFechaI" runat="server" TargetControlID="txtFechaI" Mask="99/99/9999 99:99" MaskType="DateTime" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>--%>
|
||||||
|
<ajax:ValidatorCalloutExtender ID="VcoFechaF" runat="server" HighlightCssClass="vco" TargetControlID="RFVtxtFechaF" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-sm-6" style="display: none;">
|
||||||
|
<div class="form-group form-md-line-input">
|
||||||
|
<asp:DropDownList ID="DdlPrioridad" runat="server" CssClass="form-control select2me input-sm" Width="100%">
|
||||||
|
<asp:ListItem Selected="True" Text="Baja" Value="1" class="itembaja"></asp:ListItem>
|
||||||
|
<asp:ListItem Text="Media" Value="2" class="itemmedia"></asp:ListItem>
|
||||||
|
<asp:ListItem Text="Alta" Value="3" class="itemalta"></asp:ListItem>
|
||||||
|
</asp:DropDownList>
|
||||||
|
<asp:RequiredFieldValidator ID="RFVPrioridad" runat="server" ControlToValidate="DdlPrioridad" Display="None" ErrorMessage="El campo <b>''Prioridad''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpTarea"></asp:RequiredFieldValidator>
|
||||||
|
<asp:Label runat="server" AssociatedControlID="DdlPrioridad">Prioridad:</asp:Label>
|
||||||
|
<ajax:ValidatorCalloutExtender ID="VCOPrioridad" runat="server" TargetControlID="RFVPrioridad" HighlightCssClass="vco" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-sm-5">
|
||||||
|
<div class="form-group form-md-line-input">
|
||||||
|
<asp:DropDownList ID="DdlTema" runat="server" CssClass="form-control select2me input-sm" DataValueField="CveRevision" DataTextField="Revision" Width="100%">
|
||||||
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||||||
|
</asp:DropDownList>
|
||||||
|
<asp:Label runat="server" AssociatedControlID="DdlTema">Asunto / Tema:</asp:Label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-sm-1">
|
||||||
|
<asp:LinkButton ID="LnkAddTtemaModal" OnClick="LnkAddTtemaModal_Click" runat="server" CssClass="btn btn-default" Style="margin-top: 15px;"><i class="fa fa-plus"></i></asp:LinkButton>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</asp:Panel>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4">
|
||||||
|
|
||||||
|
<asp:Panel runat="server" ID="portletChekList" Visible="true" class="portlet light smmallpadding bordered">
|
||||||
|
<div class="portlet-title">
|
||||||
|
<div class="caption font-green">
|
||||||
|
<i class="fa fa-check-square-o font-green"></i>
|
||||||
|
<span class="caption-subject bold uppercase">Orden deldía <span id="Contador"></span></span>
|
||||||
|
</div>
|
||||||
|
<div class="tools">
|
||||||
|
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
||||||
|
</div>
|
||||||
|
<div class="actions">
|
||||||
|
<div class="btn-group">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="portlet-body rowpadding" style="padding-top: 0px;">
|
||||||
|
<asp:TextBox ID="TxtOrdendeldia" runat="server" CssClass="form-control ADSckeditor " CausesValidation="true" TextMode="MultiLine" Rows="2"></asp:TextBox>
|
||||||
|
</div>
|
||||||
|
</asp:Panel>
|
||||||
|
</div>
|
||||||
|
<asp:Panel runat="server" ID="portletMiembros" class="col-md-3">
|
||||||
|
|
||||||
|
<div class="portlet light smmallpadding bordered">
|
||||||
|
<div class="portlet-title">
|
||||||
|
<div class="caption font-green">
|
||||||
|
<i class="fa fa-user-plus font-green"></i>
|
||||||
|
<span class="caption-subject bold uppercase">Participantes</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="tools">
|
||||||
|
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
||||||
|
</div>
|
||||||
|
<div class="actions">
|
||||||
|
<div class="btn-group">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="portlet-body rowpadding">
|
||||||
|
<div class="form-group form-md-line-input">
|
||||||
|
<asp:DropDownList ID="DdlModerador" runat="server" CssClass="form-control select2me input-sm" DataValueField="CveUsuario" DataTextField="Nombre" Width="100%">
|
||||||
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||||||
|
</asp:DropDownList>
|
||||||
|
<asp:Label runat="server" AssociatedControlID="DdlModerador">Moderador:</asp:Label>
|
||||||
|
</div>
|
||||||
|
<div class="text-right" style="">
|
||||||
|
<asp:TextBox ID="TxtUser2" runat="server" CssClass="form-control input-sm TxtUsuario2" Style="display: inline-block; margin-right: -20px; width: 150px;" CausesValidation="true"></asp:TextBox>
|
||||||
|
<a href="javascript:;" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||||||
|
</div>
|
||||||
|
<asp:GridView ID="GVUsuariosB" runat="server" AutoGenerateColumns="false" DataKeyNames="CveUsuario,Nombre,Correo,Empresa"
|
||||||
|
CssClass="table table-striped table-advance table-hover Widthall ScrollAD GVUsuarios" GridLines="None" data-height="200"
|
||||||
|
OnRowDataBound="GVUsuariosB_RowDataBound">
|
||||||
|
<Columns>
|
||||||
|
<asp:TemplateField>
|
||||||
|
<ItemStyle HorizontalAlign="Center" Width="50px" />
|
||||||
|
<HeaderTemplate>
|
||||||
|
C. C. Para
|
||||||
|
<br />
|
||||||
|
<%--<a id="chkAll" onclick="chkAll_OncLick(1);" class="linkCorreo" data-toggle="tooltip" title="Seleccionar todos(Visibles)"><i class="fa fa-check-square-o"></i></a>
|
||||||
|
<a id="UnchkAll" onclick="chkAll_OncLick(0);" class="linkCorreo" data-toggle="tooltip" title="Quitar seleccion todos(Visibles)"><i class="fa fa-square-o"></i></a>--%>
|
||||||
|
</HeaderTemplate>
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:CheckBox ID="ChkCCP" CssClass="ChkOk" Checked="false" runat="server" />
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField>
|
||||||
|
<HeaderTemplate>Usuario</HeaderTemplate>
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Literal ID="LtlNombre" runat="server" Text='<%# Eval("Nombre") %>'></asp:Literal>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField>
|
||||||
|
<HeaderTemplate>Rol</HeaderTemplate>
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Literal ID="LtlRol" runat="server" Text='<%# Eval("Rol") %>'></asp:Literal>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
</Columns>
|
||||||
|
</asp:GridView>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</asp:Panel>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="text-center">
|
||||||
|
<asp:LinkButton ID="LnkIniciar" OnClick="LnkIniciar_Click" Visible="false" CssClass="btn btn-primary" ValidationGroup="GrpTarea" runat="server">Iniciar</asp:LinkButton>
|
||||||
|
<asp:HyperLink ID="HypIrMinuta" Visible="false" CssClass="btn btn-primary" runat="server">Ir Minuta</asp:HyperLink>
|
||||||
|
<asp:LinkButton ID="LnkGuardar" OnClick="LnkGuardar_Click" CssClass="btn btn-primary" ValidationGroup="GrpTarea" runat="server">Guardar</asp:LinkButton>
|
||||||
|
</div>
|
||||||
|
</ContentTemplate>
|
||||||
|
</asp:UpdatePanel>
|
||||||
|
|
||||||
|
<div id='<%= iddivAgregarTema %>' class="modal ADS fade" role="dialog">
|
||||||
|
<div class="modal-dialog">
|
||||||
|
<asp:UpdatePanel ID="UpdatePanel1" class="modal-content " tabindex="-1" runat="server" UpdateMode="Conditional">
|
||||||
|
<ContentTemplate>
|
||||||
|
<div class="modal-header">
|
||||||
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span> </button>
|
||||||
|
<h4 class="modal-title" style="text-align: left">
|
||||||
|
<asp:Literal ID="Literal2" runat="server">Agregar Tema</asp:Literal></h4>
|
||||||
|
</div>
|
||||||
|
<div class="modal-body">
|
||||||
|
<div class="form-group form-md-line-input">
|
||||||
|
<asp:TextBox ID="TxtTema" runat="server" CssClass="form-control" CausesValidation="true" TextMode="MultiLine" Rows="1"></asp:TextBox>
|
||||||
|
<asp:RequiredFieldValidator ID="RfvTxtTema" runat="server" ControlToValidate="TxtTema" Display="None" ErrorMessage="El campo <b>''Tema''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="VGMAddTemaTN"></asp:RequiredFieldValidator>
|
||||||
|
<asp:Label runat="server" Text="Tema" AssociatedControlID="TxtTema"></asp:Label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="modal-footer">
|
||||||
|
<asp:LinkButton ID="BtnAgregarTema" OnClick="BtnAgregarTema_Click" CssClass="btn btn-primary" ValidationGroup="VGMAddTemaTN" runat="server">Agregar</asp:LinkButton>
|
||||||
|
<button data-dismiss="modal" class="btn btn-danger">Cancelar</button>
|
||||||
|
</div>
|
||||||
|
</ContentTemplate>
|
||||||
|
</asp:UpdatePanel>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id='<%= iddivAgregarMiembros %>' class="modal ADS fade" role="dialog">
|
||||||
|
<div class="modal-dialog">
|
||||||
|
<asp:UpdatePanel ID="UpUsuarios" class="modal-content " tabindex="-1" runat="server" UpdateMode="Conditional">
|
||||||
|
<ContentTemplate>
|
||||||
|
<div class="modal-header">
|
||||||
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span> </button>
|
||||||
|
<h4 class="modal-title" style="text-align: left">
|
||||||
|
<asp:Literal ID="LtlTituloUsuarios" runat="server">Actualizar Participantes</asp:Literal></h4>
|
||||||
|
</div>
|
||||||
|
<div class="modal-body">
|
||||||
|
|
||||||
|
<div class="form-group form-md-line-input" style="display: none">
|
||||||
|
<asp:DropDownList runat="server" ID="DdlRoles" DataValueField="CveRol" DataTextField="Rol" CssClass="select2me form-control ddlrol" Width="100%" onchange="ddlRol_Onchange();" />
|
||||||
|
<asp:Label runat="server" Text="Perfil:" AssociatedControlID="DdlRoles"></asp:Label>
|
||||||
|
</div>
|
||||||
|
<div class="form-group form-md-line-input" style="display: none">
|
||||||
|
<asp:DropDownList runat="server" ID="DdlSucursales" DataValueField="CveProyecto" DataTextField="SubProyecto" CssClass="select2me form-control ddlsucursal" Width="100%" onchange="DdlSucursales_Onchange();" />
|
||||||
|
<asp:Label runat="server" Text="Sucursales:" AssociatedControlID="DdlSucursales"></asp:Label>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="form-group form-md-line-input">
|
||||||
|
<asp:DropDownList ID="DdlModera" runat="server" CssClass="form-control select2me input-sm" DataValueField="CveUsuario" DataTextField="Nombre" Width="100%">
|
||||||
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||||||
|
</asp:DropDownList>
|
||||||
|
<asp:Label runat="server" AssociatedControlID="DdlModerador">Moderador:</asp:Label>
|
||||||
|
</div>
|
||||||
|
<div class="text-right" style="">
|
||||||
|
<asp:TextBox ID="TxtUsuario" runat="server" CssClass="form-control input-sm TxtUsuario" Style="display: inline-block; margin-right: -20px; width: 150px;" CausesValidation="true"></asp:TextBox>
|
||||||
|
<a href="javascript:;" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||||||
|
</div>
|
||||||
|
<asp:GridView ID="GVUsuarios" runat="server" AutoGenerateColumns="false" DataKeyNames="CveUsuario,Nombre,Correo,Empresa,CveRol,CveSubProyecto"
|
||||||
|
CssClass="table table-striped table-advance table-hover Widthall ScrollAD GVUsuarios" GridLines="None" data-height="200"
|
||||||
|
OnRowDataBound="GVUsuarios_RowDataBound">
|
||||||
|
<Columns>
|
||||||
|
|
||||||
|
<asp:TemplateField>
|
||||||
|
<ItemStyle HorizontalAlign="Center" Width="50px" />
|
||||||
|
<HeaderTemplate>
|
||||||
|
C. C. Para
|
||||||
|
<br />
|
||||||
|
<%--<a id="chkAll" onclick="chkAll_OncLick(1);" class="linkCorreo" data-toggle="tooltip" title="Seleccionar todos(Visibles)"><i class="fa fa-check-square-o"></i></a>
|
||||||
|
<a id="UnchkAll" onclick="chkAll_OncLick(0);" class="linkCorreo" data-toggle="tooltip" title="Quitar seleccion todos(Visibles)"><i class="fa fa fa-square-o"></i></a>--%>
|
||||||
|
</HeaderTemplate>
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:CheckBox ID="ChkCCP" CssClass="ChkOk" Checked="false" runat="server" />
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField>
|
||||||
|
<HeaderTemplate>Usuario</HeaderTemplate>
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Literal ID="LtlNombre" runat="server" Text='<%# Eval("Nombre") %>'></asp:Literal>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField>
|
||||||
|
<HeaderTemplate>Rol</HeaderTemplate>
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Literal ID="LtlRol" runat="server" Text='<%# Eval("Rol") %>'></asp:Literal>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
</Columns>
|
||||||
|
</asp:GridView>
|
||||||
|
</div>
|
||||||
|
<div class="modal-footer">
|
||||||
|
<asp:LinkButton ID="BtnReasignarTarea" OnClick="BtnReasignarTarea_Click" CssClass="btn btn-primary" runat="server">Guardar</asp:LinkButton>
|
||||||
|
<asp:LinkButton ID="BtnUpMiembros" OnClick="BtnUpMiembros_Click" CssClass="btn btn-primary" runat="server">Guardar</asp:LinkButton>
|
||||||
|
<button data-dismiss="modal" class="btn btn-danger">Cancelar</button>
|
||||||
|
</div>
|
||||||
|
</ContentTemplate>
|
||||||
|
</asp:UpdatePanel>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script src="/Metronic/assets/global/plugins/ckeditor/ckeditor.js" type="text/javascript"></script>
|
||||||
|
</asp:Content>
|
||||||
|
<asp:Content ID="Content8" ContentPlaceHolderID="JS" runat="Server">
|
||||||
|
|
||||||
|
<script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
let CveRol = -1;
|
||||||
|
let CveSucursal = -1;
|
||||||
|
let usuariotext = "";
|
||||||
|
|
||||||
|
let tickBarBmaster = 0;
|
||||||
|
function TxtUsuario2_Onchange() {
|
||||||
|
let obj = $('.TxtUsuario2');
|
||||||
|
let text = '';
|
||||||
|
tickBarBmaster = tickBarBmaster + 1;
|
||||||
|
tickBarnew = tickBarBmaster;
|
||||||
|
setTimeout(function () {
|
||||||
|
if (tickBarnew == tickBarBmaster) {
|
||||||
|
if ((text = obj.val().trim()) != usuariotext) {
|
||||||
|
usuariotext = text;
|
||||||
|
showhideUser2();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}, 500);
|
||||||
|
}
|
||||||
|
|
||||||
|
function showhideUser2() {
|
||||||
|
let strusuario = usuariotext.length > 0 ? ' td:nth-child(3):contains("' + usuariotext + '")' : '';// td:nth-child(2)
|
||||||
|
|
||||||
|
$('.GVUsuarios tr.items').attr('hide', '1')//oculto todos
|
||||||
|
$('.GVUsuarios tr.items' + strusuario).closest('tr').attr('hide', '');//muestro los que tienen filtro con usuario
|
||||||
|
|
||||||
|
}
|
||||||
|
function TxtUsuario_Onchange() {
|
||||||
|
let obj = $('.TxtUsuario');
|
||||||
|
let text = '';
|
||||||
|
tickBarBmaster = tickBarBmaster + 1;
|
||||||
|
tickBarnew = tickBarBmaster;
|
||||||
|
setTimeout(function () {
|
||||||
|
if (tickBarnew == tickBarBmaster) {
|
||||||
|
if ((text = obj.val().trim()) != usuariotext) {
|
||||||
|
usuariotext = text;
|
||||||
|
showhideUser();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}, 500);
|
||||||
|
}
|
||||||
|
|
||||||
|
function showhideUser() {
|
||||||
|
let strCveRol = CveRol > 0 ? '[data-rol="' + CveRol + '"]' : '';
|
||||||
|
let strCveSucursal = CveSucursal > 0 ? '[data-sucursal="' + CveSucursal + '"]' : '';
|
||||||
|
let strusuario = usuariotext.length > 0 ? ' td:nth-child(3):contains("' + usuariotext + '")' : '';// td:nth-child(2)
|
||||||
|
|
||||||
|
$('.GVUsuarios tr.items').attr('hide', '1')//oculto todos
|
||||||
|
if (strusuario.length > 0) {
|
||||||
|
$('.GVUsuarios tr.items' + strCveRol + strCveSucursal + strusuario).closest('tr').attr('hide', '');//muestro los que tienen filtro con usuario,sucursal y rol
|
||||||
|
} else {
|
||||||
|
$('.GVUsuarios tr.items' + strCveRol + strCveSucursal).attr('hide', '');//muestro los que tienen filtro con sucursal y rol
|
||||||
|
|
||||||
|
}
|
||||||
|
//e.Row.Attributes.Add("data-rol", CveRol);
|
||||||
|
//e.Row.Attributes.Add("data-sucursal", CveRol);
|
||||||
|
}
|
||||||
|
|
||||||
|
function loadTxtAsunto() {
|
||||||
|
let input = $('input.TxtAsunto:not(.CEvent)')
|
||||||
|
let TxtAsunto_Onchange = function () { let valor = $('input.TxtAsunto').val(); /*console.log(valor);*/ $('.TxtDescripcion').val(valor); }
|
||||||
|
input.bind({
|
||||||
|
copy: TxtAsunto_Onchange
|
||||||
|
, paste: TxtAsunto_Onchange
|
||||||
|
, cut: TxtAsunto_Onchange
|
||||||
|
, keydown: function (event) { if (event.which == 13) { event.preventDefault(); } TxtAsunto_Onchange(); }
|
||||||
|
, keyup: function (event) { if (event.which == 13) { event.preventDefault(); } TxtAsunto_Onchange(); }
|
||||||
|
});
|
||||||
|
input.addClass('CEvent');
|
||||||
|
}
|
||||||
|
|
||||||
|
function loadeventos() {
|
||||||
|
let input = $('input.TxtUsuario:not(.ConEvento)')
|
||||||
|
|
||||||
|
input.bind({
|
||||||
|
copy: TxtUsuario_Onchange
|
||||||
|
, paste: TxtUsuario_Onchange
|
||||||
|
, cut: TxtUsuario_Onchange
|
||||||
|
, keydown: function (event) { if (event.which == 13) { event.preventDefault(); } TxtUsuario_Onchange(); }
|
||||||
|
, keyup: TxtUsuario_Onchange
|
||||||
|
});
|
||||||
|
input.ad
|
||||||
|
let input2 = $('input.TxtUsuario2:not(.ConEvento)')
|
||||||
|
|
||||||
|
input2.bind({
|
||||||
|
copy: TxtUsuario2_Onchange
|
||||||
|
, paste: TxtUsuario2_Onchange
|
||||||
|
, cut: TxtUsuario2_Onchange
|
||||||
|
, keydown: function (event) { if (event.which == 13) { event.preventDefault(); } TxtUsuario2_Onchange(); }
|
||||||
|
, keyup: TxtUsuario2_Onchange
|
||||||
|
});
|
||||||
|
input2.addClass('ConEvento');
|
||||||
|
}
|
||||||
|
|
||||||
|
function ADSReady() {
|
||||||
|
loadeventos();
|
||||||
|
showhideUser();
|
||||||
|
showhideUser2();
|
||||||
|
}
|
||||||
|
function CargaPickers() {
|
||||||
|
$.datetimepicker.setLocale('es');
|
||||||
|
$('input.ADDateTimePicker').each(function () {
|
||||||
|
var TThis = $(this);
|
||||||
|
TThis.datetimepicker({
|
||||||
|
dayOfWeekStart: 1,
|
||||||
|
lang: 'es',
|
||||||
|
format: 'd/m/Y H:i',
|
||||||
|
formatDate: 'd/m/Y H:i',
|
||||||
|
step: 30
|
||||||
|
});
|
||||||
|
var Div = TThis.parent()
|
||||||
|
var boton = document.createElement('span');
|
||||||
|
boton.className = "input-group-btn"
|
||||||
|
|
||||||
|
var subboton = document.createElement('a')
|
||||||
|
subboton.className = "btn default btnCalendar"
|
||||||
|
subboton.innerHTML = "<i class='fa fa-calendar'></i>"
|
||||||
|
subboton.addEventListener('click', function () {
|
||||||
|
TThis.datetimepicker('show')
|
||||||
|
});
|
||||||
|
boton.appendChild(subboton)
|
||||||
|
|
||||||
|
var agregar = true;
|
||||||
|
for (var i = 0; i < Div[0].children.length; i++) {
|
||||||
|
if (Div[0].children[i].isEqualNode(boton)) {
|
||||||
|
agregar = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (agregar) {
|
||||||
|
Div[0].appendChild(boton);
|
||||||
|
}
|
||||||
|
//Div[0].appendChild(boton)
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
loaderinited = loaderinit;
|
||||||
|
var prm = Sys.WebForms.PageRequestManager.getInstance();
|
||||||
|
prm.add_endRequest(function (s, e) { loaderinit = loaderinited; });
|
||||||
|
Sys.Application.add_load(function (s, e) {
|
||||||
|
CargaPickers();
|
||||||
|
loadTxtAsunto();
|
||||||
|
//$('.GVcheklist input[type="checkbox"]:checked').addClass('icheck setclass');
|
||||||
|
});
|
||||||
|
$(document).ready(function () {
|
||||||
|
CargaPickers();
|
||||||
|
loadTxtAsunto();
|
||||||
|
//$('.GVUsuarios input[type="checkbox"]:not(.setclass)').addClass('icheck setclass');
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
</asp:Content>
|
||||||
|
|
||||||
562
OI/ConvocatoriaDetalle.aspx.cs
Normal file
562
OI/ConvocatoriaDetalle.aspx.cs
Normal file
@@ -0,0 +1,562 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Web;
|
||||||
|
using System.Web.UI;
|
||||||
|
using System.Web.UI.WebControls;
|
||||||
|
using Extensiones;
|
||||||
|
|
||||||
|
public partial class OI_ConvocatoriaDetalle : ClsPaginas
|
||||||
|
{
|
||||||
|
|
||||||
|
#region Propiedades
|
||||||
|
public const string iddivAgregarTema = "divModalAgregartema";
|
||||||
|
public const string iddivAgregarMiembros = "iddivAgregarMiembros";
|
||||||
|
public int RCveEvento { get { return ViewState["RCveEvento"] != null ? ViewState["RCveEvento"].ToString().ToEntero() : 0; } set { ViewState["RCveEvento"] = value; } }
|
||||||
|
public bool EsNuevo { get { return Convert.ToBoolean(ViewState["EsNuevo"]); } set { ViewState["EsNuevo"] = value; } }
|
||||||
|
public List<int> LCveUsuarioCCP { get { if (ViewState["LCveUsuarioCCP"] == null) { ViewState["LCveUsuarioCCP"] = new List<int>(); } return (List<int>)ViewState["LCveUsuarioCCP"]; } set { ViewState["LCveUsuarioCCP"] = value; } }
|
||||||
|
public List<int> LcveuserVisto { get { if (ViewState["LcveuserVisto"] == null) { ViewState["LcveuserVisto"] = new List<int>(); } return (List<int>)ViewState["LcveuserVisto"]; } set { ViewState["LcveuserVisto"] = value; } }
|
||||||
|
public int CveUsuarioDe { get { return ViewState["CveUsuarioDe"].ToString().ToEntero(); } set { ViewState["CveUsuarioDe"] = value; } }
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
protected void Page_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (!IsPostBack)
|
||||||
|
{
|
||||||
|
EsNuevo = true;
|
||||||
|
CargaTemas();
|
||||||
|
cargaUsuarios();
|
||||||
|
|
||||||
|
if (Request["CveEvento"] != null)
|
||||||
|
{
|
||||||
|
RCveEvento = Request["CveEvento"].ToString().ToEntero();
|
||||||
|
}
|
||||||
|
if (RCveEvento > 0)
|
||||||
|
{
|
||||||
|
EsNuevo = false;
|
||||||
|
LnkGuardar.Visible = false;
|
||||||
|
loadConvocatoria();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void CargaTemas()
|
||||||
|
{
|
||||||
|
DdlTema.DataSource = get_GlobalDTOIRevision(UsuarioActual.CveEmpresa).FiltraParametros(string.Format("CveUsuario = {0}", UsuarioActual.CveUsuario));
|
||||||
|
DdlTema.DataBind();
|
||||||
|
DdlTema.Items.Insert(0, new ListItem("Seleccione", "-1"));
|
||||||
|
|
||||||
|
}
|
||||||
|
private void cargaUsuarios()
|
||||||
|
{
|
||||||
|
string FiltroAD = "";
|
||||||
|
|
||||||
|
GVUsuariosB.DataSource = get_GlobalDTUsuarios().FiltraParametros(String.Format("CveEmpresa = {0} AND Estatus =1 {1}", UsuarioActual.CveEmpresa, FiltroAD), "Rol ASC");
|
||||||
|
GVUsuarios.DataSource = GVUsuariosB.DataSource;
|
||||||
|
DdlModera.DataSource = GVUsuariosB.DataSource;
|
||||||
|
DdlModerador.DataSource = GVUsuariosB.DataSource;
|
||||||
|
GVUsuariosB.DataBind();
|
||||||
|
DdlModerador.DataBind();
|
||||||
|
DdlModera.DataBind();
|
||||||
|
GVUsuarios.DataBind();
|
||||||
|
DdlModerador.SelectedValueExist(UsuarioActual.CveUsuario.ToString());
|
||||||
|
}
|
||||||
|
|
||||||
|
private void loadConvocatoria()
|
||||||
|
{
|
||||||
|
int CveEventoHijo = 0;
|
||||||
|
using (ClsOIEventos ObjOI_E = new ClsOIEventos())
|
||||||
|
{
|
||||||
|
|
||||||
|
if (ObjOI_E.GetEventos2(-1, UsuarioActual.CveEmpresa, RCveEvento) && ObjOI_E.DtResultados.Rows.Count > 0)
|
||||||
|
{
|
||||||
|
System.Data.DataRow drow = ObjOI_E.DtResultados.Rows[0];
|
||||||
|
CveEventoHijo = drow["CveEvento"].ToString().ToEntero();
|
||||||
|
}
|
||||||
|
if (ObjOI_E.GetEventos2(RCveEvento, UsuarioActual.CveEmpresa) && ObjOI_E.DtResultados.Rows.Count > 0)
|
||||||
|
{
|
||||||
|
System.Data.DataRow drow = ObjOI_E.DtResultados.Rows[0];
|
||||||
|
portletMiembros.Visible = false;
|
||||||
|
pnlmiembrosvista.Visible = true;
|
||||||
|
TxtAsunto.Text = drow["Asunto"].ToString();
|
||||||
|
TxtDescripcion.Text = drow["Descripcion"].ToString();
|
||||||
|
DdlPrioridad.SelectedValueExist(drow["Prioridad"].ToString());
|
||||||
|
txtFechaI.Text = string.Format("{0:dd/MM/yyyy HH:mm}", drow["FechaInicio"]);
|
||||||
|
txtFechaF.Text = string.Format("{0:dd/MM/yyyy HH:mm}", drow["FechaFin"]);
|
||||||
|
TxtLugar.Text = string.Format("{0}", drow["Lugar"]);
|
||||||
|
TxtCorreoExterno.Text = string.Format("{0}", drow["CorreoExterno"]);
|
||||||
|
TxtOrdendeldia.Text = string.Format("{0}", drow["Acuerdos"]).Replace("<", "< ");
|
||||||
|
DdlTema.SelectedValueExist(drow["CveRevision"].ToString());
|
||||||
|
int CveUsuarioIng = drow["CveUsuarioIng"].ToString().ToEntero();
|
||||||
|
CveUsuarioDe = drow["CveUsuarioDe"].ToString().ToEntero();
|
||||||
|
int CveEventoEstatus = drow["CveEventoEstatus"].ToString().ToEntero();
|
||||||
|
bool permisoeditar = UsuarioActual.CveUsuario == CveUsuarioDe || UsuarioActual.CveUsuario == CveUsuarioIng;
|
||||||
|
LnkIniciar.Visible = permisoeditar && (CveEventoHijo <0);
|
||||||
|
HypIrMinuta.Visible = (CveEventoHijo > 0);
|
||||||
|
HypIrMinuta.NavigateUrl = string.Format("/OI/MinutaDetalle.aspx?CveEvento={0}", CveEventoHijo);
|
||||||
|
TxtAsunto.Enabled = permisoeditar;
|
||||||
|
TxtDescripcion.Enabled = permisoeditar;
|
||||||
|
txtFechaI.Enabled = permisoeditar;
|
||||||
|
txtFechaF.Enabled = permisoeditar;
|
||||||
|
TxtLugar.Enabled = permisoeditar;
|
||||||
|
TxtCorreoExterno.Enabled = permisoeditar;
|
||||||
|
TxtOrdendeldia.Enabled = permisoeditar;
|
||||||
|
if (ObjOI_E.GetEventosUsuario2(RCveEvento, UsuarioActual.CveEmpresa))
|
||||||
|
{
|
||||||
|
LCveUsuarioCCP.Clear();
|
||||||
|
LcveuserVisto.Clear();
|
||||||
|
foreach (System.Data.DataRow item in ObjOI_E.DtResultados.Select("CveEvento >0"))
|
||||||
|
{
|
||||||
|
int CveUsuario = item["CveUsuario"].ToString().ToEntero();
|
||||||
|
LCveUsuarioCCP.Add(CveUsuario);
|
||||||
|
if (item["Visto"].ToString().ToEntero() == 1)
|
||||||
|
{
|
||||||
|
LcveuserVisto.Add(CveUsuario);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
SetUsuarios();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void SetUsuarios()
|
||||||
|
{
|
||||||
|
StringBuilder StrDeUser = new StringBuilder();
|
||||||
|
StringBuilder StrCCPara = new StringBuilder();
|
||||||
|
|
||||||
|
foreach (GridViewRow gvRow in GVUsuariosB.Rows)
|
||||||
|
{
|
||||||
|
|
||||||
|
if (gvRow.RowType == DataControlRowType.DataRow)
|
||||||
|
{
|
||||||
|
int CveUsuario = gvRow.DataKey("CveUsuario").ToString().ToEntero();
|
||||||
|
CheckBox chkCCpara = gvRow.FCCheckBox("ChkCCP");
|
||||||
|
chkCCpara.Checked = false;
|
||||||
|
|
||||||
|
if (EsNuevo)
|
||||||
|
{
|
||||||
|
chkCCpara.Enabled = true;
|
||||||
|
if (CveUsuario == UsuarioActual.CveUsuario)
|
||||||
|
{
|
||||||
|
chkCCpara.Checked = true;
|
||||||
|
chkCCpara.Enabled = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
|
||||||
|
chkCCpara.Enabled = false;
|
||||||
|
}
|
||||||
|
string palomitavisto = "";
|
||||||
|
string palomitasinver = "<i class=\"fa fa-check\" aria-hidden=\"true\"></i>";
|
||||||
|
if (CveUsuario == UsuarioActual.CveUsuario || CveUsuario.Contiene(LcveuserVisto.ToArray<int>()))
|
||||||
|
{
|
||||||
|
palomitavisto = palomitasinver;
|
||||||
|
palomitasinver = "";
|
||||||
|
}
|
||||||
|
if (CveUsuario == CveUsuarioDe)
|
||||||
|
{
|
||||||
|
chkCCpara.Checked = true;
|
||||||
|
StrDeUser.AppendFormat("{3}<span class=\"linkCorreo\" data-toggle=\"tooltip\" title=\"{1}\">{2}\"{0}\"</span>", gvRow.DataKey("Nombre").ToString(), gvRow.DataKey("Correo").ToString(), "", "");
|
||||||
|
|
||||||
|
}
|
||||||
|
else if (CveUsuario.Contiene(LCveUsuarioCCP.ToArray<int>()))
|
||||||
|
{
|
||||||
|
chkCCpara.Checked = true;
|
||||||
|
StrCCPara.AppendFormat("{3}<span class=\"linkCorreo cssnowrap\" data-toggle=\"tooltip\" title=\"{1}\">{2}\"{0}\"</span>; ", gvRow.DataKey("Nombre").ToString(), gvRow.DataKey("Correo").ToString(), "", "");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
LtlDeUser.Text = StrDeUser.ToString();
|
||||||
|
int longitud = StrCCPara.ToString().Length;
|
||||||
|
if (longitud > 0)
|
||||||
|
{
|
||||||
|
LtlCCPara.Text = StrCCPara.ToString().Substring(0, longitud - 1);
|
||||||
|
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
LtlCCPara.Text = "";
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void LnkUpUsuarios_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
this.RegistraScript(string.Format("$('#{0}').modal()", iddivAgregarMiembros));
|
||||||
|
LtlTituloUsuarios.Text = "Actualizar miembros";
|
||||||
|
BtnUpMiembros.Visible = true;
|
||||||
|
BtnReasignarTarea.Visible = false;
|
||||||
|
DdlModera.SelectedValueExist(CveUsuarioDe.ToString());
|
||||||
|
foreach (GridViewRow gvRow in GVUsuarios.Rows)
|
||||||
|
{
|
||||||
|
if (gvRow.RowType == DataControlRowType.DataRow)
|
||||||
|
{
|
||||||
|
int CveUsuario = gvRow.DataKey("CveUsuario").ToString().ToEntero();
|
||||||
|
CheckBox chkCCpara = gvRow.FCCheckBox("ChkCCP");
|
||||||
|
chkCCpara.Checked = false;
|
||||||
|
chkCCpara.Enabled = true;
|
||||||
|
|
||||||
|
|
||||||
|
if ( (CveUsuario == CveUsuarioDe))
|
||||||
|
{
|
||||||
|
if (CveUsuario == CveUsuarioDe)
|
||||||
|
{
|
||||||
|
chkCCpara.Checked = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (CveUsuario.Contiene(LCveUsuarioCCP.ToArray<int>()))
|
||||||
|
{
|
||||||
|
chkCCpara.Checked = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
UpUsuarios.Update();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void BtnUpMiembros_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
List<int> listaCCP = new List<int>();
|
||||||
|
int _cveUsuarioPara = -1;
|
||||||
|
|
||||||
|
foreach (GridViewRow gvRow in GVUsuarios.Rows)
|
||||||
|
{
|
||||||
|
if (gvRow.RowType == DataControlRowType.DataRow)
|
||||||
|
{
|
||||||
|
int CveUsuario = gvRow.DataKey("CveUsuario").ToString().ToEntero();
|
||||||
|
CheckBox chkCCpara = gvRow.FCCheckBox("ChkCCP");
|
||||||
|
if (chkCCpara.Checked)
|
||||||
|
{
|
||||||
|
listaCCP.Add(CveUsuario);
|
||||||
|
//cveUsuarioDe = CveUsuario;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
bool continuar = false;
|
||||||
|
using (ClsOIEventos oieve = new ClsOIEventos())
|
||||||
|
{
|
||||||
|
continuar = oieve.UpEventoMiembros(RCveEvento, _cveUsuarioPara, listaCCP, UsuarioActual.CveEmpresa, UsuarioActual.CveUsuario);
|
||||||
|
if (continuar)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (continuar)
|
||||||
|
{
|
||||||
|
LCveUsuarioCCP = listaCCP;
|
||||||
|
//this.CveUsuariode = _cveUsuarioPara;
|
||||||
|
SetUsuarios();
|
||||||
|
//Setpermisos();
|
||||||
|
}
|
||||||
|
UpContenido.Update();
|
||||||
|
this.RegistraScript(string.Format("$('#{0}').modal('hide')", iddivAgregarMiembros));
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void LnkAddTtemaModal_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
this.RegistraScript(string.Format("$('#{0}').modal()", iddivAgregarTema));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
protected void LnkGuardar_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
string errorMessage = "";
|
||||||
|
if (EsNuevo)
|
||||||
|
{
|
||||||
|
int cveUsuarioDe = DdlModerador.SelectedValue.ToEntero();
|
||||||
|
List<int> listaCCP = new List<int>();
|
||||||
|
int cveUsuarioPara = -1;
|
||||||
|
//string Nombrepara = "";
|
||||||
|
string Nombrede = "";
|
||||||
|
foreach (GridViewRow gvRow in GVUsuariosB.Rows)
|
||||||
|
{
|
||||||
|
if (gvRow.RowType == DataControlRowType.DataRow)
|
||||||
|
{
|
||||||
|
int CveUsuario = gvRow.DataKey("CveUsuario").ToString().ToEntero();
|
||||||
|
CheckBox chkCCpara = gvRow.FCCheckBox("ChkCCP");
|
||||||
|
if (CveUsuario == cveUsuarioDe)
|
||||||
|
{
|
||||||
|
Nombrede = gvRow.DataKey("Nombre").ToString();
|
||||||
|
}
|
||||||
|
if (chkCCpara.Checked)
|
||||||
|
{
|
||||||
|
listaCCP.Add(CveUsuario);
|
||||||
|
//cveUsuarioDe = CveUsuario;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
OITipoEventos cveTipoEvento = OITipoEventos.Convocatorias;
|
||||||
|
string asunto = TxtAsunto.Text;
|
||||||
|
string descripcion = TxtDescripcion.Text;
|
||||||
|
int prioridad = DdlPrioridad.SelectedValue.ToEntero();
|
||||||
|
string fechaInicio = "";
|
||||||
|
if (txtFechaI.Text.ToDateTimeExcat().Year <= 1999)
|
||||||
|
{
|
||||||
|
if (txtFechaI.Text.ToDateTimeExcat("dd/MM/yyyy").Year <= 1999)
|
||||||
|
{
|
||||||
|
errorMessage = "No se ingresó una fecha de inicio valida";
|
||||||
|
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
fechaInicio = txtFechaI.Text.ToDateTimeExcat("dd/MM/yyyy").ToString("yyyy/MM/dd HH:mm");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
fechaInicio = txtFechaI.Text.ToDateTimeExcat().ToString("yyyy/MM/dd HH:mm");
|
||||||
|
}
|
||||||
|
string fechaFin = "";
|
||||||
|
if (txtFechaF.Text.ToDateTimeExcat().Year <= 1999)
|
||||||
|
{
|
||||||
|
if (txtFechaF.Text.ToDateTimeExcat("dd/MM/yyyy").Year <= 1999)
|
||||||
|
{
|
||||||
|
errorMessage = "No se ingresó una fecha fin valida";
|
||||||
|
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
fechaFin = string.Format("{0:yyyy/MM/dd} 23:59", txtFechaF.Text.ToDateTimeExcat("dd/MM/yyyy"));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
fechaFin = txtFechaF.Text.ToDateTimeExcat().ToString("yyyy/MM/dd HH:mm");
|
||||||
|
}
|
||||||
|
int cveRevision = DdlTema.SelectedValue.ToEntero();
|
||||||
|
string archivoname = "";
|
||||||
|
string rutaarchivoOri = "";
|
||||||
|
|
||||||
|
|
||||||
|
int cveUsuarioIng = UsuarioActual.CveUsuario;
|
||||||
|
int cveEmpresa = UsuarioActual.CveEmpresa;
|
||||||
|
bool Continuar = false;
|
||||||
|
int Folio = -1;
|
||||||
|
int CveEvento = -1;
|
||||||
|
|
||||||
|
if (cveUsuarioDe <= 0)
|
||||||
|
{
|
||||||
|
errorMessage = "Asegúrese de seleccionar al menos un miembro \"C C Para\"";
|
||||||
|
}
|
||||||
|
|
||||||
|
if (errorMessage.Length == 0)
|
||||||
|
{
|
||||||
|
|
||||||
|
List<string> chkList = new List<string>();
|
||||||
|
using (ClsOIEventos objOI = new ClsOIEventos())
|
||||||
|
{
|
||||||
|
objOI.IniciaTransacSQL();
|
||||||
|
Continuar = objOI.AddOI_Eventos2(cveTipoEvento, asunto, descripcion, prioridad, cveUsuarioDe, cveUsuarioPara, fechaInicio, fechaFin, cveRevision, archivoname, listaCCP, chkList, cveUsuarioIng, cveEmpresa, CorreoExterno: TxtCorreoExterno.Text, Acuerdos: TxtOrdendeldia.Text.Replace("< ", "<"), Lugar: TxtLugar.Text);
|
||||||
|
|
||||||
|
CveEvento = objOI.CveEvento;
|
||||||
|
Folio = objOI.Folio;
|
||||||
|
if (CveEvento == 0)
|
||||||
|
{
|
||||||
|
Continuar = false;
|
||||||
|
}
|
||||||
|
if (Continuar)
|
||||||
|
{
|
||||||
|
objOI.Commit();
|
||||||
|
ObjEventosCorreo o = objOI.objCorreo;
|
||||||
|
//string mailbody = MailgetBodyNuevatarea(o.Folio, o.Link, o.Asunto, o.Descripcion, string.Format("{0:dd/MM/yyyy}", fechaInicio.ToDateTime()), string.Format("{0:HH:mm horas}", fechaInicio.ToDateTime()), string.Format("{0:dd/MM/yyyy}", fechaFin.ToDateTime()), string.Format("{0:HH:mm horas}", fechaFin.ToDateTime()), o.Prioridad, o.Tema, Nombrede, Nombrepara);
|
||||||
|
//EnviarCorreo(UsuarioActual.Empresa, o.AsuntoCorreo, mailbody, o.mailPara, "");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
objOI.RollBack();
|
||||||
|
Continuar = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (Continuar && CveEvento > 0)
|
||||||
|
{
|
||||||
|
if (rutaarchivoOri.Length > 0)
|
||||||
|
{
|
||||||
|
string ruta = string.Format("{0}OIFiles\\", UsuarioActual.Empresa.Ruta);
|
||||||
|
if (!System.IO.Directory.Exists(ruta))
|
||||||
|
{
|
||||||
|
System.IO.Directory.CreateDirectory(ruta);
|
||||||
|
}
|
||||||
|
ruta = string.Format("{0}{1}\\", ruta, Folio);
|
||||||
|
if (!System.IO.Directory.Exists(ruta))
|
||||||
|
{
|
||||||
|
System.IO.Directory.CreateDirectory(ruta);
|
||||||
|
}
|
||||||
|
ruta = string.Format("{0}{1}", ruta, archivoname);//, ArchivoExtencion);
|
||||||
|
System.IO.File.Move(rutaarchivoOri, ruta);
|
||||||
|
}
|
||||||
|
this.Alert("Se ha agregadó la nueva convocatoria", ModExtensiones.TipoMensaje.MsgInformacion, string.Format("location.replace(\"/OI/ConvocatoriaDetalle.aspx?CveEvento={0}\");", CveEvento));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
|
||||||
|
//string asunto = TxtAsunto.Text;
|
||||||
|
//string descripcion = TxtDescripcion.Text;
|
||||||
|
//int prioridad = DdlPrioridad.SelectedValue.ToEntero();
|
||||||
|
//string fechaInicio = "";
|
||||||
|
//if (txtFechaI.Text.ToDateTimeExcat().Year <= 1999)
|
||||||
|
//{
|
||||||
|
// if (txtFechaI.Text.ToDateTimeExcat("dd/MM/yyyy").Year <= 1999)
|
||||||
|
// {
|
||||||
|
// errorMessage = "No se ingresó una fecha de inicio valida";
|
||||||
|
|
||||||
|
// }
|
||||||
|
// else
|
||||||
|
// {
|
||||||
|
// fechaInicio = txtFechaI.Text.ToDateTimeExcat("dd/MM/yyyy").ToString("yyyy/MM/dd HH:mm");
|
||||||
|
// }
|
||||||
|
//}
|
||||||
|
//else
|
||||||
|
//{
|
||||||
|
// fechaInicio = txtFechaI.Text.ToDateTimeExcat().ToString("yyyy/MM/dd HH:mm");
|
||||||
|
//}
|
||||||
|
//string fechaFin = "";
|
||||||
|
//if (txtFechaF.Text.ToDateTimeExcat().Year <= 1999)
|
||||||
|
//{
|
||||||
|
// if (txtFechaF.Text.ToDateTimeExcat("dd/MM/yyyy").Year <= 1999)
|
||||||
|
// {
|
||||||
|
// errorMessage = "No se ingresó una fecha fin valida";
|
||||||
|
|
||||||
|
// }
|
||||||
|
// else
|
||||||
|
// {
|
||||||
|
// fechaFin = string.Format("{0:yyyy/MM/dd} 23:59", txtFechaF.Text.ToDateTimeExcat("dd/MM/yyyy"));
|
||||||
|
// }
|
||||||
|
//}
|
||||||
|
//else
|
||||||
|
//{
|
||||||
|
// fechaFin = txtFechaF.Text.ToDateTimeExcat().ToString("yyyy/MM/dd HH:mm");
|
||||||
|
//}
|
||||||
|
//int cveRevision = DdlTema.SelectedValue.ToEntero();
|
||||||
|
//bool Continuar = true;
|
||||||
|
//using (ClsOIEventos objOI = new ClsOIEventos())
|
||||||
|
//{
|
||||||
|
// objOI.IniciaTransacSQL();
|
||||||
|
// Continuar = objOI.UP_Eventos2(RCveEvento, asunto, descripcion, prioridad, fechaInicio, fechaFin, cveRevision, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa);
|
||||||
|
|
||||||
|
// if (Continuar)
|
||||||
|
// {
|
||||||
|
// objOI.Commit();
|
||||||
|
// string Nombrede = "";
|
||||||
|
// string Nombrepara = "";
|
||||||
|
// System.Data.DataTable dt = get_GlobalDTUsuarios(CveUsuario: CveUsuarioDe, CveEmpresa: UsuarioActual.CveEmpresa);
|
||||||
|
// if (dt.Rows.Count > 0)
|
||||||
|
// {
|
||||||
|
// Nombrede = dt.Rows[0]["Nombre"].ToString();
|
||||||
|
// }
|
||||||
|
// dt = get_GlobalDTUsuarios(CveUsuario: CveUsuarioDe, CveEmpresa: UsuarioActual.CveEmpresa);
|
||||||
|
// if (dt.Rows.Count > 0)
|
||||||
|
// {
|
||||||
|
// Nombrepara = dt.Rows[0]["Nombre"].ToString();
|
||||||
|
// }
|
||||||
|
// ObjEventosCorreo o = objOI.objCorreo;
|
||||||
|
// string mailbody = MailgetBodyNuevatarea(o.Folio, o.Link, o.Asunto, o.Descripcion, string.Format("{0:dd/MM/yyyy}", fechaInicio.ToDateTime()), string.Format("{0:HH:mm} horas", fechaInicio.ToDateTime()), string.Format("{0:dd/MM/yyyy}", fechaFin.ToDateTime()), string.Format("{0:HH:mm} horas", fechaFin.ToDateTime()), o.Prioridad, o.Tema, Nombrede, Nombrepara, "Tarea Actualizada");
|
||||||
|
// //string mailbody = MailgetBodyActualizartarea(o.Folio, o.Link, o.Asunto, o.Descripcion, o.Fechai, o.Fechaf, o.Prioridad, o.Tema);
|
||||||
|
// EnviarCorreo(UsuarioActual.Empresa, o.AsuntoCorreo, mailbody, o.mailPara, "");
|
||||||
|
// }
|
||||||
|
// else
|
||||||
|
// {
|
||||||
|
// objOI.RollBack();
|
||||||
|
// Continuar = false;
|
||||||
|
// }
|
||||||
|
//}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (errorMessage.Length > 0)
|
||||||
|
{
|
||||||
|
this.Alert(errorMessage, ModExtensiones.TipoMensaje.MsgAdvertencia);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
protected void BtnAgregarTema_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
using (ClsOIEventos objoi = new ClsOIEventos())
|
||||||
|
{
|
||||||
|
if (objoi.AddRevisionesEventos(TxtTema.Text.Trim(), UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa))
|
||||||
|
{
|
||||||
|
Alert(string.Format("El Tema \"{0}\" fue agregada con éxito.", TxtTema.Text.Trim()), ModExtensiones.TipoMensaje.MsgInformacion);
|
||||||
|
this.RegistraScript(string.Format("$('#{0}').modal('hide')", iddivAgregarTema));
|
||||||
|
TxtTema.Text = "";
|
||||||
|
set_GlobalDTOIRevision(-1, objoi.DtResultados);
|
||||||
|
CargaTemas();
|
||||||
|
UpContenido.Update();
|
||||||
|
}
|
||||||
|
else { Alert("Ocurrió un error al agregar la revisión. Por favor vuelva a intentar.", ModExtensiones.TipoMensaje.MsgError); }
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void GVUsuariosB_RowDataBound(object sender, GridViewRowEventArgs e)
|
||||||
|
{
|
||||||
|
if (e.Row.RowType == DataControlRowType.DataRow)
|
||||||
|
{
|
||||||
|
string CveRol = e.Row.DBCampo("CveRol");
|
||||||
|
string CveSubProyecto = e.Row.DBCampo("CveSubProyecto");
|
||||||
|
e.Row.CssClass = "items";
|
||||||
|
//e.Row.Attributes.Add("data-rol", CveRol);
|
||||||
|
//e.Row.Attributes.Add("data-sucursal", CveRol);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void GVUsuarios_RowDataBound(object sender, GridViewRowEventArgs e)
|
||||||
|
{
|
||||||
|
if (e.Row.RowType == DataControlRowType.DataRow)
|
||||||
|
{
|
||||||
|
string CveRol = e.Row.DBCampo("CveRol");
|
||||||
|
string CveSubProyecto = e.Row.DBCampo("CveSubProyecto");
|
||||||
|
e.Row.CssClass = "items";
|
||||||
|
//e.Row.Attributes.Add("data-rol", CveRol);
|
||||||
|
//e.Row.Attributes.Add("data-sucursal", CveRol);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void LnkIniciar_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
bool Continuar = false;
|
||||||
|
int CveEvento = -1;
|
||||||
|
int Folio = -1;
|
||||||
|
using (ClsOIEventos ObjOI_E = new ClsOIEventos())
|
||||||
|
{
|
||||||
|
if (ObjOI_E.GetEventos2(RCveEvento, UsuarioActual.CveEmpresa) && ObjOI_E.DtResultados.Rows.Count > 0)
|
||||||
|
{
|
||||||
|
System.Data.DataRow drow = ObjOI_E.DtResultados.Rows[0];
|
||||||
|
ObjOI_E.IniciaTransacSQL();
|
||||||
|
Continuar = ObjOI_E.AddOI_Eventos2(OITipoEventos.Minuta, drow["Asunto"].ToString(), drow["descripcion"].ToString(), drow["Prioridad"].ToString().ToEntero(), drow["cveUsuarioDe"].ToString().ToEntero(),
|
||||||
|
drow["cveUsuarioPara"].ToString().ToEntero(), string.Format("{0:yyyy/MM/dd HH:mm}", drow["fechaInicio"]),string.Format("{0:yyyy/MM/dd HH:mm}", drow["fechaFin"]), drow["cveRevision"].ToString().ToEntero(), "",
|
||||||
|
LCveUsuarioCCP, new List<string>(), UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CorreoExterno: drow["CorreoExterno"].ToString(), Lugar: drow["Lugar"].ToString(),CveEventoPadre:RCveEvento);
|
||||||
|
CveEvento = ObjOI_E.CveEvento;
|
||||||
|
Folio = ObjOI_E.Folio;
|
||||||
|
if (CveEvento == 0)
|
||||||
|
{
|
||||||
|
Continuar = false;
|
||||||
|
}
|
||||||
|
if (Continuar) { Continuar = ObjOI_E.UpdateEstatusEvento2(2, -1, RCveEvento, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa); }
|
||||||
|
if (Continuar)
|
||||||
|
{
|
||||||
|
ObjOI_E.Commit();
|
||||||
|
ObjEventosCorreo o = ObjOI_E.objCorreo;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ObjOI_E.RollBack();
|
||||||
|
Continuar = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (Continuar)
|
||||||
|
{
|
||||||
|
this.Alert("Se ha agregadó la nueva convocatoria", ModExtensiones.TipoMensaje.MsgInformacion, string.Format("location.replace(\"/OI/MinutaDetalle.aspx?CveEvento={0}\");", CveEvento));
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void BtnReasignarTarea_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -119,35 +119,31 @@
|
|||||||
<asp:RequiredFieldValidator ID="RfvDescripcion" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtDescripcion" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Descripción''</b> es necesario, por favor ingréselo." ValidationGroup="GrpTarea"></asp:RequiredFieldValidator>
|
<asp:RequiredFieldValidator ID="RfvDescripcion" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtDescripcion" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Descripción''</b> es necesario, por favor ingréselo." ValidationGroup="GrpTarea"></asp:RequiredFieldValidator>
|
||||||
<asp:Label runat="server" Text="Descripción" AssociatedControlID="TxtDescripcion"></asp:Label>
|
<asp:Label runat="server" Text="Descripción" AssociatedControlID="TxtDescripcion"></asp:Label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<asp:Panel ID="pnlmiembrosvista" Visible="false" runat="server">
|
||||||
|
<div class="pnlCorreo" style="margin-bottom: 5px;">
|
||||||
<asp:Panel ID="pnlmiembrosvista" Visible="false" runat="server">
|
<div class="headerCorreo ">
|
||||||
<div class="pnlCorreo" style="margin-bottom: 5px;">
|
<h3 class="panel-title ">Moderador:</h3>
|
||||||
<div class="headerCorreo ">
|
</div>
|
||||||
<h3 class="panel-title ">Moderador:</h3>
|
<div class="bodycorreos ">
|
||||||
|
<asp:Literal ID="LtlDeUser" runat="server"></asp:Literal>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="bodycorreos ">
|
<div class="pnlCorreo" style="margin-bottom: 5px;">
|
||||||
<asp:Literal ID="LtlDeUser" runat="server"></asp:Literal>
|
<div class="headerCorreo ">
|
||||||
|
<h3 class="panel-title ">Participantes:</h3>
|
||||||
|
</div>
|
||||||
|
<div class="bodycorreos ">
|
||||||
|
<asp:Literal ID="LtlCCPara" runat="server"></asp:Literal>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</asp:Panel>
|
||||||
<div class="pnlCorreo" style="margin-bottom: 5px;">
|
|
||||||
<div class="headerCorreo ">
|
|
||||||
<h3 class="panel-title ">Participantes:</h3>
|
|
||||||
</div>
|
|
||||||
<div class="bodycorreos ">
|
|
||||||
<asp:Literal ID="LtlCCPara" runat="server"></asp:Literal>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</asp:Panel>
|
|
||||||
|
|
||||||
<div class="form-group form-md-line-input">
|
<div class="form-group form-md-line-input">
|
||||||
<asp:TextBox ID="TxtCorreoExterno" runat="server" CssClass="form-control TxtCorreoExterno" CausesValidation="true" TextMode="MultiLine" Rows="2"></asp:TextBox>
|
<asp:TextBox ID="TxtCorreoExterno" runat="server" CssClass="form-control TxtCorreoExterno" CausesValidation="true" TextMode="MultiLine" Rows="2"></asp:TextBox>
|
||||||
<%--<asp:RequiredFieldValidator ID="RfvCorreoExterno" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtCorreoExterno" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Correo Externo''</b> es necesario, por favor ingréselo." ValidationGroup="GrpTarea"></asp:RequiredFieldValidator>--%>
|
<%--<asp:RequiredFieldValidator ID="RfvCorreoExterno" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtCorreoExterno" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Correo Externo''</b> es necesario, por favor ingréselo." ValidationGroup="GrpTarea"></asp:RequiredFieldValidator>--%>
|
||||||
<asp:Label runat="server" Text="Correos Externos" AssociatedControlID="TxtCorreoExterno"></asp:Label>
|
<asp:Label runat="server" Text="Correos Externos" AssociatedControlID="TxtCorreoExterno"></asp:Label>
|
||||||
</div>
|
</div>
|
||||||
</asp:Panel>
|
</div>
|
||||||
|
</asp:Panel>
|
||||||
|
|
||||||
<div class="text-center">
|
<div class="text-center">
|
||||||
<asp:LinkButton ID="LnkGuardar" runat="server" OnClick="LnkGuardar_Click" CssClass="btn btn-primary">Guardar</asp:LinkButton>
|
<asp:LinkButton ID="LnkGuardar" runat="server" OnClick="LnkGuardar_Click" CssClass="btn btn-primary">Guardar</asp:LinkButton>
|
||||||
<asp:LinkButton ID="LnkEnviarMinuta" Visible="false" runat="server" OnClick="LnkEnviarMinuta_Click" CssClass="btn btn-primary">Enviar Minuta</asp:LinkButton>
|
<asp:LinkButton ID="LnkEnviarMinuta" Visible="false" runat="server" OnClick="LnkEnviarMinuta_Click" CssClass="btn btn-primary">Enviar Minuta</asp:LinkButton>
|
||||||
@@ -742,7 +738,8 @@
|
|||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
setTimeout("autoGuardado()", 60000);
|
setTimeout("autoGuardado()", 60000);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
loaderinited = loaderinit;
|
||||||
//$('#btnAutoGuardado').click(function () {
|
//$('#btnAutoGuardado').click(function () {
|
||||||
function autoGuardado() {
|
function autoGuardado() {
|
||||||
|
|
||||||
@@ -980,48 +977,48 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function CargaPickers() {
|
//function CargaPickers() {
|
||||||
$.datetimepicker.setLocale('es');
|
// $.datetimepicker.setLocale('es');
|
||||||
$('input.ADDateTimePicker').each(function () {
|
// $('input.ADDateTimePicker').each(function () {
|
||||||
var TThis = $(this);
|
// var TThis = $(this);
|
||||||
TThis.datetimepicker({
|
// TThis.datetimepicker({
|
||||||
dayOfWeekStart: 1,
|
// dayOfWeekStart: 1,
|
||||||
lang: 'es',
|
// lang: 'es',
|
||||||
format: 'd/m/Y H:i',
|
// format: 'd/m/Y H:i',
|
||||||
formatDate: 'd/m/Y H:i',
|
// formatDate: 'd/m/Y H:i',
|
||||||
step: 30
|
// step: 30
|
||||||
});
|
// });
|
||||||
var Div = TThis.parent()
|
// var Div = TThis.parent()
|
||||||
var boton = document.createElement('span');
|
// var boton = document.createElement('span');
|
||||||
boton.className = "input-group-btn"
|
// boton.className = "input-group-btn"
|
||||||
|
|
||||||
var subboton = document.createElement('a')
|
// var subboton = document.createElement('a')
|
||||||
subboton.className = "btn default btnCalendar"
|
// subboton.className = "btn default btnCalendar"
|
||||||
subboton.innerHTML = "<i class='fa fa-calendar'></i>"
|
// subboton.innerHTML = "<i class='fa fa-calendar'></i>"
|
||||||
subboton.addEventListener('click', function () {
|
// subboton.addEventListener('click', function () {
|
||||||
TThis.datetimepicker('show')
|
// TThis.datetimepicker('show')
|
||||||
});
|
// });
|
||||||
boton.appendChild(subboton)
|
// boton.appendChild(subboton)
|
||||||
|
|
||||||
var agregar = true;
|
// var agregar = true;
|
||||||
for (var i = 0; i < Div[0].children.length; i++) {
|
// for (var i = 0; i < Div[0].children.length; i++) {
|
||||||
if (Div[0].children[i].isEqualNode(boton)) {
|
// if (Div[0].children[i].isEqualNode(boton)) {
|
||||||
agregar = false;
|
// agregar = false;
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
if (agregar) {
|
// if (agregar) {
|
||||||
Div[0].appendChild(boton);
|
// Div[0].appendChild(boton);
|
||||||
}
|
// }
|
||||||
//Div[0].appendChild(boton)
|
// //Div[0].appendChild(boton)
|
||||||
|
|
||||||
});
|
// });
|
||||||
|
|
||||||
|
|
||||||
}
|
//}
|
||||||
function ADSReady() {
|
function ADSReady() {
|
||||||
CargaPickers();
|
CargaPickers();
|
||||||
SetEditor();
|
SetEditor();
|
||||||
CargaPickers();
|
//CargaPickers();
|
||||||
loadeventos();
|
loadeventos();
|
||||||
showhideUser();
|
showhideUser();
|
||||||
setchecklist();
|
setchecklist();
|
||||||
|
|||||||
78
OI/RepReuniones.aspx
Normal file
78
OI/RepReuniones.aspx
Normal file
@@ -0,0 +1,78 @@
|
|||||||
|
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="RepReuniones.aspx.cs" Inherits="OI_RepReuniones" %>
|
||||||
|
|
||||||
|
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
||||||
|
</asp:Content>
|
||||||
|
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
||||||
|
</asp:Content>
|
||||||
|
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
||||||
|
</asp:Content>
|
||||||
|
<asp:Content ID="Content4" ContentPlaceHolderID="HB" runat="Server">
|
||||||
|
</asp:Content>
|
||||||
|
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
||||||
|
<li>
|
||||||
|
<asp:HyperLink runat="server" NavigateUrl="/OI/MinutaDetalle.aspx"><i class="fa fa-plus"></i>Nueva Minuta</asp:HyperLink>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<asp:HyperLink runat="server" NavigateUrl="/OI/ConvocatoriaDetalle.aspx"><i class="fa fa-plus"></i>Nueva Convocatoria</asp:HyperLink>
|
||||||
|
</li>
|
||||||
|
</asp:Content>
|
||||||
|
<asp:Content ID="Content6" ContentPlaceHolderID="HA" runat="Server">
|
||||||
|
</asp:Content>
|
||||||
|
<asp:Content ID="Content7" ContentPlaceHolderID="C" runat="Server">
|
||||||
|
|
||||||
|
<ajax:TabContainer ID="TabContenedor" runat="server" Width="100%">
|
||||||
|
|
||||||
|
<ajax:TabPanel ID="TabReuniones" runat="server">
|
||||||
|
<HeaderTemplate>
|
||||||
|
</HeaderTemplate>
|
||||||
|
<ContentTemplate>
|
||||||
|
|
||||||
|
<asp:GridView ID="GridView1" Width="100%" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontraron Registros" ShowHeaderWhenEmpty="true"
|
||||||
|
CssClass="table table-striped table-advance table-hover Widthall" GridLines="None">
|
||||||
|
<Columns>
|
||||||
|
<asp:BoundField HeaderText="Fecha" DataField="FechaInicio" />
|
||||||
|
<asp:BoundField HeaderText="Moderador" DataField="UsuarioDe" />
|
||||||
|
<asp:BoundField HeaderText="Tema" DataField="Revision" />
|
||||||
|
<asp:BoundField HeaderText="Lugar" />
|
||||||
|
<asp:TemplateField>
|
||||||
|
<ItemTemplate>
|
||||||
|
<%--<asp:Literal ID="LtlParticipantes" runat="server" Text='<%# Eval("Lugar")%>'></asp:Literal>--%>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
</Columns>
|
||||||
|
<AlternatingRowStyle CssClass="TextoAlterno" />
|
||||||
|
<RowStyle CssClass="Texto" />
|
||||||
|
</asp:GridView>
|
||||||
|
</ContentTemplate>
|
||||||
|
</ajax:TabPanel>
|
||||||
|
<ajax:TabPanel ID="TabMinutas" runat="server">
|
||||||
|
<HeaderTemplate>
|
||||||
|
</HeaderTemplate>
|
||||||
|
<ContentTemplate>
|
||||||
|
|
||||||
|
<asp:GridView ID="GvDatosOIMinutas" Width="100%" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontraron Registros" ShowHeaderWhenEmpty="true"
|
||||||
|
CssClass="table table-striped table-advance table-hover Widthall" GridLines="None">
|
||||||
|
<Columns>
|
||||||
|
<asp:BoundField HeaderText="Fecha" DataField="FechaInicio" />
|
||||||
|
<asp:BoundField HeaderText="Tema" DataField="Revision" />
|
||||||
|
<asp:BoundField HeaderText="Moderador" DataField="UsuarioDe" />
|
||||||
|
<asp:BoundField HeaderText="Estatus" DataField="EventoEstatus" />
|
||||||
|
<asp:BoundField HeaderText="Participantes" />
|
||||||
|
<asp:TemplateField>
|
||||||
|
<ItemTemplate>
|
||||||
|
<%--<asp:Literal ID="LtlParticipantes" runat="server" Text='<%# Eval("Participantes")%>'></asp:Literal>--%>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:BoundField HeaderText="Hora termino" DataField="FechaFin" DataFormatString="{0:HH:mm}" />
|
||||||
|
</Columns>
|
||||||
|
<AlternatingRowStyle CssClass="TextoAlterno" />
|
||||||
|
<RowStyle CssClass="Texto" />
|
||||||
|
</asp:GridView>
|
||||||
|
|
||||||
|
</ContentTemplate>
|
||||||
|
</ajax:TabPanel>
|
||||||
|
</ajax:TabContainer>
|
||||||
|
</asp:Content>
|
||||||
|
<asp:Content ID="Content8" ContentPlaceHolderID="JS" runat="Server">
|
||||||
|
</asp:Content>
|
||||||
|
|
||||||
14
OI/RepReuniones.aspx.cs
Normal file
14
OI/RepReuniones.aspx.cs
Normal file
@@ -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 OI_RepReuniones : ClsPaginas
|
||||||
|
{
|
||||||
|
protected void Page_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
91
OI/Tablero.aspx
Normal file
91
OI/Tablero.aspx
Normal file
@@ -0,0 +1,91 @@
|
|||||||
|
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="Tablero.aspx.cs" Inherits="OI_Tablero" %>
|
||||||
|
|
||||||
|
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
||||||
|
</asp:Content>
|
||||||
|
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
||||||
|
</asp:Content>
|
||||||
|
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
||||||
|
</asp:Content>
|
||||||
|
<asp:Content ID="Content4" ContentPlaceHolderID="HB" runat="Server">
|
||||||
|
</asp:Content>
|
||||||
|
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
||||||
|
|
||||||
|
<asp:UpdatePanel ID="UpAcciones" runat="server" UpdateMode="Conditional">
|
||||||
|
<ContentTemplate>
|
||||||
|
<li>
|
||||||
|
<asp:LinkButton ID="LnkTableros" OnClick="LnkTableros_Click" runat="server"><i class="fa fa-plus"></i> Agregar Tablero</asp:LinkButton></li>
|
||||||
|
</ContentTemplate>
|
||||||
|
</asp:UpdatePanel>
|
||||||
|
</asp:Content>
|
||||||
|
<asp:Content ID="Content6" ContentPlaceHolderID="HA" runat="Server">
|
||||||
|
</asp:Content>
|
||||||
|
<asp:Content ID="Content7" ContentPlaceHolderID="C" runat="Server">
|
||||||
|
<asp:UpdatePanel ID="UpContenido" runat="server" UpdateMode="Conditional">
|
||||||
|
<ContentTemplate>
|
||||||
|
<asp:GridView ID="GVTablero" runat="server" GridLines="None" CssClass="table table-hover table-striped ScrollAD Widthall" AutoGenerateColumns="False"
|
||||||
|
DataKeyNames="CveTablero,Tablero,CveUsuario,Usuario,FechaIng,CveUsuarioIng,Usuario1,CveEmpresa,Empresa">
|
||||||
|
<Columns>
|
||||||
|
<asp:TemplateField HeaderText="Tablero">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Label ID="lbltablero" runat="server" Text='<%# Eval("Tablero")%>'> </asp:Label>
|
||||||
|
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
|
||||||
|
<asp:TemplateField ItemStyle-Width="30px">
|
||||||
|
<ItemTemplate>
|
||||||
|
<%# Eval("CveTablero","<a href=\"/OI/TableroDetalle.aspx?CveTablero={0}\" class='btn btn-circle btn-sm blue'><i class='fa fa-info' ></i>r</a></a>")%>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField ItemStyle-Width="30px">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:LinkButton data-toggle="tooltip" title="Editar" ID="LnkEditar" OnClick="LnkEditarTabl_Click" CssClass="btn btn-circle btn-sm green" runat="server" Text="<i class='fa fa-pencil'></i>"></asp:LinkButton>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField ItemStyle-Width="40px">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:LinkButton ID="imgD" runat="server" OnClick="LnkEliminarTabl_Click" CssClass="btn btn-circle btn-sm red" Text="<i class='icon-trash'></i>" data-toggle="confirmation" data-popout="true" data-original-title="¿Está seguro que desea eliminar el Tablero?" data-btn-ok-label="si" />
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
</Columns>
|
||||||
|
</asp:GridView>
|
||||||
|
</ContentTemplate>
|
||||||
|
</asp:UpdatePanel>
|
||||||
|
<div id="DModalTablero" class="modal ADS fade" role="dialog">
|
||||||
|
<asp:UpdatePanel class="modal-dialog" runat="server" ID="UPModalTabl" UpdateMode="Conditional">
|
||||||
|
<ContentTemplate>
|
||||||
|
<div class="modal-content">
|
||||||
|
<div class="modal-header ">
|
||||||
|
<div class="modal-btn">
|
||||||
|
</div>
|
||||||
|
<h4 class="modal-title">
|
||||||
|
<asp:Literal ID="ltlTabltitulo" runat="server"> </asp:Literal></h4>
|
||||||
|
</div>
|
||||||
|
<div class="modal-body">
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:TextBox ID="TxtTabltablero" CssClass="form-control input-sm " runat="server"></asp:TextBox>
|
||||||
|
<asp:RequiredFieldValidator ID="RfvTabltablero" runat="server" ControlToValidate="TxtTabltablero" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Tablero''</b> es necesario, por favor ingréselo." ValidationGroup="VGMTabl"></asp:RequiredFieldValidator>
|
||||||
|
<asp:Label runat="server" Text="Tablero:" AssociatedControlID="TxtTabltablero"></asp:Label>
|
||||||
|
<ajax:ValidatorCalloutExtender ID="VcoTabltablero" runat="server" HighlightCssClass="vco" TargetControlID="RfvTabltablero"></ajax:ValidatorCalloutExtender>
|
||||||
|
</div>
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:DropDownList ID="DdlTablusuario" CssClass="form-control input-sm select2me " runat="server" DataTextField="Usuario" DataValueField="CveUsuario" Style="width: 100%"></asp:DropDownList>
|
||||||
|
<asp:Label runat="server" Text="Usuario:" AssociatedControlID="DdlTablusuario"></asp:Label>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="modal-footer ">
|
||||||
|
|
||||||
|
<asp:Button ID="BtnTablADD" OnClick="BtnTablADD_Click" runat="server" Text="Agregar" CssClass="btn btn-primary" ValidationGroup="VGMTabl" />
|
||||||
|
<asp:Button ID="BtnTablEdit" OnClick="BtnTablEdit_Click" runat="server" Text="Actualizar" CssClass="btn btn-primary" ValidationGroup="VGMTabl"></asp:Button>
|
||||||
|
<button type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</ContentTemplate>
|
||||||
|
</asp:UpdatePanel>
|
||||||
|
</div>
|
||||||
|
</asp:Content>
|
||||||
|
<asp:Content ID="Content8" ContentPlaceHolderID="JS" runat="Server">
|
||||||
|
</asp:Content>
|
||||||
|
|
||||||
134
OI/Tablero.aspx.cs
Normal file
134
OI/Tablero.aspx.cs
Normal file
@@ -0,0 +1,134 @@
|
|||||||
|
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_Tablero : ClsPaginas
|
||||||
|
{
|
||||||
|
|
||||||
|
#region Propiedades
|
||||||
|
private int RcveTablero
|
||||||
|
{
|
||||||
|
get { return (ViewState["RcveTablero"] == null) ? 0 : Convert.ToInt32(ViewState["RcveTablero"]); }
|
||||||
|
set { ViewState["RcveTablero"] = value; }
|
||||||
|
}
|
||||||
|
private int CcveTablero
|
||||||
|
{
|
||||||
|
get { return (ViewState["CcveTablero"] == null) ? 0 : Convert.ToInt32(ViewState["CcveTablero"]); }
|
||||||
|
set { ViewState["CcveTablero"] = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
protected void Page_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
if (!IsPostBack)
|
||||||
|
{
|
||||||
|
//RcveTablero = Request["cveTablero"] == null ? 0 : Request["cveTablero"].ToString().ToEntero();
|
||||||
|
|
||||||
|
CargaDDl();
|
||||||
|
CargaTablero();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void CargaTablero()
|
||||||
|
{
|
||||||
|
using (ClsOIEventos ObjTabl = new ClsOIEventos())
|
||||||
|
{
|
||||||
|
ObjTabl.GetTablero(-1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa);
|
||||||
|
GVTablero.DataSource = ObjTabl.DtResultados;
|
||||||
|
|
||||||
|
}
|
||||||
|
GVTablero.DataBind();
|
||||||
|
UpContenido.Update();
|
||||||
|
}
|
||||||
|
protected void CargaDDl()
|
||||||
|
{
|
||||||
|
DdlTablusuario.DataSource = get_GlobalDTUsuarios(CveEmpresa: UsuarioActual.CveEmpresa).FiltraParametros("Estatus =1 ", "Rol ASC");
|
||||||
|
DdlTablusuario.DataBind();
|
||||||
|
UPModalTabl.Update();
|
||||||
|
}
|
||||||
|
protected void LimpiaTablero()
|
||||||
|
{
|
||||||
|
TxtTabltablero.Text = "";
|
||||||
|
DdlTablusuario.SelectedValueExist( UsuarioActual.CveUsuario) ;
|
||||||
|
UPModalTabl.Update();
|
||||||
|
}
|
||||||
|
protected void LnkEditarTabl_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
LimpiaTablero();
|
||||||
|
GridViewRow gvRow = (GridViewRow)(((LinkButton)sender).NamingContainer);
|
||||||
|
CcveTablero = gvRow.DataKey("CveTablero").ToEntero();
|
||||||
|
string tablero = gvRow.DataKey("Tablero");
|
||||||
|
int cveUsuario = gvRow.DataKey("CveUsuario").ToEntero();
|
||||||
|
DateTime fechaIng = gvRow.DataKey("FechaIng").ToDateTime();
|
||||||
|
int cveUsuarioIng = gvRow.DataKey("CveUsuarioIng").ToEntero();
|
||||||
|
int cveEmpresa = gvRow.DataKey("CveEmpresa").ToEntero();
|
||||||
|
|
||||||
|
TxtTabltablero.Text = tablero.ToString();
|
||||||
|
DdlTablusuario.SelectedValueExist(cveUsuario.ToString());
|
||||||
|
this.RegistraScript("$('#DModalTablero').modal();");
|
||||||
|
BtnTablADD.Visible = false;
|
||||||
|
BtnTablEdit.Visible = true;
|
||||||
|
UPModalTabl.Update();
|
||||||
|
}
|
||||||
|
protected void BtnTablADD_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
string tablero = TxtTabltablero.Text;
|
||||||
|
int cveUsuario = DdlTablusuario.SelectedValue.ToEntero();
|
||||||
|
ClsOIEventos ObjTabl = new ClsOIEventos();
|
||||||
|
bool Continuar = ObjTabl.AddTablero(tablero, cveUsuario, UsuarioActual.CveUsuario , UsuarioActual.CveEmpresa);
|
||||||
|
ObjTabl.Dispose();
|
||||||
|
if (Continuar)
|
||||||
|
{
|
||||||
|
this.RegistraScript("$('#DModalTablero').modal('hide');");
|
||||||
|
LimpiaTablero();
|
||||||
|
CargaTablero();
|
||||||
|
UPModalTabl.Update();
|
||||||
|
this.Alert("El Tablero Se ha agregado");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
protected void BtnTablEdit_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
string tablero = TxtTabltablero.Text;
|
||||||
|
int cveUsuario = DdlTablusuario.SelectedValue.ToEntero();
|
||||||
|
ClsOIEventos ObjTabl = new ClsOIEventos();
|
||||||
|
bool Continuar = ObjTabl.UpTablero(CcveTablero, tablero, cveUsuario, UsuarioActual.CveEmpresa);
|
||||||
|
ObjTabl.Dispose();
|
||||||
|
if (Continuar)
|
||||||
|
{
|
||||||
|
this.RegistraScript("$('#DModalTablero').modal('hide');");
|
||||||
|
LimpiaTablero();
|
||||||
|
UPModalTabl.Update();
|
||||||
|
CargaTablero();
|
||||||
|
this.Alert("El Tablero Se ha actualizado");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
protected void LnkEliminarTabl_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
GridViewRow gvRow = (GridViewRow)(((LinkButton)sender).NamingContainer);
|
||||||
|
CcveTablero = gvRow.DataKey("CveTablero").ToEntero();
|
||||||
|
int cveUsuario = gvRow.DataKey("cveUsuario").ToEntero();
|
||||||
|
ClsOIEventos ObjTabl = new ClsOIEventos();
|
||||||
|
bool Continuar = ObjTabl.RemoveTablero(CcveTablero, cveUsuario, UsuarioActual.CveEmpresa);
|
||||||
|
ObjTabl.Dispose();
|
||||||
|
if (Continuar)
|
||||||
|
{
|
||||||
|
CargaTablero();
|
||||||
|
this.Alert("El Tablero Se ha Eliminado");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
protected void LnkTableros_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
this.RegistraScript("$('#DModalTablero').modal();");
|
||||||
|
LimpiaTablero();
|
||||||
|
BtnTablADD.Visible = true;
|
||||||
|
BtnTablEdit.Visible = false;
|
||||||
|
UPModalTabl.Update();
|
||||||
|
}
|
||||||
|
}
|
||||||
196
OI/TableroDetalle.aspx
Normal file
196
OI/TableroDetalle.aspx
Normal file
@@ -0,0 +1,196 @@
|
|||||||
|
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="TableroDetalle.aspx.cs" Inherits="OI_TableroDetalle" %>
|
||||||
|
|
||||||
|
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
||||||
|
</asp:Content>
|
||||||
|
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
||||||
|
<style>
|
||||||
|
.sortableList h4 {
|
||||||
|
background-color: #EEE;
|
||||||
|
margin: 0px;
|
||||||
|
padding-top: 10px;
|
||||||
|
padding-bottom: 10px;
|
||||||
|
text-align: center;
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sortableList {
|
||||||
|
border: 1px solid #eee;
|
||||||
|
width: 250px;
|
||||||
|
float: left;
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sortableList ul {
|
||||||
|
list-style-type: none;
|
||||||
|
min-height: 20px;
|
||||||
|
width: 250px;
|
||||||
|
padding: 5px 0 0 0;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sortableList ul li {
|
||||||
|
margin: 0 5px 5px 5px;
|
||||||
|
padding: 5px;
|
||||||
|
font-size: 1.2em;
|
||||||
|
/*width: 120px;*/
|
||||||
|
background-color: #fff;
|
||||||
|
border: 1px solid #cccccc;
|
||||||
|
position: relative;
|
||||||
|
padding: 7px 35px 7px 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sortableList ul li .btn.edit {
|
||||||
|
padding: 2px 4px;
|
||||||
|
position: absolute;
|
||||||
|
right: 5px;
|
||||||
|
top: 4px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</asp:Content>
|
||||||
|
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
||||||
|
<asp:Literal ID="LtlTituloTablero" runat="server"></asp:Literal>
|
||||||
|
</asp:Content>
|
||||||
|
<asp:Content ID="Content4" ContentPlaceHolderID="HB" runat="Server">
|
||||||
|
</asp:Content>
|
||||||
|
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
||||||
|
<asp:UpdatePanel ID="UpAcciones" runat="server" UpdateMode="Conditional">
|
||||||
|
<ContentTemplate>
|
||||||
|
<li>
|
||||||
|
<asp:LinkButton ID="LnkAgregarTableroLista" OnClick="LnkAgregarTabl_Click" runat="server"><i class="fa fa-plus"></i>Lista</asp:LinkButton></li>
|
||||||
|
</ContentTemplate>
|
||||||
|
</asp:UpdatePanel>
|
||||||
|
</asp:Content>
|
||||||
|
<asp:Content ID="Content6" ContentPlaceHolderID="HA" runat="Server">
|
||||||
|
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
|
||||||
|
<ContentTemplate>
|
||||||
|
</ContentTemplate>
|
||||||
|
</asp:UpdatePanel>
|
||||||
|
</asp:Content>
|
||||||
|
<asp:Content ID="Content7" ContentPlaceHolderID="C" runat="Server">
|
||||||
|
|
||||||
|
<asp:UpdatePanel ID="UpContenido" runat="server" UpdateMode="Conditional">
|
||||||
|
<ContentTemplate>
|
||||||
|
<asp:Button ID="BtnCargarDatos" OnClick="BtnCargarDatos_Click" CssClass="hidden BtnCargarDatos " runat="server"></asp:Button>
|
||||||
|
<asp:Repeater ID="RptrListas" OnItemDataBound="RptrListas_ItemDataBound" runat="server">
|
||||||
|
<ItemTemplate>
|
||||||
|
<div class="sortableList">
|
||||||
|
<h4><%#Eval("Lista") %></h4>
|
||||||
|
<ul class="connectedSortable " data-cvetablerolista='<%#Eval("CveTableroLista") %>'>
|
||||||
|
|
||||||
|
<asp:Repeater ID="RptTareas" runat="server">
|
||||||
|
<ItemTemplate>
|
||||||
|
<li id='<%#Eval("CveEvento","Evento_{0}") %>' data-cveevento='<%#Eval("CveEvento") %>' class="ui-state-default">
|
||||||
|
<%#Eval("Asunto") %> <a href='<%#Eval("CveEvento","/OI/TareaDetalle.aspx?CveEvento={0}") %>' target="_blank" class="btn btn-default edit"><i class="fa fa-pencil"></i></a>
|
||||||
|
</li>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:Repeater>
|
||||||
|
</ul>
|
||||||
|
<div class="text-center">
|
||||||
|
|
||||||
|
<%# String.Format("<a class=\"btn btn-default\" onclick=\"OpenModalNewTareaUserControl(1,-1,{{CveTableroLista:{0}}});\"> <i class=\"fa fa-plus\"'></i> </a>",Eval("CveTableroLista")) %>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:Repeater>
|
||||||
|
|
||||||
|
</ContentTemplate>
|
||||||
|
</asp:UpdatePanel>
|
||||||
|
<%--<div class="sortableList">
|
||||||
|
<h4>Lista de Pendientes</h4>
|
||||||
|
|
||||||
|
<ul class="connectedSortable ">
|
||||||
|
<li class="ui-state-default">Pendiente 1 <a onclick="console.log(x)" class="btn btn-default edit"><i class="fa fa-pencil"></i></a></li>
|
||||||
|
<li class="ui-state-default">Pendiente 2 <a onclick="console.log(x)" class="btn btn-default edit"><i class="fa fa-pencil"></i></a></li>
|
||||||
|
<li class="ui-state-default">Pendiente 3 <a onclick="console.log(x)" class="btn btn-default edit"><i class="fa fa-pencil"></i></a></li>
|
||||||
|
<li class="ui-state-default">Pendiente 4 <a onclick="console.log(x)" class="btn btn-default edit"><i class="fa fa-pencil"></i></a></li>
|
||||||
|
<li class="ui-state-default">Pendiente 5 <a onclick="console.log(x)" class="btn btn-default edit"><i class="fa fa-pencil"></i></a></li>
|
||||||
|
</ul>
|
||||||
|
<div class="text-center"><a onclick="console.log(x)" class="btn btn-default"><i class="fa fa-plus"></i></a></div>
|
||||||
|
</div>
|
||||||
|
<div class="sortableList">
|
||||||
|
<h4>Lista de Tareas</h4>
|
||||||
|
<ul class="connectedSortable">
|
||||||
|
<li class="ui-state-highlight">Tarea 1 <a onclick="console.log(x)" class="btn btn-default edit"><i class="fa fa-pencil"></i></a></li>
|
||||||
|
<li class="ui-state-highlight">Tarea 2 <a onclick="console.log(x)" class="btn btn-default edit"><i class="fa fa-pencil"></i></a></li>
|
||||||
|
<li class="ui-state-highlight">Tarea 3 <a onclick="console.log(x)" class="btn btn-default edit"><i class="fa fa-pencil"></i></a></li>
|
||||||
|
<li class="ui-state-highlight">Tarea 4 <a onclick="console.log(x)" class="btn btn-default edit"><i class="fa fa-pencil"></i></a></li>
|
||||||
|
<li class="ui-state-highlight">Tarea 5 <a onclick="console.log(x)" class="btn btn-default edit"><i class="fa fa-pencil"></i></a></li>
|
||||||
|
</ul>
|
||||||
|
<div class="text-center"><a onclick="console.log(x)" class="btn btn-default"><i class="fa fa-plus"></i></a></div>
|
||||||
|
</div>
|
||||||
|
<div class="sortableList">
|
||||||
|
<h4>Lista Nueva</h4>
|
||||||
|
<ul class="connectedSortable">
|
||||||
|
</ul>
|
||||||
|
<div class="text-center"><a onclick="console.log(x)" class="btn btn-default"><i class="fa fa-plus"></i></a></div>
|
||||||
|
</div>--%>
|
||||||
|
<UserControl:TareaNueva runat="server" id="TareaNueva" />
|
||||||
|
|
||||||
|
<div id="DModalTableroLista" class="modal ADS fade" role="dialog">
|
||||||
|
<asp:UpdatePanel class="modal-dialog" runat="server" ID="UPModalTabl" UpdateMode="Conditional">
|
||||||
|
<ContentTemplate>
|
||||||
|
<div class="modal-content">
|
||||||
|
<div class="modal-header ">
|
||||||
|
<div class="modal-btn">
|
||||||
|
</div>
|
||||||
|
<h4 class="modal-title">
|
||||||
|
<asp:Literal ID="ltlTabltitulo" runat="server">Agregar Lista </asp:Literal></h4>
|
||||||
|
</div>
|
||||||
|
<div class="modal-body">
|
||||||
|
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:TextBox ID="TxtTabllista" runat="server" CssClass="form-control " CausesValidation="true"></asp:TextBox>
|
||||||
|
<asp:RequiredFieldValidator ID="RfvTabllista" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtTabllista" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Asunto''</b> es necesario, por favor ingréselo." ValidationGroup="VGMTabl"></asp:RequiredFieldValidator>
|
||||||
|
<asp:Label runat="server" Text="Lista:" AssociatedControlID="TxtTabllista"></asp:Label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="modal-footer">
|
||||||
|
<asp:Button ID="BtnTablADD" OnClick="BtnTablADD_Click" runat="server" Text="Agregar" CssClass="btn btn-primary" ValidationGroup="VGMTabl" />
|
||||||
|
<asp:Button ID="BtnTablEdit" OnClick="BtnTablEdit_Click" runat="server" Text="Actualizar" CssClass="btn btn-primary" ValidationGroup="VGMTabl"></asp:Button>
|
||||||
|
<button type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</ContentTemplate>
|
||||||
|
</asp:UpdatePanel>
|
||||||
|
</div>
|
||||||
|
<asp:UpdatePanel runat="server" ID="Uppositionevento" UpdateMode="Conditional">
|
||||||
|
<ContentTemplate>
|
||||||
|
<asp:Button ID="BtnUpPosition" OnClick="BtnUpPosition_Click" runat="server" Text="Agregar" CssClass="btn btn-primary hidden BtnUpPosition" UseSubmitBehavior="false" ValidationGroup="VGMTablzxczxc" />
|
||||||
|
<asp:TextBox ID="Txtcvetablerolista" CssClass=" hidden Txtcvetablerolista" runat="server"></asp:TextBox><asp:TextBox ID="txtCveEvento" CssClass="txtCveEvento hidden" runat="server"></asp:TextBox>
|
||||||
|
</ContentTemplate>
|
||||||
|
</asp:UpdatePanel>
|
||||||
|
|
||||||
|
</asp:Content>
|
||||||
|
<asp:Content ID="Content8" ContentPlaceHolderID="JS" runat="Server">
|
||||||
|
<script>
|
||||||
|
|
||||||
|
function ADSReady() {
|
||||||
|
var cvetablerolistaold = 0;
|
||||||
|
var cvetablerolistanew = 0;
|
||||||
|
$(".sortableList ul:not(.withsorter)").sortable({
|
||||||
|
connectWith: ".connectedSortable",
|
||||||
|
change: function (event, ui) { },
|
||||||
|
start: function (event, ui) { cvetablerolistaold = $(event.srcElement).closest('ul').data('cvetablerolista'); },
|
||||||
|
stop: function (event, ui) {
|
||||||
|
setTimeout(function () {
|
||||||
|
cvetablerolistanew = $(event.srcElement).closest('ul').data('cvetablerolista');
|
||||||
|
let cveevento = $(event.srcElement).data('cveevento');
|
||||||
|
$('.Txtcvetablerolista').val(cvetablerolistanew);
|
||||||
|
$('.txtCveEvento').val(cveevento);
|
||||||
|
$('.BtnUpPosition').click();
|
||||||
|
}, 20);
|
||||||
|
}
|
||||||
|
}).disableSelection();
|
||||||
|
$(".sortableList ul").addClass('withsorter');
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<script> function OnAddedTareaNueva() {
|
||||||
|
setTimeout(function () {
|
||||||
|
$('.BtnCargarDatos').click();
|
||||||
|
}, 15);
|
||||||
|
}
|
||||||
|
|
||||||
|
</script>
|
||||||
|
</asp:Content>
|
||||||
|
|
||||||
172
OI/TableroDetalle.aspx.cs
Normal file
172
OI/TableroDetalle.aspx.cs
Normal file
@@ -0,0 +1,172 @@
|
|||||||
|
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_TableroDetalle : ClsPaginas
|
||||||
|
{
|
||||||
|
|
||||||
|
#region Propiedades
|
||||||
|
private int RcveTablero
|
||||||
|
{
|
||||||
|
get { return (ViewState["RcveTablero"] == null) ? 0 : Convert.ToInt32(ViewState["RcveTablero"]); }
|
||||||
|
set { ViewState["RcveTablero"] = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
private System.Data.DataTable DtDatos
|
||||||
|
{
|
||||||
|
get { return (ViewState["DtDatos"] == null) ? null : (System.Data.DataTable)ViewState["DtDatos"]; }
|
||||||
|
set { ViewState["DtDatos"] = value; }
|
||||||
|
}
|
||||||
|
private int CcveTableroLista
|
||||||
|
{
|
||||||
|
get { return (ViewState["CcveTableroLista"] == null) ? 0 : Convert.ToInt32(ViewState["CcveTableroLista"]); }
|
||||||
|
set { ViewState["CcveTableroLista"] = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
protected void Page_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
if (!IsPostBack)
|
||||||
|
{
|
||||||
|
RcveTablero = Request["cveTablero"] == null ? 0 : Request["cveTablero"].ToString().ToEntero();
|
||||||
|
|
||||||
|
|
||||||
|
if (RcveTablero > 0)
|
||||||
|
{
|
||||||
|
|
||||||
|
using (ClsOIEventos ObjTabl = new ClsOIEventos())
|
||||||
|
{
|
||||||
|
if (ObjTabl.GetTablero(RcveTablero, -1, UsuarioActual.CveEmpresa) && ObjTabl.DtResultados.Rows.Count > 0)
|
||||||
|
{
|
||||||
|
LtlTituloTablero.Text = string.Format("Tablero : {0}", ObjTabl.DtResultados.Rows[0]["Tablero"]);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
RcveTablero = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
CargaTableroLista();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
protected void CargaTableroLista()
|
||||||
|
{
|
||||||
|
using (ClsOIEventos ObjTabl = new ClsOIEventos())
|
||||||
|
{
|
||||||
|
if (ObjTabl.GetTableroListaTrello(RcveTablero))
|
||||||
|
{
|
||||||
|
DtDatos = ObjTabl.DtResultados;
|
||||||
|
RptrListas.DataSource = DtDatos.FiltraParametros("", "", new string[] { "CveTableroLista", "Lista" });
|
||||||
|
RptrListas.DataBind();
|
||||||
|
}
|
||||||
|
//GVTableroLista.DataSource = ObjTabl.DtResultados;
|
||||||
|
|
||||||
|
}
|
||||||
|
//GVTableroLista.DataBind();
|
||||||
|
UpContenido.Update();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void LimpiaTableroLista()
|
||||||
|
{
|
||||||
|
TxtTabllista.Text = "";
|
||||||
|
UPModalTabl.Update();
|
||||||
|
}
|
||||||
|
protected void LnkEditarTabl_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
LimpiaTableroLista();
|
||||||
|
GridViewRow gvRow = (GridViewRow)(((LinkButton)sender).NamingContainer);
|
||||||
|
CcveTableroLista = gvRow.DataKey("CveTableroLista").ToEntero();
|
||||||
|
int cveTablero = gvRow.DataKey("CveTablero").ToEntero();
|
||||||
|
string lista = gvRow.DataKey("Lista");
|
||||||
|
|
||||||
|
TxtTabllista.Text = lista.ToString();
|
||||||
|
this.RegistraScript("$('#DModalTableroLista').modal();");
|
||||||
|
BtnTablADD.Visible = false;
|
||||||
|
BtnTablEdit.Visible = true;
|
||||||
|
UPModalTabl.Update();
|
||||||
|
}
|
||||||
|
protected void LnkAgregarTabl_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
this.RegistraScript("$('#DModalTableroLista').modal();");
|
||||||
|
LimpiaTableroLista();
|
||||||
|
BtnTablADD.Visible = true;
|
||||||
|
BtnTablEdit.Visible = false;
|
||||||
|
UPModalTabl.Update();
|
||||||
|
}
|
||||||
|
protected void BtnTablADD_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
string lista = TxtTabllista.Text;
|
||||||
|
ClsOIEventos ObjTabl = new ClsOIEventos();
|
||||||
|
bool Continuar = ObjTabl.AddTableroLista(RcveTablero, lista, UsuarioActual.CveUsuario);
|
||||||
|
ObjTabl.Dispose();
|
||||||
|
if (Continuar)
|
||||||
|
{
|
||||||
|
this.RegistraScript("$('#DModalTableroLista').modal('hide');");
|
||||||
|
LimpiaTableroLista();
|
||||||
|
CargaTableroLista();
|
||||||
|
UPModalTabl.Update();
|
||||||
|
this.Alert("La Lista se ha agregadó",ModExtensiones.TipoMensaje.ToastInformacion);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
protected void BtnTablEdit_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
string lista = TxtTabllista.Text;
|
||||||
|
ClsOIEventos ObjTabl = new ClsOIEventos();
|
||||||
|
bool Continuar = ObjTabl.UpTableroLista(CcveTableroLista, lista);
|
||||||
|
ObjTabl.Dispose();
|
||||||
|
if (Continuar)
|
||||||
|
{
|
||||||
|
this.RegistraScript("$('#DModalTableroLista').modal('hide');");
|
||||||
|
LimpiaTableroLista();
|
||||||
|
UPModalTabl.Update();
|
||||||
|
CargaTableroLista();
|
||||||
|
this.Alert("La Lista Se ha actualizado");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
protected void LnkEliminarTabl_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
GridViewRow gvRow = (GridViewRow)(((LinkButton)sender).NamingContainer);
|
||||||
|
CcveTableroLista = gvRow.DataKey("CveTableroLista").ToEntero();
|
||||||
|
ClsOIEventos ObjTabl = new ClsOIEventos();
|
||||||
|
bool Continuar = ObjTabl.RemoveTableroLista(CcveTableroLista);
|
||||||
|
ObjTabl.Dispose();
|
||||||
|
if (Continuar)
|
||||||
|
{
|
||||||
|
CargaTableroLista();
|
||||||
|
this.Alert("El Tablero_Lista Se ha Eliminado");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//Dim item As DataRowView = DirectCast(e.Item.DataItem, DataRowView)
|
||||||
|
|
||||||
|
protected void RptrListas_ItemDataBound(object sender, RepeaterItemEventArgs e)
|
||||||
|
{
|
||||||
|
System.Data.DataRowView item = (System.Data.DataRowView)e.Item.DataItem;
|
||||||
|
string Lista = item["Lista"].ToString();
|
||||||
|
int CveTableroLista = item["CveTableroLista"].ToString().ToEntero();
|
||||||
|
|
||||||
|
Repeater RptTareas = (Repeater)e.Item.FindControl("RptTareas");
|
||||||
|
RptTareas.DataSource =DtDatos.FiltraParametros(string.Format("CveTableroLista={0} AND CveEvento>0", CveTableroLista));
|
||||||
|
RptTareas.DataBind();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void BtnCargarDatos_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
CargaTableroLista();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void BtnUpPosition_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
using (ClsOIEventos eveobj = new ClsOIEventos())
|
||||||
|
{
|
||||||
|
eveobj.UpEventoLista(Txtcvetablerolista.Text.ToEntero(), txtCveEvento.Text.ToEntero());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -161,11 +161,9 @@
|
|||||||
<li>
|
<li>
|
||||||
<asp:LinkButton ID="LnkUpVinculo" OnClick="LnkUpVinculo_Click" Visible="false" runat="server"><i class="fa fa-pencil"></i> Agregar Vinculo</asp:LinkButton></li>
|
<asp:LinkButton ID="LnkUpVinculo" OnClick="LnkUpVinculo_Click" Visible="false" runat="server"><i class="fa fa-pencil"></i> Agregar Vinculo</asp:LinkButton></li>
|
||||||
<li>
|
<li>
|
||||||
<asp:LinkButton ID="LnkPDF" OnClick="LnkPDF_Click" runat="server"><i class="fa fa-file-pdf-o" style="font-weight:bold;"></i> PDF</asp:LinkButton></li>
|
<asp:LinkButton ID="LnkEliminar" OnClick="LnkEliminar_Click" Visible="false" runat="server"><i class="fa fa-remove"></i> Eliminar</asp:LinkButton></li>
|
||||||
|
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
<Triggers>
|
|
||||||
<asp:PostBackTrigger ControlID="LnkPDF"/>
|
|
||||||
</Triggers>
|
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content6" ContentPlaceHolderID="HA" runat="Server">
|
<asp:Content ID="Content6" ContentPlaceHolderID="HA" runat="Server">
|
||||||
@@ -378,6 +376,10 @@
|
|||||||
<asp:TextBox ID="TxtUsuarioreg" Enabled="false" runat="server" CssClass="form-control" CausesValidation="true"></asp:TextBox>
|
<asp:TextBox ID="TxtUsuarioreg" Enabled="false" runat="server" CssClass="form-control" CausesValidation="true"></asp:TextBox>
|
||||||
<asp:Label runat="server" Text="Registró" AssociatedControlID="TxtUsuarioreg"></asp:Label>
|
<asp:Label runat="server" Text="Registró" AssociatedControlID="TxtUsuarioreg"></asp:Label>
|
||||||
</div>
|
</div>
|
||||||
|
<asp:Panel ID="pnlfecharealtermino" runat="server" Visible="false" CssClass="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:TextBox ID="TxtFechaRealTermino" Enabled="false" runat="server" CssClass="form-control" CausesValidation="true"></asp:TextBox>
|
||||||
|
<asp:Label runat="server" Text="Fecha Real Terminó" AssociatedControlID="TxtFechaIng"></asp:Label>
|
||||||
|
</asp:Panel>
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</div>
|
</div>
|
||||||
@@ -645,16 +647,17 @@
|
|||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span> </button>
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span> </button>
|
||||||
<h4 class="modal-title" style="text-align: left">
|
<h4 class="modal-title" style="text-align: left">
|
||||||
<asp:Literal ID="Literal2" runat="server">Agregar Actividad</asp:Literal></h4>
|
<asp:Literal ID="Literal2" runat="server">Agregar Tema</asp:Literal></h4>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<div class="form-group form-md-line-input">
|
<div class="form-group form-md-line-input">
|
||||||
<asp:TextBox ID="TxtTema" runat="server" CssClass="form-control" CausesValidation="true" TextMode="MultiLine" Rows="1"></asp:TextBox>
|
<asp:TextBox ID="TxtTema" runat="server" CssClass="form-control" CausesValidation="true" TextMode="MultiLine" Rows="1"></asp:TextBox>
|
||||||
|
<asp:RequiredFieldValidator ID="RfvTxtTema" runat="server" ControlToValidate="TxtTema" Display="None" ErrorMessage="El campo <b>''Tema''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="VGMAddTemaTN"></asp:RequiredFieldValidator>
|
||||||
<asp:Label runat="server" Text="Tema" AssociatedControlID="TxtTema"></asp:Label>
|
<asp:Label runat="server" Text="Tema" AssociatedControlID="TxtTema"></asp:Label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<asp:LinkButton ID="BtnAgregarTema" OnClick="BtnAgregarTema_Click" CssClass="btn btn-primary" runat="server">Agregar</asp:LinkButton>
|
<asp:LinkButton ID="BtnAgregarTema" OnClick="BtnAgregarTema_Click" CssClass="btn btn-primary" ValidationGroup="VGMAddTemaTN" runat="server">Agregar</asp:LinkButton>
|
||||||
<button data-dismiss="modal" class="btn btn-danger">Cancelar</button>
|
<button data-dismiss="modal" class="btn btn-danger">Cancelar</button>
|
||||||
</div>
|
</div>
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
@@ -737,7 +740,7 @@
|
|||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span> </button>
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span> </button>
|
||||||
<h4 class="modal-title" style="text-align: left">
|
<h4 class="modal-title" style="text-align: left">
|
||||||
<asp:Literal ID="Literal4" runat="server">Cambiar Estatus</asp:Literal></h4>
|
<asp:Literal ID="Literal4" runat="server">Agregar relación</asp:Literal></h4>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<div class="form-group form-md-line-input">
|
<div class="form-group form-md-line-input">
|
||||||
@@ -752,14 +755,13 @@
|
|||||||
</div>
|
</div>
|
||||||
<asp:Panel ID="PnlActivoFijo" Visible="false" runat="server">
|
<asp:Panel ID="PnlActivoFijo" Visible="false" runat="server">
|
||||||
|
|
||||||
<asp:GridView ID="GvAF" runat="server" AutoGenerateColumns="False" EmptyDataText="No se Encontró Activo Fijo Registrado" ToolTip="Listado de Activos Fijos"
|
<%-- <asp:GridView ID="GvAF" runat="server" AutoGenerateColumns="False" EmptyDataText="No se Encontró Activo Fijo Registrado" ToolTip="Listado de Activos Fijos"
|
||||||
CssClass="table table-smallpadding Widthall" DataKeyNames="CveActivoFijo,Codigo" GridLines="None">
|
CssClass="table table-smallpadding Widthall" DataKeyNames="CveActivoFijo,Codigo" GridLines="None">
|
||||||
<Columns>
|
<Columns>
|
||||||
<asp:TemplateField HeaderText="Código">
|
<asp:TemplateField HeaderText="Código">
|
||||||
<ItemStyle Width="70px" />
|
<ItemStyle Width="70px" />
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:LinkButton ID="LnkUpVinculoAF" OnClick="LnkUpVinculoAF_Click" Text='<%# Eval("Codigo") %>' runat="server"></asp:LinkButton>
|
<asp:LinkButton ID="LnkUpVinculoAF" OnClick="LnkUpVinculoAF_Click" Text='<%# Eval("Codigo") %>' runat="server"></asp:LinkButton>
|
||||||
<%--<asp:HyperLink ID="Hpl" runat="server" Text='<%# Eval("Codigo") %>' NavigateUrl='<%# Eval("CveActivoFijo", "/AF/AF.aspx?CveActivoFijo={0}")%>'></asp:HyperLink>--%>
|
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<asp:TemplateField HeaderText="Descripción">
|
<asp:TemplateField HeaderText="Descripción">
|
||||||
@@ -824,18 +826,21 @@
|
|||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
|
|
||||||
</Columns>
|
</Columns>
|
||||||
</asp:GridView>
|
</asp:GridView>--%>
|
||||||
</asp:Panel>
|
</asp:Panel>
|
||||||
|
|
||||||
<asp:Panel ID="PnlCliente" runat="server">
|
<asp:Panel ID="PnlCliente" Visible="false" runat="server">
|
||||||
|
|
||||||
<asp:GridView ID="GvClientes" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontraron Clientes registrados"
|
<div class="form-group form-md-line-input">
|
||||||
|
<ADS:Dropdownlost ID="DdlCliente" UsaWebService="true" runat="server" CssStyle="width: 100%;" DataTextField="NombreComercial" DataValueField="CveCliente" CssClass="form-control"></ADS:Dropdownlost>
|
||||||
|
<asp:Label runat="server" AssociatedControlID="DdlCliente">Cliente:</asp:Label>
|
||||||
|
</div>
|
||||||
|
<%-- <asp:GridView ID="GvClientes" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontraron Clientes registrados"
|
||||||
ShowHeader="true" CssClass="table table-striped table-advance table-hover Widthall ScrollAD " data-sort="true" BorderWidth="1" BorderColor="#D3D3D3" GridLines="None">
|
ShowHeader="true" CssClass="table table-striped table-advance table-hover Widthall ScrollAD " data-sort="true" BorderWidth="1" BorderColor="#D3D3D3" GridLines="None">
|
||||||
<Columns>
|
<Columns>
|
||||||
<asp:TemplateField HeaderText="RFC" ItemStyle-Width="100">
|
<asp:TemplateField HeaderText="RFC" ItemStyle-Width="100">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:LinkButton ID="LnkUpVinculoCliente" OnClick="LnkUpVinculoCliente_Click" Text='<%# Eval("RFC") %>' runat="server"></asp:LinkButton>
|
<asp:LinkButton ID="LnkUpVinculoCliente" OnClick="LnkUpVinculoCliente_Click" Text='<%# Eval("RFC") %>' runat="server"></asp:LinkButton>
|
||||||
<%--<asp:Literal ID="LtlRFC" runat="server" Text='<%# Eval("RFC") %>'></asp:Literal>--%>
|
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<asp:TemplateField Visible="true" ItemStyle-Width="100" HeaderText="Código">
|
<asp:TemplateField Visible="true" ItemStyle-Width="100" HeaderText="Código">
|
||||||
@@ -882,15 +887,26 @@
|
|||||||
<RowStyle CssClass="Texto" />
|
<RowStyle CssClass="Texto" />
|
||||||
<AlternatingRowStyle CssClass="TextoAlterno" />
|
<AlternatingRowStyle CssClass="TextoAlterno" />
|
||||||
<HeaderStyle CssClass="Titulos" />
|
<HeaderStyle CssClass="Titulos" />
|
||||||
</asp:GridView>
|
</asp:GridView>--%>
|
||||||
</asp:Panel>
|
</asp:Panel>
|
||||||
<asp:Panel ID="PnlPersonal" runat="server">
|
<asp:Panel ID="PnlPersonal" Visible="false" runat="server">
|
||||||
|
|
||||||
|
<div class="form-group form-md-line-input">
|
||||||
|
<asp:DropDownList ID="DdlPersonal" runat="server" AppendDataBoundItems="true" DataTextField="NombreCompleto" DataValueField="CvePersonal" CssClass="form-control input-sm input-medium select2me" Width="100%"></asp:DropDownList>
|
||||||
|
<asp:Label runat="server" AssociatedControlID="DdlPersonal">Personal:</asp:Label>
|
||||||
|
</div>
|
||||||
</asp:Panel>
|
</asp:Panel>
|
||||||
<asp:Panel ID="PnlProveedor" runat="server">
|
<asp:Panel ID="PnlProveedor" Visible="false" runat="server">
|
||||||
|
|
||||||
|
<div class="form-group form-md-line-input">
|
||||||
|
<ADS:Dropdownlost ID="DdlProveedores" UsaWebService="true" runat="server" CssStyle="width: 100%;" DataTextField="RazonSocial" DataValueField="CveProveedor" CssClass="form-control"></ADS:Dropdownlost>
|
||||||
|
<asp:Label runat="server" AssociatedControlID="DdlProveedores">Proveedores:</asp:Label>
|
||||||
|
</div>
|
||||||
</asp:Panel>
|
</asp:Panel>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
|
<asp:LinkButton ID="LnkUpRelacion" OnClick="LnkUpRelacion_Click" runat="server">Actualizar</asp:LinkButton>
|
||||||
<%--<asp:LinkButton ID="LinkButton1" OnClick="BtnCambiarEstatus_Click" CssClass="btn btn-primary" ValidationGroup="GrpTarea" runat="server">Guardar</asp:LinkButton>--%>
|
<%--<asp:LinkButton ID="LinkButton1" OnClick="BtnCambiarEstatus_Click" CssClass="btn btn-primary" ValidationGroup="GrpTarea" runat="server">Guardar</asp:LinkButton>--%>
|
||||||
<button data-dismiss="modal" class="btn btn-danger">Cancelar</button>
|
<button data-dismiss="modal" class="btn btn-danger">Cancelar</button>
|
||||||
</div>
|
</div>
|
||||||
@@ -1159,5 +1175,6 @@
|
|||||||
//$('.GVUsuarios input[type="checkbox"]:not(.setclass)').addClass('icheck setclass');
|
//$('.GVUsuarios input[type="checkbox"]:not(.setclass)').addClass('icheck setclass');
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -198,6 +198,7 @@
|
|||||||
<asp:TextBox ID="TxtCveContrato" CssClass="hidden TxtTareaNuevaCveContrato" runat="server"></asp:TextBox>
|
<asp:TextBox ID="TxtCveContrato" CssClass="hidden TxtTareaNuevaCveContrato" runat="server"></asp:TextBox>
|
||||||
<asp:TextBox ID="TxtCveSubProyecto" CssClass="hidden TxtTareaNuevaCveSubProyecto" runat="server"></asp:TextBox>
|
<asp:TextBox ID="TxtCveSubProyecto" CssClass="hidden TxtTareaNuevaCveSubProyecto" runat="server"></asp:TextBox>
|
||||||
<asp:TextBox ID="TxtCveMovimientoAlmacen" CssClass="hidden TxtTareaNuevaCveMovimientoAlmacen" runat="server"></asp:TextBox>
|
<asp:TextBox ID="TxtCveMovimientoAlmacen" CssClass="hidden TxtTareaNuevaCveMovimientoAlmacen" runat="server"></asp:TextBox>
|
||||||
|
<asp:TextBox ID="TxtCveTableroLista" CssClass="hidden TxtTareaNuevaCveTableroLista" runat="server"></asp:TextBox>
|
||||||
|
|
||||||
<asp:Button ID="BtnopenmodalConPadre" OnClick="BtnopenmodalConPadre_Click" CssClass="hidden BtnopenmodalConPadre" UseSubmitBehavior="false" runat="server" Text="Button" />
|
<asp:Button ID="BtnopenmodalConPadre" OnClick="BtnopenmodalConPadre_Click" CssClass="hidden BtnopenmodalConPadre" UseSubmitBehavior="false" runat="server" Text="Button" />
|
||||||
</asp:Panel>
|
</asp:Panel>
|
||||||
@@ -218,16 +219,17 @@
|
|||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span> </button>
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span> </button>
|
||||||
<h4 class="modal-title" style="text-align: left">
|
<h4 class="modal-title" style="text-align: left">
|
||||||
<asp:Literal ID="Literal2" runat="server">Agregar Actividad</asp:Literal></h4>
|
<asp:Literal ID="Literal2" runat="server">Agregar Tema</asp:Literal></h4>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<div class="form-group form-md-line-input">
|
<div class="form-group form-md-line-input">
|
||||||
<asp:TextBox ID="TxtTema" runat="server" CssClass="form-control" CausesValidation="true" TextMode="MultiLine" Rows="1"></asp:TextBox>
|
<asp:TextBox ID="TxtTema" runat="server" CssClass="form-control" CausesValidation="true" TextMode="MultiLine" Rows="1"></asp:TextBox>
|
||||||
|
<asp:RequiredFieldValidator ID="RfvTxtTema" runat="server" ControlToValidate="TxtTema" Display="None" ErrorMessage="El campo <b>''Tema''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="VGMAddTemaTN"></asp:RequiredFieldValidator>
|
||||||
<asp:Label runat="server" Text="Tema" AssociatedControlID="TxtTema"></asp:Label>
|
<asp:Label runat="server" Text="Tema" AssociatedControlID="TxtTema"></asp:Label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<asp:LinkButton ID="BtnAgregarTema" OnClick="BtnAgregarTema_Click" CssClass="btn btn-primary" runat="server">Agregar</asp:LinkButton>
|
<asp:LinkButton ID="BtnAgregarTema" OnClick="BtnAgregarTema_Click" CssClass="btn btn-primary" ValidationGroup="VGMAddTemaTN" runat="server">Agregar</asp:LinkButton>
|
||||||
<button data-dismiss="modal" class="btn btn-danger">Cancelar</button>
|
<button data-dismiss="modal" class="btn btn-danger">Cancelar</button>
|
||||||
</div>
|
</div>
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
@@ -255,6 +257,7 @@
|
|||||||
$('.TxtTareaNuevaCveContrato').val(obji.CveContrato);
|
$('.TxtTareaNuevaCveContrato').val(obji.CveContrato);
|
||||||
$('.TxtTareaNuevaCveSubProyecto').val(obji.CveSubProyecto);
|
$('.TxtTareaNuevaCveSubProyecto').val(obji.CveSubProyecto);
|
||||||
$('.TxtTareaNuevaCveMovimientoAlmacen').val(obji.CveMovimientoAlmacen);
|
$('.TxtTareaNuevaCveMovimientoAlmacen').val(obji.CveMovimientoAlmacen);
|
||||||
|
$('.TxtTareaNuevaCveTableroLista').val(obji.CveTableroLista);
|
||||||
//alert(obji.CveCliente);
|
//alert(obji.CveCliente);
|
||||||
//$('#iddivAgregarTarea').modal();
|
//$('#iddivAgregarTarea').modal();
|
||||||
$('.BtnopenmodalConPadre').click();
|
$('.BtnopenmodalConPadre').click();
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ public partial class UserControl_TareaNueva : System.Web.UI.UserControl
|
|||||||
public Usuario UsuarioActual { get { if (Context.Session["UsuarioSIG"] == null) { return null; } else { return (Usuario)Context.Session["UsuarioSIG"]; } } }
|
public Usuario UsuarioActual { get { if (Context.Session["UsuarioSIG"] == null) { return null; } else { return (Usuario)Context.Session["UsuarioSIG"]; } } }
|
||||||
public int CveEventoPadre { get { return ViewState["CveEventoPadre"] != null ? ViewState["CveEventoPadre"].ToString().ToEntero() : 0; } set { ViewState["CveEventoPadre"] = value; } }
|
public int CveEventoPadre { get { return ViewState["CveEventoPadre"] != null ? ViewState["CveEventoPadre"].ToString().ToEntero() : 0; } set { ViewState["CveEventoPadre"] = value; } }
|
||||||
public OITipoEventos cveTipoEvento { get { return ViewState["cveTipoEvento"] != null ? (OITipoEventos)ViewState["cveTipoEvento"] : OITipoEventos.Tarea; } set { ViewState["cveTipoEvento"] = value; } }
|
public OITipoEventos cveTipoEvento { get { return ViewState["cveTipoEvento"] != null ? (OITipoEventos)ViewState["cveTipoEvento"] : OITipoEventos.Tarea; } set { ViewState["cveTipoEvento"] = value; } }
|
||||||
|
|
||||||
//OITipoEventos cveTipoEvento = OITipoEventos.Tarea;
|
//OITipoEventos cveTipoEvento = OITipoEventos.Tarea;
|
||||||
public bool Ismodal { get { return ViewState["Ismodal"] != null ? (bool)ViewState["Ismodal"] : true; } set { ViewState["Ismodal"] = value; } }
|
public bool Ismodal { get { return ViewState["Ismodal"] != null ? (bool)ViewState["Ismodal"] : true; } set { ViewState["Ismodal"] = value; } }
|
||||||
public string OnAddedTareaNueva { get { return ViewState["OnAddedTareaNueva"] != null ? ViewState["OnAddedTareaNueva"].ToString() : "OnAddedTareaNueva"; } set { ViewState["OnAddedTareaNueva"] = value; } }
|
public string OnAddedTareaNueva { get { return ViewState["OnAddedTareaNueva"] != null ? ViewState["OnAddedTareaNueva"].ToString() : "OnAddedTareaNueva"; } set { ViewState["OnAddedTareaNueva"] = value; } }
|
||||||
@@ -113,6 +113,7 @@ public partial class UserControl_TareaNueva : System.Web.UI.UserControl
|
|||||||
TxtCveContrato.Text = TxtCveContrato.Text.ToEntero() > 0 ? TxtCveContrato.Text : "-1";
|
TxtCveContrato.Text = TxtCveContrato.Text.ToEntero() > 0 ? TxtCveContrato.Text : "-1";
|
||||||
TxtCveSubProyecto.Text = TxtCveSubProyecto.Text.ToEntero() > 0 ? TxtCveSubProyecto.Text : "-1";
|
TxtCveSubProyecto.Text = TxtCveSubProyecto.Text.ToEntero() > 0 ? TxtCveSubProyecto.Text : "-1";
|
||||||
TxtCveMovimientoAlmacen.Text = TxtCveMovimientoAlmacen.Text.ToEntero() > 0 ? TxtCveMovimientoAlmacen.Text : "-1";
|
TxtCveMovimientoAlmacen.Text = TxtCveMovimientoAlmacen.Text.ToEntero() > 0 ? TxtCveMovimientoAlmacen.Text : "-1";
|
||||||
|
TxtCveTableroLista.Text = TxtCveTableroLista.Text.ToEntero() > 0 ? TxtCveTableroLista.Text : "-1";
|
||||||
|
|
||||||
int cveUsuarioDe = UsuarioActual.CveUsuario;
|
int cveUsuarioDe = UsuarioActual.CveUsuario;
|
||||||
List<int> listaCCP = new List<int>();
|
List<int> listaCCP = new List<int>();
|
||||||
@@ -210,7 +211,7 @@ public partial class UserControl_TareaNueva : System.Web.UI.UserControl
|
|||||||
CveIE: TxtCveIE.Text.ToEntero(), CveProspecto: TxtCveProspecto.Text.ToEntero(), CveCliente: TxtCveCliente.Text.ToEntero(),
|
CveIE: TxtCveIE.Text.ToEntero(), CveProspecto: TxtCveProspecto.Text.ToEntero(), CveCliente: TxtCveCliente.Text.ToEntero(),
|
||||||
CveOS: TxtCveOS.Text.ToEntero(), CveOC: TxtCveOC.Text.ToEntero(), CvePersonal: TxtCvePersonal.Text.ToEntero(),
|
CveOS: TxtCveOS.Text.ToEntero(), CveOC: TxtCveOC.Text.ToEntero(), CvePersonal: TxtCvePersonal.Text.ToEntero(),
|
||||||
CveProveedor: TxtCveProveedor.Text.ToEntero(), CveCompra: TxtCveCompra.Text.ToEntero(), CveVenta: TxtCveVenta.Text.ToEntero(),
|
CveProveedor: TxtCveProveedor.Text.ToEntero(), CveCompra: TxtCveCompra.Text.ToEntero(), CveVenta: TxtCveVenta.Text.ToEntero(),
|
||||||
CveContrato: TxtCveContrato.Text.ToEntero(), CveSubProyecto: TxtCveSubProyecto.Text.ToEntero(), CveMovimientoAlmacen: TxtCveMovimientoAlmacen.Text.ToEntero());
|
CveContrato: TxtCveContrato.Text.ToEntero(), CveSubProyecto: TxtCveSubProyecto.Text.ToEntero(), CveMovimientoAlmacen: TxtCveMovimientoAlmacen.Text.ToEntero(), CveTableroLista:TxtCveTableroLista.Text.ToEntero());
|
||||||
|
|
||||||
CveEvento = objOI.CveEvento;
|
CveEvento = objOI.CveEvento;
|
||||||
Folio = objOI.Folio;
|
Folio = objOI.Folio;
|
||||||
@@ -306,7 +307,7 @@ public partial class UserControl_TareaNueva : System.Web.UI.UserControl
|
|||||||
{
|
{
|
||||||
if (objoi.AddRevisionesEventos(TxtTema.Text.Trim(), UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa))
|
if (objoi.AddRevisionesEventos(TxtTema.Text.Trim(), UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa))
|
||||||
{
|
{
|
||||||
this.Alert("Tema Agregada con éxito.", ModExtensiones.TipoMensaje.MsgInformacion);
|
this.Alert(string.Format("El Tema \"{0}\" fue agregada con éxito.", TxtTema.Text.Trim()), ModExtensiones.TipoMensaje.MsgInformacion);
|
||||||
this.RegistraScript(string.Format("$('#{0}').modal('hide')", iddivAgregarTema));
|
this.RegistraScript(string.Format("$('#{0}').modal('hide')", iddivAgregarTema));
|
||||||
|
|
||||||
if (Ismodal)
|
if (Ismodal)
|
||||||
|
|||||||
@@ -56,6 +56,8 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user