This commit is contained in:
@@ -15,7 +15,7 @@ Public Enum OITipoEventos
|
||||
ISO = 8
|
||||
Soporte = 9
|
||||
Gastos_Mes = 10
|
||||
'Trello = 11
|
||||
Convocatorias = 11
|
||||
End Enum
|
||||
|
||||
Public Class ObjEventosCorreo
|
||||
@@ -531,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 = "", Optional CveTableroLista As Integer = -1) 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 xmlMiembros As System.Xml.Linq.XDocument = Nothing
|
||||
@@ -589,6 +589,7 @@ Public Class ClsOIEventos
|
||||
.Add("@CveSubProyecto", SqlDbType.Int).Value = CveSubProyecto
|
||||
.Add("@CveMovimientoAlmacen", SqlDbType.Int).Value = CveMovimientoAlmacen
|
||||
.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
|
||||
|
||||
@@ -3569,6 +3569,8 @@ Public Class ClsPaginas
|
||||
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("/OS/CatOrdenesServiciosCaracteristicas.aspx".ToUpper(), -1)
|
||||
PaginaDict.Add("/OS/CatOSCaracteristicasOpciones.aspx".ToUpper(), -1)
|
||||
|
||||
@@ -185,7 +185,7 @@ public partial class OI_CircularDetalleB : ClsPaginas
|
||||
{
|
||||
Filename = fileItem.filename;
|
||||
}
|
||||
catch (Exception ex)
|
||||
catch (Exception )
|
||||
{
|
||||
Filename = "-1";
|
||||
}
|
||||
@@ -212,7 +212,7 @@ public partial class OI_CircularDetalleB : ClsPaginas
|
||||
string respuesta = "";
|
||||
string FileExtension = "-1";
|
||||
List<Archivo> Filesgral = TxtArchivo.getfiles().Archivos;
|
||||
string Filename = "";
|
||||
//string Filename = "";
|
||||
|
||||
foreach (Archivo fileItem in Filesgral)
|
||||
{
|
||||
@@ -278,7 +278,7 @@ public partial class OI_CircularDetalleB : ClsPaginas
|
||||
}
|
||||
Alert("El correo se envió correctamente");
|
||||
}
|
||||
catch (Exception ex)
|
||||
catch (Exception )
|
||||
{
|
||||
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:Label runat="server" Text="Descripción" AssociatedControlID="TxtDescripcion"></asp:Label>
|
||||
</div>
|
||||
</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>
|
||||
<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="bodycorreos ">
|
||||
<asp:Literal ID="LtlDeUser" runat="server"></asp:Literal>
|
||||
<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>
|
||||
</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>
|
||||
|
||||
</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>
|
||||
</asp:Panel>
|
||||
|
||||
|
||||
</div>
|
||||
</asp:Panel>
|
||||
<div class="text-center">
|
||||
<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>
|
||||
@@ -742,7 +738,8 @@
|
||||
$(document).ready(function () {
|
||||
setTimeout("autoGuardado()", 60000);
|
||||
});
|
||||
|
||||
|
||||
loaderinited = loaderinit;
|
||||
//$('#btnAutoGuardado').click(function () {
|
||||
function autoGuardado() {
|
||||
|
||||
@@ -980,48 +977,48 @@
|
||||
}
|
||||
|
||||
|
||||
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"
|
||||
//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 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)
|
||||
// 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)
|
||||
|
||||
});
|
||||
// });
|
||||
|
||||
|
||||
}
|
||||
//}
|
||||
function ADSReady() {
|
||||
CargaPickers();
|
||||
SetEditor();
|
||||
CargaPickers();
|
||||
//CargaPickers();
|
||||
loadeventos();
|
||||
showhideUser();
|
||||
setchecklist();
|
||||
|
||||
@@ -54,7 +54,7 @@ public partial class OI_MinutaDetalle : ClsPaginas
|
||||
LnkGuardar.Visible = false;
|
||||
using (ClsOIEventos oieve = new ClsOIEventos())
|
||||
{
|
||||
oieve.UpUsuarioseventosVisto(RCveEvento, UsuarioActual.CveUsuario);
|
||||
oieve.UpUsuarioseventosVisto(RCveEvento, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa);
|
||||
}
|
||||
LoadMinuata();
|
||||
}
|
||||
|
||||
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)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user