Cambios OI
This commit is contained in:
@@ -15,6 +15,7 @@ Public Enum OITipoEventos
|
||||
ISO = 8
|
||||
Soporte = 9
|
||||
Gastos_Mes = 10
|
||||
'Trello = 11
|
||||
End Enum
|
||||
|
||||
Public Class ObjEventosCorreo
|
||||
@@ -218,38 +219,218 @@ Public Class ClsOIEventos
|
||||
Public Property objCorreo As ObjEventosCorreo
|
||||
|
||||
#End Region
|
||||
|
||||
#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,
|
||||
cveProveedor As Int32, cveCompra As Int32, cveVenta As Int32, cveContrato As Int32, cveUsuario As Int32, cveSubProyecto As Int32, cveMovimientoAlmacen As Int32,
|
||||
cveEmpresaCRM As Int32) As Boolean
|
||||
#Region "Trello"
|
||||
Public Function GetTablero(cveTablero As Int32, cveUsuario As Int32, cveEmpresa As Int32) As Boolean
|
||||
Dim retorno As Boolean = False
|
||||
DataAdapter("PA_OI_EventosVinculosUp", CommandType.StoredProcedure)
|
||||
DataAdapter("PA_OI_GetTablero", CommandType.StoredProcedure)
|
||||
With SqlAdapter.SelectCommand.Parameters
|
||||
.Add("@CveEvento", SqlDbType.Int, cveEvento)
|
||||
.Add("@CveActivoFijo", SqlDbType.Int, cveActivoFijo)
|
||||
.Add("@CveIE", SqlDbType.Int, cveIE)
|
||||
.Add("@CveProspecto", SqlDbType.Int, cveProspecto)
|
||||
.Add("@CveCliente", SqlDbType.Int, cveCliente)
|
||||
.Add("@CveOS", SqlDbType.Int, cveOS)
|
||||
.Add("@CveOC", SqlDbType.Int, cveOC)
|
||||
.Add("@CvePersonal", SqlDbType.Int, cvePersonal)
|
||||
.Add("@CveProveedor", SqlDbType.Int, cveProveedor)
|
||||
.Add("@CveCompra", SqlDbType.Int, cveCompra)
|
||||
.Add("@CveVenta", SqlDbType.Int, cveVenta)
|
||||
.Add("@CveContrato", SqlDbType.Int, cveContrato)
|
||||
.Add("@CveSubProyecto", SqlDbType.Int, cveSubProyecto)
|
||||
.Add("@CveMovimientoAlmacen", SqlDbType.Int, cveMovimientoAlmacen)
|
||||
.Add("@CveEmpresaCRM", SqlDbType.Int, cveEmpresaCRM)
|
||||
.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 obtener el Catálogo de Evento Usuario.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
||||
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"
|
||||
|
||||
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, cveSubProyecto As Int32, cveMovimientoAlmacen As Int32,
|
||||
cveEmpresaCRM As Int32) As Boolean
|
||||
Dim retorno As Boolean = False
|
||||
DataAdapter("PA_OI_EventosVinculosUp", CommandType.StoredProcedure)
|
||||
With SqlAdapter.SelectCommand.Parameters
|
||||
.Add("@CveEvento", SqlDbType.Int).Value = (cveEvento)
|
||||
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
||||
.Add("@CveActivoFijo", SqlDbType.Int).Value = (cveActivoFijo)
|
||||
.Add("@CveIE", SqlDbType.Int).Value = (cveIE)
|
||||
.Add("@CveProspecto", SqlDbType.Int).Value = (cveProspecto)
|
||||
.Add("@CveCliente", SqlDbType.Int).Value = (cveCliente)
|
||||
.Add("@CveOS", SqlDbType.Int).Value = (cveOS)
|
||||
.Add("@CveOC", SqlDbType.Int).Value = (cveOC)
|
||||
.Add("@CvePersonal", SqlDbType.Int).Value = (cvePersonal)
|
||||
.Add("@CveProveedor", SqlDbType.Int).Value = (cveProveedor)
|
||||
.Add("@CveCompra", SqlDbType.Int).Value = (cveCompra)
|
||||
.Add("@CveVenta", SqlDbType.Int).Value = (cveVenta)
|
||||
.Add("@CveContrato", SqlDbType.Int).Value = (cveContrato)
|
||||
.Add("@CveSubProyecto", SqlDbType.Int).Value = (cveSubProyecto)
|
||||
.Add("@CveMovimientoAlmacen", SqlDbType.Int).Value = (cveMovimientoAlmacen)
|
||||
.Add("@CveEmpresaCRM", SqlDbType.Int).Value = (cveEmpresaCRM)
|
||||
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
|
||||
End Function
|
||||
Public Function GetEventosUsuario2(CveEvento As Integer, CveEmpresa As Integer) As Boolean
|
||||
@@ -286,13 +467,15 @@ Public Class ClsOIEventos
|
||||
Return Retorno
|
||||
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
|
||||
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
|
||||
.Add("@CveEvento", SqlDbType.Int).Value = CveEvento
|
||||
.Add("@CveUsuario", SqlDbType.Int).Value = CveUsuario
|
||||
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
||||
End With
|
||||
Try
|
||||
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 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 CveMovimientoAlmacen As Integer = -1, Optional CorreoExterno As String = "") As Boolean
|
||||
Optional CveMovimientoAlmacen As Integer = -1, Optional CorreoExterno As String = "", Optional CveTableroLista As Integer = -1) As Boolean
|
||||
Dim retorno As Boolean = False
|
||||
|
||||
Dim xmlMiembros As System.Xml.Linq.XDocument = Nothing
|
||||
@@ -406,7 +589,7 @@ Public Class ClsOIEventos
|
||||
.Add("@CveSubProyecto", SqlDbType.Int).Value = CveSubProyecto
|
||||
.Add("@CveMovimientoAlmacen", SqlDbType.Int).Value = CveMovimientoAlmacen
|
||||
.Add("@CorreoExterno", SqlDbType.VarChar).Value = CorreoExterno
|
||||
|
||||
.Add("@CveTableroLista", SqlDbType.VarChar).Value = CveTableroLista
|
||||
|
||||
'.Add("@mailPara", SqlDbType.VarChar).Direction = ParameterDirection.Output
|
||||
'.Add("@mailBody", SqlDbType.Xml).Direction = ParameterDirection.Output
|
||||
@@ -1630,8 +1813,10 @@ Public Class ClsOIEventos
|
||||
SqlAdapter.Fill(Data)
|
||||
|
||||
Retorno = True
|
||||
Catch ex As SqlException
|
||||
OnError("Ocurrió un error al guardar Tema.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
||||
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
|
||||
|
||||
Return Retorno
|
||||
|
||||
@@ -3567,6 +3567,8 @@ Public Class ClsPaginas
|
||||
PaginaDict.Add("/OI/Tareas.aspx".ToUpper(), -1)
|
||||
PaginaDict.Add("/OI/RepProyectos.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("/AdSistemasTeam/ProcedimientosAlmacenados.aspx".ToUpper(), -1)
|
||||
PaginaDict.Add("/OS/CatOrdenesServiciosCaracteristicas.aspx".ToUpper(), -1)
|
||||
PaginaDict.Add("/OS/CatOSCaracteristicasOpciones.aspx".ToUpper(), -1)
|
||||
|
||||
Binary file not shown.
Binary file not shown.
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());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -160,6 +160,8 @@
|
||||
<asp:LinkButton ID="LnkReasignar" OnClick="LnkReasignar_Click" Visible="true" runat="server"><i class="fa fa-pencil"></i> Reasignar</asp:LinkButton></li>
|
||||
<li>
|
||||
<asp:LinkButton ID="LnkUpVinculo" OnClick="LnkUpVinculo_Click" Visible="false" runat="server"><i class="fa fa-pencil"></i> Agregar Vinculo</asp:LinkButton></li>
|
||||
<li>
|
||||
<asp:LinkButton ID="LnkEliminar" OnClick="LnkEliminar_Click" Visible="false" runat="server"><i class="fa fa-remove"></i> Eliminar</asp:LinkButton></li>
|
||||
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
@@ -374,6 +376,10 @@
|
||||
<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>
|
||||
</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>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
@@ -641,16 +647,17 @@
|
||||
<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 Actividad</asp:Literal></h4>
|
||||
<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" 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>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
@@ -733,7 +740,7 @@
|
||||
<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="Literal4" runat="server">Cambiar Estatus</asp:Literal></h4>
|
||||
<asp:Literal ID="Literal4" runat="server">Agregar relación</asp:Literal></h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="form-group form-md-line-input">
|
||||
@@ -748,14 +755,13 @@
|
||||
</div>
|
||||
<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">
|
||||
<Columns>
|
||||
<asp:TemplateField HeaderText="Código">
|
||||
<ItemStyle Width="70px" />
|
||||
<ItemTemplate>
|
||||
<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>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Descripción">
|
||||
@@ -820,18 +826,21 @@
|
||||
</asp:TemplateField>
|
||||
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
</asp:GridView>--%>
|
||||
</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">
|
||||
<Columns>
|
||||
<asp:TemplateField HeaderText="RFC" ItemStyle-Width="100">
|
||||
<ItemTemplate>
|
||||
<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>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField Visible="true" ItemStyle-Width="100" HeaderText="Código">
|
||||
@@ -878,15 +887,26 @@
|
||||
<RowStyle CssClass="Texto" />
|
||||
<AlternatingRowStyle CssClass="TextoAlterno" />
|
||||
<HeaderStyle CssClass="Titulos" />
|
||||
</asp:GridView>
|
||||
</asp:GridView>--%>
|
||||
</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 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>
|
||||
</div>
|
||||
|
||||
<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>--%>
|
||||
<button data-dismiss="modal" class="btn btn-danger">Cancelar</button>
|
||||
</div>
|
||||
@@ -1155,5 +1175,6 @@
|
||||
//$('.GVUsuarios input[type="checkbox"]:not(.setclass)').addClass('icheck setclass');
|
||||
});
|
||||
</script>
|
||||
|
||||
</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="TxtCveSubProyecto" CssClass="hidden TxtTareaNuevaCveSubProyecto" 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:Panel>
|
||||
@@ -218,16 +219,17 @@
|
||||
<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 Actividad</asp:Literal></h4>
|
||||
<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" 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>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
@@ -255,6 +257,7 @@
|
||||
$('.TxtTareaNuevaCveContrato').val(obji.CveContrato);
|
||||
$('.TxtTareaNuevaCveSubProyecto').val(obji.CveSubProyecto);
|
||||
$('.TxtTareaNuevaCveMovimientoAlmacen').val(obji.CveMovimientoAlmacen);
|
||||
$('.TxtTareaNuevaCveTableroLista').val(obji.CveTableroLista);
|
||||
//alert(obji.CveCliente);
|
||||
//$('#iddivAgregarTarea').modal();
|
||||
$('.BtnopenmodalConPadre').click();
|
||||
|
||||
@@ -113,6 +113,7 @@ public partial class UserControl_TareaNueva : System.Web.UI.UserControl
|
||||
TxtCveContrato.Text = TxtCveContrato.Text.ToEntero() > 0 ? TxtCveContrato.Text : "-1";
|
||||
TxtCveSubProyecto.Text = TxtCveSubProyecto.Text.ToEntero() > 0 ? TxtCveSubProyecto.Text : "-1";
|
||||
TxtCveMovimientoAlmacen.Text = TxtCveMovimientoAlmacen.Text.ToEntero() > 0 ? TxtCveMovimientoAlmacen.Text : "-1";
|
||||
TxtCveTableroLista.Text = TxtCveTableroLista.Text.ToEntero() > 0 ? TxtCveTableroLista.Text : "-1";
|
||||
|
||||
int cveUsuarioDe = UsuarioActual.CveUsuario;
|
||||
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(),
|
||||
CveOS: TxtCveOS.Text.ToEntero(), CveOC: TxtCveOC.Text.ToEntero(), CvePersonal: TxtCvePersonal.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;
|
||||
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))
|
||||
{
|
||||
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));
|
||||
|
||||
if (Ismodal)
|
||||
|
||||
@@ -52,6 +52,10 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user