679 lines
39 KiB
Plaintext
679 lines
39 KiB
Plaintext
<%@ 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">
|
|
Convocatoria
|
|
</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>
|
|
<li>
|
|
<asp:LinkButton ID="LnkOpenModalAsistencia" OnClick="LnkOpenModalAsistencia_Click" Visible="false" runat="server"><i class="fa fa-users"></i>Asistencia</asp:LinkButton>
|
|
</li>
|
|
<li>
|
|
<asp:LinkButton ID="LnkEnviarCorreo" OnClick="LnkEnviarCorreo_Click" Visible="false" runat="server"><i class="fa fa-paper-plane-o"></i>Enviar correo</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>
|
|
<div class="row">
|
|
<div class="col-md-7">
|
|
<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 / Tema:" 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 input-iconright">
|
|
<asp:TextBox ID="TxtDuracion" runat="server" CssClass="form-control " CausesValidation="true"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVTxtDuracion" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtDuracion" 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="Duración:" AssociatedControlID="TxtDuracion"></asp:Label>
|
|
</div>
|
|
<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" style="display: none;">
|
|
<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" style="display: none;">
|
|
<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"></asp:ListItem>
|
|
<asp:ListItem Text="Media" Value="2"></asp:ListItem>
|
|
<asp:ListItem Text="Alta" Value="3"></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>
|
|
<asp:Panel runat="server" ID="portletMiembros" class="col-md-5">
|
|
|
|
<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>
|
|
|
|
<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 DEL DÍ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 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>
|
|
|
|
<div id='<%= iddivTomarAsistencia %>' class="modal ADS fade" role="dialog">
|
|
<div class="modal-dialog">
|
|
<asp:UpdatePanel ID="UpTomarASistencia" 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="Literal1" runat="server">Actualizar miembros</asp:Literal></h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<div class="text-right" style="">
|
|
<asp:TextBox ID="TxtTomarAsistencia" runat="server" CssClass="form-control input-sm" 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="GvTomarAsistencia" runat="server" AutoGenerateColumns="false" DataKeyNames="CveUsuario,Nombre,CveRol" data-txtBuscador='<%# string.Format("#{0}",TxtTomarAsistencia.ClientID) %>'
|
|
CssClass="table table-striped table-advance table-hover Widthall ScrollAD ConBuscador" GridLines="None" data-height="200"
|
|
OnRowDataBound="GvTomarAsistencia_RowDataBound">
|
|
<Columns>
|
|
<asp:TemplateField>
|
|
<ItemStyle HorizontalAlign="Center" Width="50px" />
|
|
<HeaderTemplate>
|
|
Asistió
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:CheckBox ID="ChkAsistio" CssClass="ChkOk" Checked='<%# Eval("Asistencia").ToString()=="1" %>' 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 class="form-group form-md-line-input">
|
|
<asp:TextBox ID="TxtAsistentesExternos" runat="server" CssClass="form-control" CausesValidation="true" TextMode="MultiLine" Rows="2"></asp:TextBox>
|
|
<asp:Label runat="server" Text="Externos" AssociatedControlID="TxtAsistentesExternos"></asp:Label>
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<asp:LinkButton ID="LnkUpAsistencia" OnClick="LnkUpAsistencia_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>
|
|
|
|
|
|
|
|
function download(filename, text) {
|
|
var element = document.createElement('a');
|
|
element.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(text));
|
|
element.setAttribute('download', filename);
|
|
|
|
element.style.display = 'none';
|
|
document.body.appendChild(element);
|
|
|
|
element.click();
|
|
|
|
document.body.removeChild(element);
|
|
}
|
|
|
|
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 ? ':contains("' + usuariotext + '")' : '';// td:nth-child(2)
|
|
|
|
$('.GVUsuarios tr.items').attr('hide', '1')//oculto todos
|
|
$('.GVUsuarios tr.items' + strusuario).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 ? ':contains("' + usuariotext + '")' : '';// td:nth-child(2)
|
|
|
|
$('.GVUsuarios tr.items').attr('hide', '1')//oculto todos
|
|
if (strusuario.length > 0) {
|
|
$('.GVUsuarios tr.items' + strCveRol + strCveSucursal + strusuario).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>
|
|
|